/* ==========================================================================
   Darbline — darbline.com
   Built on the HashiCorp design system (slug: hashicorp), retinted to the
   Darbline brand: asphalt greys + high-visibility orange.

   System conventions preserved:
   - Dark canvas is the whitespace; hierarchy via surface lift, never shadow
   - One type family across the whole hierarchy (Archivo variable, wdth axis)
   - Tight display line-heights (1.15–1.21) / relaxed body (1.5–1.7)
   - Uppercase tracked eyebrow above every section
   - 8px radius on CTAs and inputs, 12px on cards, 24px on the CTA banner
   - 1px hairline borders that are felt more than seen
   Retint: the per-product accent slot is occupied by ONE identity colour,
   high-vis orange, because Darbline is a single-product company.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Surface — asphalt, not pure black */
  --canvas:        #0b0d0f;
  --surface-1:     #14171a;
  --surface-2:     #1d2126;
  --surface-3:     #2f353c;
  --hairline:      rgba(179, 185, 192, 0.13);
  --hairline-soft: rgba(179, 185, 192, 0.07);
  --hairline-hard: #333a42;
  --inverse-canvas:#ffffff;
  --inverse-ink:   #0b0d0f;

  /* Ink */
  --ink:        #ffffff;
  --ink-muted:  #b3b9c0;
  --ink-subtle: #868d97;

  /* Identity — high-visibility orange */
  --hv:        #ff6a1f;
  --hv-bright: #ff8a3d;
  --hv-deep:   #c9490c;
  --hv-wash:   rgba(255, 106, 31, 0.10);
  --hv-edge:   rgba(255, 106, 31, 0.38);

  /* Semantic — never carried by orange alone */
  --ok:    #14c98a;
  --warn:  #ffc043;
  --alert: #ff4d43;
  --info:  #45a7ff;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-xxl: 24px;
  --r-pill: 9999px;

  /* Spacing */
  --s-xxs: 4px;
  --s-xs:  8px;
  --s-sm:  12px;
  --s-md:  16px;
  --s-lg:  24px;
  --s-xl:  32px;
  --s-xxl: 48px;
  --s-section: 96px;

  --wrap: 1280px;
  --gutter: 48px;

  --ease: cubic-bezier(0.2, 0, 0.15, 1);
  --dur: 160ms;
}

/* ---------- 2. Base ------------------------------------------------------ */

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  font-stretch: 78%;      /* condensed display — the brief's condensed sans */
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--hv-bright);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--ink); }

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

:focus-visible {
  outline: 2px solid var(--hv-bright);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.btn-primary:focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--hv);
  color: var(--inverse-ink);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 0 0 var(--r-md) 0;
}
.skip:focus { left: 0; color: var(--inverse-ink); }

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

/* ---------- 3. Layout primitives ---------------------------------------- */

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

.band { padding-block: var(--s-section); }
.band--tight { padding-block: 64px; }
.band--lift { background: var(--surface-1); }
.band--edge { border-top: 1px solid var(--hairline); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--s-md);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-stretch: 100%;
  color: var(--ink-muted);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  flex: none;
  background: var(--hv);
  border-radius: 2px;
}
.eyebrow .num {
  color: var(--hv);
  font-variant-numeric: tabular-nums;
}

.section-head { max-width: 760px; }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.section-head .lede {
  margin-top: var(--s-md);
  font-size: 18px;
  line-height: 1.66;
  color: var(--ink-muted);
  max-width: 62ch;
}


