/* CarStream marketing site — "Кокпіт" design.
   Static pages, shared by uk (/) and en (/en/) versions. */

:root {
  --bg-0: #05080d;
  --bg-band: #070c12;
  --bg-2: #0a1018;
  --bg-3: #0e1620;
  --panel-grad: linear-gradient(180deg, #0b1118, #080d14);
  --line-0: #121b27;
  --line-1: #16202e;
  --line-2: #1b2836;
  --line-3: #24364a;
  --ink-0: #eef4fa;
  --ink-1: #dfe7ef;
  --ink-2: #aebbca;
  --ink-3: #8a98a8;
  --ink-4: #7e8b9c;
  --ink-5: #5c6b7c;
  --ink-6: #45556a;
  --accent: #56b8d4;
  --accent-hi: #74c8e0;
  --accent-dim: #2e7d96;
  --good: #46c08a;
  --warn: #d9a05b;
  --bad: #d96b5b;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

/* overflow-x: clip (not hidden) — hidden on body forms a scroll container
   in Chrome and silently kills every position:sticky on the page. */
html, body { margin: 0; background: var(--bg-0); overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
::selection { background: rgba(86, 184, 212, 0.35); }
a { color: inherit; }

@keyframes cs-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes cs-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cs-dash { to { stroke-dashoffset: -200; } }
@keyframes cs-flow { to { stroke-dashoffset: -36; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 8, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-0);
}
.nav-inner { display: flex; align-items: center; gap: 36px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-1); }
.brand svg { display: block; border-radius: 5px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
}
.nav-links { display: flex; gap: 26px; flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.nav-links a { color: inherit; text-decoration: none; padding: 4px 0; white-space: nowrap; }
.nav-links a:hover { color: var(--ink-1); }
.nav-links a.active { color: var(--ink-1); border-bottom: 2px solid var(--accent); }
/* mobile-only page-nav chip strip (rendered after the header; hidden on desktop) */
.page-chips { display: none; }
.nav-side { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; font-family: var(--font-mono); font-size: 11px; }
.lang a { padding: 5px 9px; text-decoration: none; color: var(--ink-5); }
.lang a:hover { color: var(--ink-3); }
.lang a.active { background: #142231; color: var(--accent); }

.btn-primary {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--bg-0); background: var(--accent);
  padding: 9px 18px; border-radius: 8px; text-decoration: none; white-space: nowrap;
  transition: background 140ms ease, transform 140ms ease;
}
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--ink-1); border: 1px solid var(--line-3);
  padding: 8px 18px; border-radius: 8px; text-decoration: none; white-space: nowrap;
  background: rgba(14, 22, 32, 0.5);
  transition: background 140ms ease, border-color 140ms ease;
}
.btn-ghost:hover { border-color: #3a566f; background: var(--bg-3); }
.btn-lg { font-size: 14px; padding: 14px 26px; border-radius: 10px; }
.btn-primary.btn-lg { font-weight: 800; box-shadow: 0 14px 40px rgba(86, 184, 212, 0.18); }
.btn-ghost.btn-lg { padding: 13px 26px; }

/* ── Hero (home) ─────────────────────────────────────────────────── */
.hero {
  position: relative; display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 56px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.badge {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; color: var(--accent);
  border: 1px solid #1b3340; background: rgba(86, 184, 212, 0.06);
  border-radius: 999px; padding: 7px 14px;
}
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--good); animation: cs-pulse 2.2s ease-in-out infinite; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.01em;
  margin: 0; color: var(--ink-0);
}
.hero h1 .hl { color: var(--accent); }
.hero-sub { font-size: 17px; line-height: 1.65; color: var(--ink-3); max-width: 440px; margin: 0; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 14px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 3px; }
.hero-stat b { font-family: var(--font-display); font-weight: 500; font-size: 21px; color: var(--ink-0); }
.hero-stat span { font-size: 12px; color: var(--ink-5); }
.hero-stat-div { width: 1px; background: var(--line-1); }

/* dashboard mockup */
.mock-wrap { position: relative; }
.mock-glow {
  position: absolute; inset: -60px -120px -60px 0;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(86, 184, 212, 0.07), transparent 70%);
  pointer-events: none;
}
.mock {
  position: relative; background: var(--panel-grad);
  border: 1px solid var(--line-2); border-radius: 16px; padding: 18px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}
