/* Fonts are served from this site, so no visitor's address is sent to a font host. Licence: fonts/LICENSE.txt */
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

/* =========================================================
   Vavroom: design tokens
   ========================================================= */
:root {
  --ink: #10141c;
  --ink-2: #3b4250;
  --muted: #6b7280;
  --night: #0c1118;
  --paper: #ffffff;
  --mist: #f7f0de;          /* the logo's cream: our signature surface */
  --line: #e8dfc8;

  --accent: #2ec4a0;        /* Vavroom road teal, from the logo */
  --orange: #ed671b;        /* the car */
  --orange-ink: #b8460f;
  --accent-hi: #8ee8c8;
  --accent-ink: #157a72;

  --pothole: #ff5a4e;       --pothole-ink: #d23a2f;
  --construction: #ffb020;  --construction-ink: #b87600;
  --heli: #7c5cff;          --heli-ink: #5a3ae0;
  --rough: #c99a5b;         --rough-ink: #8f6630;

  --f-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-surface: 80px;
  --r-card: 28px;
  --gutter: 24px;
  --nav-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);   /* expressive decelerate */
  --ease-std: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}
@media (max-width: 1023px) { :root { --r-surface: 32px; --r-card: 24px; } }
@media (max-width: 599px)  { :root { --gutter: 16px; } }

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #c9bc9a var(--mist); }
html.is-locked { overflow: hidden; }
body {
  margin: 0; background: var(--mist); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* Finished-site details: anchors clear the fixed header, selection, scrollbar, focus, skip link */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
::selection { background: color-mix(in srgb, var(--accent) 45%, white); color: var(--ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: #c9bc9a; border-radius: 999px; border: 3px solid var(--mist); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-ink); }

:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.hero :focus-visible, .surface--ink :focus-visible, .footer :focus-visible, .page-head :focus-visible,
.err :focus-visible, .plan--plus :focus-visible, .to-top:focus-visible,
.nav:not(.nav--solid):not(.nav--open) .nav__inner :focus-visible { outline-color: var(--accent-hi); }
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300; padding: 10px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-family: var(--f-display); font-weight: 500;
  transform: translateY(-180%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 920px; }
.hide-sm { display: none; }
@media (min-width: 768px) { .hide-sm { display: inline; } }

.eyebrow {
  font-family: var(--f-display); font-weight: 500; font-size: 15px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 16px;
}
.eyebrow--light { color: rgba(255,255,255,.75); }
.eyebrow--accent { color: var(--accent-hi); }

.statement {
  font-size: clamp(34px, 5vw, 60px); line-height: 1.1; text-wrap: balance;
}
.statement--xl { font-size: clamp(48px, 9vw, 120px); line-height: 1.02; }
.accent-text { color: var(--accent-ink); }
.muted-text { color: var(--muted); }
.section-head { text-align: center; max-width: 1000px; margin: 0 auto 64px; }
@media (max-width: 1023px) { .section-head { margin-bottom: 40px; } }

/* =========================================================
   Buttons: lift on hover, light sweep, squash on press
   ========================================================= */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-display); font-weight: 500; font-size: 17px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .3s var(--ease-out), background-color .25s var(--ease-std), box-shadow .25s var(--ease-std), color .25s;
  white-space: nowrap; cursor: pointer;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--lg { height: 58px; padding: 0 32px; font-size: 18px; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--accent::after, .btn--ink::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform .8s var(--ease-out);
}
.btn--ink::after { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%); }
@media (hover: hover) {
  .btn--accent:hover { background: var(--accent-hi); box-shadow: 0 10px 30px -10px rgba(46,196,160,.7); transform: translateY(-2px); }
  .btn--ink:hover { background: #262c38; transform: translateY(-2px); }
  .btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-2px); }
  .btn--accent:hover::after, .btn--ink:hover::after { transform: translateX(110%); }
}
.btn.btn:active { transform: translateY(0) scale(.96); transition-duration: .1s; }

/* =========================================================
   Nav: transparent over dark heads, solid after scroll, hides on scroll down
   ========================================================= */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 21px; }
