/* =========================================================
   Roadster — reservation-roadster.us
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink-950: #07080a;
  --ink-900: #0d0f13;
  --ink-850: #12151a;
  --ink-800: #181b22;
  --ink-700: #232733;
  --line-dark: rgba(255, 255, 255, 0.1);
  --line-dark-strong: rgba(255, 255, 255, 0.18);
  --on-dark: #f5f6f8;
  --on-dark-muted: #a3abb9;

  --paper: #f6f7f9;
  --paper-2: #eceef2;
  --card: #ffffff;
  --on-light: #0f172a;
  --on-light-muted: #475569;
  --line-light: #e2e8f0;

  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --success: #22c55e;
  --error-dark: #fca5a5;
  --error-light: #b91c1c;
  --focus: #60a5fa;

  --font-display: "Syncopate", "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 12vw, 160px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--on-dark);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--on-dark);
  color: var(--ink-900);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.muted { color: var(--on-light-muted); }
.section-dark .muted, .hero .muted { color: var(--on-dark-muted); }

.icon {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.link:hover { color: var(--red-600); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn .icon { transition: transform 0.3s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }

.btn-primary { --btn-bg: var(--red-600); --btn-fg: #fff; }
.btn-primary:hover { --btn-bg: var(--red-700); box-shadow: 0 10px 30px -10px rgba(220, 38, 38, 0.6); }

.btn-ghost { border-color: var(--line-dark-strong); --btn-fg: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, 0.06); }
.section-light .btn-ghost, .section-studio .btn-ghost { border-color: #cbd5e1; --btn-fg: var(--on-light); }

.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.link-button {
  background: none; border: 0; padding: 0;
  color: inherit; text-align: left;
  text-decoration: none;
}
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Eyebrow / typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 20px;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--red-500); }

.eyebrow-live { color: var(--on-dark) !important; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.footnote {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--on-dark-muted);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.3s, backdrop-filter 0.3s, border-color 0.3s, transform 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(13, 15, 19, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-color: var(--line-dark);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--on-dark);
  min-height: 44px;
}
.header-inner .logo { position: relative; z-index: 2; }
.logo-mark { width: 30px; height: 30px; color: var(--red-500); }
.logo-word {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-menu a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s;
}
.nav-menu a:not(.btn):hover,
.nav-menu a[aria-current="true"] { color: var(--on-dark); }
.nav-cta-item { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark-strong);
  border-radius: 50%;
  background: transparent;
  position: relative;
  z-index: 2;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); background: var(--on-dark); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); background: var(--on-dark); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    padding: calc(var(--header-h) + 16px) var(--gutter) 40px;
    background: var(--ink-950);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; }
  .nav-menu a:not(.btn) {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--on-dark);
    padding: 8px 0;
    min-height: 56px;
  }
  .nav-cta-item { margin: 24px 0 0; }
  .nav-cta-item .btn { width: 100%; min-height: 56px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(40px, 8vh, 96px)) 0 48px;
  background: radial-gradient(120% 80% at 70% 0%, #1a1d25 0%, var(--ink-900) 55%, var(--ink-950) 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  inset: auto -20% 10% -20%;
  height: 50%;
  background: radial-gradient(50% 50% at 50% 60%, rgba(220, 38, 38, 0.22), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  z-index: -1;
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .accent {
  color: var(--on-dark-muted);
  background: linear-gradient(90deg, var(--red-500) 0%, #f87171 40%, var(--on-dark-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--on-dark-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-stage {
  position: relative;
  margin-top: clamp(16px, 4vh, 40px);
  height: clamp(200px, 34vw, 420px);
}
.car-hero {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: min(1100px, 118vw);
  transform: translateX(-42%);
  animation: car-bob 3.2s var(--ease-in-out) infinite;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
}
@keyframes car-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -2px; }
}

.road {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(to bottom, #15181e, #0a0b0e);
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
}
.road-lines {
  position: absolute;
  left: 0; top: 50%;
  width: 200%; height: 4px;
  margin-top: -2px;
  background: repeating-linear-gradient(to right, rgba(255,255,255,0.45) 0 80px, transparent 80px 180px);
  animation: road 0.9s linear infinite;
}
@keyframes road { to { transform: translateX(-180px); } }

.car-hero .spin { animation: spin 0.55s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0 0;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stats > div { padding: 20px 24px; background: rgba(13, 15, 19, 0.85); }
.hero-stats dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.hero-stats dd { margin: 6px 0 0; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; }
.hero-stats dd .mono { font-weight: 500; }

@media (min-width: 1200px) {
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .hero-title { font-size: clamp(5rem, 7.4vw, 7.5rem); }
  .hero-lead { max-width: 30rem; }
  .hero-stage { height: 340px; margin-top: -150px; pointer-events: none; }
  .car-hero { width: min(980px, 76vw); transform: translateX(-28%); }
  .hero-stats { margin-top: 20px; }
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats > div { padding: 16px; }
  .car-hero { width: 108vw; transform: translateX(-50%); bottom: 14%; }
}

/* ---------- Car SVG parts (shared) ---------- */
.car .paint { fill: var(--paint); transition: fill 0.6s var(--ease-out); }
.car .cockpit { fill: #0a0b0d; }
.car .steering { fill: none; stroke: #2a2e36; stroke-width: 3; }
.car .glass { fill: rgba(170, 200, 230, 0.35); stroke: #111317; stroke-width: 2; stroke-linejoin: round; }
.car .mirror { fill: #111317; }
.car .crease { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; }
.car .seam { fill: none; stroke: rgba(0, 0, 0, 0.35); stroke-width: 1.5; }
.car .handle { stroke: rgba(0, 0, 0, 0.45); stroke-width: 3; stroke-linecap: round; }
.car .vent { fill: rgba(0, 0, 0, 0.5); }
.car .sill { fill: rgba(0, 0, 0, 0.4); }
.car .intake { fill: #0b0c0f; }
.car .headlight { fill: #f8fafc; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)); }
.car .taillight { fill: #ef4444; filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.9)); }
.car .tire { fill: #0c0d10; stroke: #1d2027; stroke-width: 4; }
.car .rim-well { fill: #050506; }
.car .caliper { fill: var(--red-600); }
.car .rim-ring { fill: none; stroke: var(--rim); stroke-width: 4; transition: stroke 0.5s; }
.car .spoke, .car .hub { fill: var(--rim); transition: fill 0.5s; }
.car .spin { transform-box: fill-box; transform-origin: center; }
.car .softtop {
  fill: #16181c;
  opacity: 0;
  transform-origin: 300px 121px;
  transform: scaleY(0.2) translateY(20px);
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out);
}
.car.roof-up .softtop { opacity: 1; transform: none; }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  background: var(--red-600);
  color: #fff;
  padding: 16px 0;
  border-block: 1px solid rgba(0,0,0,0.2);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track span::after {
  content: "";
  width: 6px; height: 6px;
  margin: 0 32px;
  background: currentColor;
  transform: rotate(45deg);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-light { background: var(--paper); color: var(--on-light); }
.section-studio {
  background: radial-gradient(80% 60% at 50% 40%, #ffffff 0%, var(--paper-2) 70%);
  color: var(--on-light);
}
.section-dark { background: var(--ink-900); color: var(--on-dark); }

.section-head { max-width: 880px; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  letter-spacing: -0.035em;
}
.section-lead {
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--on-light-muted);
  max-width: 40rem;
}
.section-head-center .section-lead { margin-inline: auto; }
.section-dark .section-lead { color: var(--on-dark-muted); }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bento-card {
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.25);
  border-color: #cbd5e1;
}
.bento-card h3 { font-size: 1.3rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.bento-card p { color: var(--on-light-muted); }

.bento-wide {
  grid-column: span 2;
  display: grid;
  gap: 24px;
  align-content: space-between;
}
.bento-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

.bento-accent {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink-900); border-color: var(--ink-900); color: var(--on-dark);
}
.bento-accent p { color: var(--on-dark-muted); }
.bento-accent:hover { border-color: var(--ink-700); }
.big-number {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--red-500) !important;
  margin-bottom: 20px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: #fee2e2;
  color: var(--red-700);
}
.feature-icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.blueprint { width: 100%; height: auto; }
.bp-grid path { stroke: #e2e8f0; stroke-width: 1; fill: none; }
.bp-car path, .bp-car circle {
  fill: none;
  stroke: var(--on-light);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 2.4s var(--ease-out);
}
.is-in .bp-car path, .is-in .bp-car circle { stroke-dashoffset: 0; }
.bp-dim path { stroke: var(--red-600); stroke-width: 1.2; fill: none; }
.bp-dim .bp-arrow { fill: var(--red-600); stroke: none; }
.bp-label { font-family: var(--font-mono); font-size: 13px; fill: var(--red-700); }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-wide { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .bp-label { font-size: 24px; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
}

/* ---------- Performance ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line-dark);
}
.stat {
  padding: 32px 24px 32px 0;
  border-bottom: 1px solid var(--line-dark);
}
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stat dt {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.stat dd {
  margin: 12px 0 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.stat .mono { font-size: clamp(2.6rem, 5.5vw, 4.75rem); font-weight: 500; line-height: 1; }
.stat .unit { color: var(--on-dark-muted); font-size: 1rem; }
.footnote-dark { margin-top: 20px; }

@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding-left: 0; border-left: 0; }
}

.modes {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--ink-850), var(--ink-900));
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  grid-template-areas: "head tabs" "head panel";
  gap: 24px 48px;
}
.modes-head { grid-area: head; }
.modes-head h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 12px; }
.modes-head p { color: var(--on-dark-muted); }

.modes-tabs {
  grid-area: tabs;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--ink-950);
  border: 1px solid var(--line-dark);
  justify-self: start;
}
.modes-tabs button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark-muted);
  font-weight: 600;
  transition: background-color 0.3s var(--ease-out), color 0.2s;
}
.modes-tabs button:hover { color: var(--on-dark); }
.modes-tabs button[aria-selected="true"] { background: var(--red-600); color: #fff; }

.modes-panel { grid-area: panel; }
.modes-desc { color: var(--on-dark); min-height: 3.2em; margin-bottom: 24px; transition: opacity 0.25s; }
.modes-desc.is-fading { opacity: 0; }
.meters { list-style: none; display: grid; gap: 16px; }
.meters li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--on-dark-muted);
}
.meter {
  height: 6px;
  border-radius: 6px;
  background: var(--ink-700);
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-700), var(--red-500));
  transform-origin: left;
  transform: scaleX(var(--v, 0));
  transition: transform 0.7s var(--ease-out);
}

@media (max-width: 860px) {
  .modes { grid-template-columns: 1fr; grid-template-areas: "head" "tabs" "panel"; }
}
@media (max-width: 480px) {
  .meters li { grid-template-columns: 1fr; gap: 8px; }
  .modes-tabs { justify-self: stretch; }
  .modes-tabs button { flex: 1; padding: 0 12px; }
}

/* ---------- Configurator ---------- */
.configurator {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.config-stage { margin: 0; }
.car-config { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(15, 23, 42, 0.18)); }
.config-caption { margin-top: 12px; text-align: center; font-size: 0.8rem; color: var(--on-light-muted); }

.config-panel {
  background: var(--card);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 28px;
}
.config-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.config-group legend {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-light-muted);
}
.config-value { color: var(--on-light); letter-spacing: 0.02em; text-transform: none; font-size: 0.9rem; }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.25), inset 0 4px 8px rgba(255,255,255,0.3), 0 0 0 1px rgba(15,23,42,0.15);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out);
}
.swatch:hover { transform: scale(1.08); }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.swatch:has(input:checked)::after { border-color: var(--on-light); }
.swatch:has(input:focus-visible)::after { border-color: var(--focus); }

.segmented {
  display: flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: var(--paper-2);
}
.segmented label { flex: 1; position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-light-muted);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.2s, box-shadow 0.25s;
}
.segmented input:checked + span { background: var(--card); color: var(--on-light); box-shadow: 0 2px 8px rgba(15,23,42,0.12); }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

@media (max-width: 960px) {
  .configurator { grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 28px 24px 32px;
  border-top: 2px solid var(--on-light);
}
.step::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--red-600);
  transition: width 1s var(--ease-out) 0.2s;
}
.step.is-in::before { width: 100%; }
.step-num { display: block; font-size: 0.9rem; color: var(--red-600); margin-bottom: 40px; }
.step h3 { font-size: 1.4rem; margin-bottom: 12px; }
.step p { color: var(--on-light-muted); }

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding-inline: 0; }
  .step-num { margin-bottom: 16px; }
}

/* ---------- Reserve ---------- */
.section-reserve {
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(220, 38, 38, 0.16), transparent 70%),
    var(--ink-900);
}
.reserve-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.reserve-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.reserve-intro h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.035em; }

