/* Agentica Labs — site styles
   Brand: "the full stop is a node". Paper content sections alternate with
   Midnight bands; Archivo (set wide) speaks, Inter explains, IBM Plex Mono
   labels the data. Cyan is reserved for the node and live data.
   The look is fixed (not OS-theme dependent) so the identity stays consistent. */

:root {
  /* Brand constants */
  --midnight: #0B1120;
  --midnight-950: #070B16;
  --indigo: #6366F1;
  --indigo-deep: #4F46E5;
  --indigo-deeper: #4338CA;
  --cyan: #22D3EE;

  /* Dark surfaces (header, hero, bands, footer) */
  --hero-bg: #0B1120;
  --hero-fg: #E8ECF6;
  --hero-muted: #9AA6C2;
  --hero-line: rgba(148, 163, 214, 0.16);
  --hero-node: #121B33;

  /* Paper theme (content sections) */
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --surface-2: #EEF0F7;
  --line: #DDE1EC;
  --line-strong: #BFC6D8;
  --fg: #0B1120;
  --muted: #4A5470;
  --accent: #4F46E5;
  --accent-strong: #4F46E5;
  --accent-ink: #ffffff;
  --signal: #0E7490;
  --node: #0891B2;
  --ok: #047857;
  --warn: #B45309;
  --crit: #B91C1C;
  --shadow: 0 1px 2px rgba(11,17,32,0.04), 0 18px 36px -26px rgba(11,17,32,0.28);

  /* Type */
  --font-display: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  --step-4: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-5: clamp(2.5rem, 1.5rem + 3.8vw, 4.4rem);

  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1200px;

  color-scheme: light;
}

/* Midnight scope: any dark band re-points the tokens, so components inside
   (cards, chips, scorecards, tables) adapt without extra rules. */
.site-header, .hero, .band-dark, .section--dark, .site-footer, .symptom--featured {
  --bg: #0B1120;
  --surface: #111A2E;
  --surface-2: #1A2540;
  --line: #26314F;
  --line-strong: #3A4666;
  --fg: #E8ECF6;
  --muted: #9AA6C2;
  --accent: #818CF8;
  --signal: #22D3EE;
  --node: #22D3EE;
  --ok: #34D399;
  --warn: #FBBF24;
  --crit: #F87171;
  --shadow: none;
  color-scheme: dark;
}
.section--dark { background: var(--midnight); color: var(--fg); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--hero-bg);
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
  font-weight: 700;
}
h3, h4 { font-stretch: 108%; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent-strong); color: #fff; padding: 8px 14px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(64px, 8vw, 112px); }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--surface-2); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: var(--step-4); font-stretch: 115%; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: var(--step-1); max-width: 64ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--indigo-deep); color: #fff; }
.btn--primary:hover { background: var(--indigo-deeper); }
.btn--ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--fg); }
.hero .btn--ghost, .band-dark .btn--ghost { border-color: rgba(232,236,246,0.3); color: var(--hero-fg); }
.hero .btn--ghost:hover, .band-dark .btn--ghost:hover { border-color: var(--hero-fg); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 0.875rem; }
.link-arrow { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hero-line);
  color: var(--hero-fg);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: baseline; text-decoration: none; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.36rem; letter-spacing: -0.03em; line-height: 1; color: #FFFFFF; }
