/* ==========================================================================
   Roadster Sale — roadster-sale.us
   Design tokens → base → layout → components → pages → motion
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --c-bg: #0b0c0e;
  --c-bg-2: #101215;
  --c-surface: #15181c;
  --c-surface-2: #1b1f24;
  --c-border: #262a31;
  --c-border-strong: #3a3f48;
  --c-text: #f3f1ec;
  --c-text-2: #c9cbd0;
  --c-muted: #a3a8b1;
  --c-accent: #dc2626;          /* CTA fill — 4.8:1 with white */
  --c-accent-hover: #b91c1c;
  --c-accent-ink: #ff6b5e;      /* accent used as text on dark — 7:1 */
  --c-on-accent: #ffffff;
  --c-sand: #e9d8b4;
  --c-success: #4ade80;
  --c-error: #ff8a80;
  --c-ring: #ffb4ab;

  /* Type */
  --f-display: "Zalando Sans Expanded", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(1.9rem, 1.2rem + 3vw, 3.5rem);
  --fs-h1: clamp(2.5rem, 1.2rem + 7vw, 5.4rem);

  /* Space (spacious density) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --section-y: clamp(72px, 10vw, 140px);
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1240px;

  /* Shape & depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.7);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 700ms;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle film grain — pure SVG noise, no images */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

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

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

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

[hidden] { display: none !important; }

.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: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--c-text);
  color: var(--c-bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- 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); }
.section--alt { background: var(--c-bg-2); border-block: 1px solid var(--c-border); }

.section-head {
  display: grid;
  gap: var(--sp-5);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head--split {
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}

.h2 {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--c-accent-ink); }

.lead {
  font-size: var(--fs-md);
  color: var(--c-text-2);
  max-width: 60ch;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn .icon { transition: transform var(--t-med) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(4px); }

.btn--primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn--primary:hover { background: var(--c-accent-hover); }

.btn--ghost { border-color: var(--c-border-strong); color: var(--c-text); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--c-text); background: rgba(255,255,255,0.06); }

.btn--light { background: var(--c-text); color: var(--c-bg); }
.btn--light:hover { background: #ffffff; }

.btn--sm { --btn-h: 44px; padding: 0 18px; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border-strong);
  padding-bottom: 2px;
  transition: border-color var(--t-fast);
}
.link-arrow:hover { border-color: var(--c-accent-ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color var(--t-med) var(--ease-out), border-color var(--t-med), backdrop-filter var(--t-med);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 12, 14, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--c-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  min-height: 44px;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__sale {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--c-accent);
  color: var(--c-on-accent);
}

.nav { display: none; }
.nav__list { display: flex; gap: 4px; list-style: none; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-2);
  text-decoration: none;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--c-text); background: rgba(255,255,255,0.06); }

.header-cta { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--c-border-strong);
  background: rgba(255,255,255,0.03);
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 99;
  padding: var(--sp-5) var(--gutter) var(--sp-7);
  background: rgba(11, 12, 14, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s;
}
.mobile-nav ul { list-style: none; display: grid; }
.mobile-nav a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 1px solid var(--c-border);
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 700;
  text-decoration: none;
}
body.nav-open { overflow: hidden; }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 76px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 70% 78%, rgba(220, 38, 38, 0.28), transparent 70%),
    radial-gradient(40% 40% at 10% 10%, rgba(233, 216, 180, 0.07), transparent 70%),
    linear-gradient(180deg, #0b0c0e 0%, #0e0f12 60%, #0b0c0e 100%);
}

.hero__ghost {
  position: absolute;
  left: 50%;
  bottom: clamp(120px, 22vh, 220px);
  z-index: -1;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(5rem, 19vw, 20rem);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 241, 236, 0.07);
  user-select: none;
  pointer-events: none;
}

.hero__content {
  display: grid;
  gap: var(--sp-6);
  padding-top: clamp(32px, 7vh, 88px);
}
@media (min-width: 1024px) {
  .hero__content { grid-template-columns: 1fr auto; align-items: end; }
}