.logo__img { width: 40px; height: 40px; border-radius: 11px; display: block; transition: transform .5s var(--ease-spring); }
@media (hover: hover) { .logo:hover .logo__img { transform: rotate(-8deg) scale(1.06); } }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; color: #fff;
  transition: transform .45s var(--ease-out), background-color .3s var(--ease-std), box-shadow .3s, color .3s;
  view-transition-name: site-nav;
}
.nav .logo { view-transition-name: site-logo; }
.nav__inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; height: var(--nav-h); padding-inline: var(--gutter); display: flex; align-items: center; gap: 24px; }
.nav__links { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; font-family: var(--f-display); font-weight: 500; font-size: 16px; }
.nav__item { position: relative; }
.nav__link, .nav__trigger {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; cursor: pointer;
}
.nav__link::before, .nav__trigger::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor;
  opacity: 0; transform: scale(.8); transition: opacity .25s var(--ease-std), transform .4s var(--ease-out); pointer-events: none;
}
.nav__trigger[aria-expanded="true"]::before { opacity: .1; transform: none; }
@media (hover: hover) { .nav__link:hover::before, .nav__trigger:hover::before { opacity: .1; transform: none; } }
.nav__chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.nav__trigger[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav--solid { background: rgba(247,240,222,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav--hidden { transform: translateY(-100%); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease-out); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 25px; }
.nav--open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav--open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Dropdown panels */
.dd {
  position: absolute; top: calc(100% + 12px); left: 50%; z-index: 5;
  width: max-content; min-width: 300px; max-width: 380px; padding: 8px; border-radius: 22px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(12,17,24,.38), 0 0 0 1px rgba(12,17,24,.06);
  transform-origin: 50% 0; transform: translateX(-50%) translateY(-8px) scale(.96);
  opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease-std), transform .35s var(--ease-out), visibility 0s linear .35s;
}
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.dd.is-open { opacity: 1; visibility: visible; transform: translateX(-50%); transition-delay: 0s; }
.dd--end { left: auto; right: 0; min-width: 280px; transform-origin: 85% 0; transform: translateY(-8px) scale(.96); }
.dd--end.is-open { transform: none; }
.dd__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dd.is-open .dd__list > li { animation: ddItem .45s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 35ms + 40ms); }
@keyframes ddItem { from { opacity: 0; transform: translateY(-6px); } }
.dd__link { position: relative; isolation: isolate; display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; }
.dd__link::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--mist); opacity: 0; transition: opacity .2s; }
.dd__link:hover::before, .dd__link:focus-visible::before, .dd__link[aria-current]::before { opacity: 1; }
.dd :focus-visible { outline-color: var(--accent-ink); outline-offset: -2px; }
.dd__ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, white); transition: transform .4s var(--ease-spring); }
.dd__ico::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.dd__link:hover .dd__ico, .dd__link:focus-visible .dd__ico { transform: rotate(-10deg) scale(1.08); }
.dd__text strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 17px; line-height: 1.3; }
.dd__text small { display: block; font-family: var(--f-body); font-size: 14px; line-height: 1.35; color: var(--muted); margin-top: 2px; }

/* Mobile drawer */
.nav__drawer { display: none; }
@media (max-width: 899px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav--open { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--ink); }
  .nav__drawer {
    display: block; position: absolute; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 1;
    overflow-y: auto; overscroll-behavior: contain; background: var(--mist); color: var(--ink);
    padding: calc(var(--nav-h) + 8px) var(--gutter) 40px;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .55s var(--ease-out), visibility 0s linear .55s;
  }
  .nav--open .nav__drawer { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
  .drawer__inner { display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
  .drawer__inner > * { opacity: 0; transform: translateY(14px); transition: opacity .3s var(--ease-std), transform .5s var(--ease-out); }
  .nav--open .drawer__inner > * { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 30ms + 120ms); }
  .drawer__label { font-family: var(--f-display); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); margin: 18px 0 4px; }
  .drawer__label:first-child { margin-top: 0; }
  .drawer__link { display: flex; align-items: center; justify-content: space-between; font-family: var(--f-display); font-size: 22px; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .drawer__link::after { content: "→"; color: var(--accent-ink); transition: transform .3s var(--ease-out); }
  .drawer__link:active::after, .drawer__link:hover::after { transform: translateX(4px); }
  .drawer__link[aria-current] { color: var(--accent-ink); }
  .drawer__cta { margin-top: 24px; width: 100%; }
}

/* =========================================================
   Hero: dark live-map with parallax layers
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; background: var(--night); color: #fff;
  display: grid; place-items: center; padding: 140px var(--gutter) 200px; isolation: isolate;
}
.hero__layer { position: absolute; inset-inline: 0; top: -2.5%; height: 105%; will-change: transform; pointer-events: none; }
.hero__layer svg { width: 100%; height: 100%; }
.hero__bg { z-index: 0; animation: fadeIn 1.2s var(--ease-std) backwards; }
.hero__fg { z-index: 1; }
.roads-minor path { fill: none; stroke: #1a2330; stroke-width: 10; stroke-linecap: round; }
.blocks rect { fill: #121a24; }

.route { fill: none; stroke-linecap: round; }
.route--line { stroke: url(#routeGrad); stroke-width: 8; stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 2.4s .3s var(--ease-out) forwards; }
.route--glow { stroke: var(--accent); stroke-width: 18; opacity: 0; animation: fadeTo 1.2s 1.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeTo { to { opacity: .35; } }

/* The race car drives the route (SMIL animateMotion in index.html). */
.car__halo { fill: var(--accent); opacity: .22; animation: halo 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 50% { transform: scale(1.25); opacity: .08; } }