.mock-head {
  display: flex; align-items: center; gap: 12px;
  padding: 2px 4px 14px; border-bottom: 1px solid var(--line-0);
}
.mock-head .dot-live { width: 8px; height: 8px; }
.mock-car { font-family: var(--font-mono); font-size: 12px; color: var(--ink-1); }
.mock-live {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--good);
  border: 1px solid rgba(70, 192, 138, 0.35); border-radius: 5px; padding: 2px 7px;
}
.mock-where { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-5); }
.mock-gauges { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 16px 4px 4px; justify-items: center; }

.gauge { position: relative; }
.gauge svg { display: block; }
.gauge-track { fill: none; stroke: var(--line-1); stroke-width: 9; stroke-linecap: round; }
.gauge-arc { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray 1s linear; }
.gauge-label { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-5); }
.gauge-val {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: 21px;
  color: var(--ink-0); pointer-events: none;
}
.gauge-sm .gauge-val { padding-top: 10px; font-size: 15px; }
.arc-accent { stroke: var(--accent); }
.arc-ink { stroke: var(--ink-1); }
.arc-good { stroke: var(--good); }
.arc-warn { stroke: var(--warn); }

.mock-chart { padding: 8px 4px; }
.mock-chart-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 6px; }
.mono-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-5); }
.mono-val { font-family: var(--font-mono); font-size: 10px; color: var(--accent); }

.mock-bottom { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; padding: 6px 4px 4px; }
.mock-map { position: relative; background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 10px; height: 130px; overflow: hidden; }
.mock-map svg { position: absolute; inset: 0; }
.map-dot { position: absolute; right: 13px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(86, 184, 212, 0.18); }
.map-place { position: absolute; left: 10px; bottom: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-5); }
.mock-tiles { display: flex; flex-direction: column; gap: 8px; }
.mock-tile {
  flex: 1; background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 10px;
  padding: 9px 12px; display: flex; flex-direction: column; justify-content: center; gap: 3px;
}
.mock-tile .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--ink-5); }
.mock-tile .v { display: flex; align-items: baseline; gap: 6px; }
.mock-tile .v b { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--ink-0); }
.mock-tile .v span { font-size: 11px; color: var(--ink-5); }

/* ── Ticker ──────────────────────────────────────────────────────── */
.ticker { border-top: 1px solid var(--line-0); border-bottom: 1px solid var(--line-0); background: var(--bg-band); overflow: hidden; position: relative; }
.ticker::before, .ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-band), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg-band), transparent); }
.ticker-track { display: flex; width: max-content; animation: cs-marquee 38s linear infinite; padding: 11px 0; }
.ticker-set { display: flex; gap: 44px; padding-right: 44px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-5); white-space: nowrap; }
.ticker-set b { font-weight: 400; color: var(--ink-1); }
.ticker-set b.ok { color: var(--good); }

/* ── Section headers ─────────────────────────────────────────────── */
.kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; color: var(--accent); }
.sec-head { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.sec-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.15; margin: 0; color: var(--ink-0);
}
.sec-head p { font-size: 16px; line-height: 1.65; color: var(--ink-3); margin: 0; text-wrap: pretty; }