.hero__title {
  font-family: var(--f-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: var(--sp-4) 0 var(--sp-5);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .accent { color: var(--c-accent-ink); }

.hero__sub { font-size: var(--fs-md); color: var(--c-text-2); max-width: 52ch; margin-bottom: var(--sp-6); }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.hero-card {
  display: none;
  width: 300px;
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: rgba(21, 24, 28, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@media (min-width: 1024px) { .hero-card { display: block; } }
.hero-card__label { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.hero-card__title { font-family: var(--f-display); font-size: 1.125rem; margin: 8px 0 4px; }
.hero-card__meta { font-size: var(--fs-sm); color: var(--c-muted); margin: 0 0 var(--sp-4); }
.hero-card__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.hero-card__price { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; }

.hero__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: clamp(220px, 34vw, 440px);
  margin-top: var(--sp-5);
}
.hero__car {
  position: relative;
  z-index: 2;
  width: min(1100px, 104%);
  margin-inline: auto;
  margin-bottom: clamp(18px, 3vw, 34px);
  color: #c81e1e;
  animation: car-idle 2.4s var(--ease-in-out) infinite;
}
.hero__car svg { width: 100%; height: auto; overflow: visible; }
.hero__road {
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(44px, 6vw, 70px);
  background: linear-gradient(180deg, #121418 0%, #0b0c0e 100%);
  border-top: 1px solid var(--c-border);
  overflow: hidden;
}
.hero__road::after {
  content: "";
  position: absolute;
  left: 0; right: -200px;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(243,241,236,0.35) 0 60px, transparent 60px 140px);
  animation: road 0.9s linear infinite;
}
.speed-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.speed-lines span {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243,241,236,0.35), transparent);
  animation: speed 1.6s linear infinite;
}

.wheel-spin { transform-box: fill-box; transform-origin: center; animation: spin 0.55s linear infinite; }

@keyframes road { to { transform: translate(-140px, -50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes car-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes speed {
  from { transform: translateX(40vw); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateX(-60vw); opacity: 0; }
}

.hero__stats-wrap { position: relative; z-index: 3; background: var(--c-bg); }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: var(--sp-5) var(--sp-4) var(--sp-5) 0;
  border-bottom: 1px solid var(--c-border);
}
.stat dd { margin: 0; }
.stat:nth-child(odd) { padding-right: var(--sp-4); border-right: 1px solid var(--c-border); }
.stat:nth-child(even) { padding-left: var(--sp-4); }
.stat__value { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); line-height: 1.1; }
.stat__label { font-size: var(--fs-sm); color: var(--c-muted); margin-top: 4px; }
@media (min-width: 900px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; padding: var(--sp-6) var(--sp-5); border-right: 1px solid var(--c-border); }
  .stat:nth-child(odd), .stat:nth-child(even) { padding: var(--sp-6) var(--sp-5); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--c-border);
  background: var(--c-bg-2);
  padding-block: clamp(18px, 2.4vw, 28px);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding-right: clamp(20px, 3vw, 40px);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 1rem + 2.4vw, 3rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--c-text-2); }
.marquee__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Inventory ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}
.chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border-strong);
  background: transparent;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-2);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { border-color: var(--c-text-2); color: var(--c-text); }
.chip[aria-pressed="true"] { background: var(--c-text); border-color: var(--c-text); color: var(--c-bg); }
.filters__count { margin-left: auto; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--c-muted); letter-spacing: 0.06em; }

.inventory-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .inventory-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .inventory-grid { grid-template-columns: repeat(3, 1fr); } }

.car-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.car-card:hover { border-color: var(--c-border-strong); transform: translateY(-4px); }
.car-card[hidden] { display: none; }

.car-card__visual {
  position: relative;
  aspect-ratio: 2 / 1;
  display: grid;
  place-items: center;
  padding: 0 5%;
  background:
    radial-gradient(70% 60% at 50% 85%, rgba(255,255,255,0.08), transparent 70%),
    linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
  overflow: hidden;
}
.car-card__visual svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  margin-top: 7%;
  transition: transform var(--t-slow) var(--ease-out);
}
.car-card:hover .car-card__visual svg { transform: translateX(3%); }

