/* ===========================================================================
   OJASYS HOS -- marketing site
   Palette inherited from mobile/lib/src/app.dart (HOSTheme).
   Status colours validated for CVD separation; every state also carries a
   text label, so state is never encoded by colour alone.
   ======================================================================= */

:root {
  /* -- Daylight Cab (light) -- */
  --ground:      #EEF4F7;
  --ground-2:    #E3EDF2;
  --surface:     #FFFFFF;
  --surface-2:   #F4F9FB;
  --surface-3:   #E7F0F5;
  --line:        #CBDCE5;
  --line-soft:   #DDE9EF;

  --ink:         #06202B;
  --ink-2:       #3C5A68;
  --ink-3:       #6A8593;

  --accent:      #0A7CA3;
  --accent-hot:  #086A8C;
  --accent-wash: rgba(10, 124, 163, .09);
  --teal:        #1F7A8C;

  --safe:        #0F7F58;
  --warn:        #9C6B00;
  --crit:        #BE2F45;
  --safe-wash:   rgba(15, 127, 88, .12);
  --warn-wash:   rgba(156, 107, 0, .13);
  --crit-wash:   rgba(190, 47, 69, .11);

  --glow:        rgba(10, 124, 163, .13);
  --shadow:      0 1px 2px rgba(6,32,43,.06), 0 8px 24px -12px rgba(6,32,43,.22);
  --shadow-lg:   0 2px 4px rgba(6,32,43,.05), 0 24px 60px -24px rgba(6,32,43,.3);

  --font-sans: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:      #07161F;
    --ground-2:    #050F16;
    --surface:     #0D212D;
    --surface-2:   #102838;
    --surface-3:   #153244;
    --line:        rgba(40, 196, 239, .18);
    --line-soft:   rgba(40, 196, 239, .10);

    --ink:         #EDF8FB;
    --ink-2:       #9CB8C4;
    --ink-3:       #6F8B97;

    --accent:      #28C4EF;
    --accent-hot:  #6FDBFF;
    --accent-wash: rgba(40, 196, 239, .12);
    --teal:        #1F7A8C;

    --safe:        #6BC79A;
    --warn:        #DEE995;
    --crit:        #FF7D7D;
    --safe-wash:   rgba(107, 199, 154, .13);
    --warn-wash:   rgba(222, 233, 149, .12);
    --crit-wash:   rgba(255, 125, 125, .12);

    --glow:        rgba(40, 196, 239, .16);
    --shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
    --shadow-lg:   0 2px 4px rgba(0,0,0,.35), 0 28px 64px -28px rgba(0,0,0,.85);
  }
}

/* Viewer toggle must beat the media query in both directions */
:root[data-theme="dark"] {
  --ground:#07161F; --ground-2:#050F16; --surface:#0D212D; --surface-2:#102838;
  --surface-3:#153244; --line:rgba(40,196,239,.18); --line-soft:rgba(40,196,239,.10);
  --ink:#EDF8FB; --ink-2:#9CB8C4; --ink-3:#6F8B97;
  --accent:#28C4EF; --accent-hot:#6FDBFF; --accent-wash:rgba(40,196,239,.12); --teal:#1F7A8C;
  --safe:#6BC79A; --warn:#DEE995; --crit:#FF7D7D;
  --safe-wash:rgba(107,199,154,.13); --warn-wash:rgba(222,233,149,.12); --crit-wash:rgba(255,125,125,.12);
  --glow:rgba(40,196,239,.16);
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
  --shadow-lg:0 2px 4px rgba(0,0,0,.35), 0 28px 64px -28px rgba(0,0,0,.85);
}
:root[data-theme="light"] {
  --ground:#EEF4F7; --ground-2:#E3EDF2; --surface:#FFFFFF; --surface-2:#F4F9FB;
  --surface-3:#E7F0F5; --line:#CBDCE5; --line-soft:#DDE9EF;
  --ink:#06202B; --ink-2:#3C5A68; --ink-3:#6A8593;
  --accent:#0A7CA3; --accent-hot:#086A8C; --accent-wash:rgba(10,124,163,.09); --teal:#1F7A8C;
  --safe:#0F7F58; --warn:#9C6B00; --crit:#BE2F45;
  --safe-wash:rgba(15,127,88,.12); --warn-wash:rgba(156,107,0,.13); --crit-wash:rgba(190,47,69,.11);
  --glow:rgba(10,124,163,.13);
  --shadow:0 1px 2px rgba(6,32,43,.06), 0 8px 24px -12px rgba(6,32,43,.22);
  --shadow-lg:0 2px 4px rgba(6,32,43,.05), 0 24px 60px -24px rgba(6,32,43,.3);
}

