/* ==========================================================================
   VEKTRA — Design System
   Hybrid light/dark. Dark = hero, feature bands, footer. Light = body.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;450;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ------------------------------------------------------------------ tokens */

:root {
  /* dark surfaces */
  --ink-900: #07080A;
  --ink-850: #0B0D10;
  --ink-800: #101317;
  --ink-700: #171B21;
  --ink-600: #21262E;
  --ink-500: #2E353F;

  /* light surfaces */
  --paper: #FFFFFF;
  --paper-warm: #FAFAF8;
  --paper-sunk: #F2F2EF;

  /* text */
  --text-dark: #14161A;
  --text-dark-mute: #5A6069;
  --text-light: #F4F5F7;
  --text-light-mute: #99A1AC;

  /* brand */
  --red: #E4002B;
  --red-bright: #FF2D4F;
  --red-deep: #A80020;
  --red-ink: #C10024;

  /* lines */
  --line-light: #E3E3DF;
  --line-dark: rgba(255, 255, 255, .10);

  /* type */
  --display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --shell: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --nav-h: 72px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ------------------------------------------------------------------ reset */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--paper);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--red); color: #fff; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: 12px 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------------ layout */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.shell-narrow { max-width: 860px; }

.band { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.band-tight { padding-block: clamp(48px, 6vw, 80px); }

.band-dark {
  background: var(--ink-900);
  color: var(--text-light);
}
.band-paper { background: var(--paper); }
.band-warm { background: var(--paper-warm); }
.band-sunk { background: var(--paper-sunk); }

.band-dark a:not(.btn):not(.card-link) { color: #fff; }

/* hairline top/bottom on light bands */
.band-warm + .band-warm { border-top: 1px solid var(--line-light); }

/* ------------------------------------------------------------------ type */

.display {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .012em;
  line-height: 1.02;
  margin: 0;
}

.d1 { font-size: clamp(40px, 6.6vw, 86px); }
.d2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; }
.d3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; }
.d4 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.15; letter-spacing: .02em; }

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  max-width: 60ch;
}

.body-lg { font-size: 17px; line-height: 1.65; }
.muted { color: var(--text-dark-mute); }
.band-dark .muted, .muted-light { color: var(--text-light-mute); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red-ink);
}
.band-dark .eyebrow { color: var(--red-bright); }
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .6;
}

.rule {
  height: 1px; border: 0; margin: 20px 0 0;
  background: var(--line-light);
}
.band-dark .rule { background: var(--line-dark); }

.accent { color: var(--red); }
.band-dark .accent { color: var(--red-bright); }

.section-head { max-width: 24ch; }
.section-head + .lede { margin-top: 20px; }

/* mono data label */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  color: var(--text-dark-mute);
  white-space: nowrap;
}
.band-dark .tag { border-color: var(--line-dark); color: var(--text-light-mute); }
.tag-red { border-color: rgba(228,0,43,.35); color: var(--red-ink); background: rgba(228,0,43,.06); }
.band-dark .tag-red { color: var(--red-bright); background: rgba(228,0,43,.12); }

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

.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(7, 8, 10, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-light);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  display: flex; align-items: center; gap: 11px;
  margin-right: auto;
  flex-shrink: 0;
}
.brand svg { width: 22px; height: 22px; }
.brand-word {
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 450;
  color: var(--text-light-mute);
  border-radius: 4px;
  transition: color .16s var(--ease), background .16s var(--ease);
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }
.nav-link .chev { width: 9px; height: 9px; opacity: .55; transition: transform .18s var(--ease); }

/* dropdown */
.has-menu { position: relative; }
.has-menu:hover .nav-link .chev, .has-menu:focus-within .nav-link .chev { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 288px;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-menu:hover .menu, .has-menu:focus-within .menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 14px;
  color: var(--text-light);
  transition: background .14s var(--ease);
}
.menu a span {
  display: block;
  font-size: 12.5px;
  color: var(--text-light-mute);
  margin-top: 2px;
  line-height: 1.4;
}
.menu a:hover { background: rgba(255,255,255,.07); }

