/* Routr landing page. Tokens mirror design-tokens/colors.json; the map
   colours mirror assets/map_styles/*.json. One accent, spent only on the
   route line, the active stop, the rider's disc and the primary button. */

:root {
  --canvas: #F5F3EE; --surface: #FFFFFF; --muted: #F0EDE6; --line: #E4E0D7;
  --ink: #15130F; --ink2: #5E594F; --ink3: #9A9488;
  --accent: #E8B23E; --accent-deep: #C8941F; --on-accent: #15130F;
  --positive: #1D9A5B; --on-positive: #FFFFFF; --caution: #B8771A; --negative: #D6453D;
  --chrome: #15130F; --on-chrome: #F4F1EA;
  --marker: #FFFFFF; --on-marker: #15130F;
  --route: #C8941F; --route-done: #9A9488;
  --map-land: #EDECE6; --map-block: #E6E4DC; --map-building: #DEDBD1; --map-park: #D9E2D3;
  --map-road: #FFFFFF; --map-label: #8A867C;
  --float: 0 8px 24px rgb(21 19 15 / .14), 0 1px 4px rgb(21 19 15 / .06);
  --chip: 0 3px 12px rgb(21 19 15 / .12);
  --device: #15130F; --device-edge: #15130F;
  --r-control: 12px; --r-card: 20px; --r-sheet: 28px;
  --gutter: 24px;
  --mark-edge: transparent;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0E0D0B; --surface: #191714; --muted: #24211C; --line: #302C25;
    --ink: #F4F1EA; --ink2: #A8A296; --ink3: #6F6A60;
    --accent: #F2C658; --accent-deep: #E8B23E;
    --positive: #34C77B; --on-positive: #0E0D0B; --caution: #E0A84A; --negative: #F0655B;
    --chrome: #26221B; --on-chrome: #F4F1EA;
    --marker: #F4F1EA;
    --route: #F2C658; --route-done: #6F6A60;
    --map-land: #15181A; --map-block: #181B1D; --map-building: #1F2326; --map-park: #162018;
    --map-road: #24292C; --map-label: #6F6A60;
    --float: 0 8px 24px rgb(0 0 0 / .55), 0 1px 4px rgb(0 0 0 / .35);
    --chip: 0 3px 12px rgb(0 0 0 / .45);
    --device: #2A2721; --device-edge: #3E3A32;
  --mark-edge: #3E3A32;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0E0D0B; --surface: #191714; --muted: #24211C; --line: #302C25;
  --ink: #F4F1EA; --ink2: #A8A296; --ink3: #6F6A60;
  --accent: #F2C658; --accent-deep: #E8B23E;
  --positive: #34C77B; --on-positive: #0E0D0B; --caution: #E0A84A; --negative: #F0655B;
  --chrome: #26221B; --on-chrome: #F4F1EA;
  --marker: #F4F1EA;
  --route: #F2C658; --route-done: #6F6A60;
  --map-land: #15181A; --map-block: #181B1D; --map-building: #1F2326; --map-park: #162018;
  --map-road: #24292C; --map-label: #6F6A60;
  --float: 0 8px 24px rgb(0 0 0 / .55), 0 1px 4px rgb(0 0 0 / .35);
  --chip: 0 3px 12px rgb(0 0 0 / .45);
  --device: #2A2721; --device-edge: #3E3A32;
  --mark-edge: #3E3A32;
  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 500 17px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; }
img, svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.i { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ink2 { color: var(--ink2); } .ink3 { color: var(--ink3); }
.mono, .mono-ui { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; }
.eyebrow {
  margin: 0; font: 700 12px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink3);
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.display {
  font: 800 clamp(44px, 5vw, 72px)/.98 "Bricolage Grotesque", system-ui, sans-serif;
  letter-spacing: -.045em; margin: 0; text-wrap: balance;
}
.headline-lg {
  font: 800 clamp(36px, 4.6vw, 64px)/1 "Bricolage Grotesque", system-ui, sans-serif;
  letter-spacing: -.04em; margin: 0; text-wrap: balance;
}
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink2); margin: 0; max-width: 34ch; text-wrap: pretty; }

