/* ═══════════════════════════════════════════════════════════
   JARVIS — jarvis.delivery
   Design system: dispatch-console dark, one delivery threading
   the page. If the platform could emit the string, it's mono.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #15181d;
  --bg-2: #181c22;
  --bg-3: #1d222a;
  --line: #2b3038;
  --green: #35d07f;
  --green-dim: rgba(53, 208, 127, 0.14);
  --light: #f4f4f4;
  --slate: #8a93a0;
  --slate-dim: #7a8492;
  --red: #ff8a80;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --rail-h: 30px;
  --header-h: 64px;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--light);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

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

::selection { background: var(--green); color: var(--bg); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.drivers :focus-visible { outline-color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
svg { display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
[id] { scroll-margin-top: 110px; }
.wrap-narrow { max-width: 860px; }

.br-d { display: none; }
@media (min-width: 768px) { .br-d { display: inline; } }

/* ─── Reveal gating: only hide when GSAP is confirmed present ─── */
html.anim [data-reveal] { opacity: 0; visibility: hidden; }

/* og-capture mode: static page, no chrome that reads as loading */
html.og .preloader, html.og .scroll-cue { display: none !important; }
html.og .hf-route { animation: none; stroke-dashoffset: 0; }

/* ═══════════ PRELOADER ═══════════ */
.preloader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  transition: opacity 0.5s ease, visibility 0.5s;
  /* safety net: even if JS dies, the overlay can never strand the page */
  animation: plGone 0.5s ease 2.8s forwards;
}
@keyframes plGone { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-glyph { width: 72px; height: 72px; }
.pl-route {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: plDraw 0.9s 0.15s ease forwards;
}
@keyframes plDraw { to { stroke-dashoffset: 0; } }
.preloader-line { color: var(--slate); font-size: 12px; letter-spacing: 0.08em; }
@media (prefers-reduced-motion: reduce) {
  .pl-route { animation: none; stroke-dashoffset: 0; }
}

/* ═══════════ STATUS RAIL ═══════════ */
.status-rail {
  position: fixed; top: 0; left: 0; right: 0; z-index: 940;
  height: var(--rail-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(14px, 3vw, 28px);
  background: rgba(21, 24, 29, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
}
.sr-brand { color: var(--light); font-weight: 700; }
.sr-mode { color: var(--green); transition: color 0.4s; }
.sr-mode.live { color: var(--green); font-weight: 700; }
.sr-id { color: var(--slate); }
.sr-status { display: inline-flex; align-items: center; gap: 6px; color: var(--light); margin-left: auto; }
.sr-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(53, 208, 127, 0); }
}
@media (prefers-reduced-motion: reduce) { .sr-dot { animation: none; } }
@media (max-width: 640px) {
  .sr-hide-s { display: none; }
  .status-rail { gap: 10px; }
}

/* ═══════════ HEADER ═══════════ */
.site-header {
  position: fixed; top: var(--rail-h); left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(14px, 3vw, 28px);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(21, 24, 29, 0.88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
body.menu-open .site-header { z-index: 980; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--light); }
.brand-glyph { width: 28px; height: 28px; color: var(--green); }
.brand-glyph .glyph-a { fill: var(--green); }
.brand-glyph .glyph-b { stroke: var(--green); fill: none; }
.brand-word { font-weight: 800; letter-spacing: 0.14em; font-size: 15px; }

.main-nav { display: none; align-items: center; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--slate); transition: color 0.2s; }
.main-nav a:hover { color: var(--light); }
.main-nav .nav-cta {
  color: var(--bg); background: var(--green);
  padding: 9px 18px; border-radius: 99px; font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}
.main-nav .nav-cta:hover { background: #46e08f; color: var(--bg); transform: translateY(-1px); }
@media (min-width: 900px) { .main-nav { display: inline-flex; } }

.menu-toggle { display: inline-flex; align-items: center; gap: 10px; color: var(--slate); padding: 12px; margin: -12px; }
.menu-toggle:hover { color: var(--light); }
.menu-label { font-size: 11px; letter-spacing: 0.14em; }
.menu-bars { display: inline-flex; flex-direction: column; gap: 5px; }
.menu-bars i { display: block; width: 22px; height: 2px; background: currentColor; transition: transform 0.3s, opacity 0.3s; }
body.menu-open .menu-bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .menu-bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* ═══════════ OVERLAY MENU ═══════════ */
.overlay-menu {
  position: fixed; inset: 0; z-index: 960;
  background: rgba(21, 24, 29, 0.98);
  display: flex; flex-direction: column;
  padding: calc(var(--rail-h) + var(--header-h) + 10px) var(--pad) var(--pad);
  overflow-y: auto;
}
.overlay-nav { display: flex; flex-direction: column; gap: 6px; margin: auto 0; }
.overlay-nav a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--light);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, padding-left 0.25s;
}
.overlay-nav a:hover { color: var(--green); padding-left: 10px; }
.ov-num { font-size: 12px; color: var(--green); letter-spacing: 0.1em; }
.overlay-meta { margin-top: 40px; color: var(--slate); font-size: 11px; letter-spacing: 0.1em; line-height: 2; }

