/*
 * components.css — Full component library
 * Source: DESIGN-SYSTEM.md §8, §11, §12
 * Supersedes previous components.css.
 * Legacy .b, .b-dark, .b-blue, .b-outline, .b-ghost aliases kept for backward compat.
 */

/* ══════════════════════════════════════════════
   SKIP LINK (accessibility)
   ══════════════════════════════════════════════ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */

/* BUTTON HIERARCHY (canonical)
   Primary action:   .btn-primary (gold gradient) — use for the single main CTA per page
   Secondary action: .btn-secondary (ghost/outline) — supporting actions
   Legacy aliases (kept for backward compat — do not use in new pages):
     .b .b-dark    — navy filled
     .b .b-blue    — gold gradient (same as btn-primary)
     .b .b-outline — gold outline
     .b .b-ghost   — neutral ghost
   New pages: use only .btn-primary and .btn-secondary.
*/

/* Primary button — gold gradient (the CTA) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  padding: 20px 32px;
  border-radius: 14px;
  border: 1px solid rgba(95,61,18,.28);
  cursor: pointer;
  transition: background .15s, transform .12s;
  width: 100%;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,236,196,.30),
    inset 0 -1px 0 rgba(74,46,12,.30),
    0 2px 5px rgba(120,80,37,.18),
    0 14px 30px rgba(140,92,28,.22);
  min-height: 44px;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-1px);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255,240,205,.38),
    inset 0 -1px 0 rgba(74,46,12,.30),
    0 4px 9px rgba(120,80,37,.20),
    0 18px 38px rgba(140,92,28,.26);
}
.btn-primary:active { transform: translateY(0) scale(.99); }
.btn-primary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; box-shadow: none; }

/* Secondary button — ghost */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--mid);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: border-color .15s, color .15s;
  width: 100%;
  min-height: 44px;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-secondary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Legacy button aliases — kept for backward compat */
.b {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 13px 28px; border-radius: 5px; text-decoration: none;
  transition: all 220ms; cursor: pointer; border: none; min-width: 140px; white-space: nowrap;
}
.b:hover { text-decoration: none; transform: translateY(-2px); }
.b:active { transform: translateY(0); }
.b-dark  { background: var(--navy); color: var(--white); box-shadow: 0 4px 20px rgba(22,53,88,.30); }
.b-dark:hover  { background: var(--navy-soft); color: var(--white); }
.b-blue  { background: var(--gold-gradient); color: var(--white); }
.b-blue:hover  { background: var(--gold-gradient-hover); color: var(--white); }
.b-outline { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.b-outline:hover { background: rgba(var(--accent-glow-deep),.08); }
.b-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--rule); }
.b-ghost:hover { background: var(--surface-2); }

/* ══════════════════════════════════════════════
   TOGGLE BUTTON GROUP
   ══════════════════════════════════════════════ */

.toggle-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-btn {
  flex: 1; min-width: 160px; min-height: 44px; padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--rule); border-radius: 10px;
  cursor: pointer; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s;
}
.toggle-btn:hover { border-color: var(--ink); }
.toggle-btn[aria-checked="true"], .toggle-btn.sel {
  border-color: var(--navy); background: var(--navy-tint); color: var(--navy);
  box-shadow: 0 0 0 3px rgba(22,53,88,.14);
}
.toggle-btn--caps {
  text-align: center; font-weight: 800; font-size: 13px;
  letter-spacing: .10em; padding: 16px 18px; line-height: 1.2;
}

/* ══════════════════════════════════════════════
   FORM INPUTS
   ══════════════════════════════════════════════ */

.field-input, .field-select {
  display: block; width: 100%; max-width: 420px;
  padding: 16px 18px;
  font-family: var(--font-sans);
  font-size: 16px; font-weight: 500; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--rule); border-radius: 10px;
  outline: none; transition: border-color .15s, box-shadow .15s; min-height: 44px;
}
.field-input:focus, .field-select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--accent-glow-deep),.15);
}
.field-input::placeholder { color: var(--placeholder); }