/* Buttons: capsules. Press feel comes from site.js (spring in, spring out). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; padding: 0 26px; border: 0; border-radius: 999px;
  font: 600 16px/1 "Plus Jakarta Sans", sans-serif; text-decoration: none; cursor: pointer;
  white-space: nowrap; -webkit-tap-highlight-color: transparent; will-change: transform;
}
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: var(--muted); color: var(--ink); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn .i { width: 20px; height: 20px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 26px/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.04em;
  text-decoration: none;
}
.wordmark.sm { font-size: 20px; gap: 8px; }

/* The mark: the app icon ("The R", tool/icon/make_icons.py), the same in both
 * themes, with a hairline edge on dark pages. In the header it draws itself
 * once per page on the app's springs (design-tokens/motion.json, sampled into
 * linear()): the tile settles, the start ring pops, the route runs to the
 * stop and the plate lands; site/mark.js runs a courier dot along the line
 * and plays it again on hover. Reduced motion: the finished icon. */
:root {
  --sp-arrive: cubic-bezier(.34, 1.4, .64, 1); --sp-arrive-t: .55s;
  --sp-bouncy: cubic-bezier(.34, 1.56, .64, 1); --sp-bouncy-t: .47s;
  --sp-draw: cubic-bezier(.2, .7, .2, 1); --sp-draw-t: .78s;
}
@supports (animation-timing-function: linear(0, 1)) {
  :root {
    --sp-arrive: linear(0, 0.155, 0.457, 0.746, 0.949, 1.058, 1.093, 1.084, 1.057, 1.029, 1.008, 0.996, 0.991, 0.992, 0.994, 0.997, 0.999, 1);
    --sp-bouncy: linear(0, 0.196, 0.546, 0.839, 1.012, 1.077, 1.077, 1.051, 1.024, 1.005, 0.995, 0.993, 0.995, 0.997, 1);
    --sp-draw: linear(0, 0.053, 0.168, 0.301, 0.43, 0.546, 0.644, 0.725, 0.789, 0.84, 0.879, 0.91, 0.933, 0.95, 0.963, 0.973, 0.98, 0.985, 0.989, 0.992, 0.994, 0.996, 0.997, 0.998, 1);
  }
}
.mark { width: 36px; height: 36px; flex: none; overflow: visible; }
.wordmark.sm .mark { width: 26px; height: 26px; }
.mark-tile { fill: #15130F; stroke: var(--mark-edge); stroke-width: 28px; }
.mark-route { fill: none; stroke: #E8B23E; stroke-width: 84px; stroke-linecap: round; stroke-linejoin: round; }
.mark-paper { fill: #F5F3EE; }
.mark-tip { stroke: #F5F3EE; stroke-width: 8px; stroke-linejoin: round; }
.mark-ink { fill: #15130F; }
.mark-dot { opacity: 0; }
.mark-live { transform-origin: 50% 50%; animation: mark-pop var(--sp-arrive-t) var(--sp-arrive) both; }
.mark-live .mark-ring { transform-box: fill-box; transform-origin: center; animation: mark-grow var(--sp-bouncy-t) var(--sp-bouncy) .05s both; }
.mark-live .mark-route { stroke-dasharray: 1 1; animation: mark-draw var(--sp-draw-t) var(--sp-draw) .14s both; }
.mark-live .mark-plate { transform-box: fill-box; transform-origin: 50% 100%; animation: mark-land var(--sp-bouncy-t) var(--sp-bouncy) .52s both; }
@keyframes mark-pop { from { transform: scale(.82) rotate(-6deg); } }
@keyframes mark-grow { from { transform: scale(0); } }
@keyframes mark-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mark-land { from { transform: translateY(-80%) scale(.4); opacity: 0; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mark-live, .mark-live * { animation: none !important; }
}
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav .theme-toggle { margin-right: -10px; }
.top-link { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink2); }
.top-link:hover { color: var(--ink); }

/* Theme toggle: light by default, dark on request (site/theme.js). */
.theme-toggle {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--muted); color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle .i { grid-area: 1 / 1; width: 20px; height: 20px; }
:root:not([data-theme="dark"]) .theme-toggle .i-sun,
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
html:not([data-theme]) .theme-toggle { display: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); align-items: center;
  gap: 24px; min-height: min(820px, calc(100svh - 76px)); padding-bottom: 40px; overflow-x: clip;
}
.hero-copy { display: grid; gap: 22px; position: relative; z-index: 2; }
.hero-copy .eyebrow { margin-bottom: -4px; }
.fine { margin: -6px 0 0; font-size: 14px; color: var(--ink3); }

.waitlist {
  display: flex; gap: 6px; padding: 6px; max-width: 480px;
  background: var(--surface); border-radius: 999px;
}
.waitlist input {
  flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 18px; border: 0; background: transparent;
  color: var(--ink); font: 500 17px/1 "Plus Jakarta Sans", sans-serif; border-radius: 999px;
}
.waitlist input::placeholder { color: var(--ink3); }
.waitlist input:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.waitlist .btn { height: 52px; }
.waitlist[data-invalid] { box-shadow: inset 0 0 0 2px var(--negative); }
.waitlist-done[hidden] { display: none; }
.waitlist-done { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 16px; min-height: 52px; font-weight: 600; }
.waitlist-done .i { color: var(--positive); }
.waitlist.is-done input, .waitlist.is-done .btn { display: none; }
.waitlist.is-busy .btn { opacity: .7; pointer-events: none; }
.waitlist-error { margin: -8px 0 0; color: var(--negative); font-weight: 600; font-size: 15px; }
.waitlist-error[hidden] { display: none; }

.hero-stage {
  position: relative; height: min(700px, 76svh); min-height: 460px;
  margin-right: calc(-1 * var(--gutter));
}
.stage-persp {
  position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 30%;
  -webkit-mask-image: radial-gradient(farthest-side at 50% 55%, #000 58%, transparent);
          mask-image: radial-gradient(farthest-side at 50% 55%, #000 58%, transparent);
}
.stage-plane {
  position: absolute; left: 50%; top: 52%; width: 1000px; height: 1000px;
  transform-origin: 0 0; transform-style: preserve-3d; --tilt: 54deg; --spin: -26deg;
}
.hud-chips { position: absolute; top: 9%; right: 7%; display: flex; gap: 8px; }
.hud-card {
  position: absolute; left: 4%; bottom: 9%; width: min(320px, 78%);
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--float);
  padding: 16px 16px 14px; will-change: transform;
}
.hud-row { display: flex; justify-content: space-between; align-items: center; }
.hud-count { font-size: 14px; color: var(--ink2); }
.hud-stop { display: flex; align-items: center; gap: 12px; margin-top: 14px; transition: opacity .18s; }
.hud-stop.is-swapping { opacity: 0; }
.hud-address { font-weight: 600; font-size: 15px; line-height: 1.25; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  background: var(--surface); color: var(--ink); border-radius: 999px; box-shadow: var(--chip);
  font: 600 14px/1 "Plus Jakarta Sans", sans-serif;
}
.chip.mono { font: 600 14px/1 "IBM Plex Mono", monospace; }
.chip.icon { width: 40px; padding: 0; justify-content: center; }
.chip .i { width: 18px; height: 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); flex: none; animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--positive) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

.bar { height: 6px; border-radius: 3px; background: var(--muted); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--positive); border-radius: 3px; transform-origin: 0 50%; transform: scaleX(0); }

/* ── Plates: the same object as the app's map pin ─────────────────────── */
.plate {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--muted); color: var(--ink); font: 600 12px/1 "IBM Plex Mono", monospace;
  transition: background-color .18s, color .18s;
}
.plate.lg { width: 48px; height: 48px; border-radius: var(--r-control); font-size: 15px; }
.plate.accent { background: var(--accent); color: var(--on-accent); }
.plate.done { background: var(--positive); color: var(--on-positive); }
.plate.low { box-shadow: inset 0 0 0 1.5px var(--caution); }
.plate svg { width: 18px; height: 18px; }

/* Map layers, shared by the hero (tilted) and the phones (top-down). */
.city, .route { position: absolute; left: 0; top: 0; width: 1000px; height: 1000px; overflow: visible; }
.m-land { fill: var(--map-land); } .m-block { fill: var(--map-block); } .m-bld { fill: var(--map-building); }
.m-park { fill: var(--map-park); } .m-road { stroke: var(--map-road); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-label { fill: var(--map-label); font: 600 13px "Plus Jakarta Sans", sans-serif; letter-spacing: .02em; }
.r-case { stroke: var(--map-road); stroke-width: 15; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.r-line { stroke: var(--route); stroke-width: 8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.r-done { stroke: var(--route-done); stroke-width: 8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.pin { position: absolute; width: 0; height: 0; transform-style: preserve-3d; }
.pin.bb { transform: rotateZ(calc(-1 * var(--spin))) rotateX(calc(-1 * var(--tilt))); transform-origin: 0 0; }
.pin-body {
  position: absolute; left: -22px; bottom: -3.5px; width: 44px; height: 56.5px;
  transform-origin: 50% 93.8%; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .18)); will-change: transform, opacity;
}
.pin-plate {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--marker); color: var(--on-marker); display: grid; place-items: center;
  font: 600 15px/1 "IBM Plex Mono", monospace; transition: background-color .18s, color .18s;
}
.pin-stem { position: absolute; left: 20.5px; top: 42px; width: 3px; height: 11px; border-radius: 2px; background: var(--marker); transition: background-color .18s; }
.pin-tip { position: absolute; left: 18.5px; top: 49.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--marker); transition: background-color .18s; }
.pin-plate .i { width: 20px; height: 20px; display: none; }
.pin.low .pin-plate { box-shadow: inset 0 0 0 2.5px var(--caution); }
.pin.active .pin-plate, .pin.active .pin-stem, .pin.active .pin-tip { background: var(--accent); color: var(--on-accent); }
.pin.done .pin-plate, .pin.done .pin-stem, .pin.done .pin-tip { background: var(--positive); color: var(--on-positive); }
.pin.done .pin-plate { box-shadow: none; }
.pin.done .pin-plate .i { display: block; }
.pin.done .pin-label { display: none; }
.pin-badge {
  position: absolute; left: 30px; top: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--chrome); color: var(--on-chrome); border: 1.5px solid var(--marker);
  display: grid; place-items: center; font: 700 10px/1 "IBM Plex Mono", monospace;
  transform: scale(0); will-change: transform;
}
.pin.done .pin-badge { visibility: hidden; }

.ground-fx { position: absolute; width: 0; height: 0; }
.ripple { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; }
.ground-fx.on .ripple { animation: ripple 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.ground-fx.on .ripple:nth-child(2) { animation-delay: 1.2s; }
@keyframes ripple { 0% { transform: scale(.25); opacity: .7; } 100% { transform: scale(1.3); opacity: 0; } }

.rider { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.rider-disc {
  position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--marker), 0 4px 10px rgb(0 0 0 / .22);
  display: grid; place-items: center; color: var(--on-accent);
}
.rider-disc svg { width: 40px; height: 40px; }
.loc-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface), 0 0 0 12px color-mix(in srgb, var(--accent) 22%, transparent); }