.nav-cta { margin-left: 10px; }

/* mobile toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-dark); border-radius: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 17px; height: 1.5px; background: #fff;
  position: relative; transition: background .16s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 17px; height: 1.5px; background: #fff;
  transition: transform .22s var(--ease), top .22s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-900);
    border-bottom: 1px solid var(--line-dark);
    padding: 12px var(--gut) 28px;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { padding: 13px 0; font-size: 16px; border-radius: 0; }
  .nav-link:hover, .nav-link[aria-current="page"] { background: none; }
  .has-menu { position: static; }
  .menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; border: 0; box-shadow: none; padding: 0 0 10px 14px;
    border-left: 1px solid var(--line-dark); margin-bottom: 8px;
  }
  .menu a { padding: 9px 0; }
  .menu a span { display: none; }
  .nav-cta { margin: 16px 0 0; width: 100%; }
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  font-family: var(--body);
  font-size: 13px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 4px;
  cursor: pointer; white-space: nowrap;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 13px; height: 13px; }

.btn-primary {
  background: var(--red); border-color: var(--red); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 8px 24px -10px rgba(228,0,43,.7);
}
.btn-primary:hover { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }

.btn-ghost { background: transparent; border-color: var(--line-light); color: var(--text-dark); }
.btn-ghost:hover { border-color: var(--text-dark); }

/* Any dark surface — hero, interior page hero, dark bands, CTA band, nav.
   Missing .hero/.page-hero/.cta-band here made ghost buttons render near-black
   on a near-black background. Keep this list in sync with dark surfaces. */
.band-dark .btn-ghost,
.hero .btn-ghost,
.page-hero .btn-ghost,
.cta-band .btn-ghost,
.nav .btn-ghost {
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}
.band-dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.page-hero .btn-ghost:hover,
.cta-band .btn-ghost:hover,
.nav .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.btn-sm { padding: 10px 16px; font-size: 12px; }
.btn-lg { padding: 16px 30px; font-size: 14px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--red-ink);
  transition: gap .18s var(--ease);
}
.band-dark .text-link { color: var(--red-bright); }
.text-link:hover { gap: 12px; }
.text-link svg { width: 12px; height: 12px; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--text-light);
  padding-block: clamp(64px, 8vw, 104px) clamp(72px, 9vw, 116px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -2;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 56px);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

.hero::after {
  content: '';
  position: absolute; z-index: -1;
  top: -280px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(228,0,43,.20), rgba(228,0,43,.05) 42%, transparent 68%);
  pointer-events: none;
  filter: blur(20px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-left: -.045em; }
.hero .lede { margin-top: 26px; color: var(--text-light-mute); }
.hero .btn-row { margin-top: 34px; }

.hero-note {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-light-mute);
}

/* live pill */
.live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(228,0,43,.4);
  border-radius: 100px;
  background: rgba(228,0,43,.10);
  color: #FF7D92;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 0 rgba(255,45,79,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,45,79,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255,45,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,45,79,0); }
}

/* page hero (interior pages) */
.page-hero {
  background: var(--ink-900);
  color: var(--text-light);
  padding-block: clamp(56px, 7vw, 92px) clamp(56px, 7vw, 88px);
  position: relative; overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.026) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.026) 0 1px, transparent 1px 56px);
  mask-image: radial-gradient(ellipse 80% 100% at 20% 0%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 20% 0%, #000 10%, transparent 75%);
}
.page-hero::after {
  content: ''; position: absolute; z-index: -1;
  top: -240px; left: 8%;
  width: 780px; height: 560px;
  background: radial-gradient(ellipse at center, rgba(228,0,43,.16), transparent 66%);
  filter: blur(18px); pointer-events: none;
}
.page-hero .lede { margin-top: 22px; color: var(--text-light-mute); }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero .btn-row { margin-top: 32px; }

