/*
 * getcaradvisor.uk: eight worlds, one journey (live 1 October 2026).
 *
 * Two modes, and both must be complete:
 *   .js:not(.static)  pinned worlds; world.js writes --p (progress through the
 *                     world), --o (content opacity) and per-world values, and
 *                     animates the page background between worlds.
 *   everything else   (no script, reduced motion, ?still) the worlds are plain
 *                     stacked sections, each with its own colours, fully read.
 *
 * Brand: navy, cool grey, lime, from constants/palette.ts. Lockups are the
 * supplied artwork. Nothing here suggests a mileage going backwards.
 */

@font-face { font-family: "Archivo"; src: url("/assets/archivo-var-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("/assets/bitter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
/* The app's licensed plate face (Gareth Attrill). Its capitals are 1400 of a
   2048 em and nothing descends, so the ascent is set to the cap height and
   the rest to zero: at line-height 1 the capitals then sit optically centred
   in the plate instead of low. "block" so a plate never shows another face. */
@font-face {
  font-family: "UKNumberPlate"; src: url("/assets/uk-number-plate.woff2") format("woff2");
  font-display: block; ascent-override: 68.36%; descent-override: 0%; line-gap-override: 0%;
}

:root {
  --navy: #0B1320;
  --night: #070B14;
  --ink: #05080F;
  --panel: #141E2E;
  --grey: #E5E7EA;
  --paper: #F1F3F5;
  --lime: #CCFF00;
  /* the plate, exactly as the app draws it (constants/theme.ts, Plate) */
  --plate: #FFD400;
  --plate-edge: #0F0F0F;
  --plate-ink: #111111;
  --plate-flash: #0A3CA0;
  --muted: #A8B1BF;
  --muted-l: #39424F;
  --watch: #F2B705;
  --concern: #E8710A;
  --fixed: #5FC183;
  --gut: clamp(16px, 5vw, 72px);
  --head: 64px;
  --display: "Bitter", Georgia, "Times New Roman", serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --bg: var(--navy);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--navy); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font: 400 18px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.w5 :focus-visible, .w6 :focus-visible, .w7 :focus-visible, .launch-body :focus-visible { outline-color: var(--navy); }
/* Bitter's ascenders reach 0.79 em and its descenders 0.24 em below the
   line, so a display line-height under about 1.04 lets the "y" of one line
   touch the "l" of the next. 1.08 keeps a visible gap at every size, and
   the hero, the largest, gets a little more. */
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; }
.w1 h1 { line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--lime); color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- header */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--head);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gut);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { display: block; }
.lk { height: 28px; width: auto; }
.lk-light { display: none; height: 34px; }
html[data-theme="light"] .lk-dark { display: none; }
html[data-theme="light"] .lk-light { display: block; }
.top-cta {
  font: 700 15px/1 var(--text); white-space: nowrap; text-decoration: none;
  padding: 12px 18px; min-height: 44px; display: inline-block; line-height: 20px;
  border-radius: 999px; background: var(--lime); color: var(--navy);
}
html[data-theme="light"] .top-cta { background: var(--navy); color: var(--lime); }
.top { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.top.away { transform: translateY(-110%); }
.cta-long { display: none; }
@media (min-width: 420px) { .cta-long { display: inline; } }
@media (max-width: 419px) { .lk { height: 24px; } .lk-light { height: 30px; } .top-cta { padding: 10px 16px; } }
/* without the pinned worlds, content scrolls under the header: give it ground */
.static .top, html:not(.js) .top { background: rgba(11,19,32,.94); }
.static[data-theme="light"] .top { background: rgba(241,243,245,.94); }

/* the opening (world.js): the headline is there from the first paint, faint
   behind the dots, so the page counts as shown at once; the plate, the button,
   the rail and the header wait; the logo waits until the mark lands on it */
.intro .plate-wrap, .intro .w1-cta, .intro .cue, .intro .rail, .intro .top-cta { opacity: 0; }
.intro .w1-copy { opacity: .2; }
.intro-logo .top .brand { opacity: 0; }
.opening-mark { position: fixed; z-index: 31; overflow: hidden; pointer-events: none; opacity: 0; transform-origin: 0 0; will-change: transform, opacity; }
.opening-mark img { position: absolute; display: block; max-width: none; }

/* the journey rail: eight worlds, desktop only */
.rail { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 25; display: none; }
.rail ol { display: grid; gap: 14px; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; min-height: 20px; }
.rail a::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .55; transition: background .3s, opacity .3s, transform .3s; }
.rail a span { font: 600 12px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; }
.rail a:hover span, .rail a:focus-visible span { opacity: .85; transform: none; }
.rail a.on::after { background: var(--lime); border-color: var(--lime); opacity: 1; transform: scale(1.25); }
html[data-theme="light"] .rail a { color: var(--navy); }
html[data-theme="light"] .rail a.on::after { background: var(--navy); border-color: var(--navy); }
@media (min-width: 1100px) { .js:not(.static) .rail { display: block; } }

/* the particle field sits behind every world */
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: none; }
.js:not(.static) .field { display: block; }

main { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- worlds */

.world { position: relative; overflow-x: clip; } /* the floating words may never widen the page */
.stage {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--head) + 28px) var(--gut) 40px;
  display: grid;
  align-content: center;
  gap: 24px;
}
.fade { opacity: var(--o, 1); translate: 0 calc((1 - var(--o, 1)) * 28px); }

