
/* ─────────────────────────────────────────
   RESET & TOKENS
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* type */
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans:  'Hanken Grotesk', -apple-system, sans-serif;
  --font-mono:  'Spline Sans Mono', ui-monospace, monospace;

  --bg:            #F7F5F1;   /* base - cream */
  --bg-alt:        #F0EDE8;   /* section header bands */
  --bg-even:       #F3F0EB;   /* alternating section body */
  --card:          #FFFFFF;
  --ink:           #1A1814;
  --ink-mid:       #3D3A35;
  --muted:         #6E6A64;
  --border:        #E2DDD7;
  --border-mid:    #D4CFC9;
  --dark:          #14212A;   /* dark bands, stat bars, statement headers */

  --accent:        #4A8FA8;
  --accent-2:      #3A7A94;
  --accent-light:  #EAF3F7;
  --accent-border: #C0DCE8;

  --green:         #3D8C6A;
  --green-light:   #E8F5EF;
  --green-border:  #B0D9C8;

  --amber:         #B07D2A;
  --amber-light:   #FDF3E0;
  --amber-border:  #DFC07A;

  --stop:          #C9917A;
  --stop-light:    #F7EBE5;

  --ease: cubic-bezier(.2,.7,.3,1);

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;  --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px;

  --t-xs:   15px;
  --t-sm:   15px;
  --t-base: 16px;
  --t-body: 17px;
  --t-h3:   22px;
  --t-h2:   30px;
  --t-h1:   46px;

  --sidebar-w:   264px;
  --content-max: 680px;
  --band-pad-x:  52px;
  --radius:      2px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────
   PROGRESS BAR
───────────────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ─────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────── */
#sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  overflow-y: auto; z-index: 100;
  display: flex; flex-direction: column;
}

.sidebar-logo {
  padding: var(--sp-6) var(--sp-6) var(--sp-4);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--bg-alt); z-index: 2;
}

.sidebar-logo a {
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
}

.sidebar-logo a:hover { opacity: 0.8; }
.sidebar-logo .sub { font-size: var(--t-xs); color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }

/* Logo image sizing */
.logo-img { display: block; }
.logo-dark   { height: 22px; width: auto; }                          /* sidebar */
.logo-mobile { height: 20px; width: auto; }                          /* mobile nav bar */
.logo-light  { height: 18px; width: auto; filter: invert(1); margin-bottom: var(--sp-2); }  /* footer - small */

#sidebar nav { flex: 1; padding: var(--sp-3) var(--sp-3) var(--sp-6); }

.nav-group {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted);
  padding: var(--sp-4) var(--sp-3) var(--sp-1);
}

#sidebar nav a {
  display: block;
  padding: 6px var(--sp-3);
  font-size: var(--t-xs); color: var(--muted);
  text-decoration: none; border-radius: var(--radius);
  transition: background 0.12s, color 0.12s;
  line-height: 1.45;
}

#sidebar nav a:hover { background: var(--border); color: var(--ink); }

#sidebar nav a.active {
  background: var(--accent-light);
  color: var(--accent); font-weight: 500;
  border-left: 2px solid var(--accent);
  padding-left: calc(var(--sp-3) - 2px);
}

.sidebar-cta {
  margin: 0 var(--sp-4) var(--sp-6);
  background: var(--dark);
  border-radius: var(--radius);
  padding: var(--sp-4);
  text-align: center;
}

.sidebar-cta a { color: #fff; font-size: var(--t-xs); font-weight: 500; text-decoration: none; line-height: 1.5; display: block; }
.sidebar-cta a:hover { opacity: 0.88; }

/* ─────────────────────────────────────────
   MOBILE NAV
───────────────────────────────────────── */
#mobile-nav {
  display: none; position: sticky; top: 0;
  z-index: 200; background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

#mobile-nav-bar {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
}

.nav-title { font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 600; font-size: 16px; color: var(--ink); }

#hamburger {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 9px;
  cursor: pointer; display: flex;
  flex-direction: column; gap: 4px;
}

#hamburger span { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
#hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

#mobile-menu { display: none; padding: var(--sp-2) var(--sp-6) var(--sp-4); border-top: 1px solid var(--border); }
#mobile-menu.open { display: block; }
.mm-group { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: var(--sp-3) 0 var(--sp-1); }
#mobile-menu a { display: block; padding: 7px 0; font-size: var(--t-base); color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); }
#mobile-menu a:last-child { border-bottom: none; }
#mobile-menu a:hover { color: var(--ink); }

