/* Revlica marketing site (DESIGN.md). Tokens = the app's brand (src/ui/theme.ts). Static-first: complete with no JavaScript.
   Tiers on <html data-tier>: static = no motion; light = CSS transitions only; rich = + the GSAP motion layer (js/rich.js).
   <html data-release>: "preview" (private, nothing on sale) or "launch"; copy for the other state is hidden, never deleted (RELEASE checklist). */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-400_800-normal.woff2') format('woff2'); font-weight: 400 800; font-stretch: 100% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* metric-matched fallback while Archivo loads (measured 4 Nov: Archivo body text is 97.8% of Arial's width), so the swap doesn't reflow the copy */
@font-face { font-family: 'Archivo fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 97.8%; }
/* the hero headline (800, stretched 112%) measures ~1.17x Arial Bold: its own fallback keeps the line breaks the same when Archivo arrives */
@font-face { font-family: 'Archivo display fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'); font-weight: 700 900; size-adjust: 117.5%; }
:root {
  /* the phone app's palette (18 Nov, Patrick: "make everything the same colour as the phone app"): src/ui/theme.ts, the same values the
     player at /drive/ uses. Graphite page, raised panels the car art is flattened onto (qa/flatten-all.sh), warm ivory ink. Revlica blue
     stays exact: graphics, the CTA fill (graphite text on it, 5.3:1) and large figures; small blue text uses the lighter --accentInk.
     Espresso (live 18 Nov 10:07 to this change) is kept as a possible later colour change: ~/Backups/revlica/20261118T-espresso/. */
  color-scheme: dark;
  --ground: #111820; --panel: #1C2530; --panelHi: #26303D; --line: #35404D; --ink: #F3EFE6; --muted: #A9B1BB;
  --faint: #8E98A4; /* one step lighter than the app's inkFaint (#7D8792, decorative only there): here it carries small notes, 6.1 / 5.3 */
  --accent: #268CFF; --onAccent: #111820; --accentInk: #74B6FF; --redline: #FF684D; --ok: #A8D5BA;
  --edge: #7D8792; /* the app's inkFaint. Outlines of controls (Hear, the trace): 3:1 on the ground and on panels, unlike the hairline --line */
  --gutter: clamp(16px, 2.2vw, 28px); --r: 20px; --max: 1360px;
  --inset: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); /* the content's left line, at any width (header included) */
  --t-mega: clamp(2.75rem, 1.1rem + 6.4vw, 7.25rem); --t-xl: clamp(2rem, 1.2rem + 3.4vw, 4.25rem); --t-l: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  --t-m: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem); --t-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem); --t-s: 0.9375rem; --t-xs: 0.8125rem;
  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
  --f: 'Archivo', 'Archivo fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ground); scrollbar-color: var(--edge) var(--ground); accent-color: var(--accent); caret-color: var(--accentInk); }
body { margin: 0; color: var(--ink); font: 400 var(--t-body)/1.55 var(--f); font-stretch: 100%; -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
::selection { background: var(--accent); color: var(--onAccent); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 20; background: var(--ink); color: var(--ground); padding: 10px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.display { font-family: 'Archivo', 'Archivo display fallback', sans-serif; font-size: var(--t-mega); font-weight: 800; font-stretch: 112%; line-height: 0.94; letter-spacing: -0.038em; text-wrap: balance; margin-left: -0.04em; }
.h2 { font-size: var(--t-xl); font-weight: 800; font-stretch: 110%; line-height: 0.98; letter-spacing: -0.032em; text-wrap: balance; margin-left: -0.03em; }
h3 { font-size: var(--t-m); font-weight: 700; font-stretch: 104%; letter-spacing: -0.01em; }
.lede { text-wrap: pretty; color: var(--muted); font-size: var(--t-m); line-height: 1.45; max-width: 18.7em; margin-top: clamp(18px, 2vw, 28px); }
.note { color: var(--faint); font-size: var(--t-xs); line-height: 1.5; }
.link { color: var(--ink); text-decoration: none; padding-block: 3px; background: linear-gradient(var(--accent) 0 0) left bottom / 100% 2px no-repeat; transition: background-size 0.4s var(--ease); }
@media (hover: hover) { .link:hover { background-size: 100% 0.45em; } }
.link:focus-visible { background-size: 100% 0.45em; }
[data-release="preview"] .at-launch, [data-release="launch"] .in-preview { display: none !important; }

/* header: logo, nav, the one action. Its edges sit on the content's left and right lines at every width */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); padding: 10px var(--inset);
  background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(10px); view-transition-name: top; border-bottom: 1px solid var(--line); }