/* ═══════════ SECTION BASICS ═══════════ */
.section { padding: clamp(90px, 14vh, 160px) 0; position: relative; }
.eyebrow {
  font-size: 11px; letter-spacing: 0.18em; color: var(--green);
  margin-bottom: 22px;
}
.h2 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.06;
  margin-bottom: 24px;
}
.lede {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--slate); max-width: 680px; line-height: 1.65;
  margin-bottom: 44px;
}
.lede strong { color: var(--light); font-weight: 600; }
.spec-note {
  font-size: 10.5px; letter-spacing: 0.12em; color: var(--slate-dim);
  margin-top: 36px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 99px;
  font-weight: 600; font-size: 15px;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-solid { background: var(--green); color: var(--bg); }
.btn-solid:hover { background: #46e08f; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--light); }
.btn-ghost:hover { border-color: var(--slate); transform: translateY(-2px); }
.btn-big { padding: 18px 34px; font-size: 17px; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--rail-h) + var(--header-h) + 30px) 0 80px;
  overflow: hidden;
}
.hero-stage { position: absolute; inset: 0; z-index: 1; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-labels { position: absolute; inset: 0; pointer-events: none; }
.hero-label {
  position: absolute; transform: translate(-50%, -130%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--slate); background: rgba(21, 24, 29, 0.82);
  border: 1px solid var(--line); border-radius: 5px;
  padding: 3px 8px; white-space: nowrap;
  opacity: 0; transition: opacity 0.6s;
}
.hero-label.on { opacity: 1; }
.hero-label .hl-green { color: var(--green); }
.hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.hero-stage.svg-mode #heroCanvas, .hero-stage.svg-mode .hero-labels { display: none; }
.hero-stage.svg-mode .hero-fallback { display: block; }
.hf-route { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: hfDraw 2.2s 0.9s ease forwards; }
@keyframes hfDraw { to { stroke-dashoffset: 0; } }
.hf-grid, .hf-fleet { opacity: 0.8; }
@media (prefers-reduced-motion: reduce) {
  .hf-route { animation: none; stroke-dashoffset: 0; }
}

.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.hero-h1 {
  font-size: clamp(44px, 8.6vw, 104px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.98;
  margin-bottom: 26px;
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--slate); line-height: 1.55;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-driver-link {
  display: inline-block; margin-top: 20px;
  font-size: 11px; letter-spacing: 0.16em; color: var(--slate);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 4px;
  transition: color 0.2s, border-color 0.2s;
}
.hero-driver-link:hover { color: var(--green); border-color: var(--green); }

/* Hero terminal */
.hero-terminal {
  max-width: 560px;
  background: rgba(24, 28, 34, 0.92);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.term-head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.term-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.term-title { margin-left: 8px; font-size: 11px; color: var(--slate-dim); letter-spacing: 0.06em; font-family: var(--mono); }
.term-body { padding: 16px 18px; font-size: 13px; line-height: 1.75; }
.t-prompt { color: var(--slate-dim); }
.t-caret {
  display: inline-block; width: 8px; height: 15px;
  background: var(--green); vertical-align: text-bottom;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.term-resp { color: var(--slate); }
.t-status { color: var(--green); font-weight: 700; }
.t-key { color: var(--light); }
.t-str { color: var(--green); }

/* Hero live board */
.hero-board { max-width: 520px; }
.board-clock { margin-left: auto; font-size: 11px; color: var(--green); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.board { padding: 6px 18px 10px; }
.board li {
  display: grid; grid-template-columns: 1.25fr 1fr 1.35fr;
  gap: 10px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.board li:last-child { border-bottom: 0; }
.b-id { color: var(--light); }
.b-who { color: var(--slate-dim); }
.b-state { color: var(--slate); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.b-state.b-lit { color: var(--light); }
.b-state.b-ok { color: var(--green); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.22em; color: var(--slate-dim);
}
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--slate), transparent); animation: cueDrop 1.8s ease infinite; }
@keyframes cueDrop { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue i { animation: none; } }

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0; overflow: hidden;
  background: var(--bg-2);
}
.marquee-track { display: flex; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { font-size: 13px; letter-spacing: 0.22em; color: var(--slate); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ═══════════ S2 · PROBLEM ═══════════ */
.problem-cols { display: grid; gap: 28px; margin-bottom: 48px; }
@media (min-width: 900px) { .problem-cols { grid-template-columns: 1fr 1fr; gap: 40px; } }
.p-col {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(22px, 3vw, 34px);
}
.p-col-title { font-size: 12px; letter-spacing: 0.14em; color: var(--slate); margin-bottom: 20px; }
.ledger-list li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 12.5px; color: var(--light);
  opacity: 0; transform: translateY(6px);
}
html:not(.anim) .ledger-list li { opacity: 1; transform: none; }
.lr-amt { color: var(--red); }
.lr-ok { color: var(--green); }
.lr-more span:first-child { color: var(--slate-dim); font-style: italic; }
.p-col-note { margin-top: 18px; font-size: 14px; color: var(--slate); line-height: 1.6; }
.third-option {
  font-size: clamp(24px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.25; max-width: 780px;
}

/* ═══════════ S3 · INFRA ═══════════ */
.model-diagram { display: grid; gap: 22px; }
@media (min-width: 900px) { .model-diagram { grid-template-columns: 1fr 1fr; gap: 32px; } }
.model {
  border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--bg-2);
}
.model-jarvis { border-color: rgba(53, 208, 127, 0.35); background: linear-gradient(180deg, rgba(53, 208, 127, 0.05), transparent); }
.model-title { font-size: 11px; letter-spacing: 0.16em; color: var(--slate); margin-bottom: 22px; }
.model-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.node {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  border: 1px solid var(--line); border-radius: 7px;
  padding: 9px 13px; color: var(--light); background: var(--bg);
}
.node-strike { color: var(--slate-dim); }
.node-strike s { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.node-you { border-color: var(--light); font-weight: 700; }
.node-green { border-color: var(--green); color: var(--green); }
.model-arrow { color: var(--slate-dim); }
.model-note { margin-top: 18px; font-size: 10.5px; letter-spacing: 0.1em; color: var(--slate-dim); }

/* ═══════════ S5 · LIFECYCLE ═══════════ */
.lifecycle-grid { display: grid; gap: 40px; padding-top: 30px; }
@media (min-width: 1024px) { .lifecycle-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: start; gap: 64px; } }
.steps { display: flex; flex-direction: column; gap: 34px; }
.step {
  border-left: 2px solid var(--line);
  padding-left: 22px;
  transition: border-color 0.3s, opacity 0.3s;
}
.step.active { border-left-color: var(--green); }
.step-tag { display: block; font-size: 10.5px; letter-spacing: 0.16em; color: var(--green); margin-bottom: 8px; }
.step h3 { font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 15px; max-width: 480px; }
.step code {
  font-family: var(--mono); font-size: 0.85em;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 5px;
  padding: 2px 7px; color: var(--green);
}
.spec { color: var(--slate-dim); font-size: 0.85em; letter-spacing: 0.04em; }
.lifecycle-visual { display: none; }
@media (min-width: 1024px) {
  .lifecycle-visual {
    display: block; position: sticky; top: calc(var(--rail-h) + var(--header-h) + 30px);
    border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
    padding: 24px;
  }
  .route-replay { width: 100%; height: auto; }
  .lifecycle-readout { margin-top: 16px; font-size: 11px; letter-spacing: 0.14em; color: var(--slate); }
}

/* ═══════════ S7 · DISPATCH ═══════════ */
.dispatch-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .dispatch-grid { grid-template-columns: minmax(0, 460px) 1fr; gap: 48px; align-items: start; } }
.queue-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(20px, 3vw, 28px);
}
@media (min-width: 1024px) { .queue-card { position: sticky; top: calc(var(--rail-h) + var(--header-h) + 30px); } }
.queue-title { font-size: 11px; letter-spacing: 0.16em; color: var(--slate); margin-bottom: 18px; }
.queue li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
  font-size: 12px; color: var(--light);
  transition: opacity 0.4s, transform 0.4s;
}
.queue .q-pos { color: var(--slate-dim); width: 20px; }
.queue .q-name { flex: 1; }
.queue .q-wait { color: var(--slate); font-variant-numeric: tabular-nums; }
.queue li.offering .q-wait { color: var(--green); }
.queue .q-ring { position: relative; width: 22px; height: 22px; }
.queue .q-ring svg { width: 22px; height: 22px; transform: rotate(-90deg); }
.queue .q-ring circle { fill: none; stroke-width: 2.5; }
.queue .q-ring .qr-bg { stroke: var(--line); }
.queue .q-ring .qr-fg { stroke: var(--green); stroke-linecap: round; }
.queue li.offering { color: var(--green); }
.queue-note { margin-top: 16px; font-size: 10.5px; letter-spacing: 0.1em; color: var(--slate-dim); }
.fact-cards { display: grid; gap: 18px; }
@media (min-width: 700px) { .fact-cards { grid-template-columns: 1fr 1fr; } }
.fact {
  border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 2.6vw, 28px);
  background: var(--bg-2);
  transition: border-color 0.25s, transform 0.25s;
}
.fact:hover { border-color: var(--slate-dim); transform: translateY(-3px); }
.fact h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; line-height: 1.35; }
.fact p { color: var(--slate); font-size: 14px; }