/* ── Features master-detail (home) ───────────────────────────────── */
.features { padding-top: 96px; padding-bottom: 80px; }
.features .sec-head { margin-bottom: 48px; }
.feature-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.feature-menu { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 92px; }
.feature-menu button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 13px 16px; border-radius: 11px; border: 1px solid transparent;
  background: transparent; color: var(--ink-3); cursor: pointer; text-align: left; width: 100%;
  font-family: var(--font-body);
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.feature-menu button .n { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; }
.feature-menu button .t { font-size: 14.5px; font-weight: 700; }
.feature-menu button.active {
  border-color: var(--line-2);
  background: linear-gradient(180deg, var(--bg-3), #0b1118);
  color: var(--ink-1);
}
.feature-menu .all-link { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--accent); text-decoration: none; padding: 10px 16px; }
.feature-menu .all-link:hover { color: var(--accent-hi); }

.feature-detail { background: var(--panel-grad); border: 1px solid var(--line-2); border-radius: 16px; padding: 30px; min-height: 480px; }
.feature-pane { display: none; flex-direction: column; gap: 18px; }
.feature-pane.active { display: flex; }
.feature-pane h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0; color: var(--ink-0); }
.feature-pane > p { font-size: 15px; line-height: 1.65; color: var(--ink-3); margin: 0; max-width: 560px; text-wrap: pretty; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line-2); background: var(--bg-2);
  border-radius: 999px; padding: 6px 13px;
}

.pane-gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 6px; }
.pane-gauge { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; padding: 14px 8px 8px; display: flex; justify-content: center; }

/* DTC rows */
.dtc-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.dtc-row { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.dtc-row.cleared { opacity: 0.65; }
.dtc-code {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; flex-shrink: 0;
  border-radius: 7px; padding: 5px 10px;
}
.dtc-code.bad { color: var(--bad); border: 1px solid rgba(217, 107, 91, 0.35); background: rgba(217, 107, 91, 0.08); }
.dtc-code.dim { color: var(--ink-3); border: 1px solid var(--line-2); background: var(--bg-3); }
.dtc-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dtc-info b { font-size: 13.5px; font-weight: 700; color: var(--ink-1); }
.dtc-row.cleared .dtc-info b { color: var(--ink-2); }
.dtc-info span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-5); }
.dtc-state { font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; flex-shrink: 0; }
.dtc-state.bad { color: var(--bad); }
.dtc-state.dim { color: var(--ink-5); }
.dtc-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 2px; }
.dtc-clear {
  font-size: 13px; font-weight: 700; color: var(--bad);
  border: 1px solid rgba(217, 107, 91, 0.4); border-radius: 9px; padding: 9px 18px; cursor: default;
}

/* trips pane */
.pane-cols-2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; margin-top: 6px; }
.trip-rows { display: flex; flex-direction: column; gap: 10px; }
.trip-row { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.trip-row > div { display: flex; flex-direction: column; gap: 2px; }
.trip-row .r { text-align: right; }
.trip-row b { font-size: 13.5px; font-weight: 700; color: var(--ink-1); }
.trip-row span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-5); }
.pane-map { position: relative; background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; overflow: hidden; min-height: 190px; }
.pane-map svg { position: absolute; inset: 0; }
.pane-map .map-tag { position: absolute; left: 12px; top: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-5); }
.pane-map-lg { height: 230px; margin-top: 6px; min-height: 0; }
.map-pin-label { position: absolute; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--accent); }
.map-callout { position: absolute; background: var(--bg-3); border: 1px solid var(--line-3); border-radius: 8px; padding: 7px 11px; font-size: 12px; font-weight: 600; color: var(--ink-1); }