/* ── How it works ───────────────────────────────────────────────────── */
/* overflow: clip, not hidden: it clips the phone waiting off-screen without
   becoming a scroll container, so position: sticky still works. */
.how { position: relative; height: calc(4 * 115svh + 100svh); overflow-x: clip; }
.how-sticky {
  position: sticky; top: 0; height: 100svh; display: grid;
  grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 96px);
}
.how-copy { position: relative; padding-left: 28px; }
.how-rail { position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--line); }
.how-rail i { display: block; width: 100%; height: 100%; background: var(--ink); border-radius: 2px; transform-origin: 50% 0; transform: scaleY(0); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step { position: relative; }
.step-num { display: block; font: 600 13px/1 "IBM Plex Mono", monospace; color: var(--ink3); margin-bottom: 8px; }
.step h3 {
  margin: 0; font: 800 clamp(30px, 3.6vw, 50px)/1.02 "Bricolage Grotesque", system-ui, sans-serif;
  letter-spacing: -.035em; color: var(--ink3); opacity: .55; transition: color .18s, opacity .18s;
}
.step.is-on h3 { color: var(--ink); opacity: 1; }
.step-body { overflow: hidden; height: 0; }
.step-body p { margin: 0; padding-top: 12px; max-width: 40ch; color: var(--ink2); font-size: 17px; opacity: 0; transition: opacity .18s; }
.step.is-on .step-body p { opacity: 1; }

.phones { position: relative; width: var(--phone-w, 340px); height: var(--phone-h, 720px); }
.phone {
  position: absolute; left: 0; top: 0; width: var(--phone-w, 340px); height: var(--phone-h, 720px);
  border-radius: calc(var(--phone-scale, .8) * 62px); background: var(--device);
  box-shadow: inset 0 0 0 1px var(--device-edge), var(--float); padding: calc(var(--phone-scale, .8) * 11px);
  will-change: transform;
}
.phone-cust { opacity: 0; pointer-events: none; }
.screen {
  position: relative; width: 402px; height: 874px; overflow: hidden; border-radius: 52px;
  background: var(--canvas); transform: scale(var(--phone-scale, .8)); transform-origin: 0 0;
  font-size: 15px; line-height: 1.45;
}
.p-map, .c-map { position: absolute; inset: 0; overflow: hidden; background: var(--map-land); }
.p-cam { position: absolute; left: 0; top: 0; width: 1000px; height: 1000px; transform-origin: 0 0; will-change: transform; }
.p-status {
  position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 5; display: flex;
  align-items: center; justify-content: space-between; padding: 6px 34px 0 46px; font-size: 16px; color: var(--ink);
}
.p-status .mono-ui { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; }
.p-island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 18px; background: #000; }
.p-sys { display: flex; gap: 5px; align-items: center; }
.p-sys i { display: block; width: 17px; height: 11px; border-radius: 3px; background: var(--ink); opacity: .85; }
.p-sys i:nth-child(1) { width: 16px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 1px; }
.p-sys i:nth-child(2) { width: 14px; border-radius: 7px 7px 2px 2px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.p-sys i:nth-child(3) { width: 25px; border-radius: 4px; }
.p-home { position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--ink); z-index: 9; opacity: .9; }

.p-chips { position: absolute; left: 16px; right: 16px; top: 62px; display: flex; justify-content: space-between; z-index: 4; opacity: 0; transition: opacity .18s; }
.p-chips.on { opacity: 1; }
.p-chips .chip { height: 44px; font-size: 15px; }
.p-chips .chip.icon { width: 44px; }
.p-chips-right { display: flex; gap: 8px; }

.p-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; height: 600px; z-index: 6;
  background: var(--surface); border-radius: 28px 28px 0 0; box-shadow: var(--float); overflow: hidden;
  will-change: height;
}
.p-handle { position: absolute; left: 50%; top: 10px; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--line); z-index: 2; }
.p-pages { position: absolute; inset: 0; }
.p-page { position: absolute; inset: 0; opacity: 0; transition: opacity .18s; overflow: hidden; }
.p-page.on { opacity: 1; }
.p-scroll { padding: 30px 24px 160px; will-change: transform; }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.p-head > span:first-child { display: grid; gap: 6px; }
.headline { font: 800 30px/1.05 "Bricolage Grotesque", sans-serif; letter-spacing: -1.1px; }
.p-iconbtn { width: 44px; height: 44px; border-radius: 50%; background: var(--muted); display: grid; place-items: center; flex: none; }
.p-iconbtn .i { width: 18px; height: 18px; }
.p-body { margin: 8px 0 0; font-size: 15px; }
.p-label { margin: 0; font-weight: 600; font-size: 15px; }
.p-methods { display: flex; gap: 8px; margin-top: 16px; }
.p-method { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--muted); font-weight: 600; }
.p-method .i { width: 18px; height: 18px; }
.p-search { display: flex; align-items: center; gap: 10px; height: 56px; margin-top: 12px; padding: 0 16px; border-radius: 12px; background: var(--muted); }
.p-query { position: relative; display: flex; align-items: center; font-size: 17px; flex: 1; min-width: 0; white-space: nowrap; }
.p-caret { width: 2px; height: 22px; background: var(--accent-deep); margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.p-hint { color: var(--ink3); position: absolute; left: 4px; }
.p-suggest { display: grid; margin-top: 4px; }
.p-sug { display: flex; align-items: center; gap: 12px; padding: 12px 8px; margin: 0 -8px; border-radius: 12px; transition: background-color .12s; }
.p-sug.hl { background: var(--muted); }
.p-sug span { flex: 1; display: grid; min-width: 0; }
.p-sug b { font-weight: 600; }
.p-sug small { font-size: 13px; color: var(--ink2); font-weight: 600; }
.p-sug small.caution { color: var(--caution); }
.p-sug .i { width: 18px; height: 18px; }
.p-added { margin-top: 22px; }
.p-rows { position: relative; margin-top: 4px; }
.p-row { display: flex; align-items: center; gap: 12px; height: 58px; border-bottom: 1px solid var(--line); will-change: transform, opacity; }
.p-row:last-child { border-bottom: 0; }
.p-row-text { flex: 1; min-width: 0; display: grid; }
.p-row-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-row-text small { font-size: 13px; font-weight: 600; color: var(--ink3); display: flex; gap: 4px; align-items: center; }
.p-row-text small.caution { color: var(--caution); }
.p-row-text small .i { width: 12px; height: 12px; }
.p-row > .i { width: 18px; height: 18px; color: var(--ink3); }
.p-rows-review { height: 290px; }
.p-rows-review .p-row { position: absolute; left: 0; right: 0; top: 0; border-bottom: 1px solid var(--line); }
.p-summary { margin-top: 8px; min-height: 42px; }
.p-summary .p-body { margin-top: 2px; }
.p-stops-label { margin-top: 22px; }

.p-progress { display: flex; justify-content: space-between; align-items: center; }
.p-progress .mono-ui { font-size: 15px; color: var(--ink2); }
.p-current { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px; border-radius: 20px; background: var(--muted); transition: opacity .18s; }
.p-current.is-swapping { opacity: 0; }
.p-current-address { flex: 1; font-size: 17px; font-weight: 600; line-height: 1.25; }
.p-nav { width: 48px; height: 48px; border-radius: 14px; background: var(--chrome); color: var(--on-chrome); display: grid; place-items: center; flex: none; }
.p-swipe { position: relative; height: 64px; margin-top: 12px; border-radius: 999px; background: var(--muted); overflow: hidden; display: grid; place-items: center; }
.p-swipe-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--positive); transform-origin: 0 50%; transform: scaleX(0); border-radius: 999px; }
.p-swipe-label { position: relative; font-weight: 600; color: var(--ink2); }
.p-thumb { position: absolute; left: 4px; top: 4px; width: 56px; height: 56px; border-radius: 50%; background: var(--chrome); color: var(--on-chrome); display: grid; place-items: center; will-change: transform; }
.p-links { display: flex; justify-content: space-around; margin-top: 16px; font-weight: 600; color: var(--ink2); }
.p-links span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; transition: background-color .12s; }
.p-links span.hl { background: var(--muted); }
.p-links .i { width: 18px; height: 18px; }
.p-links b { font-weight: 600; }
.p-next-label { margin-top: 26px; }