.pain-input, .pivot-textarea {
  width: 100%; padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 500; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--rule); border-radius: 10px;
  outline: none; resize: vertical; min-height: 84px; line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}
.pain-input:focus, .pivot-textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--accent-glow-deep),.15);
}
.pain-input::placeholder, .pivot-textarea::placeholder { color: var(--placeholder); }

.email-input {
  flex: 1; min-width: 200px; padding: 15px 18px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 500; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--rule); border-radius: 10px;
  outline: none; transition: border-color .15s, box-shadow .15s; min-height: 44px;
}
.email-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(158,115,64,.15); }
.email-status { font-family: var(--font-sans); font-size: 13px; font-weight: 600; margin-top: 14px; display: none; letter-spacing: .005em; }
.email-status.ok  { color: var(--green); }
.email-status.err { color: var(--red); }

/* ══════════════════════════════════════════════
   CARDS (4 variants)
   ══════════════════════════════════════════════ */

.card {
  background: var(--white); border: 1px solid var(--rule-soft);
  border-radius: 18px; padding: 32px;
}
.card--accent {
  background: var(--white); border: 1px solid var(--rule-soft);
  border-top: 3px solid var(--gold); border-radius: 18px; padding: 32px;
}
.card--navy-accent {
  background: var(--white); border: 1px solid var(--rule-soft);
  border-top: 3px solid var(--navy); border-radius: 18px; padding: 32px;
}
.card--dark {
  background: var(--navy); color: var(--white); border-radius: 22px; padding: 48px 36px;
}
.card--dark .eyebrow { color: var(--gold-soft); }
.card--dark p { color: rgba(255,255,255,.78); }
.card--dark p b { color: var(--white); font-weight: 700; }

.callout {
  background: var(--surface-2); border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 20px 26px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 500; color: var(--body); line-height: 1.6;
}

/* ══════════════════════════════════════════════
   PILLS / BADGES
   ══════════════════════════════════════════════ */

.pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 8px;
}
.pill--positive { background: var(--green-soft); color: var(--green); }
.pill--negative { background: var(--red-soft);   color: var(--red); }
.pill--neutral  { background: var(--surface-2);  color: var(--mid); }
.pill--amber    { background: var(--amber-soft);  color: var(--amber); }
.pill--warm     { background: #FFE9C8;             color: #8A5310; }

.save-pill {
  position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); right: max(24px, env(safe-area-inset-right));
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-sans);
  font-size: 12.5px; font-weight: 600; color: var(--mid);
  opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease;
  z-index: 50; pointer-events: none;
}
.save-pill.shown { opacity: 1; transform: translateY(0); }
.save-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ══════════════════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════════════════ */

#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gold); box-shadow: 0 0 8px rgba(var(--accent-glow-deep),.45);
  z-index: 100; transition: width .35s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════════
   TRUST BAR
   ══════════════════════════════════════════════ */

.trust-bar {
  margin-top: 36px; padding: 20px 22px;
  background: var(--white); border: 1px solid var(--rule-soft); border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 500; color: var(--mid); line-height: 1.7; letter-spacing: .005em;
}

/* ══════════════════════════════════════════════
   DATA TABLE
   ══════════════════════════════════════════════ */

.dtable {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--white); border: 1px solid var(--rule-soft);
  border-radius: 14px; overflow: hidden;
  font-family: var(--font-sans);
}
.dtable th {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mid); text-align: left; padding: 14px 18px;
  background: var(--surface-2); border-bottom: 1px solid var(--rule-soft); white-space: nowrap;
}
.dtable td {
  padding: 18px 18px; border-bottom: 1px solid var(--rule-soft);
  font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.005em;
}
.dtable tr:last-child td { border-bottom: none; }
.dtable td.muted { color: var(--mid); font-weight: 500; font-size: 13px; }

/* ══════════════════════════════════════════════
   CONTACT BLOCK
   ══════════════════════════════════════════════ */

