/* ==========================================================================
   THE DRIVE — home page layer.
   Loads on top of site.css, which keeps every token, the button/chip
   primitives, the header, the language switcher and the focus styles.
   Nothing in here redefines a colour; it only deploys them differently.

   The one idea: colour is not a section background. Colour is LIGHT, and it
   arrives from the ceiling, because that is where the product is.
   ========================================================================== */

/* --------------------------------------------------------------- chapters */
.ch{position:relative; padding:clamp(72px,12vh,140px) 0; isolation:isolate}
.ch-lead{max-width:60ch}
/* centred ledes balance their lines: "pretty" still left a lone "出現。" on line 2 */
.ch-lead.center .lede{text-wrap:balance}
/* ...and in zh, these and their h2 break only after punctuation, so balancing cannot split a
   phrase like 「它｜就」 or 「最｜後」; anywhere is the fallback for narrow phones */
:lang(zh) .ch-lead.center :is(h2,.lede){word-break:keep-all; overflow-wrap:anywhere}
.ch-label{
  font:700 12.5px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink-4); display:block; margin-bottom:22px;
}
/* Every chapter opens on a rule. The chapters are all transparent with nothing
   but 72px of air between them, which works while the layout keeps changing --
   but where one chapter closes on a centred line and the next opens with a
   centred heading, the two read as one passage. The rule says plainly: that
   was the end of something, this is the start of the next thing.
   Scoped to .ch, so it skips the hero (chapter 00 sits inside it), the pinned
   acts stage and the download band, all of which have their own edges. */
.ch > .wrap > .ch-lead > .ch-label,
.ch > .wrap > .ch-label{
  display:flex; align-items:center; gap:16px; margin-bottom:24px;
}
.ch > .wrap > .ch-lead > .ch-label::after,
.ch > .wrap > .ch-label::after{
  content:""; flex:1 1 auto; height:1px; background:var(--line-2);
}
/* a centred chapter gets the rule on both sides so the label stays centred */
.ch .ch-lead.center > .ch-label::before{
  content:""; flex:1 1 auto; height:1px; background:var(--line-2);
}
.ch h2{font-size:clamp(30px,4.6vw,56px); letter-spacing:-.028em; margin:0}
.ch .lede{margin-top:20px}

/* the light from the ceiling: one radial bloom per beat, in that alert's SOFT
   tier, anchored to the top centre of the section. This is the entire
   background treatment on this page — no section washes, no bands. */
.ceiling{
  position:absolute; inset:0 0 auto; height:min(88vh,900px); z-index:-1;
  pointer-events:none; opacity:0; transform:scale(.92);
  background:radial-gradient(58% 62% at 50% 0%, var(--e-soft,transparent), transparent 72%);
}

/* ------------------------------------------------------------------- hero */
.drive-hero{
  min-height:calc(100svh - var(--hdr-h)); display:grid; align-content:center;
  padding:clamp(48px,6vh,84px) 0 clamp(56px,7vh,88px); position:relative;
}
/* Display type on a full-height hero has to answer to the viewport HEIGHT as
   well as its width, or a laptop in landscape pushes the call to action off
   the fold while a desktop looks fine. */
.drive-hero h1{
  font-size:clamp(38px,min(7.2vw,10.4vh),100px); line-height:.99; letter-spacing:-.035em;
  max-width:19ch; margin:16px 0 0; text-wrap:balance;
}
.drive-hero .pane{max-width:min(100%,36vh)}
.drive-hero-hint{position:absolute; left:50%; translate:-50% 0; bottom:clamp(16px,3vh,32px)}
.drive-hero-hint .hint{margin-top:0}
/* The brand lime in the hero, drawn like a highlighter stroke behind the
   words rather than used as the ink. #AACC03 is 1.80:1 on the page ground --
   under the 3.0 large-text threshold -- so lime letters would read faint, not
   bold. The type stays near-black: 18:1 above the stroke, 9.97:1 across it.
   A background gradient rather than a pseudo-element, so there is no z-index
   or stacking-context to get wrong. */
.drive-hero h1 .em{
  /* One stroke on one line (Julia, 2026-11-10): the highlighted phrase never wraps, so the gradient
     is never cut in two. It marks the main claim, "AI watches the back seat," / "la IA cuida a tu
     bebé", the same thing zh marks with 「AI 全程守護後座」; the closing phrase follows as plain text
     (hero.h1z). The second sentence used to wrap inside the highlight, one restarting stroke per line. */
  display:inline-block; white-space:nowrap; color:var(--ink);
  padding-inline:.14em;
  background-image:var(--aurora-btn);
  background-repeat:no-repeat;
  background-size:100% 38%;
  background-position:0 88%;
}
.drive-hero .lede{max-width:44ch; font-size:clamp(16.5px,1.45vw,19px)}
.drive-hero-cta{display:flex; flex-wrap:wrap; gap:12px; margin-top:30px}
.drive-hero-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.8fr);
                 gap:clamp(32px,5vw,64px); align-items:center;
                 margin-top:clamp(26px,4.2vh,48px)}