/* ---------- 4. Buttons --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--hv);
  color: var(--inverse-ink);
}
.btn-primary:hover { background: var(--hv-bright); color: var(--inverse-ink); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-secondary:hover { background: var(--surface-3); color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-hard);
}
.btn-ghost:hover { background: var(--surface-1); color: var(--ink); }

.btn-sm { min-height: 38px; padding: 8px 14px; }
.btn-block { width: 100%; }


/* ---------- 5. Pills / chips -------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--surface-1);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0.02em;
}
.pill--hv {
  background: var(--hv-wash);
  border-color: var(--hv-edge);
  color: var(--hv-bright);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  font-size: 11px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
  color: var(--ink-muted);
}
.chip--ok    { color: var(--ok);    border-color: rgba(20,201,138,.35);  background: rgba(20,201,138,.10); }
.chip--warn  { color: var(--warn);  border-color: rgba(255,192,67,.35);  background: rgba(255,192,67,.10); }
.chip--alert { color: var(--alert); border-color: rgba(255,77,67,.35);   background: rgba(255,77,67,.10); }
.chip--hv    { color: var(--hv-bright); border-color: var(--hv-edge);    background: var(--hv-wash); }

/* ---------- 6. Header / nav --------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 13, 15, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: var(--s-lg);
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-1); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--hv);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  margin-left: auto;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  font-stretch: 100%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.nav-drawer { display: none; }

/* ---------- 7. Hero ------------------------------------------------------ */

.hero {
  position: relative;
  padding-top: 72px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 420px at 12% -12%, rgba(255,106,31,0.13), transparent 70%),
    repeating-linear-gradient(90deg, var(--hairline-soft) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, var(--hairline-soft) 0 1px, transparent 1px 88px);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-top: var(--s-lg);
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: normal;
  color: var(--hv);
}
.hero-lede {
  margin-top: var(--s-lg);
  font-size: 18px;
  line-height: 1.66;
  color: var(--ink-muted);
  max-width: 46ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
  margin-top: var(--s-xl);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs) var(--s-lg);
  margin-top: var(--s-lg);
  font-size: 13px;
  color: var(--ink-subtle);
}
.hero-meta li { display: flex; align-items: center; gap: 7px; }
.hero-meta svg { flex: none; color: var(--hv); }

/* ---------- 8. Console / map card --------------------------------------- */

.console {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.console-bar .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
}
.console-bar .live .dot { animation: pulse 2.4s var(--ease) infinite; }
.console-bar .spacer { margin-left: auto; }
.console-bar .stamp { color: var(--ink-subtle); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.console-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
}
.map-figure {
  margin: 0;
  display: flex;
  align-items: center;
  background: var(--canvas);
  border-right: 1px solid var(--hairline);
}
.map-figure svg { width: 100%; height: auto; }