/* -- Base --------------------------------------------------------------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; text-wrap: balance; line-height: 1.12; letter-spacing: -.022em; font-weight: 660; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .55;
}

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

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  background: transparent;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--ground-2); border-color: var(--accent); box-shadow: 0 6px 20px -8px var(--glow); }
.btn-primary:hover { background: var(--accent-hot); border-color: var(--accent-hot); box-shadow: 0 10px 28px -10px var(--glow); }
:root[data-theme="light"] .btn-primary, :root:not([data-theme]) .btn-primary { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .btn-primary { color: var(--ground-2); } }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }

.btn-quiet { color: var(--ink-2); padding: 8px 12px; }
.btn-quiet:hover { color: var(--accent); background: var(--accent-wash); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-wash); }

/* -- Nav ---------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { display: flex; align-items: center; gap: 20px; height: 66px; }

/* The supplied lockup already carries the wordmark and tagline, so no text
   sits beside it. Its wordmark is charcoal and its tagline olive -- unreadable
   on the dark ground -- so a recoloured variant is swapped in by theme.
   Two <img> elements rather than <picture>, because the viewer's theme toggle
   sets data-theme, which a media attribute cannot see. */
.brand { display: flex; align-items: center; margin-right: auto; }
.brand-lockup { display: block; width: auto; height: 38px; }
.foot-brand .brand-lockup { height: 44px; }

.lk-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .lk-light { display: none; }
  :root:not([data-theme]) .lk-dark  { display: block; }
}
:root[data-theme="dark"]  .lk-light { display: none; }
:root[data-theme="dark"]  .lk-dark  { display: block; }
:root[data-theme="light"] .lk-light { display: block; }
:root[data-theme="light"] .lk-dark  { display: none; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 13px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }

.nav-tools { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; }

.nav-mobile { display: none; border-top: 1px solid var(--line-soft); background: var(--surface); padding: 10px 0 16px; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 11px 24px; font-size: 15px; font-weight: 550; color: var(--ink-2); }
.nav-mobile a:hover { color: var(--accent); background: var(--accent-wash); }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta { display: none; }
}

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

.sec { padding-block: clamp(64px, 8vw, 108px); border-top: 1px solid var(--line-soft); }
.sec-alt { background: var(--surface-2); }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.sec-head p { color: var(--ink-2); font-size: 17px; }

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

.hero { position: relative; overflow: hidden; padding-block: clamp(52px, 7vw, 92px) clamp(64px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: -40% 20% auto -10%; height: 720px;
  background: radial-gradient(ellipse 50% 50% at 30% 40%, var(--glow), transparent 68%);
  pointer-events: none;
}
/* faint ELD 24-hour log grid, drawn from the subject's own world */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px calc(100% / 24)),
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 68px);
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(36px, 5vw, 68px); align-items: center; }

.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(34px, 5.1vw, 60px); letter-spacing: -.032em; font-weight: 700; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--ink-2); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line-soft); }
.hstat { display: flex; flex-direction: column; gap: 1px; padding-top: 14px; }
.hstat-n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 25px; font-weight: 660; letter-spacing: -.03em; color: var(--ink); }
.hstat-l { font-size: 12.5px; color: var(--ink-3); }

