/* =======================================================================
   HomeDividend Capital — site.css
   Institutional finance palette: deep navy, muted gold, warm off-white
   Fonts: Source Serif 4 (display/headings) + IBM Plex Sans (body)
   
   CUSTOMIZATION GUIDE
   -------------------
   • Colors: edit the CSS variables in :root (light mode) and
     [data-theme="dark"] (dark mode) at the top of this file.
   • Fonts: change the Google Fonts link in each HTML file, then
     update --font-sans and --font-display below.
   • Spacing: tweak --container-max, gutters, and section padding.
   ======================================================================= */

/* -----------------------------------------------------------------------
   1. DESIGN TOKENS — LIGHT MODE
   ----------------------------------------------------------------------- */
:root {
  /* Palette */
  --navy:           hsl(217, 60%, 18%);   /* #122347 deep navy */
  --navy-dark:      hsl(217, 60%, 10%);
  --navy-light:     hsl(217, 60%, 28%);
  --gold:           hsl(38, 56%, 52%);    /* muted gold */
  --gold-light:     hsl(38, 56%, 68%);
  --off-white:      hsl(40, 30%, 97%);    /* #FAF8F4 warm paper */

  /* Semantic roles — light */
  --bg:             hsl(40, 30%, 97%);
  --bg-card:        hsl(40, 33%, 99%);
  --bg-card-alt:    hsl(215, 16%, 92%);
  --fg:             hsl(217, 33%, 17%);
  --fg-muted:       hsl(215, 14%, 40%);
  --border:         hsl(35, 14%, 86%);
  --primary:        hsl(217, 60%, 18%);
  --primary-fg:     hsl(40, 30%, 97%);
  --primary-hover:  hsl(217, 60%, 24%);
  --secondary:      hsl(215, 16%, 92%);
  --secondary-fg:   hsl(217, 33%, 17%);
  --input-border:   hsl(35, 14%, 80%);
  --ring:           hsl(217, 60%, 30%);
  --destructive:    hsl(0, 62%, 38%);
  --success:        hsl(145, 40%, 32%);

  /* Elevate overlays */
  --elevate-1:      hsla(217, 33%, 17%, 0.035);
  --elevate-2:      hsla(217, 33%, 17%, 0.075);

  /* Shadows */
  --shadow-sm:      0px 1px 2px 0px hsla(217, 33%, 17%, 0.06),
                    0px 1px 3px -1px hsla(217, 33%, 17%, 0.04);
  --shadow-md:      0px 4px 10px -2px hsla(217, 33%, 17%, 0.08),
                    0px 2px 4px -2px hsla(217, 33%, 17%, 0.05);
  --shadow-lg:      0px 10px 24px -4px hsla(217, 33%, 17%, 0.10),
                    0px 4px 8px -4px hsla(217, 33%, 17%, 0.06);

  /* Typography */
  --font-sans:      'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-display:   'Source Serif 4', Georgia, serif;

  /* Layout */
  --container-max:  1280px;
  --radius:         0.375rem;
  --radius-lg:      0.5rem;

  /* Transitions */
  --transition:     150ms ease;
}

/* -----------------------------------------------------------------------
   2. DESIGN TOKENS — DARK MODE
   ----------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg:             hsl(217, 40%, 8%);    /* #0B1226 deep navy */
  --bg-card:        hsl(217, 38%, 11%);
  --bg-card-alt:    hsl(217, 28%, 18%);
  --fg:             hsl(40, 30%, 92%);    /* warm parchment */
  --fg-muted:       hsl(40, 12%, 68%);
  --border:         hsl(217, 25%, 22%);
  --primary:        hsl(38, 56%, 58%);    /* gold accent in dark */
  --primary-fg:     hsl(217, 40%, 8%);
  --primary-hover:  hsl(38, 56%, 68%);
  --secondary:      hsl(217, 28%, 18%);
  --secondary-fg:   hsl(40, 30%, 92%);
  --input-border:   hsl(217, 25%, 28%);
  --ring:           hsl(38, 56%, 58%);
  --destructive:    hsl(0, 62%, 48%);
  --success:        hsl(145, 40%, 50%);

  --elevate-1:      hsla(40, 30%, 95%, 0.04);
  --elevate-2:      hsla(40, 30%, 95%, 0.085);

  --shadow-sm:      0px 1px 3px 0px hsla(0, 0%, 0%, 0.4);
  --shadow-md:      0px 6px 14px -2px hsla(0, 0%, 0%, 0.5);
  --shadow-lg:      0px 14px 30px -6px hsla(0, 0%, 0%, 0.55);
}

