/* ==========================================================================
   Roadster Series One — presale site
   Tokens → base → layout → components → sections → legal → utilities
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Color */
  --bg: #0a0a0b;
  --bg-elev: #0f0f11;
  --surface: #141417;
  --surface-2: #1b1b1f;
  --surface-3: #232328;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fg: #f4f4f5;
  --fg-2: #d4d4d8;
  --fg-muted: #a1a1aa;
  --fg-subtle: #8a8a94;
  --accent: #ff5a1f;
  --accent-hover: #ff7442;
  --accent-soft: rgba(255, 90, 31, 0.12);
  --on-accent: #0a0a0b;
  --danger: #ff7a7a;
  --danger-soft: rgba(255, 122, 122, 0.08);
  --success: #5ee69a;
  --ring: rgba(255, 90, 31, 0.55);

  /* Car paint (overridden per instance) */
  --paint: #e4561f;
  --caliper: #ff5a1f;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Space (spacious marketing scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-y: clamp(88px, 12vw, 168px);
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1320px;
  --header-h: 72px;

  /* Shape & motion */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 700ms;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }

img, svg, video { display: block; max-width: 100%; }
svg { overflow: visible; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

::selection { background: var(--accent); color: var(--on-accent); }

[hidden] { display: none !important; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.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: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.display,
.h2,
.h3 {
  font-family: var(--font-display);
  font-stretch: 118%;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.9rem, 1.4rem + 5.6vw, 6.25rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.h2 {
  font-size: clamp(2.1rem, 1.25rem + 3.4vw, 4.4rem);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.h3 {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-stretch: 108%;
}

.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.lede {
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 46ch;
  text-wrap: pretty;
}

.muted { color: var(--fg-muted); }
.mono { font-family: var(--font-mono); }

.fineprint {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-subtle);
}

.text-link {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: rgba(255, 90, 31, 0.6);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.text-link:hover { text-decoration-color: var(--accent); color: #fff; }

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

.section { padding-block: var(--section-y); position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  gap: var(--space-5);
  margin-bottom: clamp(40px, 6vw, 80px);
}

@media (min-width: 960px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--space-8);
  }
}

.chapter-tag {
  display: flex;
  align-items: center;
  gap: 14px;
}
.chapter-tag .num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.chapter-tag .rule {
  width: 40px; height: 1px;
  background: var(--line-strong);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg.icon-arrow { transform: translateX(3px); }

.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn-primary:hover { --btn-bg: var(--accent-hover); }

.btn-secondary {
  --btn-bg: rgba(255, 255, 255, 0.05);
  --btn-border: var(--line-strong);
}
.btn-secondary:hover { --btn-bg: rgba(255, 255, 255, 0.1); --btn-border: rgba(255, 255, 255, 0.28); }

.btn-light { --btn-bg: var(--fg); --btn-fg: var(--bg); }
.btn-light:hover { --btn-bg: #fff; }

.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }

.btn[aria-busy="true"] { pointer-events: none; opacity: 0.85; }
.btn .spinner {
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, backdrop-filter var(--dur) ease;
}
.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(10, 10, 11, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-word {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.brand-word small {
  font-family: var(--font-mono);
  font-stretch: 100%;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-subtle);
  margin-left: 8px;
  vertical-align: 2px;
}

.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: 2px; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.primary-nav a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.primary-nav a.is-active { color: var(--fg); }

.header-cta { display: none; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  background: var(--bg);
  padding: var(--space-6) var(--gutter) var(--space-7);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { display: grid; }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-nav a.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  font-family: var(--font-display);
  font-stretch: 115%;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mobile-nav a.mobile-link span { font-family: var(--font-mono); font-size: 12px; color: var(--fg-subtle); font-stretch: 100%; font-weight: 400; }

@media (min-width: 1040px) {
  .primary-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px));
  padding-bottom: clamp(48px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 68%, rgba(255, 90, 31, 0.16), transparent 70%),
    radial-gradient(40% 35% at 85% 10%, rgba(255, 255, 255, 0.05), transparent 70%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-grid {
  display: grid;
  gap: var(--space-6);
}
.hero-copy { display: grid; gap: var(--space-5); align-content: start; }
.hero-side { display: grid; gap: var(--space-5); align-content: end; }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--space-8);
  }
}

.hero-car {
  position: relative;
  margin-top: clamp(16px, 2vw, 24px);
  margin-inline: auto;
  width: min(100%, 1180px);
  padding-inline: clamp(0px, 2vw, 32px);
}
.hero-car svg { width: 100%; height: auto; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.hero-stats > div {
  padding: var(--space-5) var(--space-4) 0 0;
}
.hero-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: var(--space-5); }
.hero-stats dt {
  order: 2;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-top: 6px;
}
.hero-stats dd {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 650;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-stats dd small { font-size: 0.5em; font-weight: 500; color: var(--fg-muted); margin-left: 4px; letter-spacing: 0; }
.hero-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

@media (min-width: 760px) {
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-stats > div:nth-child(n + 3) { border-top: 0; margin-top: 0; }
  .hero-stats > div + div { border-left: 1px solid var(--line); padding-left: var(--space-5); }
}

/* Hero car intro animation */
@media (prefers-reduced-motion: no-preference) {
  .hero-car .car-line {
    stroke: rgba(255, 255, 255, 0.85);
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw-line 2.2s var(--ease-in-out) 0.2s forwards, dim-line 1s ease 2.2s forwards;
  }
  .hero-car .car-solid {
    opacity: 0;
    animation: fade-in 1.2s var(--ease-out) 1.3s forwards;
  }
  .hero-car .car-reflection { opacity: 0; animation: fade-in 1.4s ease 1.8s forwards; }
  .hero-copy > *, .hero-side > * {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.9s var(--ease-out) forwards;
  }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-side > :nth-child(1) { animation-delay: 0.2s; }
  .hero-side > :nth-child(2) { animation-delay: 0.3s; }
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes dim-line { to { stroke: rgba(255, 255, 255, 0.16); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Car illustration (shared)
   -------------------------------------------------------------------------- */
.car-paint { fill: var(--paint); transition: fill var(--dur-slow) var(--ease-out); }
.car-line { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.4; }
.car-crease { fill: none; stroke: rgba(255, 255, 255, 0.34); stroke-width: 1.4; }
.car-crease-shadow { fill: none; stroke: rgba(0, 0, 0, 0.35); stroke-width: 2; }
.car-cut { fill: none; stroke: rgba(0, 0, 0, 0.55); stroke-width: 1.4; }
.car-cut-hi { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.car-dark { fill: #08080a; }
.car-trim { fill: #121215; }
.car-glass { fill: url(#g-glass); stroke: #0b0b0d; stroke-width: 2.5; stroke-linejoin: round; }
.car-headlight { fill: #f4f6fa; }
.car-tail { fill: var(--accent); }
.car-reflection { opacity: 1; }

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-elev);
}
.ticker-track {
  display: flex;
  width: max-content;
}
.ticker-list {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}
.ticker-list li {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 18px 28px 18px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}
.ticker-list li::after {
  content: "";
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 48s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { width: 100%; }
  .ticker-list { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }
  .ticker-list[aria-hidden="true"] { display: none; }
  .ticker-list li { padding: 10px 20px 10px 0; gap: 20px; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Design / blueprint
   -------------------------------------------------------------------------- */
.blueprint {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-elev);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  padding: clamp(20px, 4vw, 56px) clamp(12px, 3vw, 48px);
  overflow: hidden;
}
.blueprint svg { width: 100%; height: auto; }
.blueprint .bp-car { fill: none; stroke: var(--fg-muted); stroke-width: 1.6; }
.blueprint .bp-detail { fill: none; stroke: var(--fg-subtle); stroke-width: 1.2; opacity: 0.8; }
.blueprint .bp-guide { stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.blueprint .bp-dim { stroke: var(--accent); stroke-width: 1.25; vector-effect: non-scaling-stroke; fill: none; }
.blueprint .bp-label { fill: var(--accent); font-family: var(--font-mono); font-size: 20px; font-weight: 500; }
.blueprint .bp-label-bg { fill: var(--bg-elev); }
.blueprint-corner {
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

@media (prefers-reduced-motion: no-preference) {
  .js .blueprint .bp-car,
  .js .blueprint .bp-detail { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-in-out); }
  .js .blueprint .bp-dim { opacity: 0; transition: opacity 0.8s ease 1.6s; }
  .js .blueprint .bp-label, .js .blueprint .bp-label-bg { opacity: 0; transition: opacity 0.8s ease 1.9s; }
  .js .blueprint.is-visible .bp-car,
  .js .blueprint.is-visible .bp-detail { stroke-dashoffset: 0; }
  .js .blueprint.is-visible .bp-dim,
  .js .blueprint.is-visible .bp-label,
  .js .blueprint.is-visible .bp-label-bg { opacity: 1; }
}

.dims {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-4);
  margin-top: var(--space-6);
}
@media (min-width: 760px) { .dims { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dims > div { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; }
.dims .key {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid rgba(255, 90, 31, 0.5);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.dims dt { font-size: 13.5px; color: var(--fg-muted); }
.dims dd {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.dims dd span { display: block; font-family: var(--font-mono); font-size: 12.5px; font-weight: 400; color: var(--fg-subtle); letter-spacing: 0; }

/* --------------------------------------------------------------------------
   Performance
   -------------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 960px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stat {
  background: var(--bg);
  padding: clamp(20px, 3vw, 36px);
  display: grid;
  gap: var(--space-2);
  align-content: space-between;
  min-height: clamp(160px, 18vw, 240px);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.stat-value {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 750;
  font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat-value .unit {
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fg-muted);
  margin-left: 6px;
}
.stat-note { font-size: 14px; color: var(--fg-muted); }

.feature-list {
  display: grid;
  gap: var(--space-6) var(--space-6);
  margin-top: clamp(48px, 6vw, 80px);
}
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .feature-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.feature { display: grid; gap: var(--space-3); align-content: start; }
.feature .icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.feature p { color: var(--fg-muted); font-size: 15.5px; }

/* --------------------------------------------------------------------------
   Open-air bento
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento .card { grid-column: span 3; }
  .bento .card.card--hero,
  .bento .card:last-child { grid-column: span 6; }
}
@media (min-width: 1100px) {
  .bento .card,
  .bento .card:last-child { grid-column: span 2; }
  .bento .card.card--hero { grid-column: span 4; grid-row: span 2; }
}

.card {
  position: relative;
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.card:hover { border-color: var(--line-strong); }
.card p { color: var(--fg-muted); font-size: 15.5px; }
.card .icon { color: var(--accent); margin-bottom: var(--space-2); }

.card--hero {
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 70% 100%, rgba(255, 90, 31, 0.1), transparent 70%),
    var(--surface);
  align-content: space-between;
  min-height: 420px;
}
.card--hero .roof-figure { margin-top: var(--space-5); display: grid; gap: var(--space-4); }
.card--hero .roof-figure svg { width: 100%; max-width: 560px; height: auto; margin-inline: auto; overflow: hidden; }
.roof-stat { display: flex; align-items: baseline; gap: 14px; }
.roof-stat strong {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 750;
  font-size: clamp(2.6rem, 1.8rem + 2.4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.roof-stat span { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }
.roof-figure .rf-body { fill: none; stroke: var(--fg-subtle); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.roof-figure .rf-roof { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.roof-figure .rf-roof-ghost { fill: none; stroke: rgba(255, 90, 31, 0.28); stroke-width: 1.25; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.roof-figure .rf-tonneau { fill: rgba(255, 90, 31, 0.15); stroke: var(--accent); stroke-width: 1.25; vector-effect: non-scaling-stroke; }

@media (prefers-reduced-motion: no-preference) {
  .roof-figure .rf-roof { stroke-dasharray: 1; animation: roof-fold 6s var(--ease-in-out) infinite; }
}
@keyframes roof-fold {
  0%, 18% { stroke-dashoffset: 0; }
  48%, 68% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   Configurator
   -------------------------------------------------------------------------- */
.config {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 1040px) {
  .config { grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); align-items: start; }
}

.config-stage {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 45% at 50% 82%, rgba(255, 255, 255, 0.07), transparent 70%),
    linear-gradient(180deg, #111114 0%, #0b0b0d 62%, #08080a 100%);
  padding: clamp(64px, 7vw, 96px) clamp(12px, 3vw, 40px) clamp(16px, 3vw, 32px);
  overflow: hidden;
  min-height: clamp(280px, 34vw, 480px);
  display: grid;
  align-content: center;
}
@media (min-width: 1040px) { .config-stage { position: sticky; top: calc(var(--header-h) + 24px); } }
.config-stage svg { position: relative; width: 100%; height: auto; }
.config-stage-word {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-110%);
  text-align: center;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2rem, 0.6rem + 3.6vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  pointer-events: none;
  user-select: none;
}
.config-stage-meta {
  position: absolute;
  top: clamp(16px, 2.4vw, 28px);
  left: clamp(16px, 2.4vw, 28px);
  right: clamp(16px, 2.4vw, 28px);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.config-stage-meta strong { color: var(--fg); font-weight: 500; }

.config-panel {
  display: grid;
  gap: var(--space-6);
  padding: clamp(22px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.config-panel fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.config-panel legend {
  padding: 0;
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.config-panel legend output { color: var(--fg); letter-spacing: 0.04em; text-transform: none; font-size: 13.5px; }

.swatches { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.swatch { position: relative; }
.swatch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.swatch label {
  display: block;
  width: 48px; height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.45), transparent 42%),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.45), transparent 55%),
    var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 0 0 var(--bg), 0 0 0 0 transparent;
  cursor: pointer;
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.swatch label:hover { transform: scale(1.06); }
.swatch input:checked + label {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 0 3px var(--surface), 0 0 0 5px var(--fg);
}
.swatch input:focus-visible + label {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 0 3px var(--surface), 0 0 0 5px var(--accent);
}

.trim-options { display: grid; gap: var(--space-3); }
.trim-option { position: relative; }
.trim-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.trim-option label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px var(--space-4);
  align-items: center;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.trim-option label:hover { border-color: rgba(255, 255, 255, 0.3); }
.trim-option .t-name { font-weight: 650; font-size: 16px; }
.trim-option .t-sub { grid-column: 1; font-size: 13.5px; color: var(--fg-muted); }
.trim-option .t-price { grid-row: 1 / span 2; grid-column: 2; font-family: var(--font-mono); font-size: 14px; color: var(--fg-2); text-align: right; }
.trim-option input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.trim-option input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }

.trim-detail ul { display: grid; gap: 10px; }
.trim-detail li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15px; color: var(--fg-2); }
.trim-detail li .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

.config-summary {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.config-price { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.config-price span { font-size: 14px; color: var(--fg-muted); }
.config-price strong {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Specs
   -------------------------------------------------------------------------- */
.spec-grid {
  display: grid;
  gap: var(--space-7) var(--space-8);
}
@media (min-width: 900px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table caption {
  text-align: left;
  padding-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.spec-table tr { border-top: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 1px solid var(--line); }
.spec-table th,
.spec-table td { padding: 14px 0; vertical-align: top; font-size: 15px; }
.spec-table th { text-align: left; font-weight: 400; color: var(--fg-muted); width: 42%; padding-right: var(--space-4); }
.spec-table td { color: var(--fg); }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline {
  display: grid;
  gap: 0;
  counter-reset: tl;
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 var(--space-7) 40px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: -8px;
  width: 1px;
  background: var(--line-strong);
}
.timeline li:last-child::before { display: none; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .tl-dot {
  position: absolute;
  left: 0; top: 4px;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
}
.timeline .is-now .tl-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.timeline .tl-when {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}
.timeline .is-now .tl-when { color: var(--accent); }
.timeline .tl-badge {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.timeline h3 { margin-top: 8px; }
.timeline p { margin-top: 6px; color: var(--fg-muted); font-size: 15.5px; max-width: 36ch; }

@media (min-width: 960px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
  .timeline li { padding: 40px 0 0; }
  .timeline li::before { left: 7px; right: calc(-1 * var(--space-5)); top: 11px; bottom: auto; width: auto; height: 1px; }
  .timeline li:last-child::before { display: block; right: 0; }
  .timeline .tl-dot { top: 4px; }
}

@media (prefers-reduced-motion: no-preference) {
  .timeline .is-now .tl-dot { animation: pulse 2.4s ease-out infinite; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(255, 90, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}

/* --------------------------------------------------------------------------
   Reserve
   -------------------------------------------------------------------------- */
.reserve {
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(255, 90, 31, 0.09), transparent 70%),
    var(--bg);
}
.reserve-grid { display: grid; gap: var(--space-8); }
@media (min-width: 1040px) {
  .reserve-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-9); align-items: start; }
  .reserve-intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.reserve-intro { display: grid; gap: var(--space-5); align-content: start; }

.steps { display: grid; gap: var(--space-5); margin-top: var(--space-4); counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); }
.steps .step-num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-2);
}
.steps h3 { font-size: 1.05rem; font-weight: 650; line-height: 1.3; margin-top: 2px; }
.steps p { color: var(--fg-muted); font-size: 15px; margin-top: 4px; }

.assurances {
  display: grid;
  gap: 12px;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.assurances li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15px; color: var(--fg-2); }
.assurances .icon { width: 20px; height: 20px; color: var(--success); margin-top: 2px; }

/* Form */
.form-card {
  padding: clamp(22px, 3.4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-card h3 { margin-bottom: var(--space-2); }

.form { display: grid; gap: var(--space-5); }
.form-row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: grid; gap: 8px; align-content: start; }
.field > label,
.field-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg);
}
.field .optional { font-weight: 400; color: var(--fg-subtle); margin-left: 4px; }
.field-hint { font-size: 13.5px; color: var(--fg-subtle); margin-top: -2px; }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0d0d10;
  color: var(--fg);
  font-size: 16px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease;
  appearance: none;
  -webkit-appearance: none;
}
.textarea { padding: 14px 16px; min-height: 132px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #6f6f78; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: #101013;
}
.select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' 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;
  cursor: pointer;
}
.select option { background: #141417; color: var(--fg); }

[aria-invalid="true"].input,
[aria-invalid="true"].select,
[aria-invalid="true"].textarea { border-color: var(--danger); }
[aria-invalid="true"].input:focus,
[aria-invalid="true"].select:focus,
[aria-invalid="true"].textarea:focus { box-shadow: 0 0 0 4px rgba(255, 122, 122, 0.16); }

.field-error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--danger);
}
.field-error[hidden] { display: none; }
.field-error::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.choice-group legend { padding: 0; margin-bottom: 10px; font-size: 14.5px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  color: var(--fg-2);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.chip label:hover { border-color: rgba(255, 255, 255, 0.3); }
.chip input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--fg); }
.chip input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg-2);
}
.check input {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.check label { cursor: pointer; }
.check .field-error { grid-column: 2; }

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

.error-summary {
  padding: var(--space-5);
  border: 1px solid rgba(255, 122, 122, 0.4);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  background: var(--danger-soft);
}
.error-summary:focus { outline: 2px solid var(--danger); outline-offset: 3px; }
.error-summary h4 { font-size: 16px; font-weight: 650; margin-bottom: 8px; }
.error-summary ul { padding-left: 18px; display: grid; gap: 4px; }
.error-summary a { color: var(--danger); text-decoration: underline; text-underline-offset: 3px; }

.form-alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 122, 122, 0.4);
  background: var(--danger-soft);
  color: var(--fg);
  font-size: 14.5px;
}

.form-success { display: grid; gap: var(--space-4); justify-items: start; padding-block: var(--space-6); }
.form-success:focus { outline: none; }
.form-success .success-badge {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(94, 230, 154, 0.12);
  color: var(--success);
}
.form-success .success-badge .icon { width: 28px; height: 28px; }
.form-success p { color: var(--fg-muted); }
.form-success dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14.5px; margin-top: var(--space-2); }
.form-success dt { color: var(--fg-subtle); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-grid { display: grid; gap: var(--space-7); }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-9); } }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 72px;
  padding: 18px 0;
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-item summary .plus {
  position: relative;
  flex: none;
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) ease, border-color var(--dur) ease;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq-item summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq-item .faq-body { padding: 0 56px var(--space-5) 0; color: var(--fg-muted); display: grid; gap: var(--space-3); }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 80px);
  background:
    radial-gradient(60% 90% at 100% 100%, rgba(255, 90, 31, 0.22), transparent 70%),
    var(--surface);
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: end; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: var(--space-6);
  background: var(--bg-elev);
}
.footer-grid { display: grid; gap: var(--space-7); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }

.footer-brand { display: grid; gap: var(--space-4); align-content: start; max-width: 36ch; }
.footer-brand p { color: var(--fg-muted); font-size: 15px; }

.footer-col h2 {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: var(--space-3);
}
.footer-col ul { display: grid; }
.footer-col a,
.footer-col button.linklike {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
  color: var(--fg-2);
  text-align: left;
  transition: color var(--dur-fast) ease;
}
.footer-col a:hover,
.footer-col button.linklike:hover { color: #fff; }
.privacy-choices-icon { width: 30px; height: 14px; flex: none; }

.footer-legal {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--space-4);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  font-size: 13.5px;
  color: var(--fg-subtle);
}
.footer-bottom a:hover { color: var(--fg); }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Cookie banner & dialog
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 980px;
  margin-inline: auto;
  display: grid;
  gap: var(--space-4);
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(20, 20, 23, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-lg);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.cookie-banner p { font-size: 14px; line-height: 1.55; color: var(--fg-muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { flex: 1 1 auto; }
@media (min-width: 860px) {
  .cookie-banner { grid-template-columns: 1fr auto; align-items: center; gap: var(--space-6); padding: 20px 24px; }
  .cookie-actions { flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .cookie-banner { animation: banner-in 0.6s var(--ease-out) both; }
}
@keyframes banner-in { from { opacity: 0; transform: translateY(24px); } }

.cookie-dialog {
  width: min(600px, calc(100% - 32px));
  max-height: min(86vh, 760px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-lg);
}
.cookie-dialog::backdrop { background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cookie-dialog form { display: grid; }
.cookie-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.cookie-dialog header h2 { font-size: 18px; font-weight: 650; }
.cookie-dialog .dialog-body { padding: 20px 24px; display: grid; gap: var(--space-4); }
.cookie-dialog .dialog-body > p { color: var(--fg-muted); font-size: 14.5px; }
.cookie-dialog footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
}
.cookie-dialog footer .btn { flex: 1 1 auto; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); }

.cookie-cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px var(--space-4);
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.cookie-cat label, .cookie-cat .cat-title { font-weight: 650; font-size: 15px; }
.cookie-cat p { grid-column: 1 / -1; font-size: 14px; color: var(--fg-muted); }
.cookie-cat .always {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--success);
  padding-top: 3px;
}
.gpc-note {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(94, 230, 154, 0.3);
  background: rgba(94, 230, 154, 0.07);
  font-size: 14px;
  color: var(--fg-2);
}
.gpc-note[hidden] { display: none; }

.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 48px; height: 28px;
  margin: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background-color var(--dur) ease, border-color var(--dur) ease;
}
.switch::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--fg);
  transition: transform var(--dur) var(--ease-out);
}
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::before { transform: translateX(20px); background: var(--on-accent); }
.switch:disabled { opacity: 0.5; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50% 80% at 0% 0%, rgba(255, 90, 31, 0.08), transparent 70%);
}
.legal-hero .h2 { margin-top: var(--space-4); }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-subtle);
}
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--fg-subtle); }
.breadcrumb a { color: var(--fg-muted); }
.breadcrumb a:hover { color: var(--fg); }