/* camera scene */
.cam-scene { position: relative; background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; overflow: hidden; height: 230px; margin-top: 6px; }
.cam-road { position: absolute; left: 0; right: 0; top: 92px; height: 56px; background: var(--bg-3); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.cam-lane { position: absolute; left: 0; right: 0; top: 119px; height: 2px; background: repeating-linear-gradient(90deg, #2a3a4d 0 26px, transparent 26px 52px); }
.cam-car { position: absolute; left: 56px; top: 104px; width: 56px; height: 30px; background: var(--accent); border-radius: 8px 14px 6px 6px; }
.cam-sign { position: absolute; right: 96px; top: 54px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cam-sign .circle {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--bad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--ink-0); background: var(--bg-3);
}
.cam-sign .pole { width: 3px; height: 60px; background: #2a3a4d; }
.cam-voice {
  position: absolute; left: 130px; top: 34px; background: var(--bg-3); border: 1px solid var(--accent-dim);
  border-radius: 12px 12px 12px 3px; padding: 11px 16px; display: flex; align-items: center; gap: 10px;
}
.cam-voice b { font-size: 14px; font-weight: 700; color: var(--ink-1); }
.cam-ruler { position: absolute; left: 60px; bottom: 14px; right: 16px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--ink-5); }

/* rules pane */
.pane-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.rule-rows { display: flex; flex-direction: column; gap: 10px; }
.rule-row { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.toggle { width: 34px; height: 20px; background: var(--accent-dim); border-radius: 999px; position: relative; flex-shrink: 0; }
.toggle::after { content: ''; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; background: var(--ink-1); border-radius: 50%; }
.toggle.off { background: var(--line-2); }
.toggle.off::after { right: auto; left: 2px; background: var(--ink-5); }
.rule-row > div { display: flex; flex-direction: column; gap: 2px; }
.rule-row b { font-size: 13.5px; font-weight: 700; color: var(--ink-1); }
.rule-row.off b { color: var(--ink-3); }
.rule-row span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-5); }
.push-stack { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.push-card {
  background: var(--bg-3); border: 1px solid var(--line-3); border-radius: 12px; padding: 13px 15px;
  display: flex; gap: 11px; align-items: flex-start; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.push-card.older { border-color: var(--line-2); opacity: 0.75; box-shadow: none; }
.push-card svg { flex-shrink: 0; margin-top: 1px; border-radius: 4px; }
.push-card > div { display: flex; flex-direction: column; gap: 3px; }
.push-head { display: flex; gap: 8px; align-items: baseline; }
.push-head b { font-size: 12.5px; font-weight: 800; color: var(--ink-1); }
.push-head span { font-family: var(--font-mono); font-size: 10px; color: var(--ink-5); }
.push-body { font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* sharing pane */
.share-card { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.share-link-row { display: flex; align-items: center; gap: 10px; background: var(--bg-3); border: 1px solid var(--line-3); border-radius: 10px; padding: 11px 14px; }
.share-link-row code { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.share-copy { font-size: 12px; font-weight: 800; color: var(--bg-0); background: var(--accent); border-radius: 7px; padding: 5px 11px; flex-shrink: 0; }
.share-ttls { display: flex; gap: 8px; }
.ttl { font-size: 12px; font-weight: 700; color: var(--ink-5); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }
.ttl.active { color: var(--ink-1); background: #142231; border-color: transparent; }

/* ── Summary band (home) ─────────────────────────────────────────── */
.band { border-top: 1px solid var(--line-0); background: var(--bg-band); }
.band-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.band-copy { display: flex; flex-direction: column; gap: 16px; }
.band-copy h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.18; margin: 0; color: var(--ink-0); }
.band-copy p { font-size: 15.5px; line-height: 1.65; color: var(--ink-3); margin: 0; text-wrap: pretty; }
.band-copy .more { font-size: 13.5px; font-weight: 700; color: var(--accent); text-decoration: none; }
.band-copy .more:hover { color: var(--accent-hi); }

.summary-card {
  background: var(--panel-grad); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 14px;
}
.summary-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line-0); }
.summary-head .t { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-1); }
.summary-head .r { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-5); }
.kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.kpi { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 3px; }
.kpi b { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--ink-0); }
.kpi span { font-size: 11.5px; color: var(--ink-5); }
.summary-chart { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; padding: 14px; }
.summary-chart-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; }
.summary-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stat-pill { font-family: var(--font-mono); font-size: 11px; color: var(--ink-1); background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 7px; padding: 5px 10px; }
.summary-share { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--bg-0); background: var(--accent); border-radius: 7px; padding: 5px 12px; }