.map-panel {
  padding: var(--s-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface-1);
}
.panel-title {
  font-size: 11px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.feed { display: flex; flex-direction: column; gap: 8px; }
.feed li {
  padding: 10px;
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--surface-3);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.feed li.is-alert { border-left-color: var(--alert); }
.feed li.is-warn  { border-left-color: var(--warn); }
.feed li.is-ok    { border-left-color: var(--ok); }
.feed li.is-hv    { border-left-color: var(--hv); }
.feed .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.feed .who {
  font-size: 13px;
  font-weight: 700;
  font-stretch: 92%;
  color: var(--ink);
}
.feed .time {
  font-size: 11px;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}
.feed .what {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.panel-foot {
  margin-top: auto;
  padding-top: var(--s-sm);
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.metric { display: block; }
.metric .k {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.metric .v {
  display: block;
  font-size: 20px;
  font-weight: 700;
  font-stretch: 78%;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.2;
}
.metric .v.hv { color: var(--hv); }

.console-note {
  padding: 9px 14px;
  border-top: 1px solid var(--hairline);
  background: var(--surface-2);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-subtle);
}

/* Map SVG internals */
.map-svg { font-family: inherit; }
.map-svg .street  { stroke: #262c33; stroke-width: 2; }
.map-svg .artery  { stroke: #333a42; stroke-width: 5; stroke-linecap: round; }
.map-svg .block   { fill: #10141a; }
.map-svg .block-2 { fill: #151a20; }
.map-svg .route {
  fill: none;
  stroke: var(--hv);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-svg .route-glow {
  fill: none;
  stroke: var(--hv);
  stroke-width: 13;
  opacity: 0.14;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-svg .route-flow {
  fill: none;
  stroke: #ffd7bd;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 10 26;
  animation: flow 2.6s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -36; } }

.map-svg .route-dead {
  fill: none;
  stroke: #5a636d;
  stroke-width: 3;
  stroke-dasharray: 7 7;
  stroke-linecap: round;
}
.map-svg .route-alt {
  fill: none;
  stroke: var(--info);
  stroke-width: 3;
  opacity: 0.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-svg .stop-ring { fill: var(--canvas); stroke: var(--hv); stroke-width: 2.5; }
.map-svg .stop-num {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
}
.map-svg .lbl-sm {
  fill: var(--ink-subtle);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.map-svg .lbl-alert { fill: var(--alert); }
.map-svg .lbl-warn  { fill: var(--warn); }
.map-svg .tagbox { fill: #0e1216; stroke: var(--hairline-hard); }

/* ---------- 9. Constraint ticker ---------------------------------------- */

.constraints {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-1);
  padding-block: var(--s-lg);
}
.constraints .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-sm) var(--s-lg);
}
.constraints .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  padding-right: var(--s-lg);
  border-right: 1px solid var(--hairline);
}
.constraints ul { display: flex; flex-wrap: wrap; gap: var(--s-xs); }

/* ---------- 10. Split / two-column sections ----------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

/* Problem: failure log */
.faillog {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--canvas);
}
.faillog-head {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.faillog-head .spacer { margin-left: auto; }
.faillog li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: var(--s-md);
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
}
.faillog li:last-child { border-bottom: 0; }
.faillog .t {
  font-size: 12px;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.faillog .msg { color: var(--ink-muted); line-height: 1.45; }
.faillog .msg strong { color: var(--ink); font-weight: 700; }
.faillog-foot {
  padding: 13px 16px;
  background: var(--surface-2);
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-muted);
}
.faillog-foot strong { color: var(--hv); font-weight: 700; }

.stack-list { display: flex; flex-direction: column; gap: var(--s-lg); margin-top: var(--s-xl); }
.stack-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: var(--s-md);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--hairline);
}
.stack-list h3 {
  font-size: 19px;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -0.005em;
}
.stack-list p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.stack-list .ico {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--hv);
}

/* ---------- 11. Before / after ------------------------------------------ */

.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-lg);
  margin-top: var(--s-xl);
}
.ba-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  overflow: hidden;
}
.ba-card--after { border-color: var(--hv-edge); }
.ba-head {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ba-head .spacer { margin-left: auto; }
.ba-card figure { margin: 0; background: var(--canvas); }
.ba-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
}
.ba-stats div {
  padding: 12px 14px;
  border-right: 1px solid var(--hairline);
}
.ba-stats div:last-child { border-right: 0; }
.ba-stats .k {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.ba-stats .v {
  display: block;
  font-size: 19px;
  font-weight: 700;
  font-stretch: 78%;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.ba-card--after .ba-stats .v { color: var(--hv); }
.sample-note {
  margin-top: var(--s-md);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-subtle);
}

/* ---------- 12. Feature grid -------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-lg);
  margin-top: var(--s-xl);
}
.fcard {
  padding: var(--s-lg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.fcard:hover { background: var(--surface-2); border-color: var(--hairline-hard); }
.fcard .ico {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--hv);
  margin-bottom: var(--s-md);
}
.fcard h3 {
  font-size: 21px;
  font-weight: 700;
  font-stretch: 82%;
  letter-spacing: -0.01em;
}
.fcard p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
}
.fcard .tag {
  display: inline-block;
  margin-top: var(--s-md);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

/* the one identity-chromatic card — the system's "product card" slot */
.fcard--hv {
  background: var(--hv);
  border-color: var(--hv);
  color: var(--inverse-ink);
}
.fcard--hv:hover { background: var(--hv-bright); border-color: var(--hv-bright); }
.fcard--hv h3 { color: var(--inverse-ink); }
.fcard--hv p { color: rgba(11, 13, 15, 0.82); }
.fcard--hv .tag { color: rgba(11, 13, 15, 0.68); }
.fcard--hv .ico {
  background: rgba(11, 13, 15, 0.14);
  border-color: rgba(11, 13, 15, 0.24);
  color: var(--inverse-ink);
}

/* ---------- 13. How it works -------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--s-xl);
  border-top: 1px solid var(--hairline-hard);
}
.steps li {
  padding: var(--s-lg) var(--s-lg) var(--s-lg) 0;
  border-right: 1px solid var(--hairline);
  position: relative;
}
.steps li:last-child { border-right: 0; }
.steps li:not(:first-child) { padding-left: var(--s-lg); }
.steps li::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 46px; height: 3px;
  background: var(--hv);
}
.steps li:not(:first-child)::before { left: 0; }
.steps .n {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--hv);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.steps h3 {
  font-size: 19px;
  font-weight: 700;
  font-stretch: 86%;
}
.steps p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.68;
  color: var(--ink-muted);
}

/* ---------- 14. Dispatch board ------------------------------------------ */

.board {
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  overflow: hidden;
}
.board-scroll { overflow-x: auto; max-width: 100%; }
.board table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}
.board caption {
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.board th {
  padding: 10px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.board td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--ink-muted);
  vertical-align: middle;
}
.board th[scope="row"] {
  padding: 12px 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  border-bottom: 1px solid var(--hairline-soft);
}
.board tbody tr:last-child td,
.board tbody tr:last-child th[scope="row"] { border-bottom: 0; }
.board tbody tr:hover td,
.board tbody tr:hover th[scope="row"] { background: var(--surface-2); }
.board .drv { color: var(--ink); font-weight: 700; font-stretch: 92%; white-space: nowrap; }
.board .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar {
  display: block;
  position: relative;
  height: 6px;
  min-width: 84px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}