.p-footer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: var(--surface); border-top: 1px solid var(--line); height: 122px; will-change: transform; }
.p-foot { position: absolute; left: 24px; right: 24px; top: 12px; display: flex; align-items: center; gap: 12px; opacity: 0; transition: opacity .18s; }
.p-foot.on { opacity: 1; }
.p-foot .mono-ui { font-size: 15px; }
.p-btn { height: 60px; flex: 1; padding: 0 18px; }
.p-btn-wide { flex: 2; }
[data-foot="intake"] .p-btn { width: 100%; }

/* Customer phone */
.c-chat, .c-track { position: absolute; inset: 0; transition: opacity .18s; }
.c-track { opacity: 0; }
.c-chat { background: var(--canvas); }
.c-bar { position: absolute; left: 0; right: 0; top: 54px; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.c-bar span:last-child { display: grid; line-height: 1.2; }
.c-bar small { color: var(--ink3); font-size: 13px; font-weight: 600; }
.c-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--muted); display: grid; place-items: center; font-weight: 700; }
.c-thread { position: absolute; left: 0; right: 0; top: 118px; bottom: 0; padding: 22px 16px; display: flex; flex-direction: column; justify-content: flex-start; }
.c-bubble { position: relative; max-width: 300px; background: var(--surface); border-radius: 20px 20px 20px 6px; padding: 8px 8px 10px; box-shadow: 0 1px 2px rgb(0 0 0 / .06); overflow: hidden; will-change: transform; }
.c-bubble p { margin: 8px 8px 0; font-size: 15px; line-height: 1.4; }
.c-bubble u { text-underline-offset: 3px; }
.c-preview { display: grid; padding: 10px 12px; border-radius: 14px; background: var(--muted); }
.c-preview small { color: var(--ink3); font-size: 13px; }
.c-time { display: block; text-align: right; margin: 4px 8px 0; font-size: 12px; color: var(--ink3); }
.c-tap { position: absolute; left: 50%; top: 70%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: var(--ink); opacity: 0; transform: scale(.2); pointer-events: none; }
.c-map { bottom: auto; height: 420px; opacity: 0; transition: opacity .18s; }
.c-map.on { opacity: 1; }
.c-brand { position: absolute; left: 24px; top: 70px; font: 800 20px/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.5px; transition: opacity .18s; }
.c-track.has-map .c-brand { opacity: 0; }
.c-card {
  position: absolute; left: 16px; right: 16px; top: 108px; background: var(--surface); border-radius: 28px;
  padding: 24px 24px 20px; will-change: transform;
}
.c-eyebrow { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.c-live { display: none; align-items: center; gap: 6px; color: var(--positive); }
.c-live.on { display: inline-flex; }
.c-hero { margin: 0 0 10px; font: 800 40px/1.02 "Bricolage Grotesque", sans-serif; letter-spacing: -1.4px; }
.c-hero.good { color: var(--positive); }
.c-sub { margin: 0; font-size: 17px; color: var(--ink2); }
.c-sub b { color: var(--ink); font-weight: 600; font-size: 15px; }
.c-rows { list-style: none; margin: 22px 0 0; padding: 0; }
.c-rows li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); min-height: 58px; }
.c-rows li > span:last-child { display: grid; line-height: 1.35; }
.c-rows b { font-weight: 600; }
.c-rows small { color: var(--ink3); font-size: 13px; font-weight: 500; }
.c-foot { margin: 18px 0 0; font-size: 13px; color: var(--ink3); text-align: center; }

