/* ════════════════════════════════════════════════════════════════════════
   SLEEP HEALTH HUB (SHH) — Deep Night Theme Override Layer
   Appended AFTER the cloned component base. The base (from the network
   build system) is fully variable-driven, so remapping the design tokens
   below re-themes every component to the dark "Deep Night" palette at once.
   Brand: Sleep Health Hub · sleephh.com · "shh" — quiet the noise.

   Loaded via /css/main.css?v=shh-deepnight-YYYYMMDD (bump on change).
   ════════════════════════════════════════════════════════════════════════ */

/* ── Fonts: Fraunces (display) + Inter (body) ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&display=swap');

   Sleep Health Hub — Main Stylesheet (Deep Night)
   Build Better Dog Health Systems
   Design system, layout, components, utilities
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Core Brand — deep charcoal brown */
  --navy:         #1F1A16;
  --navy-deep:    #181410;
  --navy-mid:     #2A231D;

  /* Primary accent — SAGE/OLIVE (the health accent, used most) */
  --gold:         #6F7D5C;
  --gold-light:   #7E8C68;
  --gold-tint:    #EEF1E7;
  --gold-dim:     #586549;

  /* Slate — primary neutral surface */
  --slate:        #2A231D;
  --slate-mid:    #6B6258;
  --slate-light:  #A8A39A;
  --slate-tint:   #E9E1D5;
  --slate-border: #E4DCCF;

  /* Sage — primary health accent */
  --sage:         #6F7D5C;
  --sage-mid:     #7E8C68;
  --sage-tint:    #EEF1E7;

  /* Clay — restrained warmth/detail accent */
  --clay:         #B8734A;
  --clay-mid:     #C2835C;
  --clay-tint:    #F4E7DC;

  /* Brand guide tokens */
  --charcoal:     #1F1A16;
  --cream:        #F6F1EA;
  --linen:        #E9E1D5;

  /* Text */
  --text:         #1F1A16;
  --text-light:   #6B6258;
  --text-xlight:  #A8A39A;

  /* Surfaces */
  --bg:           #F6F1EA;
  --bg-alt:       #E9E1D5;
  --white:        #FFFDF8;

  /* Status */
  --success:      #276749;
  --success-tint: #EBF8F0;
  --danger:       #9B2335;
  --danger-tint:  #FFF5F5;

  /* Borders */
  --border:       #E4DCCF;
  --border-dark:  #D4CEC4;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Outfit', 'Helvetica Neue', sans-serif;

  /* Type Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(30,24,20,0.06);
  --shadow:     0 4px 16px rgba(30,24,20,0.08);
  --shadow-lg:  0 8px 32px rgba(30,24,20,0.12);
  --shadow-xl:  0 16px 48px rgba(30,24,20,0.16);

  /* Transitions */
  --transition: 200ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 350ms cubic-bezier(0.4,0,0.2,1);

  /* Layout */
  --max-width:     1140px;
  --content-width: 740px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.section { padding: var(--space-20) 0; }
.section--sm { padding: var(--space-12) 0; }
.section--lg { padding: var(--space-24) 0; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30,24,20,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex: 0 1 auto;
}

.nav__logo-icon {
  width: 44px;
  height: 40px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}
.nav__logo-mark {
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: rgba(244,240,234,0.92);
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}
.nav__logo-text span { color: var(--gold-light); font-weight: 500; }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.nav__link:hover, .nav__link.active { color: var(--gold-light); }
.nav__cta {
  background: transparent;
  color: var(--gold-light);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  letter-spacing: 0.03em;
  border: 1px solid rgba(111,125,92,0.5);
}
.nav__cta:hover { background: rgba(111,125,92,0.12); border-color: var(--gold-light); transform: none; }
.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.nav__mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__mobile-menu {
  display: none;
  background: var(--navy-deep);
  border-top: 1px solid rgba(111,125,92,0.1);
}
.nav__mobile-menu a {
  display: block;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition);
}
.nav__mobile-menu a:hover { color: var(--gold); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 57% 43%;
  align-items: stretch;
  min-height: min(78vh, 720px);
  max-width: 1480px;
  margin: 0 auto;
}
.hero__media {
  position: relative;
  overflow: hidden;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) clamp(var(--space-8), 5vw, var(--space-24)) var(--space-16) clamp(var(--space-10), 5vw, var(--space-20));
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-16);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: var(--space-6);
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}
.hero__headline em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}
.hero__sub {
  font-size: var(--text-lg);
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 480px;
}
.hero__founder {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(111,125,92,0.2);
  border-radius: var(--radius);
  margin-bottom: var(--space-8);
  max-width: 480px;
}
.hero__founder-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 900;
  color: var(--navy);
  flex-shrink: 0;
}
.hero__founder-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
.hero__founder-text strong {
  display: block;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(111,125,92,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(8px);
}
.hero__card-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-5);
}
.hero__stack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero__stack-row:last-child { border-bottom: none; }
.hero__stack-name {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}
.hero__stack-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(39,103,73,0.25);
  color: #6FCF97;
  letter-spacing: 0.04em;
}
.hero__stack-tag--pending {
  background: rgba(111,125,92,0.15);
  color: var(--gold);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn--primary {
  background: var(--gold);
  color: #F4F0EA;
}
.btn--primary:hover {
  background: var(--gold-dim);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88,101,73,0.22);
}
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(30,24,20,0.25);
}
.btn--outline:hover {
  border-color: var(--gold-dim);
  color: var(--gold-dim);
  transform: none;
}
.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
}
.btn--lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}
.btn svg { width: 16px; height: 16px; }

/* ── Stack Category Cards ─────────────────────────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.stack-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.stack-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}
.stack-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-border);
}
.stack-card:hover::before { transform: scaleX(1); }
.stack-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--slate-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 1.5rem;
}
.stack-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: var(--space-2);
}
.stack-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}
.stack-card__desc {
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: var(--space-5);
}
.stack-card__arrow {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition);
}
.stack-card:hover .stack-card__arrow { gap: var(--space-3); }
.stack-card__cpa {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--slate-light);
  background: var(--slate-tint);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: var(--space-2);
  border: 1px solid var(--border);
}

/* ── Manifesto / Philosophy Block ─────────────────────────── */
.manifesto {
  background: var(--navy);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: 40px;
  font-family: var(--font-display);
  font-size: 300px;
  font-weight: 900;
  color: rgba(111,125,92,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.manifesto__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  text-align: center;
}
.manifesto__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-8);
}
.manifesto__eyebrow::before,
.manifesto__eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.manifesto__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-8);
}
.manifesto__quote em {
  font-style: normal;
  color: var(--gold);
}
.manifesto__body {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto var(--space-10);
}
.manifesto__ecosystem {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(111,125,92,0.2);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
}
.manifesto__ecosystem strong { color: var(--gold); }
.manifesto__ecosystem-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
}

/* ── Comparison Table ─────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
}
.comparison-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.comparison-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.comparison-table tbody tr {
  background: var(--white);
  transition: background var(--transition);
}
.comparison-table tbody tr:nth-child(even) { background: var(--bg); }
.comparison-table tbody tr:hover { background: var(--gold-tint); }
.comparison-table tbody tr.recommended { background: rgba(111,125,92,0.07); }
.comparison-table tbody tr.recommended td:first-child {
  border-left: 3px solid var(--gold);
}
.comparison-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.comparison-table td:last-child { text-align: center; }
.comparison-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--gold-tint);
  color: var(--gold-dim);
  margin-left: var(--space-2);
}
.comparison-badge--top {
  background: var(--success-tint);
  color: var(--success);
}

/* ── Article / Spoke Page Layout ──────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-12);
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}
.article-body { min-width: 0; }
.article-body h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: var(--space-10) 0 var(--space-4);
}
.article-body h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--navy);
  margin: var(--space-8) 0 var(--space-3);
}
.article-body p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}
.article-body ul, .article-body ol {
  margin: var(--space-4) 0 var(--space-6) var(--space-5);
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}
.article-body a { color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--gold-dim); }
.article-body strong { font-weight: 600; color: var(--navy); }

/* Article Meta */
.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.article-meta__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-light);
}
.article-meta__item svg { width: 15px; height: 15px; color: var(--text-xlight); }
.article-meta__author { font-weight: 600; color: var(--navy); }
.article-meta__badge {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold-tint);
  color: var(--gold-dim);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Sidebar */
.article-sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}
.sidebar-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-xlight);
  margin-bottom: var(--space-4);
}
.sidebar-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-3);
}
.sidebar-card__body {
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}
.sidebar-card--gold {
  background: var(--gold-tint);
  border-color: rgba(111,125,92,0.3);
}
.sidebar-card--navy {
  background: var(--navy);
  border-color: var(--navy);
}
.sidebar-card--navy .sidebar-card__label { color: rgba(255,255,255,0.4); }
.sidebar-card--navy .sidebar-card__title { color: var(--white); }
.sidebar-card--navy .sidebar-card__body { color: rgba(255,255,255,0.6); }

/* Table of Contents */
.toc { margin-bottom: var(--space-8); }
.toc__title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-xlight);
  margin-bottom: var(--space-4);
}
.toc__list { display: flex; flex-direction: column; gap: var(--space-1); }
.toc__link {
  font-size: var(--text-sm);
  color: var(--text-light);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition);
  display: block;
}
.toc__link:hover, .toc__link.active {
  color: var(--navy);
  border-left-color: var(--gold);
  background: var(--gold-tint);
}

/* ── Callout / Alert Boxes ────────────────────────────────── */
.callout {
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-8) 0;
  display: flex;
  gap: var(--space-4);
}
.callout--gold {
  background: var(--gold-tint);
  border-left: 4px solid var(--gold);
}
.callout--navy {
  background: rgba(30,24,20,0.04);
  border-left: 4px solid var(--navy);
}
.callout--success {
  background: var(--success-tint);
  border-left: 4px solid var(--success);
}
.callout--warning {
  background: var(--danger-tint);
  border-left: 4px solid var(--danger);
}
.callout__icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.callout__content {}
.callout__title {
  font-weight: 700;
  color: var(--navy);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}
.callout__body {
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

/* ── Affiliate Disclosure ─────────────────────────────────── */
.disclosure {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: var(--space-8);
}
.disclosure strong { color: var(--text); font-weight: 600; }

/* ── Program/Review Card ──────────────────────────────────── */
.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  transition: box-shadow var(--transition);
}
.program-card:hover { box-shadow: var(--shadow); }
.program-card--recommended {
  border-color: var(--gold);
  position: relative;
}
.program-card--recommended::before {
  content: '★ Recommended';
  position: absolute;
  top: -12px;
  left: var(--space-5);
  background: var(--gold);
  color: var(--navy);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}
.program-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  gap: var(--space-4);
}
.program-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
}
.program-card__tagline {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-top: var(--space-1);
}
.program-card__meta {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.program-card__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.program-card__meta-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-xlight);
}
.program-card__meta-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
}
.program-card__pros {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.program-card__pro {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text);
}
.program-card__pro::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.program-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.program-card__best-for {
  font-size: var(--text-xs);
  color: var(--text-light);
}
.program-card__best-for strong { color: var(--text); }

