/* ============================================================
   CERELEXA BRAND TOKENS + COMPONENT LIBRARY — v3.0
   Single source of truth for brand tokens and components on every surface.
   Token values and component styles are carried over UNCHANGED from
   archive/cerelexa-demo-v2.0.html. Brand constants: do not edit values
   without PO approval. Additions in v3.0 are layout/responsive only and
   reuse existing tokens (no new colours, fonts or gradients).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --ink: #0f0f0f;
  --ink2: #3a3a3a;
  --ink3: #6b6b6b;
  --ink4: #9a9a9a;
  --surface: #ffffff;
  --surface2: #f7f7f5;
  --surface3: #f0efeb;
  --border: rgba(0,0,0,0.08);
  --border2: rgba(0,0,0,0.14);
  --accent: #1a1a2e;
  --accent2: #16213e;
  --gold: #c9a84c;
  --gold2: #e8c97a;
  --teal: #0d7377;
  --teal2: #14a085;
  --coral: #c0392b;
  --navy: #0f2942;
  --indigo: #3730a3;
  --violet: #6d28d9;
  --violet2: #8b5cf6;
  --emerald: #059669;
  --amber: #d97706;
  --slate: #475569;
  --sky: #0369a1;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
  --r: 8px;
  --r2: 12px;
  --r3: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow2: 0 2px 8px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--surface2); font-size: 14px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── DISCLOSURE BANNER (private demos only) ── */
.demo-banner { background: var(--accent); color: rgba(255,255,255,0.7); text-align: center; padding: 8px 20px; font-size: 11px; letter-spacing: 0.04em; border-bottom: 1px solid rgba(255,255,255,0.08); }
.demo-banner span { color: var(--gold2); font-weight: 500; }

/* ── TOP NAV ── */
.top-nav { background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 24px; position: sticky; top: 0; z-index: 100; gap: 0; flex-wrap: wrap; }
.logo-wrap { display: flex; align-items: center; gap: 8px; padding: 12px 20px 12px 0; margin-right: 20px; flex-shrink: 0; border-right: 1px solid var(--border); text-decoration: none; }
.logo-mark { width: 28px; height: 28px; background: var(--accent); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 13px; color: var(--gold2); font-style: italic; }
.logo-name { font-family: var(--serif); font-size: 17px; color: var(--accent); letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; }
.nav-tab { padding: 14px 16px; font-size: 12.5px; font-weight: 500; color: var(--ink3); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: all 0.15s; text-decoration: none; background: none; border-top: 0; border-left: 0; border-right: 0; font-family: var(--sans); }
.nav-tab:hover { color: var(--ink); }
.nav-tab.active, .nav-tab[aria-current="page"] { color: var(--accent); border-bottom-color: var(--gold); font-weight: 600; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-left: 20px; }
.nav-sub { display: flex; gap: 0; background: var(--surface2); border-bottom: 1px solid var(--border); padding: 0 24px; flex-wrap: wrap; }
.nav-sub .nav-tab { padding: 10px 14px; font-size: 12px; }
.nav-sub[hidden] { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border2); border-radius: var(--r); padding: 6px 12px; font-family: var(--sans); font-size: 12px; color: var(--ink2); cursor: pointer; }

