:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f3f2ee;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --accent: #2a78d6;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --pos: #2a78d6;
  --neg: #e34948;
  --band: rgba(42, 120, 214, 0.12);
  --good: #0ca30c;
  --good-text: #006300;
  --warning: #fab219;
  --critical: #d03b3b;
  --tag-verified-bg: #e3f1e3;
  --tag-likely-bg: #fdf1d6;
  --tag-hyp-bg: #ecebe6;
  --seq-lo: #e6f0fc;
  --seq-hi: #0d366b;
  --seq-ink-hi: #ffffff;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #232321;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --accent: #3987e5;
    --series-1: #3987e5;
    --series-2: #d95926;
    --pos: #3987e5;
    --neg: #e66767;
    --band: rgba(57, 135, 229, 0.16);
    --good-text: #0ca30c;
    --tag-verified-bg: #16301a;
    --tag-likely-bg: #3a2e12;
    --seq-lo: #1d2633;
    --seq-hi: #9ec5f4;
    --seq-ink-hi: #0b0b0b;
    --tag-hyp-bg: #2c2c2a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #232321;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --accent: #3987e5;
  --series-1: #3987e5;
  --series-2: #d95926;
  --pos: #3987e5;
  --neg: #e66767;
  --band: rgba(57, 135, 229, 0.16);
  --good-text: #0ca30c;
  --tag-verified-bg: #16301a;
  --tag-likely-bg: #3a2e12;
  --seq-lo: #1d2633;
  --seq-hi: #9ec5f4;
  --seq-ink-hi: #0b0b0b;
  --tag-hyp-bg: #2c2c2a;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--border); background: var(--surface); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { font-weight: 650; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.nav a[aria-current="page"], .nav a:hover { background: var(--surface-2); color: var(--ink); }
.theme-btn { border: 1px solid var(--border); background: transparent; color: var(--ink-2); border-radius: 8px; padding: 5px 9px; cursor: pointer; font: inherit; font-size: 13px; }

.illustrative {
  background: var(--surface-2); color: var(--ink-2); font-size: 13px; text-align: center; padding: 6px 16px;
}

