/* ==========================================================================
   DealerOS — site styles (mobile first)
   Tokens come from the Indian registration plate and the dealership lot:
   plate white, IND strip blue, asphalt, indicator amber.
   Breakpoints: 560 · 640 · 900 · 1100 (min-width only)
   ========================================================================== */

:root {
  --asphalt: #15191e;
  --asphalt-2: #1f252c;
  --ink: #1b2027;
  --muted: #5a6470;
  --paper: #f2f4f6;
  --plate: #ffffff;
  --line: #d6dbe1;
  --line-dark: #2e3640;
  --ind: #1b3e96;
  --ind-deep: #112a6c;
  --ind-tint: #e6ecf8;
  --amber: #f47206;
  --amber-tint: #fff0e3;
  --wa: #1f9e52;
  --red: #d9482b;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1200px;
  --gutter: 16px;
  --radius: 14px;
  --section: 64px;
  --nav-h: 64px;
  --shadow: 0 1px 0 rgba(21, 25, 30, 0.04), 0 14px 34px -14px rgba(21, 25, 30, 0.22);
}

@media (min-width: 640px) {
  :root { --gutter: 28px; --section: 88px; }
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --section: 112px; --nav-h: 72px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 17px; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--asphalt);
  color: var(--plate);
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 72%;
  font-weight: 800;
  letter-spacing: -0.01em;
  word-spacing: 0.08em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 12.5vw, 5.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2.05rem, 8.6vw, 3.8rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; font-stretch: 80%; font-weight: 700; line-height: 1.1; letter-spacing: 0; word-spacing: 0; }

.lede {
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36em;
}
@media (min-width: 900px) { .lede { font-size: 1.22rem; line-height: 1.55; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ind);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--amber); }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ind); color: var(--plate); }
.btn-primary:hover { background: var(--ind-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--plate); }
.btn-amber { background: var(--amber); color: var(--asphalt); }
.btn-amber:hover { background: #ff8a2b; }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.5); color: var(--plate); }
.btn-ghost-light:hover { border-color: var(--plate); background: rgba(255, 255, 255, 0.08); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 220px; }
@media (min-width: 640px) {
  .btn-row .btn { flex: 0 0 auto; }
  .btn { min-height: 50px; }
}

/* ---------- Number plate ---------- */

.plate {
  display: inline-flex;
  align-items: stretch;
  background: var(--plate);
  border: 2px solid var(--asphalt);
  border-radius: 5px;
  overflow: hidden;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px #fff, 0 1px 0 rgba(0, 0, 0, 0.08);
  vertical-align: middle;
}
.plate-ind {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 15px;
  padding-bottom: 3px;
  background: var(--ind);
  color: #fff;
  font-family: var(--font-body);
  font-size: 5.5px;
  font-weight: 700;
}
.plate-no {
  padding: 5px 8px 4px 7px;
  font-family: var(--font-display);
  font-stretch: 78%;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--asphalt);
}
.plate-sm .plate-no { font-size: 0.78rem; padding: 4px 6px 3px 5px; }
.plate-sm .plate-ind { width: 12px; }
.plate-lg { border-width: 3px; border-radius: 8px; }
.plate-lg .plate-ind { width: 22px; font-size: 8px; padding-bottom: 5px; }
.plate-lg .plate-no { font-size: 1.5rem; padding: 8px 13px 6px 11px; }
@media (min-width: 640px) { .plate-lg .plate-no { font-size: 1.9rem; } }

/* ---------- Car art ---------- */