/* ─────────────────────────────────────────
   MAIN LAYOUT
───────────────────────────────────────── */
#main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* ─────────────────────────────────────────
   HERO - dark, full-bleed, editorial
───────────────────────────────────────── */
#hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative watermark - pure CSS, no images */
#hero::before {
  content: 'OS';
  position: absolute;
  right: -20px; bottom: -40px;
  font-family: var(--font-serif); font-optical-sizing: auto;
  font-size: clamp(180px, 22vw, 280px);
  font-weight: 400;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

/* Faint radial highlight from top-left */


.hero-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px var(--band-pad-x) 64px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(237,234,226,0.6);
  margin-bottom: var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-3);
}

.hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 34px; height: 1px;
  background: rgba(237,234,226,0.25);
  flex-shrink: 0;
}

#hero h1 {
  font-family: var(--font-serif); font-optical-sizing: auto;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.05;
  color: #fff;
  margin-bottom: var(--sp-6);
  font-weight: 600;
  letter-spacing: -0.015em;
}

#hero h1 em {
  font-style: normal;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: double;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2.5px;
  text-underline-offset: 0.16em;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin-bottom: var(--sp-8);
  line-height: 1.7;
  font-weight: 300;
}

/* Six outcome promises - 2-col grid */
.hero-outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: var(--sp-8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-outcome {
  padding: 13px var(--sp-4);
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.hero-outcome:nth-child(even) { border-right: none; }
.hero-outcome:nth-child(5),
.hero-outcome:nth-child(6) { border-bottom: none; }

.hero-outcome-check {
  color: var(--green);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 600;
}

/* CTA row */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: var(--t-base);
  font-weight: 700;
  text-decoration: none;
  transition: background .18s var(--ease), transform .12s var(--ease);
  white-space: nowrap;
}

.hero-btn:hover { background: var(--accent-2); }
.hero-btn:active { transform: translateY(1px); }
.hero-btn:focus-visible { outline: 2px solid #EDEAE2; outline-offset: 3px; }

.hero-meta-line {
  font-size: var(--t-xs);
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}

.hero-meta-line strong {
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ─────────────────────────────────────────
   HERO DIVIDER - thin accent line before first section
───────────────────────────────────────── */
#hero-divider {
  height: 2px;
  background: var(--accent);
}

/* ─────────────────────────────────────────
   SECTION BANDS - Option A+C
   Each section = header band + body zone, both full-bleed
───────────────────────────────────────── */

/* The section wraps full-bleed within #main */
.doc-section {
  display: block;
  scroll-margin-top: 0;
}

/* OPTION A: Header band - always --bg-alt, full bleed */
.section-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-8) var(--band-pad-x) var(--sp-6);
}

/* Inner content wrapper - constrains to readable width */
.band-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Header row inside the band */
.section-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

/* Module tag pill */
.mod-tag {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
  white-space: nowrap;
  min-width: 42px; justify-content: center;
}

.mod-tag.module {
  background: var(--dark); color: #EDEAE2;
  border-color: var(--dark);
  padding: 4px 12px;
}

.mod-tag.bonus {
  background: var(--amber-light);
  color: var(--amber); border-color: var(--amber-border);
}

.stitle { flex: 1; }

.stitle h2 {
  font-family: var(--font-serif); font-optical-sizing: auto;
  font-size: clamp(22px, 3vw, var(--t-h2));
  font-weight: 600; color: var(--ink);
  line-height: 1.2; margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.stitle .tagline {
  font-size: var(--t-sm); color: var(--muted);
  font-weight: 400; display: block;
}

.mod-position {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  color: var(--muted); letter-spacing: 0.04em;
  margin-top: 3px;
  opacity: 0.7;
}

/* OPTION C: Body zone - alternates between odd/even */
.section-body {
  padding: var(--sp-8) var(--band-pad-x) var(--sp-12);
}

.section-body .band-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Odd sections: base cream */
.doc-section.odd .section-body  { background: var(--bg); }
/* Even sections: slightly deeper tone */
.doc-section.even .section-body { background: var(--bg-even); }

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
.section-body h3 {
  font-family: var(--font-serif); font-optical-sizing: auto;
  font-size: var(--t-h3); font-weight: 600;
  color: var(--ink); line-height: 1.3;
  margin: var(--sp-8) 0 var(--sp-3);
  letter-spacing: -0.01em;
}

.section-body h3:first-child { margin-top: 0; }

.section-body h4 {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted);
  margin: var(--sp-8) 0 var(--sp-2);
}