.bar span {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--hv);
  border-radius: var(--r-pill);
}
.bar span.ok { background: var(--ok); }

.pod {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  overflow: hidden;
}
.pod-head {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.pod-head .spacer { margin-left: auto; }
.pod-body { padding: var(--s-md); display: grid; gap: var(--s-sm); }
.pod-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-md);
  padding-bottom: var(--s-sm);
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 13px;
}
.pod-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.pod-row .k { color: var(--ink-subtle); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.pod-row .v { color: var(--ink); font-weight: 600; text-align: right; }
.pod-sign {
  border: 1px dashed var(--hairline-hard);
  border-radius: var(--r-md);
  background: var(--canvas);
  padding: var(--s-sm);
}
.pod-sign figcaption {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.mock-duo {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--s-lg);
  margin-top: var(--s-xl);
  align-items: start;
}

/* ---------- 15. Pricing -------------------------------------------------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-lg);
  margin-top: var(--s-xl);
  align-items: stretch;
}
.pcard {
  display: flex;
  flex-direction: column;
  padding: var(--s-xl);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  height: 100%;
}
.pcard--featured {
  background: var(--surface-2);
  border-color: var(--hv-edge);
}
.pcard .tier {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 26px;
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: -0.015em;
}
.pcard .who {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  min-height: 44px;
}
.pcard .amount {
  margin-top: var(--s-lg);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.pcard .amount .big {
  font-size: 40px;
  font-weight: 800;
  font-stretch: 74%;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.pcard--featured .amount .big { color: var(--hv); }
.pcard .amount .per { font-size: 13px; color: var(--ink-subtle); }
.pcard .feats {
  margin: var(--s-lg) 0 var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-muted);
}
.pcard .feats li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  line-height: 1.55;
}
.pcard .feats svg { margin-top: 4px; color: var(--hv); flex: none; }
.pcard .cta { margin-top: auto; }
.pcard .fine {
  margin-top: var(--s-sm);
  font-size: 12px;
  color: var(--ink-subtle);
  line-height: 1.5;
}

.price-foot {
  margin-top: var(--s-lg);
  padding: var(--s-md) var(--s-lg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface-1);
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.price-foot strong { color: var(--ink); font-weight: 700; }

/* ---------- 16. Credibility --------------------------------------------- */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-lg);
  margin-top: var(--s-xl);
}
.proof {
  padding: var(--s-lg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}
.proof .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.proof .v {
  margin-top: 10px;
  font-size: 44px;
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--surface-3);
  font-variant-numeric: tabular-nums;
}
.proof .note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.proof .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-md);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.credo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-lg);
  margin-top: var(--s-lg);
}
.credo li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--s-sm);
  padding: var(--s-md) 0;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.credo strong { color: var(--ink); font-weight: 700; }