/* ── BUTTONS ── */
.btn-sm { padding: 7px 16px; border-radius: var(--r); font-size: 12px; font-weight: 500; cursor: pointer; border: none; transition: all 0.14s; font-family: var(--sans); text-decoration: none; display: inline-block; }
.btn-ghost-sm { background: transparent; border: 1px solid var(--border2); color: var(--ink2); }
.btn-ghost-sm:hover { border-color: var(--ink3); color: var(--ink); }
.btn-primary-sm { background: var(--accent); color: white; }
.btn-primary-sm:hover { background: #2a2a4e; }
.btn-primary { background: var(--gold); color: var(--accent); padding: 12px 24px; border-radius: var(--r); font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.15s; font-family: var(--sans); text-decoration: none; display: inline-block; }
.btn-primary:hover { background: var(--gold2); }
.btn-ghost { background: rgba(255,255,255,0.08); color: white; padding: 12px 24px; border-radius: var(--r); font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid rgba(255,255,255,0.18); transition: all 0.15s; font-family: var(--sans); text-decoration: none; display: inline-block; }
.btn-ghost:hover { background: rgba(255,255,255,0.13); }
.btn-outline { background: transparent; color: var(--accent); padding: 11px 22px; border-radius: var(--r); font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid var(--border2); font-family: var(--sans); text-decoration: none; display: inline-block; }
.btn-outline:hover { border-color: var(--accent); }

/* ── SECTIONS / LAYOUT ── */
.section { display: none; }
.section.active { display: block; }
.content-wrap { padding: 40px 56px; max-width: 1160px; margin: 0 auto; }
.section-head { margin-bottom: 32px; }
.section-title { font-family: var(--serif); font-size: 30px; color: var(--accent); margin-bottom: 10px; line-height: 1.2; font-weight: 400; }
.section-sub { font-size: 15px; color: var(--ink3); max-width: 620px; line-height: 1.65; font-weight: 300; }
.row-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink4); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.row-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); padding: 22px 24px; margin-bottom: 16px; }
.card-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card p, .body-text { font-size: 12.5px; color: var(--ink3); line-height: 1.65; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stack-gap > * + * { margin-top: 32px; }
ul.plain { padding-left: 16px; font-size: 12.5px; color: var(--ink3); line-height: 1.8; }

/* ── PILLS / TAGS / STATUS ── */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.pill-gold { background: rgba(201,168,76,0.12); color: #8a6a1f; }
.pill-teal { background: rgba(13,115,119,0.1); color: #0d7377; }
.pill-violet { background: rgba(109,40,217,0.1); color: var(--violet); }
.pill-emerald { background: rgba(5,150,105,0.1); color: var(--emerald); }
.pill-coral { background: rgba(192,57,43,0.1); color: var(--coral); }
.pill-slate { background: rgba(71,85,105,0.1); color: var(--slate); }
.pill-amber { background: rgba(217,119,6,0.1); color: var(--amber); }
.pill-sky { background: rgba(3,105,161,0.1); color: var(--sky); }
.pill-indigo { background: rgba(55,48,163,0.1); color: var(--indigo); }
a.pill { text-decoration: none; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; background: var(--surface3); color: var(--ink3); margin: 2px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-critical { background: rgba(192,57,43,0.1); color: var(--coral); } .status-critical::before { background: var(--coral); }
.status-high { background: rgba(217,119,6,0.1); color: var(--amber); } .status-high::before { background: var(--amber); }
.status-med { background: rgba(5,150,105,0.1); color: var(--emerald); } .status-med::before { background: var(--emerald); }
.status-open { background: rgba(55,48,163,0.1); color: var(--indigo); } .status-open::before { background: var(--indigo); }
.status-review { background: rgba(201,168,76,0.12); color: #8a6a1f; } .status-review::before { background: var(--gold); }
.status-done { background: rgba(5,150,105,0.08); color: var(--emerald); } .status-done::before { background: var(--emerald); }

/* ── CONFIDENCE ── */
.conf-bar-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.conf-bar-label { font-size: 11px; color: var(--ink3); width: 130px; flex-shrink: 0; }
.conf-bar-track { flex: 1; height: 6px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.conf-bar-fill { height: 100%; border-radius: 3px; }
.conf-high { background: var(--emerald); } .conf-med { background: var(--amber); } .conf-low { background: var(--coral); }
.conf-pct { font-size: 12px; font-weight: 600; color: var(--ink); min-width: 36px; text-align: right; }
.conf-note { font-size: 11px; color: var(--ink3); margin-top: 8px; line-height: 1.55; }

/* ── GOVERNED BLOCKS ── */
.evidence-block { background: rgba(13,115,119,0.04); border: 1px solid rgba(13,115,119,0.15); border-radius: var(--r); padding: 12px 16px; margin: 10px 0; }
.evidence-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.evidence-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--ink2); margin-bottom: 5px; line-height: 1.55; }
.evidence-item:last-child { margin-bottom: 0; }
.evidence-src { color: var(--teal); font-weight: 500; flex-shrink: 0; font-size: 11px; }
.challenge-block { background: rgba(217,119,6,0.04); border: 1px solid rgba(217,119,6,0.2); border-radius: var(--r); padding: 12px 16px; margin: 10px 0; }
.challenge-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.assumption-block { background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.2); border-radius: var(--r); padding: 12px 16px; margin: 10px 0; }
.assumption-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #8a6a1f; margin-bottom: 8px; }
.human-review-block { background: rgba(55,48,163,0.04); border: 1px solid rgba(55,48,163,0.15); border-radius: var(--r); padding: 12px 16px; margin: 10px 0; }
.human-review-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo); margin-bottom: 8px; }
.block-body { font-size: 12px; color: var(--ink2); line-height: 1.65; }

/* Output labels (v3.0) — reuse existing block colours */
.out-label { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.out-proposal { background: rgba(201,168,76,0.12); color: #8a6a1f; }
.out-evidence { background: rgba(13,115,119,0.1); color: var(--teal); }
.out-conclusion { background: rgba(26,26,46,0.08); color: var(--accent); }
.out-human { background: rgba(55,48,163,0.1); color: var(--indigo); }

/* ── AUDIT ── */
.audit-item { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--ink2); }
.audit-item:last-child { border-bottom: 0; }
.audit-time { color: var(--ink4); width: 110px; flex-shrink: 0; font-size: 11px; }
.audit-actor { color: var(--teal); font-weight: 500; width: 160px; flex-shrink: 0; font-size: 11px; }
.audit-actor.human { color: var(--indigo); }
.audit-action { flex: 1; }

/* ── DARK SCREEN MOCKUP ── */
.screen-wrap { background: #1a1a2e; border-radius: var(--r3); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow2); }
.screen-topbar { background: #141428; padding: 10px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.screen-dot { width: 10px; height: 10px; border-radius: 50%; }
.screen-body { display: flex; min-height: 440px; }
.screen-sidebar { width: 220px; background: #11112a; padding: 16px 0; flex-shrink: 0; border-right: 1px solid rgba(255,255,255,0.05); }
.sb-logo { padding: 0 16px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 12px; }
.sb-logo-txt { font-family: var(--serif); font-size: 15px; color: var(--gold2); font-style: italic; }
.sb-logo-sub { font-size: 9px; color: rgba(255,255,255,0.25); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }
.sb-section-label { font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.22); padding: 10px 16px 4px; }
.sb-item { display: flex; align-items: center; gap: 8px; padding: 6px 16px; font-size: 11px; color: rgba(255,255,255,0.42); }
.sb-item.active { background: rgba(201,168,76,0.1); color: var(--gold2); }
.sb-num { font-size: 9px; color: rgba(255,255,255,0.28); width: 16px; }
.sb-badge { margin-left: auto; background: rgba(192,57,43,0.3); color: #f87171; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 10px; }
.screen-main { flex: 1; background: #12122a; padding: 20px 22px; overflow: hidden; min-width: 0; }
.dash-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.dash-title { font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 3px; }
.dash-sub { font-size: 11.5px; color: rgba(255,255,255,0.35); }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.metric-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 12px 14px; }
.metric-val { font-size: 22px; color: rgba(255,255,255,0.9); margin-bottom: 2px; font-family: var(--serif); }
.metric-lbl { font-size: 10px; color: rgba(255,255,255,0.32); text-transform: uppercase; letter-spacing: 0.08em; }
.widget-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.dash-widget { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 14px; }
.widget-title { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.issue-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.issue-row:last-child { border-bottom: 0; }
.issue-sev { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.sev-c { background: #f87171; } .sev-h { background: #fbbf24; } .sev-m { background: #34d399; }
.issue-title { font-size: 11px; color: rgba(255,255,255,0.7); flex: 1; }
.issue-tag { font-size: 9px; color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
.conf-dark { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.conf-dark-label { font-size: 11px; color: rgba(255,255,255,0.5); width: 110px; flex-shrink: 0; }
.conf-dark-track { flex: 1; height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.conf-dark-fill { height: 100%; border-radius: 3px; }
.conf-dark-pct { font-size: 10px; color: rgba(255,255,255,0.35); width: 30px; text-align: right; }

/* ── HERO ── */
.hero { background: var(--accent); color: white; padding: 80px 56px 70px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 400px; height: 400px; border-radius: 50%; background: rgba(201,168,76,0.06); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -100px; left: 30%; width: 500px; height: 300px; border-radius: 50%; background: rgba(13,115,119,0.1); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-inner { max-width: 1048px; margin: 0 auto; }
.hero-eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold2); font-weight: 500; margin-bottom: 18px; }
.hero-title { font-family: var(--serif); font-size: 50px; line-height: 1.1; margin-bottom: 22px; max-width: 720px; font-style: italic; font-weight: 400; }
.hero-title em { color: var(--gold2); font-style: normal; }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.68); max-width: 560px; line-height: 1.7; margin-bottom: 36px; font-weight: 300; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-compact { padding: 56px 56px 48px; }
.hero-compact .hero-title { font-size: 38px; }

/* ── LIFECYCLE TRACK ── */
.lifecycle-track { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; margin: 16px 0; padding: 12px 16px; background: var(--surface2); border-radius: var(--r); }
.lct-step { display: flex; align-items: center; flex-shrink: 0; }
.lct-node { padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.lct-done { background: rgba(5,150,105,0.1); color: var(--emerald); }
.lct-current { background: var(--accent); color: var(--gold2); }
.lct-pending { background: var(--surface3); color: var(--ink4); }
.lct-arrow { color: var(--ink4); padding: 0 6px; font-size: 11px; }

/* ── ENGINE CARD ── */
.engine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.engine-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); padding: 20px 22px; position: relative; overflow: hidden; transition: all 0.18s; text-decoration: none; display: block; color: inherit; }
a.engine-card:hover, button.engine-card:hover { border-color: var(--border2); box-shadow: var(--shadow2); transform: translateY(-1px); }
.engine-num { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink4); margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.engine-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; line-height: 1.35; }
.engine-desc { font-size: 12px; color: var(--ink3); line-height: 1.55; }
.engine-work { font-size: 11.5px; color: var(--ink4); line-height: 1.5; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.engine-top-bar { height: 3px; margin: -20px -22px 16px -22px; background: var(--border); }
.engine-card.interactive .engine-top-bar { background: var(--gold); }

/* ── INDUSTRY CARD ── */
.industry-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); padding: 20px; }
.industry-icon { font-size: 24px; margin-bottom: 10px; }
.industry-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.industry-sub { font-size: 11.5px; color: var(--ink3); line-height: 1.5; }

/* ── DECISION BOX ── */
.decision-box { background: var(--surface); border: 1.5px solid var(--border2); border-radius: var(--r2); padding: 20px 24px; }
.decision-status-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.decision-id { font-size: 11px; font-weight: 600; color: var(--ink4); font-family: monospace; }
.decision-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.decision-meta { font-size: 12px; color: var(--ink3); margin-bottom: 14px; }

/* ── FLOW STEPS ── */
.flow-steps { display: flex; flex-direction: column; }
.flow-step { display: flex; gap: 16px; position: relative; }
.flow-step:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 38px; width: 1px; height: calc(100% - 10px); background: var(--border2); }
.flow-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; z-index: 1; }
.flow-content { padding: 4px 0 24px; }
.flow-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.flow-detail { font-size: 12px; color: var(--ink3); line-height: 1.55; max-width: 520px; }

/* ── EXEC BLOCK ── */
.exec-block { background: var(--accent); color: white; border-radius: var(--r2); padding: 28px 32px; margin-bottom: 20px; position: relative; overflow: hidden; }
.exec-block::before { content: '"'; font-family: var(--serif); font-size: 120px; color: rgba(201,168,76,0.08); position: absolute; top: -10px; left: 16px; line-height: 1; }
.exec-title { font-family: var(--serif); font-size: 22px; color: var(--gold2); margin-bottom: 10px; position: relative; font-weight: 400; }
.exec-body { font-size: 13.5px; color: rgba(255,255,255,0.72); line-height: 1.75; max-width: 680px; font-weight: 300; position: relative; }
.exec-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; position: relative; }

/* ── TABLES ── */
.scroll-x { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; padding: 8px 12px; background: var(--surface3); font-weight: 600; color: var(--ink2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
td { padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--ink2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }

/* ── PERSONNEL TABLE ── */
.req-badge { display: inline-flex; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 600; }
.req-mandatory { background: rgba(192,57,43,0.1); color: var(--coral); }
.req-conditional { background: rgba(217,119,6,0.1); color: var(--amber); }
.gap-badge { padding: 2px 7px; border-radius: 3px; font-size: 10px; font-weight: 600; }
.gap-gap { background: rgba(192,57,43,0.1); color: var(--coral); }
.gap-ok { background: rgba(5,150,105,0.08); color: var(--emerald); }
.gap-partial { background: rgba(217,119,6,0.1); color: var(--amber); }

/* ── READINESS ── */
.readiness-block { background: var(--surface2); border-radius: var(--r); padding: 14px; }
.readiness-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink3); margin-bottom: 10px; }
.readiness-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.readiness-name { font-size: 12px; color: var(--ink2); width: 180px; flex-shrink: 0; }
.readiness-bar { flex: 1; height: 6px; background: var(--border2); border-radius: 3px; overflow: hidden; }
.readiness-fill { height: 100%; border-radius: 3px; }
.readiness-status { font-size: 10px; font-weight: 600; width: 80px; text-align: right; }

/* ── LISTS ── */
.gap-list { list-style: none; }
.gap-item { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--ink2); line-height: 1.5; }
.gap-item:last-child { border-bottom: 0; }
.gap-num { color: var(--ink4); font-size: 11px; width: 24px; flex-shrink: 0; }

/* ── BANDS ── */
.band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; background: var(--surface); }
.band > div { padding: 22px 24px; border-right: 1px solid var(--border); }
.band > div:last-child { border-right: 0; }
.band-kicker { font-family: var(--serif); font-size: 20px; color: var(--accent); margin-bottom: 6px; }
.progression { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.progression .lct-node { font-size: 12px; padding: 7px 14px; }

/* ── VIDEO SLOT (reserved, empty) ── */
.video-slot[hidden] { display: none !important; }

/* ── FORMS ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; font-weight: 600; color: var(--ink2); }
.form-field input, .form-field select, .form-field textarea { font-family: var(--sans); font-size: 13px; padding: 10px 12px; border: 1px solid var(--border2); border-radius: var(--r); background: var(--surface); color: var(--ink); }
.form-field textarea { min-height: 110px; resize: vertical; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px; font-size: 12px; color: var(--ink2); }
.check-grid label { display: flex; gap: 6px; align-items: flex-start; font-weight: 400; }
.form-note { font-size: 11.5px; color: var(--ink3); margin-top: 10px; }

/* ── FOOTER ── */
.site-footer { background: var(--accent); color: rgba(255,255,255,0.55); padding: 36px 56px; font-size: 12px; margin-top: 40px; }
.site-footer .footer-inner { max-width: 1048px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; min-width: 0; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer a:hover { color: var(--gold2); }
.footer-brand { font-family: var(--serif); color: var(--gold2); font-size: 16px; font-style: italic; }

/* ── CURATED COMPONENTS (v3.1) ──
   Teaser-first components shared across surfaces.
   Existing tokens only. Flat tints, no new gradients. */

/* Hero value row: Capability. Capacity. Coordination. */
.hero-value { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 24px; align-items: center; }
.hero-value-title { font-size: 21px; font-weight: 600; letter-spacing: -0.2px; color: white; }
.hero-punch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; }
.punch { padding: 12px 14px; border: 1px solid rgba(255,255,255,0.16); border-radius: 10px; background: rgba(255,255,255,0.055); font-size: 12px; color: rgba(255,255,255,0.78); line-height: 1.45; }
.punch strong { display: block; color: var(--gold2); font-size: 13px; font-weight: 600; margin-bottom: 3px; }

/* Capability tiles: heading + one line visible; detail on hover, focus or tap */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cap-tile { --tile: var(--gold); --wash: rgba(201,168,76,0.07); position: relative; display: block; text-decoration: none; color: inherit; border: 1px solid var(--border); border-radius: var(--r2); padding: 20px 18px 16px; min-height: 116px; background: linear-gradient(var(--wash), var(--wash)), var(--surface); overflow: hidden; transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s; }
.cap-tile::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tile); }
.cap-tile:hover, .cap-tile:focus-within, .cap-tile:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow2); border-color: var(--border2); }
.cap-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cap-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 5px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cap-line { font-size: 12.5px; color: var(--ink3); line-height: 1.5; }
.cap-more { font-size: 11.5px; color: var(--ink2); line-height: 1.55; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.18s, opacity 0.18s, margin 0.18s; }
.cap-tile:hover .cap-more, .cap-tile:focus-within .cap-more, .cap-tile:focus-visible .cap-more, .cap-tile.is-open .cap-more { max-height: 140px; opacity: 1; margin-top: 8px; }
.cap-meta { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink4); margin-top: 10px; }
.cap-hint { font-size: 10px; color: var(--ink4); font-weight: 500; white-space: nowrap; }
.tone-gold    { --tile: var(--gold);    --wash: rgba(201,168,76,0.08); }
.tone-teal    { --tile: var(--teal);    --wash: rgba(13,115,119,0.06); }
.tone-violet  { --tile: var(--violet);  --wash: rgba(109,40,217,0.05); }
.tone-amber   { --tile: var(--amber);   --wash: rgba(217,119,6,0.06); }
.tone-sky     { --tile: var(--sky);     --wash: rgba(3,105,161,0.06); }
.tone-emerald { --tile: var(--emerald); --wash: rgba(5,150,105,0.06); }
.tone-slate   { --tile: var(--slate);   --wash: rgba(71,85,105,0.06); }
.tone-indigo  { --tile: var(--indigo);  --wash: rgba(55,48,163,0.06); }
.tone-coral   { --tile: var(--coral);   --wash: rgba(192,57,43,0.05); }