/* ── YMYL Notice ──────────────────────────────────────────── */
.ymyl-notice {
  background: var(--bg-alt);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-8);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.55;
}
.ymyl-notice svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--text-xlight); }

/* ── Page Header (Spoke pages) ────────────────────────────── */
.page-header {
  background: var(--navy);
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.35;
}
.page-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-5);
}
.page-header__breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.page-header__breadcrumb a:hover { color: var(--gold); }
.page-header__breadcrumb span { color: rgba(255,255,255,0.25); }
.page-header__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  max-width: 700px;
}
.page-header__sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.6);
  max-width: 580px;
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid rgba(111,125,92,0.1);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer__brand {}
.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.footer__logo-mark {
  width: 28px;
  height: 28px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 900;
  color: var(--navy);
}
.footer__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
}
.footer__logo-text span { color: var(--gold); }
.footer__tagline {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-5);
  max-width: 240px;
}
.footer__ecosystem {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
}
.footer__ecosystem a { color: var(--gold); transition: opacity var(--transition); }
.footer__ecosystem a:hover { opacity: 0.75; }
.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--space-5);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}
.footer__legal {
  display: flex;
  gap: var(--space-6);
}
.footer__legal a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer__legal a:hover { color: var(--gold); }

/* ── Cross-link Banner ────────────────────────────────────── */
.crosslink {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border: 1px solid rgba(111,125,92,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.crosslink__text {}
.crosslink__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.crosslink__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.crosslink__sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  margin-top: var(--space-2);
}
.crosslink__action { flex-shrink: 0; }

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-10);
}
.section-header--center { text-align: center; }
.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: var(--space-4);
}
.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.section-header__sub {
  font-size: var(--text-lg);
  color: var(--text-light);
  line-height: 1.6;
  max-width: 560px;
}
.section-header--center .section-header__sub { margin: 0 auto; }


/* ── Financial OS Journey Section ─────────────────────────── */
.os-journey {
  background: var(--white);
  padding: var(--space-20) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.os-journey__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: var(--space-12);
  position: relative;
}
.os-journey__steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 28px);
  right: calc(10% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--sage-tint), var(--sage), var(--sage-tint));
  z-index: 0;
}
.os-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-3);
  position: relative;
  z-index: 1;
}
.os-step__node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 2;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.os-step--active .os-step__node {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-tint);
  background: var(--sage-tint);
}
.os-step__number {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}
.os-step__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: var(--space-2);
}
.os-step__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}
.os-step__desc {
  font-size: var(--text-xs);
  color: var(--text-light);
  line-height: 1.5;
  max-width: 120px;
}

/* ── Evidence / Stats Row ─────────────────────────────────── */
.evidence-row {
  background: var(--slate-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-10) 0;
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}
.evidence-stat__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
}
.evidence-stat__number span { color: var(--sage); }
.evidence-stat__label {
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.4;
}
.evidence-stat__source {
  font-size: var(--text-xs);
  color: var(--text-xlight);
  margin-top: var(--space-1);
}

/* ── Segment Cards (richer) ───────────────────────────────── */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.segment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.segment-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}
.segment-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--slate-border);
}
.segment-card:hover::after { transform: scaleX(1); }
.segment-card__icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
}
.segment-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-3);
}
.segment-card__challenges {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.segment-card__challenge {
  font-size: var(--text-xs);
  color: var(--text-light);
  padding: var(--space-2) var(--space-3);
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--border-dark);
}
.segment-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition);
}
.segment-card:hover .segment-card__link { gap: var(--space-3); }

/* ── TOC links use slate not gold ─────────────────────────── */
.toc__link:hover, .toc__link.active {
  color: var(--navy);
  border-left-color: var(--sage);
  background: var(--sage-tint);
}

/* ── Callout gold → slate-tint ────────────────────────────── */
.callout--gold {
  background: var(--gold-tint);
  border-left: 4px solid var(--gold);
}

/* ── Section header eyebrow — slate ──────────────────────── */
.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: var(--space-4);
}

/* ── Utility Classes ──────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--text-light); }
.text-small { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.font-display { font-family: var(--font-display); }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { display: none; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .segment-grid { grid-template-columns: repeat(2, 1fr); }
  .os-journey__steps { flex-wrap: wrap; }
  .os-journey__steps::before { display: none; }
  .os-step { flex: 0 0 calc(33.33% - var(--space-4)); margin-bottom: var(--space-8); }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__mobile-toggle { display: flex; }
  .nav__mobile-menu.open { display: block; }
  .stack-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .crosslink { flex-direction: column; text-align: center; }
  .manifesto__ecosystem { flex-direction: column; text-align: center; gap: var(--space-2); }
  .manifesto__ecosystem-divider { display: none; }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .segment-grid { grid-template-columns: 1fr 1fr; }
  .os-step { flex: 0 0 calc(50% - var(--space-2)); }
}
@media (max-width: 480px) {

  .nav__logo-icon { width: 38px; height: 35px; }
  .nav__logo { gap: var(--space-2); }
  .nav__logo-text { font-size: 1.02rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .page-header { padding: var(--space-12) 0 var(--space-8); }
  .section { padding: var(--space-12) 0; }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-up { animation: fadeUp 0.5s ease both; }
.animate-fade-up-1 { animation: fadeUp 0.5s 0.1s ease both; }
.animate-fade-up-2 { animation: fadeUp 0.5s 0.2s ease both; }
.animate-fade-up-3 { animation: fadeUp 0.5s 0.3s ease both; }
.animate-fade-up-4 { animation: fadeUp 0.5s 0.4s ease both; }

/* ── Tool Specific Styles ─────────────────────────────────── */
.tool-hero {
  background: var(--navy);
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tool-container {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}
.tool-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.tool-progress {
  height: 4px;
  background: var(--bg);
}
.tool-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width var(--transition-slow);
}
.tool-step {
  padding: var(--space-10) var(--space-8);
  display: none;
}
.tool-step.active { display: block; animation: fadeUp 0.3s ease both; }
.tool-step__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: var(--space-3);
}
.tool-step__question {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-8);
  line-height: 1.2;
}
.tool-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.tool-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}
.tool-option:hover {
  border-color: var(--gold);
  background: var(--gold-tint);
}
.tool-option.selected {
  border-color: var(--navy);
  background: rgba(30,24,20,0.04);
}
.tool-option__icon { font-size: 1.25rem; flex-shrink: 0; }
.tool-option__text {}
.tool-option__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
}
.tool-option__sub {
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-top: 2px;
}
.tool-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-8) var(--space-8);
  border-top: 1px solid var(--border);
}
.tool-step-count {
  font-size: var(--text-xs);
  color: var(--text-xlight);
  font-weight: 500;
}
/* Results */
.tool-results {
  padding: var(--space-8);
  display: none;
}
.tool-results.active { display: block; animation: fadeUp 0.4s ease both; }
.results-header {
  text-align: center;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}
.results-header__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: var(--space-2);
}
.results-header__sub {
  font-size: var(--text-base);
  color: var(--text-light);
}
.result-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-5);
}
.result-card__header {
  background: var(--navy);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.result-card__layer {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.result-card__icon { font-size: 1.1rem; }
.result-card__body {
  padding: var(--space-5) var(--space-6);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.result-card__rec { font-size: var(--text-xs); color: var(--text-xlight); margin-bottom: 3px; }
.result-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
}
.result-card__reason {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-top: var(--space-1);
}
.score-bar {
  margin-bottom: var(--space-5);
}
.score-bar__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}
.score-bar__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
}
.score-bar__value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
}
.score-bar__track {
  height: 8px;
  background: var(--bg);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.score-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
  width: 0;
}
.results-stack-summary {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
}
.results-stack-summary__title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-5);
}
.results-stack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.results-stack-row:last-child { border-bottom: none; }
.results-stack-layer { font-size: var(--text-sm); color: rgba(255,255,255,0.5); }
.results-stack-rec { font-size: var(--text-sm); font-weight: 600; color: var(--white); }

/* ── Hero Profile Pills ────────────────────────────────────── */
.hero__profile-pills {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.hero__profile-pill {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition);
}
.hero__profile-pill:hover {
  background: rgba(255,255,255,0.13);
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.hero__profile-pill.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 600;
}

/* ── Stack field values — fade on profile switch ──────────── */
[data-stack-field] {
  transition: opacity 150ms ease;
}
[data-stack-field].fading {
  opacity: 0;
}

/* ── Lead Magnet / Blueprint section ──────────────────────── */
.leadmagnet-section { background: var(--bg); }
.leadmagnet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-10);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--bg), var(--bg-alt));
  box-shadow: var(--shadow-sm);
}
.leadmagnet-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--text-xs);
  color: var(--gold-dim);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.leadmagnet-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
}
.leadmagnet-card__sub {
  margin: 0;
  font-size: var(--text-base);
  color: var(--text-light);
  max-width: 520px;
  line-height: 1.6;
}
@media (max-width: 760px) {
  .leadmagnet-card {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6);
  }
}

/* ══════════════════════════════════════════════════════════════════
   PHASE 2 — Financial OS Expansion Styles
   ══════════════════════════════════════════════════════════════════ */

/* ── Pathway pages ───────────────────────────────────────────────── */
.pathway-stage-flow {
  display: flex; align-items: center; gap: 0;
  margin: var(--space-10) 0; overflow-x: auto;
}
.pathway-stage {
  flex: 1; min-width: 100px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5) var(--space-4);
  text-align: center; position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pathway-stage:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.pathway-stage--active { border-color: var(--gold); background: var(--gold-tint); }
.pathway-stage__num {
  font-family: var(--font-display); font-size: var(--text-2xl);
  color: var(--gold); font-weight: 700; line-height: 1;
}
.pathway-stage__label {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-light); margin-top: var(--space-1);
}
.pathway-stage__title {
  font-size: var(--text-sm); color: var(--navy); font-weight: 600;
  margin-top: var(--space-2); line-height: 1.3;
}
.pathway-arrow {
  color: var(--gold); font-size: var(--text-xl); padding: 0 var(--space-2);
  flex-shrink: 0; opacity: .6;
}

/* ── Stack recommendation table ──────────────────────────────────── */
.rec-table {
  width: 100%; border-collapse: collapse;
  margin: var(--space-8) 0;
}
.rec-table th {
  text-align: left; padding: var(--space-3) var(--space-4);
  background: var(--navy); color: var(--white);
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.rec-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.rec-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.rec-table td {
  padding: var(--space-4); border-bottom: 1px solid var(--border);
  font-size: var(--text-sm); vertical-align: top;
}
.rec-table tr:last-child td { border-bottom: none; }
.rec-table tr:hover td { background: var(--bg); }
.rec-table td:first-child {
  font-weight: 700; color: var(--navy); white-space: nowrap;
}
.rec-table .rec-tool { font-weight: 700; color: var(--navy); }
.rec-table .rec-alt { font-size: var(--text-xs); color: var(--text-light); }
.rec-table .rec-why { color: var(--text); line-height: 1.5; }
.rec-table .rec-cost {
  font-family: var(--font-body); font-size: var(--text-xs);
  color: var(--sage); font-weight: 700; white-space: nowrap;
}

/* ── Mistakes list ───────────────────────────────────────────────── */
.mistake-list {
  display: flex; flex-direction: column; gap: var(--space-3);
  margin: var(--space-8) 0;
}
.mistake-item {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); border-left: 3px solid var(--danger);
}
.mistake-item__num {
  font-family: var(--font-display); font-size: var(--text-xl);
  color: var(--danger); font-weight: 700; flex-shrink: 0; line-height: 1;
}
.mistake-item__title { font-weight: 700; color: var(--navy); margin-bottom: var(--space-1); }
.mistake-item__body { font-size: var(--text-sm); color: var(--text); line-height: 1.6; }