.credo svg { margin-top: 4px; color: var(--hv); }

/* ---------- 17. FAQ accordion ------------------------------------------- */

.faq { margin-top: var(--s-xl); border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding: var(--s-md) 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 700;
  font-stretch: 90%;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  margin-left: auto;
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xs);
  color: var(--hv);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.faq summary:hover .plus { background: var(--surface-2); }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .ans {
  padding: 0 0 var(--s-lg);
  max-width: 76ch;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-muted);
}

/* ---------- 18. CTA banner ---------------------------------------------- */

.cta-banner {
  position: relative;
  overflow: hidden;
  padding: var(--s-xxl);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxl);
  background: var(--surface-1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-xl);
  align-items: center;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, var(--hv-wash) 0 14px, transparent 14px 34px);
  opacity: 0.5;
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.cta-banner p {
  margin-top: var(--s-sm);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 54ch;
}
.cta-banner .acts { display: flex; flex-direction: column; gap: var(--s-sm); }

/* ---------- 19. Footer --------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
  padding-block: 64px var(--s-xl);
  margin-top: var(--s-section);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-xl);
}
.foot-brand p {
  margin-top: var(--s-md);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-subtle);
  max-width: 34ch;
}
.foot-col h2 {
  font-size: 11px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: var(--s-sm);
}
.foot-col li + li { margin-top: 9px; }
.foot-col a, .foot-col span {
  font-size: 13px;
  color: var(--ink-muted);
}
.foot-col a:hover { color: var(--ink); }
.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-sm) var(--s-lg);
  margin-top: var(--s-xxl);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-subtle);
  letter-spacing: 0.03em;
}
.foot-bar .spacer { margin-left: auto; }

/* ---------- 20. Contact page -------------------------------------------- */

.page-head {
  padding-top: 72px;
  padding-bottom: var(--s-xl);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 320px at 8% 0%, rgba(255,106,31,0.10), transparent 72%);
  pointer-events: none;
}
.page-head > * { position: relative; }
.page-head h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.page-head .lede {
  margin-top: var(--s-lg);
  font-size: 18px;
  line-height: 1.66;
  color: var(--ink-muted);
  max-width: 56ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 56px;
  align-items: start;
  padding-block: var(--s-xxl) 0;
}

.form-card {
  padding: var(--s-xl);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-md) var(--s-lg);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field .req { color: var(--hv); }
.field .hint { font-size: 12px; color: var(--ink-subtle); line-height: 1.5; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--hairline-hard);
  border-radius: var(--r-md);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #6b727b; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
                    linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: right 18px center, right 12px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--hv-bright);
  outline-offset: 1px;
  border-color: var(--hv-bright);
}
.field .err {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--alert);
}
.field.is-invalid .err { display: flex; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--alert); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-md);
  margin-top: var(--s-lg);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--hairline);
}
.form-actions .fine { font-size: 12px; color: var(--ink-subtle); line-height: 1.5; max-width: 40ch; }

.form-status {
  display: none;
  gap: var(--s-md);
  align-items: flex-start;
  margin-bottom: var(--s-lg);
  padding: var(--s-md);
  border: 1px solid rgba(20, 201, 138, 0.4);
  border-left: 3px solid var(--ok);
  border-radius: var(--r-md);
  background: rgba(20, 201, 138, 0.08);
}
.form-status.is-visible { display: flex; }
.form-status svg { flex: none; color: var(--ok); margin-top: 2px; }
.form-status h2 {
  font-size: 17px;
  font-weight: 700;
  font-stretch: 90%;
  color: var(--ink);
}
.form-status p { margin-top: 5px; font-size: 14px; line-height: 1.6; color: var(--ink-muted); }