/* breadcrumb */
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-light-mute);
  margin-bottom: 22px;
}
.crumb a:hover { color: #fff; }
.crumb span { opacity: .4; }

/* ------------------------------------------------------------------ cards */

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
  position: relative;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--text-dark-mute); }

.card-hover:hover {
  border-color: rgba(228,0,43,.4);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(20,22,26,.35);
}

.band-dark .card {
  background: var(--ink-800);
  border-color: var(--line-dark);
}
.band-dark .card p { color: var(--text-light-mute); }
.band-dark .card-hover:hover {
  border-color: rgba(228,0,43,.5);
  box-shadow: 0 18px 44px -20px rgba(0,0,0,.8);
}

/* corner brackets — carried over from the original identity */
.bracket { position: relative; }
.bracket::before, .bracket::after {
  content: ''; position: absolute; width: 11px; height: 11px; pointer-events: none;
  border-color: var(--red); border-style: solid; border-width: 0;
  transition: opacity .2s var(--ease);
}
.bracket::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; border-radius: 6px 0 0 0; }
.bracket::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; border-radius: 0 0 6px 0; }
.band-dark .bracket::before, .band-dark .bracket::after { border-color: var(--red-bright); }

.card-num {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500; letter-spacing: .16em;
  color: var(--red-ink);
  display: block; margin-bottom: 14px;
}
.band-dark .card-num { color: var(--red-bright); }

.card-icon {
  width: 34px; height: 34px; margin-bottom: 18px;
  color: var(--red);
}
.band-dark .card-icon { color: var(--red-bright); }
.card-icon svg { width: 100%; height: 100%; }

.card-link { display: block; }
.card-link:hover h3 { color: var(--red-ink); }
.band-dark .card-link:hover h3 { color: var(--red-bright); }

/* feature list */
.ticks { display: grid; gap: 11px; margin-top: 22px; }
.ticks li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 15px; line-height: 1.55;
}
.ticks li::before {
  content: ''; flex-shrink: 0; margin-top: 7px;
  width: 7px; height: 7px;
  background: var(--red); border-radius: 1px;
  transform: rotate(45deg);
}
.band-dark .ticks li::before { background: var(--red-bright); }

/* split section */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split-top { align-items: start; }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  overflow: hidden;
}
.band-dark .stats { background: var(--line-dark); border-color: var(--line-dark); }
.stat { background: var(--paper); padding: 26px 24px; }
.band-dark .stat { background: var(--ink-850); }
.stat-num {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1;
  letter-spacing: .01em;
}
.stat-label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-dark-mute);
  margin-top: 12px; line-height: 1.45;
}
.band-dark .stat-label { color: var(--text-light-mute); }

/* numbered steps */
.steps { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: s; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line-light); }
.band-dark .step { border-top-color: var(--line-dark); }
.step-num {
  font-family: var(--display); font-weight: 600;
  font-size: 52px; line-height: 1; letter-spacing: .02em;
  color: var(--red);
  opacity: .9;
}
.band-dark .step-num { color: var(--red-bright); }
.step h3 { margin: 16px 0 10px; }
.step p { font-size: 15px; color: var(--text-dark-mute); line-height: 1.6; }
.band-dark .step p { color: var(--text-light-mute); }

/* ------------------------------------------------------------------ product mockup (dispatch bridge demo) */

.demo {
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.03) inset;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-light);
}

.demo-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255,255,255,.022);
}
.demo-dots { display: flex; gap: 5px; }
.demo-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-500); }
.demo-title {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-light-mute);
}
.demo-live { margin-left: auto; }

.demo-body { padding: 14px; display: grid; gap: 10px; }