.section-body h4:first-child { margin-top: 0; }

.section-body p {
  margin-bottom: var(--sp-4);
  font-size: var(--t-body); line-height: 1.75;
  color: var(--ink-mid);
}

.section-body p:last-child { margin-bottom: 0; }
.section-body strong { font-weight: 600; color: var(--ink); }
.section-body em { font-style: italic; }
.section-body a { color: var(--accent-2); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.section-body a:hover { color: var(--ink); }
.section-body a.btn-cta,
.section-body a.btn-cta:hover { color: #fff; text-decoration: none; }
.section-body a.btn-cta.green-btn,
.section-body a.btn-cta.green-btn:hover { color: #fff; }

/* Pull quote */
.pull-quote {
  font-family: var(--font-serif); font-optical-sizing: auto;
  font-size: 19px; font-weight: 500;
  color: var(--ink-mid); line-height: 1.6;
  margin: 0 0 var(--sp-6);
  padding-left: var(--sp-6);
  border-left: 1px solid var(--border-mid);
}

/* ─────────────────────────────────────────
   CALLOUT SYSTEM
───────────────────────────────────────── */
.callout {
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-6) 0;
}

.callout-head {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.callout p { font-size: var(--t-base); line-height: 1.65; margin-bottom: 0; color: inherit; }
.callout p + p { margin-top: var(--sp-2); }

.callout-insight { background: var(--accent-light); }
.callout-insight .callout-head { color: var(--accent); }
.callout-insight p { color: var(--ink-mid); }

.callout-signal { background: var(--green-light); }
.callout-signal .callout-head { color: var(--green); }
.callout-signal p { color: var(--ink-mid); }

.callout-warning { background: var(--amber-light); }
.callout-warning .callout-head { color: var(--amber); }
.callout-warning p { color: var(--ink-mid); }

/* CTA block - dark, full-width, appears once */
.callout-cta {
  background: var(--dark); border: none;
  border-radius: var(--radius);
  padding: var(--sp-8);
  margin: var(--sp-8) 0;
  display: flex; gap: var(--sp-8);
  align-items: center; flex-wrap: wrap;
}

.callout-cta .cta-text { flex: 1; }
.callout-cta .cta-text strong {
  display: block; color: #fff;
  font-family: var(--font-serif); font-optical-sizing: auto;
  font-weight: 600;
  font-size: 20px; margin-bottom: var(--sp-2);
}
.callout-cta .cta-text p { color: rgba(255,255,255,0.6); font-size: var(--t-sm); line-height: 1.6; margin-bottom: 0; }

/* ─────────────────────────────────────────
   DECISION BLOCK
───────────────────────────────────────── */
.dblock {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-6) 0;
}

.dblock-label {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: var(--sp-3);
}

.dblock ul { list-style: none; }

.dblock ul li {
  font-size: var(--t-base); line-height: 1.6;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-6);
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--ink-mid);
}

.dblock ul li:last-child { border-bottom: none; padding-bottom: 0; }
.dblock ul li:first-child { padding-top: 0; }

.dblock ul li::before {
  content: 'if';
  position: absolute; left: 0;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  color: var(--accent-2); text-transform: uppercase;
  letter-spacing: 0.06em; top: 7px;
}

/* Tradeoff */
.tradeoff {
  border-left: 2px solid var(--border-mid);
  padding: var(--sp-2) var(--sp-4);
  margin: var(--sp-4) 0;
}

.tradeoff-label {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--sp-1);
}

.tradeoff p { font-size: var(--t-sm); color: var(--muted); margin-bottom: 0; line-height: 1.6; }

/* ─────────────────────────────────────────
   FORMULA BLOCK
───────────────────────────────────────── */
.formula {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-6) 0;
}

.formula-label {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--green); margin-bottom: var(--sp-2);
}

.formula-eq { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.8; font-variant-numeric: tabular-nums; }

/* ─────────────────────────────────────────
   TABLES
───────────────────────────────────────── */
.table-wrap {
  overflow-x: auto; margin: var(--sp-6) 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); background: var(--card); }