/* -- Instrument cluster ------------------------------------------------- */


/* -- The driver app, as it actually looks ------------------------------- */
/* Mirrors mobile/lib/src/screens/dashboard/dashboard_screen.dart: status pill
   row, two circular gauges, violation dots, cycle bar, alert band, secondary
   metrics. The app screen keeps its own dark palette in BOTH site themes --
   a phone does not repaint itself because the surrounding page is light. */

.phone {
  --s-bg:       #07161F;
  --s-surface:  #0D212D;
  --s-surface2: #102838;
  --s-surface3: #153244;
  --s-ink:      #EDF8FB;
  --s-muted:    #9CB8C4;
  --s-faint:    #6F8B97;
  --s-safe:     #6BC79A;
  --s-warn:     #DEE995;
  --s-crit:     #FF7D7D;
  --s-accent:   #28C4EF;

  width: 100%; max-width: 320px; margin-inline: auto;
  background: #041016;
  border: 8px solid #16232B;
  border-radius: 34px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.05) inset;
  overflow: hidden;
}
.screen { background: var(--s-bg); color: var(--s-ink); font-size: 13px; }

/* Device status bar. Deliberately shows no cellular service -- the whole
   product claim is that the clocks do not need it. */
.statusbar {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px 5px;
  font-size: 10.5px; font-weight: 600; color: var(--s-muted);
  font-variant-numeric: tabular-nums;
}
.statusbar .sb-right { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.statusbar .i { width: 12px; height: 12px; }
.sb-offline { color: var(--s-warn); }

.appbar {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px;
  background: var(--s-surface);
  border-bottom: 1px solid rgba(40,196,239,.10);
}
.appbar-logo { width: 20px; height: 20px; flex: none; }
.appbar-title { font-size: 14.5px; font-weight: 640; letter-spacing: -.015em; }
.appbar-sync {
  margin-left: auto; display: flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 600; color: var(--s-faint);
}
.appbar-sync .i { width: 12px; height: 12px; }

.screen-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 11px; }

/* Duty status pill row */
.pill-row { display: flex; align-items: center; gap: 7px; }
.duty-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(40,196,239,.13); color: var(--s-accent);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
}
.duty-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.jur-badge {
  margin-left: auto;
  padding: 4px 9px; border-radius: 5px;
  background: var(--s-surface2); color: var(--s-muted);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em;
}

/* Two circular gauges, side by side */
.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gauge { position: relative; aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-track { fill: none; stroke: var(--s-surface3); stroke-width: 11; }
/* Fills CLOCKWISE from 12 o'clock as time is consumed -- the arc shows time
   USED, matching _GaugePainter (fraction = elapsed / total). */
.g-arc  { fill: none; stroke-width: 11; stroke-linecap: round;
          transition: stroke-dashoffset .3s linear, stroke .3s; }
.g-glow { fill: none; stroke-width: 16; stroke-linecap: round; opacity: .22;
          filter: blur(4px);
          transition: stroke-dashoffset .3s linear, stroke .3s; }
@media (prefers-reduced-motion: reduce) { .g-arc, .g-glow { transition: none; } }

.gauge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 0 12px; text-align: center;
}
.g-label { font-size: 8px; font-weight: 700; letter-spacing: .05em; color: var(--s-muted); line-height: 1.15; }
.g-val { display: flex; align-items: flex-end; gap: 2px; }
.g-val b {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 25px; font-weight: 640; letter-spacing: -.04em; line-height: .95;
}
.g-val i { font-style: normal; font-size: 8.5px; font-weight: 700; color: var(--s-faint); padding-bottom: 3px; }
.g-state { font-size: 10px; font-weight: 600; }

.st-safe { color: var(--s-safe); }
.st-warn { color: var(--s-warn); }
.st-crit { color: var(--s-crit); }

