/* Schematica Labs. Layout: one reading column with wide bands; an "evidence index" motif (standard / proof / status rows) carries the subject. */
@font-face {
  font-family: "Host Grotesk";
  src: url("fonts/HostGrotesk-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Host Grotesk";
  src: url("fonts/HostGrotesk-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 800; font-style: italic; font-display: swap;
}
/* Brand palette (Schematica brand guidelines): base #0748FE, dark #1F2937, white; shades 700 #01227F, 600 #012FB2, 500 #013DE5, 300 #4D7CFE, 200 #80A1FE, 100 #B3C7FF. */
:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #1F2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --accent: #0748FE;          /* links, rules, CTAs */
  --accent-hover: #012FB2;    /* 600 */
  --accent-text: #012FB2;     /* small blue labels: 600 on white */
  --accent-ink: #ffffff;
  --accent-soft: #eef3ff;     /* tint of 100, dark text only */
  --btn: #0748FE;
  --btn-hover: #012FB2;
  --logo-icon: #0748FE;
  --logo-word: #212121;
  --met: #2f7d4f;
  --partial: #a36a00;
  --gap: #b0413e;
  --band: #1F2937;
  --band-ink: #ffffff;
  --font-display: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.15rem;
  --step-4: 2.9rem;
  --radius: 6px;
  --measure: 66ch;
  --wide: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141b26; --surface: #1F2937; --ink: #f3f4f6; --muted: #b6bcc6; --line: #334155;
    --accent: #B3C7FF; --accent-hover: #ffffff; --accent-text: #B3C7FF; --accent-soft: #1d2a4a;
    --logo-icon: #ffffff; --logo-word: #ffffff;
    --met: #6cc28f; --partial: #e0a84a; --gap: #ef8a85; --band: #0e141d; --band-ink: #ffffff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141b26; --surface: #1F2937; --ink: #f3f4f6; --muted: #b6bcc6; --line: #334155;
  --accent: #B3C7FF; --accent-hover: #ffffff; --accent-text: #B3C7FF; --accent-soft: #1d2a4a;
  --logo-icon: #ffffff; --logo-word: #ffffff;
  --met: #6cc28f; --partial: #e0a84a; --gap: #ef8a85; --band: #0e141d; --band-ink: #ffffff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; }
p { margin: 0; }

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.stack { display: flex; flex-direction: column; gap: 1rem; }
.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: 1rem; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.lede { font-size: var(--step-1); color: var(--muted); max-width: 58ch; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 28px; width: auto; flex: none; display: block; }
.brand-logo .icon { fill: var(--logo-icon); }
.brand-logo .word { fill: var(--logo-word); }
.brand small { font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; font-size: var(--step--1); }
.nav a { color: var(--ink); text-decoration: none; padding-block: 0.25rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-text); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--btn);
  background: var(--btn); color: #ffffff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: #ffffff; }
.btn.secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn.secondary:hover { background: transparent; color: var(--accent-hover); border-color: var(--accent-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.nav .btn { padding: 0.45rem 0.9rem; color: #ffffff; }
.nav .btn:hover { color: #ffffff; text-decoration: none; }

/* Sections */
section { padding-block: 4.5rem; }
section + section { border-top: 1px solid var(--line); }
.hero { padding-block: 4rem 4.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero-grid.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.hero-copy { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.section-head { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.25rem; max-width: var(--measure); }

/* Evidence index motif */
.index-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 0; overflow: hidden;
}
.index-card header {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
}
.index-card header strong { color: var(--ink); font-weight: 500; }
.index-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.index-table th, .index-table td { text-align: left; padding: 0.65rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.index-table th { font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.index-table tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.78rem; white-space: nowrap; }
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; }
.status.met { color: var(--met); }
.status.partial { color: var(--partial); }
.status.gap { color: var(--gap); }
.index-card footer { padding: 0.7rem 1.1rem; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.item { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.item p { color: var(--muted); }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; border-top: 2px solid var(--accent); min-width: 0; }
.steps li::before { content: "Step " counter(step); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.steps p { color: var(--muted); }

/* Sector cards */
.sector {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0;
}
.sector.primary { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sector p { color: var(--muted); }
.sector .tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-text); letter-spacing: 0.06em; text-transform: uppercase; }
.sector a.more { margin-top: auto; font-weight: 600; }
.sector-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.sector-list li { padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.sector-list li strong { color: var(--ink); font-weight: 600; }

/* Split lists (business vs clinical) */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.panel.tinted { background: var(--accent-soft); border-color: transparent; }
.panel ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.panel .owner { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Deadlines */
.deadlines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.deadline { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.25rem 0 0; border-top: 1px solid var(--ink); min-width: 0; }
.deadline .date { font-family: var(--font-display); font-size: var(--step-2); font-variant-numeric: tabular-nums; }
.deadline .who { font-weight: 600; }
.deadline p { color: var(--muted); font-size: var(--step--1); }
.fineprint { font-size: var(--step--1); color: var(--muted); margin-top: 1.5rem; max-width: var(--measure); }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.25rem; }
.package { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.package .price { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent-text); }
.package ul { margin: 0; padding-left: 1.1rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.3rem; }
.package .btn { margin-top: auto; }

/* FAQ */
.faq { display: flex; flex-direction: column; max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 0.6rem; color: var(--muted); }

/* CTA band */
.band { background: var(--band); color: var(--band-ink); }
.band h2 { color: var(--band-ink); }
.band p { color: var(--band-ink); opacity: 0.85; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.band .btn { background: var(--btn); color: #ffffff; border-color: var(--btn); }
.band .btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.band a:not(.btn) { color: #B3C7FF; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.65rem 0.75rem; width: 100%;
}
.field textarea { min-height: 7rem; resize: vertical; }
.hint { font-size: var(--step--1); color: var(--muted); }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--accent-soft); font-size: var(--step--1); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 1.5rem; }
.mono { font-family: var(--font-mono); font-size: var(--step--1); user-select: all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 1rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-row a { color: var(--muted); }
.disclaimer { max-width: 80ch; }

@media (max-width: 900px) {
  .hero-grid, .hero-grid.wide, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .grid-3, .grid-4, .steps, .deadlines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
  section { padding-block: 3rem; }
  .grid-2, .grid-3, .grid-4, .steps, .deadlines, .split { grid-template-columns: minmax(0, 1fr); }
  .index-table th:nth-child(2), .index-table td:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Sector tabs */
.tabs-bar { border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 0.25rem 1.5rem; overflow-x: auto; font-size: var(--step--1); white-space: nowrap; padding-block: 0.1rem; scrollbar-width: thin; }
.tabs a { color: var(--muted); text-decoration: none; padding-block: 0.6rem; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--accent-text); border-bottom-color: var(--accent); }


/* Theme toggle */
.theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* Hero carousel */
:root { --heat-e: #12B886; --heat-p: #1E96AC; --heat-w: #3B63C4; --heat-m: #E8A3AA; --heat-m-soft: #FCEBEC; --heat-m-line: #F0BCC1; --heat-m-ink: #9E3B4A; --viz-shadow: 0 1px 2px rgba(31,41,55,.05), 0 24px 48px -28px rgba(7,72,254,.35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --heat-e: #3DE0A3; --heat-p: #2BB2C6; --heat-w: #5A84E6; --heat-m: #D9808A; --heat-m-soft: #3A2226; --heat-m-line: #7A3D45; --heat-m-ink: #F0A3AC; --viz-shadow: 0 24px 48px -28px rgba(0,0,0,.6); } }
:root[data-theme="dark"] { --heat-e: #3DE0A3; --heat-p: #2BB2C6; --heat-w: #5A84E6; --heat-m: #D9808A; --heat-m-soft: #3A2226; --heat-m-line: #7A3D45; --heat-m-ink: #F0A3AC; --viz-shadow: 0 24px 48px -28px rgba(0,0,0,.6); }
.carousel { min-width: 0; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 4px 28px; outline-offset: 4px; }
.car-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; padding-inline: 2px; min-width: 0; display: flex; flex-direction: column; }
.viz { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--viz-shadow); padding: 1.25rem 1.4rem 1.35rem; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.slide-cap { margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted); }
.viz-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.viz-title { font-weight: 600; font-size: 0.95rem; }
.viz-meta { font-size: 0.8rem; color: var(--muted); }
.viz-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.6rem; }
.viz-stat .big { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.viz-sub { color: var(--muted); font-size: 0.9rem; }
.viz-split { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }
.viz-split span, .legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; display: inline-block; }
.dot.e { background: var(--heat-e); } .dot.p { background: var(--heat-p); } .dot.w { background: var(--heat-w); } .dot.m { background: var(--heat-m); }
.heatmap { display: block; }
.hm-grid { display: block; width: 100%; height: auto; overflow: visible; }
.hm-grid text { font-family: var(--font-body); font-size: 8.5px; }
.hm-grid .lbl { fill: var(--muted); }
.hm-grid .brk { fill: none; stroke: var(--muted); stroke-width: 0.75; opacity: 0.6; }
.hm-grid .pct { fill: var(--ink); font-variant-numeric: tabular-nums; }
.hm-grid .e { fill: var(--heat-e); } .hm-grid .p { fill: var(--heat-p); } .hm-grid .w { fill: var(--heat-w); } .hm-grid .m { fill: var(--heat-m); }
.hm-row { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr) 2.4rem; align-items: center; gap: 0 0.6rem; }
.hm-label { font-size: 0.78rem; line-height: 1.2; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-cells { display: block; width: 100%; height: auto; overflow: visible; }
.hm-cells .e { fill: var(--heat-e); } .hm-cells .p { fill: var(--heat-p); } .hm-cells .w { fill: var(--heat-w); } .hm-cells .m { fill: var(--heat-m); }
.hm-cell { display: block; }
.hm-cell.e { background: var(--heat-e); }
.hm-cell.p { background: var(--heat-p); }
.hm-cell.w { background: var(--heat-w); }
.hm-cell.m { background: var(--heat-m); }
.hm-pct { font-size: 0.78rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.75rem; color: var(--muted); margin-top: auto; }
.legend .hm-cell { width: 0.75rem; height: 0.75rem; flex: none; }
.legend .hm-cell.e, .viz-split .dot.e { box-shadow: 0 0 6px var(--heat-e); } .legend .hm-cell.p, .viz-split .dot.p { box-shadow: 0 0 6px var(--heat-p); } .legend .hm-cell.w, .viz-split .dot.w { box-shadow: 0 0 6px var(--heat-w); } .legend .hm-cell.m, .viz-split .dot.m { box-shadow: 0 0 6px var(--heat-m); }
.ln { display: inline-block; width: 1.4rem; height: 0; border-top: 2px solid var(--heat-e); }
.ln.gap { border-top: 2px dashed var(--heat-m); }
.emap { width: 100%; height: auto; display: block; overflow: visible; }
.emap text { font-family: var(--font-body); font-size: 12.5px; fill: var(--ink); }
.emap text.axis { font-size: 11px; fill: var(--muted); }
.emap .link { fill: none; stroke-width: 1.5; }
.emap .link.ok { stroke: var(--heat-e); opacity: 0.45; }
.emap .link.gap { stroke: var(--heat-m); stroke-dasharray: 4 4; opacity: 0.8; }
.emap .docnode rect { fill: var(--surface); stroke: var(--line); }
.emap .docnode.ok circle { fill: var(--heat-e); }
.emap .docnode.gap circle { fill: none; stroke: var(--heat-m); stroke-width: 1.6; }
.emap .docnode.gap rect { stroke: var(--heat-m-line); stroke-dasharray: 3 3; }
.emap .stdnode rect { stroke-width: 1; }
.emap .stdnode.ok rect { fill: var(--accent-soft); stroke: transparent; }
.emap .stdnode.gap rect { fill: var(--heat-m-soft); stroke: var(--heat-m-line); }
.emap .stdnode text { font-size: 12px; font-variant-numeric: tabular-nums; }
.emap .stdnode.gap text { fill: var(--heat-m-ink); }
.plan { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.plan th { text-align: left; font-weight: 500; font-size: 0.75rem; color: var(--muted); padding: 0 0 0.5rem; border-bottom: 1px solid var(--line); }
.plan td { padding: 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.plan tr:last-child td { border-bottom: 0; }
.plan th + th, .plan td + td { padding-left: 0.75rem; }
.plan th:last-child, .plan td.due { text-align: right; white-space: nowrap; }
.plan td.due { color: var(--muted); font-variant-numeric: tabular-nums; }
.plan .mono-s { font-family: var(--font-mono); font-size: 0.75rem; color: var(--heat-m-ink); white-space: nowrap; }
.ring { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; box-shadow: inset 0 0 0 1.6px var(--heat-m); margin-right: 0.55rem; vertical-align: -1px; }
.car-nav { display: flex; align-items: center; gap: 0.75rem; }
.car-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; cursor: pointer; display: inline-grid; place-items: center; }
.car-btn:hover { border-color: var(--accent); color: var(--accent); }
.car-dots { display: flex; gap: 6px; }
.car-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.car-dot[aria-current="true"] { width: 22px; background: var(--accent); }
.car-note { margin-left: auto; font-size: 0.78rem; color: var(--muted); }
@media (max-width: 560px) {
  .viz { padding: 1.1rem 1rem 1.2rem; }
  .hm-row { grid-template-columns: minmax(0, 1fr) 2.2rem; gap: 0.15rem 0.5rem; }
  .hm-label { grid-column: 1 / -1; }
  .viz-stat .big { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) { .car-dot { transition: none; } }

/* ===== Glass layer (Nov 21): frosted translucent surfaces over soft brand-colour light ===== */
:root {
  --paper: #EDF1FA;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 10px 34px -12px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.04);
  --line: rgba(15, 23, 42, 0.09);
  --blob-1: rgba(7, 72, 254, 0.28);
  --blob-2: rgba(30, 150, 172, 0.24);
  --blob-3: rgba(18, 184, 134, 0.20);
  --blob-4: rgba(128, 161, 254, 0.30);
  --viz-shadow: var(--glass-hi), var(--glass-shadow);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #060A14; --ink: #EEF2FF; --muted: #A9B4C8;
    --glass: rgba(255, 255, 255, 0.06); --glass-strong: rgba(14, 20, 36, 0.62); --glass-edge: rgba(255, 255, 255, 0.14);
    --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    --glass-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.7);
    --line: rgba(255, 255, 255, 0.10);
    --blob-1: rgba(7, 72, 254, 0.42); --blob-2: rgba(30, 150, 172, 0.26); --blob-3: rgba(18, 184, 134, 0.20); --blob-4: rgba(77, 124, 254, 0.22);
  }
}
:root[data-theme="dark"] {
  --paper: #060A14; --ink: #EEF2FF; --muted: #A9B4C8;
  --glass: rgba(255, 255, 255, 0.06); --glass-strong: rgba(14, 20, 36, 0.62); --glass-edge: rgba(255, 255, 255, 0.14);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  --glass-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.7);
  --line: rgba(255, 255, 255, 0.10);
  --blob-1: rgba(7, 72, 254, 0.42); --blob-2: rgba(30, 150, 172, 0.26); --blob-3: rgba(18, 184, 134, 0.20); --blob-4: rgba(77, 124, 254, 0.22);
}

/* Soft colour field the glass sits on */
body { background: var(--paper); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 32vmax at 12% 8%, var(--blob-1), transparent 70%),
    radial-gradient(34vmax 30vmax at 92% 18%, var(--blob-2), transparent 70%),
    radial-gradient(40vmax 34vmax at 78% 88%, var(--blob-3), transparent 70%),
    radial-gradient(36vmax 30vmax at 8% 78%, var(--blob-4), transparent 70%);
}

/* One glass recipe for every surface */
.site-header, .viz, .sector, .panel, .package, .index-card, .item, .steps li, .theme-toggle, .car-btn,
.eyebrow, .btn.secondary, .field input, .field select, .field textarea, .form-note, .faq details {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-hi), var(--glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: rgba(255, 255, 255, 0.86); }
  :root[data-theme="dark"] { --glass: rgba(20, 28, 46, 0.9); }
}

/* Type */
h1 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); letter-spacing: -0.03em; line-height: 1.04; }
h2 { letter-spacing: -0.02em; }
h3 { letter-spacing: -0.005em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; align-self: flex-start;
  padding: 0.32rem 0.8rem; border-radius: 999px; font-size: 0.72rem; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--heat-e); box-shadow: 0 0 8px var(--heat-e); }

/* Floating glass header */
.site-header {
  position: sticky; top: 12px; z-index: 50;
  width: min(calc(100% - 24px), calc(var(--wide) + 24px)); margin: 12px auto 0;
  border-radius: 22px; background: var(--glass-strong);
}
.site-header .wrap { padding-block: 0.7rem; }
.tabs-bar { border-top: 1px solid var(--line); }
.tabs { gap: 0.3rem; padding-block: 0.45rem; }
.tabs a { padding: 0.35rem 0.85rem; border-radius: 999px; border-bottom: 0; }
.tabs a:hover { background: var(--glass); }
.tabs a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration: none; }

/* Buttons: liquid pills */
.btn {
  border-radius: 999px; padding: 0.78rem 1.35rem; border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, #3A6DFF 0%, #0748FE 55%, #013DE5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 22px -8px rgba(7, 72, 254, 0.65);
}
.btn:hover { background: linear-gradient(180deg, #2457F0 0%, #012FB2 100%); border-color: rgba(255, 255, 255, 0.2); }
.btn.secondary { color: var(--ink); }
.btn.secondary:hover { color: var(--accent-text); border-color: var(--glass-edge); background: var(--glass-strong); }
.nav .btn { padding: 0.5rem 1rem; }
.theme-toggle, .car-btn { box-shadow: var(--glass-hi); }

/* Sections float on the colour field */
section + section { border-top: 0; }
section { padding-block: 4rem; }
.hero { padding-block: 3.5rem 4rem; }

/* Cards */
.viz { border-radius: 24px; }
.item, .steps li, .sector, .panel, .package, .index-card { border-radius: 20px; }
.item { padding: 1.4rem 1.4rem 1.5rem; }
.steps li { padding: 1.4rem; border-top: 1px solid var(--glass-edge); }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border-radius: 999px; font-size: 0.8rem; letter-spacing: 0; color: #fff;
  background: linear-gradient(180deg, #3A6DFF, #0748FE); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 16px -6px rgba(7,72,254,.7);
}
.sector:hover, .package:hover { border-color: var(--accent); }
.sector.primary { box-shadow: var(--glass-hi), 0 0 0 1px var(--accent), var(--glass-shadow); }
.sector .tag { width: fit-content; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--accent-soft); }
.panel.tinted { background: var(--accent-soft); }
.faq details { padding: 1rem 1.25rem; border-radius: 16px; margin-bottom: 0.6rem; }
.field input, .field select, .field textarea { border-radius: 14px; box-shadow: var(--glass-hi); }
.form-note { border-radius: 14px; }
.deadline { padding: 1.25rem 0 0; border-top: 1px solid var(--line); }

/* CTA band: a deep blue glass slab */
.band { background: transparent; padding-block: 3rem 4.5rem; }
.band .wrap {
  max-width: calc(var(--wide) - 32px); padding: 2.5rem clamp(1.25rem, 4vw, 3rem); border-radius: 28px;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(18, 184, 134, 0.35), transparent 60%),
    linear-gradient(135deg, #0748FE 0%, #01227F 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 24px 60px -24px rgba(7, 72, 254, 0.7);
}
.band .btn { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.band .btn:hover { background: rgba(255, 255, 255, 0.26); border-color: rgba(255, 255, 255, 0.55); }

.site-footer { border-top: 1px solid var(--line); }

/* Accent tints read on glass */
:root { --accent-soft: rgba(7, 72, 254, 0.08); }
:root[data-theme="dark"] { --accent-soft: rgba(128, 161, 254, 0.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent-soft: rgba(128, 161, 254, 0.14); } }

@media (max-width: 620px) {
  .site-header { position: relative; top: 0; margin-top: 8px; width: calc(100% - 16px); border-radius: 18px; }
  .band .wrap { border-radius: 22px; margin-inline: 12px; }
  .item, .steps li { padding: 1.15rem; }
}