.checklist { list-style: none; margin-top: 32px; display: grid; gap: 14px; }
.checklist li { display: flex; align-items: center; gap: 12px; color: var(--on-dark); }
.checklist .icon {
  width: 28px; height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: var(--red-500);
  stroke-width: 2.5;
}

.form-card {
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
}
.reserve-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 20px; } }

.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--on-dark); }
.optional { color: var(--on-dark-muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius-sm);
  background: var(--ink-900);
  color: var(--on-dark);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3abb9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,0.3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}
.field.has-error input, .field.has-error select { border-color: var(--error-dark); }
.field-hint { font-size: 0.8rem; color: var(--on-dark-muted); }
.field-error { font-size: 0.85rem; color: var(--error-dark); min-height: 0; }
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consents {
  display: grid;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line-dark);
}
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding-top: 6px; }
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  border: 1.5px solid var(--line-dark-strong);
  border-radius: 6px;
  background: var(--ink-900);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.check input::after {
  content: "";
  width: 10px; height: 6px;
  border: 2px solid #fff;
  border-top: 0; border-right: 0;
  transform: rotate(-45deg) scale(0);
  margin-top: -3px;
  transition: transform 0.2s var(--ease-out);
}
.check input:checked { background: var(--red-600); border-color: var(--red-600); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check.has-error input { border-color: var(--error-dark); }
.check label { font-size: 0.85rem; line-height: 1.55; color: var(--on-dark-muted); cursor: pointer; }
.check label a { color: var(--on-dark); text-underline-offset: 3px; }

.btn .spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin-simple 0.8s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
@keyframes spin-simple { to { transform: rotate(360deg); } }

.form-status { font-size: 0.9rem; color: var(--error-dark); }
.form-status:empty { display: none; }
.form-note { font-size: 0.8rem; color: var(--on-dark-muted); text-align: center; }

.form-success { text-align: center; padding: 40px 8px; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 2rem; margin: 24px 0 12px; }
.form-success p { color: var(--on-dark-muted); max-width: 26rem; margin: 0 auto 28px; }
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.14);
  color: var(--success);
  animation: pop 0.5s var(--ease-out);
}
.success-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }

@media (max-width: 960px) {
  .reserve-grid { grid-template-columns: 1fr; }
  .reserve-intro { position: static; }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-list { border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 20px 0;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--paper-2);
}
.faq-item summary:hover { color: var(--red-700); }
.faq-body { padding: 0 56px 24px 0; color: var(--on-light-muted); }
.faq-item[open] .faq-body { animation: faq-in 0.35s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .faq-body { padding-right: 0; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red-600);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.035em; }
.cta-band .btn-primary { --btn-bg: var(--ink-900); }
.cta-band .btn-primary:hover { --btn-bg: #000; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-950);
  color: var(--on-dark-muted);
  padding: clamp(56px, 8vw, 88px) 0 32px;
  font-size: 0.92rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand p { margin-top: 16px; max-width: 18rem; }
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 16px;
}
.footer-nav ul { list-style: none; display: grid; gap: 4px; }
.footer-nav a, .footer-nav .link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--on-dark-muted);
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav .link-button:hover { color: var(--on-dark); }
.choices-icon { width: 30px; height: 14px; flex-shrink: 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
  padding-top: 28px;
  font-size: 0.8rem;
}
.footer-bottom p:last-child { max-width: 40rem; }

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Cookie banner + dialog ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 150;
  max-width: 560px;
  padding: 24px;
  background: var(--ink-850);
  color: var(--on-dark);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  transform: translateY(calc(100% + 32px));
  transition: transform 0.5s var(--ease-out);
}
.cookie-banner.is-visible { transform: none; }
.cookie-banner h2 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.cookie-banner p { font-size: 0.875rem; color: var(--on-dark-muted); }
.cookie-banner p a { color: var(--on-dark); text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cookie-actions .btn { flex: 1 1 auto; min-height: 44px; padding: 10px 16px; font-size: 0.875rem; }
.btn-light { --btn-bg: var(--on-dark); --btn-fg: var(--ink-900); }
.btn-light:hover { --btn-bg: #fff; }

.cookie-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius-lg);
  background: var(--ink-850);
  color: var(--on-dark);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
}
.cookie-dialog::backdrop { background: rgba(5, 6, 8, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cookie-dialog form { padding: 28px; display: grid; gap: 20px; }
.cookie-dialog h2 { font-size: 1.4rem; }
.cookie-dialog > form > p { color: var(--on-dark-muted); font-size: 0.9rem; }
.cookie-dialog p a { color: var(--on-dark); }
.pref {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
}
.pref-title { font-weight: 600; }
.pref-desc { grid-column: 1 / 2; font-size: 0.85rem; color: var(--on-dark-muted); }
.pref .switch { grid-row: 1 / span 2; grid-column: 2; }
.pref-always { font-size: 0.8rem; color: var(--on-dark-muted); grid-row: 1 / span 2; grid-column: 2; }

.switch { position: relative; display: inline-block; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch-track {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: var(--ink-700);
  border: 1px solid var(--line-dark-strong);
  transition: background-color 0.25s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--ease-out);
}
.switch input:checked + .switch-track { background: var(--red-600); border-color: var(--red-600); }
.switch input:checked + .switch-track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--focus); outline-offset: 2px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.dialog-actions .btn { min-height: 44px; }
.gpc-note {
  font-size: 0.82rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--on-dark);
}