/* -----------------------------------------------------------------------
   3. RESET & BASE
   ----------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Remove list styles on elements with class */
ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: 0.875rem;
}

/* -----------------------------------------------------------------------
   4. TYPOGRAPHY — display / headings
   ----------------------------------------------------------------------- */
.font-display,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.25rem, 1rem + 4vw, 4.25rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 0.5rem + 2.5vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* Eyebrow label — uppercase small-caps tracking */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  font-weight: 500;
}

/* -----------------------------------------------------------------------
   5. LAYOUT — container, grid helpers
   ----------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Section spacing */
.section-py     { padding-top: 4rem; padding-bottom: 4rem; }
.section-py-lg  { padding-top: 5rem; padding-bottom: 5rem; }
.section-py-hero{ padding-top: 4rem; padding-bottom: 5rem; }

@media (min-width: 768px) {
  .section-py     { padding-top: 5rem; padding-bottom: 5rem; }
  .section-py-lg  { padding-top: 6rem; padding-bottom: 6rem; }
  .section-py-hero{ padding-top: 6rem; padding-bottom: 7rem; }
}

/* -----------------------------------------------------------------------
   6. HEADER
   ----------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.2s ease;
}

.site-header__inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--fg);
  flex-shrink: 0;
}

.site-logo__img {
  height: 2rem;
  width: auto;
  border-radius: 0.25rem;
}

.site-logo__text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

/* Nav */
.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
}

.site-nav__link {
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color var(--transition), background-color var(--transition);
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--fg);
  background-color: var(--elevate-1);
}

.site-nav__link[aria-current="page"] {
  color: var(--fg);
  font-weight: 500;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile menu button */
.btn-mobile-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--fg);
  transition: background-color var(--transition);
}

.btn-mobile-menu:hover { background-color: var(--elevate-1); }

@media (min-width: 768px) {
  .btn-mobile-menu { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--bg);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.mobile-nav__link {
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-nav__link:hover { color: var(--fg); }

.mobile-nav__actions {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* -----------------------------------------------------------------------
   7. BUTTONS
   ----------------------------------------------------------------------- */

/* Primary — deep navy (or gold in dark mode) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  font-family: var(--font-sans);
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Primary button */
.btn-primary {
  background-color: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* Large size */
.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Small size */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* Outline button */
.btn-outline {
  background-color: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--elevate-1);
  border-color: var(--border);
}

/* Ghost button */
.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--fg);
}

.btn-ghost:hover {
  background-color: var(--elevate-1);
}

/* Secondary button — used on dark navy bg */
.btn-secondary {
  background-color: var(--bg);
  color: var(--fg);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-card-alt);
}

/* Full-width button */
.btn-full { width: 100%; }

/* -----------------------------------------------------------------------
   8. CARDS
   ----------------------------------------------------------------------- */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .card-body-md { padding: 2rem; }
}

/* Card with primary accent ring */
.card-accent {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 20%, transparent),
              var(--shadow-md);
}

/* -----------------------------------------------------------------------
   9. BADGES
   ----------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
}

.badge-default {
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--secondary-fg);
  border-color: var(--border);
}

/* -----------------------------------------------------------------------
   10. ICON BOX — small icon container
   ----------------------------------------------------------------------- */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  flex-shrink: 0;
}

.icon-box-lg {
  width: 2.5rem;
  height: 2.5rem;
}

/* -----------------------------------------------------------------------
   11. HERO SECTION
   ----------------------------------------------------------------------- */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image:
    radial-gradient(ellipse 70% 50% at 80% 0%, color-mix(in srgb, var(--primary) 6%, transparent), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 110%, color-mix(in srgb, var(--ring, var(--primary)) 8%, transparent), transparent 60%);
}

[data-theme="dark"] .hero-backdrop { opacity: 0.3; }

/* Stats strip */
.stat-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-top: 2.5rem;
  max-width: 42rem;
}

@media (min-width: 640px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

/* -----------------------------------------------------------------------
   12. TRACK CARDS (home page callout panel)
   ----------------------------------------------------------------------- */
.track-panel {
  padding-left: 0;
  border-left: none;
}

@media (min-width: 1024px) {
  .track-panel {
    padding-left: 1.5rem;
    border-left: 1px solid var(--border);
  }
}

/* -----------------------------------------------------------------------
   13. PILLAR / STEP CARDS (grid of feature cards)
   ----------------------------------------------------------------------- */
.pillar-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pillar-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .pillar-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .pillar-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* -----------------------------------------------------------------------
   14. STEPS / LIFECYCLE (numbered ordered list)
   ----------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* -----------------------------------------------------------------------
   15. COMPARISON TABLE (pre vs post, fund summary)
   ----------------------------------------------------------------------- */
.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  padding: 1rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background-color: var(--elevate-1);
}