/* static and no-script: each world paints its own ground */
html:not(.js) .world, .static .world { background: var(--wbg); }
.w1 { --wbg: var(--navy); }
.w2 { --wbg: var(--night); }
.w3 { --wbg: var(--navy); }
.w4 { --wbg: var(--ink); }
.w5 { --wbg: var(--grey); color: var(--navy); }
.w6 { --wbg: #F7F8FA; color: var(--navy); }
.w7 { --wbg: var(--paper); color: var(--navy); }
.w8 { --wbg: var(--lime); color: var(--navy); }

/* pinned mode: tall worlds, a sticky stage, and each world overlapping the
   last by 60vh so the next one is already rising while the last dissolves */
.js:not(.static) .world { height: var(--len); }
.js:not(.static) .world + .world { margin-top: -60vh; }
.js:not(.static) .stage { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: hidden; }
.js:not(.static) .w1 { --len: 250vh; }
.js:not(.static) .w2 { --len: 330vh; }
.js:not(.static) .w3 { --len: 340vh; }
.js:not(.static) .w4 { --len: 420vh; }
.js:not(.static) .w5 { --len: 400vh; }
.js:not(.static) .w6 { --len: 380vh; }
.js:not(.static) .w7 { --len: 300vh; }
.js:not(.static) .w8 { --len: 140vh; }
/* Before you view sits wholly over the verdict's last screen, and Ask over
   its, so the three share one phone */
.js:not(.static) .world.w6, .js:not(.static) .world.w7 { margin-top: -100vh; }
.js:not(.static) .world.off .stage { pointer-events: none; }

.eyebrow { font: 700 13px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.small { font-size: 14px; color: var(--muted); }
.fine { font-size: 12.5px; line-height: 1.45; color: var(--muted); max-width: 62ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 14px 24px; border-radius: 14px;
  font: 700 17px/1.25 var(--text); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--navy); box-shadow: 0 0 0 0 rgba(204,255,0,.45); }
.btn-lime:hover { box-shadow: 0 10px 40px -8px rgba(204,255,0,.55); }
.btn-navy { background: var(--navy); color: var(--lime); }

/* ---------------------------------------------------------------- 1. the advert */

.w1 .stage { grid-template-columns: 1fr; grid-template-areas: "copy" "plate" "cta"; justify-items: start; }
.w1-copy { grid-area: copy; display: grid; gap: 14px; }
.w1 h1 { font-size: clamp(46px, 9.2vw, 132px); max-width: 9.5ch; }
.w1 h1 em { font-style: normal; color: var(--lime); }
.plate-wrap { grid-area: plate; justify-self: center; align-self: center; align-content: center; display: grid; gap: 14px; justify-items: center; position: relative; z-index: 2; }
.w1-cta { grid-area: cta; display: grid; gap: 10px; justify-items: start; }
/* The stores' own badges on the first screen (13 November 2026): App Store first, one height, at
   least a quarter of that height apart, never altered (docs/LAUNCH-ASSETS.md). */
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.hero-badges .store-badge { height: 52px; }
@media (max-width: 420px) { .hero-badges .store-badge { height: 46px; } }
.plate-note { font: 500 16px/1.4 var(--text); color: var(--muted); text-align: center; }

/* Drawn in the app's proportions (components/brand/plate-input.tsx), all
   taken from the plate's height, which is 111/520 of its width: the surround
   is 2/58 of the height, the corners 12/58, the flash 40/58 wide with its
   letters at 13/58, and the registration at 60% of the height, tracked 2/38. */
.plate {
  --pw: min(88vw, 520px);
  --ph: calc(var(--pw) * 111 / 520);
  position: relative;
  width: var(--pw); aspect-ratio: 520 / 111;
  display: flex; align-items: stretch;
  border: calc(var(--ph) * 2 / 58) solid var(--plate-edge);
  border-radius: calc(var(--ph) * 12 / 58);
  background: var(--plate);
  box-shadow: 0 30px 80px -30px rgba(255,212,0,.35);
  overflow: hidden;
  transform-origin: 50% 50%;
  /* the plate travels to the middle of the screen, then grows round its own
     centre while the hole in it opens (world.js sets the numbers) */
  transform: translate(var(--ptx, 0px), var(--pty, 0px)) scale(var(--ps, 1));
  opacity: var(--zf, 1);
  will-change: transform;
}
/* the portal: a hole opens in the middle of the plate, and through it is
   world 2 itself (its stage is clipped to the same circle), until there is
   nothing left of the plate but the way through */
.js:not(.static) .plate {
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole, 0px), #000 calc(var(--hole, 0px) + 1px));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole, 0px), #000 calc(var(--hole, 0px) + 1px));
}
.plate-band {
  flex: 0 0 calc(var(--ph) * 40 / 58);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: calc(var(--ph) * 8 / 58);
  background: var(--plate-flash); color: var(--plate);
  font: 400 calc(var(--ph) * 13 / 58)/1 "UKNumberPlate", sans-serif; letter-spacing: .04em;
  opacity: calc(1 - var(--z, 0) * var(--z, 0) * 4);
}
.plate-chars {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font: 400 calc(var(--ph) * .6)/1 "UKNumberPlate", sans-serif;
  letter-spacing: calc(2em / 38); color: var(--plate-ink); white-space: pre;
  opacity: calc(1 - var(--z, 0) * var(--z, 0) * 4);
}
/* a rim of shadow just inside the iris gives the hole depth */
.plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  /* --rw is a fixed width on screen, whatever the plate's scale */
  background: radial-gradient(circle at 50% 50%, rgba(7,11,20,0) calc(var(--hole, 0px) - 1px), rgba(7,11,20,.55) calc(var(--hole, 0px) + var(--rw, 1px) * .15), rgba(7,11,20,0) calc(var(--hole, 0px) + var(--rw, 1px)));
  opacity: var(--rimo, 0);
}
/* the slot machine: each reel is as wide as the letter it lands on */
.reel { position: relative; display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.reel > .g { visibility: hidden; }
.reel > .s { position: absolute; left: -.2em; right: -.2em; top: 0; transition: transform 1.1s cubic-bezier(.16,.9,.24,1); }
.reel > .s > i { display: block; height: 1em; font-style: normal; text-align: center; }
.plate-scan {
  position: absolute; inset: 0 auto 0 0; width: 22%; z-index: 1;
  background: linear-gradient(90deg, rgba(204,255,0,0), rgba(204,255,0,.55) 50%, rgba(204,255,0,0));
  mix-blend-mode: multiply; opacity: 0; pointer-events: none;
}
.plate.scan .plate-scan { animation: scan 3.6s cubic-bezier(.45,0,.2,1) 1 both; }
@keyframes scan { 0% { transform: translateX(-30%); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(480%); opacity: 0; } }
/* 3. one line from an advert, typed above the plate, then wiped away by the
   scan as the plate lands */
.ad-quote { margin: 0; min-height: 1.4em; font: 500 clamp(17px, 1.5vw, 23px)/1.4 var(--text); letter-spacing: .005em; color: rgba(229,231,234,.8); text-align: center; }
.ad-quote span { display: inline-block; }
.ad-quote.typing span::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -.16em; background: var(--lime); animation: caret 1s steps(1) infinite; }
.ad-quote.wiped span { animation: wipe 3.6s cubic-bezier(.45,0,.2,1) both; }
@keyframes wipe { 0%, 12% { clip-path: inset(0 0 0 0); } 80%, 100% { clip-path: inset(0 0 0 100%); } }
/* with no script or no motion it stays, struck through */
html:not(.js) .ad-quote span, .static .ad-quote span { text-decoration: line-through; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
.ad-quote { opacity: calc(1 - var(--z, 0) * 3); }

.bays { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; perspective: 520px; pointer-events: none; opacity: calc(.9 - var(--p, 0)); }
.bays i {
  position: absolute; bottom: -10%; width: 2px; height: 140%;
  background: linear-gradient(to top, rgba(229,231,234,.22), rgba(229,231,234,0));
  transform-origin: bottom; transform: rotateX(62deg);
}
.bays i:nth-child(1) { left: 8%; } .bays i:nth-child(2) { left: 22%; } .bays i:nth-child(3) { left: 36%; }
.bays i:nth-child(4) { left: 50%; } .bays i:nth-child(5) { left: 64%; } .bays i:nth-child(6) { left: 78%; } .bays i:nth-child(7) { left: 92%; }

/* The scroll cue (2 October 2026). It was an 11px grey word over a hairline, and a
   visitor on a phone did not know to scroll: the first screen ends on a big lime
   button and reads as finished. Not bigger type: a slim capsule with a lime dot
   running down it, which the eye catches by colour and movement at the same small
   size. Shown in every mode now, still where motion is reduced. */
.cue { position: absolute; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font: 600 11px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  opacity: calc(1 - var(--p, 0) * 6); }
.cue::before { content: ""; width: 22px; height: 34px; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 12px; opacity: .75; transition: border-color .5s, opacity .5s; }
.cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 8px var(--lime); animation: cue-dot 1.9s cubic-bezier(.45,0,.3,1) infinite; }
.cue.nudge::before { border-color: var(--lime); opacity: 1; }
@keyframes cue-dot { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(14px); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
.static .cue::after { animation: none; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) { .cue::after { animation: none; transform: translateY(8px); } }
@keyframes caret { 50% { opacity: 0; } }

@media (min-width: 900px) {
  .w1 .stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "copy plate" "cta plate"; align-content: center; column-gap: 4vw; }
  .w1 h1 { font-size: clamp(46px, 7vw, 150px); max-width: 11ch; }
  .w1-copy { align-self: end; }
  .w1-cta { align-self: start; }
  .plate { --pw: min(40vw, 560px); }
}

/* ---------------------------------------------------------------- 2. the record */