/* ── CTA ─────────────────────────────────────────────────────────── */
.cta-sec { padding-top: 100px; padding-bottom: 100px; }
.cta-box {
  position: relative; border: 1px solid var(--line-2); border-radius: 20px;
  background: var(--panel-grad); padding: 64px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 90% at 50% 110%, rgba(86, 184, 212, 0.1), transparent 65%);
  pointer-events: none;
}
.cta-box h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.15; margin: 0; color: var(--ink-0); position: relative;
}
.cta-box p { font-size: 16px; line-height: 1.6; color: var(--ink-3); margin: 0; max-width: 460px; position: relative; text-wrap: pretty; }
.cta-box .hero-ctas { justify-content: center; position: relative; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line-0); }
.footer-grid { display: flex; gap: 48px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 40px; }
.footer-brand { flex: 1.4; min-width: 240px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand p { font-size: 13.5px; line-height: 1.6; color: var(--ink-5); margin: 0; max-width: 280px; }
.footer-col { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 10px; }
.footer-col .h { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--ink-5); }
.footer-col a { font-size: 13.5px; color: var(--ink-3); text-decoration: none; }
.footer-col a:hover { color: var(--ink-1); }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 36px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-6);
}
.footer-slim { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.footer-slim-links { display: flex; gap: 22px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.footer-slim-links a { color: inherit; text-decoration: none; }
.footer-slim-links a:hover { color: var(--ink-1); }
.footer-slim .c { font-family: var(--font-mono); font-size: 11px; color: var(--ink-6); }

/* ── Inner pages (features / how it works) ───────────────────────── */
.page-hero { display: flex; flex-direction: column; gap: 18px; padding-top: 72px; padding-bottom: 48px; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.08; margin: 0; color: var(--ink-0); max-width: 820px;
}
.page-hero p { font-size: 17px; line-height: 1.65; color: var(--ink-3); margin: 0; max-width: 580px; text-wrap: pretty; }

.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; padding-bottom: 80px; }
.toc { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; }
.toc .h { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--ink-5); padding: 0 14px 10px; }
/* `>` keeps these rules off the .btn-* CTAs nested in .toc-ctas */
.toc > a {
  display: flex; gap: 10px; align-items: baseline; padding: 9px 14px; border-radius: 9px;
  text-decoration: none; color: var(--ink-3);
}
.toc > a:hover { background: #0b1118; color: var(--ink-1); }
/* scroll-spy highlight (desktop sidebar only — the mobile chip strip stays plain) */
@media (min-width: 1021px) {
  .toc > a.active { background: linear-gradient(180deg, var(--bg-3), #0b1118); border: 1px solid var(--line-2); color: var(--ink-1); margin: -1px; }
}
.toc > a .n { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.toc > a .t { font-size: 14px; font-weight: 600; }
.toc-ctas { margin-top: 18px; border-top: 1px solid var(--line-0); padding: 16px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.toc-ctas a { display: block; text-align: center; padding: 10px 16px; border-radius: 9px; }

.sections { display: flex; flex-direction: column; gap: 28px; }
.section {
  scroll-margin-top: 92px; background: var(--panel-grad);
  border: 1px solid var(--line-2); border-radius: 16px; padding: 32px;
}
.section-head { display: flex; flex-direction: column; gap: 14px; }
.section-head .kicker { letter-spacing: 0.2em; }
.section-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin: 0; color: var(--ink-0); }
.section-head p { font-size: 15px; line-height: 1.65; color: var(--ink-3); margin: 0; max-width: 600px; text-wrap: pretty; }
.cards { display: grid; gap: 12px; margin-top: 22px; }
.cards-2 { grid-template-columns: 1fr 1fr; }
.cards-3 { grid-template-columns: 1fr 1fr 1fr; }
.card { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 7px; }
.card b { font-size: 14px; font-weight: 800; color: var(--ink-1); }
.card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-4); margin: 0; }
.kpi-strip { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.kpi-strip .kpi { flex: 1; min-width: 130px; padding: 16px; }
.kpi-strip .kpi b { font-size: 22px; }
.kpi-strip .kpi span { font-size: 12px; }
.kpi-strip + .cards { margin-top: 12px; }

.bottom-cta {
  border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel-grad);
  padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.bottom-cta .txt { display: flex; flex-direction: column; gap: 8px; }
.bottom-cta .txt b { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--ink-0); }
.bottom-cta .txt span { font-size: 14.5px; color: var(--ink-3); }
.bottom-cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── How it works ────────────────────────────────────────────────── */
.pipeline-sec { padding-bottom: 64px; }
.pipeline {
  background: var(--panel-grad); border: 1px solid var(--line-2); border-radius: 18px;
  padding: 44px 36px; display: flex; align-items: stretch; flex-wrap: wrap;
}
.pipe-node { flex: 1; min-width: 180px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 0 10px; }
.pipe-icon {
  width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line-2);
  background: var(--bg-2); display: flex; align-items: center; justify-content: center;
}
.pipe-icon.hl { border-color: var(--accent-dim); background: rgba(86, 184, 212, 0.06); }
.pipe-icon img, .pipe-icon svg { display: block; }
.pipe-node b { font-size: 15px; font-weight: 800; color: var(--ink-1); }
.pipe-node span { font-size: 13px; line-height: 1.55; color: var(--ink-4); }
.pipe-txt { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pipe-arrow { display: flex; align-items: center; padding: 0 4px; }
.pipe-arrow .av { display: none; }
.flow-line { animation: cs-flow 1.2s linear infinite; }

.steps-band { border-top: 1px solid var(--line-0); background: var(--bg-band); }
.steps-inner { padding-top: 80px; padding-bottom: 80px; }
.steps-inner .sec-head { margin-bottom: 44px; }
.steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.step { background: var(--panel-grad); border: 1px solid var(--line-2); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step .num { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--accent-dim); }
.step b { font-size: 16.5px; font-weight: 800; color: var(--ink-1); }
.step p { font-size: 14px; line-height: 1.65; color: var(--ink-4); margin: 0; text-wrap: pretty; }

.offline { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.offline-copy { display: flex; flex-direction: column; gap: 16px; }
.offline-copy h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.18; margin: 0; color: var(--ink-0); }
.offline-copy > p { font-size: 15.5px; line-height: 1.65; color: var(--ink-3); margin: 0; text-wrap: pretty; }
.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.checks div { display: flex; gap: 10px; align-items: baseline; }
.checks .tick { color: var(--good); font-weight: 800; }
.checks span:last-child { font-size: 14.5px; color: var(--ink-2); }

.timeline {
  background: var(--panel-grad); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 26px; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.tl-item { display: flex; gap: 14px; align-items: flex-start; padding: 0 6px; }
.tl-item:first-child { padding-top: 14px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.tl-dot.ok { background: var(--good); }
.tl-dot.warn { background: var(--warn); }
.tl-line { width: 2px; flex: 1; min-height: 30px; background: var(--line-1); }
.tl-body { display: flex; flex-direction: column; gap: 3px; padding-bottom: 14px; }
.tl-body b { font-size: 14px; font-weight: 700; color: var(--ink-1); }
.tl-body span { font-size: 13px; color: var(--ink-4); }

.faq-band { border-top: 1px solid var(--line-0); background: var(--bg-band); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; padding-top: 80px; padding-bottom: 80px; }
.faq-intro { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 92px; }
.faq-intro h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.18; margin: 0; color: var(--ink-0); }
.faq-intro p { font-size: 14.5px; line-height: 1.6; color: var(--ink-3); margin: 0; }
.faq-intro a { font-size: 13.5px; font-weight: 700; color: var(--accent); text-decoration: none; }
.faq-intro a:hover { color: var(--accent-hi); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--panel-grad); border: 1px solid var(--line-2); border-radius: 14px; padding: 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.faq-item b { font-size: 15.5px; font-weight: 800; color: var(--ink-1); }
.faq-item p { font-size: 14px; line-height: 1.65; color: var(--ink-4); margin: 0; text-wrap: pretty; }

/* ── Content pages (privacy / support / about) ───────────────────── */
.legal { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; padding-bottom: 80px; }
/* hero variant for the content pages — same 880px column, centered with it */
.page-hero.hero-narrow { max-width: 880px; }
.legal .section { padding: 32px 36px; }
.mono-note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-5); }
.legal h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 19px;
  margin: 0 0 14px; color: var(--ink-0);
}
.legal p { font-size: 14.5px; line-height: 1.7; color: var(--ink-4); margin: 0 0 12px; text-wrap: pretty; }
.legal p:last-child { margin-bottom: 0; }
.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { color: var(--accent-hi); }
.legal strong { color: var(--ink-2); }
.legal em { color: var(--ink-3); }
.legal-sections > section + section { margin-top: 26px; border-top: 1px solid var(--line-0); padding-top: 24px; }
.legal ul.dots { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.legal ul.dots:last-child { margin-bottom: 0; }
.legal ul.dots li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.7; color: var(--ink-4); }
.legal ul.dots li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.label-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; }
.label-item { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; padding: 14px 16px; }
.label-item .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 6px; text-transform: uppercase; }
.label-item p { font-size: 13.5px; margin: 0; }
.section.accent { border-color: rgba(86, 184, 212, 0.25); background: linear-gradient(180deg, rgba(86, 184, 212, 0.05), rgba(86, 184, 212, 0.02)); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 48px; }
  .hero-sub { max-width: 560px; }
  .mock-glow { inset: -40px; }
  .band-grid, .offline, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-intro { position: static; }
  .catalog { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc .h { width: 100%; padding-bottom: 6px; }
  .toc > a { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 999px; padding: 7px 13px; }
  .toc > a .t { font-size: 13px; }
  .toc-ctas { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  /* feature menu becomes a horizontally scrolling pill strip */
  .feature-menu { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding: 2px 0 14px; -webkit-overflow-scrolling: touch; }
  .feature-menu button {
    width: auto; flex-shrink: 0; flex-direction: row; align-items: center; gap: 7px;
    border: 1px solid var(--line-2); background: transparent; border-radius: 999px;
    padding: 11px 15px; white-space: nowrap;
  }
  .feature-menu button .t { font-size: 13.5px; }
  .feature-menu button.active { border-color: var(--accent-dim); background: linear-gradient(180deg, var(--bg-3), #0b1118); }
  .feature-menu .all-link { margin-top: 0; white-space: nowrap; flex-shrink: 0; align-self: center; }
  /* pipeline goes vertical: row-layout nodes, animated down-arrows on the icon axis */
  .pipeline { flex-direction: column; padding: 28px 22px; }
  .pipe-node { flex-direction: row; align-items: center; text-align: left; gap: 16px; min-width: 0; width: 100%; padding: 0; }
  .pipe-icon { width: 56px; height: 56px; border-radius: 14px; }
  .pipe-txt { align-items: flex-start; text-align: left; gap: 3px; }
  .pipe-node b { font-size: 14.5px; }
  .pipe-node span { font-size: 12.5px; line-height: 1.5; }
  .pipe-arrow { transform: none; justify-content: flex-start; padding: 0; margin-left: 18px; align-self: flex-start; }
  .pipe-arrow .ah { display: none; }
  .pipe-arrow .av { display: block; }
}

@media (max-width: 860px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav-inner { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  /* header keeps logo + lang + dashboard; page links move to the chip strip below */
  .nav-links { display: none; }
  .page-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 4px; -webkit-overflow-scrolling: touch; }
  .page-chips a {
    flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--ink-2);
    border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px;
    text-decoration: none; white-space: nowrap;
  }
  .page-chips a.active { color: var(--ink-1); border-color: var(--accent-dim); background: linear-gradient(180deg, var(--bg-3), #0b1118); }
  /* hero: full-width stacked CTAs, stats as a 2×2 tile grid */
  .hero-ctas { flex-direction: column; align-self: stretch; }
  .hero-ctas a { text-align: center; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; align-self: stretch; }
  .hero-stat { background: #0b1118; border: 1px solid var(--line-1); border-radius: 12px; padding: 14px; }
  .hero-stat b { font-size: 19px; }
  .hero-stat-div { display: none; }
  .cta-box .hero-ctas, .bottom-cta .btns { flex-direction: column; width: 100%; }
  .cta-box .hero-ctas a, .bottom-cta .btns a { text-align: center; }
  /* mockup: compact gauges, mini-tiles side by side under the map.
     Gauges must be fluid — three fixed 124px SVGs overflow a 390px
     viewport and inflate the whole page width on iOS. */
  .mock-gauges { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .mock-gauges .gauge { width: 100%; max-width: 124px; }
  .mock-gauges .gauge svg { width: 100%; height: auto; }
  .mock-gauges .gauge-val { font-size: 16px; padding-top: 9px; }
  /* tighten section rhythm to the mobile design's scale */
  .hero { padding-top: 36px; padding-bottom: 36px; gap: 36px; }
  .features { padding-top: 52px; padding-bottom: 40px; }
  .band-grid { padding-top: 52px; padding-bottom: 52px; gap: 22px; }
  .cta-sec { padding-top: 56px; padding-bottom: 56px; }
  .summary-card { padding: 16px; }
  .mock-bottom { grid-template-columns: 1fr; }
  .mock-tiles { flex-direction: row; gap: 8px; }
  .mock-tile { padding: 9px 10px; }
  .mock-tile .v span { display: none; }
  .ticker-set { gap: 32px; padding-right: 32px; }
  .steps, .cards-3 { grid-template-columns: 1fr; }
  .cards-2, .pane-cols, .pane-cols-2 { grid-template-columns: 1fr; }
  /* summary KPIs stay 3-up like the mobile design, just smaller */
  .kpis { gap: 8px; }
  .kpi b { font-size: 15px; }
  .pane-gauges { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 24px 20px; }
  .cta-box { padding: 40px 24px; }
  .feature-detail { padding: 22px 18px; min-height: 0; }
  .dtc-actions { margin-top: 4px; }
  .dtc-clear { flex: 1; text-align: center; padding: 13px; border-radius: 11px; }
  .cam-voice { left: 16px; right: 16px; }
  /* features page: TOC becomes a sticky horizontal chip strip under the nav */
  .toc {
    position: sticky; top: 61px; z-index: 50;
    flex-wrap: nowrap; overflow-x: auto; gap: 8px;
    margin: 0 -20px; padding: 10px 16px;
    background: rgba(5, 8, 13, 0.9); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-0);
    -webkit-overflow-scrolling: touch;
  }
  .toc .h { display: none; }
  .toc > a { flex-shrink: 0; padding: 9px 13px; }
  .section { scroll-margin-top: 128px; }
  /* footer: brand on top, link columns in a 2-col grid */
  .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* tiny phones — the header row (brand + lang + dashboard) needs every pixel */
@media (max-width: 400px) {
  .nav-inner { gap: 10px; }
  .nav-side { gap: 10px; }
  .nav .btn-primary { padding: 9px 12px; }
  .brand-name { font-size: 11px; letter-spacing: 0.1em; }
}