/* Fund name cell */
.td-fund-name {
  font-family: var(--font-display);
  font-weight: 600;
}

.td-fund-sub {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.125rem;
}

/* -----------------------------------------------------------------------
   16. FUND DETAIL SECTIONS
   ----------------------------------------------------------------------- */
.fund-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  justify-content: space-between;
  background-color: var(--bg-card);
}

.fund-header.strategic {
  background-color: var(--secondary);
}

[data-theme="dark"] .fund-header.strategic {
  background-color: color-mix(in srgb, var(--secondary) 50%, transparent);
}

.fund-body {
  display: grid;
  gap: 2rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .fund-header { padding: 2rem; }
  .fund-body { padding: 2rem; }
}

@media (min-width: 1024px) {
  .fund-body { grid-template-columns: 2fr 1fr; }
}

.fund-economics {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

@media (min-width: 1024px) {
  .fund-economics {
    border-top: none;
    padding-top: 0;
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
  }
}

.detail-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  margin-bottom: 0.125rem;
}

.detail-value {
  font-size: 0.875rem;
  color: var(--fg);
  line-height: 1.4;
}

/* Bullet lists in fund cards */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.bullet-dot {
  display: inline-block;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 9999px;
  background-color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.bullet-dot-muted {
  background-color: color-mix(in srgb, var(--fg-muted) 60%, transparent);
}

/* Bullet list with check/x icons */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.check-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--primary);
}

.x-icon {
  color: var(--fg-muted);
}

/* -----------------------------------------------------------------------
   17. HERO LAYOUT GRID
   ----------------------------------------------------------------------- */
.hero-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    align-items: start;
  }
}

/* Two-col section grid (Why section, Impact section, etc.) */
.two-col {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 5fr 7fr;
    align-items: start;
    gap: 4rem;
  }
}

.two-col-reverse {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .two-col-reverse {
    grid-template-columns: 5fr 7fr;
    align-items: start;
    gap: 4rem;
  }
}

/* -----------------------------------------------------------------------
   18. CLOSING CTA SECTION — navy background
   ----------------------------------------------------------------------- */
.cta-section {
  background-color: var(--navy);
  color: var(--off-white);
}

[data-theme="dark"] .cta-section {
  background-color: hsl(217, 60%, 12%);
}

.cta-section .eyebrow { color: color-mix(in srgb, var(--off-white) 70%, transparent); }

.cta-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-inner {
    grid-template-columns: 8fr 4fr;
  }
}

.cta-text-muted {
  color: color-mix(in srgb, var(--off-white) 80%, transparent);
  margin-top: 0.75rem;
  max-width: 36rem;
}

.cta-actions {
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .cta-actions { justify-content: flex-end; }
}

/* -----------------------------------------------------------------------
   19. DARK SECTION (alt background)
   ----------------------------------------------------------------------- */
.section-alt {
  background-color: color-mix(in srgb, var(--bg-card) 40%, transparent);
  border-top: 1px solid var(--border);
}

/* -----------------------------------------------------------------------
   20. FORMS
   ----------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}

.form-label-desc {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.125rem;
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--fg);
  background-color: var(--bg-card);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 20%, transparent);
}

.form-input::placeholder {
  color: var(--fg-muted);
  opacity: 0.7;
}

textarea.form-input {
  resize: vertical;
  min-height: 6rem;
}

.form-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--fg);
  background-color: var(--bg-card);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-select:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 20%, transparent);
}

/* Radio card */
.radio-card-group {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .radio-card-group-3 { grid-template-columns: repeat(3, 1fr); }
  .radio-card-group-2 { grid-template-columns: repeat(2, 1fr); }
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.75rem;
  cursor: pointer;
  background-color: var(--bg-card);
  transition: border-color var(--transition), background-color var(--transition);
}

.radio-card:hover {
  background-color: var(--elevate-1);
}

.radio-card.is-selected {
  border-color: var(--primary);
  background-color: color-mix(in srgb, var(--primary) 5%, transparent);
}