/* ---------- Legal pages ---------- */
.legal-page { background: var(--paper); color: var(--on-light); }
.legal-page .site-header {
  background: rgba(13, 15, 19, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-color: var(--line-dark);
}
.legal-hero {
  background: var(--ink-900);
  color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(48px, 7vw, 80px);
}
.legal-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.04em; }
.legal-meta { margin-top: 20px; color: var(--on-dark-muted); font-size: 0.9rem; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  margin-bottom: 20px;
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.legal-back:hover { color: var(--on-dark); }
.legal-back .icon { width: 18px; height: 18px; }

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 10vw, 120px);
}
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.legal-toc h2 {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-light-muted);
  margin-bottom: 12px;
}
.legal-toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line-light); }
.legal-toc a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.88rem;
  color: var(--on-light-muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.legal-toc a:hover { color: var(--on-light); }
.legal-toc a.is-active { color: var(--on-light); border-color: var(--red-600); }

.prose { max-width: 46rem; font-size: 1.02rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-top: 2.6em;
  padding-top: 0.2em;
  letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; letter-spacing: -0.01em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--red-700); text-underline-offset: 3px; }
.prose a:hover { color: var(--on-light); }
.prose strong { color: var(--on-light); }
.prose .callout {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line-light);
  border-left: 4px solid var(--red-600);
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line-light); border-radius: var(--radius); background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.prose th { background: var(--paper-2); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

.legal-form { display: grid; gap: 16px; padding: 24px; background: var(--ink-900); border-radius: var(--radius-lg); color: var(--on-dark); }
.legal-form .btn { justify-self: start; }

.choice-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  color: var(--on-dark);
}
.choice-card p { color: var(--on-dark-muted); font-size: 0.92rem; grid-column: 1; }
.choice-card .switch { grid-row: 1 / span 2; grid-column: 2; }
.choice-status { grid-column: 1 / -1; font-size: 0.85rem; color: var(--success); min-height: 1.4em; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gutter);
  background: radial-gradient(80% 60% at 50% 0%, #1a1d25, var(--ink-950));
}
.notfound h1 { font-size: clamp(5rem, 22vw, 14rem); font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.06em; line-height: 1; }
.notfound p { color: var(--on-dark-muted); margin: 16px 0 32px; font-size: 1.1rem; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.hero-title .line > span {
  animation: rise 1s var(--ease-out) both;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-lead, .hero-actions, .hero .eyebrow { animation: fade-up 0.9s var(--ease-out) both; }
.hero .eyebrow { animation-delay: 0s; }
.hero-lead { animation-delay: 0.25s; }
.hero-actions { animation-delay: 0.35s; }
.car-hero { opacity: 0; animation: drive-in 1.4s var(--ease-out) 0.2s forwards, car-bob 3.2s var(--ease-in-out) 1.6s infinite; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes drive-in {
  from { opacity: 0; transform: translateX(-120%); }
  to { opacity: 1; transform: translateX(-42%); }
}
@media (min-width: 1200px) {
  @keyframes drive-in {
    from { opacity: 0; transform: translateX(-110%); }
    to { opacity: 1; transform: translateX(-28%); }
  }
}
@media (max-width: 720px) {
  @keyframes drive-in {
    from { opacity: 0; transform: translateX(-150%); }
    to { opacity: 1; transform: translateX(-50%); }
  }
}

/* Pause infinite animations when hero is off-screen */
.hero.is-paused .road-lines,
.hero.is-paused .car-hero,
.hero.is-paused .car-hero .spin { animation-play-state: paused; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .car-hero { opacity: 1; }
  .ticker-track { animation: none; }
  .road-lines, .car-hero .spin, .live-dot { animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .cookie-banner, .legal-toc, .site-footer { display: none !important; }
  .legal-hero { padding: 0 0 24px; background: none; color: #000; }
  .legal-layout { display: block; padding: 0; }
  body, .legal-page { background: #fff; color: #000; }
}