.w2 .stage { grid-template-areas: "copy" "odo" "events" "sum"; align-content: start; }
.w2-copy { grid-area: copy; display: grid; gap: 10px; position: relative; z-index: 2; }
.w2 h2 { font-size: clamp(34px, 5.6vw, 80px); max-width: 12ch; }
.real { font-size: 14px; color: var(--muted); }
/* the year and the mileage, side by side, both rolling with the scroll */
.meters { grid-area: odo; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; position: relative; z-index: 2; }
.yr, .odo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.yr { flex-direction: column; align-items: flex-start; }
.m-label { font: 700 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.yr-digits {
  font: 700 clamp(34px, 4.4vw, 56px)/1 var(--text); font-stretch: 80%; font-variant-numeric: tabular-nums;
  display: inline-flex; padding: 6px 10px; border-radius: 8px; background: #000; color: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(204,255,0,.35);
}
html:not(.js) .yr-digits, .static .yr-digits { font-size: clamp(22px, 2.6vw, 32px); }
.odo { position: relative; }
.odo-label { font: 700 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); width: 100%; }
.odo-digits {
  font: 700 clamp(34px, 4.4vw, 56px)/1 var(--text); font-stretch: 80%; font-variant-numeric: tabular-nums;
  display: inline-flex; padding: 6px 10px; border-radius: 8px; background: #000; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(229,231,234,.2);
}
.drum { display: inline-block; height: 1em; overflow: hidden; }
.drum > span { display: block; }
.drum i { display: block; height: 1em; font-style: normal; }
.odo-unit { font-size: 14px; color: var(--muted); }
/* while the drums roll with the scroll the figure is a roll, not a reading:
   the label and the date belong to the real 101,513 alone */