.badge {
  position: absolute;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--type { left: 16px; background: rgba(11,12,14,0.72); border: 1px solid var(--c-border-strong); color: var(--c-text-2); }
.badge--new { right: 16px; background: var(--c-accent); color: var(--c-on-accent); }

.car-card__body { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); flex: 1; }
.car-card__title { font-family: var(--f-display); font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }
.car-card__sub { font-size: var(--fs-sm); color: var(--c-muted); margin: 4px 0 0; }

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  list-style: none;
  padding: var(--sp-4) 0;
  border-block: 1px solid var(--c-border);
}
.specs li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--c-text-2); min-width: 0; }
.specs .icon { color: var(--c-muted); width: 18px; height: 18px; }

.car-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: auto; }
.price { font-family: var(--f-display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.01em; }
.price small { display: block; font-family: var(--f-body); font-weight: 400; font-size: var(--fs-xs); color: var(--c-muted); letter-spacing: 0; }

.inventory-note { margin-top: var(--sp-6); font-size: var(--fs-sm); color: var(--c-muted); }
.inventory-empty { padding: var(--sp-7); text-align: center; color: var(--c-muted); border: 1px dashed var(--c-border-strong); border-radius: var(--r-lg); }

/* ---------- Standard (bento) ---------- */
.bento {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); }
  .bento__item--hero { grid-column: span 2; grid-row: span 2; }
  .bento__item--wide { grid-column: span 2; }
}
.bento__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  overflow: hidden;
}
.bento__icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(220, 38, 38, 0.12);
  color: var(--c-accent-ink);
  margin-bottom: var(--sp-3);
}
.bento__icon .icon { width: 24px; height: 24px; }
.bento__title { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }
.bento__text { color: var(--c-text-2); margin: 0; }
.bento__item--hero {
  background:
    radial-gradient(80% 70% at 100% 100%, rgba(220, 38, 38, 0.18), transparent 70%),
    var(--c-surface);
}
.checklist {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: var(--sp-5);
}
@media (min-width: 560px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--c-text-2); }
.checklist .icon { color: var(--c-success); width: 18px; height: 18px; }
.big-num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(4rem, 3rem + 5vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--c-text);
  margin: 0 0 var(--sp-4);
}
.big-num sup { font-size: 0.35em; color: var(--c-accent-ink); vertical-align: top; position: relative; top: 0.3em; margin-left: 4px; }

/* ---------- Process ---------- */
.steps {
  display: grid;
  gap: var(--sp-4);
  list-style: none;
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  border-top: 2px solid var(--c-border);
  transition: border-color var(--t-med);
}
.step:hover { border-top-color: var(--c-accent); }
.step__num {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--c-accent-ink);
  margin-bottom: var(--sp-5);
}
.step__title { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; margin-bottom: var(--sp-3); }
.step p { color: var(--c-text-2); margin: 0; font-size: var(--fs-sm); }

/* ---------- Finance calculator ---------- */
.finance {
  display: grid;
  gap: var(--sp-6);
  align-items: start;
}
@media (min-width: 1000px) { .finance { grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-8); } }