thead th {
  background: var(--bg-alt);
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th.your-num { color: var(--accent); }
td.your-num {
  border-left: 1px dashed var(--border-mid);
  color: var(--muted);
  font-family: var(--font-mono); font-size: 13px;
  min-width: 88px;
}

tbody td {
  padding: 10px var(--sp-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top; line-height: 1.5;
  color: var(--ink-mid);
  font-variant-numeric: tabular-nums;
}

tbody tr:nth-child(even) td { background: #faf8f6; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--accent-light); transition: background 0.1s; }

td.pass   { color: var(--green);  font-weight: 600; }
td.neutral{ color: var(--ink-mid); }
td.warn   { color: var(--amber);  font-weight: 500; }
td.fail   { color: var(--stop);      font-weight: 600; }
td.dim    { color: var(--muted); }
td strong { font-weight: 600; color: var(--ink); }
td a { color: var(--accent-2); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ─────────────────────────────────────────
   CHECKLIST
───────────────────────────────────────── */
.checklist { list-style: none; margin: var(--sp-3) 0 var(--sp-6); }

.checklist li {
  display: flex; gap: var(--sp-3);
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--t-base); line-height: 1.55;
  cursor: pointer; user-select: none;
}

.checklist li:last-child { border-bottom: none; }
.checklist li:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }

.check-box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius); flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.12s, border-color 0.12s;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
}

.checklist li.done .check-box { background: var(--green); border-color: var(--green); }

.checklist li.done .check-box::after {
  content: ''; display: block;
  width: 4px; height: 8px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.checklist li.done .check-label { text-decoration: line-through; color: var(--muted); }

/* ─────────────────────────────────────────
   DOC LIST
───────────────────────────────────────── */
.doc-list { list-style: none; margin: var(--sp-3) 0 var(--sp-4); }

.doc-list li {
  padding: var(--sp-1) 0 var(--sp-1) var(--sp-4);
  position: relative;
  font-size: var(--t-body); line-height: 1.7;
  color: var(--ink-mid);
}

.doc-list li::before {
  content: ''; position: absolute;
  left: 0; top: 12px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* ─────────────────────────────────────────
   FLOW LINE
───────────────────────────────────────── */
.flow-line {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--t-sm); font-weight: 500;
  color: var(--ink); margin: var(--sp-4) 0;
  text-align: center; letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────
   EXAMPLE BOX
───────────────────────────────────────── */
.example-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  margin: var(--sp-6) 0;
}

.ex-label {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--sp-3);
}

.example-box p { font-size: var(--t-sm); margin-bottom: var(--sp-2); line-height: 1.6; color: var(--ink-mid); }
.example-box p:last-child { margin-bottom: 0; }

/* RPE example calc layout */
.rpe-calc { display: flex; flex-direction: column; gap: 0; }

.rpe-calc-row {
  display: flex; align-items: baseline;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.rpe-calc-row:last-child { border-bottom: none; }

.rpe-calc-label {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); flex-shrink: 0;
  width: 100px;
}

.rpe-calc-value {
  font-size: var(--t-base); font-weight: 500;
  color: var(--ink); flex: 1;
  display: flex; align-items: baseline;
  gap: var(--sp-2); flex-wrap: wrap;
}

.rpe-calc-sub {
  font-size: var(--t-xs); font-weight: 400;
  color: var(--muted);
}

.rpe-calc-divider {
  height: 1px; background: var(--border-mid);
  margin: var(--sp-1) 0;
}

.rpe-calc-result .rpe-calc-label { color: var(--ink); }
.rpe-calc-result .rpe-calc-value { font-size: 15px; font-weight: 700; }

.rpe-verdict {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius); white-space: nowrap;
}

.rpe-verdict.healthy { background: var(--green-light); color: var(--green); }

/* ─────────────────────────────────────────
   STAT ROW
───────────────────────────────────────── */
.stat-row { display: flex; gap: var(--sp-4); margin: var(--sp-6) 0; flex-wrap: wrap; }

.stat-card {
  flex: 1; min-width: 120px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
}



.sc-label { font-family: var(--font-mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: var(--sp-2); }
.sc-val   { font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 600; font-size: 26px; color: var(--ink); line-height: 1; margin-bottom: var(--sp-1); }
.sc-note  { font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }

/* ─────────────────────────────────────────
   INTRO GRID
───────────────────────────────────────── */
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-4); margin: var(--sp-6) 0;
}

.intro-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-6);
}

.ib-label {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent-2); margin-bottom: var(--sp-3);
}

.intro-block ul { list-style: none; }

.intro-block ul li {
  font-size: var(--t-sm); padding: 3px 0;
  color: var(--ink-mid); display: flex;
  align-items: flex-start; gap: var(--sp-2);
}

.intro-block ul li::before { content: '–'; color: var(--accent); flex-shrink: 0; font-weight: 300; }