.pin { opacity: 0; transform-box: fill-box; transform-origin: center bottom; animation: pinIn .6s var(--ease-out) forwards; }
.pin__pulse { fill: var(--c); opacity: .35; transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-out infinite; }
.pin__dot { fill: var(--c); stroke: var(--night); stroke-width: 4; }
.pin__label rect { fill: rgba(16,20,28,.86); stroke: var(--c); stroke-width: 1.5; }
.pin__label text { fill: #fff; font-family: var(--f-display); font-size: 17px; font-weight: 500; }
@keyframes pinIn { from { opacity: 0; transform: translateY(14px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(2.2); opacity: 0; } }

.hero__shade { position: absolute; inset: 0; z-index: 2; background: radial-gradient(ellipse 70% 60% at 50% 48%, rgba(12,17,24,.88) 0%, rgba(12,17,24,.55) 55%, rgba(12,17,24,.1) 100%); }
.hero__content { position: relative; z-index: 3; text-align: center; max-width: 1100px; }
.hero__title { font-size: clamp(60px, 11vw, 148px); line-height: .98; letter-spacing: -.025em; margin-bottom: 28px; }
.hero__sub { font-size: clamp(18px, 1.6vw, 22px); color: rgba(255,255,255,.78); max-width: 680px; margin: 0 auto 40px; text-wrap: balance; }
.hero__sub strong { color: #fff; font-weight: 700; }
.hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (min-height: 1400px) { .hero { min-height: 1000px; } }
@media (max-width: 599px) { .hero__ctas .btn { width: 100%; } .hero { padding-bottom: 140px; } }

/* Load-in choreography: headline lines rise out of a mask, then copy and buttons follow. */
.ln { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: inline-block; animation: lineUp 1.1s var(--ease-out) backwards; animation-delay: calc(.2s + var(--i, 0) * .12s); }
.hero-in { animation: riseIn 1s var(--ease-out) backwards; animation-delay: calc(.15s + var(--i, 0) * .12s); }
@keyframes lineUp { from { transform: translateY(105%); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } }

/* =========================================================
   Overlap card: slides up over the hero
   ========================================================= */
.overlap-wrap { position: relative; z-index: 5; padding-inline: var(--gutter); margin-top: -96px; padding-bottom: 120px; }
@media (max-width: 1023px) { .overlap-wrap { margin-top: -48px; padding-bottom: 72px; } }
.card-overlap {
  max-width: 1340px; margin: 0 auto; background: var(--paper); border-radius: var(--r-surface);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 96px); text-align: center;
  box-shadow: 0 40px 80px -40px rgba(12,17,24,.35);
}
.card-overlap .statement { margin-bottom: 64px; }

.pipeline { display: grid; grid-template-columns: 1fr 80px auto 80px 1fr; align-items: center; gap: 12px; text-align: left; }
.pipeline__sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pipeline__sources li { background: var(--mist); border-radius: 16px; padding: 14px 18px; font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: center; transition: transform .35s var(--ease-out); }
.chip-ico { color: var(--c); font-size: 12px; }
.pipeline__flow { position: relative; height: 140px; display: flex; flex-direction: column; justify-content: space-between; }
.pipeline__flow span { height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent 0 30%, var(--accent) 50%, transparent 70% 100%) 0 0 / 300% 100%, var(--line); animation: flow 1.6s linear infinite; }
.pipeline__flow span:nth-child(2) { animation-delay: -.5s; } .pipeline__flow span:nth-child(3) { animation-delay: -1s; }
@keyframes flow { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
.pipeline__engine { text-align: center; font-family: var(--f-display); font-weight: 500; font-size: 18px; }
.pipeline__engine small { font-family: var(--f-body); color: var(--muted); font-size: 14px; font-weight: 400; }
.engine { width: 168px; height: 168px; margin: 0 auto 16px; position: relative; display: grid; place-items: center; }
.engine__ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--accent), var(--heli), var(--construction), var(--pothole), var(--accent)); animation: spin 6s linear infinite; mask: radial-gradient(circle, transparent 52%, #000 53%); -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%); }
.engine__core { width: 118px; height: 118px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; box-shadow: 0 16px 40px -12px rgba(46,196,160,.55); overflow: hidden; }
.engine__core img { width: 108px; height: auto; display: block; transform: translate(2px, 2px); animation: drive 1.6s ease-in-out infinite alternate; }
@keyframes drive { from { transform: translate(-1px, 3px) rotate(-1.5deg); } to { transform: translate(4px, 1px) rotate(1deg); } }
@keyframes spin { to { transform: rotate(1turn); } }
.pipeline__out { display: grid; gap: 10px; }
.alert-pill { border-radius: 16px; padding: 14px 18px; font-weight: 700; font-size: 15px; background: color-mix(in srgb, var(--c) 14%, white); border-left: 5px solid var(--c); transition: transform .35s var(--ease-out); }
@media (hover: hover) {
  .pipeline__sources li:hover { transform: translateX(4px); }
  .alert-pill:hover { transform: translateX(-4px); }
}
/* Sources slide in from the left, the engine pops, alerts arrive from the right. */
.pipeline.is-in .pipeline__sources li { animation: inLeft .7s var(--ease-out) backwards; animation-delay: calc(var(--d, 0s) + var(--i, 0) * 80ms); }
.pipeline.is-in .engine { animation: popIn .9s var(--ease-out) backwards; animation-delay: calc(var(--d, 0s) + .35s); }
.pipeline.is-in .alert-pill { animation: inRight .7s var(--ease-out) backwards; animation-delay: calc(var(--d, 0s) + .6s + var(--i, 0) * 90ms); }

@media (max-width: 1023px) {
  .pipeline { grid-template-columns: 1fr; gap: 16px; }
  .pipeline__flow { height: 56px; flex-direction: row; justify-content: center; gap: 18px; }
  .pipeline__flow span { width: 3px; height: 100%; background: linear-gradient(180deg, transparent 0 30%, var(--accent) 50%, transparent 70% 100%) 0 0 / 100% 300%, var(--line); animation-name: flowV; }
  @keyframes flowV { from { background-position: 0 100%, 0 0; } to { background-position: 0 0%, 0 0; } }
}

/* =========================================================
   Surfaces: stacked rounded sheets
   ========================================================= */
.surface { position: relative; border-radius: var(--r-surface) var(--r-surface) 0 0; padding: clamp(80px, 10vw, 140px) 0; margin-top: calc(var(--r-surface) * -1); }
.surface--white { background: var(--paper); z-index: 6; }
.surface--mist { background: var(--mist); z-index: 7; }
.surface--ink { background: var(--night); color: #fff; z-index: 8; overflow: hidden; }
/* Each sheet sits on top of the one before it. */
#routing { z-index: 7; } #everything { z-index: 8; } #live { z-index: 9; } #compare { z-index: 10; }
#pricing { z-index: 11; } #coverage { z-index: 12; } #faq { z-index: 13; } #download { z-index: 14; }
#detections { margin-top: 0; }

/* =========================================================
   Sticky storytelling
   ========================================================= */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.story__stage { position: sticky; top: 0; height: 100vh; min-height: 640px; display: grid; place-items: center; }
.story__items { padding-block: 10vh; }
.feature { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s var(--ease-std); }
.feature.is-active { opacity: 1; }
.feature__title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; margin-bottom: 20px; text-wrap: balance; }
.feature__desc { font-size: 20px; color: var(--ink-2); max-width: 520px; }
.feature__visual { display: none; }

.phone {
  width: 300px; height: 620px; border-radius: 52px; background: var(--ink); padding: 12px; position: relative;
  box-shadow: 0 60px 100px -40px rgba(12,17,24,.45), inset 0 0 0 2px #2a3140;
}
.phone__notch { position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: var(--ink); z-index: 3; }
.phone__screens { position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: var(--mist); }
.screen { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease-std), transform .8s var(--ease-out); }
.screen.is-active { opacity: 1; transform: none; }
.screen svg { width: 100%; height: 100%; }
.screen-flow { animation: dashMove 1s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -16; } }
.story__dots { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 20px; }
.story__dots i { display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: transform .45s var(--ease-out), background-color .3s; }
.story__dots i.is-active { background: var(--accent); transform: scaleY(2.5); }

