/* ==========================================================================
   Emergent Leaders Consulting — design system
   Single stylesheet, no build step. Tokens first, then layout, then parts.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy-900: #0A2438;
  --navy-800: #0E2C46;
  --navy-700: #123A59;
  --navy-600: #1B4A6E;
  --navy-500: #2A6289;

  --teal-600: #17867A;
  --teal-500: #1F9B8C;
  --teal-400: #2FA899;
  --teal-300: #4FC0B1;
  --teal-050: #E4F2EF;

  --cream-100: #FCFBF5;
  --cream-200: #FAF8F0;
  --cream-300: #F2F0E7;
  --cream-400: #E8E5D9;

  /* Semantic */
  --bg: var(--cream-200);
  --bg-alt: var(--cream-300);
  --surface: #FFFFFF;
  --ink: #0C2B45;
  --ink-soft: #4C5A66;
  --ink-mute: #76838D;
  --rule: #E2E0D5;
  --rule-dark: rgba(255, 255, 255, 0.14);

  --accent: var(--teal-500);
  --accent-on-dark: var(--teal-300);

  /* Type */
  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Space + shape */
  --gutter: 24px;
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(12, 43, 69, 0.06), 0 2px 8px rgba(12, 43, 69, 0.04);
  --shadow-md: 0 4px 12px rgba(12, 43, 69, 0.07), 0 12px 32px rgba(12, 43, 69, 0.06);
  --shadow-lg: 0 10px 24px rgba(12, 43, 69, 0.10), 0 24px 60px rgba(12, 43, 69, 0.09);

  --header-h: 76px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* The hidden attribute must win over component display rules
   (.btn is inline-flex, which would otherwise override it). */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-500); }

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 2px;
  border-radius: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: 8px; left: 8px;
  z-index: 200;
  transform: translateY(-200%);
  background: var(--navy-800); color: #fff;
  padding: 10px 18px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.95rem, 4.1vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Eyebrow: uppercase label with a leading rule, as in the mockup */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 44px; height: 2px;
  background: currentColor;
  flex: none;
}
.eyebrow--center { justify-content: center; }

/* Teal italic emphasis inside serif headlines */
.accent-italic {
  font-style: italic;
  color: var(--accent-on-dark);
}
.on-light .accent-italic, .accent-italic--light { color: var(--teal-600); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }
.section--cream { background: var(--cream-200); }
.section--alt { background: var(--bg-alt); }
.section--white { background: var(--surface); }
.section--navy {
  background: var(--navy-800);
  color: #E8EFF4;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lede { color: rgba(232, 239, 244, 0.78); }
.section--navy .eyebrow { color: var(--accent-on-dark); }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--teal-500);
  --btn-fg: #fff;
  --btn-bd: var(--teal-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), color 0.18s var(--ease);
  will-change: transform;
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31, 155, 140, 0.28);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: rgba(12, 43, 69, 0.28);
}
.btn--ghost:hover {
  --btn-bg: rgba(12, 43, 69, 0.05);
  box-shadow: none;
}
.btn--on-navy {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.4);
}
.btn--on-navy:hover {
  --btn-bg: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal-600);
  text-decoration: none;
}
.link-arrow::after {
  content: "↗";
  font-size: 0.9em;
  transition: transform 0.18s var(--ease);
}
.link-arrow:hover::after { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-800);
  border-bottom: 1px solid var(--rule-dark);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: #fff;
  flex: none;
}
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav__link {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.site-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav__link[aria-current="page"] { color: var(--accent-on-dark); }
.site-nav__cta {
  margin-left: 10px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  background: var(--teal-500);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.site-nav__cta:hover { background: var(--teal-400); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-sm);
  color: #fff;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: "";
  position: absolute; left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(-90deg) translateX(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { opacity: 0; }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px var(--gutter) 28px;
    background: var(--navy-800);
    border-bottom: 1px solid var(--rule-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform 0.28s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav[data-open="true"] { transform: translateY(0); }
  .site-nav__link { padding: 14px 4px; font-size: 0.9rem; }
  .site-nav__cta { margin: 12px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-800);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(72px, 11vw, 148px) clamp(80px, 11vw, 150px);
}
.hero::before {
  /* soft teal glow, upper right */
  content: "";
  position: absolute;
  top: -28%; right: -14%;
  width: 780px; height: 780px;
  background: radial-gradient(circle, rgba(47, 168, 153, 0.20) 0%, rgba(47, 168, 153, 0) 68%);
  pointer-events: none;
}
.hero::after {
  /* faint grid, bottom left */
  content: "";
  position: absolute;
  bottom: -40px; left: -40px;
  width: 460px; height: 320px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at bottom left, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at bottom left, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .eyebrow { color: var(--accent-on-dark); }
.hero__lede {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.72;
  color: rgba(232, 239, 244, 0.8);
  max-width: 56ch;
  margin: 26px 0 36px;
}
.hero--compact { padding-block: clamp(56px, 7vw, 96px); }
.hero--compact h1 { max-width: 24ch; }

/* Tag pills under the hero */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
  padding: 0;
  list-style: none;
}
.tag {
  padding: 7px 17px;
  border: 1px solid rgba(79, 192, 177, 0.42);
  border-radius: var(--r-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-on-dark);
  background: rgba(47, 168, 153, 0.08);
}

/* ---------- Stats band ---------- */
.stats {
  background: var(--navy-700);
  border-top: 1px solid var(--rule-dark);
  color: #fff;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.stat {
  padding: clamp(28px, 4vw, 44px) 20px;
  text-align: center;
  border-left: 1px solid var(--rule-dark);
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-on-dark);
  margin-bottom: 10px;
}
.stat__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.45;
}
@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--rule-dark); }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--cream-400);
}
.card h3 { color: var(--ink); margin-bottom: 0.45em; }
.card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* Core services carry a teal top edge + badge, per the mockup */
.card--core { border-top: 3px solid var(--teal-500); }
.card__badge {
  position: absolute;
  top: 20px; right: 20px;
  padding: 4px 11px;
  border-radius: var(--r-sm);
  background: var(--teal-050);
  color: var(--teal-600);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: var(--r-sm);
  background: var(--teal-050);
  font-size: 1.35rem;
  line-height: 1;
}
.card__meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.87rem;
  color: var(--ink-mute);
}
.card__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-400);
}
.card__foot { margin-top: auto; padding-top: 20px; }