.logo { display: block; border-radius: 6px; margin-right: auto; transition: translate 0.35s var(--ease); }
@media (hover: hover) { .logo:hover { translate: 3px 0; } }  /* a small forward nudge: the logo leans into the rev */
.logo:focus-visible { translate: 3px 0; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.draw { font-size: var(--t-s); font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor 0 0) left bottom / 0% 2px no-repeat;
  transition: background-size 0.45s var(--ease), color 0.3s; }
@media (hover: hover) { .draw:hover { color: var(--ink); background-size: 100% 2px; } }
.draw:focus-visible, .draw[aria-current] { color: var(--ink); background-size: 100% 2px; }

/* primary CTA: the fill sweeps in from the left like the tach arc filling; press scales */
.cta { position: relative; isolation: isolate; overflow: clip; display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: var(--onAccent); font-weight: 800; font-stretch: 106%; text-decoration: none; white-space: nowrap; transition: scale 0.2s var(--ease); }
.cta--small { min-height: 40px; padding: 0 18px; font-size: var(--t-s); }
.cta__label { transition: color 0.3s; }
.cta__fill { position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateX(-101%); transition: transform 0.5s var(--ease); }
@media (hover: hover) { .cta:hover .cta__fill { transform: translateX(0); } .cta:hover .cta__label { color: var(--panel); } }
.cta:focus-visible .cta__fill { transform: translateX(0); }
.cta:focus-visible .cta__label { color: var(--panel); }
.cta:active { scale: 0.97; }

/* Hear buttons: the same sweep, in blue, over a panel; the icon is drawn (play / stop), never a text glyph */
.hear { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px; border-radius: 999px; border: 1px solid var(--edge); color: var(--ink);
  background: linear-gradient(var(--accent) 0 0) left / 0% 100% no-repeat var(--panel); font-weight: 700; font-size: var(--t-s); line-height: 1; cursor: pointer;
  transition: background-size 0.5s var(--ease), border-color 0.3s; }
.hear--quiet { min-height: 44px; padding: 0 18px 0 14px; }
.hear__icon { width: 14px; height: 14px; flex: none; fill: var(--accentInk); transition: translate 0.3s var(--ease); }
.hear .i-stop, .hear[data-playing] .i-play { display: none; }
.hear[data-playing] .i-stop { display: inline; }
@media (hover: hover) { .hear:hover { background-size: 100% 100%; border-color: var(--accent); } .hear:hover { color: var(--onAccent); } .hear:hover .hear__icon { fill: var(--onAccent); translate: 2px 0; } }
.hear:focus-visible .hear__icon { translate: 2px 0; }
.hear[data-playing] { background: var(--ink); color: var(--panel); border-color: var(--ink); } .hear[data-playing] .hear__icon { fill: var(--accent); translate: none; }

/* sections: varied rhythm, everything hangs from the left margin line */
main > section, main > article, .foot { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: 72px; } /* in-page links land below the sticky header */

/* HERO: the headline on the left; on the right, the instrument (a real recorded drive you can play or drag through) with the two actions
   directly under it (18 Nov, Patrick: the buttons belong with the car box). In the source the actions come before the instrument, which is
   the phone's order; the wide layout moves them under it. */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; min-height: calc(100svh - 61px); padding-block: clamp(24px, 4vw, 56px); }
