@layer reset, tokens, base, layout, components, motion;

@view-transition { navigation: auto; }

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; interpolate-size: allow-keywords; }
  img, svg { display: block; max-width: 100%; height: auto; }
  button { font: inherit; color: inherit; }
  ul[class], ol[class] { list-style: none; padding: 0; }
  [hidden] { display: none !important; }
}

@layer tokens {
  :root {
    color-scheme: light dark;

    /* Mirrors Intuiscale DESIGN_SYSTEM.md §0.5 — warm, zero-blue dark */
    --bg:        light-dark(#F9F9F9, #121110);
    --bg-alt:    light-dark(#F4EFEA, #171514);
    --surface:   light-dark(#F1E8DD, #1D1B1A);
    --surface-2: light-dark(#FFFFFF, #242120);
    --ink:       light-dark(#0E0D0C, #F9F4F0);
    --ink-2:     light-dark(#5B534D, #B9AEA5);
    --ink-3:     light-dark(#746B64, #978C83);
    --accent:    light-dark(#C85A3C, #D96E52);
    --accent-ink: light-dark(#A9472A, #D96E52); /* accent as text: light #C85A3C fails AA */
    --cta:       #B44F31;
    --peach:     light-dark(#F6D7C6, #2D1F1A);
    --sage:      light-dark(#D7E0D2, #1F261F);
    --sand:      light-dark(#F1E8DD, #211E1C);
    --hair:      color-mix(in oklab, var(--ink) 11%, transparent);
    --rim:       light-dark(rgb(255 255 255 / .95), rgb(255 255 255 / .07));
    --ao:        light-dark(rgb(52 34 22 / .16), rgb(0 0 0 / .55));
    --diffuse:   light-dark(rgb(52 34 22 / .07), rgb(0 0 0 / .45));

    --shadow: 0 1px 2px var(--ao), 0 12px 28px -6px var(--diffuse);
    --shadow-lift: 0 2px 3px var(--ao), 0 28px 60px -12px var(--diffuse);
    --rim-light: inset 0 1.5px 0 var(--rim);

    --r-card: 24px;
    --r-sm: 12px;
    --r-device: clamp(36px, 4.6vw, 54px);

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

    --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
    --step-1: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
    --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
    --step-3: clamp(2.125rem, 1.5rem + 2.8vw, 3.75rem);
    --step-4: clamp(3rem, 1.6rem + 6.2vw, 7rem);

    --gutter: clamp(16px, 4vw, 48px);
    --max: 1240px;

    /* Mechanical inertia: high damping, ~1% settle. */
    --ease-settle: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: linear(0, .21 7%, .55 17%, .83 28%, .96 38%, 1.012 50%, 1.006 64%, 1);
    --dur: 640ms;
  }
}

@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: 96px; }
  body {
    min-height: 100dvh;
    background: var(--bg);
    color: var(--ink);
    font: 400 var(--step-0)/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
  }
  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 650;
    letter-spacing: -.035em;
    line-height: 1.02;
    text-wrap: balance;
  }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-1); letter-spacing: -.02em; line-height: 1.2; }
  p { text-wrap: pretty; }
  a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
  ::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); }
  .muted { color: var(--ink-2); }
  .small { font-size: .875rem; }
  .skip {
    position: fixed; left: 16px; top: -100px; z-index: 100;
    padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
    &:focus { top: 16px; }
  }
}

@layer layout {
  main > section { padding-inline: var(--gutter); }
  main > section > * { max-width: var(--max); margin-inline: auto; }

  .section-head {
    display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 64px);
    & p { color: var(--ink-2); font-size: var(--step-1); max-width: 34ch; }
  }
  .section-head--row {
    grid-template-columns: 1fr auto; align-items: end;
    & > div { display: grid; gap: 16px; }
  }
}

@layer components {
  /* ---------- Nav ---------- */
  .nav {
    position: sticky; top: 0; z-index: 50;
    padding: 12px var(--gutter);
  }
  .nav__inner {
    max-width: var(--max); margin-inline: auto;
    display: flex; align-items: center; gap: 24px;
    padding: 10px 10px 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background .4s, border-color .4s, box-shadow .4s, max-width .5s var(--ease-settle);
  }
  .nav.is-scrolled .nav__inner {
    max-width: 880px;
    background: color-mix(in oklab, var(--bg) 82%, transparent);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-color: var(--hair);
    box-shadow: var(--shadow), var(--rim-light);
  }
  .brand {
    display: inline-flex; align-items: center; gap: 10px;
    font: 650 1.0625rem/1 var(--font-display); letter-spacing: -.02em; text-decoration: none;
  }
  .brand__mark { width: 22px; height: 22px; fill: var(--accent); }
  .nav nav { margin-left: auto; }
  .nav__links {
    display: flex; gap: 4px;
    & a {
      display: block; padding: 8px 14px; border-radius: 999px;
      text-decoration: none; color: var(--ink-2); font-size: .9375rem;
      transition: color .2s, background .2s;
      &:hover { color: var(--ink); background: var(--hair); }
    }
  }
  @media (width < 720px) { .nav__links { display: none; } .nav nav { margin-left: auto; } }

  /* ---------- Buttons ---------- */
  .btn {
    --_bg: var(--cta);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px;
    border: 0; border-radius: 999px; cursor: pointer;
    background: var(--_bg); color: #fff;
    font-weight: 600; text-decoration: none; letter-spacing: -.01em;
    box-shadow: 0 1px 2px var(--ao), 0 4px 0 color-mix(in oklab, var(--_bg) 70%, black), inset 0 1px 0 rgb(255 255 255 / .25);
    transition: transform .25s var(--ease-settle), box-shadow .25s var(--ease-settle);
    &:hover { transform: translateY(-1px); }
    &:active { transform: translateY(3px); box-shadow: 0 1px 1px var(--ao), 0 1px 0 color-mix(in oklab, var(--_bg) 70%, black); }
  }
  .btn--small { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
  .btn--ghost {
    background: transparent; color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--hair);
    &:hover { background: var(--hair); }
    &:active { transform: translateY(1px); box-shadow: inset 0 0 0 1px var(--hair); }
  }

  .store {
    display: inline-flex; align-items: center; gap: 12px;
    min-height: 56px; padding: 0 24px 0 18px;
    border-radius: 16px; text-decoration: none;
    background: var(--ink); color: var(--bg);
    box-shadow: var(--shadow);
    transition: transform .3s var(--ease-settle), box-shadow .3s var(--ease-settle);
    & svg { width: 24px; height: 24px; }
    & span { display: grid; font: 600 1.25rem/1.05 var(--font-display); letter-spacing: -.02em; }
    & small { font: 500 .6875rem/1.2 var(--font); letter-spacing: .01em; opacity: .75; }
    &:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
  }
  .store--big { min-height: 64px; padding-inline: 22px 30px; & span { font-size: 1.5rem; } }

  .link {
    display: inline-flex; gap: 6px; align-items: center;
    color: var(--accent-ink); font-weight: 600; text-decoration: none;
    &::after { content: "→"; transition: translate .3s var(--ease-settle); }
    &:hover::after { translate: 4px 0; }
  }

  .round {
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center;
    background: var(--surface); box-shadow: var(--shadow), var(--rim-light);
    & svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    &:disabled { opacity: .35; cursor: default; }
    &:not(:disabled):active { transform: scale(.94); }
  }

  /* ---------- Device ---------- */
  .device {
    position: relative;
    aspect-ratio: 506 / 1100;
    padding: clamp(6px, .7vw, 10px);
    border-radius: var(--r-device);
    background: linear-gradient(160deg, #2A2725, #0F0E0D 60%);
    box-shadow:
      inset 0 0 0 1px rgb(255 255 255 / .08),
      inset 0 1.5px 0 rgb(255 255 255 / .18),
      0 2px 3px rgb(0 0 0 / .25),
      0 40px 80px -24px light-dark(rgb(52 34 22 / .35), rgb(0 0 0 / .8));
    & img {
      width: 100%; height: 100%; object-fit: cover; object-position: top;
      border-radius: calc(var(--r-device) - clamp(6px, .7vw, 10px));
      background: var(--bg);
    }
  }

  /* ---------- Hero ---------- */
  .hero {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center; gap: clamp(24px, 4vw, 64px);
    max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
    padding-top: clamp(32px, 6vw, 88px);
    min-height: min(92svh, 980px);
    & > * { max-width: none; margin: 0; }
  }
  .kicker { color: var(--accent-ink); font-weight: 600; font-size: .9375rem; margin-bottom: 20px; }
  .hero__title {
    font-size: var(--step-4); line-height: .94; letter-spacing: -.05em;
    & .line { display: block; overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }
    & .line > span { display: inline-block; }
    & em { font-style: normal; color: var(--accent-ink); }
  }
  .hero__lede { margin-top: 28px; font-size: var(--step-1); color: var(--ink-2); max-width: 36ch; }
  .hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
  .hero__cta .btn--ghost { min-height: 56px; border-radius: 16px; }
  .facts {
    display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 32px;
    color: var(--ink-2); font-size: .9375rem;
    & li { display: inline-flex; align-items: center; gap: 8px; }
    & li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  }

  .hero__stage {
    position: relative; align-self: end;
    height: min(78svh, 760px);
    display: grid; justify-items: center;
    overflow: clip;
    mask-image: linear-gradient(to bottom, #000 82%, transparent);
  }
  .device--hero { width: min(360px, 74%); align-self: start; margin-top: 12px; }
  .float { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 18px 24px var(--diffuse)); }
  .float--umbrella { width: clamp(110px, 13vw, 170px); left: 0; top: 34%; }
  .float--plane { width: clamp(150px, 18vw, 240px); right: -2%; top: 6%; }

  .readout {
    position: absolute; z-index: 3; right: 2%; bottom: 22%;
    display: grid; gap: 4px; padding: 14px 18px;
    border-radius: 18px; background: var(--surface-2);
    box-shadow: var(--shadow-lift), var(--rim-light);
    min-width: 210px;
  }
  .readout__label { font-size: .8125rem; color: var(--ink-2); }
  .readout__value {
    display: flex; gap: 10px; align-items: baseline;
    font: 300 1.75rem/1.1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
    & [data-readout-b] { color: var(--accent-ink); }
  }
  .readout__eq { font-size: 1.125rem; color: var(--ink-3); }
  .readout.is-swapping .readout__value > span:not(.readout__eq),
  .readout.is-swapping .readout__label { opacity: 0; translate: 0 8px; filter: blur(4px); }
  .readout__value > span, .readout__label { transition: opacity .35s var(--ease-settle), translate .45s var(--ease-settle), filter .35s; }

  @media (width < 900px) {
    .hero { grid-template-columns: 1fr; min-height: auto; text-align: left; }
    .hero__stage { height: 560px; }
    .device--hero { width: min(300px, 70%); }
    .readout { right: 0; bottom: 18%; min-width: 0; }
    .float--umbrella { left: 0; }
  }

  /* ---------- Try deck ---------- */
  .try {
    padding-block: clamp(80px, 12vw, 160px);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center;
    max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
    & > * { max-width: none; margin: 0; }
  }
  .try__copy { display: grid; gap: 20px; & p:first-of-type { font-size: var(--step-1); color: var(--ink-2); max-width: 36ch; } }
  @media (width < 900px) { .try { grid-template-columns: 1fr; } }

  .deck { width: min(400px, 100%); justify-self: center; display: grid; gap: 20px; perspective: 1400px; }
  .deck__progress {
    display: flex; gap: 6px; padding-inline: 8px;
    & span { flex: 1; height: 4px; border-radius: 4px; background: var(--hair); transition: background .4s; }
    & span.is-done { background: var(--ink-3); }
    & span.is-current { background: var(--accent); }
  }
  .card3d {
    position: relative; display: grid;
    transform-style: preserve-3d;
    transition: transform .9s var(--ease-spring);
    &.is-flipped { transform: rotateY(180deg); }
    &.is-dealing { animation: deal .7s var(--ease-settle); }
  }
  .face {
    grid-area: 1 / 1;
    display: grid; align-content: center; justify-items: center; gap: 12px;
    min-height: 460px; padding: 36px 28px;
    border-radius: var(--r-card);
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    box-shadow: var(--shadow-lift), var(--rim-light), 0 8px 0 -2px color-mix(in oklab, var(--surface) 80%, black 6%);
    text-align: center;
  }
  .face--front { background: var(--surface); }
  .face--back { background: var(--sage); transform: rotateY(180deg); align-content: start; padding-top: 48px; }
  .face--back.is-wrong { background: var(--peach); }
  .face__art {
    width: 190px; aspect-ratio: 1; object-fit: contain;
    padding: 18px; border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, var(--surface-2), color-mix(in oklab, var(--surface) 85%, black 4%));
    box-shadow: inset 0 6px 18px var(--diffuse), inset 0 -2px 0 var(--rim);
    filter: drop-shadow(0 10px 12px var(--diffuse));
  }
  .face__value { font: 600 clamp(3.5rem, 9vw, 4.75rem)/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin-top: 12px; }
  .face__q { font: 600 var(--step-2)/1.15 var(--font-display); letter-spacing: -.025em; max-width: 14ch; }
  .face__verdict { font: 300 clamp(2.5rem, 7vw, 3.5rem)/1.02 var(--font-display); letter-spacing: -.04em; max-width: 9ch; }
  .face__math {
    width: 100%; margin-top: 16px; padding: 18px 22px; display: grid; gap: 8px;
    border-radius: 16px; background: var(--surface);
    box-shadow: inset 0 3px 10px var(--diffuse), inset 0 -1px 0 var(--rim);
    font: 500 1.125rem/1.3 var(--mono); text-align: left; counter-reset: none;
  }
  .face__note { font-size: .875rem; color: var(--ink-2); }

  .answers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; transition: opacity .3s, translate .4s var(--ease-settle); }
  .answers.is-hidden { opacity: 0; translate: 0 12px; pointer-events: none; }
  .key {
    --_bg: var(--accent);
    min-height: 76px; border: 0; border-radius: 32px; cursor: pointer;
    background: var(--_bg); color: #0E0D0C;
    font: 700 1.25rem/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase;
    box-shadow: 0 1px 2px var(--ao), 0 8px 0 color-mix(in oklab, var(--_bg) 78%, black), inset 0 1.5px 0 rgb(255 255 255 / .3);
    transition: transform .18s var(--ease-settle), box-shadow .18s var(--ease-settle);
    &:hover { transform: translateY(-1px); }
    &:active { transform: translateY(6px); box-shadow: 0 1px 1px var(--ao), 0 2px 0 color-mix(in oklab, var(--_bg) 78%, black), inset 0 1.5px 0 rgb(255 255 255 / .3); }
  }
  .key--yes { --_bg: light-dark(#D7E0D2, #B9C7B1); }
  .deck__progress { grid-row: 1; }
  .card3d { grid-row: 2; }
  .answers, .deck__next { grid-row: 3; grid-column: 1; }
  .deck__status { grid-row: 4; }
  .deck__next { justify-self: center; align-self: center; min-height: 56px; padding-inline: 32px; }
  .deck__status { min-height: 1.5em; text-align: center; color: var(--ink-2); font-size: .9375rem; font-variant-numeric: tabular-nums; }

  /* ---------- How ---------- */
  .how { padding-block: clamp(80px, 10vw, 140px); background: var(--bg-alt); }
  .how__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
  .how__sticky { position: sticky; top: 14vh; height: 72vh; display: grid; place-items: center; }
  .device--story {
    height: 100%; width: auto; max-width: 100%;
    & img { position: absolute; inset: clamp(6px, .7vw, 10px); width: calc(100% - 2 * clamp(6px, .7vw, 10px)); height: calc(100% - 2 * clamp(6px, .7vw, 10px));
      opacity: 0; scale: .97; filter: blur(6px);
      transition: opacity .6s var(--ease-settle), scale .8s var(--ease-settle), filter .6s var(--ease-settle); }
    & img.is-active { opacity: 1; scale: 1; filter: none; }
  }
  .steps { display: grid; }
  .step {
    min-height: 72vh; display: grid; align-content: center; gap: 16px;
    padding-block: 32px;
    & :is(h3, p, .step__num) { transition: color .6s var(--ease-settle); }
    /* Dim by color, not opacity: inactive text must still pass WCAG AA contrast. */
    @media (width >= 900px) {
      .js &:not(.is-active) :is(h3, p, .step__num) { color: var(--ink-3); }
    }
    & p { font-size: var(--step-1); color: var(--ink-2); max-width: 32ch; }
    & h3 { font-size: var(--step-3); letter-spacing: -.04em; }
  }
  .step__num { font: 500 .9375rem/1 var(--mono); color: var(--accent-ink); }
  .step__shot { display: none; }
  @media (width < 900px) {
    .how__grid { grid-template-columns: 1fr; }
    .how__sticky { display: none; }
    .step, .js .step:not(.is-active) { min-height: auto; opacity: 1; padding-block: 24px 48px; }
    .step__shot {
      display: block; width: min(280px, 75%); margin-top: 16px;
      border-radius: 36px; border: 8px solid #141312;
      box-shadow: var(--shadow-lift);
    }
  }

  /* ---------- Modules ---------- */
  .modules { padding-block: clamp(80px, 10vw, 140px); }
  .rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 28vw, 320px);
    gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding: 12px var(--gutter) 40px;
    margin-inline: calc(-1 * var(--gutter)) !important; max-width: none !important;
    scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }
    @media (width >= 1336px) { padding-inline: calc((100vw - var(--max)) / 2); scroll-padding-inline: calc((100vw - var(--max)) / 2); }
  }
  .mod {
    --_bg: var(--sand);
    scroll-snap-align: start;
    display: grid; grid-template-rows: 220px auto 1fr auto; gap: 8px;
    padding: 24px 24px 22px; border-radius: var(--r-card);
    background: var(--_bg);
    box-shadow: var(--shadow), var(--rim-light), 0 6px 0 -1px color-mix(in oklab, var(--_bg) 88%, black);
    transition: transform .5s var(--ease-settle), box-shadow .5s var(--ease-settle);
    & img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 16px var(--diffuse)); transition: transform .7s var(--ease-settle); }
    & h3 { font-size: 1.5rem; margin-top: 8px; }
    & p { color: var(--ink-2); font-size: .9375rem; }
    &:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift), var(--rim-light), 0 6px 0 -1px color-mix(in oklab, var(--_bg) 88%, black); }
    &:hover img { transform: scale(1.06) rotate(-3deg); }
  }
  .mod--peach { --_bg: var(--peach); }
  .mod--sage { --_bg: var(--sage); }
  .mod__tag { margin-top: 12px; font: 500 .8125rem/1 var(--mono); color: var(--ink-2); }

  /* ---------- Vault ---------- */
  .vault { padding-block: clamp(40px, 6vw, 80px); }
  .vault__panel {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
    padding: clamp(32px, 6vw, 80px);
    border-radius: 36px;
    background: light-dark(#171514, #1B1917); color: #F9F4F0;
    --accent-ink: #D96E52; /* panel is dark in both themes */
    outline: 1px solid light-dark(transparent, rgb(255 255 255 / .06)); outline-offset: -1px;
    box-shadow: var(--shadow-lift), inset 0 1.5px 0 rgb(255 255 255 / .08);
    & p { color: #B9AEA5; font-size: var(--step-1); margin-block: 20px 28px; max-width: 38ch; }
    & .link { color: #E58A6E; }
  }
  .vault__stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    border-radius: 20px; overflow: clip; background: rgb(255 255 255 / .08);
    & div { padding: 22px 24px; background: #1D1B1A; display: grid; gap: 6px; }
    & dt { font-size: .875rem; color: #A79C93; }
    & dd { font: 300 2.75rem/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
  }
  @media (width < 900px) { .vault__panel { grid-template-columns: 1fr; } }

  /* ---------- Languages ---------- */
  .langs {
    padding-block: clamp(80px, 10vw, 140px) clamp(40px, 6vw, 80px);
    text-align: center;
    & h2 { margin-bottom: 36px; }
  }
  .langs__list {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px !important;
    & li {
      padding: 12px 20px; border-radius: 999px;
      background: var(--surface); box-shadow: var(--shadow), var(--rim-light);
      font-size: 1.0625rem;
    }
  }

  /* ---------- FAQ ---------- */
  .faq { padding-block: clamp(80px, 10vw, 140px); }
  .faq__list { max-width: 860px !important; border-top: 1px solid var(--hair); }
  .faq details {
    border-bottom: 1px solid var(--hair);
    &::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease-settle), content-visibility .5s allow-discrete; }
    &[open]::details-content { block-size: auto; }
    & summary {
      list-style: none; cursor: pointer;
      display: flex; justify-content: space-between; align-items: center; gap: 24px;
      padding: 24px 0; font: 600 var(--step-1)/1.3 var(--font-display); letter-spacing: -.015em;
      &::-webkit-details-marker { display: none; }
      &::after {
        content: ""; flex: none; width: 14px; height: 14px;
        background: linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 100% no-repeat;
        transition: rotate .4s var(--ease-settle);
      }
    }
    &[open] summary::after { rotate: 135deg; }
    & p { padding-bottom: 24px; color: var(--ink-2); max-width: 64ch; }
    & a { color: var(--accent-ink); }
  }

  /* ---------- Final ---------- */
  .final { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 140px); }
  .final__inner {
    display: grid; justify-items: center; gap: 20px; text-align: center;
    padding: clamp(48px, 8vw, 112px) 24px;
    border-radius: 40px; background: var(--surface);
    box-shadow: var(--shadow), var(--rim-light);
    & h2 { font-size: var(--step-4); letter-spacing: -.05em; }
    & > p:not(.small) { font-size: var(--step-1); color: var(--ink-2); max-width: 32ch; }
  }
  .final__icon { width: 112px; border-radius: 26px; box-shadow: var(--shadow-lift), var(--rim-light); }

  /* ---------- Footer ---------- */
  .foot { padding: 48px var(--gutter) 40px; border-top: 1px solid var(--hair); }
  .foot__inner {
    max-width: var(--max); margin-inline: auto;
    display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start;
    color: var(--ink-2); font-size: .9375rem;
  }
  .foot__brand { display: grid; gap: 12px; & .brand { color: var(--ink); } }
  .foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; & a { text-decoration: none; &:hover { color: var(--ink); } } }
  .foot__legal { grid-column: 1 / -1; font-size: .8125rem; color: var(--ink-3); }
  @media (width < 720px) { .foot__inner { grid-template-columns: 1fr; } }

  /* ---------- Document pages (privacy, support) ---------- */
  .doc { padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 120px); }
  .doc > * { max-width: 720px; margin-inline: auto; }
  .doc__head { margin-bottom: 48px; display: grid; gap: 16px;
    & h1 { font-size: var(--step-3); letter-spacing: -.045em; }
    & p { color: var(--ink-2); }
  }
  .doc__body {
    & h2 { font-size: var(--step-2); letter-spacing: -.03em; margin: 48px 0 14px; scroll-margin-top: 100px; }
    & h3 { margin: 28px 0 8px; }
    & p, & li { color: color-mix(in oklab, var(--ink) 82%, var(--bg)); margin-bottom: 12px; }
    & ul, & ol { padding-left: 1.25em; margin-bottom: 16px; }
    & a { color: var(--accent-ink); }
    & code { font: .9em var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--surface); }
  }
  .callout {
    padding: 22px 24px; border-radius: 20px; background: var(--surface);
    box-shadow: var(--shadow), var(--rim-light); margin-bottom: 32px;
    & p:last-child { margin-bottom: 0; }
  }
}

