/* Design tokens — mirrors apps/web's investigation-surface dark palette (cttv-scan/src/index.css) */
:root {
  --bg: oklch(0.12 0.01 260);
  --bg-panel: oklch(0.19 0.015 260);
  --bg-panel-dim: oklch(0.16 0.012 260);
  --bg-band: oklch(0.145 0.012 260);
  --border: oklch(1 0 0 / 0.08);
  --border-strong: oklch(1 0 0 / 0.14);
  --fg: oklch(0.95 0.01 260);
  --muted: oklch(0.68 0.02 260);
  --muted-dim: oklch(0.58 0.02 260);
  --accent: #5f9bf2;
  --accent-soft: oklch(0.68 0.14 250 / 0.1);
  --success: oklch(0.72 0.16 145);
  --success-soft: oklch(0.72 0.16 145 / 0.12);
  --warn: oklch(0.82 0.14 85);
  --danger: oklch(0.58 0.18 25);
  --danger-soft: oklch(0.58 0.18 25 / 0.1);

  --font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 6vw, 80px);
  --max-width: 1280px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: color-mix(in oklch, var(--accent) 80%, white); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

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

.wrap { max-width: var(--max-width); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: 0.08em; }
.brand-tag { font-size: 13px; color: var(--muted-dim); }

.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav a.navlink { font-size: 14px; color: var(--muted); }
.nav .phone { font-size: 15px; font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: oklch(0.14 0.02 260); }
.btn-outline { border-color: var(--border-strong); color: var(--fg); background: transparent; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

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

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px var(--gutter) 64px;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid oklch(0.72 0.16 145 / 0.35);
  background: var(--success-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}
.badge-warn { border-color: oklch(0.82 0.14 85 / 0.35); background: oklch(0.82 0.14 85 / 0.15); color: var(--warn); }
.badge-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 20px 0 0;
  text-wrap: pretty;
}

.hero p.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 460px;
  margin: 16px 0 0;
}

.promise-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; }
.promise { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--success); }
.promise svg { flex-shrink: 0; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-panel);
  margin-top: 24px;
}
.stat-cell { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--border); }
.stat-cell:first-child { border-left: none; }
.stat-label { font-size: 12px; color: var(--muted-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 20px; font-weight: 600; }
.stat-sub { font-size: 12px; color: var(--muted-dim); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- dispatch panel ---------- */

.panel {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-panel);
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.45);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
}
.panel-head .live { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--success); }
.dot.warn { background: var(--danger); }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.dispatch-row-head, .dispatch-row {
  display: grid; grid-template-columns: 1fr 76px 84px 64px; align-items: center;
  padding: 13px 20px; border-top: 1px solid oklch(1 0 0 / 0.06); font-size: 14px;
}
.dispatch-row-head { font-size: 11px; color: var(--muted-dim); letter-spacing: 0.06em; padding: 10px 20px; border-top: none; }
.dispatch-row .name { display: flex; align-items: center; gap: 10px; }
.dispatch-row .num { text-align: right; }
.dispatch-row.alert { background: var(--danger-soft); }

.panel-alert {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px;
  background: oklch(1 0 0 / 0.04); border-top: 1px solid var(--border);
  font-size: 13px; line-height: 1.5;
}
.panel-alert svg { flex-shrink: 0; margin-top: 1px; }

/* ---------- sections ---------- */

section { padding: 64px 0; }
.section-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section-band { background: var(--bg-band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.section-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.section-head p { font-size: 16px; color: var(--muted); max-width: 700px; margin: 0; }

.callout {
  padding: 16px 20px; border-left: 2px solid var(--accent); background: oklch(1 0 0 / 0.03);
  font-size: 14px; line-height: 1.6;
}

/* ---------- identify grid ---------- */

.identify-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 720px) { .identify-grid { grid-template-columns: repeat(4, 1fr); } }

.identify-card {
  display: flex; flex-direction: column; gap: 14px; padding: 22px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-panel);
}
.identify-card .fam { font-size: 15px; font-weight: 600; line-height: 1.4; }
.identify-card .row-label { font-size: 11px; letter-spacing: 0.06em; color: var(--muted-dim); }
.identify-card .row-val { font-size: 15px; font-weight: 500; color: var(--accent); }
.identify-card .row-val.pc { font-size: 13px; color: var(--muted); font-weight: 400; }
.identify-card .note { margin-top: auto; padding-top: 12px; border-top: 1px solid oklch(1 0 0 / 0.06); font-size: 12px; line-height: 1.5; color: var(--muted-dim); }