/* ---------- Tab pills (diagnostics) ---------- */
.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding: 0;
  border: 0;
}
.pill-tab {
  padding: 11px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
  transition: all 0.16s var(--ease);
}
.pill-tab:hover { border-color: var(--teal-400); color: var(--teal-600); }
.pill-tab[aria-selected="true"] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
  font-weight: 600;
}

/* ---------- Assessment ---------- */
.assess-card {
  padding: clamp(24px, 3.4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.assess-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.assess-card__title { margin: 0 0 2px; font-size: 1.3rem; }
.assess-card__sub { margin: 0; font-size: 0.93rem; color: var(--ink-mute); }

.question { margin-bottom: 26px; }
.question:last-of-type { margin-bottom: 0; }
.question__text {
  display: block;
  margin-bottom: 11px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}
.question__hint {
  display: block;
  margin: -6px 0 11px;
  font-size: 0.87rem;
  color: var(--ink-mute);
  font-weight: 400;
}

/* 4-across option buttons; radios are visually hidden but still drive state */
.options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 720px) { .options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.option { position: relative; display: flex; }
.option input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.option span {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 13px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--ink);
  transition: all 0.16s var(--ease);
}
.option input:hover + span { border-color: var(--teal-400); background: var(--cream-100); }
.option input:focus-visible + span { outline: 3px solid var(--teal-400); outline-offset: 2px; }
.option input:checked + span {
  border-color: var(--teal-500);
  background: var(--teal-050);
  color: var(--teal-600);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--teal-500);
}

.assess-card__foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

/* Score meter */
.meter {
  height: 9px;
  border-radius: var(--r-pill);
  background: var(--cream-400);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--teal-600), var(--teal-400));
  transition: width 0.7s var(--ease);
}

.score-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(24px, 3.4vw, 36px);
  background: var(--navy-800);
  border-radius: var(--r-lg);
  color: #fff;
}
.score-dial {
  --pct: 0;
  position: relative;
  width: 148px; height: 148px;
  flex: none;
  border-radius: 50%;
  background:
    conic-gradient(var(--teal-400) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.13) 0);
  display: grid;
  place-items: center;
  transition: --pct 0.8s var(--ease);
}
.score-dial::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--navy-800);
}
.score-dial__val {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.score-dial__val small {
  display: block;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}
.score-hero__body { flex: 1 1 280px; }
.score-hero__band {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 12px;
  border-radius: var(--r-pill);
  background: rgba(79, 192, 177, 0.18);
  border: 1px solid rgba(79, 192, 177, 0.4);
  color: var(--accent-on-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.score-hero h3 { margin-bottom: 0.4em; color: #fff; }
.score-hero p { color: rgba(232, 239, 244, 0.8); margin: 0; }

/* Per-module score rows */
.score-rows { display: grid; gap: 16px; }
.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: center;
}
.score-row__label { font-size: 0.95rem; font-weight: 500; }
.score-row__val {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-600);
  font-variant-numeric: tabular-nums;
}
.score-row__meter { grid-column: 1 / -1; }
.score-row--skipped .score-row__label,
.score-row--skipped .score-row__val { color: var(--ink-mute); font-weight: 400; }

/* Recommendation horizons */
.horizon {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--teal-500);
  border-radius: var(--r-sm);
}
.horizon__when {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 10px;
}
.horizon h3, .horizon h4 { margin-bottom: 0.4em; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; }
.horizon p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }
.horizon dl { margin: 14px 0 0; font-size: 0.9rem; }
.horizon dt {
  font-weight: 600;
  color: var(--ink);
  margin-top: 10px;
}
.horizon dd { margin: 2px 0 0; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.field__req { color: var(--teal-600); }
.field__hint {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.input, .select, .textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  font-size: 0.97rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-mute); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(31, 155, 140, 0.16);
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2376838D' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
@media (max-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: #C0433A;
  box-shadow: 0 0 0 3px rgba(192, 67, 58, 0.13);
}
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #C0433A;
}
.field__error[data-show="true"] { display: block; }