.hero-trust{margin-top:34px; padding-top:26px; border-top:1px solid var(--line)}
@media (max-width:900px){
  .drive-hero-grid{grid-template-columns:1fr}
  /* the highlighted line never wraps, so on a narrow screen the headline shrinks until that line fits
     the column: --hl is its width in em (Fredoka, -.035em tracking, plus the .14em padding each side) */
  .drive-hero h1{max-width:none; --hl:11;
    font-size:min(clamp(38px,min(7.2vw,10.4vh),100px), calc((100vw - 2 * var(--gut) - 8px) / var(--hl)))}
  :lang(es) .drive-hero h1{--hl:8.9}
  /* Stacked, the hero is taller than the fold and no amount of shrinking
     fixes that honestly. Let it run, and let the scroll hint travel with the
     content instead of pretending to sit at a fold it cannot reach. */
  .drive-hero{min-height:0; padding-bottom:clamp(32px,5vh,48px)}
  .drive-hero .pane{max-width:min(100%,52vh)}
  .drive-hero-hint{position:static; translate:none}
  .drive-hero-hint .hint{margin-top:26px}
}

/* scroll hint — the only thing that moves before the reader does */
.hint{display:flex; align-items:center; gap:10px; margin-top:40px;
      font:700 12px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase; color:var(--ink-4)}
.hint i{display:block; width:1px; height:34px; background:linear-gradient(var(--ink-4),transparent);
        transform-origin:top; animation:hintDrop 2.4s ease-in-out infinite}
@keyframes hintDrop{0%,100%{transform:scaleY(.35); opacity:.4} 50%{transform:scaleY(1); opacity:1}}

/* ------------------------------------------------------- coverage diagram
   Chapter 01 says a mirror gives you one seat and a ceiling camera sees the
   bench. This draws that. It is deliberately a drawing and not an overlay on
   a photograph: the thing being shown is invisible, and every shipped still
   has an English alert banner burnt into it. No angle is quoted -- the site
   is not allowed to state one, and the claim here is only about reach. */
.fov{margin:clamp(30px,5vh,52px) 0 0; text-align:center}
.fov svg{width:100%; max-width:640px; height:auto; display:block; margin-inline:auto}
.fov-roof{stroke:var(--ink-4); stroke-width:2; fill:none; stroke-linecap:round}
.fov-edge{stroke:var(--primary-ink); stroke-width:1.5; fill:none;
          stroke-dasharray:6 5; opacity:.55}
.fov-unit{fill:var(--card); stroke:var(--ink-4); stroke-width:1.5}
.fov-lens{fill:var(--ink)}
.fov-bench{fill:var(--card-2); stroke:var(--line-2); stroke-width:1.5}
.fov-seats rect{fill:var(--card); stroke:var(--s); stroke-width:2.5}
.fov-cushion{stroke:var(--s); stroke-width:2.5; stroke-linecap:round; opacity:.55; fill:none}
.fov figcaption{
  margin-top:16px; font-size:15px; line-height:1.55; color:var(--ink-3);
  max-width:46ch; margin-inline:auto;
}

/* ------------------------------------------------------------------- pane
   A square frame. The clips are 1:1 because a camera feed is 1:1. */
.pane{
  position:relative; aspect-ratio:1; width:100%; max-width:560px; margin-inline:auto;
  border-radius:var(--r-xl); overflow:hidden; background:var(--card-2);
  box-shadow:var(--sh-3); border:1px solid var(--line);
}
.pane video, .pane img{width:100%; height:100%; object-fit:cover; display:block}
.pane::after{                       /* a hairline in the alert's own colour */
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  box-shadow:inset 0 0 0 3px var(--e-pastel,transparent);
}

/* ------------------------------------------------------------------- band
   Every source clip has an English alert banner composited into the pixels at
   roughly 2.3% of frame width — about 8px on a phone, below this project's own
   15px floor. So it is masked, and the alert is reprinted here as real HTML:
   real size, real ink colour, real text in the accessibility tree, and
   translated from the locale files like everything else. */
.band{
  position:absolute; left:4%; right:4%;
  /* The masked area is a fixed share of the frame, but the text inside is not
     allowed to shrink below the readable floor -- so the band keeps its top
     edge (which is what has to cover the baked-in banner) and grows downward
     when the copy needs the room. On a phone it always does. */
  top:var(--band-top); min-height:var(--band-h);
  background:var(--card); border-radius:clamp(10px,2.2cqw,18px);
  box-shadow:0 10px 30px -14px rgba(20,19,26,.38);
  display:grid; align-content:center; gap:.35em;
  padding:0 clamp(12px,3.5%,26px); container-type:inline-size;
}
.band::before{                       /* the alert's colour, as an edge */
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  box-shadow:inset 0 0 0 2px var(--e-pastel,var(--line));
}
.toast-name{
  font:700 clamp(17px,4.6cqw,26px)/1.15 var(--display);
  color:var(--e-ink,var(--ink)); letter-spacing:-.015em;
}
.toast-msg{
  font:600 clamp(15px,3.1cqw,16.5px)/1.38 var(--body);
  color:var(--ink-3); text-wrap:balance;
}
/* The baked-in banner this band covers led with the app's alert icon, so the
   reprint does too. Ink, not the pastel: on the white card the pastel is
   under 2:1, below the 3:1 a meaningful graphic needs. */