/* Platform tour — one tilted console, scroll or tabs drive the screen */
.tour { margin-top: 64px; display: grid; gap: 34px; }
@media (min-width: 1024px) {
  .tour { grid-template-columns: minmax(280px, 360px) 1fr; align-items: center; gap: clamp(32px, 4.5vw, 64px); }
}
.shots-note { font-size: 10.5px; letter-spacing: 0.16em; color: var(--slate-dim); margin-bottom: 18px; }

.tour-tabs { display: flex; gap: 6px; margin-bottom: 24px; overflow-x: auto; padding-bottom: 4px; }
@media (min-width: 1024px) { .tour-tabs { flex-direction: column; overflow: visible; padding-bottom: 0; } }
.tour-tab {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-size: 12px; letter-spacing: 0.14em; color: var(--slate);
  padding: 11px 14px; border: 1px solid transparent; border-radius: 8px;
  text-align: left; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tour-tab span { font-size: 10px; color: var(--slate-dim); }
.tour-tab:hover { color: var(--light); }
.tour-tab.active { color: var(--green); border-color: var(--line); background: var(--bg-2); }
.tour-tab.active span { color: var(--green); }

.tour-desc h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.tour-desc p { color: var(--slate); font-size: 15px; max-width: 360px; }

.tour-stage { position: relative; }
.tour-stage::before {
  content: ''; position: absolute; inset: 10% -6% -8% 12%;
  background: radial-gradient(60% 60% at 55% 50%, rgba(53, 208, 127, 0.16), transparent 70%);
  filter: blur(34px); pointer-events: none;
}
.tour-frame {
  position: relative;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.tour-frame .term-head { border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .tour-stage { perspective: 1600px; }
  .tour-frame { transform: rotateY(-6deg) rotateX(1.5deg); transition: transform 0.5s ease; }
  .tour-stage:hover .tour-frame { transform: rotateY(-1.5deg) rotateX(0.5deg); }
}
.tour-screens { position: relative; aspect-ratio: 1400 / 676; background: #101318; }
.tour-screens img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
  opacity: 0; transition: opacity 0.45s ease;
}
.tour-screens img.active { opacity: 1; }

/* Back office: banded section + 3-up grid so it doesn't read flat */
.backoffice { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.backoffice .fact { background: var(--bg); }
@media (min-width: 1024px) { .bo-cards { grid-template-columns: 1fr 1fr 1fr; } }

/* ═══════════ S8 · SURFACES ═══════════ */
.surface-cards { display: grid; gap: 22px; }
@media (min-width: 700px) { .surface-cards { grid-template-columns: 1fr 1fr; gap: 28px; } }
.surface {
  border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--bg-2);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.25s, transform 0.25s;
}
.surface:hover { border-color: var(--slate-dim); transform: translateY(-4px); }
.surface-tag { font-size: 10.5px; letter-spacing: 0.16em; color: var(--green); }
.surface h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.surface p { color: var(--slate); font-size: 14.5px; }
.track-mock {
  margin-top: auto; padding: 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 8px;
}
.tm-brand { font-size: 11px; color: var(--green); letter-spacing: 0.06em; }
.tm-line { font-size: 12px; color: var(--light); }
.tm-route { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--green) 65%, var(--line) 65%); }
.tm-otp { font-size: 15px; letter-spacing: 0.3em; color: var(--green); }
.fleet-board { gap: 0; }
.fb-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px dashed var(--line);
  font-size: 11px; color: var(--light);
}
.fb-row:last-child { border-bottom: 0; }
.fb-state { color: var(--slate); }
.fb-store { color: var(--green); }
.fb-trip { color: var(--light); }
.fb-off { color: var(--slate-dim); }