.car-art { width: 100%; }
.car-art .car-svg { width: 100%; height: auto; overflow: visible; }
.wheel { transform-box: fill-box; transform-origin: center; }
.ind-light { fill: #b37d00; }
.headlamp { fill: #dfe6f0; transition: fill 0.4s ease; }
.beam { opacity: 0; transition: opacity 0.6s ease; }
.lights-on .headlamp { fill: #fffbe6; }
.lights-on .beam { opacity: 1; }
.blink .ind-light { animation: blink 0.55s steps(1, end) 2; }
@keyframes blink {
  0% { fill: #ffc21a; filter: drop-shadow(0 0 4px #ffc21a); }
  50% { fill: #b37d00; filter: none; }
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 244, 246, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
}

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; width: auto; height: 30px; }
@media (min-width: 900px) { .logo img { height: 36px; } }
.site-footer .logo img { height: 58px; }

/* mobile: dropdown panel */
.nav-links {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(21, 25, 30, 0.3);
}
.nav-links.is-open { display: flex; }
.nav-links a {
  position: relative;
  padding: 15px 0;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--amber);
  transform: translateY(-50%);
}
.nav-links .mobile-cta {
  display: flex;
  margin-top: 20px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  color: var(--plate);
}

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { display: none; }

.nav-toggle {
  display: block;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-cta .btn { display: inline-flex; min-height: 42px; padding: 0 18px; font-size: 0.95rem; border-radius: 8px; }
  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-links a { padding: 8px 14px; font-size: 0.95rem; border: 0; }
  .nav-links a[aria-current="page"]::after {
    top: auto;
    left: 14px;
    right: 14px;
    bottom: 2px;
    width: auto;
    height: 3px;
    border-radius: 0;
    transform: none;
  }
  .nav-links .mobile-cta { display: none; }
}

/* ---------- Sticky mobile CTA ---------- */

.m-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  transform: translateY(140%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.m-cta.is-visible { transform: none; }
.m-cta .btn { flex: 1; box-shadow: 0 12px 30px -8px rgba(17, 42, 108, 0.55); }
@media (min-width: 900px) { .m-cta { display: none; } }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * 0.6) 0; }
.section-white { background: var(--plate); }
.section-dark { background: var(--asphalt); color: #e8ecf0; }
.section-dark .lede { color: #a7b0bb; }
.section-dark .eyebrow { color: var(--amber); }

.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head .lede { margin-top: 18px; margin-bottom: 0; }
@media (min-width: 900px) { .section-head { margin-bottom: 60px; } }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 88px); }
  .split-5-7 { grid-template-columns: 5fr 7fr; }
  .split-7-5 { grid-template-columns: 7fr 5fr; }
}
/* On mobile, text comes before its visual */
.split > .visual-first { order: 2; }
@media (min-width: 900px) { .split > .visual-first { order: 0; } }

/* ---------- Hero ---------- */

.hero { padding: 24px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 .accent { color: var(--ind); }
.hero .lede { margin: 20px 0 26px; }

.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0 calc(-1 * var(--gutter));
  background:
    radial-gradient(60% 55% at 50% 18%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #e9ecf0 0%, #dfe3e8 62%, #d3d8de 62.2%, #e6e9ed 100%);
  overflow: hidden;
}
.stage-floor {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: 0;
  height: 38%;
  background:
    repeating-linear-gradient(90deg, rgba(21, 25, 30, 0.07) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(21, 25, 30, 0.06) 0 1px, transparent 1px 40px);
  transform: perspective(260px) rotateX(58deg);
  transform-origin: 50% 100%;
}
.stage-light {
  position: absolute;
  left: 50%;
  top: -10%;
  width: 80%;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.hero-car {
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: 76%;
  max-width: 520px;
  transform: translateX(-50%);
  animation: car-settle 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes car-settle {
  from { opacity: 0; transform: translate(-50%, 18px) scale(0.96); }
  to { opacity: 1; transform: translateX(-50%); }
}

.lead-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 45%;
  padding: 9px 11px;
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 24px -10px rgba(21, 25, 30, 0.35);
  font-size: 0.78rem;
  line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}
.lead-chip .src { flex: none; }
.lead-chip p { margin: 0; color: var(--ink); }
.lead-chip small { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 0.64rem; color: var(--muted); }
.lead-chip.c1 { top: 4%; left: 3%; }
.lead-chip.c2 { top: 4%; right: 3%; animation-delay: -2s; }
.lead-chip.c3 { display: none; top: 5%; right: 4%; animation-delay: -4s; }
.lead-chip.is-pop { animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3), float 6s ease-in-out 0.5s infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.85) translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 640px) {
  .hero-stage { margin: 0; border-radius: 22px; aspect-ratio: 1 / 0.8; }
  .hero-car { width: 70%; }
  .lead-chip { flex-direction: row; gap: 8px; width: auto; max-width: 44%; font-size: 0.82rem; }
  .lead-chip.c1 { top: 5%; left: 3%; }
  .lead-chip.c2 { top: 34%; right: 3%; }
  .lead-chip.c3 { display: flex; top: 5%; right: 3%; }
}
@media (min-width: 1000px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
  .hero h1 { font-size: clamp(3.2rem, 4.8vw, 5.2rem); }
  .hero-stage { aspect-ratio: 1 / 0.9; }
}

/* ---------- The lot (parked cars strip) ---------- */

.lot {
  position: relative;
  margin-top: 40px;
  padding: 18px 0 22px;
  background: var(--asphalt);
  overflow: hidden;
}
.lot::before {
  /* kerb stripe */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 28px, var(--asphalt-2) 28px 56px);
}
.lot-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 10px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8995a3;
}
.lot-head strong { color: var(--amber); font-weight: 500; }
.lot-track {
  display: flex;
  width: max-content;
  animation: lot-scroll 70s linear infinite;
}
.lot:hover .lot-track { animation-play-state: paused; }
@keyframes lot-scroll { to { transform: translateX(-50%); } }