.demo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: rgba(255,255,255,.018);
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.demo-row.is-alert {
  border-color: rgba(255,45,79,.5);
  background: rgba(228,0,43,.09);
}
.demo-row.is-ok { border-color: rgba(46,196,124,.4); background: rgba(46,196,124,.07); }

.demo-k {
  font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-light-mute);
  display: block; margin-bottom: 5px;
}
.demo-v { font-size: 13px; font-weight: 500; letter-spacing: .02em; }

.pill {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 3px; white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.pill-idle   { background: rgba(255,255,255,.09); color: var(--text-light-mute); }
.pill-red    { background: rgba(228,0,43,.22); color: #FF8298; }
.pill-amber  { background: rgba(240,160,32,.2); color: #F5C06A; }
.pill-green  { background: rgba(46,196,124,.18); color: #6FE0AB; }

.demo-flow {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px;
  border-top: 1px dashed var(--line-dark);
  border-bottom: 1px dashed var(--line-dark);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-light-mute);
}
.demo-flow .arrow { color: var(--red-bright); }

.demo-foot {
  padding: 11px 14px;
  border-top: 1px solid var(--line-dark);
  background: rgba(0,0,0,.25);
  font-size: 11px; letter-spacing: .05em;
  color: var(--text-light-mute);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  min-height: 40px;
}
.demo-foot b { color: #fff; font-weight: 500; }

.demo-btn {
  margin-left: auto;
  background: var(--red); color: #fff; border: 0;
  font-family: var(--body); font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 13px; border-radius: 4px; cursor: pointer;
  transition: background .16s var(--ease);
}
.demo-btn:hover { background: var(--red-bright); }
.demo-btn:disabled { opacity: .4; cursor: default; }

/* ------------------------------------------------------------------ code block */

.code {
  background: var(--ink-850);
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  overflow: hidden;
  font-family: var(--mono);
}
.code-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-light-mute);
  background: rgba(255,255,255,.02);
}
.code pre {
  margin: 0; padding: 16px;
  font-size: 12.5px; line-height: 1.7;
  color: #D6DAE0;
  overflow-x: auto;
}
.code .c-key { color: #7FB2FF; }
.code .c-str { color: #6FE0AB; }
.code .c-num { color: #F5C06A; }
.code .c-com { color: #6B7280; }
.code .c-verb { color: var(--red-bright); font-weight: 700; }

/* ------------------------------------------------------------------ pricing */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 20px;
  align-items: stretch;
}
.price {
  display: flex; flex-direction: column;
  padding: clamp(26px, 2.8vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: 8px;
}
.price-feature {
  border-color: var(--red);
  box-shadow: 0 20px 50px -26px rgba(228,0,43,.5);
  position: relative;
}
.price-flag {
  position: absolute; top: -11px; left: clamp(26px, 2.8vw, 34px);
  background: var(--red); color: #fff;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px;
}
.price-name { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 22px; letter-spacing: .03em; }
.price-desc { font-size: 14px; color: var(--text-dark-mute); margin-top: 8px; min-height: 42px; line-height: 1.5; }
.price-amt {
  font-family: var(--display); font-weight: 600;
  font-size: 46px; line-height: 1; letter-spacing: .01em;
  margin: 22px 0 4px;
}
.price-amt small { font-family: var(--body); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text-dark-mute); }
.price-unit { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dark-mute); }
.price .ticks { flex: 1; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.price .ticks li { font-size: 14px; }
.price .btn { margin-top: 26px; width: 100%; }

/* comparison table */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-light); border-radius: 7px; }
.cmp { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--paper); }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; font-size: 14.5px; vertical-align: top; }
.cmp thead th {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-dark-mute);
  border-bottom: 1px solid var(--line-light);
  background: var(--paper-warm);
  white-space: nowrap;
}
.cmp thead th.is-us { color: var(--red-ink); }
.cmp tbody tr + tr td { border-top: 1px solid var(--line-light); }
.cmp td:first-child { font-weight: 550; width: 26%; }
.cmp td.is-us { background: rgba(228,0,43,.035); }