/* Violation dots -- one per violation logged this cycle */
.viol-dots { display: flex; align-items: center; gap: 5px; justify-content: center; min-height: 8px; }
.viol-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--s-crit); }
.viol-dot.spent { background: var(--s-surface3); }

/* Cycle remaining bar */
.cycle { display: flex; flex-direction: column; gap: 5px; }
.cycle-top { display: flex; align-items: baseline; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; color: var(--s-muted); }
.cycle-val { margin-left: auto; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 11.5px; font-weight: 700; color: var(--s-ink); }
.cycle-track { height: 7px; border-radius: 4px; background: var(--s-surface3); overflow: hidden; }
.cycle-fill { height: 100%; border-radius: 4px; transition: width .3s linear, background .3s; }

/* Alert band -- only present once a limit is close or breached */
.alert-band {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 11px; border-radius: 7px;
  font-size: 11px; line-height: 1.35; font-weight: 550;
}
.alert-band .i { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.alert-band.st-warn { background: rgba(222,233,149,.12); color: var(--s-warn); }
.alert-band.st-crit { background: rgba(255,125,125,.13); color: var(--s-crit); }
.alert-ack {
  margin-top: 5px; padding: 3px 9px; border-radius: 4px;
  border: 1px solid currentColor; background: transparent; color: inherit;
  font-size: 9.5px; font-weight: 700; letter-spacing: .05em; cursor: pointer;
}

/* -- Compact screens: Alerts and Change Status -------------------------- */
/* Mirrors alerts_screen.dart and status_change_screen.dart. Smaller type
   scale rather than a CSS transform, so nothing blurs. */
/* Stacked at 300px these are nearly hero-sized, so they carry almost the
   same type scale -- only the chrome is trimmed. */
.phone-sm { border-width: 7px; border-radius: 30px; }
.phone-sm .screen { font-size: 12.5px; }
.phone-sm .statusbar { padding: 6px 13px 4px; font-size: 9.5px; }
.phone-sm .statusbar .i { width: 11px; height: 11px; }
.phone-sm .appbar { padding: 8px 13px; }
.phone-sm .appbar-title { font-size: 13.5px; }
.phone-sm .screen-body { padding: 11px 12px 13px; gap: 10px; }

.sc-tabs { display: flex; gap: 18px; padding: 0 13px; background: var(--s-surface); border-bottom: 1px solid rgba(40,196,239,.10); }
.sc-tab { padding: 7px 0 6px; font-size: 11px; font-weight: 600; color: var(--s-faint); border-bottom: 2px solid transparent; }
.sc-tab.on { color: var(--s-accent); border-bottom-color: var(--s-accent); }

/* Alert card: coloured band, then type / title / body / acknowledge */
.a-card { border-radius: 13px; overflow: hidden; border: 1px solid; }
.a-band { display: flex; align-items: center; gap: 6px; padding: 7px 11px; }
.a-band .i { width: 12px; height: 12px; }
.a-sev { font-size: 9.5px; font-weight: 800; letter-spacing: .07em; }
.a-time { margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; color: var(--s-faint); }
.a-body { padding: 10px 11px 11px; background: var(--s-surface); }
.a-type { font-family: var(--font-mono); font-size: 9px; color: var(--s-faint); letter-spacing: .04em; }
.a-title { font-size: 12.5px; font-weight: 650; margin-top: 3px; }
.a-text { font-size: 10.5px; line-height: 1.45; color: var(--s-muted); margin-top: 4px; }
.a-ack { display: block; width: 100%; margin-top: 10px; padding: 8px; border: 0; border-radius: 8px;
         color: var(--s-bg); font-size: 10px; font-weight: 800; letter-spacing: .06em; cursor: pointer; }

.a-crit { border-color: rgba(255,125,125,.28); }
.a-crit .a-band { background: rgba(255,125,125,.13); color: var(--s-crit); }
.a-crit .a-title { color: var(--s-crit); }
.a-crit .a-ack { background: var(--s-crit); }
.a-warn { border-color: rgba(222,233,149,.28); }
.a-warn .a-band { background: rgba(222,233,149,.12); color: var(--s-warn); }
.a-warn .a-title { color: var(--s-warn); }

/* Duty status tiles */
.d-tile { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px;
          background: var(--s-surface); border: 1px solid transparent; }
.d-tile.on { border-color: currentColor; background: var(--s-surface2); }
.d-ico { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center;
         background: rgba(255,255,255,.06); }
.d-ico .i { width: 17px; height: 17px; }
.d-name { font-size: 12.5px; font-weight: 650; color: var(--s-ink); }
.d-desc { font-size: 10px; color: var(--s-faint); margin-top: 1px; }
.d-check { margin-left: auto; }
.d-check .i { width: 15px; height: 15px; }
.d-gps { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--s-faint); padding-top: 3px; }
.d-gps .i { width: 12px; height: 12px; }