/* ─────────────────────────────────────────
   BUTTON
───────────────────────────────────────── */
.btn-cta {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: 12px var(--sp-6);
  border-radius: var(--radius);
  font-size: var(--t-base); font-weight: 700;
  text-decoration: none;
  transition: background .18s var(--ease), transform .12s var(--ease);
}
.btn-cta:hover { background: var(--accent-2); }
.btn-cta:active { transform: translateY(1px); }
.btn-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-cta.green-btn { background: var(--green); }
.btn-cta.green-btn:hover { background: #34755A; }

/* Button inside dark callout-cta - white bg, ink text for max contrast */
.callout-cta .btn-cta {
  background: #fff;
  color: var(--ink) !important;
  text-decoration: none;
}
.callout-cta .btn-cta:hover {
  background: #F0EDE8;
  color: var(--ink) !important;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
#footer {
  background: var(--dark); color: #fff;
  padding: var(--sp-16) var(--band-pad-x) var(--sp-12);
  margin-left: 0;
}

.footer-inner {
  max-width: var(--content-max); margin: 0 auto;
  display: flex; gap: var(--sp-12);
  align-items: flex-start; flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.footer-brand { flex: 1; min-width: 200px; }
.footer-brand .brand-name { font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 600; font-size: 22px; margin-bottom: var(--sp-2); }
.footer-brand p { font-size: var(--t-sm); color: rgba(255,255,255,0.5); line-height: 1.65; margin-bottom: var(--sp-3); }
.footer-brand a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: var(--t-sm); display: block; margin-bottom: 3px; }
.footer-brand a:hover { color: #fff; }
.footer-cta-col { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.footer-cta-col p { font-size: var(--t-sm); color: rgba(255,255,255,0.5); }
.footer-cta-col .btn-cta { background: #fff; color: var(--ink); }
.footer-cta-col .btn-cta:hover { background: #F0EDE8; }
.footer-bottom {
  max-width: var(--content-max); margin: 0 auto;
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 15px; color: rgba(255,255,255,0.3); line-height: 1.7;
}

/* ─────────────────────────────────────────
   GATE CARDS - M5
───────────────────────────────────────── */
.gate-stack { display: flex; flex-direction: column; gap: var(--sp-3); margin: var(--sp-6) 0; }

.gate-card {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-6);
  position: relative; overflow: hidden;
}



.gate-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; margin-top: 2px;
  font-family: var(--font-mono);
}

.gate-card.gate-capacity .gate-num { background: var(--accent-light); color: var(--accent); }
.gate-card.gate-model    .gate-num { background: var(--green-light);  color: var(--green); }
.gate-card.gate-plan     .gate-num { background: var(--amber-light);  color: var(--amber); }

.gate-content { flex: 1; }
.gate-title { font-size: var(--t-base); font-weight: 600; color: var(--ink); margin-bottom: var(--sp-1); line-height: 1.3; }
.gate-body  { font-size: var(--t-sm); color: var(--muted); line-height: 1.6; margin-bottom: 0; }
.gate-conditions { list-style: none; margin-top: var(--sp-2); }
.gate-conditions li { font-size: var(--t-sm); color: var(--ink-mid); padding: 3px 0 3px var(--sp-4); position: relative; line-height: 1.5; }
.gate-conditions li::before { content: '–'; position: absolute; left: 0; color: var(--green); font-weight: 600; }

.gate-result {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--dark); border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-6); margin: var(--sp-4) 0 var(--sp-6);
}
.gate-result-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--amber-border); }
.gate-result p { font-size: var(--t-sm); color: rgba(255,255,255,0.7); margin-bottom: 0; line-height: 1.5; }
.gate-result p strong { color: #fff; }

/* ─────────────────────────────────────────
   RPE TIERS - M4
───────────────────────────────────────── */
.rpe-tiers { display: flex; flex-direction: column; gap: var(--sp-2); margin: var(--sp-4) 0 var(--sp-3); }

.rpe-tier {
  display: flex; align-items: center; gap: var(--sp-4);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-3) var(--sp-4);
  position: relative; overflow: hidden;
}

.rpe-tier-fill { position: absolute; left: 0; top: 0; bottom: 0; opacity: 0.07; pointer-events: none; }
.rpe-tier.weak    .rpe-tier-fill { background: var(--stop);    width: 22%; }
.rpe-tier.ok      .rpe-tier-fill { background: var(--amber);   width: 46%; }
.rpe-tier.healthy .rpe-tier-fill { background: var(--green);   width: 72%; }
.rpe-tier.strong  .rpe-tier-fill { background: var(--green);   width: 100%; }