.calc {
  display: grid;
  gap: var(--sp-6);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.field-range { display: grid; gap: var(--sp-3); }
.field-range__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.field-range__head label { font-weight: 600; }
.field-range output { font-family: var(--f-mono); font-size: var(--fs-sm); color: var(--c-text); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  background: transparent;
  cursor: pointer;
  --fill: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--c-accent) 0 var(--fill), var(--c-border-strong) var(--fill) 100%);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--c-border-strong); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--c-accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--c-text);
  border: 4px solid var(--c-accent);
  transition: transform var(--t-fast);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-text);
  border: 4px solid var(--c-accent);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255, 180, 171, 0.45); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(255, 180, 171, 0.45); }

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-bg);
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-2);
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.segmented input:checked + label { background: var(--c-text); color: var(--c-bg); }
.segmented input:focus-visible + label { outline: 2px solid var(--c-ring); outline-offset: 2px; }
fieldset.field-range { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field-range legend { font-weight: 600; padding: 0; margin-bottom: var(--sp-3); }

.result {
  position: sticky;
  top: 100px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(220, 38, 38, 0.25), transparent 60%),
    var(--c-surface-2);
  border: 1px solid var(--c-border-strong);
}
.result__label { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
.result__value {
  display: block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 2rem + 3vw, 4.25rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: var(--sp-3) 0 var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.result__value small { font-size: 0.3em; font-weight: 500; color: var(--c-muted); letter-spacing: 0; }
.result dl { display: grid; gap: 12px; margin: var(--sp-5) 0; padding: var(--sp-5) 0; border-block: 1px solid var(--c-border-strong); }
.result dl div { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-sm); }
.result dt { color: var(--c-muted); }
.result dd { margin: 0; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.fineprint { font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.55; margin: var(--sp-4) 0 0; }

/* ---------- Sell banner ---------- */
.sell {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: calc(var(--r-lg) + 8px);
  background:
    radial-gradient(70% 90% at 100% 50%, rgba(233, 216, 180, 0.12), transparent 70%),
    linear-gradient(135deg, #1a1d22, #121418);
  border: 1px solid var(--c-border);
  overflow: hidden;
}
@media (min-width: 960px) { .sell { grid-template-columns: 1fr 1fr; } }
.sell__visual { color: #1f5d3a; }
.sell__visual svg { width: 100%; height: auto; }
.sell__list { list-style: none; display: grid; gap: 12px; margin: var(--sp-5) 0 var(--sp-6); }
.sell__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--c-text-2); }
.sell__list .icon { color: var(--c-sand); margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: var(--sp-7); }
@media (min-width: 1000px) { .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-8); } }
.faq { border-top: 1px solid var(--c-border); }
.faq details { border-bottom: 1px solid var(--c-border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 72px;
  padding: var(--sp-4) 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-border-strong);
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast), border-color var(--t-fast);
}
.faq summary:hover .faq__icon { border-color: var(--c-text-2); }
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--c-accent); border-color: var(--c-accent); }
.faq__body { padding: 0 var(--sp-7) var(--sp-5) 0; color: var(--c-text-2); }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Contact / forms ---------- */
.contact { display: grid; gap: var(--sp-7); }
@media (min-width: 1000px) { .contact { grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-8); } }
.contact__info { display: grid; gap: var(--sp-5); align-content: start; }
.info-list { list-style: none; display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.info-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.info-list .info-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  border: 1px solid var(--c-border-strong);
  color: var(--c-accent-ink);
}
.info-list strong { display: block; font-weight: 600; }
.info-list span, .info-list a { color: var(--c-text-2); font-size: var(--fs-sm); }