/* Checkbox / multi-select chips */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 640px) { .check-grid { grid-template-columns: minmax(0, 1fr); } }
.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 0.94rem;
  line-height: 1.45;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}
.check:hover { border-color: var(--teal-400); }
.check input {
  flex: none;
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: var(--teal-500);
  cursor: pointer;
}
.check:has(input:checked) {
  border-color: var(--teal-500);
  background: var(--teal-050);
}
.check:has(input:focus-visible) { outline: 3px solid var(--teal-400); outline-offset: 2px; }

/* Multi-step progress */
.steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  margin-bottom: 30px;
}
.steps__bar {
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--cream-400);
  overflow: hidden;
}
.steps__bar[data-state="done"], .steps__bar[data-state="current"] { background: var(--teal-500); }

.form-card {
  padding: clamp(26px, 3.6vw, 44px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.form-step[hidden] { display: none; }

/* Before intake.js marks the form ready, show only the first step (JS only). */
:root.js [data-multistep]:not([data-ready]) .form-step:not(:first-of-type),
:root.js [data-multistep]:not([data-ready]) [data-form-back],
:root.js [data-multistep]:not([data-ready]) [data-form-submit] { display: none; }

/* "Continue" does nothing without JS; the form submits as one page instead. */
:root:not(.js) [data-form-next],
:root:not(.js) .steps { display: none; }
.form-step__title { margin-bottom: 0.3em; font-size: 1.35rem; }
.form-step__sub { margin-bottom: 26px; font-size: 0.95rem; color: var(--ink-mute); }
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.form-nav__count {
  font-size: 0.88rem;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

.form-status {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  font-size: 0.93rem;
  line-height: 1.6;
}
.form-status[hidden] { display: none; }
.form-status--ok { background: var(--teal-050); border: 1px solid var(--teal-400); color: var(--teal-600); }
.form-status--warn { background: #FDF6E7; border: 1px solid #E8C97A; color: #7A5A12; }
.form-status--err { background: #FCEEEC; border: 1px solid #E2A49E; color: #9B3A32; }

/* ---------- Quote ---------- */
.quote {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.quote__mark {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--accent-on-dark);
  margin-bottom: 26px;
}
.quote blockquote {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.7vw, 1.95rem);
  font-style: italic;
  line-height: 1.42;
  color: #fff;
  text-wrap: balance;
}
.quote figcaption {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(232, 239, 244, 0.66);
}

/* ---------- Process steps ---------- */
.process { counter-reset: step; display: grid; gap: 4px; }
.process__item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
.process__item:last-child { border-bottom: 1px solid var(--rule); }
.process__num {
  counter-increment: step;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--teal-500);
  line-height: 1;
}
.process__num::before { content: "0" counter(step); }
.process__body h3 { margin-bottom: 0.35em; }
.process__body p { color: var(--ink-soft); margin: 0; max-width: 62ch; }
@media (max-width: 640px) {
  .process__item { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Resource table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.94rem;
}
table.data th, table.data td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.data thead th {
  background: var(--cream-300);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--cream-100); }
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--teal-050);
  color: var(--teal-600);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip--mute { background: var(--cream-300); color: var(--ink-mute); }

/* ---------- Notice / callout ---------- */
.notice {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy-600);
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.notice strong { color: var(--ink); }
.notice--teal { border-left-color: var(--teal-500); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.faq__q::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--teal-600);
  transition: transform 0.2s var(--ease);
}
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 24px; max-width: 74ch; color: var(--ink-soft); font-size: 0.97rem; }
.faq__a[hidden] { display: none; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .lede { margin: 0 auto 32px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(232, 239, 244, 0.72);
  padding-block: clamp(48px, 6vw, 72px) 32px;
  font-size: 0.94rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule-dark);
}
@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (max-width: 560px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
}
.site-footer__blurb { max-width: 34ch; margin: 18px 0 0; line-height: 1.7; }
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(232, 239, 244, 0.72); text-decoration: none; }
.site-footer a:hover { color: var(--accent-on-dark); text-decoration: underline; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.86rem;
  color: rgba(232, 239, 244, 0.54);
}

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy-800);
  box-shadow: var(--shadow-md);
  font-size: 1.05rem;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.scroll-cue:hover { transform: translateX(-50%) translateY(-2px); }
.scroll-cue[hidden] { display: none; }

/* ---------- Reveal on scroll ---------- */
/* Only hide reveal targets when JS is present to un-hide them — otherwise
   the whole page renders invisible with scripting off. */
:root.js .reveal { opacity: 0; transform: translateY(18px); }
:root.js .reveal[data-shown="true"] {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  :root.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .scroll-cue, .btn, .form-nav { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding-block: 16pt; }
  .card, .assess-card, .horizon { box-shadow: none; break-inside: avoid; }
  .score-hero { background: #fff; color: #000; border: 1px solid #999; }
  .score-hero h3, .score-dial__val { color: #000; }
  .reveal { opacity: 1; transform: none; }
}