/* ------------------------------------------------------------------ FAQ */

.faq { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(16px, 1.6vw, 19px); letter-spacing: .025em; line-height: 1.25;
  transition: color .16s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-ink); }
.faq summary::after {
  content: ''; flex-shrink: 0; margin-top: 4px;
  width: 13px; height: 13px;
  background: currentColor;
  clip-path: polygon(46% 0, 54% 0, 54% 46%, 100% 46%, 100% 54%, 54% 54%, 54% 100%, 46% 100%, 46% 54%, 0 54%, 0 46%, 46% 46%);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details[open] summary { color: var(--red-ink); }
.faq-body { padding: 0 0 24px; max-width: 76ch; font-size: 15.5px; line-height: 1.68; color: var(--text-dark-mute); }
.faq-body p + p { margin-top: 12px; }
.faq-body a { color: var(--red-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ forms */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dark-mute);
}
.band-dark .field label { color: var(--text-light-mute); }
.field .req { color: var(--red); }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 13px;
  font-family: var(--body); font-size: 15px;
  color: var(--text-dark);
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: 4px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.textarea { min-height: 108px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%235A6069' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 11px; padding-right: 34px; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(228,0,43,.13);
}
.input::placeholder, .textarea::placeholder { color: #A3A8AF; }

.band-dark .input, .band-dark .select, .band-dark .textarea {
  background: rgba(255,255,255,.045);
  border-color: var(--line-dark);
  color: #fff;
}
.band-dark .input::placeholder, .band-dark .textarea::placeholder { color: #6E7681; }

.form-status {
  grid-column: 1 / -1;
  font-size: 14px; line-height: 1.5;
  min-height: 20px;
}
.form-status.ok { color: #1F9D61; }
.form-status.err { color: var(--red-ink); }
.band-dark .form-status.ok { color: #6FE0AB; }
.band-dark .form-status.err { color: #FF8298; }

.form-legal { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.5; color: var(--text-dark-mute); }
.band-dark .form-legal { color: var(--text-light-mute); }

@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ founder */

.founder {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; } }

.founder-photo {
  width: 132px; height: 176px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--line-light);
  filter: grayscale(1) contrast(1.04);
  transition: filter .35s var(--ease);
}
.founder-photo:hover { filter: grayscale(0); }
.band-dark .founder-photo { border-color: var(--line-dark); }

.founder-name { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 20px; letter-spacing: .04em; }
.founder-role { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink); margin-top: 5px; }
.band-dark .founder-role { color: var(--red-bright); }

.quote {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.22; letter-spacing: .02em;
}

/* ------------------------------------------------------------------ CTA band */

.cta-band {
  background: var(--ink-900); color: var(--text-light);
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(64px, 8vw, 104px);
}
.cta-band::after {
  content: ''; position: absolute; z-index: -1;
  bottom: -320px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 620px;
  background: radial-gradient(ellipse at center, rgba(228,0,43,.22), transparent 65%);
  filter: blur(24px); pointer-events: none;
}

/* ------------------------------------------------------------------ footer */

.foot {
  background: var(--ink-900);
  color: var(--text-light-mute);
  border-top: 1px solid var(--line-dark);
  padding-block: clamp(48px, 6vw, 72px) 32px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.foot h4 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px;
}
.foot ul { display: grid; gap: 10px; }
.foot a { transition: color .14s var(--ease); }
.foot a:hover { color: #fff; }
.foot-tag { max-width: 34ch; line-height: 1.6; margin-top: 16px; }
.foot-bar {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 12.5px;
}
.foot-bar .spacer { margin-left: auto; }

/* ------------------------------------------------------------------ reveal */

.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-1 { transition-delay: .06s; }
.rv-2 { transition-delay: .12s; }
.rv-3 { transition-delay: .18s; }
.rv-4 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ utils */

.mt-s  { margin-top: 16px; }
.mt-m  { margin-top: 28px; }
.mt-l  { margin-top: clamp(36px, 4.5vw, 60px); }
.mt-xl { margin-top: clamp(48px, 6vw, 80px); }
.center { text-align: center; }
.center .lede, .center .section-head { margin-inline: auto; }
.center .btn-row { justify-content: center; }
.center .eyebrow::before { display: none; }
.maxw { max-width: 72ch; }


/* ==========================================================================
   PRICING ESTIMATOR

   Figures on the LEFT, at a size you can read from across a desk. Controls on
   the RIGHT. That order is deliberate: the number is what the visitor came
   for, and burying it under a form makes them work for it.

   Every control is a full-width block with its own label and one line of
   explanation. Segmented pills forced the visitor to already know what "Core"
   and "Fleet" meant; a block can say so.
   ========================================================================== */

.est-wrap {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: 20px;
  padding: clamp(22px, 3.4vw, 46px);
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 12px 40px -18px rgba(0,0,0,.18);
}

.est {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

/* ------------------------------------------------------------- the figure */

.est-figure { min-width: 0; position: sticky; top: calc(var(--nav-h) + 24px); }

.est-eyebrow {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dark-mute);
}

.est-amt {
  font-family: var(--display);
  font-size: clamp(58px, 8.5vw, 104px);
  line-height: .92;
  letter-spacing: -.015em;
  color: var(--text-dark);
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.est-amt .est-per {
  font-family: var(--body);
  font-size: .19em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-dark-mute);
  margin-left: 8px;
}
/* "We quote this one" must not try to be 104px. */
.est-amt.is-words { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }

.est-sub {
  font-size: 16px;
  color: var(--text-dark-mute);
  margin-top: 14px;
  line-height: 1.5;
}
.est-sub strong { color: var(--text-dark); font-weight: 600; }

.est-lines { margin-top: 28px; border-top: 1px solid var(--line-light); }
.est-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-light);
  font-size: 15px;
}
.est-line span { color: var(--text-dark-mute); }
.est-line b {
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.est-hint {
  margin-top: 22px;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-dark);
  background: #FFF5F6;
  border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
}
.est-note {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dark-mute);
}
.est-cta { width: 100%; margin-top: 24px; }

/* ------------------------------------------------------------- the controls */

.est-controls { min-width: 0; }

.est-group { margin-bottom: 30px; }
.est-group:last-child { margin-bottom: 0; }

.est-legend {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dark-mute);
  margin-bottom: 12px;
}