.form {
  display: grid;
  gap: var(--sp-5);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field .req { color: var(--c-accent-ink); }
.field .optional { color: var(--c-muted); font-weight: 400; }
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--c-border-strong);
  border-radius: 12px;
  background: var(--c-bg);
  font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder { color: #7d828b; }
.input:hover { border-color: #565c66; }
.input:focus { outline: none; border-color: var(--c-text-2); box-shadow: 0 0 0 3px rgba(255, 180, 171, 0.3); }
textarea.input { min-height: 132px; resize: vertical; }
select.input {
  appearance: none;
  -webkit-appearance: none;
  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='%23a3a8b1' 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;
}
.field__hint { font-size: var(--fs-xs); color: var(--c-muted); }
.field__error { display: none; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--c-error); font-weight: 500; }
.field.is-invalid .input { border-color: var(--c-error); }
.field.is-invalid .field__error { display: flex; }

.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 24px; height: 24px;
  margin: 0;
  border: 1.5px solid var(--c-border-strong);
  border-radius: 7px;
  background: var(--c-bg);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.check input::after {
  content: "";
  width: 12px; height: 7px;
  border: 2px solid var(--c-on-accent);
  border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform var(--t-fast) var(--ease-out);
}
.check input:checked { background: var(--c-accent); border-color: var(--c-accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check a { color: var(--c-text); text-underline-offset: 3px; }
.check.is-invalid input { border-color: var(--c-error); }

.error-summary {
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--c-error);
  border-radius: 12px;
  background: rgba(255, 138, 128, 0.08);
}
.error-summary h3 { font-size: var(--fs-base); margin-bottom: 8px; font-family: var(--f-body); }
.error-summary ul { padding-left: 18px; display: grid; gap: 4px; }
.error-summary a { color: var(--c-error); font-size: var(--fs-sm); }

.form-success {
  display: grid;
  justify-items: start;
  gap: var(--sp-4);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: var(--r-lg);
  background: rgba(74, 222, 128, 0.06);
}
.form-success h3 { font-family: var(--f-display); font-size: var(--fs-h3); }
.form-success p { color: var(--c-text-2); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-2);
}
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--c-border);
}
.footer-cta__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2rem, 1rem + 5vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.footer-grid {
  display: grid;
  gap: var(--sp-6);
  padding-block: var(--sp-7);
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid > :first-child { grid-column: auto; } }
.footer-about { color: var(--c-muted); font-size: var(--fs-sm); max-width: 38ch; margin-top: var(--sp-4); }
.footer-col h2 {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; display: grid; }
.footer-col a, .footer-col button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  text-decoration: none;
  text-align: left;
  transition: color var(--t-fast);
}
.footer-col a:hover, .footer-col button:hover { color: var(--c-text); }
.privacy-icon { width: 30px; height: 14px; flex: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.footer-bottom p { margin: 0; }

/* ---------- Consent banner & dialog ---------- */
.consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 150;
  max-width: 560px;
  padding: var(--sp-5);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  background: rgba(21, 24, 28, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-med);
}
.consent.is-visible { transform: none; opacity: 1; }
.consent[hidden] { display: none; }
.consent__head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-2); }
.consent__head .icon { color: var(--c-sand); }
.consent__title { font-family: var(--f-display); font-size: 1.0625rem; font-weight: 700; }
.consent p { font-size: var(--fs-sm); color: var(--c-text-2); margin-bottom: var(--sp-4); }
.consent p a { color: var(--c-text); text-underline-offset: 3px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.consent__actions .btn { flex: 1 1 auto; }
.consent__gpc { font-size: var(--fs-xs) !important; color: var(--c-success) !important; }

.dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9);
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog[open] { animation: dialog-in var(--t-med) var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) var(--sp-5) 0; }
.dialog__title { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; }
.dialog__close {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-border-strong);
  background: transparent;
}
.dialog__body { padding: var(--sp-4) var(--sp-5); }
.dialog__body > p { font-size: var(--fs-sm); color: var(--c-text-2); }
.dialog__foot { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0 var(--sp-5) var(--sp-5); }
.dialog__foot .btn { flex: 1 1 auto; }

.pref {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px var(--sp-4);
  align-items: center;
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--c-border);
}
.pref__name { font-weight: 600; }
.pref__desc { grid-column: 1 / 2; font-size: var(--fs-xs); color: var(--c-muted); margin: 0; }
.pref__always { font-family: var(--f-mono); font-size: 0.75rem; color: var(--c-success); letter-spacing: 0.04em; text-transform: uppercase; }

.switch { position: relative; display: inline-block; width: 52px; height: 30px; grid-row: 1 / 3; grid-column: 2; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch__track {
  position: absolute; inset: 0;
  border-radius: var(--r-pill);
  background: var(--c-border-strong);
  transition: background-color var(--t-fast);
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 4px; left: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-text);
  transition: transform var(--t-med) var(--ease-out);
}
.switch input:checked + .switch__track { background: var(--c-accent); }
.switch input:checked + .switch__track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--c-ring); outline-offset: 3px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .switch__track { opacity: 0.5; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 160;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--c-text);
  color: var(--c-bg);
  font-size: var(--fs-sm);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med), transform var(--t-med) var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Legal pages ---------- */
.legal-hero {
  padding-top: calc(76px + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--c-border);
  background: radial-gradient(60% 80% at 100% 0%, rgba(220, 38, 38, 0.14), transparent 70%);
}
.legal-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: var(--sp-4) 0;
}
.legal-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); color: var(--c-muted); }

.legal-layout {
  display: grid;
  gap: var(--sp-7);
  padding-block: clamp(48px, 6vw, 88px);
}
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 260px 1fr; gap: var(--sp-8); } }
.legal-layout > * { min-width: 0; }

.toc { align-self: start; }
@media (min-width: 1000px) { .toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; } }
.toc h2 {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}
.toc ol { list-style: none; display: grid; border-left: 1px solid var(--c-border); }
.toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: var(--fs-sm);
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.toc a:hover { color: var(--c-text); }
.toc a.is-active { color: var(--c-text); border-left-color: var(--c-accent); }
@media (max-width: 999px) {
  .toc { padding: var(--sp-5); border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); }
}