.radio-card input[type="radio"],
.radio-card input[type="checkbox"] {
  margin-top: 0.125rem;
  accent-color: var(--primary);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.radio-card-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

.radio-card-desc {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.125rem;
}

/* Form row grid */
.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

/* Form error message */
.form-error {
  font-size: 0.75rem;
  color: var(--destructive);
  margin-top: 0.25rem;
}

/* Form success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 0;
}

.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

/* Form submit row */
.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.form-security-note {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* -----------------------------------------------------------------------
   21. SIDE STEPS (Request Access "What Happens Next")
   ----------------------------------------------------------------------- */
.side-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-step {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.side-step__num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  width: 1.5rem;
  flex-shrink: 0;
}

.side-step__content {}

.side-step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.side-step__body {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-top: 0.25rem;
}

/* -----------------------------------------------------------------------
   22. FOOTER
   ----------------------------------------------------------------------- */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  background-color: color-mix(in srgb, var(--bg-card) 50%, transparent);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-nav-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--fg);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--primary); }

.footer-legal {
  border-top: 1px solid var(--border);
}

.footer-legal-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

@media (min-width: 768px) {
  .footer-legal-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-disclaimer {
  max-width: 36rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .footer-disclaimer { text-align: right; }
}

/* -----------------------------------------------------------------------
   23. THEME TOGGLE BUTTON
   ----------------------------------------------------------------------- */
.btn-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.btn-theme-toggle:hover {
  background-color: var(--elevate-1);
  color: var(--fg);
}

/* Show/hide icons based on theme */
.icon-sun  { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* -----------------------------------------------------------------------
   24. PAGE HERO (inner pages)
   ----------------------------------------------------------------------- */
.page-hero {
  border-bottom: 1px solid var(--border);
}

.page-hero__inner {
  max-width: 48rem;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .page-hero__inner {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* -----------------------------------------------------------------------
   25. DISCLOSURES PAGE
   ----------------------------------------------------------------------- */
.disclosure-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.disclosure-item h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
}

.disclosure-item p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.disclosure-note {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--fg-muted);
}

/* -----------------------------------------------------------------------
   26. REQUEST ACCESS LAYOUT
   ----------------------------------------------------------------------- */
.request-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .request-grid { grid-template-columns: 7fr 5fr; }
}

/* -----------------------------------------------------------------------
   27. METRIC CARDS (Impact page)
   ----------------------------------------------------------------------- */
.metric-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin-top: 0.75rem;
}

/* -----------------------------------------------------------------------
   28. OUTCOME CARDS (Impact page measurement section)
   ----------------------------------------------------------------------- */
.outcome-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 0.375rem;
}

.outcome-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* -----------------------------------------------------------------------
   29. MISC UTILITIES
   ----------------------------------------------------------------------- */
.text-primary  { color: var(--primary); }
.text-muted    { color: var(--fg-muted); }
.text-fg       { color: var(--fg); }
.italic        { font-style: italic; }
.font-semibold { font-weight: 600; }
.text-sm       { font-size: 0.875rem; }
.text-xs       { font-size: 0.75rem; }
.text-base     { font-size: 1rem; }
.text-lg       { font-size: 1.125rem; }
.leading-relaxed { line-height: 1.7; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* Spacing helpers */
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }
.space-y-16 > * + * { margin-top: 4rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* Flex helpers */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col  { flex-direction: column; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end   { justify-content: flex-end; }
.shrink-0 { flex-shrink: 0; }

/* Grid helpers */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Max width helpers */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-md  { max-width: 28rem; }

/* Scroll margin for anchor links (offset for sticky header) */
.scroll-mt { scroll-margin-top: 6rem; }

/* Border helpers */
.border-top { border-top: 1px solid var(--border); }
.pt-4 { padding-top: 1rem; }

/* Email link */
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: text-decoration var(--transition);
}
.email-link:hover { text-decoration: underline; }

/* Prefer email box */
.prefer-email-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  padding: 1.25rem;
  margin-top: 0.5rem;
}

/* 404 page */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 1.5rem;
  padding: 2rem;
}

.not-found__code {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

/* -----------------------------------------------------------------------
   30. RESPONSIVE HELPERS
   ----------------------------------------------------------------------- */
@media (max-width: 639px) {
  .hide-xs { display: none; }
}

@media (min-width: 640px) {
  .show-xs-only { display: none; }
}

@media (min-width: 768px) {
  .hide-mobile { display: none; }
}

/* -----------------------------------------------------------------------
   31. PRINT
   ----------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .btn, .mobile-nav { display: none; }
  body { color: #000; background: #fff; }
}