.contact-block {
  background: var(--white); border: 1px solid var(--rule-soft);
  border-radius: 18px; padding: 32px; text-align: center; margin-top: 36px;
}
.contact-h {
  font-family: var(--font-sans);
  font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 10px; letter-spacing: -.005em;
}
.contact-body {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500; color: var(--body); line-height: 1.6; margin-bottom: 16px;
}
.contact-links {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
}
.contact-links a { color: var(--navy); }

/* ══════════════════════════════════════════════
   STAT FEATURE BLOCK
   ══════════════════════════════════════════════ */

.fidelity-feature {
  background: var(--navy); color: var(--white); border-radius: 22px; padding: 48px 36px; text-align: center;
}
.fidelity-feature .label {
  font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 18px;
}
.fidelity-feature .num {
  font-size: 88px; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--white); margin-bottom: 12px;
}
.fidelity-feature .num em {
  font-size: 36px; font-style: normal; font-weight: 500; color: var(--gold); letter-spacing: 0; margin-left: 2px;
}
.fidelity-feature .meta {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.72); line-height: 1.6; max-width: 380px; margin: 0 auto;
}

/* ══════════════════════════════════════════════
   COHORT CTA BLOCK
   ══════════════════════════════════════════════ */

.cohort-cta { background: var(--navy); color: var(--white); border-radius: 22px; padding: 40px 36px; }
.cohort-eyebrow {
  font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 14px; display: block;
}
.cohort-h {
  font-family: var(--serif); font-size: clamp(24px, 3.6vw, 30px); font-weight: 500;
  color: var(--white); letter-spacing: -.018em; line-height: 1.18; margin-bottom: 14px;
}
.cohort-h em { font-style: italic; font-weight: 600; color: var(--gold-soft); }
.cohort-body { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.78); line-height: 1.6; margin-bottom: 14px; }
.cohort-body b { color: var(--white); font-weight: 700; }

/* ══════════════════════════════════════════════
   NAVIGATION (DESIGN-SYSTEM.md §11, §26)
   ══════════════════════════════════════════════ */

nav:has(.nav-inner) {
  position: sticky; top: 0;
  background: rgba(244,243,238,.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
  z-index: 90;
}
.nav-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 24px;
  height: 52px; display: flex; align-items: center; gap: 10px;
}
.nav-koora {
  display: inline-flex; align-items: center; height: 18px;
  color: var(--navy); font-family: var(--font-sans);
  font-weight: 700; font-size: 15px; text-decoration: none; flex-shrink: 0;
}
.brand-logo { display: inline-block; height: auto; }
.brand-logo--nav { height: 34px; width: auto; }
.nav-dot { font-family: var(--font-sans); font-size: 14px; font-weight: 700; color: var(--mid); line-height: 1; }
.nav-meta { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: .18em; color: var(--mid); text-transform: uppercase; }

/* Desktop nav links */
.nav-links {
  display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: background .15s, color .15s; text-decoration: none; white-space: nowrap;
  min-height: 44px; display: flex; align-items: center;
}
.nav-links a:hover { background: var(--surface-2); color: var(--navy); }
.nav-links a.active { color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* Nav dropdown (§26: "For Organisations" + "Explore") */
.nav-dropdown { position: relative; }
.nav-dropdown__toggle {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-sans);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  padding: 8px 12px; border-radius: var(--r-sm); border: none; background: transparent;
  cursor: pointer; transition: background .15s, color .15s; min-height: 44px;
}
.nav-dropdown__toggle:hover { background: var(--surface-2); color: var(--navy); }
.nav-dropdown__menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 200px; background: var(--white); border: 1px solid var(--rule-soft);
  border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 6px; z-index: 200; list-style: none;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu { display: block; }
.nav-dropdown__menu a {
  display: flex; align-items: center; padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  border-radius: 6px; transition: background .12s; text-decoration: none; min-height: 44px;
}
.nav-dropdown__menu a:hover { background: var(--surface-2); color: var(--navy); }