.band.has-ic{grid-template-columns:auto 1fr; column-gap:clamp(10px,3cqw,18px); row-gap:.35em}
.toast-ic{
  grid-row:1 / span 2; align-self:center;
  width:clamp(34px,9cqw,52px); height:clamp(34px,9cqw,52px);
  color:var(--e-ink,var(--ink));
}
.band.has-ic .toast-name, .band.has-ic .toast-msg{grid-column:2}
/* The hero's band is present and empty. It has to read as RESERVED SPACE,
   not as a card that failed to load — so it loses the fill and the shadow and
   keeps only a dashed edge. Nothing has happened yet, and that is the point:
   the place where an alert would appear exists before any alert does. */
/* 42% cream was enough while this said "no alert yet" in pale meta grey. Now
   it carries the app's real status line, and measuring the pixels behind the
   band showed the ground swinging from (196,189,184) on average to (23,26,32)
   at its darkest -- 5.34:1 down to 1.75:1 on the same string. At 88% the
   worst case is 5.83:1 and the picture still shows through. */
.band.is-empty{
  display:grid; place-content:center;
  background:color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter:blur(3px); box-shadow:none;
}
.band.is-empty::before{
  box-shadow:none;
  border:1.5px dashed color-mix(in srgb, var(--ink-4) 55%, transparent);
  border-radius:inherit;
}
/* This now quotes the app's own status line rather than labelling an empty
   slot, so it drops the uppercase mono treatment and is set like the real
   thing: body face, sentence case, and above the 15px floor the other toasts
   in this band already keep. */
.band.is-empty span{
  font:600 clamp(15px,3.1cqw,16.5px)/1.35 var(--body);
  letter-spacing:0; color:var(--ink-3);
}

/* ------------------------------------------------------------------- beats */
.beat-sec{position:relative; isolation:isolate; padding:clamp(60px,11vh,128px) 0}
.beat{
  display:grid; align-items:center;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(30px,5vw,80px);
}
.beat.flip > .beat-media{order:-1}
.beat-copy{max-width:46ch}
.beat-copy h3{font-size:clamp(26px,3.4vw,42px); letter-spacing:-.025em; margin:14px 0 0}
.beat-copy .sub{margin-top:16px; font-size:clamp(16.5px,1.4vw,18.5px); line-height:1.6; color:var(--ink-3)}
.beat-copy .when{margin-top:20px; font-size:16px; line-height:1.62; color:var(--ink-3)}
.beat-tag{
  display:inline-flex; align-items:center; gap:9px; padding:8px 15px; border-radius:var(--pill);
  background:var(--e-wash); border:1.5px solid var(--e-pastel); color:var(--e-ink);
  font:700 14px/1 var(--body);
}
.beat-tag .sw{width:10px; height:10px; border-radius:50%; background:var(--e-pastel)}
.beat-no{font:700 12px/1 var(--mono); letter-spacing:.16em; color:var(--ink-4); display:block; margin-bottom:16px}
/* zh only: the app's English alert name after the number, as decoration; on a
   narrow phone it drops to its own line whole rather than splitting */