.rpe-tier-badge {
  flex-shrink: 0; width: 76px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 0; text-align: center; border-radius: var(--radius); position: relative; z-index: 1;
}
.rpe-tier.weak    .rpe-tier-badge { background: var(--stop-light);  color: var(--stop); }
.rpe-tier.ok      .rpe-tier-badge { background: var(--amber-light); color: var(--amber); }
.rpe-tier.healthy .rpe-tier-badge { background: var(--green-light); color: var(--green); }
.rpe-tier.strong  .rpe-tier-badge { background: var(--green-light); color: var(--green); }

.rpe-tier-range { flex: 1; font-size: var(--t-base); font-weight: 600; color: var(--ink); position: relative; z-index: 1; }
.rpe-tier-note  { font-size: var(--t-xs); color: var(--muted); text-align: right; max-width: 200px; line-height: 1.4; position: relative; z-index: 1; }
.rpe-your-num   { margin: var(--sp-1) 0 var(--sp-6); font-size: var(--t-sm); color: var(--accent-2); font-weight: 600; }

/* ─────────────────────────────────────────
   TECH STACK LIST - M9
───────────────────────────────────────── */
.stack-list { display: flex; flex-direction: column; gap: var(--sp-2); margin: var(--sp-4) 0; }

.stack-item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: var(--sp-6); align-items: start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-6);
  transition: background 0.12s, border-color 0.12s;
}
.stack-item:hover { background: var(--accent-light); border-color: var(--accent-border); }

.stack-layer { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-top: 3px; line-height: 1.4; }
.stack-tool  { font-size: var(--t-base); font-weight: 600; color: var(--ink); margin-bottom: 2px; line-height: 1.3; }
.stack-tool a { color: var(--accent-2); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--accent-border); transition: border-color 0.1s; }
.stack-tool a:hover { border-color: var(--accent); }
.stack-why { font-size: var(--t-sm); color: var(--muted); line-height: 1.55; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

/* PROBLEM - symptom cards */
.symptom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin: var(--sp-6) 0;
}

.symptom-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-4);
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.symptom-glyph {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--ink-mid);
}

.symptom-text { flex: 1; }

.symptom-label {
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 2px;
}

.symptom-sub {
  font-size: var(--t-xs);
  color: var(--muted);
  line-height: 1.5;
}

/* Problem diagnosis - large editorial statement */
.diagnosis {
  margin: var(--sp-8) 0 0;
  padding: var(--sp-6) var(--sp-8);
  background: var(--dark);
  border-radius: var(--radius);
  text-align: center;
}

.diagnosis p {
  font-family: var(--font-serif); font-optical-sizing: auto;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  line-height: 1.55;
  margin-bottom: 0 !important;
}

.diagnosis p strong {
  color: #fff;
  font-style: normal;
}

/* SOLUTION - what it installs tiles */
.installs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin: var(--sp-4) 0 var(--sp-8);
}

.install-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-mid);
}

.install-glyph {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  flex-shrink: 0;
}
.install-glyph svg, .symptom-glyph svg, .gate-result-icon svg {
  width: 100%; height: 100%;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Before / After contrast panel */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: var(--sp-6) 0;
}

.ba-col { padding: var(--sp-6); }

.ba-col.before {
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
}

.ba-col.after {
  background: var(--green-light);
  border-left: none;
}

.ba-label {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-2);
}

.ba-col.before .ba-label { color: var(--stop); }
.ba-col.after  .ba-label { color: var(--green); }

.ba-label::before {
  content: '';
  display: inline-block;
  width: 16px; height: 1.5px;
  flex-shrink: 0;
}

.ba-col.before .ba-label::before { background: var(--stop); }
.ba-col.after  .ba-label::before { background: var(--green); }

.ba-list { list-style: none; }

.ba-list li {
  font-size: var(--t-sm);
  line-height: 1.5;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: baseline; gap: var(--sp-2);
}

.ba-list li:last-child { border-bottom: none; }

.ba-col.before .ba-list li { color: var(--muted); }
.ba-col.after  .ba-list li { color: var(--ink-mid); font-weight: 500; }

.ba-list li::before {
  flex-shrink: 0;
  font-size: 13px; font-weight: 700;
}

.ba-col.before .ba-list li::before { content: '✕'; color: var(--stop); }
.ba-col.after  .ba-list li::before { content: '✓'; color: var(--green); }

/* HELLO - founder credential block */
.founder-block {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  margin: var(--sp-6) 0;
}

