/* ==========================================================================
   eave homepage
   Answer first, three reasons, then the ask (Minto). No framework, no build step
   for the browser: modern CSS does the motion, and every effect is an enhancement.
   The page sets its own day and night bands, so it looks the same on any OS theme.
   ========================================================================== */

/* The fonts, served from here so text does not wait on Google. SIL Open Font License; Latin letters only.
   Files are cached for a year: give a changed font a new name. */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/atkinson-normal-400.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/atkinson-normal-700.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/atkinson-italic-400.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/fraunces-normal-500.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/fraunces-italic-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-normal-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-normal-500.woff2') format('woff2'); }

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

@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, picture, svg { display: block; max-width: 100%; }
  img { height: auto; }
  ul, ol { list-style: none; }
  a { color: inherit; }
  button, input, select { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }
}

@layer tokens {
  /* Registered so the band's glow can animate between warm and amber. */
  @property --light { syntax: '<color>'; inherits: true; initial-value: #FFC58A; }

  :root {
    /* The device is the palette: lid, base, band. */
    --lid:      #9CBDE6;
    --lid-hi:   #C4D9F2;
    --lid-lo:   #6E97CC;
    --blue:     #2A66B0;   /* lid's hue, deep enough to carry text on cream */
    --blue-dk:  #1F4F8C;
    --base:     #F4ECDC;
    --glow:     #FFC58A;
    --amber:    #FF9A2E;

    --cream:    #F9F5EC;
    --cream-2:  #F2EBDD;
    --paper:    #FFFDF8;
    --ink:      #0E1A2E;
    --ink-2:    #465267;
    --ink-3:    #5D697E;
    --night:    #070B14;
    --night-2:  #0F1725;
    --night-3:  #182233;
    --moon:     #F9F5EC;
    --moon-2:   #B6C0CF;
    --moon-3:   #8F9BAE;

    --line-day:   rgb(14 26 46 / .11);
    --line-night: rgb(255 255 255 / .11);

    --sans: 'Atkinson Hyperlegible', Verdana, ui-sans-serif, system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;   /* headings: warm, like print */

    --gutter: clamp(18px, 4vw, 48px);
    --band: clamp(72px, 9vw, 136px);
    --r-s: 12px; --r-m: 20px; --r-l: 30px;

    --out: cubic-bezier(.16, 1, .3, 1);
    --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1);
  }
}

@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: 92px; background: var(--cream); color-scheme: light; }
  body {
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
  }
  h1, h2, h3 { line-height: 1.04; letter-spacing: -.022em; font-weight: 700; text-wrap: balance; }
  p { text-wrap: pretty; }
  h2 { font-size: clamp(2.1rem, 1.3rem + 3.1vw, 4.1rem); }
  h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.016em; word-spacing: .04em; font-optical-sizing: auto; }
  h2 em, h1 em { font-style: italic; }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
  .night :focus-visible { outline-color: var(--lid); }
  ::selection { background: var(--lid); color: var(--ink); }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .skip { position: fixed; top: -80px; left: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; transition: top .2s; }
  .skip:focus { top: 16px; }
  .icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}

@layer layout {
  .wrap { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
  .band { padding-block: var(--band); position: relative; }
  .night { background: var(--night); color: var(--moon); color-scheme: dark; }
  .label {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--blue);
  }
  .night .label { color: var(--lid); }
  .intro { max-width: 860px; margin-bottom: clamp(34px, 4.4vw, 60px); }
  .intro h2 { margin-top: 14px; }
  .intro > h2:first-child { margin-top: 0; }
  /* A page that opens on a band instead of the hero clears the fixed menu. */
  main > .band:first-child { padding-top: max(var(--band), 112px); }
  .intro h1 { margin-top: 14px; font-size: clamp(2.1rem, 1.3rem + 3.1vw, 4.1rem); }
  .intro p { margin-top: 18px; font-size: clamp(1.08rem, 1rem + .35vw, 1.26rem); color: var(--ink-2); max-width: 62ch; }
  .night .intro p { color: var(--moon-2); }
  .fine { font-size: .84rem; color: var(--ink-3); }
  .night .fine { color: var(--moon-3); }
  .fine a { text-underline-offset: 2px; }
}