.hero__copy { grid-column: 1 / 8; }
@media (min-width: 861px) { .hero .display { font-size: min(var(--t-mega), 11svh); } } /* the five-line headline scales with a short laptop screen so the actions stay on the first screen */
.fit { margin-top: 16px; font-weight: 600; font-size: var(--t-s); color: var(--ink); max-width: 30em; }
.ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: clamp(24px, 2.8vw, 36px); }
.avail { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; color: var(--muted); font-size: var(--t-xs); max-width: 36em; }
.avail__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accentInk); translate: 0 -1px; }
.hero__side { grid-column: 8 / 13; }
.hero__stage { margin: 0; }
@media (min-width: 861px) {
  .hero__side { display: flex; flex-direction: column; }
  .hero__side .ctas { order: 1; margin-top: 14px; } .hero__side .ctas > * { flex: 1 1 auto; justify-content: center; }
  .hero__cap { order: 2; }
}
.stage { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 2vw, 26px) clamp(16px, 2vw, 26px) 14px; }
.stage__car { width: 92%; margin-inline: auto; }
.gauge { display: grid; grid-template-columns: minmax(120px, 0.9fr) 2fr; align-items: end; gap: clamp(12px, 2vw, 28px); margin-top: 6px; }
.tach { width: 100%; display: block; }
.needle { transform-origin: 110px 116px; transform: rotate(-90deg); }
.dash { display: grid; grid-template-columns: 2.6rem 5.6rem minmax(7.6rem, 1fr); grid-template-rows: auto auto; gap: 2px clamp(14px, 2vw, 26px); padding-bottom: 4px; }
.dash div { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.dash dd { align-self: end; }
.dash dt { color: var(--faint); font-size: var(--t-xs); font-weight: 600; }
.dash dd { font-weight: 800; font-stretch: 108%; font-size: var(--t-l); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.dash dd small { font-size: var(--t-xs); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.dash__gear dd { font-size: var(--t-xl); color: var(--accentInk); min-width: 1ch; }
.trace { position: relative; height: 100px; margin-top: 18px; border-radius: 8px; } /* one height: at 72 px the idle line ran through the gear labels (21 Nov review) */
.trace__svg { position: absolute; inset: 0 7px; width: calc(100% - 14px); height: 100%; overflow: visible; } /* inset by half the playhead's width, so the range input's thumb sits exactly on the moment it shows */
.trace__line { fill: none; stroke: var(--muted); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.trace__line--on { stroke: var(--accent); stroke-width: 4; }
.trace__gears li { position: absolute; bottom: 2px; left: calc(7px + (100% - 14px) * var(--x) / 100); translate: -50% 0; font-size: var(--t-xs); font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; }
.trace__red { position: absolute; right: 7px; top: 0; font-size: 0.6875rem; font-weight: 700; color: var(--faint); line-height: 15px; pointer-events: none; }
/* the playhead IS the range input's thumb: a native, keyboard-operable control, drawn as a line with a knob */
.trace__scrub { position: absolute; inset: -8px 0; width: 100%; height: calc(100% + 16px); margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: ew-resize; border-radius: 8px; }
.trace__scrub::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.trace__scrub::-moz-range-track { height: 100%; background: transparent; }
.trace__scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 100%; border: 0; background: radial-gradient(circle at 50% calc(100% - 7px), var(--ink) 5px, transparent 5.5px), linear-gradient(var(--ink) 0 0) center / 2px 100% no-repeat; }
.trace__scrub::-moz-range-thumb { width: 14px; height: 100%; border: 0; border-radius: 0; background: radial-gradient(circle at 50% calc(100% - 7px), var(--ink) 5px, transparent 5.5px), linear-gradient(var(--ink) 0 0) center / 2px 100% no-repeat; }
.trace__scrub:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.phases { display: flex; margin-top: 12px; padding-inline: 7px; font-size: var(--t-xs); color: var(--muted); }
.phases li { flex: 0 0 var(--w); border-top: 1px solid var(--line); padding: 6px 8px 0 0; position: relative; }
.phases li::before { content: ''; position: absolute; left: 0; top: -4px; width: 1px; height: 7px; background: var(--edge); }
.hero__cap { margin-top: 12px; max-width: 62ch; }

/* ENGINES: the garage. Choose by character on one side; on the other, the car and the same drive, on one rev scale, in the engine you chose */
.engines { padding-block: clamp(64px, 9vw, 130px) clamp(48px, 6vw, 90px); }
.engines__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.engines__head .h2 { grid-column: 1 / 7; }
.engines__lede { grid-column: 7 / 13; margin: 0; max-width: 24em; }
.garage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(32px, 4vw, 56px); align-items: start; }
.picker { grid-column: 1 / 6; display: grid; gap: clamp(20px, 2.4vw, 32px); }
.pickset { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; }
.pickset legend { padding: 0 0 8px; font-weight: 800; font-stretch: 108%; font-size: var(--t-m); letter-spacing: -0.015em; }
.pick { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 7px 14px 7px 7px; border-radius: 12px; cursor: pointer; transition: background-color 0.25s; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick img { border-radius: 8px; transition: translate 0.45s var(--ease); }
.pick__name { font-weight: 700; font-size: var(--t-body); }
.pick__price { font-weight: 800; font-size: var(--t-s); font-variant-numeric: tabular-nums; color: var(--muted); }
.pick__price.free, #bayPrice.free { color: var(--ok); }
@media (hover: hover) { .pick:hover { background: var(--panelHi); } .pick:hover img { translate: 3px 0; } }
.pick:has(input:checked) { background: var(--ink); color: var(--panel); }
.pick:has(input:checked) .pick__price { color: var(--panel); }
.pick:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.bay { grid-column: 6 / 13; position: sticky; top: 76px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(14px, 1.8vw, 24px); }
.bay { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: clamp(14px, 2vw, 28px); align-items: center; }
.bay > :not(.bay__car, .bay__id) { grid-column: 1 / -1; }
.bay__car { display: grid; place-items: center; }
.bay__car img { width: 100%; transition: translate 0.45s var(--ease), opacity 0.25s; }
.bay__car.is-swap img { translate: -16px 0; opacity: 0; }
.bay__id { display: grid; gap: 6px; align-content: center; min-height: 11.5em; } /* room for the longest description, so the trace below never jumps on a swap */
.bay__id h3 { font-size: var(--t-l); font-weight: 800; font-stretch: 108%; letter-spacing: -0.025em; line-height: 1.05; }
.bay__id > p:not(.bay__facts) { color: var(--muted); }
.bay__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--t-s); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.bay__play { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.dash--row { margin-left: auto; padding: 0; }
.dash--row dd { font-size: var(--t-m); }
.dash--row .dash__gear dd { font-size: var(--t-l); }
.bay .note { margin-top: 12px; }
.later { margin-top: clamp(36px, 4vw, 52px); max-width: 52rem; }
.later h3 { font-size: var(--t-s); font-weight: 700; color: var(--muted); }
.later ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px var(--gutter); margin: 14px 0; }
.later li { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; font-size: var(--t-s); color: var(--muted); }
.later li b { display: block; color: var(--ink); font-size: var(--t-body); }
.later img { border-radius: 10px; border: 1px dashed var(--edge); filter: grayscale(1); opacity: 0.75; }

/* HOW: the full-width white band; a sticky phone beside the four gears */
.how { background: var(--panel); box-shadow: 0 0 0 100vmax var(--panel); clip-path: inset(0 -100vmax); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: clamp(80px, 11vw, 170px); }
.how__media { grid-column: 1 / 5; position: sticky; top: 90px; align-self: start; }
.how__media img { width: min(100%, 320px); border-radius: 32px; border: 8px solid #05080B; }
.how__steps { grid-column: 6 / 13; display: grid; gap: clamp(48px, 8vh, 100px); }
.chapter { display: grid; grid-template-columns: min-content 1fr; column-gap: 24px; row-gap: 8px; max-width: 46rem; }
.chapter__gear { grid-row: span 2; font-size: var(--t-l); font-weight: 800; font-stretch: 112%; color: var(--accentInk); line-height: 1; width: 3.3ch; font-variant-numeric: tabular-nums; }
.chapter p:not(.chapter__gear) { color: var(--muted); max-width: 56ch; }
.chapter--tune { grid-template-rows: auto auto auto; }
.tones { grid-column: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--line); }
.tones div { padding: 12px 14px 0 0; }
.tones div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.tones dt { font-weight: 800; }
.tones dd { font-size: var(--t-xs); color: var(--muted); margin-top: 2px; }

/* PRICING: a ruled row of the real numbers, how buying works under it */
.pricing { padding-block: clamp(48px, 5.5vw, 84px) clamp(40px, 4.5vw, 64px); }
.pricing__head { display: flex; justify-content: space-between; align-items: end; gap: 16px 40px; flex-wrap: wrap; }
.status { font-size: var(--t-s); font-weight: 600; color: var(--ink); padding: 8px 14px; border: 1px solid var(--edge); border-radius: 10px; }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(28px, 4vw, 48px) 0 0; border-top: 1px solid var(--ink); }
.price { padding: 22px var(--gutter) 26px 0; }
.price + .price { padding-left: var(--gutter); border-left: 1px solid var(--line); }
.price dt { color: var(--muted); font-size: var(--t-s); font-weight: 600; }
.price__num { display: block; font-size: var(--t-xl); font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; margin: 6px 0 10px; }
.price--collection { background: var(--panel); border-radius: 0 0 var(--r) var(--r); }
.price--collection .price__num { color: var(--accentInk); }
.price__what { color: var(--muted); font-size: var(--t-s); display: block; }
.price__cars { display: grid; gap: 6px; margin-bottom: 14px; }
.price__cars img { border-radius: 8px; width: 100%; aspect-ratio: 2.1; object-fit: contain; background: var(--panel); padding: 2px; }
.price__cars--one { grid-template-columns: repeat(2, minmax(0, 0.42fr)); }
.price__cars--two { grid-template-columns: repeat(2, minmax(0, 0.42fr)); }
.price__cars--many { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.buy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(28px, 3.5vw, 44px); padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--t-s); color: var(--muted); counter-reset: buy; }
.buy li { counter-increment: buy; position: relative; padding-left: 26px; }
.buy li::before { content: counter(buy); position: absolute; left: 0; top: 0; font-weight: 800; color: var(--accentInk); font-variant-numeric: tabular-nums; }
.buy b { color: var(--ink); display: block; }
/* Android interest (18 Nov): one field, shown in both release states; the form is hidden until js/site.js can post it */
.android { margin-top: clamp(28px, 3.5vw, 44px); padding-top: 18px; border-top: 1px solid var(--line); max-width: 34rem; display: grid; gap: 10px; }
.android > p { color: var(--muted); font-size: var(--t-s); }
.android form { display: grid; gap: 8px; margin-top: 4px; }
.android form[hidden] { display: none; }
.android label { font-size: var(--t-xs); font-weight: 700; color: var(--ink); }
.android__row { display: flex; flex-wrap: wrap; gap: 10px; }
.android input { flex: 1 1 14rem; min-width: 0; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--edge); background: var(--panel); color: var(--ink); font: inherit; font-size: 16px; } /* 16px: iOS doesn't zoom the page on focus */
.android button { border: 0; cursor: pointer; }
.android button:disabled { opacity: 0.6; cursor: default; }
.android > p.android__msg { color: var(--ink); font-weight: 600; }
.android__msg:empty { display: none; }