/* Secondary metrics card */
.metrics { background: var(--s-surface); border-radius: 9px; padding: 4px 11px; }
.metric { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(40,196,239,.08); }
.metric:last-child { border-bottom: 0; }
.metric-k { font-size: 11px; color: var(--s-muted); }
.metric-v { margin-left: auto; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 660; }


.is-safe { color: var(--safe); }
.is-warn { color: var(--warn); }
.is-crit { color: var(--crit); }

.demo { display: flex; flex-direction: column; gap: 14px; }
.demo-ctl {
  display: flex; align-items: center; gap: 11px;
  width: 100%; max-width: 336px; margin-inline: auto;
  padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
}
.demo-cap {
  max-width: 336px; margin-inline: auto; text-align: center;
  font-size: 12.5px; line-height: 1.45; color: var(--ink-3);
}
.scrub { flex: 1; -webkit-appearance: none; appearance: none; background: transparent; height: 20px; cursor: grab; }
.scrub:active { cursor: grabbing; }
.scrub::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--surface-3); border: 1px solid var(--line-soft); }
.scrub::-moz-range-track { height: 4px; border-radius: 2px; background: var(--surface-3); border: 1px solid var(--line-soft); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -6px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
.scrub::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
.scrub-note { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
}

/* -- Jurisdiction switcher ---------------------------------------------- */

.jur-rail { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.jur-tab {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 15px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.jur-tab:hover { border-color: var(--accent); color: var(--accent); }
.jur-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--ground-2); }
:root[data-theme="light"] .jur-tab[aria-selected="true"], :root:not([data-theme]) .jur-tab[aria-selected="true"] { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .jur-tab[aria-selected="true"] { color: var(--ground-2); } }
.jur-code { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; opacity: .72; }
.jur-name { font-size: 14px; font-weight: 600; }

.jur-panel { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.jur-side { background: var(--surface); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.jur-side h3 { font-size: 22px; }
.jur-body { font-size: 14.5px; color: var(--ink-2); }
.jur-meta { display: flex; flex-direction: column; gap: 7px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.jur-meta-row { display: flex; gap: 10px; font-size: 12.5px; }
.jur-meta-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); width: 74px; flex: none; padding-top: 3px; }
.jur-meta-v { color: var(--ink-2); }

.jur-rules { background: var(--surface); padding: 26px; }
.rule-list { display: flex; flex-direction: column; gap: 0; }
.rule {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.rule:last-child { border-bottom: 0; }
.rule-k { font-size: 14px; color: var(--ink-2); }
.rule-v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 15.5px; font-weight: 660; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.jur-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag {
  padding: 4px 9px; border-radius: 3px;
  background: var(--accent-wash); color: var(--accent);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .06em;
}
@media (max-width: 860px) { .jur-panel { grid-template-columns: 1fr; } }

/* -- Capability grid ---------------------------------------------------- */

/* Two explicit columns for exactly six cards -- 2 x 3, never a stray empty
   cell. `auto-fit` previously resolved to four columns at desktop width and
   left two empty cells showing the grid's own translucent-cyan background. */
/* Cards take the width they need; the screens column is sized to one phone,
   stacked, so each renders large enough to actually read. */
/* Both columns stretch to the taller one, so the card grid and the screen
   stack share a top and bottom edge. `grid-auto-rows: 1fr` spreads the extra
   height evenly across the three card rows instead of pooling it at the
   bottom, and the screens spread to meet the same baseline. */
.cap-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 3.5vw, 52px); align-items: stretch; }
.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cap-screens { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.cap-screens figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cap-screens figcaption { font-size: 12px; line-height: 1.45; color: var(--ink-3); text-align: center; }
.cap-screens figcaption b { display: block; color: var(--ink-2); font-size: 12.5px; font-weight: 650; margin-bottom: 1px; }
@media (max-width: 1040px) {
  .cap-layout { grid-template-columns: 1fr; }
  .cap-screens { max-width: 300px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr; }
}
.cap {
  background: var(--surface);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 11px;
  transition: background .18s;
}
.cap:hover { background: var(--surface-2); }
.cap-ico { width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); }
.cap h3 { font-size: 16.5px; letter-spacing: -.015em; }
.cap p { font-size: 14px; color: var(--ink-2); }
.cap-note { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em; margin-top: auto; padding-top: 6px; }

/* -- Steps (a real sequence -- numbering earns its place) ---------------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; counter-reset: s; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--line); position: relative; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; top: -2px; left: 0; padding-top: 20px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--accent);
}
.step h3 { font-size: 17px; margin-top: 20px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

/* -- Fleet panel -------------------------------------------------------- */

.fleet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.fleet-copy { display: flex; flex-direction: column; gap: 18px; }
.fleet-list { display: flex; flex-direction: column; gap: 11px; margin-top: 2px; }
.fleet-li { display: flex; gap: 11px; font-size: 14.5px; color: var(--ink-2); }
.fleet-li .i { color: var(--safe); margin-top: 3px; }

.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.board-top { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.board-title { font-size: 13.5px; font-weight: 650; }
.board-sub { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }

.board-bar { padding: 20px 18px 8px; }
.bar-track { display: flex; gap: 2px; height: 26px; }
.bar-seg { height: 100%; border-radius: 2px; min-width: 3px; transition: flex-grow .4s; }
.bar-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 18px 18px; border-bottom: 1px solid var(--line); }
.leg { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.leg-sw { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.leg-n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 660; color: var(--ink); }

/* Scrolls internally so a longer roster cannot stretch the panel past the
   copy beside it. */
.board-rows { display: flex; flex-direction: column; max-height: 264px; overflow-y: auto; }
.brow { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); transition: background .15s; }
.brow:last-child { border-bottom: 0; }
.brow:hover { background: var(--surface-2); }
.brow-name { font-size: 14px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow-jur { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--ink-3); }
.brow-time { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 640; }
@media (max-width: 880px) { .fleet-grid { grid-template-columns: 1fr; } }

/* -- Testimonials ------------------------------------------------------- */

.quote-wrap { position: relative; }
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 24px;
  min-height: 260px;
}
.quote-mark { color: var(--accent); opacity: .4; }
.quote-mark .i { width: 30px; height: 30px; }
.quote-txt { font-size: clamp(18px, 2.2vw, 23px); line-height: 1.5; letter-spacing: -.017em; color: var(--ink); text-wrap: pretty; }
.quote-by { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: .02em;
  background: var(--accent-wash); color: var(--accent);
  border: 1px solid var(--line);
}
.by-name { font-size: 15px; font-weight: 650; }
.by-role { font-size: 13px; color: var(--ink-2); }
.by-meta { margin-left: auto; text-align: right; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.quote-nav { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.dots { display: flex; gap: 7px; margin-left: 6px; }
.dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: background .2s, width .2s; }
.dot:hover { background: var(--ink-3); }
.dot[aria-current="true"] { width: 22px; border-radius: 4px; background: var(--accent); }
.demo-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 3px;
  border: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}