/* ── Built for real streets ─────────────────────────────────────────── */
.section-head { display: grid; gap: 14px; max-width: 780px; margin-bottom: 40px; }
.features { padding-top: 120px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--surface); border-radius: var(--r-card); padding: 14px 14px 24px; display: flex; flex-direction: column; }
.tile-stage { position: relative; height: 216px; border-radius: var(--r-control); background: var(--canvas); overflow: hidden; }
.tile-stage-list { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px; }
.tile-stage-center { display: grid; place-items: center; align-content: center; gap: 22px; }
.tile h3 { margin: 20px 6px 6px; font: 700 22px/1.15 "Bricolage Grotesque", sans-serif; letter-spacing: -.5px; }
.tile p { margin: 0 6px; color: var(--ink2); font-size: 15px; line-height: 1.45; }

.mini-map { position: absolute; left: 50%; top: 50%; width: 300px; height: 190px; margin: -95px 0 0 -150px; }
.mini-map svg { position: absolute; inset: 0; }

.t-sug, .t-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-control); background: var(--surface); will-change: transform, opacity; }
.t-sug span { flex: 1; display: grid; min-width: 0; }
.t-sug b { font-weight: 600; font-size: 15px; }
.t-sug small { font-size: 13px; font-weight: 600; color: var(--ink2); }
.t-sug .i, .t-row > .i { width: 18px; height: 18px; }
.t-sug.hl { background: var(--muted); }
.caution { color: var(--caution) !important; }
.t-row .p-row-text b { font-size: 15px; }
.t-row .p-row-text small { line-height: 1.3; }
.t-ring-plate { position: relative; flex: none; width: 34px; height: 34px; }
.t-ring { position: absolute; left: 0; top: 0; width: 34px; height: 34px; overflow: visible; pointer-events: none; }
.t-ring rect { fill: none; stroke: var(--caution); stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 100; }