.logo span { font-weight: 400; color: var(--hero-muted); margin-left: 0.24em; }
.logo .node { display: inline-block; width: 0.26em; height: 0.26em; border-radius: 50%; background: var(--cyan); margin-left: 0.1em; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 0.925rem; color: var(--hero-muted); transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--hero-fg); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.nav .ext::after { content: "↗"; font-size: 0.75em; margin-left: 3px; opacity: 0.7; }
.header-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 1100px) { .header-cta .btn--ghost { display: none; } }
.menu-toggle { display: none; background: none; border: 1px solid var(--hero-line); color: var(--hero-fg); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--hero-bg);
    border-bottom: 1px solid var(--hero-line);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--hero-line); font-size: 1rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--cyan); }
  .header-cta .btn--ghost { display: none; }
}
@media (max-width: 420px) {
  .site-header .wrap { gap: 12px; }
  .header-cta { gap: 8px; }
  .header-cta .btn--primary { padding: 0 12px; font-size: 0.82rem; }
}
@media (max-width: 359px) {
  .logo { font-size: 1.16rem; }
  .header-cta .btn--primary { padding: 0 10px; font-size: 0.78rem; }
  .menu-toggle { width: 38px; height: 38px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hero-line);
}
.hero::before {
  /* drafting grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
  opacity: 0.5;
  pointer-events: none;
}
.hero .wrap { position: relative; padding-block: clamp(56px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.1rem + 3.2vw, 4rem); font-weight: 700; font-stretch: 110%; line-height: 0.98; letter-spacing: -0.035em; color: #FFFFFF; }
.hero h1 .sub { color: var(--hero-muted); font-weight: 500; }
.hero h1 .dot { color: var(--cyan); }
.hero .lede { font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem); color: var(--hero-muted); max-width: 56ch; margin-top: 22px; }
.hero .lede strong { color: var(--hero-fg); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .eyebrow { color: var(--cyan); margin-bottom: 22px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hero-line); font-family: var(--font-mono); font-size: 0.8rem; color: var(--hero-muted); }
.trust-line li { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.trust-line li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); opacity: 0.8; }
.hero--page .wrap { padding-block: clamp(48px, 6vw, 84px); }
.hero--page h1 { font-size: var(--step-4); font-stretch: 116%; max-width: 22ch; }
.hero--page .lede { max-width: 62ch; }

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

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; white-space: normal; text-align: center; padding-block: 12px; line-height: 1.25; }
}

/* Schematic */
.schematic { width: 100%; height: auto; display: block; font-family: var(--font-mono); }
.schematic .edge { fill: none; stroke: rgba(148,163,214,0.28); stroke-width: 1.2; }
.schematic .edge--hot { stroke: url(#edgeGrad); stroke-width: 1.4; }
.schematic .node rect { fill: var(--hero-node); stroke: rgba(148,163,214,0.3); stroke-width: 1; }
.schematic .node--core rect { stroke: var(--indigo); }
.schematic .node--ai rect { stroke: var(--cyan); }
.schematic .lbl { fill: var(--hero-fg); font-size: 11px; font-weight: 500; }
.schematic .sub { fill: var(--hero-muted); font-size: 9px; }
.schematic .col { fill: var(--hero-muted); font-size: 9px; letter-spacing: 0.12em; }
.schematic .pkt { fill: var(--cyan); }
.schematic .pkt--i { fill: var(--indigo); }
.schematic .tag rect { fill: rgba(34,211,238,0.08); stroke: rgba(34,211,238,0.45); }
.schematic .tag text { fill: var(--cyan); font-size: 9.5px; }
.schematic .tag--ok rect { fill: rgba(52,211,153,0.08); stroke: rgba(52,211,153,0.45); }
.schematic .tag--ok text { fill: #34D399; }
.schematic-frame { position: relative; border: 1px solid var(--hero-line); border-radius: 16px; padding: 14px; background: rgba(17, 26, 46, 0.7); margin: 0; }
.crop { position: relative; }
.crop::before, .crop::after { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; }
.crop::before { left: -1px; top: -1px; border-left: 2px solid var(--cyan); border-top: 2px solid var(--cyan); }
.crop::after { right: -1px; bottom: -1px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); }
.schematic-frame figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hero-muted); padding: 2px 4px 12px; border-bottom: 1px dashed var(--hero-line); margin-bottom: 8px; }
.schematic-frame figcaption span:last-child { color: var(--cyan); }
@media (prefers-reduced-motion: reduce) {
  .schematic .pkt { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Problem → offer grid ---------- */
.symptoms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.symptoms--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .symptoms--four { grid-template-columns: 1fr; } }
.symptom {
  display: grid; grid-template-rows: auto 1fr auto; gap: 16px;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-decoration: none; color: inherit;
  transition: border-color .2s, transform .2s;
}
.symptom:hover { border-color: var(--accent); transform: translateY(-2px); }
.symptom q { font-family: var(--font-display); font-stretch: 108%; font-size: var(--step-2); line-height: 1.22; letter-spacing: -0.015em; quotes: "“" "”"; font-weight: 600; }
.symptom--featured { background: var(--midnight); border-color: var(--midnight); color: #FFFFFF; grid-template-rows: auto auto 1fr auto; }
.symptom--featured:hover { border-color: var(--accent); }
.symptom--featured .flag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.symptom--ghost { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.symptom--ghost footer strong { color: var(--signal); }
.symptom p { color: var(--muted); font-size: 0.95rem; }
.symptom footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.88rem; }
.symptom footer strong { font-weight: 600; color: var(--accent); }
.symptom footer .mono { color: var(--muted); font-size: 0.8rem; }

/* ---------- Spotlight / scorecard ---------- */
.spotlight { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .spotlight { grid-template-columns: minmax(0, 1fr); } }
.spotlight h2 { font-size: var(--step-5); font-stretch: 118%; letter-spacing: -0.035em; line-height: 1; margin-top: 14px; }
.spotlight .intro { color: var(--muted); font-size: var(--step-1); margin-top: 16px; max-width: 54ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fact { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; font-family: var(--font-mono); }
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 28px; }
.areas li { list-style: none; padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.areas li b { font-weight: 600; font-size: 0.95rem; }
.areas li span { color: var(--muted); font-size: 0.875rem; }
@media (max-width: 520px) { .areas { grid-template-columns: 1fr; } }

.scorecard { border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.scorecard header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.scorecard header h3 { font-size: 1rem; letter-spacing: -0.01em; }
.scorecard header .mono { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.sample-pill { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; border: 1px dashed var(--line-strong); color: var(--muted); }
.score-rows { padding: 8px 20px 16px; display: grid; }
.score-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 2.4rem 4.6rem; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.875rem; }
.score-row:last-child { border-bottom: 0; }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.score-row[data-s="crit"] .bar i { background: var(--crit); }
.score-row[data-s="warn"] .bar i { background: var(--warn); }
.score-row[data-s="ok"] .bar i { background: var(--ok); }
.score-row .mono { text-align: right; color: var(--muted); }
.chip { justify-self: end; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; padding: 3px 8px; border-radius: 4px; border: 1px solid currentColor; }
.chip--crit { color: var(--crit); }
.chip--warn { color: var(--warn); }
.chip--ok { color: var(--ok); }
@media (max-width: 480px) {
  .score-row { grid-template-columns: 7.2rem minmax(0, 1fr) 4.4rem; }
  .score-row .mono { display: none; }
}
.scorecard .findings { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 10px; background: var(--surface-2); }
.findings h4 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.findings li { list-style: none; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 10px; font-size: 0.9rem; }
.findings li .mono { color: var(--signal); font-size: 0.78rem; padding-top: 2px; }

/* ---------- Process steps (real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 2px solid var(--fg); }
.step { padding: 28px 24px 8px 0; position: relative; display: grid; gap: 10px; align-content: start; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step::before { counter-increment: step; content: "Step " counter(step); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); }
.step h3 { font-size: var(--step-2); }
.step p { color: var(--muted); font-size: 0.95rem; }
.step .mono { font-size: 0.8rem; color: var(--fg); padding-top: 6px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.compare tbody th { font-weight: 500; color: var(--muted); font-size: 0.85rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.compare td { color: var(--muted); }
.compare .us { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--fg); font-weight: 500; }
.compare thead .us { color: var(--accent); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* ---------- Stack chips ---------- */
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { list-style: none; font-family: var(--font-mono); font-size: 0.84rem; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.stack-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.stack-groups h3 { font-size: 0.8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; margin-bottom: 12px; }

/* ---------- Dark band (founding programme / CTA) ---------- */
.band-dark { background: var(--hero-bg); color: var(--hero-fg); position: relative; overflow: hidden; }
.band-dark .muted, .band-dark p { color: var(--hero-muted); }
.band-dark .eyebrow { color: var(--cyan); }
.band-dark .wrap { padding-block: clamp(64px, 8vw, 104px); position: relative; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.band-grid .hero-actions { justify-content: flex-end; margin-top: 0; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } .band-grid .hero-actions { justify-content: flex-start; } }
.band-dark h2 { font-size: var(--step-4); font-stretch: 115%; letter-spacing: -0.03em; margin-top: 14px; color: #FFFFFF; }
.band-indigo { background: var(--indigo-deep); }
.band-indigo .eyebrow { color: #E0E7FF; }
.band-indigo p, .band-indigo .muted { color: #E0E7FF; }
.band-indigo .btn--primary { background: var(--midnight); }
.band-indigo .btn--primary:hover { background: #000000; }
.band-indigo .btn--ghost { border-color: rgba(255,255,255,0.5); }
.band-indigo .terms { border-color: rgba(255,255,255,0.28); }
.band-indigo .terms div { border-bottom-color: rgba(255,255,255,0.2); }
.band-indigo .terms dt { color: #E0E7FF; }
.band-dark .lede { font-size: var(--step-1); margin-top: 16px; max-width: 58ch; }
.terms { display: grid; gap: 0; border: 1px solid var(--hero-line); border-radius: 12px; overflow: hidden; }
.terms div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--hero-line); font-size: 0.92rem; }
.terms div:last-child { border-bottom: 0; }
.terms dt { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cyan); padding-top: 3px; }
.terms dd { margin: 0; color: var(--hero-fg); }

/* ---------- Split cards ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); background: var(--surface); display: grid; gap: 14px; align-content: start; }
.panel h3 { font-size: var(--step-3); }
.panel p { color: var(--muted); }
.panel .btn, .panel .link-arrow { justify-self: start; margin-top: 6px; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.cta-final h2 { font-size: var(--step-5); font-stretch: 118%; line-height: 0.98; letter-spacing: -0.035em; color: #FFFFFF; }
.cta-final p { margin-top: 14px; font-size: var(--step-1); max-width: 52ch; }
.cta-final .hero-actions { margin-top: 0; }
@media (max-width: 860px) { .cta-final { grid-template-columns: 1fr; } }

/* ---------- Services page ---------- */
.practice { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); }
.practice + .practice { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .practice { grid-template-columns: 1fr; } }
.practice h2 { font-size: var(--step-4); font-stretch: 115%; margin-top: 12px; }
.practice .intro { color: var(--muted); margin-top: 14px; font-size: var(--step-1); }
.practice .start { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; background: var(--surface); display: grid; gap: 4px; font-size: 0.92rem; }
.practice .start span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; align-content: start; }
.svc-list li { list-style: none; padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 3px; }
.svc-list b { font-weight: 600; font-size: 0.98rem; }
.svc-list span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 560px) { .svc-list { grid-template-columns: 1fr; } }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.jump a { text-decoration: none; font-size: 0.85rem; padding: 7px 12px; border: 1px solid var(--hero-line); border-radius: 6px; color: var(--hero-muted); }
.jump a:hover { color: var(--hero-fg); border-color: var(--hero-fg); }

/* ---------- Solutions page ---------- */
.offers { display: grid; gap: 16px; }
.offer {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 15rem; gap: 28px;
  padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.offer--flagship { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg) inset; }
.offer h2 { font-size: var(--step-3); font-stretch: 114%; }
.offer .for { color: var(--muted); margin-top: 10px; }
.offer .tagline { margin-top: 12px; font-size: 0.95rem; }
.offer .badge { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); margin-bottom: 10px; display: block; }
.offer h3 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ticks { display: grid; gap: 8px; }
.ticks li { list-style: none; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: 0.92rem; }
.ticks li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; border: 1.5px solid var(--signal); border-radius: 2px; transform: rotate(45deg); }
.price { display: grid; gap: 6px; align-content: start; border-left: 1px solid var(--line); padding-left: 24px; }
.price .from { font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.price .amt { font-family: var(--font-display); font-stretch: 112%; font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price .dur { font-family: var(--font-mono); font-size: 0.84rem; color: var(--muted); }
.price .btn { margin-top: 14px; }
@media (max-width: 980px) {
  .offer { grid-template-columns: 1fr 1fr; }
  .price { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 6px 16px; }
  .price .btn { margin-top: 0; justify-self: end; }
}
@media (max-width: 620px) {
  .offer { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
  .price .btn { justify-self: start; margin-top: 8px; }
}
.note { font-size: 0.88rem; color: var(--muted); margin-top: 20px; max-width: 80ch; }

.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.timeline li { list-style: none; padding: 20px; border-right: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.timeline li:last-child { border-right: 0; }
.timeline .mono { font-size: 0.74rem; color: var(--signal); text-transform: uppercase; letter-spacing: 0.08em; }
.timeline b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.timeline span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline li:last-child { border-bottom: 0; }
}

/* ---------- About ---------- */
.prose { max-width: 68ch; display: grid; gap: 18px; font-size: 1.05rem; }
.prose p { color: var(--muted); }
.prose p strong { color: var(--fg); }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split h2 { font-size: var(--step-4); }
.split .eyebrow + h2, .split .eyebrow + .philosophy { margin-top: 14px; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0 28px; }
.principles li { list-style: none; padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.principles b { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.principles span { color: var(--muted); font-size: 0.92rem; }
.philosophy { font-family: var(--font-display); font-stretch: 116%; font-size: var(--step-4); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
.philosophy span { display: block; }
.philosophy span:nth-child(2) { color: var(--accent); }
.philosophy span:nth-child(3) { color: var(--signal); }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.form h2 { font-size: var(--step-3); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { font-size: 0.875rem; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 11px 13px; min-height: 46px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field [aria-invalid="true"] { border-color: var(--crit); }
.field .err, .form > .err { color: var(--crit); font-size: 0.82rem; }
.err.hint { color: var(--muted); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 7px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; white-space: nowrap; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; font-size: 0.9rem; font-weight: 400; }
.choices input { accent-color: var(--accent-strong); margin: 0; width: 16px; height: 16px; flex: none; }
.choices label:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.choices label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 0.85rem; color: var(--muted); align-items: start; }
.consent input { margin-top: 3px; accent-color: var(--accent-strong); }
.form-status { padding: 16px 18px; border-radius: 10px; border: 1px solid var(--ok); color: var(--fg); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.form-status--err { border-color: var(--crit); background: color-mix(in srgb, var(--crit) 10%, transparent); }
.aside { display: grid; gap: 16px; }
.aside .panel h3 { font-size: var(--step-2); }
.next-steps { display: grid; gap: 14px; counter-reset: n; }
.next-steps li { list-style: none; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; font-size: 0.93rem; color: var(--muted); }
.next-steps li::before { counter-increment: n; content: counter(n); font-family: var(--font-mono); font-size: 0.8rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--fg); }
.next-steps b { color: var(--fg); font-weight: 600; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row code { font-family: var(--font-mono); font-size: 0.92rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); user-select: all; overflow-wrap: anywhere; }

/* ---------- Health check ---------- */
.hc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .hc { grid-template-columns: 1fr; } }
.hc-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); display: grid; gap: 14px; margin: 0; }
.hc-q + .hc-q { margin-top: 12px; }
.hc-q legend { display: contents; }
.hc-q .qh { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.hc-q .qh .mono { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--signal); }
.hc-q .qh b { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.hc-opts { display: grid; gap: 8px; }
.hc-opts label { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; font-size: 0.93rem; align-items: start; }
.hc-opts input { margin: 3px 0 0; accent-color: var(--accent-strong); }
.hc-opts label:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.hc-opts label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.hc-result { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); padding: 24px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.hc-result .gauge { display: flex; align-items: baseline; gap: 8px; }
.hc-result .gauge b { font-family: var(--font-display); font-stretch: 115%; font-size: 3rem; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.hc-result .gauge span { color: var(--muted); font-family: var(--font-mono); }
.hc-progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.hc-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.hc-band { font-weight: 600; }
.hc-weak { display: grid; gap: 6px; font-size: 0.9rem; }
.hc-weak li { list-style: none; display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 6px; }
.hc-rec { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
.hc-rec .mono { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.hc-rec b { font-family: var(--font-display); font-size: 1.2rem; }
@media (max-width: 900px) { .hc-result { position: static; } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line-strong); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--font-mono); font-size: 1.3rem; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--hero-bg); color: var(--hero-muted); border-top: 1px solid var(--hero-line); font-size: 0.9rem; }
.site-footer .wrap { padding-block: 56px 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { margin-top: 12px; max-width: 34ch; }
.site-footer h3 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hero-fg); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer li { list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer a.mono { font-size: 0.85rem; }
.site-footer a:hover { color: var(--hero-fg); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--hero-line); margin-top: 40px; padding-top: 22px; font-size: 0.82rem; }
.footer-base .mono { color: var(--hero-muted); }