/* ── Implementation sequence ─────────────────────────────────────── */
.impl-sequence {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4); margin: var(--space-8) 0;
}
.impl-month {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.impl-month__head {
  padding: var(--space-3) var(--space-5);
  background: var(--navy); color: var(--white);
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.impl-month__body { padding: var(--space-5); }
.impl-month__items { display: flex; flex-direction: column; gap: var(--space-2); }
.impl-month__item {
  display: flex; gap: var(--space-3); align-items: flex-start;
  font-size: var(--text-sm); color: var(--text); line-height: 1.45;
}
.impl-month__item::before {
  content: '→'; color: var(--gold); flex-shrink: 0;
  font-weight: 700; margin-top: 1px;
}

/* ── Implementation cards (for /implementation/ page) ────────────── */
.impl-card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4); margin: var(--space-8) 0;
}
.impl-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.impl-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.impl-card__phase {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold);
}
.impl-card__title {
  font-family: var(--font-display); font-size: var(--text-xl);
  color: var(--navy); line-height: 1.2;
}
.impl-card__problem { font-size: var(--text-sm); color: var(--danger); line-height: 1.5; }
.impl-card__action { font-size: var(--text-sm); color: var(--text); line-height: 1.55; }
.impl-card__outcome {
  font-size: var(--text-sm); color: var(--sage); font-weight: 600;
  padding-top: var(--space-3); border-top: 1px solid var(--border);
}
.impl-card__meta {
  display: flex; gap: var(--space-3); flex-wrap: wrap;
}
.impl-card__meta span {
  font-size: var(--text-xs); color: var(--text-light);
  background: var(--bg); padding: 2px 8px;
  border-radius: var(--radius-full); border: 1px solid var(--border);
}

/* ── Methodology enhancements ────────────────────────────────────── */
.method-sequence {
  display: flex; flex-direction: column; gap: 0;
  margin: var(--space-8) 0; border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
}
.method-seq-step {
  display: flex; align-items: center; gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.method-seq-step:last-child { border-bottom: none; }
.method-seq-step:nth-child(odd) { background: var(--bg); }
.method-seq-num {
  font-family: var(--font-display); font-size: var(--text-3xl);
  color: var(--gold); font-weight: 700; flex-shrink: 0; width: 48px;
}
.method-seq-content {}
.method-seq-title { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.method-seq-why { font-size: var(--text-sm); color: var(--text-light); line-height: 1.5; }

/* ── Ecosystem 3-card (CreusLife) ────────────────────────────────── */
.ecosystem3-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4); margin: var(--space-8) 0;
}
.ecosystem3-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-6);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.ecosystem3-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.ecosystem3-card--current { border-color: var(--gold); background: var(--gold-tint); }
.ecosystem3-card--inactive { opacity: 0.45; pointer-events: none; }
.ecosystem3-card__domain {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold);
}
.ecosystem3-card__name {
  font-family: var(--font-display); font-size: var(--text-xl);
  color: var(--navy); line-height: 1.2;
}
.ecosystem3-card__desc { font-size: var(--text-sm); color: var(--text-light); line-height: 1.55; }
.ecosystem3-card__cta { font-size: var(--text-sm); color: var(--gold); font-weight: 700; margin-top: auto; }

/* ── Responsive additions ────────────────────────────────────────── */
@media (max-width: 900px) {
  .impl-sequence { grid-template-columns: 1fr; }
  .impl-card-grid { grid-template-columns: 1fr 1fr; }
  .ecosystem3-grid { grid-template-columns: 1fr; }
  .pathway-stage-flow { flex-direction: column; align-items: stretch; }
  .pathway-arrow { transform: rotate(90deg); text-align: center; }
}
@media (max-width: 640px) {
  .impl-card-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   FINAL REVISION — Builder Snapshot Panel + OS Visual tweaks
   ══════════════════════════════════════════════════════════════════ */

/* ── Stack Snapshot (builder results top panel) ──────────────────── */
.results-snapshot {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}
.results-snapshot__eyebrow {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold-light); margin-bottom: var(--space-5);
}
.results-snapshot__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.results-snapshot__item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
  min-width: 0;
}
.results-snapshot__layer {
  font-size: var(--text-xs); color: rgba(255,255,255,.5);
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.results-snapshot__rec {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--white); font-weight: 700; line-height: 1.1;
  word-break: break-word;
}
.results-snapshot__divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: var(--space-2) 0 var(--space-5);
}
.results-snapshot__priority {
  background: rgba(111,125,92,.18);
  border: 1px solid rgba(111,125,92,.35);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}
.results-snapshot__priority-label {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold-light); margin-bottom: var(--space-2);
}
.results-snapshot__priority-text {
  font-size: var(--text-base); color: var(--white);
  font-weight: 600; line-height: 1.5;
}
.results-snapshot__actions-label {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.45); margin-bottom: var(--space-3);
}
.results-snapshot__actions {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.results-snapshot__actions li {
  font-size: var(--text-sm); color: rgba(255,255,255,.85);
  line-height: 1.5; padding-left: var(--space-5); position: relative;
}
.results-snapshot__actions li::before {
  content: '•'; position: absolute; left: 0;
  color: var(--gold); font-weight: 700;
}

@media (max-width: 600px) {
  .results-snapshot__grid { grid-template-columns: repeat(2, 1fr); }
  .results-snapshot { padding: var(--space-6); }
  .results-snapshot__rec { font-size: var(--text-lg); }
}

/* ══════════════════════════════════════════════════════════════════
   MICRO REVISION — OS Flow Chain (vertical sequence visual)
   ══════════════════════════════════════════════════════════════════ */

.os-flow-chain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: var(--space-12) auto 0;
  max-width: 420px;
}
.os-flow-chain__step {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.os-flow-chain__step:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-sm);
}
.os-flow-chain__step--active {
  border-color: var(--sage);
  background: var(--sage-tint);
}
.os-flow-chain__stage {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  min-width: 70px;
}
.os-flow-chain__step:not(.os-flow-chain__step--active) .os-flow-chain__stage {
  color: var(--text-xlight);
}
.os-flow-chain__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.os-flow-chain__step:not(.os-flow-chain__step--active) .os-flow-chain__title {
  color: var(--slate-light);
}
.os-flow-chain__arrow {
  font-size: var(--text-xl);
  color: var(--sage);
  line-height: 1;
  padding: var(--space-1) 0;
  opacity: 0.5;
  text-align: center;
  width: 100%;
}

/* Chain always visible — reinforces sequence on all viewports.
   On mobile, circles collapse (flex-wrap) so chain is the primary visual */
@media (max-width: 640px) {
  .os-journey__steps { display: none; }
  .os-flow-chain { margin-top: var(--space-6); }
}


/* Final financial stack summary patch */
.financial-stack-summary .results-snapshot__eyebrow {
  margin: 0 0 var(--space-5);
}

/* ══════════════════════════════════════════════════════════════════
   PHASE NEXT — Journey / Playbook / Financial OS / Maturity Styles
   ══════════════════════════════════════════════════════════════════ */

/* ── Journey step flow ───────────────────────────────────────────── */
.journey-flow {
  display: flex; flex-direction: column; gap: 0;
  margin: var(--space-10) 0; position: relative;
}
.journey-step {
  display: grid; grid-template-columns: 56px 1fr;
  gap: var(--space-5); position: relative;
}
.journey-step:not(:last-child)::before {
  content: ''; position: absolute;
  left: 27px; top: 56px; bottom: -16px; width: 2px;
  background: var(--border); z-index: 0;
}
.journey-step__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 900; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; position: relative; z-index: 1;
  border: 3px solid var(--bg);
}
.journey-step__num--active { background: var(--gold); color: var(--white); }
.journey-step__body {
  padding-bottom: var(--space-10); min-width: 0;
}
.journey-step__title {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 900; color: var(--navy); margin: 0 0 var(--space-3);
  line-height: 1.2;
}
.journey-step__desc {
  font-size: var(--text-base); color: var(--text);
  line-height: 1.75; margin-bottom: var(--space-4);
}

/* ── Revenue stage cards ─────────────────────────────────────────── */
.stage-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: var(--space-4); margin: var(--space-8) 0;
}
.stage-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.stage-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.stage-card--active { border-color: var(--gold); }
.stage-card__head {
  background: var(--navy); padding: var(--space-4) var(--space-5);
  color: var(--white);
}
.stage-card__label {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold-light); margin-bottom: var(--space-1);
}
.stage-card__revenue {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 900; line-height: 1.1;
}
.stage-card__body { padding: var(--space-5); }
.stage-card__items { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.stage-card__item {
  font-size: var(--text-sm); color: var(--text);
  display: flex; gap: var(--space-2); align-items: flex-start; line-height: 1.4;
}
.stage-card__item::before { content: '→'; color: var(--gold); flex-shrink: 0; font-weight: 700; }
.stage-card__badge {
  font-size: var(--text-xs); font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-full);
  background: var(--gold-tint); color: var(--gold-dim);
  display: inline-block; margin-top: var(--space-3);
}

/* ── Checklist interactive ───────────────────────────────────────── */
.checklist-section {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  margin: var(--space-8) 0;
}
.checklist-group__head {
  background: var(--navy); padding: var(--space-3) var(--space-5);
  color: var(--white); font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  display: flex; align-items: center; justify-content: space-between;
}
.checklist-group__count {
  background: rgba(255,255,255,.15);
  padding: 2px 8px; border-radius: var(--radius-full);
  font-size: var(--text-xs);
}
.checklist-item {
  display: flex; align-items: flex-start; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background var(--transition);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item:hover { background: var(--bg); }
.checklist-item--done { background: var(--success-tint); }
.checklist-item__box {
  width: 22px; height: 22px; border-radius: 5px;
  border: 2px solid var(--border-dark); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px; transition: all .2s;
}
.checklist-item--done .checklist-item__box {
  background: var(--success); border-color: var(--success); color: var(--white);
}
.checklist-item__text { font-size: var(--text-sm); color: var(--text); line-height: 1.5; }
.checklist-item__why { font-size: var(--text-xs); color: var(--text-light); margin-top: 2px; }
.checklist-item--done .checklist-item__text { color: var(--text-light); }
.checklist-progress {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5);
  margin-bottom: var(--space-6); display: flex; gap: var(--space-5); align-items: center;
}
.checklist-progress__bar-track {
  flex: 1; height: 8px; background: var(--border);
  border-radius: var(--radius-full); overflow: hidden;
}
.checklist-progress__bar-fill {
  height: 100%; background: var(--success);
  border-radius: var(--radius-full);
  transition: width .4s ease;
}
.checklist-progress__label {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 900; color: var(--navy); white-space: nowrap;
}