.founder-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-alt);
}

.founder-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.founder-details { flex: 1; }

.founder-name {
  font-family: var(--font-serif); font-optical-sizing: auto;
  font-size: 19px; font-weight: 600;
  color: var(--ink); line-height: 1;
  margin-bottom: 2px;
}

.founder-title {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--accent-2);
  font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.founder-creds { list-style: none; }

.founder-creds li {
  font-size: var(--t-sm);
  color: var(--ink-mid);
  padding: 4px 0 4px var(--sp-4);
  position: relative;
  line-height: 1.5;
}

.founder-creds li::before {
  content: '–';
  position: absolute; left: 0;
  color: var(--accent);
}

/* Module flow - styled slightly stronger */
.flow-line {
  background: var(--dark);
  border: none;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.85);
  font-size: var(--t-sm);
  letter-spacing: 0.03em;
  padding: var(--sp-4) var(--sp-6);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 920px) {
  #sidebar { display: none; }
  #mobile-nav { display: block; }
  #main { margin-left: 0; }
  #footer { padding: var(--sp-12) var(--sp-6) var(--sp-8); }
  .hero-wrap { padding: var(--sp-8) var(--sp-6) var(--sp-8); }
  #hero::before { font-size: 140px; right: -10px; bottom: -20px; }
  .section-band { padding: var(--sp-6) var(--sp-6) var(--sp-4); }
  .section-body { padding: var(--sp-6) var(--sp-6) var(--sp-8); }
  .intro-grid { grid-template-columns: 1fr; }
  .callout-cta { flex-direction: column; gap: var(--sp-4); }
  .before-after { grid-template-columns: 1fr; }
  .ba-col.before { border-right: none; border-bottom: 1px solid var(--border); }
  .founder-block { flex-direction: column; gap: var(--sp-4); }
}

@media (max-width: 600px) {
  .hero-outcomes { grid-template-columns: 1fr; }
  .hero-outcome:nth-child(even) { border-right: 1px solid rgba(255,255,255,0.08); }
  .hero-outcome:nth-child(5) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero-outcome:nth-child(6) { border-bottom: none; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .symptom-grid { grid-template-columns: 1fr; }
  .installs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .footer-inner { flex-direction: column; gap: var(--sp-6); }
  .stat-row { gap: var(--sp-3); }
  .callout-cta { padding: var(--sp-4) var(--sp-4); }
  #hero h1 { font-size: 38px; }
  .diagnosis { padding: var(--sp-4) var(--sp-4); }
  .stack-item { grid-template-columns: 1fr; gap: var(--sp-1); }
  .rpe-tier-note { display: none; }
}

/* v2.1: interactive worksheet inputs */
.yn-input {
  font-family: var(--font-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-mid);
  border-radius: 0;
  width: 84px;
  padding: 2px 2px 3px;
  outline: none;
  transition: border-color .18s var(--ease);
}
.yn-input:focus { border-bottom-color: var(--accent); }
.yn-input.has-value { border-bottom-color: var(--accent-border); }
.yn-inline { width: 110px; }

/* v2.1: module band watermark numeral */
.section-band { position: relative; overflow: hidden; }
.band-num {
  position: absolute;
  right: 16px; bottom: -34px;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 120px;
  line-height: 1;
  color: rgba(26,24,20,0.05);
  pointer-events: none;
  user-select: none;
}

/* v2.1: prev/next module nav */
.mod-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-6);
  margin-top: var(--sp-12);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.mod-nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink) !important;
  text-decoration: none !important;
  line-height: 1.3;
}
.mod-nav-link:hover { color: var(--accent-2) !important; }
.mod-nav-next { text-align: right; }
.mod-nav-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 3px;
}

/* v2.1: contextual gate CTA */
.gate-cta .btn-cta { margin-top: var(--sp-3); }

/* v2.1: breakout width for data displays on wide screens */
@media (min-width: 1280px) {
  .section-body .table-wrap,
  .section-body .before-after {
    width: calc(100% + 200px);
    margin-left: -100px;
  }
}