.beat-app{white-space:nowrap}
.beat-no:has(.beat-app){line-height:1.5}
/* the app screen for the scenario above it: what "a pink icon pops up" looks like */
.beat-shot{margin:clamp(22px,3vh,30px) 0 0; max-width:300px}
.beat-shot img{display:block; width:100%; height:auto; border-radius:18px; background:#1E1E22; box-shadow:var(--sh-2)}
.beat-shot figcaption{margin-top:12px; font-size:14px; line-height:1.6; color:var(--ink-3)}
.beat-shot figcaption b{display:block; margin-bottom:2px; font:700 12px/1.4 var(--mono); letter-spacing:.12em; color:var(--ink-4)}
@media (max-width:900px){ .beat-shot{max-width:280px} }

/* Chapter 03's legend: the six icons the way the app shows them on the live
   view -- a dark disc, the alert's colour as ring and glyph, a soft halo.
   Each one links down to its alert. */
.akey{margin-top:clamp(28px,4.5vh,44px); text-align:center}
.akey-cap{margin:0 0 20px; font-size:15px; color:var(--ink-4); text-wrap:balance}
:lang(zh) .akey-cap{word-break:keep-all; overflow-wrap:anywhere}
.akey-list{list-style:none; margin:0 auto; padding:0; max-width:880px;
             display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:22px 10px}
.akey-list a{display:flex; flex-direction:column; align-items:center; gap:4px; color:var(--ink); text-decoration:none}
.akey-badge{
  width:64px; height:64px; margin-bottom:8px; border-radius:50%; display:grid; place-items:center;
  background:radial-gradient(circle at 50% 30%, #2C2B31, #0D0D10 72%);
  border:2.5px solid var(--e-pastel);
  box-shadow:0 0 0 6px color-mix(in srgb, var(--e-pastel) 32%, transparent);
  transition:transform .25s cubic-bezier(.34,1.4,.5,1);
}
.akey-badge .ic{width:34px; height:34px; color:var(--e-pastel)}
.akey-list b{font:700 14.5px/1.3 var(--body)}
.akey-app{font:600 11px/1.3 var(--mono); letter-spacing:.04em; color:var(--ink-4)}
/* zh tags are the app's own names (up to six characters, e.g. 寶寶遺留車內): never split them */
:lang(zh) .akey-list b{white-space:nowrap}
@media (max-width:360px){ :lang(zh) .akey-list b{font-size:13px} }
.akey-list a:hover .akey-badge, .akey-list a:focus-visible .akey-badge{transform:translateY(-3px)}
@media (max-width:700px){
  .akey-list{grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px 8px}
  .akey-badge{width:56px; height:56px}
  .akey-badge .ic{width:30px; height:30px}
}
@media (max-width:900px){
  .beat{grid-template-columns:1fr; gap:26px}
  .beat.flip > .beat-media{order:0}
  .beat-media{order:-1}
}

/* -------------------------------------------------------------------- rail
   The Trip Log. Six rings that FILL as the reader passes each beat, so by the
   last frame the legend has been earned rather than presented. */
.rail{
  position:fixed; left:clamp(12px,2.2vw,30px); top:50%; translate:0 -50%; z-index:60;
  display:grid; gap:16px; padding:14px 10px; border-radius:var(--pill);
  background:color-mix(in srgb, var(--cream) 72%, transparent);
  backdrop-filter:blur(10px); border:1px solid var(--line);
  opacity:0; transition:opacity .4s ease;
}
.rail.on{opacity:1}
.rail i{
  display:block; width:11px; height:11px; border-radius:50%;
  border:2px solid var(--line-2); background:transparent;
  transition:background .5s ease, border-color .5s ease, transform .5s cubic-bezier(.34,1.4,.5,1);
}
.rail i.lit{background:var(--c); border-color:var(--c); transform:scale(1.25)}
@media (max-width:1100px){.rail{display:none}}

/* -------------------------------------------------------------- CPD acts
   The only pinned section on the page. Three clips cross-dissolve in one
   square frame while the scroll drives playback. */
.acts{position:relative}
/* Pane above, caption below -- the caption is NOT laid over the picture.
   It used to be absolutely positioned inside the stage, and on a narrow
   viewport the pane grew until near-black type was sitting on a bright car
   interior. Nothing about this narration needs to be an overlay, and putting
   it under the frame makes it legible at every size with no scrim. */
/* The stage is pinned at the top of the viewport, under the sticky header, so
   the top padding starts below the header. The chapter label used to be laid
   absolutely at the top of the stage, which put it under the header at every
   size; it now sits in the flow with the alert number (06 of 06) beneath it.
   --acts-room is everything that is not the pane (head, copy, gaps, padding):
   the pane takes what is left, so the whole stage fits one screen even on a
   320x568 phone with the longest Spanish caption. */
.acts-stage{
  min-height:100svh; display:grid; align-content:center; justify-items:center;
  gap:clamp(12px,2.2vh,26px); position:relative;
  padding:calc(var(--hdr-h) + clamp(10px,2.2vh,24px)) 0 clamp(18px,4vh,44px);
  --acts-room:260px;
}
.acts-hd{text-align:center; padding-inline:var(--gut)}
.acts-hd .ch-label{margin-bottom:10px}
.acts-hd .beat-no{margin-bottom:0}
.acts-pane{position:relative; width:min(48vh,86vw,560px,calc(100svh - var(--hdr-h) - var(--acts-room))); aspect-ratio:1;
           border-radius:var(--r-xl); overflow:hidden; box-shadow:var(--sh-3); background:var(--card-2)}
@media (max-width:600px){ .acts-stage{--acts-room:300px} :lang(zh) .acts-stage{--acts-room:250px} }
/* the FIGURE carries the opacity, so act 1's masked banner fades with its clip */
.act-frame{position:absolute; inset:0; margin:0; opacity:0}
.act-frame:first-child{opacity:1}
.act-frame video{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
/* The three acts cross-fade, so they have to OVERLAP. In normal flow they
   stacked vertically instead: all three reserved height even at opacity 0, so
   the block was three captions tall and the visible one sat wherever its turn
   put it. One grid cell holds all three. */
.acts-copy{
  width:min(52ch,86vw); text-align:center; pointer-events:none;
  display:grid; align-items:start;
}
.acts-copy .act{grid-area:1/1; opacity:0}
.acts-copy h3{font-size:clamp(22px,3vw,34px); letter-spacing:-.02em; margin:0}
.acts-copy p{margin-top:12px; font-size:16.5px; line-height:1.6; color:var(--ink-3)}
@media (max-width:359px){ .acts-copy p{font-size:15px; line-height:1.55} }

/* ------------------------------------------------------- the seven lines
   The one section on the page with no imagery at all. */
.seven{border-top:1px solid var(--line)}
.seven li{
  display:grid; grid-template-columns:auto 1fr; gap:20px; align-items:baseline;
  padding:clamp(20px,3.4vh,34px) 0; border-bottom:1px solid var(--line);
  font:600 clamp(19px,2.5vw,30px)/1.32 var(--display); color:var(--ink);
  letter-spacing:-.018em; text-wrap:balance;
}
.seven li b{font:700 12px/1 var(--mono); color:var(--ink-4); letter-spacing:.12em}

/* ------------------------------------------------------------------- misc */
.rule{height:1px; background:var(--line); border:0; margin:0}
.wide{max-width:1320px}
.center{text-align:center; margin-inline:auto}
.center .ch-label{text-align:center; justify-content:center}

/* A reduced-motion reader gets the same three acts, laid out rather than
   scrubbed: no pin, no cross-dissolve, nothing driven by scroll position.
   The two wrappers dissolve so the six children share one column, then
   `order` interleaves them back into clip / caption / clip / caption. */
.acts-static{display:flex; flex-direction:column; min-height:0; align-items:center}
.acts-static .acts-pane,
.acts-static .acts-copy{display:contents}
.acts-static .act-frame{
  /* flex:none -- a square media frame in a column flexbox must never be
     squashed along the main axis; aspect-ratio only holds while it is not */
  position:relative; inset:auto; flex:none; opacity:1 !important;
  width:min(86vw,560px); aspect-ratio:1;
  border-radius:var(--r-xl); overflow:hidden; box-shadow:var(--sh-3); margin:0 0 18px;
}
.acts-static .acts-copy .act{
  opacity:1 !important; transform:none !important;
  width:min(52ch,86vw); margin-bottom:clamp(40px,7vh,72px);
}
.acts-static .act-frame:nth-of-type(1){order:1}
.acts-static .acts-copy .act:nth-of-type(1){order:2}
.acts-static .act-frame:nth-of-type(2){order:3}
.acts-static .acts-copy .act:nth-of-type(2){order:4}
.acts-static .act-frame:nth-of-type(3){order:5}
.acts-static .acts-copy .act:nth-of-type(3){order:6}

/* ============================================ CHAPTER 01 · FITS YOUR CAR
   Was chapter 08 until 2026-10-28; it now closes chapter 01, after the case
   for the ceiling: which cars it fits, and the manuals. It drops the
   cinematic treatment and behaves like a spec sheet that happens to be well
   set. The installation video lives in the chapter's photo (.why-shot.vid). */
.fit{margin-top:clamp(44px,7vh,80px); padding-top:clamp(32px,5vh,52px); border-top:1px solid var(--line)}
.fit-lede{margin:0; max-width:62ch; font-size:clamp(16px,1.3vw,17.5px); line-height:1.65; color:var(--ink-3)}
:lang(zh) .fit-lede{max-width:40em}
.fit-cols{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(24px,4vw,56px); align-items:start;
  margin-top:clamp(26px,4vh,40px);
}
.fit h4{font:700 clamp(17px,1.4vw,19px)/1.3 var(--body); margin:0 0 14px; color:var(--ink)}

.car-list{display:grid; gap:0; margin:0; padding:0; list-style:none;
          border:1px solid var(--line); border-radius:var(--r); background:var(--card)}
.car-list li{display:flex; gap:13px; align-items:flex-start;
             padding:16px 18px; border-bottom:1px solid var(--line)}
.car-list li:last-child{border-bottom:0}
.car-list .ic{width:19px; height:19px; color:var(--primary-ink); flex:none; margin-top:2px}
.car-list b{display:block; font:700 17px/1.3 var(--body); color:var(--ink)}
.car-list b + span{display:block; margin-top:3px; font-size:14.5px; color:var(--ink-4)}
.cars-note{margin-top:16px; font-size:15px; line-height:1.62; color:var(--ink-3)}

/* one manual per row: three in a two-up grid would sit 2 + 1 */
.manual-list{display:grid; grid-template-columns:1fr; gap:10px; margin:0; padding:0; list-style:none}
.manual-list a{
  display:flex; align-items:center; gap:13px; padding:13px 17px;
  border:1px solid var(--line); border-radius:var(--r-sm); background:var(--card);
  text-decoration:none!important; box-shadow:var(--sh-1);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.manual-list a:hover{transform:translateY(-2px); box-shadow:var(--sh-2); border-color:var(--primary-t2)}
.manual-list .mi{width:40px; height:40px; flex:none; display:grid; place-items:center}
.manual-list .mi .ic{width:22px; height:22px}
.manual-list b{display:block; font:700 16px/1.25 var(--body); color:var(--ink)}
.manual-list .mt > span{display:block; margin-top:3px; font-size:13px; color:var(--ink-4)}

/* the click-to-load player (motion.js swaps the button for the iframe) */
.vid{margin:0; position:relative}
.vid-btn{
  display:block; width:100%; padding:0; border:0; cursor:pointer;
  position:relative; overflow:hidden; background:var(--card-2);
}
.vid-btn img{display:block; width:100%; aspect-ratio:4/3.4; object-fit:cover; object-position:50% 18%}
.vid-btn::after{                      /* a scrim, so the play mark always reads */
  content:""; position:absolute; inset:0; background:rgba(20,19,26,.18);
  transition:background .2s ease;
}
.vid-btn:hover::after{background:rgba(20,19,26,.08)}
.vid-btn .play{
  position:absolute; inset:50% auto auto 50%; translate:-50% -50%; z-index:1;
  width:clamp(58px,7vw,78px); aspect-ratio:1; border-radius:50%;
  background:var(--aurora-btn); display:grid; place-items:center;
  box-shadow:0 14px 34px -12px rgba(20,19,26,.6);
  transition:transform .2s cubic-bezier(.34,1.4,.5,1);
}
.vid-btn .play::before{              /* the triangle, drawn rather than shipped */
  content:""; width:0; height:0; margin-left:16%;
  border-left:clamp(17px,2vw,23px) solid var(--primary-fg);
  border-block:clamp(11px,1.3vw,15px) solid transparent;
}
.vid-btn:hover .play{transform:scale(1.08)}
.vid-btn:focus-visible{outline:3px solid var(--primary-ink); outline-offset:-3px}
.vid iframe{width:100%; aspect-ratio:16/9; border:0; display:block; background:#000}
/* the caption chip describes the photo; once the video plays it would sit on it */
.why-shot.is-on figcaption{display:none}
.vid-consent{margin-top:12px; font-size:13.5px; line-height:1.55; color:var(--ink-4)}

@media (max-width:900px){
  .fit-cols{grid-template-columns:1fr}
}

/* ================================= CHAPTER 02 · BEFORE YOU PULL AWAY
   The chapter that teaches the vocabulary every later alert assumes: what a
   seat position is, what a detection frame means, and why there are only ever
   two of them. The overlay is rebuilt in HTML rather than lifted from the
   screen capture — the app draws its frames as 1–2px lines that do not survive
   scaling, and every string in here has to be readable, translated, and
   reachable by a screen reader. */

/* ---------------------------------------------------------- seat chips */
.zchips{display:flex; flex-wrap:wrap; gap:9px; margin:20px 0 22px; padding:0; list-style:none}
.zchips li{
  display:inline-flex; align-items:center; gap:8px; padding:7px 14px 7px 11px;
  border-radius:var(--pill); background:var(--card); border:1.5px solid var(--line);
  font:700 15px/1 var(--body); color:var(--zi);
}
.zchips i{width:10px; height:10px; border-radius:50%; background:var(--z);
          box-shadow:inset 0 0 0 1px rgba(20,19,26,.22)}

/* ------------------------------------------------------- the plate + overlay
   The dividers are drawn NEUTRAL-warm because that is what the app draws on
   the live view; only the chips and the seat cards carry zone colour. */
.plate{
  position:relative; margin:0; border-radius:var(--r-lg); overflow:hidden;
  border:1px solid var(--line); box-shadow:var(--sh-2); background:var(--card-2);
}
.plate img{width:100%; height:auto; display:block}
/* Dashed, and in the app's own divider orange (#FF8556, sampled). The live
   view draws these solid, but this is an annotation over an illustration
   rather than a screenshot -- and dashed orange is already how the app draws
   a region boundary elsewhere (the Motion Area ROI), so it stays inside the
   product's own vocabulary while reading as a line the software imagines
   rather than something in the car. Flat colour, no casing. */
.zdiv{
  position:absolute; top:6%; bottom:6%; width:0; pointer-events:none;
  border-left:2px dashed #FF8556;
}
.dbox{
  position:absolute; left:var(--x); top:var(--y); width:var(--w); height:var(--h);
  border-radius:4px; pointer-events:none;
  border:2.5px solid #fff;                 /* the resting, no-JS state: FOUND */
  transition:border-color .45s ease, opacity .6s ease;
}
/* Green means the camera is still asking; white means it has started. The
   resting state is deliberately the SECOND step, so a reader with no JS meets
   a meaningful diagram rather than an empty one. */
.plate[data-state="looking"] .dbox{border-color:var(--det-green); opacity:1}
.plate[data-state="found"]   .dbox{border-color:#fff; opacity:1}
.plate[data-state="clear"]   .dbox{border-color:#fff; opacity:0}

/* ------------------------------------------------- the three-step legend */
.dsteps{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px;
  margin:18px 0 0; padding:0; list-style:none;
}
.dsteps li{padding-top:12px; border-top:2px solid var(--line-2); transition:border-color .4s ease}
.dsteps li b{display:block; font:700 15px/1.3 var(--body); color:var(--ink)}
.dsteps li span{display:block; margin-top:5px; font-size:14px; line-height:1.5; color:var(--ink-3)}
.dsteps li[data-step="looking"]{border-top-color:var(--det-green)}
.dsteps li[data-step="found"]{border-top-color:var(--ink-2)}
.dsteps li.is-now{border-top-color:var(--ink)}
@media (max-width:620px){
  .dsteps{grid-template-columns:1fr; gap:0}
  .dsteps li{padding:12px 0; border-top-width:1.5px}
}

/* ---------------------------------------------- the app dialog, reset in HTML
   Reprinted at real size for the same reason .band is: inside a phone bezel
   this type lands near 11px, under this project's own 15px floor. */
.appdlg{
  background:var(--card); border:1.5px solid var(--primary-t2);
  border-radius:var(--r-lg); padding:clamp(20px,2.6vw,28px);
  box-shadow:var(--sh-2); max-width:440px;
}
.appdlg-label{
  font:700 12px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink-4); margin:0 0 14px;
}
.appdlg b{display:block; font:600 clamp(19px,1.8vw,22px)/1.3 var(--display); color:var(--ink); letter-spacing:-.015em}
.appdlg > p{margin:10px 0 20px; font-size:15.5px; line-height:1.6; color:var(--ink-3)}
.appdlg-ok,.appdlg-re{
  display:flex; align-items:center; justify-content:center; gap:9px;
  padding:13px 20px; border-radius:var(--pill); font:700 16px/1 var(--body);
}
.appdlg-ok{background:var(--app-lime); color:var(--app-lime-fg)}
.appdlg-re{margin-top:10px; background:var(--card-2); color:var(--ink-2); border:1.5px solid var(--line)}
.appdlg-re .ic{width:17px; height:17px}

/* ------------------------------------------------------------ the cap */
.cap{margin-top:clamp(52px,9vh,104px)}
.cap-eyebrow{
  font:700 12.5px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink-4); margin:0 0 16px; text-align:center;
}
.cap-h2{font-size:clamp(28px,4.2vw,52px); letter-spacing:-.028em; margin:0; text-align:center; text-wrap:balance}
.cap-lede{margin:18px auto 0; max-width:52ch; text-align:center; font-size:clamp(16.5px,1.4vw,18.5px); line-height:1.6; color:var(--ink-3)}
.cap-grid{
  display:grid; grid-template-columns:minmax(0,.72fr) minmax(0,1fr);
  gap:clamp(28px,4.5vw,60px); align-items:center; margin-top:clamp(32px,5vh,56px);
}
.cap-phone{margin:0 auto; width:min(100%,280px)}
.cap-phone video{width:100%; height:auto; display:block; border-radius:26px}

.cap-strings{
  display:grid; grid-template-columns:auto 1fr; gap:4px 14px; align-items:center;
  margin:0 0 22px; padding:16px 18px; border-radius:var(--r-sm);
  background:var(--onboard-wash); border:1.5px solid var(--onboard);
}
.cap-strings .ic{width:26px; height:26px; grid-row:span 2; color:var(--onboard-ink)}
.cap-strings b{font:700 20px/1.25 var(--body); color:var(--ink)}
.cap-strings span{font-size:16px; line-height:1.4; color:var(--ink-2)}

/* All three seats are detected -- that is not the thing that caps at two.
   What caps is Face Center, the close-up, so two of the three gain a Face
   Center pill and the third simply does not have one. Nothing is dimmed:
   the middle seat is being watched exactly like the others, and styling it
   as "off" would say something false. */
.cap-cards{display:grid; gap:10px; margin:0; padding:0; list-style:none}
.cap-cards li{
  display:grid; grid-template-columns:auto 1fr auto auto; align-items:center; gap:10px 13px;
  padding:14px 17px; border-radius:var(--r-sm);
  background:var(--card); border:1.5px solid var(--line); box-shadow:var(--sh-1);
}
.cap-cards .dot{width:13px; height:13px; border-radius:50%; background:var(--z);
                box-shadow:inset 0 0 0 1px rgba(20,19,26,.22)}
.cap-cards b{font:700 16.5px/1.2 var(--body); color:var(--ink)}
.cap-cards .st-base{font:600 14px/1 var(--body); color:var(--ink-3); white-space:nowrap}
.cap-cards .st-frame{
  font:700 13px/1 var(--body); color:var(--zi); white-space:nowrap;
  padding:6px 11px; border-radius:var(--pill);
  background:color-mix(in srgb, var(--z) 20%, #fff);
  border:1.5px solid color-mix(in srgb, var(--z) 55%, #fff);
}
/* the seat with no close-up: no pill, and nothing else changes */
.cap-cards li[data-zone="centre"] .st-frame{display:none}
@media (max-width:460px){
  .cap-cards li{grid-template-columns:auto 1fr auto; row-gap:8px}
  .cap-cards .st-base{grid-column:3}
  .cap-cards .st-frame{grid-column:2 / span 2; justify-self:start}
}

.cap-default{margin-top:18px; font-size:16px; line-height:1.6; color:var(--ink-3)}
.cap-third{margin-top:clamp(30px,5vh,52px)}
.cap-third h3{font-size:clamp(20px,2.2vw,26px); letter-spacing:-.018em; margin:0 0 12px}

@media (max-width:900px){
  .cap-grid{grid-template-columns:1fr}
  .cap-phone{width:min(100%,240px)}
}

/* --------------------------------------------------------- the two panes
   Abreast rather than stacked, which roughly halves the height of this beat.
   The phone bezel went with it: on a phone the two panes sit one ABOVE the
   other (the prototype's `.viewport.split` is flex-direction:column with a
   border-bottom between panes), so a bezel drawn around a side-by-side pair
   would be a picture of a screen the app does not produce. Without it this is
   plainly a figure, and what it shows is true in either arrangement — one
   picture per child, one control row driving both. */
.panes2{margin:0}
.panes2-row{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px}
/* The seat label sits ABOVE the picture, not on it. Over the video it had to
   shrink to 11.5px on a phone to stay inside the frame, and it is the only
   thing saying which pane is which seat -- that is content, so it takes the
   15px floor like everything else. The frame moved onto the video with it. */
.p2{position:relative}
.p2-label{
  display:flex; align-items:center; gap:7px; margin:0 0 9px;
  font:700 15px/1 var(--body); color:var(--zi);
}
.p2-label i{width:10px; height:10px; border-radius:50%; background:var(--z);
            box-shadow:inset 0 0 0 1px rgba(20,19,26,.22); flex:none}
/* Cropped to the BOTTOM 60% of the square feed, which is what removes the
   English alert banner composited into these clips: measured, the two banners
   end at 38.9% and 36.5% of frame height, so a 40% top crop clears both. The
   banner is baked into the pixels and is unreadable at this size anyway --
   everywhere else on this page it is masked and reprinted as real HTML, and
   here there is nothing to reprint, so it is simply framed out.

   height:auto is load-bearing: <video> is a replaced element, so its
   height="960" attribute counts as a specified height, and aspect-ratio only
   fills in a dimension that is auto. Without it the pane renders 242x960. */
.p2 video{
  width:100%; height:auto; aspect-ratio:5/3;
  object-fit:cover; object-position:50% 100%; display:block;
  border-radius:14px; border:2px solid var(--z); background:#000; box-shadow:var(--sh-2);
}
/* the control row now sits on the page ground rather than inside a dark
   bezel, so the icons take ink instead of white */
.ptool{
  display:flex; justify-content:center; align-items:center; gap:clamp(26px,6vw,58px);
  margin-top:10px; padding:12px 0; border-radius:var(--r-sm);
  background:var(--card-2); border:1px solid var(--line);
}
/* Twice the size they were. At 19px these read as smudges next to two video
   frames; the toolbar is the one place this beat asks the reader to identify
   a specific control, so the glyphs have to be legible. */
.ptool span{width:58px; height:58px; border-radius:15px; display:grid; place-items:center; color:var(--ink-4)}
.ptool span.is-on{background:var(--aurora-chip); color:var(--primary-ink)}
.ptool .ic{width:26px; height:26px}
.panes2 figcaption{
  margin-top:12px; text-align:center; font:700 12.5px/1 var(--mono);
  letter-spacing:.14em; text-transform:uppercase; color:var(--ink-4);
}
@media (max-width:420px){.panes2-row{gap:8px}}
.dnote{
  margin-top:20px; padding:15px 17px; border-radius:var(--r-sm);
  background:var(--card-2); border:1px solid var(--line);
  font-size:15px; line-height:1.6; color:var(--ink-3);
}
.detect-bridge{
  margin:clamp(44px,7vh,80px) auto 0; max-width:34ch;
  font:600 clamp(19px,2.2vw,26px)/1.4 var(--display); color:var(--ink);
  letter-spacing:-.018em; text-wrap:balance;
}
.detect-scan,.detect-ask,.detect-panes{margin-top:clamp(34px,5.5vh,64px)}