/* ── Financial OS diagram layers ─────────────────────────────────── */
.fos-layers {
  display: flex; flex-direction: column; gap: 0;
  margin: var(--space-8) 0; border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
}
.fos-layer {
  display: grid; grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.fos-layer:last-child { border-bottom: none; }
.fos-layer:hover { background: var(--bg); }
.fos-layer--primary .fos-layer__label { background: var(--navy); }
.fos-layer__label {
  padding: var(--space-5) var(--space-6);
  background: var(--slate-tint);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: var(--space-1);
  justify-content: center;
}
.fos-layer__num {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold);
}
.fos-layer__name {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 900; color: var(--navy); line-height: 1.15;
}
.fos-layer--primary .fos-layer__name { color: var(--white); }
.fos-layer__body { padding: var(--space-5) var(--space-6); }
.fos-layer__desc { font-size: var(--text-sm); color: var(--text); line-height: 1.6; }
.fos-layer__tools {
  display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3);
}
.fos-layer__tool {
  font-size: var(--text-xs); padding: 3px 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-full); color: var(--text-light); font-weight: 600;
}

/* ── Capability cards ────────────────────────────────────────────── */
.capability-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--space-4); margin: var(--space-8) 0;
}
.capability-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: all var(--transition);
}
.capability-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.capability-card__icon {
  font-size: 1.75rem; line-height: 1;
}
.capability-card__cap {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--gold);
}
.capability-card__outcome {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 900; color: var(--navy); line-height: 1.2;
}
.capability-card__arrow {
  font-size: var(--text-xs); color: var(--text-xlight);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
.capability-card__desc {
  font-size: var(--text-sm); color: var(--text-light); line-height: 1.55;
  padding-top: var(--space-3); border-top: 1px solid var(--border);
}

/* ── Failure mode cards ──────────────────────────────────────────── */
.failure-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: var(--space-4); margin: var(--space-8) 0;
}
.failure-card {
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-lg); padding: var(--space-5);
}
.failure-card__symptom {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--danger); margin-bottom: var(--space-2);
}
.failure-card__title {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 900; color: var(--navy); margin-bottom: var(--space-2);
}
.failure-card__desc { font-size: var(--text-sm); color: var(--text); line-height: 1.55; }
.failure-card__fix {
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm); color: var(--sage); font-weight: 600;
}

/* ── Maturity model ──────────────────────────────────────────────── */
.maturity-ladder {
  display: flex; flex-direction: column; gap: 0;
  margin: var(--space-8) 0; border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
}
.maturity-level {
  display: grid; grid-template-columns: 140px 1fr 1fr;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.maturity-level:last-child { border-bottom: none; }
.maturity-level:hover { background: var(--bg); }
.maturity-level__badge {
  padding: var(--space-5) var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-1);
  justify-content: center; border-right: 1px solid var(--border);
  background: var(--slate-tint);
}
.maturity-level__num {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 900; color: var(--navy); line-height: 1;
}
.maturity-level__name {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--gold);
}
.maturity-level__col {
  padding: var(--space-4) var(--space-5);
  border-right: 1px solid var(--border); font-size: var(--text-sm);
}
.maturity-level__col:last-child { border-right: none; }
.maturity-level__col-head {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-xlight); margin-bottom: var(--space-2);
}
.maturity-level__items { display: flex; flex-direction: column; gap: var(--space-1); }
.maturity-level__item { color: var(--text); line-height: 1.45; }

/* ── Assessment quiz ─────────────────────────────────────────────── */
.assessment-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  max-width: 720px; margin: 0 auto;
}
.assessment-q {
  padding: var(--space-8);
  display: none;
}
.assessment-q.active { display: block; }
.assessment-q__label {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-xlight); margin-bottom: var(--space-4);
}
.assessment-q__question {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 900; color: var(--navy); margin-bottom: var(--space-6);
  line-height: 1.25;
}
.assessment-options {
  display: flex; flex-direction: column; gap: var(--space-3);
}
.assessment-option {
  display: flex; align-items: flex-start; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  cursor: pointer; transition: all .2s;
  font-size: var(--text-sm); color: var(--text); line-height: 1.45;
}
.assessment-option:hover { border-color: var(--gold); background: var(--gold-tint); }
.assessment-option--selected { border-color: var(--gold); background: var(--gold-tint); }
.assessment-option__indicator {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border-dark); flex-shrink: 0;
  margin-top: 1px; transition: all .2s;
}
.assessment-option--selected .assessment-option__indicator {
  background: var(--gold); border-color: var(--gold);
}
.assessment-nav {
  padding: var(--space-5) var(--space-8);
  background: var(--bg); border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.assessment-result { padding: var(--space-8); display: none; }
.assessment-result.active { display: block; }
.assessment-result__level {
  font-family: var(--font-display); font-size: var(--text-5xl);
  font-weight: 900; color: var(--navy); line-height: 1;
}
.assessment-result__label {
  font-size: var(--text-sm); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin: var(--space-2) 0 var(--space-5);
}
.assessment-progress {
  display: flex; gap: var(--space-2); padding: var(--space-4) var(--space-8);
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.assessment-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: background .2s;
}
.assessment-dot.active { background: var(--gold); }
.assessment-dot.done { background: var(--navy); }

/* ── Profit First account diagram ────────────────────────────────── */
.pf-diagram {
  display: flex; flex-direction: column; gap: 0;
  max-width: 600px; margin: var(--space-8) auto;
}
.pf-income {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-5) var(--space-6); text-align: center;
}
.pf-income__label {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--gold-light);
}
.pf-income__title {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 900; margin-top: var(--space-1);
}
.pf-arrow-row {
  display: flex; justify-content: space-around;
  padding: var(--space-3) 0; background: var(--bg);
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
.pf-arrow {
  display: flex; flex-direction: column; align-items: center;
  font-size: var(--text-xs); color: var(--text-light); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; gap: 2px;
}
.pf-arrow__icon { font-size: 1.25rem; color: var(--gold); }
.pf-accounts {
  display: grid; grid-template-columns: repeat(5,1fr);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
}
.pf-account {
  padding: var(--space-4) var(--space-3); text-align: center;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.pf-account:last-child { border-right: none; }
.pf-account__pct {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 900; color: var(--navy);
}
.pf-account__name {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-light);
}
.pf-account__bank {
  font-size: var(--text-xs); color: var(--gold);
  font-weight: 600; padding: 2px 6px;
  background: var(--gold-tint); border-radius: var(--radius-full);
}

/* ── Workflow diagram ─────────────────────────────────────────────── */
.workflow-flow {
  display: flex; align-items: stretch;
  gap: 0; overflow-x: auto; margin: var(--space-8) 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.workflow-step {
  flex: 1; min-width: 120px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
}
.workflow-step:last-child { border-right: none; }
.workflow-step__head {
  background: var(--navy); padding: var(--space-3) var(--space-4);
  color: var(--white); text-align: center;
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.workflow-step__head--gold { background: var(--gold); }
.workflow-step__body {
  padding: var(--space-4); flex: 1;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.workflow-step__item {
  font-size: var(--text-xs); color: var(--text); line-height: 1.4;
  padding: var(--space-2) var(--space-3);
  background: var(--bg); border-radius: var(--radius-sm);
}

/* ── "Related paths" section ─────────────────────────────────────── */
.related-paths {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border); margin-top: var(--space-10);
}
.related-paths__title {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-xlight); margin-bottom: var(--space-5);
}
.related-paths__grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-3);
}
.related-path {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-decoration: none; transition: all var(--transition);
}
.related-path:hover { border-color: var(--gold); background: var(--gold-tint); }
.related-path__icon { font-size: 1.25rem; flex-shrink: 0; }
.related-path__label {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-xlight); margin-bottom: 2px;
}
.related-path__title { font-size: var(--text-sm); font-weight: 700; color: var(--navy); line-height: 1.3; }

/* ── Responsive additions ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .stage-grid { grid-template-columns: 1fr 1fr; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .failure-grid { grid-template-columns: 1fr; }
  .maturity-level { grid-template-columns: 100px 1fr; }
  .maturity-level__col:last-child { display: none; }
  .fos-layer { grid-template-columns: 160px 1fr; }
  .related-paths__grid { grid-template-columns: 1fr 1fr; }
  .pf-accounts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .stage-grid { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .maturity-level { grid-template-columns: 1fr; }
  .fos-layer { grid-template-columns: 1fr; }
  .fos-layer__label { border-right: none; border-bottom: 1px solid var(--border); }
  .journey-step { grid-template-columns: 44px 1fr; gap: var(--space-3); }
  .journey-step__num { width: 44px; height: 44px; font-size: var(--text-base); }
  .related-paths__grid { grid-template-columns: 1fr; }
  .pf-accounts { grid-template-columns: 1fr; }
  .workflow-flow { flex-direction: column; }
  .workflow-step { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ══════════════════════════════════════════════════════════════════
   PHASE NEXT.1 — Diagnostic + Architecture + Sticky CTA
   ══════════════════════════════════════════════════════════════════ */

/* ── Diagnostic ─────────────────────────────────────────────────── */
.diag-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  max-width: 760px; margin: 0 auto var(--space-6);
}
.diag-progress-bar {
  height: 5px; background: var(--border);
  position: relative; overflow: hidden;
}
.diag-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--sage));
  transition: width .4s ease; width: 0%;
}
.diag-header {
  padding: var(--space-5) var(--space-8);
  background: var(--bg); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.diag-step-label {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-xlight);
}
.diag-dots { display: flex; gap: 6px; }
.diag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: background .25s;
}
.diag-dot.active { background: var(--gold); }
.diag-dot.done { background: var(--navy); }

.diag-q { padding: var(--space-8); display: none; }
.diag-q.active { display: block; }
.diag-q__question {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 900; color: var(--navy); margin-bottom: var(--space-2);
  line-height: 1.25;
}
.diag-q__context {
  font-size: var(--text-sm); color: var(--text-light);
  line-height: 1.6; margin-bottom: var(--space-6);
}
.diag-options { display: flex; flex-direction: column; gap: var(--space-3); }
.diag-option {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  cursor: pointer; transition: all .18s; text-decoration: none;
}
.diag-option:hover { border-color: var(--gold); background: var(--gold-tint); }
.diag-option--selected { border-color: var(--gold); background: var(--gold-tint); }
.diag-option__radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border-dark); flex-shrink: 0; margin-top: 1px;
  transition: all .18s; display: flex; align-items: center; justify-content: center;
}
.diag-option--selected .diag-option__radio {
  background: var(--gold); border-color: var(--gold);
}
.diag-option__radio::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--white); opacity: 0; transition: opacity .18s;
}
.diag-option--selected .diag-option__radio::after { opacity: 1; }
.diag-option__label { font-size: var(--text-sm); color: var(--text); line-height: 1.5; font-weight: 500; }
.diag-option__sub { font-size: var(--text-xs); color: var(--text-light); margin-top: 2px; }

