/* ==========================================================================
   Roadster Reservation — independent information site
   Tokens → base → layout → components → sections → legal → utilities
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #0a0a0b;
  --surface: #111113;
  --surface-2: #18181b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f2ef;
  --muted: #a3a3a8;
  --faint: #8a8a90;
  --accent: #ff4a2e;
  --accent-soft: rgba(255, 74, 46, 0.12);
  --on-accent: #0a0a0b;
  --warn: #ffb020;

  --font-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 12vw, 160px);
  --radius: 4px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;

  --z-header: 50;
  --z-notice: 100;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease-out), text-decoration-color var(--dur) var(--ease-out);
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

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

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

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(48px, 7vw, 88px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 200px 1fr; gap: 40px; }
}

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--accent { color: var(--accent); }

.section-title {
  font-size: clamp(2.25rem, 5.6vw, 4.5rem);
  max-width: 16ch;
}
.section-lede {
  margin-top: 24px;
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--muted);
}

/* ---------- Notice bar ---------- */
.notice-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.notice-bar .container {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding-block: 10px;
  text-align: center;
}
.notice-bar strong { color: var(--text); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 10, 11, 0.9); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.0625rem;
  min-height: 44px;
}
.wordmark:hover { color: var(--text); }
.wordmark__mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
}
.wordmark__sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
}
@media (max-width: 520px) { .wordmark__sub { display: none; } }