@layer components {
  /* Buttons */
  .btn {
    --bg: var(--blue); --fg: #fff;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 0 26px; border-radius: 999px;
    background: var(--bg); color: var(--fg);
    font-weight: 700; font-size: 1.04rem; text-decoration: none; white-space: nowrap;
    box-shadow: 0 1px 0 rgb(255 255 255 / .28) inset, 0 12px 26px -12px color-mix(in oklab, var(--bg) 75%, transparent);
    transition: transform .35s var(--spring), background-color .2s, box-shadow .25s;
  }
  .btn:hover { transform: translateY(-2px); background: color-mix(in oklab, var(--bg) 88%, black); }
  .btn:active { transform: translateY(0) scale(.98); }
  .night .btn, .on-night { --bg: var(--lid); --fg: var(--ink); }
  .night .btn:hover, .on-night:hover { background: var(--lid-hi); }
  .btn--quiet { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-day); }
  .btn--quiet:hover { background: rgb(14 26 46 / .05); }
  .night .btn--quiet { --bg: transparent; --fg: var(--moon); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .22); }
  .night .btn--quiet:hover { background: rgb(255 255 255 / .08); }
  .btn--s { min-height: 44px; padding: 0 18px; font-size: .95rem; }
  .btn[disabled] { opacity: .6; cursor: progress; transform: none; }

  /* Nav */
  .nav { position: fixed; inset: 12px 0 auto; z-index: 50; pointer-events: none; }
  .nav__bar {
    pointer-events: auto; position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 6px;
    width: min(1240px, 100% - var(--gutter) * 2 + 16px); margin-inline: auto;
    padding: 8px 8px 8px 16px; border-radius: 999px;
    background: rgb(255 253 248 / .72);
    backdrop-filter: saturate(170%) blur(18px);
    -webkit-backdrop-filter: saturate(170%) blur(18px);
    box-shadow: 0 0 0 1px var(--line-day), 0 12px 34px -20px rgb(14 26 46 / .4);
  }
  .nav__logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
  .nav__logo img { width: 30px; height: 30px; }
  .nav__links { display: flex; align-items: center; gap: 2px; }
  .nav__links a { padding: 9px 13px; border-radius: 999px; text-decoration: none; font-size: .97rem; color: var(--ink-2); transition: background-color .2s, color .2s; }
  .nav__links a:hover { background: rgb(14 26 46 / .06); color: var(--ink); }
  .lang { display: flex; padding: 3px; border-radius: 999px; background: rgb(14 26 46 / .06); font-family: var(--mono); font-size: .74rem; margin-inline: 6px; }
  .lang a { padding: 6px 9px; border-radius: 999px; text-decoration: none; color: var(--ink-2); }
  .lang a[aria-current] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(14 26 46 / .18); }
  .nav__menu { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; }
  .nav__menu:hover { background: rgb(14 26 46 / .06); }
  /* A line of light tracks reading progress, the same line the device wears. */
  .nav__progress { position: absolute; inset: auto 22px 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--lid), var(--glow)); transform: scaleX(0); transform-origin: left; }

  /* Mobile menu: native popover, no JS required */
  .sheet { position: fixed; inset: 72px 12px auto; margin: 0; width: auto; border: 0; padding: 10px; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line-day), 0 30px 60px -20px rgb(14 26 46 / .45); }
  .sheet::backdrop { background: rgb(7 11 20 / .3); }
  .sheet a { display: block; padding: 14px; border-radius: 14px; text-decoration: none; font-size: 1.08rem; font-weight: 700; }
  .sheet a:hover { background: var(--cream-2); }

  /* Sticky call to action */
  .dock {
    position: fixed; z-index: 40; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 16px;
    padding: 8px 8px 8px 20px; border-radius: 999px; color: var(--moon);
    background: rgb(7 11 20 / .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 18px 44px -14px rgb(7 11 20 / .7);
    transform: translate(-50%, 140%); opacity: 0; visibility: hidden;
    transition: transform .55s var(--out), opacity .3s, visibility .55s;
  }
  .dock.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
  .dock span { font-size: .95rem; white-space: nowrap; }
  .dock .btn { --bg: var(--lid); --fg: var(--ink); }

  /* Device, with its light. The amber image crossfades over the warm one. */
  .device { position: relative; display: block; }
  .device__img { width: 100%; }
  .device__alert { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
  .is-alert .device__alert { opacity: 1; animation: pulse 3.6s ease-in-out infinite; }
  /* The room's glow is softer than the amber used for alert icons: light fades as it travels. */
  .is-alert { --light: #FFAD63; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
}

@layer sections {
  /* ── Hero: the worry, the device and the ask, on one screen ───────────── */
  .hero {
    position: relative; isolation: isolate; overflow-x: clip;   /* the cards hang over the bottom edge */
    padding-block: clamp(108px, 14vh, 150px) clamp(18px, 3vh, 40px);
    background:
      radial-gradient(64% 56% at 50% -8%, rgb(156 189 230 / .5), rgb(156 189 230 / 0) 72%),
      var(--cream);
  }
  .hero__copy { display: grid; justify-items: center; text-align: center; }
  /* The headline also answers to the screen's height, so the device stays on the first screen. */
  .hero h1 { font-size: clamp(2.25rem, min(5.2vw, 8.6vh), 4.9rem); line-height: 1.02; letter-spacing: -.02em; margin-top: 14px; max-width: 14em; }
  /* The line from the ads, so a visitor knows they landed in the right place. */
  .hero__lead { margin-top: 16px; font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + .9vw, 1.9rem); line-height: 1.2; color: var(--ink); }
  .hero__lead em { color: var(--blue); }
  :lang(fr) .hero h1 { font-size: clamp(2.05rem, min(4.7vw, 7.8vh), 4.4rem); max-width: 15em; }
  .hero h1 em { color: var(--blue); }
  .hero__sub { margin-top: 14px; font-size: clamp(1.12rem, 1.02rem + .45vw, 1.34rem); line-height: 1.45; color: var(--ink-2); max-width: 41em; }
  .hero__sub strong { color: var(--ink); font-weight: 700; }
  .hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
  .hero__terms { margin-top: 14px; max-width: 44em; }
  .hero__terms a, .close .fine a { color: var(--blue); font-weight: 700; }
  /* Stage: the whole family. The Puck on the back of a phone and the Clip on the left; two Lines on the right,
     one lying flat and one leaning on it to show its sockets. Nothing moves.
     The picture is placed by its own width and centred on the devices, and may run past the
     screen edge on a phone. */
  .stage { --w: clamp(520px, min(52vw, 64vh), 760px); margin-top: clamp(10px, 2vh, 26px); }
  .stage > img { display: block; width: var(--w); max-width: none; height: auto; margin-left: calc(50% - var(--w) / 2); }

  /* The ad's landing page: a bare menu, one device, and how it works in three lines. */
  .nav--bare .btn { margin-left: auto; }
  .stage.stage--one { --w: clamp(300px, min(38vw, 50vh), 500px); }
  .stage--one .ping { margin-bottom: clamp(-22px, -2vw, -8px); }
  .stage__cap { margin-top: 4px; text-align: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
  #how3 { padding-block: clamp(36px, 5vw, 72px) 0; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
  .steps li { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-m); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-day); }
  .steps b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-weight: 500; font-size: .85rem; }
  .steps li:nth-child(2) b { background: var(--amber); color: var(--ink); }
  .steps li:nth-child(3) b { background: var(--blue); }
  .steps h3 { margin-top: 14px; font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); line-height: 1.15; }
  .steps p { margin-top: 8px; color: var(--ink-2); line-height: 1.45; }
  .steps__note { margin-top: 20px; text-align: center; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); }
  @media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .stage.stage--one { --w: min(86vw, 420px); } }
  /* What the family member sees: the text alert, drawn in the page so it can be read aloud and translated. */
  .ping { position: relative; z-index: 2; display: grid; justify-items: center; gap: 8px; margin-bottom: clamp(-34px, -3vw, -14px); }
  .ping small { font-family: var(--mono); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
  .ping__card { display: grid; grid-template-columns: 34px 1fr; gap: 1px 12px; width: min(100%, 360px); padding: 13px 16px 14px 13px; border-radius: 20px; text-align: left; background: var(--paper); box-shadow: 0 0 0 1px var(--line-day), 0 26px 48px -22px rgb(14 26 46 / .5); }
  .ping__card img { grid-row: span 3; width: 34px; height: 34px; margin: 0; border-radius: 9px; }
  .ping__app { display: flex; justify-content: space-between; font-size: .84rem; color: var(--ink-3); }
  .ping__app b { color: var(--ink); } .ping__app i { font-style: normal; }
  .ping__card strong { font-size: 1.06rem; line-height: 1.22; }
  .ping__card > span:last-child { font-size: .95rem; line-height: 1.3; color: var(--ink-2); }

  @media (max-width: 1000px) {
    .stage { --w: min(100vw, 640px); }
  }
  @media (max-width: 860px) {
    .hero { padding-top: 104px; }
  }

  /* A button's arrow leans forward on hover. */
  .btn .icon { transition: translate .35s var(--out); }
  .btn:hover .icon:last-child { translate: 4px 0; }

  /* ── The last word ────────────────────────────────────────────────────── */
  .close { padding-block: 0 var(--band); }
  .close__in { display: grid; justify-items: center; text-align: center; padding: clamp(36px, 6vw, 84px) clamp(18px, 4vw, 52px); border-radius: var(--r-l); background: var(--cream-2); }
  .close img { width: clamp(150px, 17vw, 230px); margin-bottom: clamp(14px, 2vw, 26px); }
  .close h2 { max-width: 15em; }
  .close h2 em { color: var(--blue); }
  .close .btn { margin-top: clamp(22px, 3vw, 34px); }
  .close .fine { margin-top: 14px; max-width: 40em; }

  /* Key line: the three reasons, on the fold */

  /* ── Demo ─────────────────────────────────────────────────────────────── */
  .demo { --light: var(--glow); transition: --light 1s ease; isolation: isolate; overflow: clip; }
  .demo::before { /* the room takes on the colour of the light */
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(44% 44% at 50% 62%, color-mix(in oklab, var(--light) 24%, transparent), transparent 74%);
  }
  .picks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
  .picks button {
    min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; color: var(--moon-2);
    box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .16); transition: background-color .2s, color .2s, box-shadow .2s;
  }
  .picks button:hover { color: var(--moon); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .38); }
  .picks button[aria-pressed='true'] { background: var(--lid); color: var(--ink); box-shadow: none; }

  .room { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, .82fr); gap: 14px; align-items: stretch; }
  .pane { position: relative; min-width: 0; padding: 20px; border-radius: var(--r-l); background: rgb(15 23 37 / .74); box-shadow: inset 0 0 0 1px var(--line-night); display: flex; flex-direction: column; }
  .pane__label { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--moon-3); }
  .meter { margin-top: 14px; }
  .meter__head { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; color: var(--moon-2); }
  .meter__head strong { color: var(--moon); }
  .meter__track { height: 8px; margin-top: 7px; border-radius: 4px; background: rgb(255 255 255 / .1); overflow: hidden; }
  .meter__fill { height: 100%; width: calc(var(--risk, 4) * 1%); border-radius: 4px; background: linear-gradient(90deg, var(--glow), var(--amber)); transition: width .7s var(--out); }
  .script { display: grid; gap: 8px; margin-top: 16px; flex: 1; align-content: start; }
  .script li { padding: 9px 12px; border-radius: 14px; border-bottom-left-radius: 4px; background: var(--night-3); font-size: .97rem; line-height: 1.3; opacity: .0; transform: translateY(6px); transition: opacity .35s, transform .5s var(--out); }
  .script li.is-in { opacity: 1; transform: none; }
  .script li.me { background: rgb(156 189 230 / .16); border-radius: 14px; border-bottom-right-radius: 4px; justify-self: end; max-width: 80%; }
  .script small { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--moon-3); margin-bottom: 2px; }
  .tactics { display: flex; flex-wrap: wrap; gap: 6px; min-height: 58px; align-content: flex-start; margin-top: 12px; }
  .tactics span { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--glow); animation: pop .5s var(--spring); }
  @keyframes pop { from { transform: scale(.7); opacity: 0; } }

  .pane--device { justify-content: space-between; overflow: hidden; text-align: center; }
  .pane--device .device { margin: auto 0; padding-block: 18px; isolation: isolate; }
  .state-read { display: grid; gap: 2px; }
  .state-read strong { font-size: 1.24rem; }
  .state-read span { color: var(--moon-2); font-size: .95rem; line-height: 1.3; }
  .state-read i { font-style: normal; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--light); margin-right: 8px; box-shadow: 0 0 12px var(--light); }

  .pane--phone { padding: 10px; }
  .phone { flex: 1; border-radius: 24px; padding: 42px 12px 14px; background: linear-gradient(170deg, #1B2A44, #0B1220); position: relative; min-height: 360px; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
  .phone::before { content: ''; position: absolute; top: 10px; left: 50%; translate: -50%; width: 70px; height: 20px; border-radius: 12px; background: #000; }
  .phone__time { text-align: center; font-size: 2.7rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
  .phone__date { text-align: center; font-size: .84rem; color: var(--moon-2); margin: 4px 0 18px; }
  .note { display: grid; grid-template-columns: 30px 1fr; gap: 1px 9px; padding: 10px; border-radius: 16px; background: rgb(255 255 255 / .13); backdrop-filter: blur(6px); margin-top: 8px; opacity: 0; transform: translateY(-14px) scale(.96); transition: opacity .35s, transform .65s var(--spring); }
  .note.is-in { opacity: 1; transform: none; }
  .note__mark { grid-row: span 2; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--amber); color: var(--ink); }
  .note--text .note__mark { background: #57C27E; }
  .note strong { font-size: .86rem; line-height: 1.2; }
  .note span { font-size: .8rem; line-height: 1.28; color: var(--moon); }

  .scrub { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
  .scrub__play { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .1); }
  .scrub__play:hover { background: rgb(255 255 255 / .18); }
  .scrub input { flex: 1; min-width: 0; accent-color: var(--lid); height: 24px; }
  .scrub__note { margin-top: 14px; }

  /* ── Why it works ─────────────────────────────────────────────────────── */
  .versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .vs { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-l); display: flex; flex-direction: column; gap: 16px; }
  .vs--old { background: var(--cream-2); }
  .vs--new { background: var(--ink); color: var(--moon); }
  .vs h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
  .vs__sees { font-family: var(--mono); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
  .vs--new .vs__sees { color: var(--lid); }
  .vs__sample { flex: 1; display: grid; place-content: center start; min-height: 112px; padding: 16px 18px; border-radius: 16px; background: var(--paper); font-size: 1.14rem; line-height: 1.4; }
  .vs--new .vs__sample { background: var(--night-3); font-size: 1.24rem; }
  .vs__sample small { display: block; font-size: .84rem; color: var(--ink-3); }
  .vs mark { background: color-mix(in oklab, var(--glow) 30%, transparent); color: var(--glow); padding: 0 .22em; border-radius: 5px; font-weight: 700; }
  .vs__call { font-size: 1.04rem; color: var(--ink-2); }
  .vs--new .vs__call { color: var(--moon-2); }

  .proof { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(26px, 4vw, 64px); margin-top: 14px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-day); }
  .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .stats dt { font-size: .98rem; line-height: 1.25; color: var(--ink-2); order: 2; margin-top: 6px; }
  .stats div { display: flex; flex-direction: column; }
  .stats dd { font-size: clamp(2.5rem, 1.9rem + 2.2vw, 4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; order: 1; }
  .proof__lead { margin-bottom: 18px; }
  .ranks h3 { font-size: 1.04rem; letter-spacing: 0; line-height: 1.3; margin-bottom: 12px; }
  .ranks li { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 7px 0; font-size: .97rem; }
  .ranks li span:nth-child(2) { font-variant-numeric: tabular-nums; color: var(--ink-2); }
  .ranks i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 0 4px 4px 0; background: var(--blue); width: calc(var(--v) * 1%); }

  .rail { margin-top: clamp(30px, 4vw, 48px); overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
  .rail ul { display: flex; gap: 10px; width: max-content; padding-inline: 5vw; }
  .rail li { font-size: 1.1rem; white-space: nowrap; padding: 11px 18px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-day); }
  .rail small { font-family: var(--mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); margin-left: 10px; }

  /* ── Reason 2 ─────────────────────────────────────────────────────────── */
  .points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .points li { padding: 20px; border-radius: var(--r-m); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-night); }
  .points .icon { width: 24px; height: 24px; color: var(--lid); margin-bottom: 12px; }
  .points strong { display: block; font-size: 1.1rem; line-height: 1.22; }
  .points span { display: block; margin-top: 6px; font-size: .96rem; line-height: 1.34; color: var(--moon-2); }
  @media (max-width: 1060px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 480px) { .points { grid-template-columns: 1fr; } }

  /* ── Nothing changes: bento ───────────────────────────────────────────── */
  .bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
  .cell { position: relative; overflow: hidden; border-radius: var(--r-l); min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--night-2); color: var(--moon); isolation: isolate; }
  .cell > img, .cell > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale 1.2s var(--out); }
  .cell > picture { position: absolute; inset: 0; z-index: -2; }
  .cell:hover > img, .cell:hover > picture img { scale: 1.035; }
  .cell__text { padding: clamp(18px, 2.4vw, 28px); background: linear-gradient(0deg, rgb(7 11 20 / .9), rgb(7 11 20 / .64) 62%, transparent); padding-top: 64px; }
  .cell h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2.15rem); }
  .cell p { margin-top: 7px; color: rgb(249 245 236 / .86); font-size: 1rem; line-height: 1.38; }
  .cell--day { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-day); }
  .cell--day .cell__text { background: none; padding-top: clamp(18px, 2.4vw, 28px); }
  .cell--day p { color: var(--ink-2); }
  .c-7 { grid-column: span 7; min-height: 480px; } .c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; } .c-3 { grid-column: span 3; } .c-12 { grid-column: span 12; }
  .c-5.is-tall { min-height: 480px; }

  /* Three light states */
  .states { --light: var(--glow); }
  .states img { opacity: 0; transition: opacity .7s ease; object-position: 50% 58%; }
  .states img.is-on { opacity: 1; transform: none; }
  .states__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .states__tabs button { min-height: 42px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--moon); background: rgb(255 255 255 / .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .states__tabs button:hover { background: rgb(255 255 255 / .2); }
  .states__tabs button[aria-pressed='true'] { background: var(--moon); color: var(--ink); }
  .states__say { min-height: 3.9em; }

  /* Ports */
  .ports { display: grid; grid-template-rows: auto 1fr; justify-content: stretch; }
  .ports img { position: static; width: 100%; height: 220px; object-fit: cover; object-position: 50% 42%; z-index: 0; }
  .ports ol { display: grid; gap: 8px; margin-top: 12px; }
  .ports li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: .96rem; line-height: 1.3; color: var(--ink-2); }
  .ports strong { color: var(--ink); }
  .ports b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-family: var(--mono); font-weight: 500; font-size: .8rem; background: #1F7A5C; }
  .ports li:nth-child(2) b { background: #3A55F0; }
  .ports li:nth-child(3) b { background: var(--ink); }

  /* Privacy */


  /* ── Family ───────────────────────────────────────────────────────────── */
  .family__banner { border-radius: var(--r-l); width: 100%; margin-bottom: 14px; }
  .family { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
  .kit { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-l); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-night); }
  .kit--first { background: linear-gradient(165deg, #1E3355, var(--night-2)); box-shadow: inset 0 0 0 1.5px rgb(156 189 230 / .5); }
  .kit__status { align-self: flex-start; padding: 4px 11px; border-radius: 999px; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; background: rgb(255 255 255 / .1); color: var(--moon-2); }
  .kit--first .kit__status { background: var(--glow); color: var(--ink); }
  .kit img { width: min(88%, 300px); margin: 14px auto 16px; transition: transform .7s var(--spring); }
  .kit:hover img { transform: translateY(-6px) rotate(-1deg); }
  .kit h3 { font-size: 1.7rem; }
  .kit__for { color: var(--lid); font-weight: 700; margin-top: 3px; }
  .kit p:not(.kit__for) { margin-top: 10px; color: var(--moon-2); font-size: .99rem; line-height: 1.42; }
  .kit ul { display: grid; gap: 6px; margin: 14px 0 20px; font-size: .95rem; line-height: 1.3; }
  .kit li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
  .kit li .icon { color: var(--lid); margin-top: 2px; width: 16px; height: 16px; }
  .kit .btn { margin-top: auto; width: 100%; }
  .family__note { margin-top: 16px; }

  /* ── FAQ ──────────────────────────────────────────────────────────────── */
  .faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(26px, 5vw, 76px); align-items: start; }
  .faq__head { position: sticky; top: 100px; }
  .faq__head h2 { margin-top: 14px; }   /* same size as every other section heading */
  .faq__head p { margin-top: 14px; color: var(--ink-2); }
  .faq details { border-top: 1px solid var(--line-day); }
  .faq details:last-child { border-bottom: 1px solid var(--line-day); }
  .faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 2px; font-weight: 700; font-size: 1.16rem; line-height: 1.25; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary .icon { color: var(--blue); transition: rotate .3s var(--out); }
  .faq details[open] summary .icon { rotate: 45deg; }
  .faq details p { padding: 0 34px 22px 2px; color: var(--ink-2); }
  .faq details p a { color: var(--blue); }

  /* ── Reserve ──────────────────────────────────────────────────────────── */
  /* Reserve comes straight after the hero; the evidence follows it. */
  .reserve { padding-block: clamp(28px, 4vw, 64px) 0; }
  #who { padding-block: clamp(56px, 7vw, 104px) 0; }
  .who { max-width: 50em; }
  .who h2 { margin-top: 14px; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.2rem); }
  .who p { margin-top: 18px; font-size: clamp(1.08rem, 1rem + .35vw, 1.26rem); color: var(--ink-2); max-width: 62ch; }
  .who a { color: var(--blue); }
  #simple { padding-block: clamp(56px, 7vw, 104px) 0; }
  #faq { padding-top: clamp(56px, 7vw, 104px); }
  .panel { position: relative; padding: clamp(14px, 4vw, 52px); border-radius: var(--r-l); }
  /* See it work: the two dark panels sit close to the light section between them. */
  #how { padding-bottom: 0; }
  #line { padding-top: 0; }
  .reserve__panel { position: relative; isolation: isolate; overflow: clip; padding: clamp(14px, 4vw, 52px); border-radius: var(--r-l); }
  .reserve__panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 22% 56%, rgb(255 197 138 / .16), transparent 72%), radial-gradient(44% 50% at 86% 10%, rgb(156 189 230 / .16), transparent 70%); }
  .reserve__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(26px, 5vw, 72px); align-items: center; }
  .reserve h2 { margin-top: 14px; }
  .reserve__art { margin: clamp(10px, 2vw, 26px) auto 6px; width: min(88%, 520px); view-transition-name: reserve-device; }
  .sum { margin-top: 16px; border-radius: var(--r-m); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--line-night); padding: 6px 18px; }
  .sum div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-night); line-height: 1.3; }
  .sum div:first-child { border-top: 0; }
  .sum dt { color: var(--moon-2); }
  .sum dd { font-weight: 700; text-align: right; white-space: nowrap; }