/* ── Diagnostic result ───────────────────────────────────────────── */
.diag-result { display: none; }
.diag-result.active { display: block; }
.diag-result__hero {
  background: var(--navy); padding: var(--space-10) var(--space-8);
  text-align: center;
}
.diag-result__eyebrow {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--gold-light); margin-bottom: var(--space-3);
}
.diag-result__level {
  font-family: var(--font-display); font-size: clamp(4rem, 10vw, 6rem);
  font-weight: 900; color: var(--white); line-height: 1;
}
.diag-result__label {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 700; color: var(--gold-light); margin: var(--space-2) 0 var(--space-4);
}
.diag-result__score-bar {
  max-width: 320px; margin: 0 auto; height: 8px;
  background: rgba(255,255,255,.15); border-radius: var(--radius-full); overflow: hidden;
}
.diag-result__score-fill {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--sage), var(--sage-mid));
  transition: width 1s ease .3s;
}
.diag-result__body { padding: var(--space-8); }
.diag-result__summary {
  font-size: var(--text-base); color: var(--text); line-height: 1.75;
  margin-bottom: var(--space-6);
}
.diag-gaps { margin: var(--space-6) 0; }
.diag-gaps__title {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-xlight); margin-bottom: var(--space-4);
}
.diag-gap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.diag-gap {
  padding: var(--space-4); border-radius: var(--radius-lg);
  border-left: 3px solid;
}
.diag-gap--warn { border-color: var(--gold); background: var(--gold-tint); }
.diag-gap--crit { border-color: var(--danger); background: var(--danger-tint); }
.diag-gap--ok { border-color: var(--success); background: var(--success-tint); }
.diag-gap__status {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px;
}
.diag-gap--warn .diag-gap__status { color: var(--gold-dim); }
.diag-gap--crit .diag-gap__status { color: var(--danger); }
.diag-gap--ok .diag-gap__status { color: var(--success); }
.diag-gap__name { font-size: var(--text-sm); font-weight: 700; color: var(--navy); line-height: 1.3; }
.diag-actions { margin: var(--space-8) 0; }
.diag-action-list { display: flex; flex-direction: column; gap: var(--space-3); }
.diag-action {
  display: flex; gap: var(--space-4); padding: var(--space-4) var(--space-5);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); align-items: flex-start;
}
.diag-action__num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: var(--text-xs); font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.diag-action__text { font-size: var(--text-sm); color: var(--text); line-height: 1.55; }
.diag-action__link { color: var(--sage); font-weight: 600; }
.diag-ctas {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3);
  margin: var(--space-6) 0;
}

/* ── Architecture progression ───────────────────────────────────── */
.arch-flow {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; margin: var(--space-8) 0;
  border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden;
}
.arch-stage {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
  cursor: default;
}
.arch-stage:last-child { border-right: none; }
.arch-stage:hover { background: var(--bg); }
.arch-stage--active { background: var(--navy); }
.arch-stage__head {
  padding: var(--space-4) var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.arch-stage--active .arch-stage__head { border-bottom-color: rgba(255,255,255,.12); }
.arch-stage__icon { font-size: 1.5rem; display: block; margin-bottom: var(--space-2); }
.arch-stage__name {
  font-family: var(--font-display); font-size: var(--text-base);
  font-weight: 900; color: var(--navy); line-height: 1.15;
}
.arch-stage--active .arch-stage__name { color: var(--white); }
.arch-stage__revenue {
  font-size: var(--text-xs); color: var(--gold); font-weight: 700;
  margin-top: var(--space-1);
}
.arch-stage--active .arch-stage__revenue { color: var(--gold-light); }
.arch-stage__body { padding: var(--space-4); flex: 1; }
.arch-stage__items { display: flex; flex-direction: column; gap: var(--space-2); }
.arch-stage__item {
  font-size: var(--text-xs); color: var(--text-light); line-height: 1.4;
  display: flex; gap: var(--space-2);
}
.arch-stage--active .arch-stage__item { color: rgba(255,255,255,.7); }
.arch-stage__item::before { content: '→'; color: var(--gold); flex-shrink: 0; font-weight: 700; }
.arch-stage__trigger {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs); color: var(--text-xlight); line-height: 1.35;
  font-style: italic;
}
.arch-stage--active .arch-stage__trigger {
  border-top-color: rgba(255,255,255,.12); color: rgba(255,255,255,.5);
}

/* ── Sticky CTA bar ──────────────────────────────────────────────── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy); border-top: 2px solid var(--gold);
  padding: var(--space-3) var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); z-index: 200;
  transform: translateY(100%); transition: transform .35s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta__msg {
  font-size: var(--text-sm); color: rgba(255,255,255,.8);
  line-height: 1.4; display: none;
}
.sticky-cta__actions { display: flex; gap: var(--space-3); flex-shrink: 0; }
.sticky-cta__dismiss {
  background: none; border: none; color: rgba(255,255,255,.4);
  cursor: pointer; font-size: var(--text-xl); line-height: 1; padding: 0 var(--space-2);
}
.sticky-cta__dismiss:hover { color: rgba(255,255,255,.8); }

/* ── "Next recommended step" block ──────────────────────────────── */
.next-step-block {
  background: var(--navy); border-radius: var(--radius-xl);
  padding: var(--space-8); margin: var(--space-10) 0;
  display: flex; gap: var(--space-6); align-items: center;
}
.next-step-block__icon { font-size: 2.5rem; flex-shrink: 0; }
.next-step-block__eyebrow {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold-light); margin-bottom: var(--space-2);
}
.next-step-block__title {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 900; color: var(--white); margin-bottom: var(--space-2); line-height: 1.2;
}
.next-step-block__desc { font-size: var(--text-sm); color: rgba(255,255,255,.7); line-height: 1.55; }
.next-step-block__cta { margin-top: var(--space-4); }

/* ── Diagnostic CTA banner (inline, for review pages) ───────────── */
.diag-banner {
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-mid));
  border-radius: var(--radius-xl); padding: var(--space-6) var(--space-8);
  display: flex; gap: var(--space-6); align-items: center; margin: var(--space-8) 0;
}
.diag-banner__icon { font-size: 2rem; flex-shrink: 0; }
.diag-banner__text { flex: 1; }
.diag-banner__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--text-xl); color: var(--white); margin-bottom: var(--space-1);
}
.diag-banner__sub { font-size: var(--text-sm); color: rgba(255,255,255,.65); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .arch-flow { grid-template-columns: 1fr 1fr; }
  .diag-gap-grid { grid-template-columns: 1fr; }
  .diag-ctas { grid-template-columns: 1fr; }
  .next-step-block { flex-direction: column; gap: var(--space-4); }
  .diag-banner { flex-direction: column; gap: var(--space-3); }
}
@media (max-width: 640px) {
  .arch-flow { grid-template-columns: 1fr; }
  .arch-stage { border-right: none; border-bottom: 1px solid var(--border); }
  .arch-stage:last-child { border-bottom: none; }
  .diag-q { padding: var(--space-6); }
  .diag-result__hero { padding: var(--space-8) var(--space-6); }
  .diag-result__body { padding: var(--space-6); }
  .sticky-cta__msg { display: none; }
}

/* ============================================
   Homepage components
   (reusable across portfolio sites)
   ============================================ */

/* Hero title (alias for headline styling) */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: var(--space-6);
}
.hero__title span { color: var(--gold-dim); font-style: italic; font-weight: 500; }
.hero__note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-xlight);
  letter-spacing: 0.02em;
}

/* Section heads (alias to match SFS section-header) */
.section-head { max-width: 760px; margin: 0 auto var(--space-12); text-align: center; }
.section-head__eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: var(--space-3);
}
.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: var(--space-4);
}
.section-head__sub {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-light);
}
.section-head--light .section-head__title { color: var(--white); }
.section-head--light .section-head__eyebrow { color: var(--gold-light); }
.section-head--light .section-head__sub { color: rgba(255,255,255,0.7); }

/* Dark + alt section variants */
.section--dark { background: var(--navy-deep); }
.section--alt { background: var(--bg-alt); }

/* Three column feature blocks */
.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-8);
}
.feature-block { text-align: left; }
.feature-block__icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  display: block;
}
.feature-block__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}
.feature-block__text {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-light);
}

/* Capability card highlight variant */
.capability-card--highlight {
  background: var(--gold-tint);
  border-color: var(--gold);
}

/* Link grid (cluster navigation) */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}
.link-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: all var(--transition);
}
.link-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.link-card__icon { font-size: 1.75rem; flex-shrink: 0; }
.link-card__text { flex: 1; }
.link-card__text h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 2px 0;
}
.link-card__text p {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}
.link-card__arrow {
  font-size: var(--text-xl);
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.link-card:hover .link-card__arrow { transform: translateX(4px); }

/* CTA banner */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  flex-wrap: wrap;
}
.cta-banner__eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-3);
}
.cta-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-3);
  line-height: 1.15;
}
.cta-banner__sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 520px;
}
.cta-banner__text { flex: 1; min-width: 280px; }

@media (max-width: 640px) {
  .cta-banner { padding: var(--space-8); }
  .cta-banner__title { font-size: var(--text-2xl); }
}

/* ============================================
   Editorial hero — responsive behavior
   ============================================ */
.hero__mobile-head { display: none; }

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  /* Mobile order: headline → image → copy → CTA */
  .hero__mobile-head {
    display: block;
    padding: var(--space-12) var(--space-6) var(--space-6);
  }
  .hero__media { max-height: 50vh; }
  .hero__img { max-height: 50vh; }
  .hero__content {
    padding: var(--space-8) var(--space-6) var(--space-12);
  }
  /* The in-content headline/eyebrow are redundant on mobile (shown above image) */
  .hero__content .hero__eyebrow,
  .hero__content .hero__title { display: none; }
  .hero__sub { margin-top: 0; }
}

/* Editorial card softening — quieter modules across the site */
.stack-card,
.link-card,
.feature-block {
  box-shadow: none;
}
.stack-card {
  background: var(--bg);
  border: 1px solid var(--border);
}
.stack-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(30,24,20,0.06);
}

/* ============================================================
   Sleep Health Hub — Brand-specific components
   ============================================================ */

/* ── Luna photo placeholder ──────────────────────────────── */
.luna-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  background:
    radial-gradient(circle at 30% 25%, var(--sage-tint), transparent 60%),
    linear-gradient(135deg, var(--gold-tint), var(--bg-alt));
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-xl);
  color: var(--text-light);
  padding: var(--space-10) var(--space-6);
  min-height: 320px;
  width: 100%;
}
.luna-placeholder--tall { min-height: 420px; height: 100%; }
.luna-placeholder__paw { font-size: 3rem; line-height: 1; opacity: 0.8; }
.luna-placeholder__label {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
}
.luna-placeholder__hint { font-size: var(--text-sm); color: var(--text-xlight); max-width: 240px; }

/* ── Luna feature block (image + text) ───────────────────── */
.luna-feature {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-12);
  align-items: center;
  background: var(--gold-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}
.luna-feature__text h2 { margin-bottom: var(--space-4); }
.luna-feature__img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.luna-feature__text p { color: var(--text-light); margin-bottom: var(--space-4); line-height: 1.7; }
.luna-feature .section-head__eyebrow { margin-bottom: var(--space-3); }
.luna-feature .section-head__title { text-align: left; }
@media (max-width: 820px) {
  .luna-feature { grid-template-columns: 1fr; padding: var(--space-6); gap: var(--space-6); }
  .luna-placeholder--tall { min-height: 300px; }
  .luna-feature__img { min-height: 280px; }
}