.v-disc {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 4px var(--marker), var(--chip); will-change: transform;
}
.v-disc svg { width: 78px; height: 78px; }
.v-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 12px; }
.v-names span { height: 30px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); color: var(--ink3); font: 600 13px/1 "Plus Jakarta Sans", sans-serif; transition: background-color .18s, color .18s; }
.v-names span.on { background: var(--chrome); color: var(--on-chrome); }

.calc { display: grid; gap: 10px; font-size: 15px; }
.calc-row, .calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-row span { color: var(--ink2); }
.calc-total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 600; }
.calc-total > b { font-size: 17px; }
.calc .mono { font-variant-numeric: tabular-nums; }

.t-swipe { margin-top: 0; width: 100%; flex: none; }

.reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.reasons span { height: 34px; padding: 0 13px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); font: 600 13px/1 "Plus Jakarta Sans", sans-serif; transition: background-color .18s, color .18s; will-change: transform; }
.reasons span.on { background: var(--chrome); color: var(--on-chrome); }
.t-card { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-control); background: var(--surface); will-change: transform, opacity; }
.t-card-hero { font: 800 24px/1.05 "Bricolage Grotesque", sans-serif; letter-spacing: -.6px; color: var(--negative); }
.t-card small { font-size: 13px; color: var(--ink2); line-height: 1.35; }