.sum div:last-child dd { white-space: normal; }
  /* A signed offer from an outreach email (home.js): above the form on phones too. */
  .offer { margin-top: 16px; border-radius: var(--r-m); padding: 14px 18px; background: rgb(255 197 138 / .1); box-shadow: inset 0 0 0 1px rgb(255 197 138 / .42); color: var(--moon); line-height: 1.45; }
  .offer strong { display: block; color: var(--glow); font-family: var(--display); font-size: 1.2em; font-weight: 600; margin-bottom: 2px; }
  .sum dt s { color: var(--moon-3); }

  .checkout { padding: clamp(20px, 3vw, 34px); border-radius: var(--r-l); background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px -40px rgb(156 189 230 / .55); color-scheme: light; }
  .checkout :focus-visible { outline-color: var(--blue); }
  .checkout__lead { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line-day); }
  .checkout__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 1.35rem + 1vw, 2.15rem); line-height: 1.1; letter-spacing: -.015em; }
  .checkout__lead p + p { margin-top: 8px; color: var(--ink-2); line-height: 1.4; }
  .checkout fieldset { border: 0; margin-bottom: 20px; }
  .checkout legend, .checkout > label, .field > label { display: block; font-weight: 700; margin-bottom: 9px; }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .chip { position: relative; }
  .chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
  .chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-day); font-size: .95rem; transition: background-color .2s, box-shadow .2s; }
  .chip:hover span { box-shadow: inset 0 0 0 1.5px var(--lid-lo); }
  .chip input:checked + span { background: var(--ink); color: var(--moon); box-shadow: none; }
  .chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
  .field { margin-bottom: 14px; }
  .field input { width: 100%; min-height: 56px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line-day); font-size: 1.08rem; }
  .field input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--blue); }
  .checkout .btn { width: 100%; min-height: 60px; --bg: var(--blue); --fg: #fff; font-size: 1.1rem; }
  .checkout .btn:hover { background: var(--blue-dk); }
  .checkout__hint { margin-top: 12px; }
  /* The free way in, for someone who isn't ready to pay. */
  .notify { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 6px; }
  .notify .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 10px; }
  .notify__or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; font-size: .9rem; color: var(--ink-3); }
  .notify__or::before, .notify__or::after { content: ''; height: 1px; background: var(--line-day); }
  .checkout .notify .btn { min-height: 52px; --bg: transparent; --fg: var(--ink); font-size: 1rem; box-shadow: inset 0 0 0 1.5px var(--line-day); }
  .checkout .notify .btn:hover { background: rgb(14 26 46 / .05); }
  .notify.is-done { display: none; }
  .status { min-height: 1.4em; margin-top: 10px; font-weight: 700; font-size: .95rem; color: var(--blue-dk); }
  .status.is-err { color: #B3261E; }
  .assure { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 16px 20px; margin-top: clamp(22px, 3vw, 34px); }
  .assure li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .94rem; line-height: 1.3; color: var(--moon-2); }
  .assure strong { display: block; color: var(--moon); }
  .assure .icon { color: var(--lid); margin-top: 2px; }
  .sibling { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px 18px; border-radius: var(--r-m); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--line-night); }
  .sibling strong { display: block; }
  .sibling span { color: var(--moon-2); font-size: .94rem; }

  /* ── Video and developers ─────────────────────────────────────────────── */
  .film { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: center; }
  .film h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
  .film p { margin-top: 12px; color: var(--ink-2); }
  .film__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: var(--ink); }
  .film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .film__play { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; color: var(--moon); background: radial-gradient(60% 70% at 50% 60%, rgb(156 189 230 / .3), transparent 70%), var(--night); }
  .film__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
  .film__play span { position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--lid); color: var(--ink); transition: transform .4s var(--spring); }
  .film__play:hover span { transform: scale(1.08); }

  .devs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-l); background: var(--cream-2); margin-top: clamp(36px, 5vw, 64px); }
  .devs h2 { margin-top: 12px; font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
  .devs p { margin-top: 12px; color: var(--ink-2); }
  .devs__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  .code { border-radius: var(--r-m); background: var(--night); color: var(--moon); overflow: hidden; font-family: var(--mono); font-size: .84rem; line-height: 1.55; }
  .code__bar { padding: 10px 16px; font-size: .74rem; color: var(--moon-3); border-bottom: 1px solid var(--line-night); }
  .code pre { padding: 16px; overflow-x: auto; }
  .code .k { color: var(--lid); } .code .s { color: var(--glow); } .code .c { color: var(--moon-3); }

  /* ── Footer ───────────────────────────────────────────────────────────── */
  .foot { background: var(--night); color: var(--moon-2); padding: 40px 0 calc(40px + 70px); font-size: .95rem; position: relative; }
  .foot::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--lid) 12%, var(--glow) 88%, transparent); }
  .foot__row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
  .foot__logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--moon); font-size: 1.14rem; }
  .foot__logo img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
  .foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
  .foot a { text-decoration: none; }
  .foot a:hover { color: var(--moon); text-decoration: underline; }
  .foot__copy { margin-top: 18px; font-size: .86rem; color: var(--moon-3); }

  /* ── Review fixes, kept together ──────────────────────────────────────── */
  /* The nav stays cream over night bands instead of going muddy. */
  .nav__bar { background: rgb(255 253 248 / .93); }
  /* The dock is for phones; desktop already has the nav's button. */
  @media (min-width: 861px) { .dock { display: none; } }
  .foot { padding-bottom: 40px; }
  @media (max-width: 860px) { .foot { padding-bottom: 110px; } }


  /* Demo: one screen at 1440x900. */
  .demo .intro { margin-bottom: 18px; max-width: none; }
  .demo .intro h2, .demo .intro h1 { font-size: clamp(2rem, 1.3rem + 2.5vw, 3.4rem); margin-top: 10px; }
  .picks { margin-bottom: 14px; }
  .pane { padding: 16px 18px; }
  .script { gap: 6px; margin-top: 12px; }
  .script li { padding: 7px 11px; font-size: .94rem; }
  .tactics { min-height: 52px; margin-top: 10px; }
  .pane--device { padding-block: 16px; }
  .pane--device > .device { margin: auto; padding: 0; width: 100%; max-width: 410px; isolation: isolate; }
  .cell.ports { display: flex; }

  .pane--phone { padding: 10px; }
  .state-read > span { color: var(--moon-2); font-size: .95rem; line-height: 1.3; }
  .state-read strong span { color: inherit; font-size: inherit; }
  .scrub, .scrub__note { margin-top: 10px; }

  /* Reason 2 has a picture now. */
  .twofold { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
  .twofold .intro { margin: 0; }
  .twofold .points { grid-column: 1 / -1; }
  .scene { position: relative; margin: 0; }
  .scene img { width: 100%; border-radius: var(--r-l); }
  .scene__note { position: absolute; right: 4%; top: 6%; display: grid; grid-template-columns: 34px 1fr; gap: 1px 10px; width: min(70%, 310px); padding: 12px 14px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 44px -20px rgb(7 11 20 / .55); }
  .scene__note i { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--amber); }
  .scene__note strong { font-size: .96rem; line-height: 1.2; }
  .scene__note span { font-size: .87rem; line-height: 1.25; color: var(--ink-2); }

  /* Light states: the device sits clear of the text. */
  .states img { object-position: 50% 82%; }
  .states .cell__text { background: linear-gradient(0deg, rgb(7 11 20 / .94), rgb(7 11 20 / .78) 70%, transparent); }

  /* Stacked cells: picture above, words below, nothing covering the subject. */
  .cell--stack { justify-content: flex-start; color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-day); }
  .cell.cell--stack > picture { position: static; display: block; }
  .cell.cell--stack > picture img { position: static; display: block; width: 100%; height: 214px; object-fit: cover; }
  .cell--stack .cell__text { background: none; padding-top: 18px; }
  .cell--stack p { color: var(--ink-2); }
  .cell.ports > picture img { object-position: 50% 46%; }
  .cell.feel > picture img { object-position: 50% 74%; }
  /* Coming soon: Puck and Clip, two stacked cells side by side. */
  .c-6 { grid-column: span 6; }
  .soon .cell.cell--stack > picture img { height: clamp(220px, 24vw, 330px); }
  .soon .cell.clip > picture img { object-position: 50% 62%; }
  .soon__tag { display: inline-block; margin-bottom: 12px; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
  .soon__note { margin-top: 20px; text-align: center; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); }

  /* Inside a night band, the checkout is still a daylight card. */
  .night .checkout .fine { color: var(--ink-3); }
  .checkout .fine a { color: var(--blue); }

  /* ── Responsive ───────────────────────────────────────────────────────── */
  @media (max-width: 1060px) {
    .nav__links { display: none; }
    .nav__menu { display: grid; }
    .room { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .pane--device { grid-column: 1 / -1; order: -1; }
    .pane--device .device { width: min(60%, 340px); margin-inline: auto; }
    .c-7, .c-5, .c-4, .c-3 { grid-column: span 6; }
    .c-7 { grid-column: span 12; }
    .family { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (max-width: 860px) {
    .versus, .proof, .faq, .reserve__grid, .film, .devs, .twofold { grid-template-columns: 1fr; }
    .faq__head { position: static; }
    .family { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
    .kit { flex: 0 0 min(84vw, 340px); scroll-snap-align: center; }
    /* Heading, then the form, then the small print: someone tapping Reserve wants the form. */
    .reserve__grid { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
    .reserve__copy { display: contents; }
    .reserve__copy .label { align-self: flex-start; }
    .reserve h2 { margin-top: 0; }
    .checkout { order: 1; }
    .sum { order: 2; margin-top: 0; }
    .reserve__art { display: none; }
  }
  @media (max-width: 620px) {
    .room { grid-template-columns: 1fr; }
    .pane--phone { order: 2; }
    .phone { min-height: 300px; }
    .bento { display: flex; flex-direction: column; }
    .cell, .c-7, .c-5.is-tall { min-height: 320px; }
    /* Narrow photo cells stack too, so words never sit on the device. */
    .cell:not(.states) { justify-content: flex-start; }
    .cell:not(.states) > picture { position: static; display: block; }
    .cell:not(.states) > picture img { position: static; display: block; width: 100%; height: 240px; object-fit: cover; }
    .cell:not(.states):not(.cell--stack) .cell__text { background: none; padding-top: 18px; }
    .c-7 > picture img { object-position: 62% 60%; }
    /* The light-states card is about the light, so nothing may sit on top of it here. */
    .cell.states { justify-content: flex-start; padding-top: 236px; }
    .cell.states > img { inset: 0 0 auto; height: 236px; object-position: 50% 62%; }
    .cell.states .cell__text { background: none; padding-top: 18px; }
    .ports { min-height: 0; }
    .assure { grid-template-columns: 1fr; }
    .hero__cta .btn { flex: 1 1 100%; }
    /* On a phone the text alert comes straight after the headline, ahead of the details and the device. */
    .hero > .wrap { display: flex; flex-direction: column; align-items: center; }
    .hero__copy, .stage { display: contents; }
    .hero__sub { order: 2; } .hero__cta { order: 3; align-self: stretch; } .hero__terms { order: 4; }
    .ping { order: 1; margin: 18px 0 4px; align-self: stretch; }
    .stage > img { order: 5; align-self: flex-start; margin-top: 8px; }
    .stage__cap { order: 6; }
    .dock span { display: none; }
    .dock { padding: 6px; }
    .lang { margin-inline: 2px; }
    .stats dd { font-size: 2.4rem; }
  }
}

@layer sections {
  /* Long button labels wrap on a small phone instead of making the page wider than the screen. */
  @media (max-width: 480px) {
    .btn:not(.btn--s) { white-space: normal; line-height: 1.2; padding: 8px 18px; text-align: center; min-width: 0; }
  }
}

@layer motion {
  ::view-transition-old(reserve-device), ::view-transition-new(reserve-device) { animation-duration: .4s; }

  @media (prefers-reduced-motion: no-preference) {
    .hero__copy > * { animation: rise 1s var(--out) backwards; }
    .hero__copy > :nth-child(2) { animation-delay: .06s; }
    .hero__copy > :nth-child(3) { animation-delay: .12s; }
    .hero__copy > :nth-child(4) { animation-delay: .18s; }
    .hero__copy > :nth-child(5) { animation-delay: .24s; }
    @keyframes rise { from { translate: 0 18px; } }   /* no fade: hidden text delays the first paint */

    /* Scroll-driven: no JS, and nothing is hidden if a browser lacks it. */
    @supports (animation-timeline: view()) {
      .nav__progress { animation: grow linear both; animation-timeline: scroll(root); }
      @keyframes grow { to { transform: scaleX(1); } }
      .in { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
      @keyframes lift { from { opacity: 0; translate: 0 34px; } }
      .rail ul { animation: drift linear both; animation-timeline: view(inline); }
      .rail { overflow: clip; }
      .rail ul { animation-timeline: scroll(root); animation-range: 8% 62%; }
      @keyframes drift { from { translate: 0 0; } to { translate: -46% 0; } }
      .family__banner { animation: unveil linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
      @keyframes unveil { from { scale: .94; opacity: .4; } }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .rail { overflow-x: auto; }
  }
}