.legal-layout {
  display: grid;
  gap: var(--space-7);
  padding-block: clamp(40px, 6vw, 88px) var(--section-y);
}
@media (min-width: 1040px) {
  .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-9); }
}

.toc { align-self: start; }
@media (min-width: 1040px) { .toc { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; } }
.toc details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  cursor: pointer;
  list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; padding: 0 8px 12px; margin: 0; display: grid; }
.toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg-muted);
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.toc a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.04); }
.toc a.is-active { color: var(--fg); background: rgba(255, 90, 31, 0.1); }

.prose { max-width: 760px; color: var(--fg-2); font-size: 16.5px; line-height: 1.75; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-top: 2.6em;
  padding-top: 0.2em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; font-weight: 650; color: var(--fg); margin-top: 1.8em; line-height: 1.35; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--fg-subtle); }
.prose strong { color: var(--fg); font-weight: 650; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(255, 90, 31, 0.6); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose .callout {
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-elev);
  font-size: 15.5px;
}
.prose .callout p + p { margin-top: 0.6em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--surface); color: var(--fg); font-weight: 600; font-size: 13.5px; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose address { font-style: normal; }

.request-card {
  margin-top: var(--space-6);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
}
.request-card + .request-card { margin-top: var(--space-5); }
.optout-status {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 15px;
}
.optout-status .status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-subtle); flex: none; }
.optout-status.is-on .status-dot { background: var(--success); box-shadow: 0 0 0 4px rgba(94, 230, 154, 0.15); }

/* 404 */
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
}
.not-found .inner { display: grid; gap: var(--space-5); justify-items: center; max-width: 560px; }
.not-found .code {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(5rem, 3rem + 10vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

/* --------------------------------------------------------------------------
   Reduced motion safety net
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