/* BROWSER: the address you type in the car, set as the image of the section */
.browser { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding-block: clamp(48px, 6vw, 96px) clamp(64px, 8vw, 120px); }
.browser__copy { grid-column: 1 / 7; display: grid; gap: 22px; justify-items: start; }
.browser__copy > p { color: var(--muted); max-width: 46ch; }
.browser__copy > p.url { color: var(--accentInk); font-size: var(--t-xl); font-weight: 800; font-stretch: 112%; letter-spacing: -0.035em; line-height: 1; max-width: none; margin-block: 6px; }
.url span { color: var(--ink); }
.needs { display: grid; max-width: 46ch; border-top: 1px solid var(--line); }
.needs li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--t-s); position: relative; }
.needs li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 9px; height: 2px; background: var(--accent); }
.browser__shot { grid-column: 8 / 12; margin: 0; }
.browser__shot img { border-radius: var(--r); box-shadow: 0 22px 44px -22px rgba(5, 8, 11, 0.5); } /* a real dark screenshot: lifted off the ground, not recoloured */
.browser__shot figcaption { margin-top: 12px; }

/* FOOTER: the logo itself, large, as the last frame; the same mark as the header */
.foot { padding-block: clamp(48px, 7vw, 100px) 40px; border-top: 1px solid var(--line); }
.foot__logo { width: min(100%, 880px); margin-left: -0.6%; }
.foot__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: clamp(28px, 4vw, 48px) 0 18px; color: var(--muted); }
.foot nav { display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: center; }
.util { color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--edge); transition: color 0.3s; display: inline-block; padding: 4px 0; background: none; border: 0; cursor: pointer; font-size: inherit; }
@media (hover: hover) { .util:hover { color: var(--ink); text-decoration-color: var(--accent); } }
.fx[aria-pressed="true"] { color: var(--ink); text-decoration-color: var(--accent); }