.js:not(.static) .odo-digits { transition: color .3s; }
.js:not(.static) .odo-label, .js:not(.static) .odo-date { transition: opacity .3s; }
.js:not(.static) .odo:not(.landed) .odo-digits { color: rgba(255,255,255,.55); }
.js:not(.static) .odo:not(.landed) .odo-label, .js:not(.static) .odo:not(.landed) .odo-date { opacity: 0; }
.events { grid-area: events; display: grid; gap: 6px; position: relative; z-index: 2; }
.ev {
  display: grid; grid-template-columns: 10px 3.2em 1fr auto; column-gap: 10px; align-items: baseline;
  padding: 8px 12px; border-radius: 10px; background: rgba(11,19,32,.82);
  border: 1px solid rgba(229,231,234,.08);
}
.ev::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tone, var(--watch)); align-self: center; transition: background .6s; }
.ev-y { font: 600 13px/1.3 var(--text); color: var(--muted); font-variant-numeric: tabular-nums; }
.ev-t { font: 700 16px/1.3 var(--text); }
.ev-d { grid-column: 3 / 5; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.ev-fixed, .ev-count { grid-column: 4; grid-row: 1; font: 700 12px/1 var(--text); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.ev-fixed { color: var(--navy); background: var(--fixed); }
.ev-count { color: var(--navy); background: var(--tone, var(--watch)); }
.tone-watch { --tone: var(--watch); }
.tone-concern { --tone: var(--concern); }
.ev.fixed-now { --tone: var(--fixed); }
.ev-sum { grid-area: sum; font: 700 17px/1.4 var(--text); position: relative; z-index: 2; }

/* pinned: events arrive with the years; put-right and counts land at the end */
.js:not(.static) .ev { opacity: 0; transform: translateX(24px); transition: opacity .45s, transform .45s cubic-bezier(.2,.8,.2,1); }
.js:not(.static) .ev.show { opacity: 1; transform: none; }
.js:not(.static) .ev .ev-fixed, .js:not(.static) .ev .ev-count { opacity: 0; transform: scale(.6); transition: opacity .35s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.js:not(.static) .events.done .ev-fixed, .js:not(.static) .events.done .ev-count { opacity: 1; transform: none; }
.js:not(.static) .ev-sum { opacity: 0; transition: opacity .5s; }
.js:not(.static) .ev-sum.show { opacity: var(--o, 1); }
.js:not(.static) .worsens[data-level="1"] { --tone: var(--watch); }
.js:not(.static) .worsens[data-level="2"] { --tone: #EE9408; }
.js:not(.static) .worsens[data-level="3"] { --tone: var(--concern); }

@media (max-width: 899px) {
  .js:not(.static) .w2 .stage { gap: 12px; padding-bottom: 56px; }
  .js:not(.static) .w2 h2 { font-size: clamp(30px, 8.6vw, 56px); }
  .js:not(.static) .odo-digits, .js:not(.static) .yr-digits { font-size: clamp(26px, 7.4vw, 40px); padding: 5px 8px; }
  .js:not(.static) .m-label, .js:not(.static) .odo-label { font-size: 10.5px; }
  .js:not(.static) .events { gap: 5px; }
  .js:not(.static) .ev { padding: 6px 10px; grid-template-columns: 9px 2.9em 1fr auto; column-gap: 8px; }
  .js:not(.static) .ev::before { width: 9px; height: 9px; }
  .js:not(.static) .ev-d { display: none; }
  .js:not(.static) .ev.latest .ev-d { display: block; }
  .js:not(.static) .events.done .ev-d { display: none; }
  .js:not(.static) .ev-t { font-size: 14.5px; }
  .js:not(.static) .ev-y { font-size: 12px; }
  .js:not(.static) .ev-sum { font-size: 15px; }
}
@media (min-width: 900px) {
  .w2 .stage { grid-template-columns: 1fr min(460px, 40vw); grid-template-areas: "copy events" "odo events" "sum events"; align-content: center; column-gap: 5vw; }
  .events { align-self: center; }
  .w2-copy { align-self: end; }
}

/* ---------------------------------------------------------------- 3. the model */

.w3 .stage { grid-template-areas: "copy" "car" "swap" "fine"; justify-items: center; text-align: center; align-content: center; gap: 20px; }
.grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(229,231,234,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,231,234,.07) 1px, transparent 1px),
    linear-gradient(rgba(229,231,234,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,231,234,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  opacity: var(--o, 1);
}
.w3-copy { grid-area: copy; display: grid; gap: 10px; position: relative; justify-items: center; }
.w3 h2 { font-size: clamp(32px, 5.2vw, 76px); max-width: 16ch; }
.w3-copy p { color: var(--muted); max-width: 44ch; }
.car-box { grid-area: car; position: relative; width: min(84vw, 640px); aspect-ratio: 989 / 327; }
.car-img { width: 100%; height: 100%; opacity: .9; }
.js:not(.static) .car-img { opacity: calc(.07 * var(--form, 0) * var(--o, 1)); }

.chips { grid-area: swap; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 10px; max-width: 1040px; position: relative; }
.chip {
  position: relative; display: grid; place-items: center; width: 210px; min-height: 64px; padding: 10px 14px;
  border: 1px solid rgba(229,231,234,.28); border-radius: 12px; background: rgba(11,19,32,.9); color: #fff;
  font: inherit; cursor: pointer; perspective: 600px;
  transition: border-color .25s, background .25s;
}
.chip:hover { border-color: var(--lime); }
.chip-f, .chip-b { grid-area: 1 / 1; transition: opacity .3s, transform .45s cubic-bezier(.2,.8,.2,1); backface-visibility: hidden; }
.chip-f { font: 800 19px/1.15 var(--display); }
.chip-b { font: 600 13px/1.3 var(--text); color: var(--lime); opacity: 0; transform: rotateX(-90deg); }
.chip[aria-expanded="true"] { border-color: var(--lime); }
.chip[aria-expanded="true"] .chip-f { opacity: 0; transform: rotateX(90deg); }
.chip[aria-expanded="true"] .chip-b { opacity: 1; transform: none; }
.js:not(.static) .chips li { transform: translate(var(--dx, 0), var(--dy, 0)) scale(.3); opacity: 0; transition: transform .7s cubic-bezier(.2,1.3,.4,1), opacity .4s; }
.js:not(.static) .chips li.pop { transform: none; opacity: 1; }
.js:not(.static) .chips.gone li.pop { opacity: 0; transform: translateY(-20px) scale(.96); transition-duration: .4s; pointer-events: none; }
.js:not(.static) .chips li:focus-within { opacity: 1; transform: none; pointer-events: auto; }

.stats-wrap { grid-area: swap; display: grid; gap: 18px; justify-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; max-width: 980px; }
.stats li { display: grid; gap: 4px; text-align: left; padding-top: 10px; border-top: 1px solid rgba(229,231,234,.2); }
.stats b { display: block; overflow: clip; padding-bottom: .08em; font: 800 clamp(34px, 5vw, 64px)/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.fig { display: inline-block; }
/* the figures arrive whole, each rising out of its own line: nothing counts,
   so no frame ever shows a figure that is not the real one */
.js:not(.static) .fig { translate: 0 110%; transition: translate .55s cubic-bezier(.2,.8,.2,1); }
.js:not(.static) .stats-wrap.show .fig { translate: 0 0; }
.stats li:nth-child(2) .fig { transition-delay: .07s; } .stats li:nth-child(3) .fig { transition-delay: .14s; } .stats li:nth-child(4) .fig { transition-delay: .21s; }
.stats li:nth-child(2) b { color: var(--lime); }
.stats li > span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.js:not(.static) .stats-wrap { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.js:not(.static) .stats-wrap.show { opacity: var(--o, 1); transform: none; pointer-events: auto; }
.w3-fine { grid-area: fine; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .car-box { width: min(56vw, 700px); }
}
@media (max-width: 520px) {
  .chips { gap: 7px; }
  .chip { width: calc(50vw - var(--gut) - 4px); min-height: 44px; padding: 6px 10px; }
  .chip-f { font-size: 15px; }
  .chip-b { font-size: 12px; }
  .js:not(.static) .w3 .stage { gap: 12px; padding-bottom: 50px; }
  .js:not(.static) .w3 h2 { font-size: 30px; }
  .js:not(.static) .w3-copy p { font-size: 15px; }
}

/* ---------------------------------------------------------------- 4. the exact car */

.w4 .stage { grid-template-areas: "copy" "variant"; grid-template-rows: auto minmax(0, 1fr); align-content: stretch; justify-items: stretch; text-align: center; gap: 12px; }
.w4-copy { grid-area: copy; display: grid; gap: 8px; justify-items: center; }
.w4 h2 { font-size: clamp(32px, 5vw, 76px); }
.w4-copy p { color: var(--muted); max-width: 40ch; }
/* the particle field draws the variant name inside .glyph; the lines above
   and below it change with a short slide, in the direction of the scroll */
.variant { grid-area: variant; display: grid; grid-template-rows: auto auto auto; align-content: center; justify-items: center; min-height: 0; gap: 10px; padding-bottom: 4svh; }
.v-model { margin: 0; font: 700 clamp(13px, 1.25vw, 17px)/1.3 var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 8px; }
.glyph { width: 100%; height: clamp(150px, 54vw, 48svh); }
@media (max-width: 599px) { .glyph { height: min(40svh, 330px); } }
.v-eng { margin: 0; font: 700 clamp(22px, 2.4vw, 34px)/1.25 var(--text); color: #fff; padding-bottom: 6px; }
.sw { display: inline-grid; overflow: clip; vertical-align: top; }
.sw > span { grid-area: 1 / 1; white-space: nowrap; transition: translate .5s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.sw > span:not(.in) { opacity: 0; translate: 0 -100%; }
.sw[data-dir="down"] > span:not(.in) { translate: 0 100%; }
/* with no script or no motion: the three pairs as bold rows of type */
.pairs { grid-area: variant; display: grid; gap: 22px; width: min(100%, 760px); justify-self: center; align-content: start; padding-top: 12px; }
.pairs li { display: grid; gap: 8px; justify-items: center; padding-top: 16px; border-top: 1px solid rgba(229,231,234,.14); }
.pr-m { font: 700 13px/1.3 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pr-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; }
.pr-v { display: inline-flex; align-items: baseline; gap: 10px; }
.pr-v b { font: 800 clamp(34px, 6vw, 64px)/1 var(--text); font-stretch: 75%; color: var(--lime); }
.pr-v span { font: 700 clamp(16px, 1.8vw, 22px)/1 var(--text); color: #fff; }
.js:not(.static) .pairs { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:not(.js) .variant, .static .variant { display: none; }

/* ---------------------------------------------------------------- 5. the verdict */

.w5 .stage { grid-template-areas: "copy" "phone" "caps"; justify-items: center; align-content: center; gap: 18px; }
/* the sunrise: a disc of daylight comes up over the bottom edge, haloed in
   lime, and grows until the day has the whole screen */
.sun {
  position: absolute; left: 50%; top: 100%; width: 40vmax; aspect-ratio: 1; border-radius: 50%;
  background: var(--grey);
  box-shadow: 0 0 50px 16px rgba(241,243,245,.55), 0 0 180px 80px rgba(229,231,234,calc(.22 * (1 - var(--sun, 0))));
  transform: translate(-50%, calc(-50% - var(--sun, 0) * 40vh)) scale(calc(.35 + var(--sun, 0) * 5.4));
  opacity: var(--x, 1); pointer-events: none;
}
html:not(.js) .sun, .static .sun { display: none; }
.w5.risen .sun { visibility: hidden; }
.w5-copy { grid-area: copy; position: relative; }
.w5 h2 { font-size: clamp(32px, 5.2vw, 76px); max-width: 13ch; }
/* One phone for worlds 5, 6 and 7. All three are drawn at the same size in
   the same place, and in pinned mode each world's phone appears exactly over
   the last one's before anything else moves, so across the three worlds the
   frame holds still and only what is on its screen changes. */
.phone {
  grid-area: phone; position: relative; align-self: center;
  height: min(72svh, 640px); aspect-ratio: 720 / 1600;
  border-radius: 34px; padding: 9px; background: var(--navy);
  box-shadow: 0 50px 90px -40px rgba(11,19,32,.55), 0 0 0 1px rgba(11,19,32,.2);
}
.phone-screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: #fff; }
.shot { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; translate: 0 calc(var(--sy, 0) * 100%); }
.shot img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top; }
.shot.on { opacity: 1; }
.js:not(.static) .shot { will-change: opacity; }
/* each later phone is the verdict phone's twin, in the same place: it fades
   in over the last one whole, so the frame never moves and only the screen
   changes */
.js:not(.static) .p5 { opacity: var(--po, 1); }
.js:not(.static) .p6, .js:not(.static) .p7 { opacity: var(--pf, 1); }

/* THE VEIL (16 October 2026). As each caption arrives, the screen dims all
   but the part it is about, and that part stays at full brightness. Tom found
   lime outlines on the screens, and magnified copies of them beside the phone,
   neither precise nor premium. Nothing is drawn on the screen's own words:
   the bright part is a band the full width of the screen, so it has no side
   edges at all. It lights one whole thing (a card, a section, a list item
   with its heading), never part of one, and its top and bottom sit in the
   spacing around that thing, at
   least 20 of its 720 pixels clear of any text (about 8 CSS pixels on the
   smallest phone the site draws), with the dimming feathered outwards into
   that space. No push-in: the screens fill the phone to the app's own narrow
   margins, so any zoom would push words off its edges.
   --y and --h are fractions of the 720 by 1600 capture; the screen is shown
   whole and scaled to its height, so they are fractions of the phone too. */
.k1 { --y: .3431; --h: .2; }      /* the verdict and its sentence */
.k2 { --y: .1688; --h: .1513; }   /* checklist item 3, the power steering pump */
.k3 { --y: 0; --h: .595; }        /* the mileage reading and both charts */
.k4 { --y: .5363; --h: .3863; }   /* the brakes card, heading to what to do */
.k5 { --y: .3431; --h: .1463; }   /* a clean verdict */
.k6 { --y: .27; --h: .4475; }     /* the whole message on the seller sheet */
.k7 { --y: .5813; --h: .1819; }   /* the pair under the checklist */
.k8 { --y: .0594; --h: .2838; }   /* the report header, with Save PDF */
.veil { display: none; }
.js:not(.static) .veil {
  display: block; position: absolute; inset: 0; pointer-events: none;
  --dim: rgba(11, 19, 32, .46); --soft: .9%;
  background: linear-gradient(to bottom,
    var(--dim) 0, var(--dim) calc(var(--y) * 100% - var(--soft)), rgba(11, 19, 32, 0) calc(var(--y) * 100%),
    rgba(11, 19, 32, 0) calc((var(--y) + var(--h)) * 100%), var(--dim) calc((var(--y) + var(--h)) * 100% + var(--soft)), var(--dim) 100%);
  opacity: 0; transition: opacity .3s ease;
}
/* the screen arrives first, then the rest of it settles back */
.js:not(.static) .shot.on .veil { opacity: var(--o, 1); transition: opacity 1s cubic-bezier(.4, 0, .2, 1) .3s; }

.caps { grid-area: caps; position: relative; display: grid; gap: 10px; }
.cap { display: grid; gap: 4px; }
.cap b { font: 800 22px/1.15 var(--display); }
.cap span { color: var(--muted-l); font-size: 16px; }
.key { grid-area: caps; display: grid; gap: 12px; position: relative; z-index: 2; }
.key h3 { font-size: clamp(24px, 3vw, 36px); }
.bands { display: grid; gap: 8px; }
.bd { display: grid; grid-template-columns: 90px 86px 1fr; align-items: center; gap: 12px; font-size: 14px; }
.bd i { height: 12px; border-radius: 6px; background: var(--c); transform-origin: left; transform: scaleX(var(--g, 1)); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.bd b { font-weight: 700; }
.bd span { color: var(--muted-l); }
.bd-serious { --c: #D93025; } .bd-concern { --c: #E8710A; } .bd-watch { --c: #F2B705; } .bd-good { --c: #7CB342; } .bd-clear { --c: #1E8E3E; } .bd-none { --c: #8A919C; }

/* pinned: captions and key share one place; the key takes over at the end */
.js:not(.static) .cap { position: absolute; inset: auto 0 auto 0; opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .45s cubic-bezier(.2,.8,.2,1); }
.js:not(.static) .cap.on { opacity: var(--o, 1); transform: none; }
.js:not(.static) .caps { min-height: 7.5em; opacity: var(--o, 1); transition: opacity .4s; }
.js:not(.static) .key { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s; pointer-events: none; }
.js:not(.static) .key .bd i { --g: 0; }
.js:not(.static) .w5.keyed .key { opacity: var(--o, 1); transform: none; pointer-events: auto; }
.js:not(.static) .w5.keyed .key .bd i { --g: 1; }
.js:not(.static) .w5.keyed .caps { opacity: 0; }
.bd:nth-child(2) i { transition-delay: .06s; } .bd:nth-child(3) i { transition-delay: .12s; } .bd:nth-child(4) i { transition-delay: .18s; } .bd:nth-child(5) i { transition-delay: .24s; } .bd:nth-child(6) i { transition-delay: .3s; }

/* ---------------------------------------------------------------- 6. before you view the car */

.w6 .stage { grid-template-areas: "copy" "phone" "caps"; justify-items: center; align-content: center; gap: 18px; }
.w6-copy { grid-area: copy; position: relative; }
.w6 h2 { font-size: clamp(32px, 5.2vw, 76px); max-width: 13ch; }
/* BESIDE THE PHONE, WHAT EACH STEP PRODUCES (16 October 2026): the message
   as the seller receives it, then the first page of the PDF. Not a copy of
   the screen. The bubble is our own: our type and colours, a tick and a time,
   no messaging app's look, name or icons. Shown only with the pinned worlds;
   without them the world is the phone and its captions, as the verdict is. */
.beside { display: none; }
.chat, .page { margin: 0; }
.bubble {
  background: var(--navy); color: #EEF0F3; text-align: left;
  border-radius: 22px 22px 6px 22px; padding: 16px 18px 11px;
  font: 400 14px/1.5 var(--text);
  box-shadow: 0 34px 60px -36px rgba(11,19,32,.6), 0 2px 6px -2px rgba(11,19,32,.18);
}
.bubble p + p, .bubble p + ol, .bubble ol + p { margin-top: 9px; }
.bubble ol { list-style: decimal; padding-left: 1.3em; display: grid; gap: 5px; }
.bubble li::marker { color: #A8B1BF; }
/* the registration, hidden the way the screenshots hide it */
.redact { display: inline-block; width: 5.4em; height: .95em; vertical-align: -.1em; border-radius: 3px; background: repeating-linear-gradient(90deg, #C3C8CF 0 .9em, #B3B9C2 .9em 1.8em); }
.bubble .redact { background: repeating-linear-gradient(90deg, #3A4453 0 .9em, #2C3543 .9em 1.8em); }
.sent { display: flex; justify-content: flex-end; align-items: center; gap: 7px; margin-top: 10px; font: 500 12px/1 var(--text); color: #A8B1BF; font-variant-numeric: tabular-nums; }
/* the one lime in the view: the tick, on the navy, where lime reads */
.tick { display: block; width: 11px; height: 6px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); rotate: -45deg; translate: 0 -2px; }
/* the page: a sheet of paper, lit from above, lying a little off the ground */
.page img {
  width: 100%; height: auto; border-radius: 2px; background: #fff;
  box-shadow: 0 0 0 1px rgba(11,19,32,.06), 0 2px 4px rgba(11,19,32,.08), 0 22px 44px -20px rgba(11,19,32,.32), 0 60px 100px -50px rgba(11,19,32,.35);
}

.js:not(.static) .w6 .beside { display: block; position: absolute; pointer-events: none; }
.js:not(.static) .chat, .js:not(.static) .page {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto 0; height: fit-content;
  opacity: 0; transition: opacity .5s ease, translate .9s cubic-bezier(.2,.8,.2,1), scale .9s cubic-bezier(.2,.8,.2,1);
}
/* the message rises into place as if just sent from the phone beside it */
.js:not(.static) .chat { translate: 0 26px; scale: .97; transform-origin: 100% 100%; }
.js:not(.static) .w6:is([data-step="0"], [data-step="1"]) .chat { opacity: var(--o, 1); translate: none; scale: 1; }
.js:not(.static) .sent { opacity: 0; transition: opacity .35s ease; }
.js:not(.static) .tick { opacity: 0; scale: .3; transition: opacity .2s ease .12s, scale .55s cubic-bezier(.3, 1.5, .5, 1) .12s; }
.js:not(.static) .w6[data-step="1"] .sent { opacity: 1; }
.js:not(.static) .w6[data-step="1"] .tick { opacity: 1; scale: 1; }
.js:not(.static) .page { translate: 0 34px; }
.js:not(.static) .w6[data-step="2"] .page { opacity: var(--o, 1); translate: none; transition-delay: .1s; }

/* ---------------------------------------------------------------- 7. ask */

.w7 .stage { grid-template-areas: "copy" "phone" "fine"; justify-items: center; align-content: center; gap: 16px; }
.w7-copy { grid-area: copy; display: grid; gap: 8px; text-align: center; justify-items: center; }
.w7 h2 { font-size: clamp(34px, 5.8vw, 84px); }
.w7-copy p { font: 700 clamp(17px, 1.8vw, 22px)/1.3 var(--text); }
.w7-fine { grid-area: fine; color: var(--muted-l); text-align: center; }
/* the question box rides on the phone, over its own input bar */
.askbox {
  position: absolute; left: 50%; bottom: 7%; translate: -50% 0; z-index: 2;
  width: min(135%, 470px); min-height: 64px; display: flex; align-items: center; gap: 8px;
  padding: 12px 64px 12px 18px; border-radius: 18px; background: #fff; color: var(--navy);
  box-shadow: 0 30px 70px -26px rgba(11,19,32,.5), 0 0 0 1px rgba(11,19,32,.12);
  font: 500 17px/1.35 var(--text); text-align: left;
}
.js:not(.static) .askbox { opacity: var(--o, 1); }
.ask-caret { width: 2px; height: 1.2em; background: var(--navy); animation: caret 1s steps(1) infinite; flex: none; }
.ask-send { position: absolute; right: 10px; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 12px; background: var(--navy); }
.ask-send::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-left: 3px solid var(--lime); border-top: 3px solid var(--lime); transform: translate(-50%, -30%) rotate(45deg); }
html:not(.js) .ask-caret, .static .ask-caret { display: none; }

/* portrait phones: the caption above, the phone below it running off the foot
   of the screen, as wide as the screen allows, at the same place in both
   worlds. Each screen is panned so the part that matters is at the top of
   what shows, and legible. */
@media (max-width: 599px), (max-width: 899px) and (max-aspect-ratio: 4/5) {
  .js:not(.static) .w5 .stage, .js:not(.static) .w6 .stage, .js:not(.static) .w7 .stage { --ptop: calc(var(--head) + 116px + 16.4vw); grid-template-areas: "copy" "caps"; align-content: start; justify-items: start; gap: 10px; }
  .js:not(.static) .w7 .stage { grid-template-areas: "copy" "fine"; }
  .js:not(.static) .w5 h2, .js:not(.static) .w6 h2, .js:not(.static) .w7 h2 { font-size: clamp(26px, 7.6vw, 40px); max-width: none; }
  .js:not(.static) .w7-copy { text-align: left; justify-items: start; gap: 6px; }
  .js:not(.static) .w7-copy p { font-size: 16px; }
  .js:not(.static) .w7-fine { text-align: left; font-size: 13px; }
  .js:not(.static) .w5 .phone, .js:not(.static) .w6 .phone, .js:not(.static) .w7 .phone {
    grid-area: auto; position: absolute; top: var(--ptop); left: 50%; translate: -50% 0;
    width: min(calc(100vw - 20px), 460px); height: auto; padding: 6px; border-radius: 28px;
  }
  .js:not(.static) .w5 .phone-screen, .js:not(.static) .w6 .phone-screen, .js:not(.static) .w7 .phone-screen { border-radius: 22px; }
  /* pan: the region's top to the top of the screen, but never so far that the
     screenshot's own foot rises into view */
  .js:not(.static) .w5 .shot, .js:not(.static) .w6 .shot, .js:not(.static) .w7 .shot { translate: 0 max(calc(var(--sy, 0) * 100%), calc(100svh - var(--ptop) - 18px - 100%)); }
  /* each pan leaves a little of the dimmed screen above the bright part */
  .js:not(.static) .s1 { --sy: -.313; }
  .js:not(.static) .s2 { --sy: -.139; }
  .js:not(.static) .s3 { --sy: 0; }
  .js:not(.static) .s4 { --sy: -.5063; }
  .js:not(.static) .s5 { --sy: -.313; }
  .js:not(.static) .s6 { --sy: -.24; }
  .js:not(.static) .s7 { --sy: -.551; }
  .js:not(.static) .s8 { --sy: -.029; }
  .js:not(.static) .s9 { --sy: -.42; }
  .js:not(.static) .w5 .caps, .js:not(.static) .w6 .caps { width: 100%; min-height: 0; height: 72px; }
  .js:not(.static) .w5 .cap b, .js:not(.static) .w6 .cap b { font-size: 18px; }
  .js:not(.static) .w5 .cap span, .js:not(.static) .w6 .cap span { font-size: 14.5px; line-height: 1.4; }
  /* No room beside the phone: the message, then the page, take the phone's
     place, and the phone steps out of the way rather than sitting under them */
  .js:not(.static) .w6 .beside { inset: 0 0 auto 0; height: calc(100svh - var(--ptop) - 24px); }
  .js:not(.static) .w6 .chat, .js:not(.static) .w6 .page { margin: 0; }
  .js:not(.static) .w6[data-step="0"] .chat { opacity: 0; translate: 0 26px; scale: .97; }
  .js:not(.static) .w6 .bubble { font-size: 13.5px; padding: 15px 16px 10px; }
  .js:not(.static) .w6 .page { height: 100%; display: flex; justify-content: center; align-items: flex-start; }
  .js:not(.static) .w6 .page img { width: auto; max-width: 100%; max-height: 100%; }
  .js:not(.static) .w6 .p6 { transition: background-color .5s, box-shadow .5s; }
  .js:not(.static) .w6 .p6 .phone-screen { transition: opacity .45s; }
  .js:not(.static) .w6:is([data-step="1"], [data-step="2"]) .p6 { background-color: transparent; box-shadow: none; }
  .js:not(.static) .w6:is([data-step="1"], [data-step="2"]) .p6 .phone-screen { opacity: 0; }
  /* the colour key is the finale: it takes the stage and the phone steps back */
  .js:not(.static) .w5 .key {
    grid-area: auto; position: absolute; left: 0; right: 0; top: calc(var(--ptop) - 6px); z-index: 3; margin: 0 auto; width: min(calc(100vw - 2 * var(--gut)), 440px);
    background: var(--navy); color: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 24px 60px -20px rgba(11,19,32,.6);
  }
  .js:not(.static) .w5.keyed .phone { opacity: calc(var(--po, 1) * .25); transition: opacity .5s; }
  .js:not(.static) .w5 .key { gap: 8px; }
  .js:not(.static) .w5 .key h3 { font-size: 20px; }
  .js:not(.static) .w5 .bd { grid-template-columns: 52px 68px 1fr; font-size: 12.5px; gap: 8px; }
  .js:not(.static) .w5 .bd span { color: var(--muted); }
  .js:not(.static) .askbox { left: 0; right: 0; translate: none; width: auto; top: calc(100svh - var(--ptop) - 150px); bottom: auto; margin: 0 6px; font-size: 15.5px; }
}

/* side by side, from a square screen (an unfolded phone, 724 by 724) up */
@media (min-width: 900px), (min-width: 600px) and (min-aspect-ratio: 4/5) {
  .w5 .stage, .w6 .stage, .w7 .stage { grid-template-columns: minmax(0, 1fr) auto; column-gap: 6vw; justify-items: start; }
  .w5 .stage, .w6 .stage { grid-template-areas: "copy phone" "caps phone"; }
  .w7 .stage { grid-template-areas: "copy phone" "fine phone"; }
  .w5-copy, .w6-copy, .w7-copy { align-self: end; }
  .caps, .key, .w7-fine { align-self: start; }
  .w7-copy { text-align: left; justify-items: start; }
  .w7-fine { text-align: left; }
  .caps, .key { width: min(440px, 100%); }
  .phone { height: 84svh; }
  .js:not(.static) .w5 .stage, .js:not(.static) .w6 .stage, .js:not(.static) .w7 .stage { padding-top: 24px; padding-bottom: 24px; }
}
/* the square and the narrow desktop: the phone as tall as the screen allows
   under the header, and what the step produces under the caption, in the
   words' column */
@media (min-width: 600px) and (max-width: 1099px) and (min-aspect-ratio: 4/5) {
  .w5 h2, .w6 h2, .w7 h2 { font-size: clamp(30px, 4.6vw, 44px); }
  .js:not(.static) .w5 .stage, .js:not(.static) .w6 .stage, .js:not(.static) .w7 .stage { padding-top: calc(var(--head) + 4px); padding-bottom: 12px; align-content: stretch; grid-template-rows: auto minmax(0, 1fr); column-gap: 5vw; }
  .js:not(.static) .phone { height: calc(100svh - var(--head) - 16px); align-self: start; }
  .js:not(.static) .w5 .stage > .phone, .js:not(.static) .w6 .stage > .phone, .js:not(.static) .w7 .stage > .phone { grid-row: 1 / span 2; }
  .js:not(.static) .w5-copy, .js:not(.static) .w6-copy, .js:not(.static) .w7-copy { align-self: start; padding-top: 3svh; }
  .cap b { font-size: 20px; }
  .cap span { font-size: 15px; }
  .key h3 { font-size: 24px; }
  .bd { grid-template-columns: 40px 70px 1fr; gap: 10px; font-size: 13px; }
  .js:not(.static) .w6 .beside { bottom: 9px; right: calc(100% + 5vw); width: calc(100vw - 2 * var(--gut) - 100% - 5vw); height: 60%; }
  .js:not(.static) .w6 .chat, .js:not(.static) .w6 .page { top: auto; margin: 0; }
  .js:not(.static) .w6 .bubble { font-size: 11.5px; line-height: 1.42; padding: 12px 14px 9px; border-radius: 18px 18px 5px 18px; }
  .js:not(.static) .w6 .bubble p + p, .js:not(.static) .w6 .bubble p + ol, .js:not(.static) .w6 .bubble ol + p { margin-top: 6px; }
  .js:not(.static) .w6 .bubble ol { gap: 2px; }
  .js:not(.static) .w6 .page { height: 100%; display: flex; justify-content: flex-start; align-items: flex-end; }
  .js:not(.static) .w6 .page img { width: auto; max-width: 100%; max-height: 100%; }
  /* anchored to the phone's right edge, so it reaches into the gutter on the left and never off the screen */
  .askbox { left: auto; right: 0; translate: none; width: min(125%, 380px); font-size: 15px; }
  .js:not(.static) .car-box { width: min(56vw, 480px); }
  .js:not(.static) .chip { min-height: 46px; padding: 6px 10px; }
  .js:not(.static) .chip-f { font-size: 16px; }
  .js:not(.static) .w3 .stage { gap: 12px; padding-bottom: 52px; }
  .js:not(.static) .w3 h2 { font-size: 36px; }
}
/* desktop: words, then the phone in the middle, then what the step produces */
@media (min-width: 1100px) {
  .w5 .stage, .w6 .stage, .w7 .stage { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 5vw; }
  .w5 .stage, .w6 .stage { grid-template-areas: "copy phone ." "caps phone ."; }
  .w7 .stage { grid-template-areas: "copy phone ." "fine phone ."; }
  .w5-copy, .w6-copy, .w7-copy, .caps, .key, .w7-fine { justify-self: end; width: min(100%, 460px); }
  .w5 h2, .w6 h2, .w7 h2 { font-size: clamp(40px, 4.4vw, 92px); }
  .js:not(.static) .w6 .beside { top: 9px; bottom: 9px; left: calc(100% + 5vw); width: clamp(280px, 25vw, 440px); }
  .askbox { width: min(125%, 520px); }

  /* THE FIVE POINTS DOWN THE RIGHT (16 October 2026). With the copies gone the
     right of the phone was empty and the verdict read lopsided, so on a wide
     screen its captions stand there as one quiet list: the point the screen
     is on at full ink, marked with a fine lime bar, the rest muted, the mark
     moving down as the screens change. The heading and the colour key keep
     the left. Phones keep the single caption. */
  .w5 .stage { grid-template-areas: "copy phone caps" "key phone caps"; }
  .w5 .key { grid-area: key; }
  .w5 .caps { grid-area: caps; align-self: center; justify-self: start; width: min(100%, 380px); gap: 26px; }
  .w5 .cap { position: relative; padding-left: 22px; }
  .w5 .cap::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; border-radius: 2px; background: rgba(11,19,32,.16); }
  .js:not(.static) .w5 .caps { min-height: 0; opacity: var(--o, 1); }
  .js:not(.static) .w5.keyed .caps { opacity: var(--o, 1); }
  .js:not(.static) .w5 .cap { position: relative; inset: auto; transform: none; opacity: calc(var(--o, 1) * .4); transition: opacity .5s cubic-bezier(.4, 0, .2, 1); }
  .js:not(.static) .w5 .cap.on { opacity: var(--o, 1); }
  .js:not(.static) .w5 .cap::before { transition: background-color .5s, width .5s, box-shadow .5s; }
  .js:not(.static) .w5 .cap.on::before { width: 3px; left: -1px; background: var(--lime); box-shadow: 0 0 0 1px rgba(11,19,32,.8); }
}

/* ---------------------------------------------------------------- 8. launch day */

.w8 .stage { place-items: center; text-align: center; }
.flood { position: absolute; inset: 0; background: var(--lime); clip-path: circle(calc(var(--f, 1) * 150vmax) at 50% 108%); pointer-events: none; }
.js:not(.static) .flood { clip-path: circle(calc(var(--f, 0) * 140vmax) at 50% 100%); }
.w8-copy { position: relative; display: grid; gap: 14px; justify-items: center; color: var(--navy); opacity: calc(var(--t7, 1) * (1 - var(--g7, 0))); transform: translateY(calc((1 - var(--t7, 1)) * 40px)); }
.w8 h2 { font-size: clamp(44px, 10vw, 150px); max-width: 10ch; }
.w8-copy p { font: 700 clamp(17px, 2vw, 24px)/1.3 var(--text); }

.launch-body { position: relative; z-index: 1; overflow-x: clip; background: var(--lime); color: var(--navy); padding: 40px var(--gut) 96px; display: grid; gap: 34px; justify-items: center; }
.price-h { font-size: clamp(30px, 4.6vw, 64px); text-align: center; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; width: min(1100px, 100%); }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.price { background: var(--navy); color: #fff; border-radius: 20px; padding: 22px; display: grid; align-content: start; gap: 10px; }
.p-free { background: #fff; color: var(--navy); }
.price-k { font: 700 12px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.p-free .price-k { color: var(--muted-l); }
.price-v { font: 800 clamp(40px, 5vw, 56px)/1 var(--display); }
.price-d { font-size: 15px; line-height: 1.45; color: #D5DAE1; }
.p-free .price-d { color: var(--muted-l); }
/* the eight things the history check covers, kept compact in two columns */
.price-l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 14px; font-size: 13.5px; line-height: 1.3; color: #D5DAE1; }
.price-l li { padding-left: 14px; text-indent: -14px; }
.p-hist { position: relative; }
/* "Both" as a sticker sitting on the history check's top edge, so the card's
   own title keeps its line */
.sticker {
  position: absolute; top: -58px; right: 12px; margin: 0; rotate: 9deg;
  display: grid; place-content: center; justify-items: center; width: 90px; aspect-ratio: 1; border-radius: 50%;
  background: var(--lime); color: var(--navy); font: 700 13px/1.15 var(--text); text-transform: uppercase; letter-spacing: .1em;
  box-shadow: 0 0 0 3px var(--navy), 0 14px 26px -12px rgba(11,19,32,.6);
}
.sticker b { display: block; margin-top: 2px; font: 800 23px/1 var(--display); letter-spacing: -.01em; text-transform: none; }
@media (max-width: 899px) { .p-hist { margin-top: 44px; } }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.price-l li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin: 0 8px 1px 0; }
.price { transition: translate .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.js:not(.static) .price { transform: translateY(30px); opacity: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s, translate .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.js:not(.static) .price.in { transform: none; opacity: 1; }
.price:nth-child(2) { transition-delay: .08s, .08s, 0s, 0s; } .price:nth-child(3) { transition-delay: .16s, .16s, 0s, 0s; }

.final { display: grid; gap: 22px; justify-items: center; width: min(1180px, 100%); padding-top: 18px; }
.btn-huge { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3.4vw, 44px); line-height: 1.1; padding: 26px 36px; border-radius: 22px; max-width: 100%; }
.btn-navy:hover { box-shadow: 0 18px 50px -18px rgba(11,19,32,.65); }
.final-row { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center; }
.store-soon { display: grid; gap: 2px; padding: 12px 20px; border: 2px dashed var(--navy); border-radius: 14px; min-width: 190px; }
.store-k { font: 600 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; }
.store-v { font: 800 24px/1.1 var(--text); }
.qr { margin: 0; display: none; gap: 8px; justify-items: center; font-size: 13px; font-weight: 600; }
.qr img { width: 120px; height: 120px; background: #fff; padding: 8px; border-radius: 12px; }
@media (min-width: 900px) { .qr { display: grid; } }

.foot { position: relative; z-index: 1; background: var(--navy); color: var(--muted); padding: 48px var(--gut) 72px; font-size: 14px; }
.foot-in { max-width: 1180px; margin: 0 auto; display: grid; gap: 16px; }
.foot-in img { height: 24px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: #fff; }

/* ---------------------------------------------------------------- the pointer
   Mouse only (html.mouse is set by world.js after checking hover and a fine
   pointer, and never in still mode). --mx and --my are written only on the
   few elements that use them. */

/* things turn slightly to face the cursor; the plate stops turning as it becomes the portal */
.mouse .plate-wrap { transform: perspective(1100px) rotateY(calc(var(--mx, 0) * 10deg * (1 - var(--z, 0)))) rotateX(calc(var(--my, 0) * -8deg * (1 - var(--z, 0)))); }
.mouse .phone { transform: perspective(1600px) rotateY(calc(var(--mx, 0) * 8deg)) rotateX(calc(var(--my, 0) * -6deg)); }
/* and the layers part: far things drift against the cursor, near things with it */
.mouse .bays { translate: calc(var(--mx, 0) * -12px) 0; }
.mouse .grid { translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -10px); }
.mouse .car-box { translate: calc(var(--mx, 0) * 12px) calc(var(--my, 0) * 8px); }
.mouse .sun { translate: calc(var(--mx, 0) * -40px) 0; }

.chip { transition: border-color .25s, background-color .25s, translate .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.mouse .chip:hover { translate: 0 -3px; background-color: rgba(20,30,46,.96); box-shadow: 0 16px 36px -16px rgba(204,255,0,.5); }
.mouse .price:hover { translate: 0 -8px; box-shadow: 0 34px 60px -34px rgba(11,19,32,.7); }
.mouse .price.p-free:hover { box-shadow: 0 34px 60px -34px rgba(11,19,32,.45), 0 0 0 2px var(--navy); }

/* ---------------------------------------------------------------- wide screens
   Composed for 1280, 1440 and 1920 wide: split, asymmetric, with the big type
   given the room, rather than the phone layout stretched. */

@media (min-width: 1100px) {
  .js:not(.static) .w3 .stage { --carw: min(44vw, 820px); }
  .js:not(.static) .w3 .car-box { width: var(--carw); }
  /* the forum's words hang round the car they came out of */
  .js:not(.static) .chips { grid-area: car; justify-self: stretch; align-self: stretch; display: block; max-width: none; pointer-events: none; }
  .js:not(.static) .chips li { position: absolute; }
  .js:not(.static) .chips li.pop { pointer-events: auto; }
  .js:not(.static) .chips li:nth-child(-n+3) { left: calc(50% - var(--carw) / 2 - 236px); }
  .js:not(.static) .chips li:nth-child(n+4):nth-child(-n+6) { left: calc(50% + var(--carw) / 2 + 26px); }
  .js:not(.static) .chips li:nth-child(1), .js:not(.static) .chips li:nth-child(4) { top: calc(50% - 118px); }
  .js:not(.static) .chips li:nth-child(2), .js:not(.static) .chips li:nth-child(5) { top: calc(50% - 32px); }
  .js:not(.static) .chips li:nth-child(3), .js:not(.static) .chips li:nth-child(6) { top: calc(50% + 54px); }
  .js:not(.static) .chips li:nth-child(n+7) { top: calc(100% + 34px); }
  .js:not(.static) .chips li:nth-child(7) { left: calc(50% - 345px); }
  .js:not(.static) .chips li:nth-child(8) { left: calc(50% - 105px); }
  .js:not(.static) .chips li:nth-child(9) { left: calc(50% + 135px); }
  .js:not(.static) .chips li:nth-child(2) { left: calc(50% - var(--carw) / 2 - 266px); }
  .js:not(.static) .chips li:nth-child(5) { left: calc(50% + var(--carw) / 2 + 56px); }

  .w4 h2 { font-size: clamp(40px, 4.4vw, 88px); }
}
@media (min-width: 1400px) {
  :root { --gut: clamp(16px, 6vw, 132px); }
  .w1 h1 { font-size: clamp(46px, 7.2vw, 170px); }
  .plate-note { font-size: 19px; }
  .w1-cta .btn { font-size: 19px; padding: 18px 30px; }
  .hero-badges .store-badge { height: 60px; }
  .w1-cta .small { font-size: 15px; }
  .plate { --pw: min(38vw, 700px); }
  .w2 h2 { font-size: clamp(34px, 5.2vw, 104px); }
  .w2 .stage { grid-template-columns: 1fr min(540px, 32vw); }
  .ev-t { font-size: 18px; }
  .w3 h2 { font-size: clamp(32px, 4.6vw, 92px); }
  .w5-copy, .w6-copy, .w7-copy, .caps, .key, .w7-fine { width: min(100%, 520px); }
  .cap b { font-size: 28px; }
  .cap span { font-size: 18px; }
  .w8 h2 { font-size: clamp(44px, 10vw, 200px); }
}

/* ---------------------------------------------------------------- still */

/* Without the pinned worlds nothing swaps one thing for another, so the chips
   and the counters, and the captions and the colour key, each get a row. */
html:not(.js) .w3 .stage, .static .w3 .stage { grid-template-areas: "copy" "car" "swap" "stats" "fine"; }
html:not(.js) .stats-wrap, .static .stats-wrap { grid-area: stats; }
html:not(.js) .car-img, .static .car-img { opacity: .45; }
html:not(.js) .w5 .stage, .static .w5 .stage { grid-template-areas: "copy" "phone" "caps" "key"; }
html:not(.js) .w5 .key, .static .w5 .key { grid-area: key; margin-top: 12px; }
html:not(.js) .w4 .stage, .static .w4 .stage { grid-template-rows: auto auto; }
@media (min-width: 900px), (min-width: 600px) and (min-aspect-ratio: 4/5) {
  html:not(.js) .w5 .stage, .static .w5 .stage { grid-template-areas: "copy phone" "caps phone" "key phone"; }
  html:not(.js) .w5-copy, .static .w5-copy { align-self: end; }
}
@media (min-width: 1100px) {
  html:not(.js) .w5 .stage, .static .w5 .stage { grid-template-areas: "copy phone caps" "key phone caps"; }
  html:not(.js) .w5 .key, .static .w5 .key { margin-top: 0; align-self: start; }
}

.static .stage, html:not(.js) .stage { padding-top: calc(var(--head) + 48px); padding-bottom: 72px; }
.static .plate, html:not(.js) .plate { transform: none; }
.static .plate::after, html:not(.js) .plate::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Launch day (scripts/site-launch.mjs): Google's own badge, unaltered, at least
   28px high, with clear space of a quarter of its height (Google's badge rules). */
.play-badge { display: inline-block; padding: 16px; }
.play-badge img { display: block; height: 64px; width: auto; }

/* Launch day (18 October 2026): both stores' official badges, side by side, App Store
   first. Sized by height only, so the artwork keeps its own proportions; never recoloured.
   docs/LAUNCH-ASSETS.md has each store's minimum size and clear space. */
.store-badges { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: center; margin-bottom: 26px; }
.store-badge-link { display: block; line-height: 0; }
.store-badge { display: block; height: 60px; width: auto; }