.bay {
  width: 200px;
  padding: 18px 16px 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.78);
  color: #e8ecf0;
}
.bay .car-art { margin-bottom: 12px; }
.bay-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bay-model { margin-top: 8px; font-size: 0.86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bay-days { font-family: var(--font-mono); font-size: 0.7rem; color: #8995a3; }
@media (min-width: 900px) { .bay { width: 250px; padding: 22px 22px 8px; } }

/* ---------- Panel (UI mock chrome) ---------- */

.panel {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}
.panel-bar strong { color: var(--ink); font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 158, 82, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(31, 158, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 158, 82, 0); }
}

/* Lead inbox */
.inbox { list-style: none; margin: 0; padding: 0; }
.lead {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--plate);
}
.lead:last-child { border-bottom: 0; }
.lead-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lead-name { font-weight: 600; }
.lead-msg {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lead-time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); align-self: center; }
.lead-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lead-auto { font-family: var(--font-mono); font-size: 0.7rem; color: var(--wa); }
.lead.is-new {
  animation: lead-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: linear-gradient(90deg, var(--amber-tint), var(--plate) 70%);
}
@keyframes lead-in {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

.src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.src::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--muted); }
.src-carwale::before { background: var(--ind); }
.src-olx::before { background: var(--amber); }
.src-wa::before { background: var(--wa); border-radius: 50%; }
.src-walkin::before { background: var(--asphalt); }
.src-web::before { background: #7b8794; border-radius: 50%; }

.src-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.src-list .src { padding: 7px 11px; font-size: 0.78rem; background: var(--plate); border: 1px solid var(--line); }

/* Speedometer */
.gauge-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.gauge { width: 150px; flex: none; }
.gauge-svg { width: 100%; height: auto; }
.gauge-fill { transition: stroke-dashoffset 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gauge-needle { transition: transform 1.2s cubic-bezier(0.3, 1.4, 0.4, 1); }
.gauge-read strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 72%;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
}
.gauge-read span { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }

/* ---------- Flow (sources → DealerOS → modules) ---------- */

.flow { display: grid; gap: 0; }
.flow-col { display: grid; gap: 8px; }
.flow-col h3 {
  font-family: var(--font-mono);
  font-stretch: 100%;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  word-spacing: 0;
  color: #8995a3;
  margin-bottom: 6px;
}
.flow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: var(--asphalt-2);
  color: #e8ecf0;
  font-weight: 500;
}
.flow-item .mono { font-size: 0.7rem; color: #8995a3; }

.flow-core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 56px 0;
  padding: 20px;
  border-radius: 16px;
  background: var(--ind);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(27, 62, 150, 0.2), 0 0 0 18px rgba(27, 62, 150, 0.08);
}
.flow-core .steer { width: 44px; height: 44px; color: var(--amber); flex: none; }
.flow-core .flow-logo { display: block; width: 160px; height: auto; margin: 0 auto 6px; }
.flow-core small { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: #c9d4f0; }
.flow-core::before,
.flow-core::after {
  /* dashed lane markings, vertical on mobile */
  content: "";
  position: absolute;
  left: 50%;
  width: 3px;
  height: 36px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, var(--amber) 0 7px, transparent 7px 12px);
}
.flow-core::before { bottom: calc(100% + 18px); }
.flow-core::after { top: calc(100% + 18px); }