/* ═══════════ S9 · DRIVERS — light flip ═══════════ */
.drivers {
  background: var(--light);
  color: var(--bg);
}
.drivers .eyebrow { color: #0a7a4a; }
.drivers .h2 { color: var(--bg); }
.drivers .lede { color: #4a505a; }
.driver-cards { display: grid; gap: 18px; margin-bottom: 48px; }
@media (min-width: 700px) { .driver-cards { grid-template-columns: 1fr 1fr; gap: 22px; } }
.d-card {
  background: #ffffff; border: 1px solid #e2e5e9; border-radius: 14px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 2px 10px rgba(21, 24, 29, 0.04);
}
.d-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--bg); }
.d-card p { color: #4a505a; font-size: 15px; }
/* Driver app filmstrip — real screenshots in ink phone frames */
.phone-strip {
  display: flex; gap: clamp(12px, 1.6vw, 22px);
  justify-content: center; align-items: flex-end;
  margin: 14px 0 60px;
}
.phone { flex: 0 0 auto; width: clamp(150px, 15.5vw, 205px); margin: 0; }
.phone-frame {
  background: #15181d; border-radius: 26px; padding: 7px;
  box-shadow: 0 18px 40px rgba(21, 24, 29, 0.18);
}
.phone-frame img { width: 100%; height: auto; border-radius: 20px; display: block; }
.phone figcaption {
  text-align: center; margin-top: 12px;
  font-size: 9.5px; letter-spacing: 0.14em; color: #5f6771;
}
.phone:nth-child(even) { margin-bottom: 30px; }
@media (max-width: 900px) {
  .phone-strip {
    justify-content: flex-start; overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .phone { scroll-snap-align: center; width: 200px; }
  .phone:nth-child(even) { margin-bottom: 0; }
}

.btn-ink { background: var(--bg); color: var(--light); }
.btn-ink:hover { background: #232830; transform: translateY(-2px); }
.driver-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.d-cta-note { font-size: 10.5px; letter-spacing: 0.14em; color: #5f6771; }
.d-card { transition: transform 0.25s, box-shadow 0.25s; }
.d-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(21, 24, 29, 0.08); }

/* ═══════════ S10 · LEDGER ═══════════ */
.ledger-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 0; font-size: clamp(10.5px, 1.5vw, 13px);
  overflow-x: auto;
}
.lg-row {
  display: grid; grid-template-columns: 1.6fr 1.2fr 0.7fr 0.7fr;
  gap: 12px; padding: 10px 22px;
  border-bottom: 1px dashed var(--line);
  color: var(--light); white-space: nowrap;
}
.lg-row:last-child { border-bottom: 0; }
.lg-head { color: var(--slate-dim); letter-spacing: 0.14em; font-size: 0.85em; }
.lg-ref { color: var(--slate); }
.lg-total { border-top: 1px solid var(--line); font-weight: 700; }
.lg-zero { letter-spacing: 0.06em; }

/* ═══════════ S11 · GO LIVE ═══════════ */
.golive { text-align: center; padding-bottom: clamp(110px, 16vh, 190px); }
.golive .lede { margin-left: auto; margin-right: auto; }
.golive-mode { display: inline-flex; gap: 12px; font-size: 12px; }
.gl-test { color: var(--slate-dim); text-decoration: line-through; text-decoration-color: var(--red); }
.gl-arrow { color: var(--slate-dim); }
.golive-h2 { font-size: clamp(44px, 9vw, 96px); }
.golive-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }

/* ═══════════ FOOTER ═══════════ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid {
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px;
  padding-top: 44px; padding-bottom: 34px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-nav { display: inline-flex; flex-wrap: wrap; gap: 20px; font-size: 11px; letter-spacing: 0.14em; }
.footer-nav a { color: var(--slate); transition: color 0.2s; display: inline-block; padding: 8px 0; }
.footer-nav a:hover { color: var(--green); }
.footer-line { margin-left: auto; font-size: 10px; letter-spacing: 0.12em; color: var(--slate-dim); line-height: 1.9; text-align: right; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-top: 18px; padding-bottom: 26px;
  border-top: 1px solid var(--line);
  font-size: 10px; letter-spacing: 0.1em; color: var(--slate-dim);
}
@media (max-width: 700px) {
  .footer-line { margin-left: 0; text-align: left; }
}