@media (max-width: 1023px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story__stage { display: none; }
  .story__items { padding: 0; display: grid; gap: 72px; }
  .feature { min-height: 0; opacity: 1; text-align: center; align-items: center; }
  .feature__visual { display: block; width: min(300px, 82vw); aspect-ratio: 276 / 596; border-radius: 40px; overflow: hidden; margin: 0 auto 32px; background: var(--mist); box-shadow: 0 0 0 10px var(--ink), 0 40px 60px -30px rgba(12,17,24,.5); position: relative; }
  .feature__visual .screen { opacity: 1; transform: none; }
  .feature__desc { font-size: 17px; }
}

/* =========================================================
   Cards that lift on hover (shadow fades in on a pseudo-element: opacity only)
   ========================================================= */
.tile, .route-card, .plan, .cover__card, .step { position: relative; transition: transform .45s var(--ease-out); }
.tile::after, .route-card::after, .plan:not(.plan--plus)::after, .cover__card::after, .step::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 30px 50px -28px rgba(12,17,24,.34); opacity: 0; transition: opacity .45s var(--ease-std);
}
@media (hover: hover) {
  .tile:hover, .route-card:hover, .plan:hover, .cover__card:hover, .step:hover { transform: translateY(-6px); }
  .tile:hover::after, .route-card:hover::after, .plan:hover::after, .cover__card:hover::after, .step:hover::after { opacity: 1; }
}
.tile:active, .route-card:active, .cover__card:active, .step:active { transform: translateY(-2px) scale(.985); transition-duration: .15s; }

/* =========================================================
   Tiles grid
   ========================================================= */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1023px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px)  { .grid { grid-template-columns: 1fr; } }
.tile { background: var(--paper); border-radius: var(--r-card); padding: 36px 32px; }
.tile__ico { position: relative; isolation: isolate; width: 56px; height: 56px; border-radius: 18px; background: var(--mist); display: grid; place-items: center; margin-bottom: 24px; transition: transform .5s var(--ease-spring); }
.tile__ico::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--accent); opacity: 0; transform: scale(.5); transition: opacity .3s, transform .45s var(--ease-out); }
@media (hover: hover) {
  .tile:hover .tile__ico { transform: rotate(-8deg); }
  .tile:hover .tile__ico::before { opacity: 1; transform: none; }
}
.tile__ico svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 24px; margin-bottom: 8px; }
.tile p { color: var(--ink-2); }
.surface--white .tile { background: var(--mist); }
.surface--white .tile__ico { background: var(--paper); }

/* =========================================================
   Ticker
   ========================================================= */
.ticker { overflow: hidden; padding-block: 8px; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; gap: 16px; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: 12px; padding: 18px 26px; border-radius: 999px; background: #161e29; font-family: var(--f-display); font-weight: 500; font-size: 20px; white-space: nowrap; }
.tick::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 25%, transparent); }

/* =========================================================
   Compare
   ========================================================= */