/* ── Newsletter block ────────────────────────────────────── */
.newsletter {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.newsletter__eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-3);
}
.newsletter__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}
.newsletter__sub { font-size: var(--text-lg); color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: var(--space-8); }
.newsletter__form { display: flex; gap: var(--space-3); max-width: 520px; margin: 0 auto; }
.newsletter__input {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.95);
  color: var(--text);
  font-size: var(--text-base);
}
.newsletter__input:focus { outline: 2px solid var(--gold); }
.newsletter__note { font-size: var(--text-sm); color: rgba(255,255,255,0.5); margin-top: var(--space-4); }
@media (max-width: 560px) {
  .newsletter__form { flex-direction: column; }
  .newsletter__title { font-size: var(--text-3xl); }
}

/* ── Footer disclaimer ───────────────────────────────────── */
.footer__disclaimer {
  font-size: var(--text-xs);
  color: var(--text-xlight);
  line-height: 1.6;
  margin-top: var(--space-4);
  max-width: 360px;
}

/* ── Vet disclaimer banner (inline, content pages) ───────── */
.vet-disclaimer {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--sage-tint);
  border: 1px solid #E8D2C0;
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.6;
  margin: var(--space-6) 0;
}
.vet-disclaimer strong { color: var(--text); }
.vet-disclaimer__icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1.4; }

/* ── Vet questions box ───────────────────────────────────── */
.vet-questions {
  background: var(--gold-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
}
.vet-questions__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.vet-questions ul { display: flex; flex-direction: column; gap: var(--space-3); }
.vet-questions li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--text-light);
  line-height: 1.6;
}
.vet-questions li::before {
  content: "🩺";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.95rem;
}

/* ── Inline newsletter (article CTA) ─────────────────────── */
.inline-news {
  background: var(--navy-deep);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  margin: var(--space-10) 0;
}
.inline-news__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: var(--white); margin-bottom: var(--space-2); }
.inline-news__sub { color: rgba(255,255,255,0.7); font-size: var(--text-base); margin-bottom: var(--space-5); line-height: 1.6; }
.inline-news__form { display: flex; gap: var(--space-2); max-width: 440px; margin: 0 auto; }
.inline-news__input { flex: 1; padding: var(--space-3) var(--space-4); border-radius: var(--radius); border: none; background: rgba(255,255,255,0.95); color: var(--text); font-size: var(--text-sm); }
@media (max-width: 520px) { .inline-news__form { flex-direction: column; } }

/* ── Checklist (content lists) ───────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-5) 0; }
.checklist li {
  position: relative;
  padding-left: var(--space-8);
  line-height: 1.6;
  color: var(--text-light);
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--gold-tint);
  color: var(--gold-dim);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.checklist li strong { color: var(--text); }

/* ============================================================
   Sleep Health Hub — V1 deployment additions
   ============================================================ */

/* ── Author box (article pages) ──────────────────────────── */
.author-box {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  background: var(--gold-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-10) 0;
}
.author-box__avatar {
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}
.author-box__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-1);
}
.author-box__name a { color: inherit; }
.author-box__role { font-size: var(--text-sm); color: var(--gold-dim); font-weight: 600; margin-bottom: var(--space-2); }
.author-box__bio { font-size: var(--text-sm); color: var(--text-light); line-height: 1.6; }
.author-box__bio strong { color: var(--text); }
@media (max-width: 560px) { .author-box { flex-direction: column; gap: var(--space-3); } }

/* ── Article byline meta line ────────────────────────────── */
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-light);
  margin: var(--space-4) 0 var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.byline__sep { color: var(--text-xlight); }
.byline a { color: var(--gold-dim); font-weight: 600; }

/* ── FAQ accordion ───────────────────────────────────────── */
.faq { margin: var(--space-8) 0; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  background: var(--white);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background var(--transition);
}
.faq__q:hover { background: var(--gold-tint); }
.faq__icon { flex-shrink: 0; transition: transform var(--transition); color: var(--gold); font-size: 1.25rem; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 var(--space-5) var(--space-5); color: var(--text-light); line-height: 1.7; }
.faq__a a { color: var(--gold-dim); font-weight: 600; }
/* details/summary reset */
.faq__item summary { list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }

/* ── Meet Luna section ───────────────────────────────────── */
.meet-luna {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.meet-luna__img {
  border-radius: var(--radius-xl);
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 460px;
  box-shadow: var(--shadow);
}
.meet-luna__title { text-align: left; margin-bottom: var(--space-4); }
.meet-luna__text p { color: var(--text-light); line-height: 1.7; margin-bottom: var(--space-4); }
.meet-luna__cards { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-5) 0; }
.meet-luna__card {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.meet-luna__card:hover { border-color: var(--gold); transform: translateX(3px); }
.meet-luna__card-icon { font-size: 1.25rem; }
.meet-luna__card-title { font-weight: 600; color: var(--navy); font-size: var(--text-base); }
.meet-luna__card-arrow { margin-left: auto; color: var(--gold); }
@media (max-width: 820px) {
  .meet-luna { grid-template-columns: 1fr; gap: var(--space-6); }
  .meet-luna__img { max-height: 340px; }
}

/* ── Recommended tools cards ─────────────────────────────── */
.tools-section { margin-bottom: var(--space-12); }
.tools-section__head {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--gold-tint);
}
.tools-section__icon { font-size: 1.5rem; }
.tools-section__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: var(--navy); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.tool-card__cat { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: var(--space-2); }
.tool-card__name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--navy); margin-bottom: var(--space-2); }
.tool-card__desc { font-size: var(--text-sm); color: var(--text-light); line-height: 1.6; margin-bottom: var(--space-4); }
.tool-card__placeholder {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--text-xlight);
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-4);
}

/* ===== Sources & further reading ===== */
.sources {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  border: 1px solid color-mix(in srgb, var(--sage) 22%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--sage) 5%, var(--white));
}
.sources__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.sources__note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}
.sources__list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.sources__list li {
  font-size: 0.9rem;
  line-height: 1.5;
}
.sources__list a {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sources__list a:hover { color: var(--sage-mid); }
.sources__pub {
  color: var(--text-light);
  font-style: italic;
}

/* ===== Affiliate components (Phase 2B) ===== */
.aff-disclosure {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-light);
  background: var(--sage-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-6) 0;
  line-height: 1.5;
}
.aff-disclosure__icon { flex: none; }
.aff-disclosure a { color: var(--sage); text-decoration: underline; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.product-card:hover { border-color: var(--sage); box-shadow: 0 4px 18px rgba(31,26,22,.06); }
.product-card__cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--sage);
}
.product-card__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text); }
.product-card__desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; flex: 1; }
.product-card__best { font-size: 0.8rem; color: var(--text); }
.product-card__best span { color: var(--text-xlight); text-transform: uppercase; letter-spacing: .05em; font-size: 0.68rem; margin-right: 4px; }
.product-card__net { font-size: 0.72rem; color: var(--text-xlight); font-style: italic; }
.product-card__foot { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.product-card__cta { width: 100%; justify-content: center; }
.product-card__learn { font-size: 0.82rem; color: var(--sage); text-decoration: none; }
.product-card__learn:hover { text-decoration: underline; }
.product-card__placeholder {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-xlight);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  text-align: center;
}
.product-card a[data-placeholder] { pointer-events: none; opacity: .55; }

/* Comparison table */
.comparison-wrap { margin: var(--space-8) 0; }
.comparison-table__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--text); margin-bottom: var(--space-3); }
.comparison-table__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.9rem; }
.comparison-table thead th {
  text-align: left;
  background: var(--sage-tint);
  color: var(--text);
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.comparison-table tbody td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); color: var(--text-light); vertical-align: top; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody td:first-child { font-weight: 600; color: var(--text); }
.comparison-table__cta { color: var(--sage); text-decoration: underline; }
.comparison-table__caption { font-size: 0.82rem; color: var(--text-light); margin-top: var(--space-3); line-height: 1.5; }


/* ============================================================
   Sleep Health Hub Brand/Nav base — 2026-06-11
   Purpose: force brand-guide palette, stop nav logo overlap, and
   keep the top-right CTA contained inside the desktop nav.
   Brand guide palette:
   Charcoal #1F1A16 | Sage #6F7D5C | Warm Cream #F6F1EA |
   Clay #B8734A | Linen #E9E1D5
   ============================================================ */
:root {
  --charcoal: #1F1A16;
  --charcoal-deep: #181410;
  --charcoal-mid: #2A231D;
  --sage: #6F7D5C;
  --sage-mid: #7E8C68;
  --sage-tint: #EEF1E7;
  --clay: #B8734A;
  --clay-mid: #C2835C;
  --clay-tint: #F4E7DC;
  --cream: #F6F1EA;
  --linen: #E9E1D5;

  /* Backward-compatible aliases used throughout the existing CSS. */
  --navy: var(--charcoal);
  --navy-deep: var(--charcoal-deep);
  --navy-mid: var(--charcoal-mid);
  --gold: var(--sage);
  --gold-light: var(--sage-mid);
  --gold-tint: var(--sage-tint);
  --gold-dim: #586549;
  --slate: var(--charcoal-mid);
  --slate-mid: #6B6258;
  --slate-light: #A8A39A;
  --slate-tint: var(--linen);
  --slate-border: #E4DCCF;
  --bg: var(--cream);
  --bg-alt: var(--linen);
  --white: #FFFDF8;
  --text: var(--charcoal);
  --text-light: #6B6258;
  --text-xlight: #A8A39A;
  --border: #E4DCCF;
  --border-dark: #D4CEC4;
  --max-width: 1180px;
}

body { background: var(--cream); color: var(--charcoal); }

.nav {
  background: rgba(31, 26, 22, 0.98) !important;
  border-bottom: 1px solid rgba(233, 225, 213, 0.16) !important;
}
.nav__inner {
  height: 72px !important;
  max-width: 1480px !important;
  width: 100% !important;
  padding: 0 clamp(1rem, 3vw, 2.25rem) !important;
  display: flex !important;
  align-items: center !important;
  gap: clamp(1rem, 1.6vw, 1.75rem) !important;
}
.nav__logo {
  flex: 0 0 268px !important;
  width: 268px !important;
  min-width: 268px !important;
  max-width: 268px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  overflow: visible !important;
}
.nav__logo-icon {
  width: 40px !important;
  height: 36px !important;
  object-fit: contain !important;
  flex: 0 0 40px !important;
}
.nav__logo-text {
  display: inline-block !important;
  font-family: var(--font-display) !important;
  font-size: clamp(1.08rem, 1.25vw, 1.28rem) !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  white-space: nowrap !important;
  color: var(--cream) !important;
}
.nav__logo-text span { color: var(--sage-mid) !important; }
.nav__links {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(0.85rem, 1.65vw, 1.85rem) !important;
}
.nav__link {
  font-size: clamp(0.78rem, 0.88vw, 0.92rem) !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  color: rgba(246, 241, 234, 0.74) !important;
  letter-spacing: 0.005em !important;
  white-space: normal !important;
  text-align: center !important;
}
.nav__link:hover,
.nav__link.active { color: var(--cream) !important; }
.nav__cta {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 148px !important;
  height: 44px !important;
  padding: 0 1.25rem !important;
  border: 1px solid rgba(111, 125, 92, 0.78) !important;
  border-radius: 999px !important;
  color: var(--sage-mid) !important;
  background: transparent !important;
  font-size: 0.88rem !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  text-align: center !important;
}
.nav__cta:hover {
  background: rgba(111, 125, 92, 0.16) !important;
  border-color: var(--sage-mid) !important;
  color: var(--cream) !important;
}