/* ── Customer links ─────────────────────────────────────────────────── */
.privacy {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px);
  align-items: center; padding-top: 140px;
}
.privacy-copy { display: grid; gap: 18px; }
.privacy-copy .lede { max-width: 40ch; }
.feed { display: grid; gap: 10px; }
.fcard {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: var(--r-card); background: var(--surface); will-change: transform;
}
.fcard .plate { grid-column: 1; grid-row: 1 / 3; }
.fcard-hero { grid-column: 2; grid-row: 1; font: 800 24px/1.05 "Bricolage Grotesque", sans-serif; letter-spacing: -.6px; }
.fcard-hero.good { color: var(--positive); }
.fcard-sub { grid-column: 2; grid-row: 2; font-size: 14px; color: var(--ink2); }
.fcard-sub b { color: var(--ink); font-weight: 600; }
.fcard-live { grid-column: 3; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 6px; color: var(--positive); font: 700 12px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .18s; }
.fcard.is-live .fcard-live { opacity: 1; }
.fstrip-wrap { grid-column: 1 / -1; grid-row: 3; height: 0; overflow: hidden; }
.fstrip { position: relative; height: 76px; margin-top: 14px; border-radius: var(--r-control); background: var(--map-block); overflow: hidden; }
.fstrip-road { position: absolute; left: 0; right: 0; top: 50%; height: 16px; margin-top: -8px; background: var(--map-road); }
.fstrip-plate {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; background: var(--marker); color: var(--on-marker); box-shadow: var(--chip);
  font: 600 12px/1 "IBM Plex Mono", monospace;
}
.fstrip-rider { position: absolute; top: 50%; left: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--marker), var(--chip); will-change: transform; }