.compare { border-radius: var(--r-card); overflow: hidden; background: var(--mist); }
.compare__row { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: stretch; }
.compare__row > span { padding: 20px 24px; display: flex; align-items: center; }
.compare__row:not(:last-child) { border-bottom: 1px solid var(--line); }
.compare__row:not(.compare__row--head)::after { content: ""; position: absolute; inset: 0; background: rgba(46,196,160,.08); opacity: 0; transition: opacity .25s; pointer-events: none; }
@media (hover: hover) { .compare__row:hover::after { opacity: 1; } }
.compare__row--head { font-family: var(--f-display); font-weight: 500; font-size: 18px; }
.compare__row > span:first-child { font-weight: 700; }
.compare__us { background: var(--ink); color: #fff; }
.yes--us { background: color-mix(in srgb, var(--accent) 14%, white); color: var(--accent-ink); font-weight: 700; }
.no { color: var(--muted); }
@media (max-width: 599px) {
  .compare__row > span { padding: 14px 12px; font-size: 14px; }
  .compare__row--head { font-size: 14px; }
}

/* =========================================================
   Closing + footer
   ========================================================= */
.closing { text-align: center; overflow: hidden; }
.closing__title { font-size: clamp(64px, 13vw, 180px); line-height: .95; letter-spacing: -.03em; margin-bottom: 24px; }
.closing__sub { font-size: 20px; color: var(--ink-2); margin-bottom: 40px; }
.closing__safe { color: var(--muted); font-size: 15px; margin: -20px 0 32px; }
.closing__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 599px) { .closing__ctas .btn { width: 100%; } }
/* The car pulls in and parks above the headline. */
.closing__drive { position: relative; width: min(420px, 86%); height: 76px; margin: 0 auto 12px; }
.closing__road { position: absolute; left: 0; right: 0; bottom: 4px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--accent) 22%, var(--accent) 78%, transparent); transform-origin: 0 50%; }
.closing__car { position: absolute; left: 50%; bottom: 2px; width: 128px; height: auto; margin-left: -64px; transform-origin: 50% 100%; }
.js .closing__drive:not(.is-in) > * { opacity: 0; }
.closing__drive.is-in .closing__road { animation: roadIn 1s var(--ease-out) backwards; }
.closing__drive.is-in .closing__car { animation: parkIn 1.8s var(--ease-out) .15s backwards, idle 2.6s ease-in-out 2.2s infinite alternate; }
@keyframes roadIn { from { transform: scaleX(0); } }
@keyframes parkIn {
  0% { opacity: 0; transform: translateX(-360px); }
  15% { opacity: 1; }
  68% { transform: translateX(12px) rotate(-3deg); }
  84% { transform: translateX(-3px) rotate(1deg); }
  100% { transform: none; }
}
@keyframes idle { to { transform: translateY(-2px) rotate(-.6deg); } }

.footer { background: var(--night); color: rgba(255,255,255,.7); padding: 80px 0 40px; position: relative; z-index: 20; border-radius: var(--r-surface) var(--r-surface) 0 0; margin-top: calc(var(--r-surface) * -1); }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid #1d2632; }
.logo--light { color: #fff; margin-bottom: 12px; }
.footer__cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer__cols div { display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer__cols a { transition: transform .3s var(--ease-out), color .2s; }
.footer h4, .footer__h { color: #fff; font-family: var(--f-display); font-weight: 500; font-size: 16px; margin: 0 0 6px; }
.footer a:hover { color: var(--accent-hi); }
@media (hover: hover) { .footer__cols a:hover { transform: translateX(3px); } }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; }
@media (max-width: 599px) { .footer__cols { gap: 40px; } }

/* =========================================================
   Notes, chips, steps, route cards
   ========================================================= */
.card-note, .section-note { max-width: 760px; margin: 48px auto 0; text-align: center; color: var(--ink-2); text-wrap: pretty; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--paper); border-radius: 999px; padding: 10px 18px; font-family: var(--f-display); font-weight: 500; font-size: 16px; transition: transform .35s var(--ease-spring); }
@media (hover: hover) { .chips li:hover { transform: translateY(-3px) rotate(-1.5deg); } }
.surface--white .chips li { background: var(--mist); }
.is-in .chips li { animation: popIn .55s var(--ease-out) backwards; animation-delay: calc(var(--d, 0s) + .2s + var(--i, 0) * 45ms); }

.steps { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--paper); border-radius: var(--r-card); padding: 32px; }
.step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--accent-hi); font-family: var(--f-display); font-weight: 600; font-size: 20px; margin-bottom: 20px; transition: transform .5s var(--ease-spring); }
.step.is-in .step__n { animation: popIn .8s var(--ease-out) backwards; animation-delay: calc(var(--d, 0s) + .25s); }
@media (hover: hover) { .step:hover .step__n { transform: rotate(-12deg) scale(1.08); } }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { color: var(--ink-2); }