/* inner pages */
.doc { padding-block: clamp(48px, 7vw, 110px); } .doc > :not(.lede) { max-width: 60rem; } /* the column hangs from the same left line as the home page */
.doc--split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.doc--split > * { grid-column: 1 / 8; }
.toc { grid-column: 9 / 13 !important; grid-row: 1 / span 4; position: sticky; top: 90px; font-size: var(--t-s); }
.toc h2 { font-size: var(--t-s); font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.toc a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; transition: color 0.3s, translate 0.35s var(--ease); }
@media (hover: hover) { .toc a:hover { color: var(--ink); translate: 4px 0; } }
.faq { margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 10px; }
.faq h2 { font-size: var(--t-m); font-weight: 800; font-stretch: 106%; margin-top: 26px; scroll-margin-top: 80px; }
.faq p { color: var(--muted); max-width: 64ch; }
.faq strong { color: var(--ink); }
.draft { background: var(--panel); border: 1px solid var(--redline); border-radius: 12px; padding: 14px 18px; margin-bottom: 28px; font-size: var(--t-s); color: var(--muted); max-width: 64ch; }
.draft strong { color: var(--ink); }
.lost { min-height: 70svh; display: grid; align-content: center; gap: 18px; }
.lost__gear { font-size: clamp(6rem, 3rem + 14vw, 14rem); font-weight: 800; font-stretch: 125%; line-height: 0.8; color: var(--panelHi); }