/* ---------- three levels ---------- */

.level-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .level-grid { grid-template-columns: repeat(3, 1fr); } }

.level-card {
  display: flex; flex-direction: column; gap: 18px; padding: 24px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-panel);
}
.level-card.featured { border-color: oklch(0.68 0.14 250 / 0.4); box-shadow: 0 8px 32px oklch(0 0 0 / 0.45); }
.level-head { display: flex; align-items: center; justify-content: space-between; }
.level-num { font-size: 13px; color: var(--muted-dim); }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-live { border: 1px solid oklch(0.72 0.16 145 / 0.35); background: var(--success-soft); color: var(--success); }
.pill-soon { border: 1px solid oklch(0.82 0.14 85 / 0.35); background: oklch(0.82 0.14 85 / 0.15); color: var(--warn); }
.level-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.level-body { font-size: 14px; line-height: 1.6; color: var(--muted); }
.level-bullets { display: flex; flex-direction: column; gap: 8px; }
.level-bullets li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); list-style: none; }
.level-bullets li::before { content: '·'; color: var(--accent); }
.level-price { margin-top: auto; padding-top: 16px; border-top: 1px solid oklch(1 0 0 / 0.06); display: flex; align-items: baseline; gap: 8px; }
.level-price .amount { font-size: 20px; font-weight: 600; }
.level-price .unit { font-size: 13px; color: var(--muted-dim); }

.proof-strip {
  margin-top: 28px; display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start; justify-content: space-between;
  padding: 22px 26px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg-panel);
}
@media (min-width: 720px) { .proof-strip { flex-direction: row; align-items: center; gap: 40px; } }
.proof-strip .eyebrow { font-size: 12px; letter-spacing: 0.06em; color: var(--accent); }
.proof-strip .claim { font-size: 16px; line-height: 1.55; }

/* ---------- what they hear ---------- */

.hear-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.hear-table-head {
  display: grid; grid-template-columns: 1fr 1fr; padding: 12px 26px;
  background: oklch(1 0 0 / 0.04); font-size: 11px; letter-spacing: 0.06em; color: var(--muted-dim);
}
.hear-row { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-panel); border-top: 1px solid oklch(1 0 0 / 0.06); }
.hear-row:first-child { border-top: none; }
.hear-cell { display: flex; gap: 12px; padding: 22px 26px; }
.hear-cell.said { border-right: 1px solid oklch(1 0 0 / 0.06); color: var(--muted-dim); }
.hear-cell.said span.q { color: var(--muted-dim); }
.hear-cell svg { flex-shrink: 0; }
@media (max-width: 720px) {
  .hear-table-head { display: none; }
  .hear-row { grid-template-columns: 1fr; }
  .hear-cell.said { border-right: none; border-bottom: 1px solid oklch(1 0 0 / 0.06); }
}

/* ---------- prices ---------- */

.price-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.price-table-head {
  display: grid; grid-template-columns: 1fr 160px; padding: 12px 24px;
  background: oklch(1 0 0 / 0.04); font-size: 11px; letter-spacing: 0.06em; color: var(--muted-dim);
}
.price-row {
  display: grid; grid-template-columns: 1fr 160px; align-items: center;
  padding: 18px 24px; border-top: 1px solid oklch(1 0 0 / 0.06); background: var(--bg-panel);
}
.price-row.featured { border-top-color: oklch(0.68 0.14 250 / 0.25); background: oklch(0.68 0.14 250 / 0.07); }
.price-row .title { font-size: 15px; }
.price-row .sub { font-size: 13px; color: var(--muted-dim); margin-top: 3px; }
.price-row .amount { font-size: 16px; font-weight: 500; text-align: right; }
.price-row .amount.free { color: var(--accent); }
.price-note { font-size: 13px; color: var(--muted-dim); text-align: right; }

/* ---------- brands / fit ---------- */

.two-col { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.info-card { display: flex; flex-direction: column; gap: 20px; padding: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-panel); }
.info-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.info-card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: oklch(1 0 0 / 0.04); font-size: 13px; }
.chip-dashed { border-style: dashed; color: var(--muted-dim); }