/* Nav CTA (gold, always visible) — uses same gradient token as .btn-primary */
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-gradient);
  color: var(--white) !important;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 10px; border: 1px solid rgba(95,61,18,.28);
  cursor: pointer; transition: background .15s, transform .12s; text-decoration: none;
  white-space: nowrap; min-height: 44px; margin-left: 8px;
  box-shadow: inset 0 1px 0 rgba(255,236,196,.30), 0 2px 5px rgba(120,80,37,.18);
}
.nav-cta:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-1px); color: var(--white) !important;
}

/* Mobile hamburger */
.nav-hamburger, .nav-ham, .nav-mob {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav-ham span {
  display: block; width: 20px; height: 1.5px;
  background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s;
}

/* Mobile nav overlay */
.nav-mobile-overlay, .mob-menu {
  display: none; position: fixed; inset: 0;
  background: var(--white); z-index: 180; padding: 24px; overflow-y: auto;
}
.nav-mobile-overlay.open, .mob-menu.open { display: block; }
.nav-mobile-overlay nav a, .mob-link {
  display: block;
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 600; color: var(--ink);
  padding: 14px 0; border-bottom: 1px solid var(--rule-soft);
  text-decoration: none; min-height: 44px;
}
.nav-mobile-overlay nav a:hover, .mob-link:hover { color: var(--navy); }
.mob-close {
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: var(--ink); padding: 4px; font-family: var(--font-sans); line-height: 1;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger, .nav-ham, .nav-mob { display: flex; margin-left: auto; }
}

/* Mobile menu structural classes (replaces inline styles in nav.html) */
.mob-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px;
}
.mob-wordmark {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 15px; color: var(--navy); text-decoration: none;
}
.mob-section-label {
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 8px;
}
.mob-section-label--spaced { margin: 24px 0 8px; }
.mob-cta-wrap { margin-top: 32px; }

/* ══════════════════════════════════════════════
   FOOTER (DESIGN-SYSTEM.md §12, §26)
   Four columns: The Work | For Organisations | Dr. Job Mogire | Support and Privacy
   ══════════════════════════════════════════════ */

footer, .footer {
  background: var(--ink);
  padding: 56px 0 32px;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
}
.footer-brand {
  font-size: 18px; font-weight: 700; color: var(--paper-cool);
  letter-spacing: -0.02em; display: block; margin-bottom: 12px;
  text-decoration: none;
}
.footer-tagline { font-size: 14px; color: var(--mist); line-height: 1.6; margin: 0; }
.footer-head {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mist); margin-bottom: 16px;
}
.footer-link {
  font-size: 14px; font-weight: 500; color: var(--mist);
  text-decoration: none; display: block; margin-bottom: 10px; transition: color 150ms;
}
.footer-link:hover { color: var(--paper-cool); text-decoration: none; }
.footer-copy {
  font-size: 13px; color: rgba(255,255,255,0.40);
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-serving { color: rgba(255,255,255,.70); font-weight: 700; }
.footer-copyright { margin-top: 10px; display: block; }
footer a:not(.footer-link):not(.footer-brand) {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.75); text-decoration: none; display: block; margin-bottom: 6px;
}
footer a:not(.footer-link):not(.footer-brand):hover { color: var(--white); }

/* ══════════════════════════════════════════════
   Q&A ACCORDION (.hom-qa)
   Article-embedded question-answer accordion.
   Markup: section.hom-qa > .hom-qa-item > button.hom-qa-question + div.hom-qa-answer
   ══════════════════════════════════════════════ */

.hom-qa {
  margin: 48px 0 40px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}

.hom-qa-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
}

.hom-qa-item {
  border-bottom: 1px solid var(--rule-soft);
}

.hom-qa-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  gap: 16px;
  transition: color 0.15s;
}

.hom-qa-question:hover {
  color: var(--gold);
}

.hom-qa-icon {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.hom-qa-item.open .hom-qa-icon {
  transform: rotate(45deg);
}

.hom-qa-answer {
  display: none;
  padding: 0 0 20px;
}

.hom-qa-item.open .hom-qa-answer {
  display: block;
}

.hom-qa-answer p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
  margin: 0 0 12px;
}