/* ── Questions ──────────────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 96px); padding-top: 140px; align-items: start; }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 72px; padding: 16px 0; cursor: pointer; font: 600 18px/1.35 "Plus Jakarta Sans", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { width: 20px; height: 20px; color: var(--ink3); will-change: transform; }
.qa-body { overflow: hidden; }
.qa-body p { margin: 0; padding: 0 0 22px; color: var(--ink2); max-width: 60ch; }

/* ── Privacy + Terms ────────────────────────────────────────────────── */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 96px; }
.doc .headline-lg { margin: 12px 0 24px; }
.doc p, .doc li, .doc dd { color: var(--ink2); font-size: 17px; line-height: 1.6; max-width: 64ch; }
.doc .doc-lede { color: var(--ink); font-size: 19px; }
.doc p.eyebrow { font-size: 12px; line-height: 1.2; color: var(--ink3); }
.doc h2 { margin: 48px 0 12px; font: 700 22px/1.15 "Bricolage Grotesque", sans-serif; letter-spacing: -.5px; color: var(--ink); }
.doc ul { padding-left: 1.2em; margin: 0; display: grid; gap: 10px; }
.doc li::marker { color: var(--ink3); }
.doc b { color: var(--ink); font-weight: 600; }
.doc dl { margin: 0; display: grid; gap: 4px; }
.doc dt { margin-top: 14px; font-weight: 700; color: var(--ink); }
.doc dd { margin: 0; }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.doc .doc-contact { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.foot a[aria-current="page"] { color: var(--ink); }

/* ── Close + footer ─────────────────────────────────────────────────── */
.close { display: grid; justify-items: start; gap: 20px; padding-top: 140px; padding-bottom: 120px; }
.close .waitlist { width: 100%; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot small { margin-left: auto; color: var(--ink3); font-size: 14px; }

/* ── Narrow screens ─────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .privacy, .faq { grid-template-columns: minmax(0, 1fr); }
  .privacy, .faq, .features { padding-top: 96px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 8px; padding-top: 12px; }
  .hero-stage { height: 440px; min-height: 0; margin: 0 calc(-1 * var(--gutter)); }
  .hud-card { left: var(--gutter); bottom: 6%; }
  .hud-chips { right: var(--gutter); top: 4%; }

  .how { height: calc(4 * 100svh + 100svh); }
  .how-sticky {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch; justify-items: center; gap: 16px; padding-top: 16px; padding-bottom: 20px;
  }
  .phones { align-self: center; }
  .how-copy { order: 2; width: 100%; padding-left: 0; padding-top: 14px; min-height: 172px; }
  .how-rail { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 3px; }
  .how-rail i { transform-origin: 0 50%; transform: scaleX(0); }
  .steps { display: block; position: relative; }
  .step { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transition: opacity .18s; pointer-events: none; }
  .step.is-on { position: relative; opacity: 1; pointer-events: auto; }
  .step h3 { font-size: 30px; opacity: 1; }
  .step-num { margin-top: 4px; }
  .step-body { height: auto !important; }
  .step-body p { padding-top: 8px; font-size: 16px; opacity: 1; }
}
@media (max-width: 680px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .qa summary { font-size: 17px; }
  .fcard-hero { font-size: 22px; }
  .top-link { display: none; }
  .waitlist { flex-direction: column; border-radius: 28px; padding: 8px; }
  .waitlist .btn { width: 100%; }
  .hero-stage { height: 380px; }
  .hud-chips { display: none; }
  .hud-card { width: auto; right: var(--gutter); }
  .foot small { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot, .p-caret, .ground-fx.on .ripple { animation: none; }
}