/* phones and tablets: recomposed, not squished */
@media (max-width: 860px) {
  .top { gap: 16px; padding-block: 8px; }
  .logo img { width: 96px; }
  .cta--small { min-height: 40px; padding: 0 14px; font-size: var(--t-xs); }
  .draw { padding-block: 12px; } /* 44 px tap targets */
  .foot .util { padding-block: 10px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 26px 56px; }
  .hero__copy, .hero__side { display: contents; } /* one column: headline, lines, actions, availability, instrument, caption */
  .hero .ctas { order: 1; } .hero .avail { order: 2; } .hero__stage { order: 3; margin-top: 32px; } .hero__cap { order: 4; }
  .engines__head, .garage, .how, .browser, .doc--split { grid-template-columns: minmax(0, 1fr); }
  .engines__head .h2, .engines__lede, .picker, .bay, .how__media, .how__steps, .browser__copy, .browser__shot, .doc--split > * { grid-column: 1; }
  .engines__lede { margin-top: 16px; }
  .toc { display: none; }
  /* the picker becomes a strip right above the stage, so a tap's result is in view: all nine in one swipeable row */
  .picker { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; }
  .pickset { display: contents; }
  .pickset legend { display: none; }
  .pick { flex: 0 0 118px; grid-template-columns: 1fr; gap: 2px; padding: 6px 8px 8px; scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); }
  .pick__name { font-size: var(--t-xs); line-height: 1.2; }
  .pick__price { font-size: var(--t-xs); }
  .pick::before { content: attr(data-group); order: 9; font-size: 0.6875rem; line-height: 1.2; color: var(--faint); } /* the group's name, which the strip's layout can't show as a heading */
  .pick:has(input:checked)::before { color: var(--panelHi); }
  .bay { position: static; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); column-gap: 12px; }
  .bay__id { min-height: 9em; gap: 3px; font-size: var(--t-xs); }
  .bay__id h3 { font-size: var(--t-m); }
  .bay__facts { font-size: var(--t-xs); gap: 2px 8px; }
  .bay__play .hear { flex: 1 1 140px; justify-content: center; min-height: 48px; padding-inline: 10px; }
  .dash--row { margin-left: 0; width: 100%; }
  .later ul { grid-template-columns: 1fr; }
  .how__media { position: static; order: 2; margin-top: 44px; } .how__media img { width: min(58%, 240px); margin-inline: auto; } /* the words first; the screen confirms them */
  .how__steps { gap: 44px; }
  .tones { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tones div, .tones div + div { padding: 10px 0 10px; border-left: 0; border-bottom: 1px solid var(--line); }
  .tones div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .prices, .buy { grid-template-columns: 1fr; }
  .price + .price { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .price.price--collection { padding-inline: 16px; border-radius: var(--r); }
  .browser__shot { margin-top: 36px; max-width: 420px; }
}
@media (max-width: 600px) {
  .draw--wide { display: none; }
  .dash { grid-template-columns: 2rem 4.4rem minmax(0, 1fr); gap: 2px 8px; } .dash dd small { font-size: 0.6875rem; }
  .top nav { gap: 14px; }
  .ctas { display: grid; grid-template-columns: 1fr; gap: 10px; } .ctas > * { justify-content: center; } /* stacked: the same layout in the fallback font and in Archivo (no wrap jump when it loads) */
  .gauge { grid-template-columns: 104px 1fr; }
  .dash dd { font-size: var(--t-m); }
  .dash__gear dd { font-size: var(--t-l); }
}

@media (min-width: 861px) and (max-width: 1240px) { /* the hero's narrower column: readouts stay fixed-width, one size down */
  .gauge { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .dash { grid-template-columns: 2rem 4.4rem minmax(0, 1fr); gap: 2px 8px; } .dash dd { font-size: var(--t-m); } .dash__gear dd { font-size: var(--t-l); } .dash dd small { font-size: 0.6875rem; }
  .bay { grid-template-columns: minmax(0, 1fr); } .bay__id { min-height: 8.5em; }
}
@media (max-width: 360px) { .gauge { grid-template-columns: 72px minmax(0, 1fr); gap: 8px; } .dash { grid-template-columns: 1.6rem 3.8rem minmax(0, 1fr); } .dash dd { font-size: 1.05rem; } .dash__gear dd { font-size: 1.25rem; } .phases { font-size: 0.6875rem; } }
@media (max-width: 480px) { .top nav a[href="/#pricing"] { display: none; } .top, .top nav { gap: 12px; } .cta--small { padding: 0 12px; } } /* phones: Account takes Pricing's place, the logo keeps its size */
@media (max-width: 360px) { .top nav a:not(:first-child) { display: none; } } /* the smallest phones: logo, Engines, the player */

/* between pages: the header holds still while the page under it cross-fades */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; }
html[data-tier="static"]::view-transition-group(*), html[data-tier="static"]::view-transition-old(*), html[data-tier="static"]::view-transition-new(*) { animation: none; }

/* static: no transitions at all; reduced motion: none either, and every state still visible */
html[data-tier="static"] *, html[data-tier="static"] *::before, html[data-tier="static"] *::after { transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