.hero { background: var(--cream) !important; }
.hero__title { color: var(--charcoal) !important; }
.hero__title span { color: var(--sage) !important; }
.hero__eyebrow { color: var(--sage-dim, #586549) !important; }
.hero__eyebrow::before { background: var(--sage) !important; }
.btn--primary { background: var(--sage) !important; color: var(--cream) !important; }
.btn--primary:hover { background: #586549 !important; }
.btn--outline:hover { border-color: var(--sage) !important; color: var(--sage) !important; }
.section--dark, .tool-hero, .footer { background: var(--charcoal) !important; }
.stack-card:hover, .link-card:hover, .feature-block:hover { border-color: var(--sage) !important; }
.text-gold { color: var(--sage) !important; }

@media (max-width: 1320px) {
  .nav__inner { max-width: 100% !important; }
  .nav__logo { flex-basis: 240px !important; width: 240px !important; min-width: 240px !important; max-width: 240px !important; }
  .nav__links { gap: 1rem !important; }
  .nav__cta { min-width: 136px !important; padding: 0 1rem !important; }
}
@media (max-width: 1180px) {
  .nav__links, .nav__cta { display: none !important; }
  .nav__mobile-toggle { display: flex !important; margin-left: auto !important; }
  .nav__logo { flex-basis: auto !important; width: auto !important; min-width: 0 !important; max-width: none !important; }
  .nav__mobile-menu.open { display: block !important; }
}
@media (max-width: 480px) {
  .nav__inner { height: 64px !important; }
  .nav__logo-icon { width: 36px !important; height: 32px !important; flex-basis: 36px !important; }
  .nav__logo-text { font-size: 1.02rem !important; }
}


/* ============================================================
   Sleep Health Hub base color system — 2026-06-11
   Purpose: make sage the primary brand accent; reserve clay for
   small warmth/story details only. This intentionally overrides
   legacy gold/clay foundation aliases.
   ============================================================ */
:root {
  --charcoal: #1F1A16;
  --charcoal-deep: #181410;
  --charcoal-mid: #2A231D;
  --sage: #6F7D5C;
  --sage-mid: #7E8C68;
  --sage-dim: #586549;
  --sage-tint: #EEF1E7;
  --cream: #F6F1EA;
  --linen: #E9E1D5;
  --clay: #B8734A;
  --clay-mid: #C2835C;
  --clay-tint: #F4E7DC;

  /* Legacy compatibility: old gold variables now resolve to sage. */
  --gold: var(--sage);
  --gold-light: var(--sage-mid);
  --gold-tint: var(--sage-tint);
  --gold-dim: var(--sage-dim);
}
.nav__logo-text span,
.nav__link:hover,
.nav__link.active,
.text-gold,
.hero__title span,
.hero__eyebrow,
.comparison-table__cta { color: var(--sage-mid) !important; }
.hero__eyebrow::before { background: var(--sage) !important; }
.nav__cta {
  color: var(--sage-mid) !important;
  border-color: rgba(111, 125, 92, 0.78) !important;
  background: transparent !important;
}
.nav__cta:hover {
  background: rgba(111, 125, 92, 0.16) !important;
  border-color: var(--sage-mid) !important;
  color: var(--cream) !important;
}
.btn--primary,
.hero__cta .btn--primary,
.newsletter .btn--primary,
.inline-news .btn--primary {
  background: var(--sage) !important;
  color: var(--cream) !important;
  border-color: var(--sage) !important;
}
.btn--primary:hover,
.hero__cta .btn--primary:hover,
.newsletter .btn--primary:hover,
.inline-news .btn--primary:hover {
  background: var(--sage-dim) !important;
  border-color: var(--sage-dim) !important;
}
.btn--outline:hover { border-color: var(--sage) !important; color: var(--sage) !important; }
.badge,
.pill,
.comparison-table thead th { background: var(--sage-tint) !important; }
.stack-card:hover,
.link-card:hover,
.feature-block:hover,
.product-card:hover,
.sidebar-card:hover { border-color: var(--sage) !important; }
.progress__bar { background: linear-gradient(90deg, var(--sage), var(--sage-mid)) !important; }
/* ════════════════════════════════════════════════════════════════════════
   Sleep Health Hub — (legacy DHS tool-embed comment, superseded by Deep Night block above)
   Themes any tool/calculator/quiz generated by the article engine so it
   matches the DHS sage-led LIGHT brand automatically. The article body
   wraps every tool in <div class='tool-embed'> and sets NO colors of its
   own, so all theming lives here.

   NOTE: DHS is a LIGHT site (warm cream bg, charcoal text, white cards) —
   the opposite of SoloClientStack's dark theme. This block is intentionally
   light: do not port SCS's dark values here.

   Uses only existing DHS :root variables (sage-led system):
   --cream --white --charcoal --sage --sage-dim --sage-tint --clay
   --text --text-light --text-xlight --border --border-dark
   --radius --radius-lg --font-display --font-body
   ════════════════════════════════════════════════════════════════════════ */

.tool-embed {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: var(--space-8, 2rem) 0;
  font-family: var(--font-body);
}

/* Labels and field headings — charcoal, clearly legible (the readability fix) */
.tool-embed label,
.tool-embed .field-label,
.tool-embed legend {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: var(--text-sm, 0.875rem);
  margin: var(--space-4, 1rem) 0 var(--space-2, 0.5rem);
  line-height: 1.4;
}

/* Section headers inside the tool — sage, mirrors brand eyebrows */
.tool-embed .tool-section,
.tool-embed h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg, 1.125rem);
  font-weight: 700;
  color: var(--navy);
  margin: var(--space-6, 1.5rem) 0 var(--space-3, 0.75rem);
  padding-bottom: var(--space-2, 0.5rem);
  border-bottom: 1px solid var(--border);
}
.tool-embed h3:first-child,
.tool-embed .tool-section:first-child { margin-top: 0; }

/* Helper / hint text — muted but readable (never pale-on-pale) */
.tool-embed small,
.tool-embed .hint,
.tool-embed .tool-note {
  display: block;
  color: var(--text-light);
  font-size: var(--text-xs, 0.75rem);
  line-height: 1.5;
  margin-top: var(--space-1, 0.25rem);
}

/* Inputs and selects — cream-white field, charcoal text, sage focus ring */
.tool-embed input[type='number'],
.tool-embed input[type='text'],
.tool-embed input[type='email'],
.tool-embed select,
.tool-embed textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--cream);
  color: var(--text);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  font-family: var(--font-body);
  font-size: var(--text-base, 1rem);
  min-height: 44px;
}
.tool-embed input::placeholder,
.tool-embed textarea::placeholder { color: var(--text-xlight); opacity: 1; }
.tool-embed input:focus,
.tool-embed select:focus,
.tool-embed textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
  border-color: var(--sage);
}
.tool-embed input[disabled],
.tool-embed select[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Checkboxes / radios stay inline with their label text */
.tool-embed input[type='checkbox'],
.tool-embed input[type='radio'] {
  width: auto;
  min-height: 0;
  margin-right: var(--space-2, 0.5rem);
  accent-color: var(--sage);
}
.tool-embed .checkbox-label,
.tool-embed .option-row label {
  display: inline-flex;
  align-items: center;
  font-weight: 400;
  margin: var(--space-2, 0.5rem) 0;
}

/* Primary action button — sage pill, brand-consistent */
.tool-embed button,
.tool-embed .tool-btn {
  margin-top: var(--space-5, 1.25rem);
  background: var(--sage);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-full, 9999px);
  padding: var(--space-3, 0.75rem) var(--space-8, 2rem);
  font-family: var(--font-body);
  font-size: var(--text-base, 1rem);
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  transition: background 200ms ease;
}
.tool-embed button:hover,
.tool-embed .tool-btn:hover { background: var(--sage-dim); }