.nav-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
}
.nav-list a:hover,
.nav-list a[aria-current="true"] { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .site-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  }
  .nav-list { flex-direction: column; padding: 8px var(--gutter) 20px; }
  .nav-list a { width: 100%; padding: 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); min-height: 56px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: 600 0.9375rem/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform 120ms var(--ease-out);
}
.btn:hover { border-color: var(--text); color: var(--text); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 55%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 55%, #000 30%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}
.hero .container { position: relative; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 32px;
}

.hero__title {
  font-size: clamp(3rem, 10.5vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 800;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__row {
  display: grid;
  gap: 40px;
  margin-top: 40px;
  align-items: end;
}
@media (min-width: 960px) {
  .hero__row { grid-template-columns: 1fr auto; gap: 64px; }
}

.hero__lede {
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--muted);
  margin: 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Countdown */
.countdown {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: rgba(17, 17, 19, 0.7);
  min-width: min(100%, 380px);
}
.countdown__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.countdown__live {
  display: inline-flex; align-items: center; gap: 8px;
}
.countdown__live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 74, 46, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(255, 74, 46, 0); }
}
.countdown__units {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.countdown__unit { text-align: left; }
.countdown__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}
.countdown__cap { display: block; margin-top: 6px; font-size: 0.6875rem; }
.countdown__foot { margin: 16px 0 0; font-size: 0.8125rem; color: var(--muted); }
.countdown__done { margin: 0; font-size: 1rem; }

/* Blueprint car */
.blueprint {
  position: relative;
  margin-inline: 0;
  margin-bottom: 0;
  margin-top: clamp(48px, 7vw, 96px);
}
.blueprint svg { width: 100%; height: auto; overflow: visible; }
.blueprint figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.bp-body { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bp-detail { fill: none; stroke: var(--muted); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.bp-glass { fill: rgba(255, 255, 255, 0.035); stroke: var(--muted); stroke-width: 1.25; }
.bp-wheel { fill: var(--bg); stroke: var(--text); stroke-width: 2; }
.bp-rim { fill: none; stroke: var(--muted); stroke-width: 1.25; }
.bp-ground { stroke: var(--line-strong); stroke-width: 1; }
.bp-tail { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.bp-head { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.bp-callout { stroke: var(--faint); stroke-width: 1; fill: none; }
.bp-dot { fill: var(--accent); }
.bp-text {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bp-dim { stroke: var(--faint); stroke-width: 1; }
.bp-dim-text { fill: var(--faint); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }

.js .blueprint .draw {
  stroke-dasharray: var(--len, 3000);
  stroke-dashoffset: var(--len, 3000);
}
.js .blueprint.is-drawn .draw {
  transition: stroke-dashoffset 2.2s var(--ease-out);
  stroke-dashoffset: 0;
}
.js .blueprint .fade-in { opacity: 0; transition: opacity 600ms var(--ease-out) 1.6s; }
.js .blueprint.is-drawn .fade-in { opacity: 1; }

@media (max-width: 640px) {
  .bp-text, .bp-callout, .bp-dot { display: none; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__unit {
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 1.3vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.stat__label { margin: 14px 0 0; color: var(--muted); font-size: 0.9375rem; }
.stats-note { margin-top: 20px; font-size: 0.8125rem; color: var(--faint); max-width: 70ch; }

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature {
  background: var(--bg);
  padding: clamp(28px, 3.2vw, 44px);
  display: flex;
  flex-direction: column;
  transition: background var(--dur) var(--ease-out);
}
.feature:hover { background: var(--surface); }
.feature__icon {
  width: 32px; height: 32px;
  color: var(--accent);
}
.feature__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.375rem; letter-spacing: -0.02em; margin-top: 40px; }
.feature p { margin: 12px 0 0; color: var(--muted); font-size: 0.9875rem; }

/* ---------- Split (SpaceX package) ---------- */
.split {
  display: grid;
  gap: 48px;
}
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }

.prose { max-width: 60ch; color: var(--muted); font-size: 1.0625rem; }
.prose strong { color: var(--text); font-weight: 600; }

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.spec-list li {
  display: grid;
  grid-template-columns: minmax(120px, 40%) 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9875rem;
}
.spec-list .label { padding-top: 3px; }

.callout {
  margin-top: 32px;
  padding: 20px 22px;
  border-left: 2px solid var(--warn);
  background: rgba(255, 176, 32, 0.06);
  color: var(--text);
  font-size: 0.9375rem;
}
.callout p:last-child { margin: 0; }
.callout .label { color: var(--warn); display: block; margin-bottom: 8px; }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px;
  left: 7px;
  width: 1px;
  background: var(--line-strong);
}
@media (min-width: 900px) {
  .timeline::before { left: calc(200px + 40px + 7px); }
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 0 0 44px 40px;
}
@media (min-width: 900px) {
  .tl-item { grid-template-columns: 200px 1fr; gap: 40px; padding-left: 0; }
  .tl-item__body { padding-left: 40px; }
}
.tl-item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--muted);
}
@media (min-width: 900px) { .tl-item::before { left: calc(200px + 40px + 3px); } }

.tl-item--slip::before { border-color: var(--faint); background: var(--faint); width: 7px; height: 7px; left: 4px; top: 8px; }
@media (min-width: 900px) { .tl-item--slip::before { left: calc(200px + 40px + 4px); } }
.tl-item--key::before { border-color: var(--accent); background: var(--accent); }

.tl-item__date {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.tl-item__body h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
.tl-item__body p { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
.tl-item--slip .tl-item__body h3 { color: var(--muted); font-weight: 600; }
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 3px;
}
.tag--accent { color: var(--accent); border-color: rgba(255, 74, 46, 0.45); }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) { .price-grid { grid-template-columns: 1fr 1fr; } }

.price-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
  background: var(--surface);
}
.price-card--founders { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.price-card__amount {
  margin-top: 20px;
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-card__amount small { font-size: 0.35em; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.price-card dl { margin: 32px 0 0; }
.price-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.price-card dt { color: var(--muted); }
.price-card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.safety {
  margin-top: 16px;
  display: grid;
  gap: 24px;
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid rgba(255, 74, 46, 0.4);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
@media (min-width: 900px) { .safety { grid-template-columns: 56px 1fr auto; align-items: start; gap: 32px; } }
.safety__icon { width: 40px; height: 40px; color: var(--accent); }
.safety__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.safety h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.safety ul { margin: 16px 0 0; padding-left: 1.1em; color: var(--text); }
.safety li { margin-bottom: 6px; }
.safety li::marker { color: var(--accent); }

/* ---------- Compare table ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.compare {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.compare caption { text-align: left; padding: 0 0 16px; color: var(--muted); caption-side: bottom; padding: 16px 20px; font-size: 0.8125rem; border-top: 1px solid var(--line); }
.compare th, .compare td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}
.compare tbody th { font-weight: 500; color: var(--muted); width: 22%; }
.compare td { font-variant-numeric: tabular-nums; }
.compare .col-focus { background: rgba(255, 255, 255, 0.025); color: var(--text); font-weight: 600; }
.compare thead .col-focus { color: var(--accent); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq__plus {
  position: relative;
  flex: none;
  width: 16px; height: 16px;
}
.faq__plus::before, .faq__plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out);
}
.faq__plus::after { transform: rotate(90deg); }
.faq details[open] .faq__plus::after { transform: rotate(0deg); }
.faq__answer { padding: 0 0 28px; max-width: 70ch; color: var(--muted); }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Sources ---------- */
.sources {
  columns: 1;
  column-gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: src;
}
@media (min-width: 800px) { .sources { columns: 2; } }
.sources li {
  break-inside: avoid;
  counter-increment: src;
  display: grid;
  grid-template-columns: 36px 1fr;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.sources li::before {
  content: counter(src, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
  padding-top: 3px;
}
.sources a { text-decoration: none; }
.sources a:hover { text-decoration: underline; }
.sources span { display: block; color: var(--faint); font-size: 0.8125rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 64px 40px;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 64px; } }
.footer-grid h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
}
.footer-legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.8125rem;
  color: var(--faint);
}
.footer-legal p { margin: 0; max-width: 90ch; }
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 36px;
}
.link-button:hover { color: var(--accent); }

/* ---------- Cookie notice ---------- */
.cookie-notice {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: var(--z-notice);
  max-width: 560px;
  margin-inline: auto;
  padding: 20px 22px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  font-size: 0.875rem;
  color: var(--muted);
  transform: translateY(calc(100% + 32px));
  transition: transform 320ms var(--ease-out);
}
.cookie-notice.is-visible { transform: none; }
.cookie-notice p { margin: 0 0 16px; }
.cookie-notice strong { color: var(--text); }
.cookie-notice__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-notice .btn { min-height: 44px; padding: 0 18px; font-size: 0.875rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-block: clamp(56px, 8vw, 104px) 40px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -0.045em; }
.legal-hero .label { display: block; margin-bottom: 20px; }
.legal-hero p { margin: 20px 0 0; color: var(--muted); }

.legal-layout {
  display: grid;
  gap: 48px;
  padding-block: 56px var(--section-y);
}
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 240px 1fr; gap: 80px; } }

.legal-toc { font-size: 0.875rem; }
@media (min-width: 1000px) { .legal-toc { position: sticky; top: 100px; align-self: start; } }
.legal-toc ol { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
}
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.75rem; color: var(--faint); padding-top: 2px; }
.legal-toc a:hover { color: var(--text); }

.legal-body { max-width: 72ch; color: #cfcfcb; font-size: 1.0625rem; line-height: 1.7; }
.legal-body h2 {
  font-size: 1.625rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.3; color: var(--text); margin: 32px 0 10px; }
.legal-body ul, .legal-body ol { padding-left: 1.2em; margin: 0 0 1em; }
.legal-body li { margin-bottom: 8px; }
.legal-body li::marker { color: var(--faint); }
.legal-body a { color: var(--text); text-decoration-color: var(--accent); }
.legal-body a:hover { color: var(--accent); }
.legal-body strong { color: var(--text); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.9375rem; }
.legal-body th, .legal-body td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal-body th { background: var(--surface); color: var(--text); font-weight: 600; }
.legal-body .table-scroll { overflow-x: auto; }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; min-height: 70dvh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.error-page h1 { font-size: clamp(5rem, 20vw, 14rem); letter-spacing: -0.06em; line-height: 0.85; }
.error-page p { color: var(--muted); margin: 24px auto 32px; max-width: 40ch; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .blueprint .draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .blueprint .fade-in { opacity: 1; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .notice-bar, .cookie-notice, .hero__grid-bg, .legal-toc { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-body { color: #000; }
}