/* -- Pricing ------------------------------------------------------------ */

.bill-toggle { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.bill-toggle button { padding: 7px 17px; border: 0; border-radius: 999px; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.bill-toggle button:hover { color: var(--ink); }
.bill-toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .bill-toggle button[aria-pressed="true"] { color: var(--ground-2); } }
:root[data-theme="dark"] .bill-toggle button[aria-pressed="true"] { color: var(--ground-2); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px; margin-top: 34px; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.plan:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plan-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-flag {
  align-self: flex-start; padding: 3px 9px; border-radius: 3px;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .plan-flag { color: var(--ground-2); } }
:root[data-theme="dark"] .plan-flag { color: var(--ground-2); }
.plan h3 { font-size: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-amt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 36px; font-weight: 680; letter-spacing: -.045em; }
.plan-per { font-size: 13px; color: var(--ink-3); }
.plan-note { font-size: 12.5px; color: var(--ink-3); margin-top: -10px; }
.plan-feats { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; border-top: 1px solid var(--line-soft); margin-top: 2px; }
.pfeat { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink-2); padding-top: 4px; }
.pfeat .i { color: var(--safe); margin-top: 2px; }
.plan .btn { margin-top: auto; width: 100%; }

/* -- Download ----------------------------------------------------------- */

.dl {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: center;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.dl::before {
  content: ""; position: absolute; inset: auto -10% -60% 40%; height: 420px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--glow), transparent 70%);
  pointer-events: none;
}
.dl-copy { position: relative; display: flex; flex-direction: column; gap: 14px; }
.dl-copy h2 { font-size: clamp(24px, 3vw, 34px); }
.dl-copy p { color: var(--ink-2); max-width: 46ch; }
.store-row { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 16px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .16s, background .16s, transform .14s;
}
.store:hover { border-color: var(--accent); background: var(--accent-wash); transform: translateY(-2px); }
.store:active { transform: translateY(0); }
.store svg { width: 26px; height: 26px; flex: none; }
.store-txt { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store-1 { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.store-2 { font-size: 16px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); }
@media (max-width: 780px) { .dl { grid-template-columns: 1fr; } }

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

.foot { border-top: 1px solid var(--line); background: var(--surface-2); padding-block: 56px 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand p { font-size: 13.5px; color: var(--ink-2); max-width: 34ch; }
.foot-col h4 { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-col a { font-size: 13.5px; color: var(--ink-2); transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.foot-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot-bar p { font-size: 12.5px; color: var(--ink-3); }
.foot-bar .mono { font-size: 11.5px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* -- CMS drawer --------------------------------------------------------- */

.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(3, 12, 18, .55); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .24s; }
.scrim.open { opacity: 1; pointer-events: auto; }

.cms {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(430px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -24px rgba(0,0,0,.5);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.32, .72, 0, 1);
}
.cms.open { transform: none; }
@media (prefers-reduced-motion: reduce) { .cms, .scrim { transition: none; } }

.cms-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cms-top h2 { font-size: 15px; }
.cms-top p { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cms-scroll { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 22px; }
.cms-group { display: flex; flex-direction: column; gap: 11px; }
.cms-group > h3 { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.fld input, .fld textarea, .fld select {
  width: 100%; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink);
  font-size: 13.5px; line-height: 1.45;
  transition: border-color .15s, background .15s;
}
.fld textarea { resize: vertical; min-height: 82px; }
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--accent); background: var(--surface); outline: none; box-shadow: 0 0 0 3px var(--accent-wash); }
.cms-row { display: flex; gap: 8px; }
.cms-row .fld { flex: 1; }
.cms-foot { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.cms-foot .btn { flex: 1; padding: 9px 12px; font-size: 13px; }
.cms-hint { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.cms-hint code { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 550;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .i { color: var(--accent); }