/* Result panel — sage-tinted card so the answer reads as the payoff */
.tool-embed .tool-result,
.tool-embed .result-box,
.tool-embed #result {
  margin-top: var(--space-6, 1.5rem);
  background: var(--sage-tint);
  border: 1px solid var(--sage);
  border-radius: var(--radius-lg);
  padding: var(--space-5, 1.25rem) var(--space-6, 1.5rem);
  color: var(--text);
}
.tool-embed .result-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  margin: var(--space-2, 0.5rem) 0;
}
.tool-embed .result-label {
  font-size: var(--text-xs, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}
.tool-embed .result-value {
  font-family: var(--font-display);
  font-size: var(--text-xl, 1.25rem);
  font-weight: 700;
  color: var(--navy);
}

/* In-result CTA links → sage pills routing to the Stack Builder / products */
.tool-embed .result-cta a,
.tool-embed .tool-result a.cta {
  display: inline-block;
  margin: var(--space-3, 0.75rem) var(--space-2, 0.5rem) 0 0;
  background: var(--sage);
  color: var(--cream);
  padding: var(--space-2, 0.5rem) var(--space-5, 1.25rem);
  border-radius: var(--radius-full, 9999px);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  text-decoration: none;
}
.tool-embed .result-cta a.secondary {
  background: transparent;
  color: var(--sage-dim);
  border: 1px solid var(--border-dark);
}

/* Vet-deferral / educational reminder inside a tool result */
.tool-embed .tool-vet-note {
  margin-top: var(--space-4, 1rem);
  font-size: var(--text-xs, 0.75rem);
  color: var(--text-light);
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 560px) {
  .tool-embed .option-row { display: block; }
}


/* ════════ SHH DEEP NIGHT OVERRIDE — MOVED TO END so it wins the cascade over DHS base blocks ════════ */

/* ── Deep Night token remap (overrides the base :root) ─────────────────── */
:root {
  /* Core night surfaces */
  --night:         #0E1220;
  --night-deep:    #0A0E1A;
  --night-surface: #161B2E;
  --night-card:    #1C2236;

  /* Moonlight accent (calm focus) */
  --moon:          #A9B8E8;
  --moon-bright:   #C4D0F2;
  --moon-dim:      #A9B8E822;
  --indigo:        #6B72C9;

  /* Warm note (sparingly) */
  --ember:         #E8C9A0;

  /* Text on dark */
  --text:          #D8DCE8;
  --cream:         #F2F4FA;
  --muted:         #8189A3;

  /* Status */
  --good:          #6FBF95;
  --warn:          #D9A05B;
  --alert:         #C97A7A;

  /* ── Remap the BASE component variables to Deep Night ──────────────────
     The cloned components reference these names; remapping flips the theme. */
  --charcoal:      var(--night);
  --charcoal-deep: var(--night-deep);
  --charcoal-mid:  var(--night-surface);
  --navy:          var(--night);
  --navy-deep:     var(--night-deep);
  --navy-mid:      var(--night-surface);

  /* sage/gold accent system in the base now resolves to MOONLIGHT */
  --sage:          var(--moon);
  --sage-mid:      var(--moon-bright);
  --sage-dim:      var(--indigo);
  --sage-tint:     #1F2540;            /* dark "tint" surface for accent blocks */
  --gold:          var(--moon);
  --gold-light:    var(--moon-bright);
  --gold-dim:      var(--indigo);
  --gold-tint:     #1F2540;

  /* neutral slate scale → night */
  --slate:         var(--night-surface);
  --slate-mid:     #9AA2BC;
  --slate-light:   var(--muted);
  --slate-tint:    var(--night-surface);
  --slate-border:  #2A3147;

  /* surfaces: light theme → dark */
  --bg:            var(--night);
  --bg-alt:        var(--night-surface);
  --white:         var(--night-card);   /* "white" cards become dark cards */
  --cream:         #F2F4FA;
  --linen:         var(--night-surface);

  /* text */
  --text:          #D8DCE8;
  --text-light:    #A6AEC6;
  --text-xlight:   var(--muted);

  /* borders */
  --border:        #2A3147;
  --border-dark:   #3A4257;

  /* status remap (base uses success/danger) */
  --success:       var(--good);
  --success-tint:  #14271E;
  --danger:        var(--alert);
  --danger-tint:   #2A1A1C;

  /* fonts */
  --font-display:  'Fraunces', Georgia, serif;
  --font-body:     'Inter', 'Helvetica Neue', sans-serif;
}

/* ── Base element re-theme ─────────────────────────────────────────────── */
body {
  background: var(--night);
  color: var(--text);
}

/* Cards that used pure white now use the elevated dark card with a border */
.stack-card,
.program-card,
.sidebar-card,
.product-card,
.tool-card,
.link-card,
.feature-block,
.diag-card,
.assessment-card {
  background: var(--night-card);
  border-color: var(--border);
}

/* Nav + footer were already dark in the base; nudge to night palette */
.nav { background: rgba(10, 14, 26, 0.92) !important; border-bottom-color: var(--border) !important; }
.nav__logo-text { color: var(--cream) !important; }
.nav__logo-text span { color: var(--moon) !important; }
.nav__link { color: rgba(216, 220, 232, 0.72) !important; }
.nav__link:hover, .nav__link.active { color: var(--cream) !important; }
.nav__cta { color: var(--moon) !important; border-color: rgba(169, 184, 232, 0.5) !important; }
.nav__cta:hover { background: rgba(169, 184, 232, 0.12) !important; border-color: var(--moon) !important; color: var(--cream) !important; }

.footer { background: var(--night-deep); }
.page-header { background: var(--night-deep); }
.section--dark { background: var(--night-deep); }
.section--alt { background: var(--night-surface); }

/* Headings + accents */
.hero__title, .hero__headline { color: var(--cream) !important; }
.hero__title span, .hero__headline em { color: var(--moon) !important; }
.text-gold { color: var(--moon) !important; }

/* Buttons → moonlight/indigo */
.btn--primary {
  background: var(--indigo) !important;
  color: var(--cream) !important;
}
.btn--primary:hover { background: var(--moon) !important; color: var(--night) !important; }
.btn--outline { color: var(--text) !important; border-color: var(--border-dark) !important; }
.btn--outline:hover { border-color: var(--moon) !important; color: var(--moon) !important; }

/* Article body links → moonlight */
.article-body a { color: var(--moon-bright); }
.article-body a:hover { color: var(--cream); }
.article-body h1, .article-body h2, .article-body h3, .article-body strong { color: var(--cream); }
.article-body p, .article-body li { color: var(--text); }

/* Comparison tables on dark */
.comparison-table thead th { background: var(--night-surface); color: var(--cream); }
.comparison-table tbody tr { background: var(--night-card); }
.comparison-table tbody tr:nth-child(even) { background: var(--night-surface); }
.comparison-table tbody td { color: var(--text); border-bottom-color: var(--border); }
.comparison-table tbody td:first-child { color: var(--cream); }

/* Callouts/alerts re-tinted for dark */
.callout--gold { background: var(--moon-dim); border-left-color: var(--moon); }
.callout--navy { background: rgba(255,255,255,0.04); border-left-color: var(--moon); }

/* The health/medical deferral box (sleep YMYL): calm, not alarming */
.vet-disclaimer,
.disclaimer-box {
  background: var(--night-surface);
  border-color: var(--border);
  border-left: 4px solid var(--moon);
  color: var(--text-light);
}

/* ════════════════════════════════════════════════════════════════════════
   TOOL EMBED — hardened from day one (Deep Night)
   Every tool/calculator the article engine generates is wrapped in
   <div class='tool-embed'> and sets NO colors of its own; all theming
   is here. Dark card, cream labels, moonlight accents.
   ════════════════════════════════════════════════════════════════════════ */
.tool-embed {
  background: var(--night-surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: var(--space-8, 2rem) 0;
  font-family: var(--font-body);
}
.tool-embed label,
.tool-embed .field-label,
.tool-embed legend {
  display: block;
  color: var(--cream);
  font-weight: 600;
  font-size: var(--text-sm, 0.875rem);
  margin: var(--space-4, 1rem) 0 var(--space-2, 0.5rem);
  line-height: 1.4;
}
.tool-embed .tool-section,
.tool-embed h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg, 1.125rem);
  font-weight: 700;
  color: var(--moon-bright);
  margin: var(--space-6, 1.5rem) 0 var(--space-3, 0.75rem);
  padding-bottom: var(--space-2, 0.5rem);
  border-bottom: 1px solid var(--border);
}
.tool-embed h3:first-child,
.tool-embed .tool-section:first-child { margin-top: 0; }
.tool-embed small,
.tool-embed .hint,
.tool-embed .tool-note {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs, 0.75rem);
  line-height: 1.5;
  margin-top: var(--space-1, 0.25rem);
}
.tool-embed input[type='number'],
.tool-embed input[type='text'],
.tool-embed input[type='email'],
.tool-embed select,
.tool-embed textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--night-card);
  color: var(--cream);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  font-family: var(--font-body);
  font-size: var(--text-base, 1rem);
  min-height: 44px;
}
.tool-embed input::placeholder,
.tool-embed textarea::placeholder { color: var(--muted); opacity: 1; }
.tool-embed input:focus,
.tool-embed select:focus,
.tool-embed textarea:focus {
  outline: 2px solid var(--moon);
  outline-offset: 1px;
  border-color: var(--moon);
}
.tool-embed input[disabled],
.tool-embed select[disabled] { opacity: 0.5; cursor: not-allowed; }
.tool-embed input[type='checkbox'],
.tool-embed input[type='radio'] {
  width: auto; min-height: 0;
  margin-right: var(--space-2, 0.5rem);
  accent-color: var(--moon);
}
.tool-embed .checkbox-label,
.tool-embed .option-row label {
  display: inline-flex; align-items: center;
  font-weight: 400; margin: var(--space-2, 0.5rem) 0;
}
.tool-embed button,
.tool-embed .tool-btn {
  margin-top: var(--space-5, 1.25rem);
  background: var(--indigo);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-full, 9999px);
  padding: var(--space-3, 0.75rem) var(--space-8, 2rem);
  font-family: var(--font-body);
  font-size: var(--text-base, 1rem);
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  transition: background 200ms ease;
}
.tool-embed button:hover,
.tool-embed .tool-btn:hover { background: var(--moon); color: var(--night); }
.tool-embed .tool-result,
.tool-embed .result-box,
.tool-embed #result {
  margin-top: var(--space-6, 1.5rem);
  background: var(--night-card);
  border: 1px solid var(--moon);
  border-radius: var(--radius-lg);
  padding: var(--space-5, 1.25rem) var(--space-6, 1.5rem);
  color: var(--text);
}
.tool-embed .result-item {
  background: var(--night-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  margin: var(--space-2, 0.5rem) 0;
}
.tool-embed .result-label {
  font-size: var(--text-xs, 0.75rem);
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted);
}
.tool-embed .result-value {
  font-family: var(--font-display);
  font-size: var(--text-xl, 1.25rem);
  font-weight: 700; color: var(--cream);
}
.tool-embed .result-cta a,
.tool-embed .tool-result a.cta {
  display: inline-block;
  margin: var(--space-3, 0.75rem) var(--space-2, 0.5rem) 0 0;
  background: var(--indigo);
  color: var(--cream);
  padding: var(--space-2, 0.5rem) var(--space-5, 1.25rem);
  border-radius: var(--radius-full, 9999px);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600; text-decoration: none;
}
.tool-embed .result-cta a.secondary {
  background: transparent; color: var(--moon);
  border: 1px solid var(--border-dark);
}
/* Sleep YMYL: educational, see-a-doctor note inside a tool result */
.tool-embed .tool-doctor-note {
  margin-top: var(--space-4, 1rem);
  font-size: var(--text-xs, 0.75rem);
  color: var(--text-light);
  line-height: 1.5; font-style: italic;
}
@media (max-width: 560px) {
  .tool-embed .option-row { display: block; }
}
/* ============================================================


/* ════════ DEEP NIGHT — DECISIVE OVERRIDES (beat DHS !important base blocks) ════════ */
/* DHS bottom blocks redefine --cream to light and force body/.hero cream with !important.
   Re-assert the dark palette here, last, with !important where DHS used it. */
:root {
  --cream:        #F2F4FA !important;   /* SHH bright text, NOT the DHS light bg */
  --bg:           var(--night) !important;
  --bg-alt:       var(--night-surface) !important;
  --white:        var(--night-card) !important;
  --text:         #D8DCE8 !important;
  --text-light:   #A6AEC6 !important;
  --text-xlight:  #8189A3 !important;
  --navy:         var(--night) !important;
  --charcoal:     var(--night) !important;
}
body { background: var(--night) !important; color: var(--text) !important; }
.hero { background: var(--night) !important; }
.section--alt { background: var(--night-surface) !important; }
.section--dark { background: var(--night-deep) !important; }

/* Feature/stack/link cards: dark surface AND readable text (the unreadable-box fix) */
.feature-block, .stack-card, .link-card, .program-card, .product-card,
.diag-card, .assessment-card, .capability-card, .segment-card {
  background: var(--night-card) !important;
  border-color: var(--border) !important;
}
.feature-block__title, .stack-card__title, .link-card__text h3,
.card h3, .feature-block h3 { color: var(--cream) !important; }
.feature-block__text, .stack-card__desc, .link-card__text p,
.feature-block p, .stack-card p { color: var(--text-light) !important; }
.feature-block__icon, .stack-card__icon { color: var(--moon) !important; }

/* Section heads on dark */
.section-head__title, .hero__title { color: var(--cream) !important; }
.section-head__sub { color: var(--text-light) !important; }
.section-head__eyebrow, .hero__eyebrow { color: var(--moon) !important; }
.hero__title span, .hero__sub { color: inherit; }
.hero__sub { color: var(--text-light) !important; }

/* CTA / newsletter blocks */
.cta-banner { background: var(--night-card) !important; }
.cta-banner__title { color: var(--cream) !important; }
.cta-banner__sub { color: var(--text-light) !important; }
.newsletter__title { color: var(--cream) !important; }
.newsletter__sub { color: var(--text-light) !important; }