/* paper grain overlay */
.grain::after{content:'';position:fixed;inset:0;pointer-events:none;z-index:9999;opacity:.5;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"/></filter><rect width="180" height="180" filter="url(%23n)"/></svg>')}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

:root{--bg-card:#ffffff;--ink-2:#3d3a35;--border-2:#d4cfc9;--accent-bg:#eaf3f7;--green-bg:#e8f5ef;--amber-bg:#fdf3e0}
.btn-primary,.nav-btn,.pcta,.btn-white,.btn-secondary{transition:background 0.18s cubic-bezier(.2,.7,.3,1),transform 0.12s cubic-bezier(.2,.7,.3,1)}
.btn-primary:focus-visible,.nav-btn:focus-visible,.pcta:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
nav{padding:16px 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);background:var(--bg);position:sticky;top:0;z-index:200}
.nav-logo{text-decoration:none;display:flex;align-items:center}
.logo-art{background:url(/logo.png) no-repeat left center/contain;display:block}
.nav-logo-img{height:32px;width:74px}
@media(max-width:480px){.nav-logo-img{height:26px;width:60px}}
.nav-links{display:flex;align-items:center;gap:28px;list-style:none}
.nav-links a{font-size:15px;color:var(--muted);text-decoration:none;transition:color 0.2s}
.nav-links a:hover{color:var(--ink)}
.nav-btn{background:var(--accent);color:#fff;font-size:15px;font-weight:600;font-family:var(--font-sans);padding:10px 22px;border-radius:3px;text-decoration:none;transition:background 0.2s;white-space:nowrap}
.nav-btn:hover{background:var(--accent-2)}
footer{background:var(--ink);border-top:1px solid rgba(255,255,255,0.08);padding:28px 32px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.flogo{text-decoration:none;display:flex;align-items:center}
.flogo-img{height:24px;width:56px;opacity:0.55;filter:invert(1)}
.flogo:hover .flogo-img{opacity:0.85}
.fcopy{font-size:15px;color:rgba(255,255,255,0.35)}
.flinks{display:flex;gap:24px}
.flinks a{font-size:15px;color:rgba(255,255,255,0.4);text-decoration:none;transition:color 0.2s}
.flinks a:hover{color:rgba(255,255,255,0.7)}
@media(max-width:768px){nav .nav-links{display:none}footer{flex-direction:column;text-align:center}.flinks{justify-content:center}}

/* ── module pages: no sidebar, so reclaim the offset ── */
#main{margin-left:0}

/* ── page titles: an H1 in the band must read exactly like the playbook's H2 ── */
.stitle h1{font-family:var(--font-serif);font-optical-sizing:auto;
  font-size:clamp(22px,3vw,var(--t-h2));font-weight:600;color:var(--ink);
  line-height:1.2;margin-bottom:4px;letter-spacing:-0.01em}

/* ── breadcrumbs ── */
.crumbs{background:var(--bg);border-bottom:1px solid var(--border);
  padding:var(--sp-4) var(--band-pad-x)}
.crumbs nav{font-family:var(--font-mono);font-size:15px;color:var(--muted);
  display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;
  padding:0;border-bottom:none;background:none;position:static;z-index:auto}
.crumbs a{color:var(--muted);text-decoration:none;border-bottom:1px solid transparent}
.crumbs a:hover{color:var(--ink);border-bottom-color:var(--border-2)}
.crumbs [aria-current]{color:var(--ink)}
.crumb-sep{color:var(--border-2)}

/* ── Kit opt-in ── */
.optin-wrap{background:#fff;border:1px solid var(--border);border-radius:2px;
  padding:24px;max-width:520px;margin:var(--sp-5) 0}
.optin-wrap .formkit-form{margin:0 !important}
.optin-trust{font-size:15px;color:var(--muted);margin-top:12px}

/* ── hub module index ── */
.hub-list{display:flex;flex-direction:column;gap:0;border:1px solid var(--border);
  border-radius:2px;overflow:hidden;background:#fff;margin:var(--sp-6) 0}
.hub-row{display:grid;grid-template-columns:56px 1fr 28px;align-items:center;gap:16px;
  padding:18px 20px;border-bottom:1px solid var(--border);text-decoration:none;
  transition:background .18s ease}
.hub-row:last-child{border-bottom:none}
.hub-row:hover{background:var(--accent-bg)}
.hub-num{font-family:var(--font-mono);font-size:15px;font-weight:600;color:var(--accent-2);
  letter-spacing:.05em}
.hub-text{display:flex;flex-direction:column;gap:2px}
.hub-name{font-size:17px;font-weight:600;color:var(--ink)}
.hub-desc{font-size:15px;color:var(--muted);line-height:1.5}
.hub-go{color:var(--muted);font-size:17px;text-align:right}
.hub-row:hover .hub-go{color:var(--accent-2)}
@media(max-width:620px){
  .hub-row{grid-template-columns:44px 1fr;gap:12px}
  .hub-go{display:none}
}