.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.route-card { background: var(--paper); border-radius: var(--r-card); padding: 28px; border: 2px solid transparent; }
.route-card--best { border-color: var(--accent); box-shadow: 0 30px 50px -30px rgba(46,196,160,.55); }
.route-card__tag { display: inline-block; font-family: var(--f-display); font-weight: 500; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--ink-2); }
.route-card--best .route-card__tag { background: var(--accent); color: var(--ink); }
.route-card__time { font-family: var(--f-display); font-weight: 500; font-size: 44px; line-height: 1.1; margin-top: 16px; font-variant-numeric: tabular-nums; }
.route-card__meta { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.route-card__note { font-weight: 700; font-size: 15px; margin-top: 12px; }
.surface-bar { display: flex; gap: 3px; height: 10px; border-radius: 999px; overflow: hidden; }
.surface-bar i { display: block; border-radius: 2px; }
/* Each route's road surface is "driven" left to right when the cards arrive. */
.routes.is-in .surface-bar { animation: barIn 1.2s var(--ease-out) backwards; animation-delay: calc(var(--d, 0s) + .35s); }
.routes.is-in .route-card:nth-child(2) .surface-bar { animation-delay: calc(var(--d, 0s) + .5s); }
.routes.is-in .route-card:nth-child(3) .surface-bar { animation-delay: calc(var(--d, 0s) + .65s); }
@keyframes barIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.prefs { margin-top: 56px; background: var(--paper); border-radius: var(--r-card); padding: clamp(28px, 4vw, 48px); }
.prefs h3 { font-size: 28px; margin-bottom: 20px; }
.prefs .chips li { background: var(--mist); }
.prefs p { margin-top: 20px; color: var(--ink-2); max-width: 720px; }

@media (max-width: 899px) { .steps, .routes { grid-template-columns: 1fr; } }

/* =========================================================
   Pricing, coverage, questions
   ========================================================= */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.plan { background: var(--paper); border-radius: var(--r-card); padding: clamp(28px, 4vw, 44px); }
.plan--plus { background: var(--ink); color: #fff; box-shadow: 0 40px 60px -40px rgba(12,17,24,.6); overflow: hidden; isolation: isolate; }
/* A slow light travels around the Plus card's edge. */
.plan--plus::before { content: ""; position: absolute; inset: -50%; z-index: -2; background: conic-gradient(from 0deg, transparent 0 68%, var(--accent) 80%, var(--accent-hi) 84%, transparent 92%); animation: spin 7s linear infinite; }
.plan--plus::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: calc(var(--r-card) - 2px); background: var(--ink); }
.plan h3 { font-size: 24px; }
.plan__price { font-family: var(--f-display); font-weight: 500; font-size: 64px; line-height: 1.1; margin: 12px 0 4px; }
.plan__price small { font-size: 20px; color: var(--muted); }
.plan--plus .plan__price small, .plan--plus .plan__sub { color: rgba(255,255,255,.7); }
.plan__sub { color: var(--ink-2); margin-bottom: 24px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 30px; }
.plan li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%2310141c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan.is-in li::before { animation: popIn .5s var(--ease-out) backwards; animation-delay: calc(var(--d, 0s) + .3s + var(--i, 0) * 60ms); }
@media (max-width: 767px) { .plans { grid-template-columns: 1fr; } }

.cover { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cover__card { background: var(--mist); border-radius: var(--r-card); padding: 32px; display: grid; gap: 16px; align-content: start; }
.cover__card h3 { font-size: 24px; }
.cover__card p { color: var(--ink-2); }
.cover__card .chips li { background: var(--paper); font-size: 15px; padding: 8px 14px; }
@media (max-width: 899px) { .cover { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 12px; }
.faq details { position: relative; background: var(--paper); border-radius: 20px; padding: 0 24px; transition: transform .35s var(--ease-out); }
.faq details::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--accent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.faq details[open]:not(.is-closing)::after { opacity: 1; }
@media (hover: hover) { .faq details:hover { transform: translateX(4px); } }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; font-family: var(--f-display); font-weight: 500; font-size: 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .4s var(--ease-out); }
.faq details[open]:not(.is-closing) summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding-bottom: 24px; color: var(--ink-2); max-width: 720px; }
.faq a, .legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Animated <details>: site.js animates the height; content fades and settles. */
details.acc > :not(summary) { transition: opacity .2s var(--ease-std); }
details.acc.is-closing > :not(summary) { opacity: 0; }
details.acc[open]:not(.is-closing) > :not(summary) { animation: accIn .5s var(--ease-out) backwards .05s; }
@keyframes accIn { from { opacity: 0; transform: translateY(-8px); } }

.btn--soon { background: transparent; border: 2px dashed var(--line); color: var(--muted); cursor: default; white-space: normal; text-align: center; height: auto; min-height: 58px; padding-block: 10px; }
.btn--soon.btn--soon:active { transform: none; }
.closing__ctas .btn--ink { white-space: normal; text-align: center; height: auto; min-height: 58px; padding-block: 10px; }
.footer__credits { padding-top: 28px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.5); max-width: 1240px; }
.footer__credits a { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Legal pages: animated head, sticky contents, document
   ========================================================= */
.page-head { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: #fff; padding: 150px var(--gutter) calc(var(--r-surface) + 140px); text-align: center; }
.page-head::before, .err::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .8;
  background-image: linear-gradient(#18212d 2px, transparent 2px), linear-gradient(90deg, #18212d 2px, transparent 2px);
  background-size: 120px 120px; background-position: center;
  -webkit-mask: radial-gradient(ellipse 80% 70% at 50% 40%, #000 15%, transparent 75%);
  mask: radial-gradient(ellipse 80% 70% at 50% 40%, #000 15%, transparent 75%);
}
.page-head h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1.05; }
.page-head p { color: rgba(255,255,255,.7); margin-top: 16px; }
.page-head .eyebrow { margin: 0 0 14px; color: var(--accent-hi); }
.ph-in { animation: riseIn .9s var(--ease-out) backwards .05s; }
.ph-sub { animation-delay: .4s; }
.ph-title .ln > span { animation-delay: .15s; }
.page-head__road { position: absolute; left: 0; right: 0; bottom: calc(var(--r-surface) - 24px); height: 170px; z-index: -1; pointer-events: none; }
.page-head__road svg { width: 100%; height: 100%; animation: roadReveal 1.6s var(--ease-out) .1s backwards; }
.ph-road { fill: none; stroke: #1b2632; stroke-width: 24; stroke-linecap: round; }
.ph-road-dash { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 14 16; opacity: .75; }
@keyframes roadReveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.legal { position: relative; background: var(--paper); border-radius: var(--r-surface) var(--r-surface) 0 0; margin-top: calc(var(--r-surface) * -1); padding: clamp(56px, 8vw, 110px) 0 calc(var(--r-surface) + 80px); }
.legal__grid { max-width: 808px; }
.legal h2 { font-size: 28px; margin: 48px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); overflow-wrap: anywhere; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.legal h3 { font-size: 20px; margin: 28px 0 8px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.legal th { font-family: var(--f-display); font-weight: 500; color: var(--ink); }
.legal .table-wrap { overflow-x: auto; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.legal .summary { background: var(--mist); border-radius: var(--r-card); padding: 24px 28px; margin-bottom: 40px; }
.legal .summary p, .legal .summary li { color: var(--ink); }
.legal .fill { background: #ffe9a8; color: var(--ink); padding: 1px 6px; border-radius: 6px; font-weight: 700; }

/* Table of contents: collapsible card on phones, sticky rail on wide screens */
.toc { margin-bottom: 40px; }
.toc__title { display: none; }
.toc__details { background: var(--mist); border-radius: 20px; padding: 0 20px; }
.toc summary { list-style: none; cursor: pointer; position: relative; padding: 16px 32px 16px 0; font-family: var(--f-display); font-weight: 500; font-size: 18px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .4s var(--ease-out); }
.toc details[open]:not(.is-closing) summary::after { transform: translateY(-30%) rotate(-135deg); }
.toc__body { position: relative; padding-bottom: 16px; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 2px; }
.legal .toc a { display: block; padding: 6px 0; font-size: 15px; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .2s, transform .35s var(--ease-out); }
.legal .toc a:hover { color: var(--ink); transform: translateX(3px); }
.legal .toc a[aria-current] { color: var(--ink); font-weight: 700; }
.toc__marker { position: absolute; left: 0; top: 0; width: 2px; height: 100px; border-radius: 2px; background: var(--accent); transform-origin: 0 0; transform: scaleY(0); opacity: 0; transition: transform .5s var(--ease-out), opacity .3s; }
.toc__marker.is-on { opacity: 1; }
@media (min-width: 1100px) {
  .legal__grid { max-width: 1180px; display: grid; grid-template-columns: 250px minmax(0, 760px); justify-content: center; gap: 72px; }
  .toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 130px); overflow-y: auto; margin: 0; padding-right: 8px; animation: inLeft .8s var(--ease-out) .3s backwards; }
  .toc__title { display: block; font-family: var(--f-display); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 14px; }
  .toc__details { background: none; padding: 0; border-radius: 0; }
  .toc summary { display: none; }
}

/* =========================================================
   Error pages (404, 500)
   ========================================================= */
.err {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 120px var(--gutter) calc(var(--r-surface) + 64px); background: var(--night); color: #fff;
}
.err__inner { max-width: 760px; }
.err__title { font-size: clamp(40px, 7vw, 84px); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 18px; text-wrap: balance; }
.err__sub { color: rgba(255,255,255,.74); font-size: clamp(17px, 1.5vw, 20px); max-width: 560px; margin: 0 auto 32px; text-wrap: balance; }
.err__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.err__help { margin-top: 28px; color: rgba(255,255,255,.6); font-size: 15px; }
.err__help a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.err .eyebrow { margin-bottom: 12px; }
@media (max-width: 599px) { .err__ctas .btn { width: 100%; } }

.err__scene { position: relative; width: min(560px, 100%); aspect-ratio: 560 / 200; margin: 0 auto 28px; }
.err__scene svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.err__ground { fill: #18212d; }
.err__edge { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.err__lane { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 3; stroke-dasharray: 18 14; stroke-linecap: round; }
.err__car { position: absolute; width: 30%; height: auto; bottom: 28%; left: 37%; transform-origin: 88% 92%; }
.err__q {
  position: absolute; left: 60%; bottom: 74%; width: 13%; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; background: var(--construction); color: var(--ink);
  font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 4vw, 30px);
  animation: popIn .7s var(--ease-spring) 2.3s backwards, bob 2.4s ease-in-out 3s infinite alternate;
}
/* 404: drives up, brakes hard where the road ends, teeters. */
.err__car--404 { animation: e404Drive 2.2s cubic-bezier(.2, .7, .3, 1) .3s backwards, teeter 2.8s ease-in-out 2.6s infinite; }
@keyframes e404Drive {
  0% { transform: translateX(-190%); }
  60% { transform: translateX(5%); }
  70% { transform: translateX(3%) rotate(8deg); }
  82% { transform: translateX(1%) rotate(-3deg); }
  92% { transform: rotate(1.5deg); }
  100% { transform: none; }
}
@keyframes teeter { 0%, 100% { transform: none; } 50% { transform: rotate(2.5deg); } }
.err__pebble { fill: #2a3646; transform-box: fill-box; animation: pebble 1.1s ease-in 1.75s forwards; }
.err__pebble:nth-of-type(2) { animation-delay: 1.95s; }
@keyframes pebble { to { transform: translate(10px, 90px); opacity: 0; } }
@keyframes bob { to { transform: translateY(-6px); } }

/* 500: spins out and stalls, with a little smoke. */
.err__car--500 { left: 34%; transform: rotate(-8deg); transform-origin: 50% 60%; animation: e500Spin 2.4s cubic-bezier(.25, .8, .3, 1) .3s backwards; }
@keyframes e500Spin {
  0% { transform: translateX(-210%) rotate(0); }
  38% { transform: translateX(-70%) rotate(0); }
  74% { transform: translateX(6%) rotate(338deg); }
  88% { transform: translateX(-2%) rotate(356deg); }
  100% { transform: rotate(352deg); }
}
.err__skid { fill: none; stroke: #222d3b; stroke-width: 6; stroke-linecap: round; animation: roadReveal 1.3s var(--ease-out) 1.1s backwards; }
.puff { position: absolute; left: 36%; bottom: 46%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.22); opacity: 0; animation: puff 2.7s ease-out infinite; animation-delay: calc(2.5s + var(--i, 0) * .9s); }
@keyframes puff { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(-24px, -70px) scale(2.2); } }

/* =========================================================
   Sticky mobile CTA, back to top, reading progress
   ========================================================= */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; height: 56px; box-shadow: 0 10px 30px -8px rgba(12,17,24,.4); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s var(--ease-out), transform .35s var(--ease-out); }
.sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 95; width: 52px; height: 52px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: var(--ink); color: #fff;
  box-shadow: 0 12px 30px -10px rgba(12,17,24,.5);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.85);
  transition: opacity .3s var(--ease-std), transform .45s var(--ease-out), visibility 0s linear .45s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
@media (hover: hover) { .to-top:hover svg { transform: translateY(-3px); } }
.to-top:active { transform: scale(.9); transition-duration: .1s; }
@media (min-width: 1024px) { .to-top { right: 24px; bottom: 24px; } }
@media (max-width: 1023px) { body:has(.sticky-cta.is-visible) .to-top.is-visible { transform: translateY(-68px); } }

.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi) 60%, var(--orange));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
@supports (animation-timeline: scroll()) {
  .progress { transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { to { transform: scaleX(1); } }

/* Images fade in once decoded; their box is reserved by width/height attributes. */
.js .fade-img { opacity: 0; transition: opacity .6s var(--ease-std); }
.js .fade-img.is-loaded { opacity: 1; }

/* =========================================================
   Scroll reveal: animations (not transitions), so hover effects stay snappy afterwards
   ========================================================= */
.js .reveal:not(.is-in) { opacity: 0; }
.js .reveal.is-in { animation: riseIn .9s var(--ease-out) backwards; animation-delay: var(--d, 0s); }
.js .reveal--left.is-in { animation-name: inLeft; }
@keyframes inLeft { from { opacity: 0; transform: translateX(-24px); } }
@keyframes inRight { from { opacity: 0; transform: translateX(24px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } 60% { transform: scale(1.06); } }
@keyframes fadeIn { from { opacity: 0; } }

/* Scroll-linked touches, where the browser can run them off the main thread. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .card-overlap { animation: sdCard linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    @keyframes sdCard { from { transform: translateY(48px) scale(.94); } }
    #live .section-head { animation: sdDrift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes sdDrift { from { transform: translateX(4%); } to { transform: translateX(-4%); } }
    .story { view-timeline-name: --story; }
    .story__stage .phone { animation: sdPhone linear both; animation-timeline: --story; animation-range: contain 0% contain 100%; }
    @keyframes sdPhone { from { transform: rotate(-3deg) translateY(12px); } 50% { transform: none; } to { transform: rotate(3deg) translateY(-12px); } }
    .closing__ctas { animation: sdRise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes sdRise { from { transform: translateY(30px); } }
  }
}

/* =========================================================
   Page transitions (cross-document View Transitions, with a fade fallback)
   ========================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .25s var(--ease-std) both; }
::view-transition-new(root) { animation: vtIn .5s var(--ease-out) both; }
::view-transition-group(site-nav), ::view-transition-group(site-logo) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(18px); } }
.no-vt main { animation: fadeIn .45s var(--ease-std) backwards; }

/* Vavroom orange, used sparingly: the eyebrow labels above section titles. */
.eyebrow:not(.eyebrow--light):not(.eyebrow--accent) { color: var(--orange-ink); }
.section-note a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Reduced motion: everything collapses to its final state
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal:not(.is-in), .js .closing__drive:not(.is-in) > *, .js .fade-img { opacity: 1; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--gutter); }
  .progress { animation: none !important; transform: scaleX(var(--p, 0)); }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* =========================================================
   Print (legal pages first): plain black on white, links spelled out
   ========================================================= */
@media print {
  @page { margin: 16mm; }
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; }
  html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .nav, .skip-link, .progress, .to-top, .sticky-cta, .toc, .page-head__road, .page-head::before, .err__scene, .closing__drive { display: none !important; }
  .js .reveal, .ph-in, .ln > span, .hero-in, .js .fade-img { opacity: 1 !important; transform: none !important; }
  .page-head { background: none; color: #000; padding: 0 0 12pt; text-align: left; overflow: visible; }
  .page-head h1 { font-size: 26pt; }
  .page-head p, .page-head .eyebrow { color: #333 !important; }
  .legal { margin: 0; padding: 0; border-radius: 0; background: none; }
  .legal__grid { display: block !important; max-width: none; padding: 0; }
  .legal h2 { font-size: 15pt; margin-top: 18pt; break-after: avoid; }
  .legal h3 { break-after: avoid; }
  .legal p, .legal li, .legal td, .legal th { color: #000; }
  .legal tr, .legal li, .legal .summary { break-inside: avoid; }
  .legal .summary { border: 1px solid #999; background: none; }
  .legal .table-wrap { overflow: visible; }
  .legal a { color: #000; }
  .legal a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; word-break: break-all; }
  .legal .fill { background: none; border: 1px solid #000; }
  .footer { background: none; color: #000; margin: 12pt 0 0; padding: 8pt 0 0; border-radius: 0; border-top: 1px solid #999; }
  .footer a { color: #000; }
}

/* Read by screen readers, not shown. */
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