@layer motion {
  @keyframes rise { from { opacity: 0; translate: 0 32px; scale: .985; } to { opacity: 1; translate: 0 0; scale: 1; } }
  @keyframes line-in { from { translate: 0 105%; } to { translate: 0 0; } }
  @keyframes fade-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
  @keyframes stage-in { from { opacity: 0; translate: 0 60px; scale: .92; } to { opacity: 1; translate: 0 0; scale: 1; } }
  @keyframes deal { 0% { translate: 40px 0; rotate: 4deg; scale: .9; opacity: 0; } 100% { translate: 0 0; rotate: 0deg; scale: 1; opacity: 1; } }
  @keyframes bob { 50% { translate: 0 -10px; rotate: 2deg; } }
  @keyframes parallax { from { translate: 0 0; } to { translate: 0 var(--_dy, -120px); } }

  @media (prefers-reduced-motion: no-preference) {
    .hero__title .line > span { animation: line-in 1.1s var(--ease-spring) both; }
    .hero__title .line:nth-child(2) > span { animation-delay: .09s; }
    .kicker, .hero__lede, .hero__cta, .facts { animation: fade-up .9s var(--ease-settle) both; }
    .kicker { animation-delay: .05s; }
    .hero__lede { animation-delay: .25s; }
    .hero__cta { animation-delay: .35s; }
    .facts { animation-delay: .45s; }
    .device--hero { animation: stage-in 1.3s var(--ease-spring) .15s both; }
    .readout { animation: fade-up .9s var(--ease-settle) .9s both; }
    .float--umbrella { animation: fade-up 1s var(--ease-settle) .6s both, bob 7s ease-in-out 1.6s infinite; }
    .float--plane { animation: fade-up 1s var(--ease-settle) .75s both, bob 9s ease-in-out 1.8s infinite reverse; }

    @supports (animation-timeline: view()) {
      .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
      .hero__stage { animation: parallax linear both; animation-timeline: scroll(); animation-range: 0 100vh; --_dy: 80px; }
    }
    @supports not (animation-timeline: view()) {
      .js .reveal { opacity: 0; translate: 0 32px; transition: opacity .9s var(--ease-settle), translate 1s var(--ease-settle); }
      .js .reveal.is-in { opacity: 1; translate: 0 0; }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  }

  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease-settle); }
}