.aside-card {
  padding: var(--s-lg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}
.aside-card + .aside-card { margin-top: var(--s-lg); }
.aside-card .note {
  font-size: 14px;
  line-height: 1.68;
  color: var(--ink-muted);
}
.form-card > .panel-title { margin-bottom: var(--s-md); }
.aside-card h2 {
  font-size: 12px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: var(--s-md);
}
.contact-lines li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: var(--s-sm);
  padding: var(--s-sm) 0;
  border-top: 1px solid var(--hairline-soft);
}
.contact-lines li:first-child { border-top: 0; padding-top: 0; }
.contact-lines .ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--hv);
}
.contact-lines .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.contact-lines .v { font-size: 15px; color: var(--ink); font-weight: 600; word-break: break-word; }
.contact-lines .v a { color: var(--hv-bright); }

.next-steps { counter-reset: step; }
.next-steps li {
  position: relative;
  padding: 0 0 var(--s-md) 34px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.next-steps li:last-child { padding-bottom: 0; }
.next-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--hv);
  font-variant-numeric: tabular-nums;
}
.next-steps strong { color: var(--ink); font-weight: 700; }

/* ---------- 21. Responsive ---------------------------------------------- */

@media (max-width: 1180px) {
  :root { --gutter: 32px; --s-section: 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-xl); }
  .hero h1 { font-size: clamp(40px, 7.4vw, 60px); }
  .hero-lede { max-width: 60ch; }
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--s-xl); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(3), .steps li:nth-child(4) { border-top: 1px solid var(--hairline); }
  .mock-duo { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-xl); }
}

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-drawer {
    display: none;
    border-top: 1px solid var(--hairline);
    background: var(--canvas);
    padding: var(--s-md) 0 var(--s-lg);
  }
  .nav-drawer.is-open { display: block; }
  .nav-drawer a.dlink {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
  }
  .nav-drawer .dacts { display: flex; flex-direction: column; gap: var(--s-sm); margin-top: var(--s-md); }

  .console-body { grid-template-columns: minmax(0, 1fr); }
  .map-figure { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .map-panel { border-top: 0; }
  .price-grid, .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .credo { grid-template-columns: minmax(0, 1fr); }
  .cta-banner { grid-template-columns: minmax(0, 1fr); padding: var(--s-xl); }
  .cta-banner .acts { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 680px) {
  :root { --gutter: 20px; --s-section: 64px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .ba-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li {
    border-right: 0;
    border-top: 1px solid var(--hairline);
    padding: var(--s-lg) 0;
  }
  .steps li:first-child { border-top: 0; }
  .steps li:not(:first-child) { padding-left: 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-lg); }
  .faillog li { grid-template-columns: 52px minmax(0, 1fr); }
  .faillog li .chip { grid-column: 2; justify-self: start; }
  .hero { padding-top: 48px; padding-bottom: 56px; }
  .constraints .k { border-right: 0; padding-right: 0; width: 100%; }
  .page-head { padding-top: 48px; }
  .form-card { padding: var(--s-lg); }
  .cta-banner { border-radius: var(--r-xl); padding: var(--s-lg); }
  .pcard { padding: var(--s-lg); }
  .metric .v { font-size: 18px; }

  /* the map annotations are unreadable once the SVG is scaled to a phone —
     drop them and enlarge the route furniture; the driver-report panel
     directly below carries the same information as real text */
  .map-svg .tagbox,
  .map-svg .lbl-sm { display: none; }
  .map-svg .stop-num { font-size: 17px; }
  .map-svg .stop-ring { r: 17px; stroke-width: 3; }
  .map-svg .route { stroke-width: 6.5; }
  .map-svg .route-glow { stroke-width: 17; }
}

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