/* Oclin Presentator – apps.oclin.no/presentator
   Ett enkelt token-sett, én skala, én easing. */

:root {
  /* Farger */
  --blue: #1d60fb;
  --blue-deep: #1649c8;
  --blue-soft: rgba(29, 96, 251, 0.08);
  --mint: #77eaa9;
  --ink: #15161a;
  --ink-dark: #111318;
  --canvas: #f5f7fa;
  --paper: #ffffff;
  --muted: #616873;
  --muted-light: #a3a9b4;
  --line: rgba(21, 22, 26, 0.1);
  --line-soft: rgba(21, 22, 26, 0.06);
  --line-dark: rgba(255, 255, 255, 0.08);

  /* Form */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 26px;
  --r-pill: 999px;

  --shadow-sm: 0 4px 16px rgba(22, 38, 74, 0.06);
  --shadow-md: 0 16px 40px rgba(22, 38, 74, 0.1);
  --shadow-lg: 0 30px 70px rgba(22, 38, 74, 0.14);

  /* Rytme */
  --gap: 16px;
  --section-y: clamp(58px, 6vw, 88px);
  --shell: 1140px;

  /* Bevegelse */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 260ms;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
label,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.shell {
  width: min(var(--shell), 100% - 48px);
  margin-inline: auto;
}

[id] {
  scroll-margin-top: 96px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Språkbytte (uten JavaScript) ----------
   Reglene skjuler bare det inaktive språket – de setter aldri display
   tilbake. Da beholder komponentene sine egne verdier (flex, grid …). */

.language-radio,
.language-anchor {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Engelsk er aktiv når EN er valgt, eller når siden er åpnet via
   ".../#english" og norsk ikke er valgt etterpå. */
html:has(#lang-en:checked) .lang-no,
html:has(#english:target):not(:has(#lang-no:checked)) .lang-no {
  display: none;
}

/* Norsk er aktiv i alle andre tilfeller, og er standard. */
html:not(:has(#lang-en:checked)):not(:has(#english:target)) .lang-en,
html:not(:has(#lang-en:checked)):has(#lang-no:checked) .lang-en {
  display: none;
}

/* Aktiv pille i språkvelgeren */
html:has(#lang-en:checked) .language-switch label[for="lang-en"],
html:has(#english:target):not(:has(#lang-no:checked)) .language-switch label[for="lang-en"],
html:not(:has(#lang-en:checked)):not(:has(#english:target)) .language-switch label[for="lang-no"],
html:not(:has(#lang-en:checked)):has(#lang-no:checked) .language-switch label[for="lang-no"] {
  background: var(--ink);
  color: #fff;
}

/* Tastaturfokus på de visuelt skjulte radioknappene */
html:has(#lang-no:focus-visible) .language-switch label[for="lang-no"],
html:has(#lang-en:focus-visible) .language-switch label[for="lang-en"] {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.045em;
  transition: opacity var(--dur) var(--ease);
}

.brand:hover {
  opacity: 0.7;
}

.brand img {
  display: block;
  border-radius: 10px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.main-nav a,
.footer-column a,
.legal-aside a,
.contact-link {
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.main-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.language-switch label {
  min-width: 32px;
  padding: 5px 8px;
  border-radius: var(--r-pill);
  text-align: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
}

.contact-link:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* ---------- Knapper ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.button-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 32px rgba(29, 96, 251, 0.24);
}

.button span[aria-hidden] {
  transition: transform var(--dur) var(--ease);
}

.button:hover span[aria-hidden] {
  transform: translateY(2px);
}

.button-blue:hover span[aria-hidden] {
  transform: translate(2px, -2px);
}

.button-mint:hover span[aria-hidden],
.button-ghost:hover span[aria-hidden] {
  transform: translateX(3px);
}

.button-quiet {
  border: 1px solid var(--line);
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--ink);
  background: rgba(21, 22, 26, 0.04);
}

.button-mint {
  background: var(--mint);
  color: var(--ink);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

/* Lenken til App Store publiseres når appen er godkjent. */
.button-pending {
  cursor: default;
}

.button-pending:hover {
  transform: none;
}

.band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #f7faff 0%, #eef3ff 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
  padding-block: clamp(40px, 4.5vw, 68px) clamp(48px, 5.5vw, 78px);
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(119, 234, 169, 0.25);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.hero-lead {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 26px;
}

.availability {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.hero-product {
  position: relative;
}

/* Skjermbildet har vinduets egne avrundede hjørner, så skyggen følger formen. */
.window-shot img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(22, 38, 74, 0.28));
}

/* ---------- Nøkkelpunkter ---------- */

.trust-strip {
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
}

.trust-grid p {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px 16px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ---------- Seksjoner ---------- */

.section {
  padding-block: var(--section-y);
}

.features {
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  grid-template-areas: "kicker intro" "title intro";
  align-items: end;
  gap: 8px 56px;
  margin-bottom: 40px;
}

.kicker {
  grid-area: kicker;
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker-mint {
  color: var(--mint);
}

.section h2,
.privacy-band h2,
.final-cta h2,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.section-heading h2 {
  grid-area: title;
}

.section-intro {
  grid-area: intro;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Funksjonskort ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-art {
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: 18px 26px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.feature-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}

.feature-card-blue {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}

.feature-card-blue p {
  color: rgba(255, 255, 255, 0.78);
}

.feature-card-paper {
  background: var(--canvas);
}

.feature-card-paper p,
.feature-card-mint p {
  color: var(--muted);
}

.feature-card-dark {
  border-color: transparent;
  background: var(--ink-dark);
  color: #f5f7fb;
}

.feature-card-dark p {
  color: var(--muted-light);
}

.feature-card-mint {
  border-color: transparent;
  background: var(--mint);
}

.feature-symbol {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.feature-symbol svg {
  width: 50px;
  height: 50px;
}

.project-mini {
  width: min(100%, 380px);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.project-mini span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 600;
}

.project-mini span:last-child {
  border-bottom: 0;
}

.project-mini i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.project-mini .mint { background: var(--mint); }
.project-mini .blue { background: var(--blue); }
.project-mini .play {
  width: 0;
  height: 0;
  border-radius: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--blue);
}

.project-mini b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Et publikumsvindu uten tittellinje; lukkeknappene vises ved hover. */
.window-mark {
  position: relative;
  width: 190px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: linear-gradient(135deg, #2b2470, #0d0f24);
  box-shadow: inset 0 0 0 1px var(--line-dark), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.window-mark .lights {
  position: absolute;
  top: 10px;
  left: 12px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.feature-card-dark:hover .window-mark .lights {
  opacity: 1;
}

.window-mark .lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.window-mark .lights i:nth-child(2) { background: #febc2e; }
.window-mark .lights i:nth-child(3) { background: #28c840; }

.window-mark .slide {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 70px;
  height: 14px;
  border-radius: var(--r-pill);
  background: #ffc93c;
}

.keys-mark {
  display: flex;
  gap: 10px;
}

.keys-mark kbd {
  min-width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 3px 0 rgba(21, 22, 26, 0.18);
  color: var(--ink);
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
}

.keys-mark kbd.wide {
  min-width: 76px;
  background: var(--ink);
  color: #fff;
}

/* ---------- Skjermbilder ---------- */

.gallery-section {
  overflow: hidden;
  background: var(--canvas);
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  align-items: end;
  gap: 56px;
  margin-bottom: 40px;
}

.gallery-heading > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.mac-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px var(--gap);
}

.mac-gallery figure {
  margin: 0;
}

.mac-gallery img {
  display: block;
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}

.mac-gallery figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Personvernbånd ---------- */

.privacy-band {
  padding-block: var(--section-y);
  background: var(--ink-dark);
  color: #f5f7fb;
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 60px;
}

.privacy-lockup {
  text-align: center;
}

.privacy-lockup > p {
  margin: 18px 0 0;
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.privacy-icon {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  border: 1px solid rgba(119, 234, 169, 0.2);
  border-radius: 50%;
}

.privacy-icon span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font-size: 36px;
  font-weight: 700;
}

.privacy-copy {
  max-width: 560px;
  margin: 18px 0 24px;
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Avsluttende CTA ---------- */

.final-cta-inner {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.final-cta img {
  display: block;
  margin-bottom: 22px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.final-cta .kicker {
  margin-bottom: 14px;
}

.final-cta-inner > p:not(.kicker) {
  max-width: 520px;
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 52px 22px;
  background: var(--ink-dark);
  color: #f5f7fb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 42px;
}

.brand-light img {
  border: 1px solid var(--line-dark);
}

.footer-grid > div:first-child > p {
  margin: 12px 0 0;
  color: var(--muted-light);
  font-size: 13.5px;
}

.footer-appstore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-appstore:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.footer-column {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  color: var(--muted-light);
  font-size: 14px;
}

.footer-column h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-column p {
  margin: 0;
  line-height: 1.75;
}

.footer-column a:hover,
.footer-column label:hover {
  color: #fff;
}

.footer-column label {
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Juridiske sider ---------- */

.legal-page {
  background: var(--canvas);
}

.legal-main {
  padding-bottom: clamp(56px, 6vw, 84px);
}

.legal-hero {
  padding-block: clamp(44px, 5vw, 64px) clamp(36px, 4vw, 52px);
  background: linear-gradient(170deg, #f7faff 0%, #eef3ff 100%);
}

.legal-hero .kicker {
  margin-bottom: 12px;
}

.legal-hero h1 {
  max-width: 780px;
}

.legal-updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 48px;
  justify-content: center;
  padding-top: clamp(32px, 3.5vw, 48px);
}

.legal-aside {
  align-self: start;
  position: sticky;
  top: 104px;
}

.legal-aside p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.legal-aside a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  font-weight: 600;
}

.legal-aside a:hover {
  color: var(--blue);
}

.legal-document {
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.legal-toc {
  margin: 0 0 6px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--canvas);
}

.legal-toc h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 22px;
  margin: 0;
  padding-left: 19px;
}

.legal-toc li {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
}

.legal-toc a {
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}

.legal-toc a:hover {
  color: var(--blue);
}

.legal-document h3 {
  margin: 34px 0 10px;
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  scroll-margin-top: 96px;
}

.legal-document h3:first-of-type {
  margin-top: 26px;
}

.legal-document p,
.legal-document li {
  color: #4f5763;
  font-size: 15px;
  line-height: 1.68;
}

.legal-document p {
  margin: 0 0 14px;
}

.legal-document ul,
.legal-document ol {
  margin: -2px 0 20px;
  padding-left: 22px;
}

.legal-document li {
  margin: 6px 0;
}

.legal-document a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(29, 96, 251, 0.3);
  transition: text-decoration-color var(--dur) var(--ease);
}

.legal-document a:hover {
  text-decoration-color: currentColor;
}

.legal-document strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-callout {
  margin: 0 0 18px;
  padding: 16px 20px;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--blue-soft);
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.legal-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.65);
}

.legal-switch a {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.legal-switch a:hover {
  color: var(--ink);
}

.legal-switch a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.main-nav a[aria-current="page"] {
  color: var(--ink);
}


/* ---------- Bevegelse ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-product {
    animation: rise 700ms var(--ease) both;
  }

  .hero-copy > *:nth-child(1) { animation-delay: 40ms; }
  .hero-copy > *:nth-child(2) { animation-delay: 100ms; }
  .hero-copy > *:nth-child(3) { animation-delay: 150ms; }
  .hero-copy > *:nth-child(4) { animation-delay: 150ms; }
  .hero-copy > *:nth-child(5) { animation-delay: 200ms; }
  .hero-copy > *:nth-child(6) { animation-delay: 240ms; }
  .hero-product { animation-delay: 180ms; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }

    .site-header {
      animation: header-settle linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100px;
    }

    @keyframes header-settle {
      from {
        border-bottom-color: transparent;
      }
      to {
        border-bottom-color: var(--line-soft);
      }
    }
  }
}

/* ---------- Responsivt ---------- */

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .section-heading,
  .gallery-heading,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-areas: "kicker" "title" "intro";
  }

  .section-intro {
    max-width: 620px;
    margin-top: 18px;
  }

  .gallery-heading {
    gap: 24px;
  }

  .gallery-heading > p {
    max-width: 580px;
  }

  .privacy-grid {
    gap: 56px;
  }

  .privacy-lockup {
    order: 2;
  }

  .legal-layout {
    grid-template-columns: minmax(0, 760px);
    gap: 28px;
  }

  .legal-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
  }

  .legal-aside p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(var(--shell), 100% - 32px);
  }

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand {
    font-size: 21px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .contact-link {
    display: none;
  }

  .hero h1 {
    letter-spacing: -0.045em;
  }

  .trust-grid p {
    min-height: 68px;
    padding: 16px 18px;
    font-size: 13px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 340px;
    padding: 26px;
  }

  .feature-art {
    padding-block: 20px 28px;
  }

  .mac-gallery {
    grid-template-columns: 1fr;
  }

  .privacy-icon {
    width: 180px;
    height: 180px;
  }

  .privacy-icon span {
    width: 76px;
    height: 76px;
    font-size: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .legal-aside {
    grid-template-columns: 1fr;
  }

  .legal-toc ol {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