@media (min-width: 900px) {
  .flow { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .flow-core {
    flex-direction: column;
    gap: 6px;
    margin: 0 clamp(28px, 4vw, 56px);
    width: clamp(160px, 16vw, 200px);
    aspect-ratio: 1;
    text-align: center;
  }
  .flow-core::before,
  .flow-core::after {
    top: 50%;
    bottom: auto;
    left: auto;
    width: clamp(20px, 3vw, 44px);
    height: 3px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(90deg, var(--amber) 0 7px, transparent 7px 12px);
  }
  .flow-core::before { right: calc(100% + 12px); }
  .flow-core::after { left: calc(100% + 12px); }
}

/* ---------- Modules (swipe cards on mobile) ---------- */

.modules {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 12px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.modules::-webkit-scrollbar { display: none; }
.module {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.module-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--ind-tint);
  color: var(--ind);
}
.module-icon svg { width: 26px; height: 26px; }
.module h3 { margin-bottom: 10px; }
.module p { flex: 1; color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; }
.module a { font-weight: 600; font-size: 0.95rem; color: var(--ind); text-decoration: none; }
.module a:hover { text-decoration: underline; text-underline-offset: 3px; }
.swipe-hint { margin-top: 4px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }

@media (min-width: 640px) { .modules { grid-auto-columns: 46%; } }
@media (min-width: 900px) {
  .modules {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    overflow: visible;
    gap: 16px;
  }
  .swipe-hint { display: none; }
}
@media (min-width: 1100px) { .modules { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Vehicle card (one car, every listing) ---------- */

.vehicle-art {
  padding: 22px 22px 6px;
  background: linear-gradient(180deg, #eef1f4 0%, #f7f8fa 70%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.vehicle-art .car-art { max-width: 420px; margin: 0 auto; }
.vehicle-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line);
}
.vehicle-model { font-family: var(--font-display); font-stretch: 80%; font-weight: 700; font-size: 1.25rem; line-height: 1.1; margin-top: 10px; }
.vehicle-sub { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.vehicle-price { font-family: var(--font-display); font-stretch: 80%; font-weight: 800; font-size: 1.6rem; }

.listing-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.listing-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 14px 9px;
  border-bottom: 1px solid var(--line);
}
.listing-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.listing-table tr:last-child td { border-bottom: 0; }
.listing-table .num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.listing-table th.num { text-align: right; }
.listing-table .col-bar { display: none; }
@media (min-width: 560px) {
  .listing-table .col-bar { display: table-cell; }
  .listing-table th, .listing-table td { padding-left: 20px; padding-right: 20px; }
}
.bar { position: relative; height: 6px; min-width: 60px; border-radius: 3px; background: var(--paper); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); background: var(--ind); border-radius: 3px; }
.bar.amber i { background: var(--amber); }
.bar.green i { background: var(--wa); }
.bar.grey i { background: #8995a3; }

.table-scroll { overflow-x: auto; }

/* ---------- Checklist ---------- */

.checks { display: grid; gap: 12px; margin-top: 24px; }
.checks li { position: relative; padding-left: 32px; line-height: 1.5; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--ind-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.2l3 3 6-6.4' fill='none' stroke='%231b3e96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.section-dark .checks li::before {
  background-color: rgba(244, 114, 6, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.2l3 3 6-6.4' fill='none' stroke='%23f47206' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Phone + WhatsApp chat ---------- */

.phone {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 40px;
  background: #0b0e11;
  box-shadow: 0 0 0 2px #2e3640, 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 84px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: #0b0e11;
}
.phone-screen { border-radius: 31px; overflow: hidden; background: #0e1a20; }
.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 50px 16px 12px;
  background: #1a2a30;
  color: #e8ecf0;
}
.phone-top .avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--wa);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 75%;
}
.phone-top strong { display: block; font-size: 0.92rem; }
.phone-top small { font-family: var(--font-mono); font-size: 0.66rem; color: #8fb3a0; }

.chat {
  display: grid;
  gap: 12px;
  padding: 16px 14px 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.025) 0 2px, transparent 3px) 0 0 / 22px 22px,
    #0e1a20;
}
.bubble {
  max-width: 90%;
  padding: 9px 12px 8px;
  border-radius: 4px 12px 12px 12px;
  background: #1f2c33;
  color: #e8ecf0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.bubble .who { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: #7fa396; margin-bottom: 3px; }
.verdict {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 2px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.verdict .tag { padding: 3px 8px; border-radius: 4px; font-weight: 500; }
.verdict.is-lead .tag { background: rgba(31, 158, 82, 0.2); color: #52d18a; }
.verdict.not-lead .tag { background: rgba(137, 149, 163, 0.18); color: #a7b0bb; }
.verdict .why { color: #8995a3; }

/* ---------- Vision ---------- */

.vision-lines {
  font-family: var(--font-display);
  font-stretch: 72%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 11vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  word-spacing: 0.08em;
  margin: 0;
}
.vision-lines span { display: block; text-wrap: balance; }
.vision-lines .dim { color: #56606c; }
.vision-lines .hl { color: var(--amber); }

/* ---------- Page header with road ---------- */

.page-head { padding: 36px 0 0; overflow: hidden; }
.page-head h1 { font-size: clamp(2.5rem, 11vw, 5.4rem); max-width: 14ch; }
.page-head .lede { margin-top: 20px; margin-bottom: 0; }

.page-road { position: relative; height: 128px; margin-top: 28px; }
.page-road .road {
  position: absolute;
  inset: auto 0 0 0;
  height: 34px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.85) 50%, transparent 50%) 0 50% / 44px 3px repeat-x,
    var(--asphalt);
}
.page-road .road::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, #fff 0 22px, var(--red) 22px 44px);
}
.page-road .car-art {
  position: absolute;
  left: var(--gutter);
  bottom: 30px;
  width: 250px;
}
@media (min-width: 900px) {
  .page-head { padding-top: 72px; }
  .page-road { height: 170px; margin-top: 12px; }
  .page-road .car-art { left: auto; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); width: 380px; }
}

.drive-in { animation: drive-in 1.9s cubic-bezier(0.15, 0.7, 0.25, 1) 0.15s both; }
.drive-in .wheel { animation: roll 1.9s cubic-bezier(0.15, 0.7, 0.25, 1) 0.15s both; }
@keyframes drive-in { from { transform: translateX(-120vw); } to { transform: none; } }
@keyframes roll { from { transform: rotate(-1800deg); } to { transform: none; } }

.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.subnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none;
  padding: 14px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-bottom-color: var(--amber); }

/* ---------- Feature blocks (platform page) ---------- */

.feature { scroll-margin-top: calc(var(--nav-h) + 56px); }
.feature + .feature { border-top: 1px solid var(--line); }
.feature h2 { font-size: clamp(2rem, 8vw, 3.2rem); margin-bottom: 18px; }
.feature .lede { margin-bottom: 0; }

.car-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.car-card {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(21, 25, 30, 0.04);
}
.car-card .art { padding: 14px 10px 4px; background: linear-gradient(180deg, #eef1f4, #fafbfc); }
.car-card .body { padding: 10px 12px 12px; }
.car-card .model { margin: 8px 0 2px; font-weight: 600; font-size: 0.88rem; line-height: 1.25; }
.car-card .meta { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }
.car-card .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.car-card .price { font-family: var(--font-display); font-stretch: 80%; font-weight: 800; font-size: 1.15rem; }
@media (min-width: 640px) {
  .car-grid { gap: 14px; }
  .car-card .body { padding: 12px 14px 14px; }
}

.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 14px 9px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }

.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.7rem; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.in-stock::before { background: var(--wa); }
.status.reserved::before { background: var(--amber); }
.status.sold::before { background: var(--ind); }
.status.hot::before { background: var(--red); }

.pipeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 58%;
  gap: 10px;
  padding: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.stage { scroll-snap-align: start; }
@media (min-width: 560px) { .pipeline { grid-auto-columns: 40%; } }
@media (min-width: 900px) { .pipeline { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.stage h4 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-mini {
  padding: 11px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 0.84rem;
  line-height: 1.35;
}
.card-mini strong { display: block; margin-bottom: 6px; }
.card-mini .src { background: var(--plate); }

.ledger { padding: 18px 16px; display: grid; gap: 12px; }
.ledger-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.ledger-row .mono { font-size: 0.86rem; white-space: nowrap; }
.ledger-row.total { padding-top: 12px; border-top: 2px solid var(--ink); font-weight: 700; }
.ledger-row .neg { color: #b23a22; }
@media (min-width: 640px) { .ledger { padding: 20px 22px; } }

.timeline { padding: 18px 16px; }
.timeline li { position: relative; padding: 0 0 18px 26px; font-size: 0.92rem; line-height: 1.45; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ind);
}
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline .mono { display: block; font-size: 0.7rem; color: var(--muted); margin-bottom: 2px; }

/* ---------- Steps (real sequences only) — vertical on mobile ---------- */

.steps { counter-reset: step; display: grid; }
.step { position: relative; padding: 0 0 28px 50px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--asphalt);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}
.step::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 38px;
  bottom: 4px;
  width: 2px;
  background: repeating-linear-gradient(180deg, #56606c 0 6px, transparent 6px 11px);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.3rem; margin-bottom: 6px; }
.step p { color: #a7b0bb; font-size: 0.95rem; margin: 0; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 54px 24px 0 0; }
  .step::before { top: 0; }
  .step::after { left: 44px; right: 10px; top: 16px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, #56606c 0 6px, transparent 6px 11px); }
  .step:last-child::after { display: none; }
}

/* ---------- Integrations ---------- */

.badge {
  display: inline-block;
  flex: none;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--amber-tint);
  color: #8a3b00;
}

.integrations { display: grid; gap: 12px; }
@media (min-width: 640px) { .integrations { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1100px) { .integrations { grid-template-columns: repeat(4, 1fr); } }
.integration { padding: 22px 20px; background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); }
.integration-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.integration .module-icon { margin-bottom: 14px; }
.integration h3 { font-size: 1.35rem; }
.integration p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- About ---------- */

.principles { display: grid; border-top: 2px solid var(--ink); }
@media (min-width: 760px) { .principles { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.principle { padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.principle .module-icon { margin-bottom: 14px; }
.principle h3 { margin-bottom: 10px; font-size: 1.5rem; }
.principle p { color: var(--muted); margin: 0; }

.before-after { display: grid; gap: 12px; }
@media (min-width: 760px) { .before-after { grid-template-columns: 1fr 1fr; gap: 16px; } }
.ba-col { padding: 24px 20px; border-radius: var(--radius); }
.ba-col h3 {
  font-family: var(--font-mono);
  font-stretch: 100%;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  word-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ba-col li { padding: 12px 0; border-top: 1px solid; font-size: 0.96rem; line-height: 1.45; }
.ba-before { background: var(--plate); border: 1px solid var(--line); }
.ba-before h3 { color: var(--muted); }
.ba-before li { border-color: var(--line); color: var(--muted); }
.ba-after { background: var(--ind); color: #fff; }
.ba-after h3 { color: var(--amber); }
.ba-after li { border-color: rgba(255, 255, 255, 0.2); }

/* ---------- Contact form ---------- */

.form { display: grid; gap: 18px; padding: 22px 18px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; gap: 20px; padding: 36px; } }
.field { display: grid; gap: 8px; }
.field.full,
.form-foot { grid-column: 1 / -1; }
.field label,
.field legend { font-size: 0.92rem; font-weight: 600; padding: 0; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--plate);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ind); box-shadow: 0 0 0 3px rgba(27, 62, 150, 0.15); }
.field.has-error input,
.field.has-error select { border-color: #b23a22; }
.field .error { display: none; font-size: 0.85rem; color: #b23a22; }
.field.has-error .error { display: block; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.chip input:checked + span { background: var(--ind); border-color: var(--ind); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.form-foot { display: grid; gap: 12px; }
.form-foot .btn { width: 100%; }
.form-foot small { color: var(--muted); }
@media (min-width: 640px) {
  .form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
  .form-foot .btn { width: auto; }
}

.form-success { display: none; padding: 28px 20px 32px; }
.form-success.is-visible { display: block; }
.form-success .car-art { max-width: 320px; margin-bottom: 18px; }
.form-success h2 { font-size: clamp(2rem, 8vw, 3rem); margin: 0 0 14px; }
@media (min-width: 640px) { .form-success { padding: 44px; } }

.aside-list { display: grid; margin-top: 28px; border-top: 1px solid var(--line); }
.aside-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.aside-list strong { display: block; margin-bottom: 4px; }
.aside-list span { color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band (tyre tread) ---------- */

.cta-band {
  position: relative;
  background: var(--ind);
  color: #fff;
  padding: 64px 0;
  overflow: hidden;
}
.cta-band::before {
  /* tyre track running across the band */
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  top: 50%;
  height: 120px;
  transform: translateY(-50%) rotate(-6deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='120'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='9' stroke-linecap='round'%3E%3Cpath d='M6 10 L22 30 L38 10'/%3E%3Cpath d='M6 50 L22 70 L38 50'/%3E%3Cpath d='M6 90 L22 110 L38 90'/%3E%3C/g%3E%3C/svg%3E") repeat-x;
  pointer-events: none;
}
.cta-band .inner { position: relative; display: grid; gap: 28px; }
.cta-band h2 { max-width: 13ch; }
.cta-band p { color: #c9d4f0; max-width: 30em; margin: 16px 0 0; font-size: 1.05rem; }
@media (min-width: 900px) {
  .cta-band { padding: 104px 0; }
  .cta-band .inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--asphalt); color: #a7b0bb; padding: 56px 0 104px; font-size: 0.95rem; }
@media (min-width: 900px) { .site-footer { padding: 72px 0 32px; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; padding-bottom: 56px; }
  .footer-grid > :first-child { grid-column: auto; }
}
.footer-tagline { margin-top: 16px; max-width: 26em; }
.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f7a87;
}
.footer-col li + li { margin-top: 4px; }
.footer-col a { display: inline-block; padding: 6px 0; text-decoration: none; color: #d5dbe2; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #6f7a87;
}

/* ---------- Page transitions (see transit.js) ---------- */

.rev-lamp { opacity: 0; }
.reversing .rev-lamp { opacity: 1; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)); }
.lamps-on .side-headlamp { fill: #fffbe6; filter: drop-shadow(0 0 4px #fff6c8) drop-shadow(0 0 12px #ffe89a); }
.car-rear .tail-lamp { fill: #a3261c; }
.brake .car-rear .tail-lamp { fill: #ff3b24; filter: drop-shadow(0 0 6px #ff3b24) drop-shadow(0 0 14px rgba(255, 59, 36, 0.8)); }
.car-art .car-body { transform-box: fill-box; }
.hero-car.no-settle { animation: none; }

/* About: the parked SUV faces into the page so its headlights can light it */
.page-road--flip .car-art { left: auto; right: var(--gutter); }
.page-road--flip .car-svg { transform: scaleX(-1); }
@media (min-width: 900px) {
  .page-road--flip .car-art { right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }
}

.transit { position: fixed; inset: 0; z-index: 1000; overflow: hidden; pointer-events: none; }
.transit.is-active { pointer-events: auto; }
.t-stage { position: absolute; inset: 0; }
.t-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-car { position: absolute; left: 0; top: 0; will-change: transform; }
.t-top { offset-anchor: 50% 50%; offset-rotate: auto; }
.t-mark { position: absolute; width: 1px; height: 1px; }
.t-skids { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-skids path { fill: none; stroke: rgba(21, 25, 30, 0.55); stroke-linecap: round; stroke-linejoin: round; }

/* The covers. Each one is painted twice: by the overlay on the page being left, and by
   html::after on the page being opened (before any script runs), so the hand-off is invisible. */
.t-cover { position: absolute; inset: 0; opacity: 0; }
html.is-arriving::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  animation: cover-failsafe 0.3s ease 4s forwards;
}
@keyframes cover-failsafe { to { opacity: 0; visibility: hidden; } }

.k-drift,
html[data-transit="drift"]::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 50%, transparent 50%) 0 66% / 60px 3px repeat-x,
    radial-gradient(120% 90% at 50% 40%, #232a32, #15191e 60%, #0e1115);
}
.k-flash,
html[data-transit="flash"]::after { background: #fff; }
.k-night,
html[data-transit="night"]::after { background: radial-gradient(130% 100% at 50% 110%, #0c1119, #04060a 62%); }
.k-smoke,
html[data-transit="smoke"]::after {
  background:
    radial-gradient(40% 35% at 25% 35%, rgba(240, 242, 245, 0.8), transparent 70%),
    radial-gradient(45% 40% at 75% 65%, rgba(170, 177, 186, 0.5), transparent 70%),
    radial-gradient(35% 30% at 60% 20%, rgba(255, 255, 255, 0.55), transparent 70%),
    #cdd2d8;
}

.t-label,
html[data-arriving]::before {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 1001;
  transform: translate(-50%, -50%);
  padding-top: 20px;
  background: linear-gradient(var(--amber), var(--amber)) 50% 0 / 48px 4px no-repeat;
  color: #fff;
  font-family: var(--font-display);
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(2.6rem, 10vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  word-spacing: 0.14em;
  white-space: nowrap;
}
html[data-arriving]::before { content: attr(data-arriving); position: fixed; animation: cover-failsafe 0.3s ease 4s forwards; }
html[data-arriving=""]::before { content: none; }

/* Indicators (unlock flash) */
.ind-on .ind-light { fill: #ffb21f; filter: drop-shadow(0 0 4px #ffb21f) drop-shadow(0 0 10px rgba(255, 170, 30, 0.9)); }
.t-glow.amber { opacity: 0; background: radial-gradient(circle, #fff6df 0 6%, rgba(255, 176, 32, 0.85) 16%, rgba(255, 150, 20, 0.3) 40%, transparent 70%); }
.t-glow.red { background: radial-gradient(circle, #fff1ee 0 6%, rgba(255, 60, 36, 0.85) 16%, rgba(255, 40, 20, 0.3) 40%, transparent 70%); }
.tail-on .side-taillamp { filter: drop-shadow(0 0 5px #ff3b24) drop-shadow(0 0 14px rgba(255, 40, 20, 0.9)); }
.t-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }

/* Key fob */
.t-fob { position: absolute; left: 50%; bottom: 9%; width: clamp(64px, 9vw, 92px); transform: translate(-50%, 140%); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5)); }
.t-fob svg { position: relative; width: 100%; height: auto; }
.fob-wave { position: absolute; left: 50%; top: 58%; width: 150%; aspect-ratio: 1; margin: -75% 0 0 -75%; border: 3px solid rgba(244, 114, 6, 0.9); border-radius: 50%; opacity: 0; }

/* Contact: the car carried across the page change (painted before the new page's scripts run) */
html.has-handoff-car[data-arriving]::before {
  content: "";
  position: fixed;
  left: var(--hc-x);
  top: var(--hc-y);
  width: var(--hc-w);
  height: var(--hc-h);
  padding: 0;
  transform: none;
  background: var(--hc-img) center / 100% 100% no-repeat;
}

/* Opening intro: the logo */
html[data-transit="intro"]::after,
.k-intro { background: var(--paper); }
.i-logo { position: absolute; transform-origin: 0 0; will-change: transform; }
.i-logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.i-mark { clip-path: inset(0 73.5% 0 0); }
.i-word { clip-path: inset(0 100% 0 26.5%); }
.i-streak { position: absolute; left: -18%; height: 5%; border-radius: 3px; background: linear-gradient(90deg, rgba(244, 114, 6, 0), var(--amber)); opacity: 0; }
.i-streak:nth-child(1) { top: 36%; width: 30%; }
.i-streak:nth-child(2) { top: 48%; width: 38%; left: -24%; }
.i-streak:nth-child(3) { top: 60%; width: 26%; }
.i-tag {
  position: absolute;
  left: 0;
  right: 0;
  top: 118%;
  margin: 0;
  opacity: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.6vw, 0.86rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* Chase cam */
.t-chase { position: absolute; inset: 0; overflow: hidden; perspective: 420px; perspective-origin: 50% 42%; }
.t-chase .sky { position: absolute; inset: 0 0 58% 0; background: linear-gradient(#0b1016, #1f2934 62%, #4b5a6d); }
.t-chase .sky i { position: absolute; left: 50%; bottom: -60px; width: 70%; height: 120px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 170, 90, 0.55), transparent); }
.t-chase .ground { position: absolute; inset: 42% 0 0 0; background: linear-gradient(#20262d, #2b323b); }
.t-chase .road3d {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1100px, 130vw);
  height: 900vh;
  margin-left: calc(min(1100px, 130vw) / -2);
  transform-origin: 50% 100%;
  transform: rotateX(86deg);
  overflow: hidden;
  background: linear-gradient(90deg, #eef1f4 0 1.4%, transparent 1.4% 98.6%, #eef1f4 98.6%), #353c45;
}
.t-chase .dashes { position: absolute; left: 50%; top: -160px; bottom: 0; width: 1.6%; transform: translateX(-50%); background: repeating-linear-gradient(180deg, var(--amber) 0 80px, transparent 80px 160px); }
.t-chase .t-car { transform-origin: 50% 100%; }
.t-chase .t-canvas { z-index: 1; }
.t-chase .t-car, .t-wall { z-index: 2; }
.t-wall {
  position: absolute;
  transform-origin: 50% 100%;
  border-radius: 10px 10px 0 0;
  background:
    repeating-linear-gradient(-45deg, var(--amber) 0 44px, #15191e 44px 88px) 0 78% / 100% 18% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 calc(16.66% - 3px), rgba(0, 0, 0, 0.28) calc(16.66% - 3px) 16.66%),
    linear-gradient(#c6ccd2, #8e959d);
  box-shadow: inset 0 10px 0 #dfe3e7, 0 30px 50px rgba(0, 0, 0, 0.45);
}
.t-wall-sign { position: absolute; left: 50%; top: 16%; width: 52%; transform: translateX(-50%); padding: 3% 4%; border-radius: 10px; background: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15); }
.t-wall-sign img { width: 100%; height: auto; }

/* Driver's seat */
.t-vignette { position: absolute; inset: 0; background: radial-gradient(90% 80% at 50% 44%, transparent 42%, rgba(5, 7, 10, 0.75)); }
.t-cockpit > * { position: absolute; }
.ck-roof { left: 0; right: 0; top: 0; height: 9vh; background: linear-gradient(#262c33, #0e1114); border-radius: 0 0 50% 50% / 0 0 55% 55%; }
.ck-mirror { position: absolute; left: 50%; top: 88%; width: min(220px, 34vw); transform: translateX(-50%); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4)); }
.ck-pillar { top: 0; bottom: 0; width: 15vw; background: linear-gradient(90deg, #07090b, #20262d); }
.ck-pillar.l { left: 0; clip-path: polygon(0 0, 100% 0, 20% 100%, 0 100%); }
.ck-pillar.r { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 80% 100%); background: linear-gradient(270deg, #07090b, #20262d); }
.ck-hood {
  left: -10%;
  right: -10%;
  bottom: 21vh;
  height: 17vh;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(90% 160% at 50% 120%, #ffffff 30%, #e3e8ed 60%, #aab3bd);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.8);
}
.ck-dash {
  left: 0;
  right: 0;
  bottom: 0;
  height: 25vh;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  background: linear-gradient(#2b3138, #15191d 22%, #0c0f12);
  box-shadow: inset 0 2px 0 #3d454e;
}
.ck-dash::before {
  content: "";
  position: absolute;
  inset: 12px 4% auto;
  height: 40%;
  border-top: 2px dashed rgba(244, 114, 6, 0.35);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
}
.ck-vent { position: absolute; top: 34%; width: 12vw; max-width: 130px; height: 26px; border-radius: 8px; background: repeating-linear-gradient(180deg, #2c333a 0 3px, #0b0d10 3px 7px); }
.ck-vent.l { left: 6%; }
.ck-vent.r { right: 6%; }
.ck-screen {
  position: absolute;
  left: 22%;
  top: 22%;
  width: min(230px, 22vw);
  aspect-ratio: 16 / 9;
  padding: 10px;
  border: 3px solid #07090b;
  border-radius: 10px;
  background: linear-gradient(135deg, #10233f, #0b1320);
  box-shadow: 0 0 24px rgba(27, 62, 150, 0.45);
}
.ck-screen img { width: 70%; height: auto; }
.ck-screen span, .ck-screen b { display: block; height: 5px; margin-top: 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); }
.ck-screen b { width: 60%; background: var(--amber); }
.ck-cluster { right: 16%; bottom: 20vh; width: min(360px, 44vw); }
.ck-needle { transform-box: view-box; }
.ck-needle.spd { transform-origin: 130px 92px; }
.ck-needle.rpm { transform-origin: 310px 92px; }
.ck-n { font-family: var(--font-mono); font-size: 10px; fill: #aab3bd; }
.ck-spd, .ck-gear { font-family: var(--font-display); font-stretch: 72%; font-weight: 800; font-size: 22px; fill: #fff; }
.ck-gear { fill: var(--amber); }
.ck-u { font-family: var(--font-mono); font-size: 8px; fill: #7c8691; }
.ck-wheel { right: 8%; bottom: -24vh; width: min(560px, 58vw); transform-origin: 50% 50%; filter: drop-shadow(0 -10px 20px rgba(0, 0, 0, 0.45)); }
.ck-logo { font-family: var(--font-display); font-stretch: 72%; font-weight: 800; font-size: 30px; fill: var(--amber); }
@media (max-width: 700px) {
  .ck-screen { display: none; }
  .ck-cluster { right: 50%; margin-right: -38vw; width: 76vw; bottom: 22vh; }
  .ck-wheel { right: 50%; margin-right: -46vw; width: 92vw; bottom: -14vh; }
  .ck-vent { display: none; }
}

/* Headlights */
.t-glow {
  position: absolute;
  left: -60px;
  top: -60px;
  width: 120px;
  height: 120px;
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fffef4 0 8%, rgba(255, 244, 196, 0.8) 18%, rgba(255, 230, 150, 0.25) 42%, transparent 70%);
  mix-blend-mode: screen;
}
.t-beam { position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .lot { overflow-x: auto; }
  .lot-track { animation: none; }
}

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.muted { color: var(--muted); }
.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;
}