/* Hero */
.hero { padding: 48px 0 24px; }
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }
.hero h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; max-width: 22ch; }
.hero p.lede { color: var(--ink-2); font-size: 17px; max-width: 62ch; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 28px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.stat .label { color: var(--ink-2); font-size: 13px; }
.stat .value { font-size: 30px; font-weight: 650; letter-spacing: -0.02em; margin-top: 2px; }
.stat .value.hero-fig { font-size: 48px; line-height: 1.1; }
.stat .note { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Questions */
.questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 8px 0 8px; padding: 0; list-style: none; counter-reset: q; }
.questions li { counter-increment: q; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 14px 48px; position: relative; color: var(--ink); font-weight: 550; }
.questions li::before { content: counter(q); position: absolute; left: 16px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.questions li a { color: inherit; text-decoration: none; }
.questions li span { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }

/* Step sections */
.step { padding: 36px 0 8px; }
.step-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.step-num { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.step h2 { font-size: 24px; letter-spacing: -0.015em; margin: 0; line-height: 1.25; }
.step .sub { color: var(--ink-2); margin: 4px 0 18px; max-width: 70ch; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.card + .card { margin-top: 12px; }
.card-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h3 { font-size: 16px; margin: 0; line-height: 1.35; }
.card-head p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.card-head .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; padding: 2px; background: var(--surface-2); }
.seg button { border: 0; background: transparent; color: var(--ink-2); padding: 5px 10px; border-radius: 7px; cursor: pointer; font: inherit; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--border); }
.link-btn { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; font-size: 13px; padding: 4px 2px; }
select { font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; }

/* Connect */
.systems { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sys { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.sys b { display: block; font-size: 14px; }
.sys small { color: var(--muted); font-size: 12px; }
.recon { margin-top: 14px; display: grid; gap: 10px; }
.recon-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(120px, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.recon-row .what { color: var(--ink); }
.recon-row .what small { display: block; color: var(--muted); font-size: 12px; }
.meter { height: 8px; border-radius: 4px; background: var(--grid); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--series-1); border-radius: 4px; }
.recon-row .pct { font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 52px; text-align: right; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 8px; white-space: nowrap; color: var(--ink); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.tag.verified { background: var(--tag-verified-bg); }
.tag.verified::before { background: var(--good); }
.tag.likely { background: var(--tag-likely-bg); }
.tag.likely::before { background: var(--warning); }
.tag.hypothesis { background: var(--tag-hyp-bg); }
.tag.hypothesis::before { background: var(--muted); }

/* Charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.legend i.line { width: 16px; height: 2px; border-radius: 1px; }
.legend i.band { width: 16px; height: 10px; border-radius: 3px; background: var(--band); }
.tooltip {
  position: absolute; pointer-events: none; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.4;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12); opacity: 0; transition: opacity .12s; z-index: 5; min-width: 140px; max-width: 260px;
}
.tooltip b { font-weight: 650; }
.tooltip .muted { color: var(--muted); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--grid); vertical-align: top; }
.data-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.hidden { display: none !important; }

/* Findings */
.findings { display: grid; gap: 10px; margin-top: 14px; }
.finding { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--grid); }
.finding:first-child { border-top: 0; }
.finding .amt { font-weight: 650; font-variant-numeric: tabular-nums; min-width: 72px; }
.finding .txt b { display: block; font-weight: 600; }
.finding .txt small { color: var(--ink-2); font-size: 13px; }

.callout { border-left: 3px solid var(--critical); background: var(--surface-2); border-radius: 0 10px 10px 0; padding: 10px 14px; margin-top: 14px; font-size: 14px; color: var(--ink); }
.callout.good { border-left-color: var(--good); }

/* Act */
.actions td .owner { color: var(--muted); font-size: 12px; display: block; }

/* Process (index) */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.process li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.process li b { display: block; font-size: 15px; }
.process li small { color: var(--ink-2); font-size: 13px; }
.process li .k { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.verticals { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.vcard { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; transition: border-color .15s, transform .15s; }
a.vcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.vcard h3 { margin: 0 0 6px; font-size: 18px; }
.vcard p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.vcard .big { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; }
.vcard .big small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.vcard.soon { opacity: .6; }
.vcard .go { color: var(--accent); font-size: 14px; font-weight: 600; margin-top: 10px; display: inline-block; }

footer { color: var(--muted); font-size: 13px; padding: 40px 0 48px; border-top: 1px solid var(--border); margin-top: 48px; }

@media (max-width: 640px) {
  .hero { padding-top: 32px; }
  .recon-row { grid-template-columns: 1fr auto; }
  .recon-row .meter { grid-column: 1 / -1; grid-row: 2; }
  .finding { grid-template-columns: 1fr auto; }
  .finding .amt { grid-column: 1; }
  .finding .txt { grid-column: 1 / -1; grid-row: 2; }
  .nav a { padding: 6px 7px; }
}

/* Brand mark (placeholder) */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.logo { width: 20px; height: 20px; fill: var(--accent); }

/* Industries landing */
.ind-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ind-nav a { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
.ind-nav a:hover { border-color: var(--accent); }
.industry { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; margin-top: 14px; scroll-margin-top: 16px; }
.industry h3 { font-size: 22px; letter-spacing: -0.015em; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.industry h3 svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.industry .problem { color: var(--ink-2); margin: 0 0 14px; }
.industry .label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 13px; background: var(--surface-2); border-radius: 8px; padding: 4px 9px; color: var(--ink); }
.industry ul { margin: 0; padding-left: 18px; color: var(--ink); font-size: 14px; }
.industry ul li { margin: 3px 0; }
.ask { background: var(--surface-2); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; }
.ask q { font-size: 18px; font-weight: 600; line-height: 1.35; quotes: "“" "”"; }
.ask .answer { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.ask .answer b { color: var(--ink); }
.ask .cta { margin-top: auto; padding-top: 16px; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 10px; padding: 9px 14px; }
.btn.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--border); cursor: default; }
.status { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: auto; white-space: nowrap; }
.status.live { color: var(--good-text); }
@media (max-width: 760px) { .industry { grid-template-columns: 1fr; padding: 18px; } }

/* Top bar on phones: brand + theme on row one, swipeable nav on row two */
.brand { white-space: nowrap; }
@media (max-width: 720px) {
  .topbar .wrap { height: auto; flex-wrap: wrap; row-gap: 4px; padding-top: 10px; padding-bottom: 6px; }
  .theme-btn { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: -10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
}

/* Mini preview chart on the Industries page */
figure.mini { margin: 16px 0 0; background: var(--surface); border-radius: 12px; padding: 12px 12px 8px; }
figure.mini figcaption { color: var(--muted); font-size: 12px; margin-top: 4px; }