.fit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fit-col .fit-title { font-size: 12px; letter-spacing: 0.06em; margin-bottom: 10px; }
.fit-col.yes .fit-title { color: var(--success); }
.fit-col.no .fit-title { color: var(--muted-dim); }
.fit-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fit-col.yes li { font-size: 14px; line-height: 1.55; color: var(--muted); }
.fit-col.no li { font-size: 14px; line-height: 1.55; color: var(--muted-dim); }

/* ---------- team ---------- */

.team-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-panel); }
.team-avatar { width: 64px; height: 64px; border-radius: 999px; background: oklch(1 0 0 / 0.06); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted-dim); flex-shrink: 0; }
.team-info { display: flex; flex-direction: column; gap: 4px; }
.team-name { font-size: 16px; font-weight: 600; }
.team-role { font-size: 13px; color: var(--muted); }
.team-detail { font-size: 13px; color: var(--muted-dim); }

/* ---------- form ---------- */

.form-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: start; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.contact-block { display: flex; flex-direction: column; gap: 16px; }
.contact-block h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; margin: 0; text-wrap: pretty; }
.contact-block p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.contact-lines { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.contact-line { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.contact-line svg { flex-shrink: 0; }

.lead-form { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg-panel); box-shadow: 0 8px 32px oklch(0 0 0 / 0.45); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea {
  height: 40px; border-radius: 6px; border: 1px solid var(--border-strong);
  background: oklch(1 0 0 / 0.04); padding: 0 14px; font-size: 14px; color: var(--fg);
  font-family: inherit;
}
.field textarea { height: 88px; padding: 12px 14px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.5 0.02 260); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-fineprint { font-size: 12px; line-height: 1.5; color: oklch(0.5 0.02 260); }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { font-size: 14px; margin-top: 4px; display: none; }
.form-status.ok { color: var(--success); display: block; }
.form-status.err { color: var(--danger); display: block; }

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

.site-footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted-dim); line-height: 1.7; }
.footer-links { display: flex; gap: 16px; margin-top: 4px; }
.legal-note { padding-top: 20px; border-top: 1px solid oklch(1 0 0 / 0.06); font-size: 12px; line-height: 1.6; color: oklch(0.5 0.02 260); }

/* ---------- generic content grids reused across pages ---------- */

.card-grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card-grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.plain-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-panel); }
.plain-card .k { font-size: 12px; color: var(--accent); }
.plain-card .t { font-size: 16px; font-weight: 600; }
.plain-card .b { font-size: 13px; line-height: 1.55; color: var(--muted); }

.plain-card.small { padding: 20px; }
.plain-card.small .top-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plain-card.small .title { font-size: 15px; font-weight: 600; }
.plain-card.small .val { font-size: 13px; color: var(--muted); flex-shrink: 0; }
.plain-card.small .body { font-size: 13px; line-height: 1.55; color: var(--muted); }

.numbered-list .item { display: flex; gap: 18px; padding: 20px 24px; background: var(--bg-panel); border-top: 1px solid oklch(1 0 0 / 0.06); }
.numbered-list .item:first-child { border-top: none; }
.numbered-list { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.numbered-list .n { font-size: 13px; color: var(--muted-dim); flex-shrink: 0; width: 24px; }
.numbered-list .item.final { background: oklch(0.68 0.14 250 / 0.07); border-top-color: oklch(0.68 0.14 250 / 0.25); }
.numbered-list .item.final .n { color: var(--accent); }

.timeline { border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px oklch(0 0 0 / 0.45); }
.timeline .row { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 16px 22px; background: var(--bg-panel); border-top: 1px solid oklch(1 0 0 / 0.06); }
.timeline .row:first-child { border-top: none; }
.timeline .time { font-size: 13px; color: var(--muted-dim); }
.timeline .text { font-size: 15px; line-height: 1.5; }
.timeline .alert-row { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-top: 1px solid oklch(0.58 0.18 25 / 0.3); background: var(--danger-soft); }
.timeline .alert-row svg { flex-shrink: 0; }
.timeline .alert-row .label { font-size: 15px; font-weight: 600; }

.status-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid oklch(0.72 0.16 145 / 0.3); background: var(--success-soft); font-size: 12px; color: var(--success); }
.status-chip .d { width: 5px; height: 5px; border-radius: 999px; background: currentColor; }