/* Engine teaser band */
.mantra { background: var(--accent); border-radius: var(--r3); padding: 24px 28px; color: white; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.mantra::after { content: ''; position: absolute; right: -60px; top: -90px; width: 220px; height: 220px; border-radius: 50%; background: rgba(13,115,119,0.14); pointer-events: none; }
.mantra > * { position: relative; z-index: 1; }
.mantra strong { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.25; }
.mantra span { color: var(--gold2); font-size: 13px; font-weight: 600; text-align: right; max-width: 330px; flex-shrink: 0; line-height: 1.5; }
.mantra-note { font-size: 12px; color: var(--ink3); margin-top: 10px; }

/* Proof card (navy) with a stage flow */
.proof-card { background: var(--accent); color: white; border-radius: var(--r3); padding: 28px; position: relative; overflow: hidden; }
.proof-card::after { content: ''; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(201,168,76,0.08); pointer-events: none; }
.proof-card > * { position: relative; z-index: 1; }
.proof-title { font-family: var(--serif); font-size: 25px; line-height: 1.22; font-weight: 400; margin-bottom: 8px; max-width: 880px; }
.proof-copy { font-size: 13px; color: rgba(255,255,255,0.7); max-width: 820px; line-height: 1.65; }
.proof-flow { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 18px; list-style: none; }
.proof-flow li { display: flex; align-items: center; gap: 7px; }
.proof-flow li span { font-size: 11.5px; padding: 7px 11px; border-radius: 20px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.86); }
.proof-flow li.key span { border-color: rgba(232,201,122,0.5); color: var(--gold2); }
.proof-flow li + li::before { content: '→'; color: var(--gold2); font-size: 11px; }