.prose { max-width: 76ch; color: var(--c-text-2); font-size: 1.0625rem; line-height: 1.75; }
.prose h2 {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
  margin: var(--sp-8) 0 var(--sp-4);
  scroll-margin-top: 24px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; color: var(--c-text); margin: var(--sp-6) 0 var(--sp-3); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 6px; }
.prose li::marker { color: var(--c-accent-ink); }
.prose a { color: var(--c-text); text-underline-offset: 3px; text-decoration-color: var(--c-accent-ink); }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--c-text); }
.prose .callout {
  padding: var(--sp-5);
  margin: var(--sp-5) 0;
  border: 1px solid var(--c-border-strong);
  border-left: 3px solid var(--c-accent);
  border-radius: 12px;
  background: var(--c-surface);
}
.prose .callout p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: var(--sp-5) 0; border: 1px solid var(--c-border); border-radius: 12px; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.55; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-border); }
.prose th { color: var(--c-text); font-weight: 600; background: var(--c-surface); }
.prose tr:last-child td { border-bottom: 0; }

.choices-panel {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-6);
  margin: var(--sp-5) 0 var(--sp-6);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  color: var(--c-text);
}
.choices-panel .pref:first-of-type { border-top: 0; padding-top: 0; }
.choices-status { font-size: var(--fs-sm); color: var(--c-success); margin: 0; min-height: 1.5em; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px var(--gutter) 64px;
}
.notfound__code { font-family: var(--f-display); font-weight: 900; font-size: clamp(6rem, 20vw, 14rem); line-height: 0.9; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--c-text-2); }
.notfound h1 { font-family: var(--f-display); font-size: var(--fs-h2); margin: var(--sp-4) 0; }
.notfound .car { width: min(520px, 90vw); margin: var(--sp-5) auto; color: #c81e1e; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .hero__title .line > span {
  transform: translateY(105%);
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.js .is-loaded .hero__title .line > span { transform: none; }
.js .hero__car { opacity: 0; translate: -18% 0; transition: opacity 900ms var(--ease-out) 300ms, translate 1200ms var(--ease-out) 300ms; }
.js .is-loaded .hero__car { opacity: 1; translate: 0 0; }

/* ---------- 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;
    transition-delay: 0ms !important;
  }
  .marquee__track { animation: none; }
  .speed-lines { display: none; }
  .js .reveal, .js .hero__title .line > span, .js .hero__car { opacity: 1; transform: none; translate: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-nav, .consent, .toast, .site-footer, .toc, body::before { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose h2, .prose h3, .prose strong, .prose a { color: #000; }
  .legal-hero { padding-top: 0; background: none; }
}

/* ---------- Additions ---------- */
.text-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--c-text);
  text-decoration: underline;
  text-decoration-color: var(--c-accent-ink);
  text-underline-offset: 3px;
  cursor: pointer;
}
.text-btn:hover { text-decoration-thickness: 2px; }

.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]::after {
  width: 10px; height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--c-on-accent);
  transform: scale(0);
}
.check input[type="radio"]:checked::after { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--c-ring); outline-offset: 2px; }

.prose code { font-family: var(--f-mono); font-size: 0.875em; padding: 2px 6px; border-radius: 6px; background: var(--c-surface-2); color: var(--c-text); }
.prose .form { color: var(--c-text); font-size: var(--fs-base); line-height: 1.6; }
.prose .form-success h3 { margin: 0; }

.hero.is-paused *,
.hero.is-paused *::after { animation-play-state: paused !important; }

@media (max-width: 899px) {
  .stat:nth-last-child(-n + 2) { border-bottom: 0; }
}

/* Narrow-screen safety (320px) */
.finance > *, .contact > *, .sell > * { min-width: 0; }
.btn--block { white-space: normal; text-align: center; padding-block: 10px; }
.car-card__foot { flex-wrap: wrap; }
@media (max-width: 359px) {
  .site-header__inner { gap: var(--sp-3); }
  .brand { gap: 8px; font-size: 0.9375rem; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__sale { display: none; }
}