.hom-qa-answer p:last-child {
  margin-bottom: 0;
}

/* ── Legacy qa-question/qa-answer (non-interactive) ── */
.qa-question {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 8px;
}

.qa-answer {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
  margin: 0 0 16px;
}

/* ── Unfinished Wheel ── */
.section--wheel { padding: 3.5rem 0 2rem; }
.unfinished-wheel {
  width: 100%;
  max-width: 480px;
  display: block;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .unfinished-wheel { max-width: 100%; }
}

/* ══════════════════════════════════════════════
   UNFINISHED SELF-ASSESSMENT MODAL
   ══════════════════════════════════════════════ */

#unfinished-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
#unfinished-modal[hidden] { display: none; }

.unf-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(3px);
}

.unf-panel {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  padding: 40px 44px 48px;
  box-shadow: 0 32px 80px rgba(10,22,40,0.40);
}

.unf-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mid);
  padding: 8px;
  border-radius: 50%;
  transition: background .15s, color .15s;
  line-height: 0;
}
.unf-close:hover { background: var(--surface-2); color: var(--ink); }
.unf-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.unf-progress-bar {
  height: 3px;
  background: var(--rule-soft);
  border-radius: 99px;
  margin-bottom: 32px;
  overflow: hidden;
}
.unf-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.3s ease;
  width: 0;
}

.unf-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.unf-back-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  padding: 0;
  transition: color .15s;
}
.unf-back-btn:hover { color: var(--ink); }
.unf-back-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.unf-counter {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

.unf-letter {
  font-family: var(--font-serif);
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  color: var(--rule-soft);
  margin-bottom: -8px;
  user-select: none;
}

.unf-pattern-name {
  font-family: var(--font-sans);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.unf-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.unf-bullet {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
  padding: 5px 0 5px 18px;
  position: relative;
}
.unf-bullet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.unf-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.unf-score-btn {
  width: 100%;
  padding: 16px 20px;
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .08s;
}
.unf-score-btn:hover { border-color: var(--gold); background: var(--warm-tint); }
.unf-score-btn.selected,
.unf-score-btn[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy-tint);
  color: var(--navy);
}
.unf-score-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Gate screen */
.unf-screen--gate .unf-back-btn { margin-bottom: 20px; display: block; }
.unf-gate-heading {
  font-family: var(--font-sans);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.unf-gate-sub {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--mid);
  margin-bottom: 28px;
  line-height: 1.6;
}
.unf-form { display: flex; flex-direction: column; gap: 6px; }
.unf-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 10px;
}
.unf-input {
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-height: 44px;
}
.unf-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--accent-glow-deep),.12); }
.unf-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  cursor: pointer;
}
.unf-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}
.unf-consent span {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--mid);
  line-height: 1.55;
}
.unf-submit-btn {
  margin-top: 20px;
  padding: 18px 28px;
  background: var(--gold-gradient);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: opacity .15s;
  min-height: 44px;
}
.unf-submit-btn:hover { opacity: .9; }
.unf-submit-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.unf-gate-msg {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--red);
  margin-top: 8px;
  min-height: 18px;
}

/* Result screen */
.unf-result-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.unf-score-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.unf-score-num {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.unf-score-denom {
  font-family: var(--font-sans);
  font-size: 22px;
  color: var(--mid);
}
.unf-band-label {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.unf-band-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 28px;
}
.unf-top-three { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.unf-top-pattern {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--rule-soft);
}
.unf-top-pattern--1 { background: var(--warm-tint); border-color: var(--gold); }
.unf-rank {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
  min-width: 74px;
}
.unf-top-letter {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 24px;
}
.unf-top-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  flex: 1;
}
.unf-score-dots { display: flex; gap: 5px; }
.unf-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--rule-soft);
}
.unf-dot--active { background: var(--gold); }