/* Compact trust teaser */
.trust-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.trust-mini .card { padding: 15px 16px; margin: 0; }
.trust-mini .card-title { margin-bottom: 4px; }
.trust-mini p { font-size: 11.5px; }

/* CTA band */
.cta-band { background: var(--accent); color: white; border-radius: var(--r3); padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-family: var(--serif); font-size: 25px; font-weight: 400; color: var(--gold2); }
.cta-band p { font-size: 13px; color: rgba(255,255,255,0.68); margin-top: 4px; }

/* Progressive disclosure inside demos */
details.disclose { margin-top: 10px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
details.disclose > summary { cursor: pointer; list-style: none; padding: 9px 14px; font-size: 12px; font-weight: 600; color: var(--teal); display: flex; align-items: center; gap: 8px; }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose > summary::before { content: '+'; font-weight: 700; width: 12px; }
details.disclose[open] > summary::before { content: '−'; }
details.disclose > .disclose-body { padding: 0 14px 12px; }
details.disclose .evidence-block { margin-top: 0; }

/* Touch devices and narrow screens: show tile detail without hover */
@media (hover: none) {
  .cap-more { max-height: none; opacity: 1; margin-top: 8px; }
  .cap-hint { display: none; }
}

/* ── RESPONSIVE (v3.0) ── */
@media (max-width: 980px) {
  .hero-value { grid-template-columns: 1fr; gap: 14px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-mini { grid-template-columns: repeat(2, 1fr); }
  .mantra { flex-direction: column; align-items: flex-start; }
  .mantra span { text-align: left; max-width: none; }
  .content-wrap { padding: 32px 24px; }
  .hero, .hero-compact { padding: 56px 24px 48px; }
  .hero-title { font-size: 38px; }
  .hero-compact .hero-title { font-size: 30px; }
  .four-col { grid-template-columns: 1fr 1fr; }
  .three-col, .engine-grid { grid-template-columns: 1fr 1fr; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .widget-row { grid-template-columns: 1fr; }
  .site-footer { padding: 32px 24px; }
}
@media (max-width: 720px) {
  .top-nav { padding: 0 16px; }
  .logo-wrap { border-right: 0; margin-right: 0; }
  .nav-toggle { display: inline-block; }
  .nav-links, .nav-actions { display: none; width: 100%; }
  .top-nav.open .nav-links { display: flex; flex-direction: column; align-items: stretch; }
  .top-nav.open .nav-actions { display: flex; padding: 10px 0 14px; margin-left: 0; }
  .nav-tab { border-bottom: 1px solid var(--border); }
  .nav-sub { padding: 0 16px; }
  .content-wrap { padding: 28px 16px; }
  .hero, .hero-compact { padding: 44px 16px 40px; }
  .hero-title { font-size: 30px; }
  .hero-compact .hero-title { font-size: 26px; }
  .two-col, .three-col, .four-col, .engine-grid, .band, .form-grid, .check-grid { grid-template-columns: 1fr; }
  .band > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .band > div:last-child { border-bottom: 0; }
  .screen-sidebar { display: none; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .audit-item { flex-wrap: wrap; gap: 4px 12px; }
  .audit-action { flex-basis: 100%; }
  .readiness-name { width: 120px; }
  .site-footer { padding: 28px 16px; }
  .hero-punch, .cap-grid, .trust-mini { grid-template-columns: 1fr; }
  .cap-tile { min-height: 0; }
  .cap-more { max-height: none; opacity: 1; margin-top: 8px; }
  .cap-hint { display: none; }
  .mantra strong { font-size: 21px; }
  .proof-card { padding: 22px 18px; }
  .proof-title { font-size: 21px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hide-sm { display: none; }
  th, td { padding: 8px 8px; }
}