/* Block options. Full width, stacked, each explaining itself. */
.est-opts { display: grid; gap: 10px; }
.est-opts.is-pair { grid-template-columns: 1fr 1fr; }

.est-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font: inherit;
  color: var(--text-dark);
  background: var(--paper);
  border: 1.5px solid var(--line-light);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease),
              transform .16s var(--ease);
}
.est-opt:hover { border-color: #BFBFB9; }
.est-opt:active { transform: translateY(1px); }
.est-opt.is-on {
  border-color: var(--red);
  background: #FFF5F6;
  box-shadow: inset 0 0 0 1px var(--red);
}
.est-opt:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.est-opt-name {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .01em;
  line-height: 1.15;
}
.est-opt-sub {
  display: block;
  font-size: 13.5px;
  color: var(--text-dark-mute);
  margin-top: 3px;
  line-height: 1.4;
}
.est-opt.is-on .est-opt-sub { color: #8A4550; }

/* --------------------------------------------------------------- the count */

.est-count {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: var(--paper-sunk);
  border-radius: 14px;
}

.est-count input[type=number] {
  width: 132px;
  flex: none;
  min-height: 68px;
  padding: 0 10px;
  font-family: var(--display);
  font-size: 34px;
  color: var(--text-dark);
  text-align: center;
  background: var(--paper);
  border: 1.5px solid var(--line-light);
  border-radius: 12px;
  -moz-appearance: textfield;
  font-variant-numeric: tabular-nums;
}
.est-count input[type=number]::-webkit-outer-spin-button,
.est-count input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.est-count input[type=number]:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.est-slider { flex: 1; min-width: 0; }

.est-slider input[type=range] {
  display: block;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: #DEDED9;
  border-radius: 999px;
  cursor: pointer;
}
.est-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid var(--paper);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  cursor: grab;
}
.est-slider input[type=range]::-moz-range-thumb {
  width: 32px; height: 32px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  cursor: grab;
}
.est-slider input[type=range]:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }

/* The scale. A flex row, so the numbers sit UNDER the track rather than
   running together as "1100200300400+". */
.est-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dark-mute);
}
.est-scale span { flex: 0 0 auto; }

/* ------------------------------------------------------------------ mobile */

@media (max-width: 980px) {
  .est { grid-template-columns: 1fr; gap: 32px; }
  /* Controls first on a phone: you cannot read a number you have not set yet,
     and a sticky figure would eat half a small screen. */
  .est-figure { position: static; order: 2; }
  .est-controls { order: 1; }
  .est-opts.is-pair { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .est-count { flex-direction: column; align-items: stretch; gap: 14px; }
  .est-count input[type=number] { width: 100%; }
}

/* ==========================================================================
   PRODUCT IMAGERY

   The site had exactly one image on it — a founder photo — while selling
   software nobody could see. Screenshots are not decoration here; they are
   the evidence that the thing exists.

   Everything below frames a REAL screenshot of the running product. Nothing
   is a mockup, and nothing is a stock photo of a lorry at sunset: a carrier
   has seen a thousand of those and learns nothing from another one.
   ========================================================================== */

/* The browser frame.

   A screenshot floating on a page looks like a slide. Framed as a browser
   window it reads as software, and the chrome gives the eye an edge to stop
   at — which matters most on the light bands, where a pale UI would
   otherwise bleed into the page background. */
.shot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line-light);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .04),
    0 24px 60px -24px rgba(0, 0, 0, .34);
}

.band-dark .shot,
.cta-band .shot { border-color: rgba(255, 255, 255, .12); }

.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--ink-700);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.shot-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .17);
  flex: none;
}
.shot-url {
  margin-left: 10px;
  padding: 3px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-light-mute);
  background: rgba(255, 255, 255, .05);
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The image itself.

   `display:block` kills the inline-baseline gap that otherwise leaves a
   stripe of frame colour under every screenshot. width/height attributes go
   on the tag so the browser reserves the space and the page does not jump as
   images load. */
.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* A caption. Says what the reader is looking at, because a dense dispatch
   board is not self-explanatory to someone seeing it for the first time. */
.figure { margin: 0; }
.figure figcaption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dark-mute);
}
.band-dark .figure figcaption,
.cta-band .figure figcaption { color: var(--text-light-mute); }

/* Text beside a screenshot. Alternates side with .is-flipped. */
.shot-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}
.shot-split.is-flipped .shot-split-copy { order: 2; }

/* Wider than the text column, deliberately: a dispatch board needs room to
   read as a dispatch board. Pulls out of the shell on big screens only. */
.shot-wide { margin-inline: calc(clamp(0px, 2vw, 40px) * -1); }

/* The phone. Used for the driver app, which is a different product and has
   to look like one. */
.shot-phone {
  width: min(300px, 78vw);
  margin-inline: auto;
  padding: 10px;
  background: #14161A;
  border-radius: 38px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .13),
    0 24px 60px -22px rgba(0, 0, 0, .5);
}
.shot-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

@media (max-width: 900px) {
  .shot-split { grid-template-columns: 1fr; gap: 28px; }
  .shot-split.is-flipped .shot-split-copy { order: 0; }
  .shot-wide { margin-inline: 0; }
}