.unf-result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.unf-report-btn {
  padding: 16px 24px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
  min-height: 44px;
  text-align: center;
}
.unf-report-btn:hover { opacity: .88; }
.unf-finisher-link {
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  padding: 12px;
}
.unf-finisher-link:hover { text-decoration: underline; }
.unf-disclaimer {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--dim);
  text-align: center;
  line-height: 1.5;
}

/* Trigger CTA (inline on pages) */
.unf-trigger-wrap {
  margin: 36px 0;
  text-align: center;
}
.unf-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: none;
  border: 2px solid var(--gold);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.unf-trigger-btn:hover { background: var(--gold); color: var(--white); }
.unf-trigger-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 520px) {
  .unf-panel { padding: 28px 20px 36px; }
  .unf-letter { font-size: 56px; }
  .unf-score-num { font-size: 56px; }
  .unf-top-pattern { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════
   DESIGN LANGUAGE — eyebrow, hairline, hero, cards
   Sourced from hom-color-system-final.html
   ══════════════════════════════════════════════ */

/* ── Eyebrow (canonical) ── */
/* Base .eyebrow is in base.css. Variants here: */
.eyebrow--on-dark {
  color: var(--gold);
  letter-spacing: 0.22em;
}
.eyebrow--on-light {
  color: var(--gold-text);
  letter-spacing: 0.22em;
}

/* ── Gold hairline device ── */
/* A 2px rule used as the recurring accent mark between eyebrow and headline */
.gold-rule {
  display: block;
  width: 42px;
  height: 2px;
  background: var(--gold-deep);
  margin: 14px 0 16px;
  border: none;
}
.gold-rule--dark {
  background: var(--gold);
}
.gold-rule--wide {
  width: 64px;
}

/* ── Navy hero section ── */
.hero-navy {
  background: var(--navy-ink);
  color: var(--surface);
  position: relative;
  overflow: hidden;
}
.hero-navy::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(var(--accent-glow),.12) 0%, rgba(var(--accent-glow),0) 70%);
  pointer-events: none;
}
.hero-navy::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(var(--accent-glow),.18);
  pointer-events: none;
}
.hero-navy .eyebrow,
.hero-navy .eyebrow--on-dark { color: var(--gold); }
.hero-navy h1,
.hero-navy h2 { color: var(--surface); }
.hero-navy p { color: var(--mist-on-navy); }
.hero-navy .mark { color: var(--gold); }

/* ── Card · light surface ── */
/* Replaces ad-hoc card variants for the standard content card */
.card-light {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.card-light .card-body { padding: 30px 28px 34px; }
.card-light .eyebrow { color: var(--gold-text); }
.card-light h3 { color: var(--ink); }
.card-light p { color: var(--body); }
.card-light .card-cta {
  display: inline-block;
  margin-top: 18px;
  background: var(--navy);
  color: var(--surface);
  font-weight: var(--w-strong);
  font-size: 13px;
  padding: 11px 20px;
  border-radius: 8px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background .15s;
}
.card-light .card-cta:hover { background: var(--navy-mid); color: var(--surface); }

/* ── Card · dark surface ── */
.card-dark {
  background: var(--navy-ink);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.card-dark::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(var(--accent-glow),.12) 0%, rgba(var(--accent-glow),0) 70%);
  pointer-events: none;
}
.card-dark .card-body { padding: 30px 28px 34px; position: relative; }
.card-dark .eyebrow,
.card-dark .eyebrow--on-dark { color: var(--gold); }
.card-dark h3 { color: var(--surface); }
.card-dark p { color: var(--mist-on-navy); }
.card-dark .card-cta {
  display: inline-block;
  margin-top: 18px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-deep);
  font-weight: var(--w-strong);
  font-size: 13px;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.card-dark .card-cta:hover {
  border-color: var(--gold);
  background: rgba(var(--accent-glow),.08);
  color: var(--gold);
}

/* ── Section lead strip (eyebrow + gold rule + heading) ── */
.section-lead { margin-bottom: 36px; }
.section-lead .eyebrow { margin-bottom: 0; }
.section-lead .section-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mid);
  max-width: 64ch;
  margin-top: 6px;
}
