/* ==========================================================================
   Swim Safe Start Strong — Design System
   Palette derived from brand mark: deep navy, water blue, sun yellow, off-white
   ========================================================================== */

:root,
[data-theme='light'] {
  /* ---- Surfaces ---- */
  --color-bg: #fbfaf6;               /* off-white / warm sand */
  --color-surface: #ffffff;
  --color-surface-2: #f4f7f8;        /* pale water tint */
  --color-surface-offset: #eef3f6;
  --color-surface-navy: #0b2f52;     /* deep navy surface (footer, dark bands) */
  --color-surface-navy-2: #123a63;
  --color-divider: #dde5e9;
  --color-border: #ccd8de;

  /* ---- Text ---- */
  --color-text: #0e1f2e;
  --color-text-muted: #4c6070;
  --color-text-faint: #8299a6;
  --color-text-inverse: #f7fbfd;

  /* ---- Brand: Navy (headings, primary UI ink) ---- */
  --color-navy: #0b3161;
  --color-navy-700: #123a63;
  --color-navy-600: #17497d;

  /* ---- Brand: Water Blue (primary accent / links / interactive) ---- */
  --color-primary: #1c6fb0;          /* water blue */
  --color-primary-hover: #155a92;
  --color-primary-active: #0f4977;
  --color-primary-highlight: #d7e9f5;
  --color-sky: #4fa8dc;              /* lighter wave blue for accents */

  /* ---- Brand: Sun Yellow (optimistic accent, used sparingly) ---- */
  --color-sun: #f6a91e;
  --color-sun-hover: #dc9312;
  --color-sun-active: #b87a0c;
  --color-sun-highlight: #fdecc8;
  --color-sun-ink: #4a2f04;          /* text-safe ink for use on yellow */

  /* ---- Semantic ---- */
  --color-success: #2f7a4f;
  --color-success-highlight: #dcefe2;
  --color-error: #b0342a;
  --color-error-highlight: #f6dcd9;
  --color-warning: #a15b12;
  --color-warning-highlight: #f3e2c9;
  --color-focus: #0f4977;

  /* ---- Radius ---- */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* ---- Transitions ---- */
  --transition-interactive: 160ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- Shadows (tone-matched, cool navy tint) ---- */
  --shadow-sm: 0 1px 2px oklch(0.22 0.05 250 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.22 0.05 250 / 0.10);
  --shadow-lg: 0 18px 44px oklch(0.22 0.05 250 / 0.16);

  /* ---- Content widths ---- */
  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1220px;
  --content-full: 100%;

  /* ---- Fonts ---- */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'General Sans', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* ---- Dark mode ---- */
[data-theme='dark'] {
  --color-bg: #0a1826;
  --color-surface: #0f2237;
  --color-surface-2: #12293f;
  --color-surface-offset: #16324b;
  --color-surface-navy: #071627;
  --color-surface-navy-2: #0a1f34;
  --color-divider: #1d3a53;
  --color-border: #294864;

  --color-text: #eaf2f7;
  --color-text-muted: #a8c0cf;
  --color-text-faint: #6f8ea0;
  --color-text-inverse: #0a1826;

  --color-navy: #9fc4e8;
  --color-navy-700: #bcd7f0;
  --color-navy-600: #d7e9f8;

  --color-primary: #6db2e6;
  --color-primary-hover: #8fc4ec;
  --color-primary-active: #4f98d1;
  --color-primary-highlight: #17324a;
  --color-sky: #7fc2ec;

  --color-sun: #f8b93d;
  --color-sun-hover: #fbc862;
  --color-sun-active: #e0a520;
  --color-sun-highlight: #3a2c0f;
  --color-sun-ink: #2a1c02;

  --color-success: #7bc99a;
  --color-success-highlight: #16332a;
  --color-error: #e28880;
  --color-error-highlight: #3a1c1a;
  --color-warning: #e0ab5f;
  --color-warning-highlight: #3a2c14;
  --color-focus: #8fc4ec;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 18px 44px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0a1826;
    --color-surface: #0f2237;
    --color-surface-2: #12293f;
    --color-surface-offset: #16324b;
    --color-surface-navy: #071627;
    --color-surface-navy-2: #0a1f34;
    --color-divider: #1d3a53;
    --color-border: #294864;
    --color-text: #eaf2f7;
    --color-text-muted: #a8c0cf;
    --color-text-faint: #6f8ea0;
    --color-text-inverse: #0a1826;
    --color-navy: #9fc4e8;
    --color-navy-700: #bcd7f0;
    --color-navy-600: #d7e9f8;
    --color-primary: #6db2e6;
    --color-primary-hover: #8fc4ec;
    --color-primary-active: #4f98d1;
    --color-primary-highlight: #17324a;
    --color-sky: #7fc2ec;
    --color-sun: #f8b93d;
    --color-sun-hover: #fbc862;
    --color-sun-active: #e0a520;
    --color-sun-highlight: #3a2c0f;
    --color-sun-ink: #2a1c02;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
    --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 18px 44px oklch(0 0 0 / 0.5);
  }
}

/* ==========================================================================
   Type Scale (fluid, clamp based)
   ========================================================================== */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  /* 4px 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;
  --space-32: 8rem;
}

/* ==========================================================================
   Global element styles
   ========================================================================== */

body {
  overflow-x: hidden;
}

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide {
  max-width: var(--content-wide);
}
.container--narrow {
  max-width: var(--content-narrow);
}

section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  font-weight: 600;
}
[data-theme='dark'] h1,
[data-theme='dark'] h2,
[data-theme='dark'] h3,
[data-theme='dark'] h4 {
  color: var(--color-text);
}

h1 { font-size: var(--text-3xl); font-weight: 560; letter-spacing: -0.01em; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; }

p {
  color: var(--color-text-muted);
  max-width: 68ch;
}
p.lede {
  font-size: var(--text-lg);
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--color-primary-hover);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-primary);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--color-sun);
  border-radius: var(--radius-full);
  display: inline-block;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow var(--transition-interactive), transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  min-height: 44px;
}
.brand img {
  height: 44px;
  width: 44px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: #fff;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-wordmark strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-navy);
  font-weight: 700;
}
[data-theme='dark'] .brand-wordmark strong { color: var(--color-text); }
.brand-wordmark span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.primary-nav {
  display: none;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
}
.primary-nav a:hover {
  background: var(--color-surface-2);
  color: var(--color-primary);
}
.primary-nav a[aria-current='page'] {
  color: var(--color-primary);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-navy);
}
[data-theme='dark'] .nav-toggle { color: var(--color-text); }
.nav-toggle:hover { background: var(--color-surface-2); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--color-navy);
}
[data-theme='dark'] .theme-toggle { color: var(--color-text); }
.theme-toggle:hover { background: var(--color-surface-2); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--color-bg);
  padding: var(--space-5);
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--color-divider);
}
[data-theme='dark'] .mobile-nav a { color: var(--color-text); }
.mobile-nav .btn { margin-top: var(--space-6); width: 100%; justify-content: center; }

@media (min-width: 900px) {
  .primary-nav { display: block; }
  .nav-toggle { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-donate {
  background: var(--color-sun);
  color: var(--color-sun-ink);
  box-shadow: var(--shadow-sm);
}
.btn-donate:hover {
  background: var(--color-sun-hover);
  color: var(--color-sun-ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-donate svg { flex-shrink: 0; }

.btn-secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-navy);
}
[data-theme='dark'] .btn-secondary { color: var(--color-text); }
.btn-secondary:hover {
  background: var(--color-surface-2);
  border-color: var(--color-primary);
}

.btn-ghost-invert {
  background: transparent;
  border-color: oklch(1 0 0 / 0.4);
  color: #fff;
}
.btn-ghost-invert:hover {
  background: oklch(1 0 0 / 0.12);
  border-color: #fff;
}

.btn-block { width: 100%; }
.btn:active { transform: translateY(0) scale(0.98); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32)) clamp(var(--space-12), 6vw, var(--space-20));
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 85% 8%, oklch(from var(--color-sun) l c h / 0.16), transparent 60%),
    radial-gradient(70% 60% at 10% 100%, oklch(from var(--color-primary) l c h / 0.14), transparent 65%);
}
.hero-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
}
.hero .lede {
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art .wave-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-primary) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding-top: var(--space-10);
}
.hero-art .wave-frame img {
  width: 58%;
  filter: drop-shadow(0 12px 24px oklch(0 0 0 / 0.25));
}
.hero-badge {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  background: oklch(1 0 0 / 0.96);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.hero-badge svg { flex-shrink: 0; color: var(--color-sun-hover); margin-top: 2px; }
.hero-badge p { font-size: var(--text-xs); color: var(--color-navy); max-width: none; }

/* ==========================================================================
   Sections & Cards
   ========================================================================== */

.section-head {
  max-width: 68ch;
  margin-bottom: var(--space-10);
}
.section-head h2 { margin-top: var(--space-3); }

.band-navy {
  background: linear-gradient(160deg, var(--color-surface-navy) 0%, var(--color-surface-navy-2) 100%);
  color: var(--color-text-inverse);
}
.band-navy h2, .band-navy h3, .band-navy h4 { color: #fff; }
.band-navy p { color: oklch(1 0 0 / 0.78); }
.band-navy .eyebrow { color: var(--color-sun); }
.band-navy .eyebrow::before { background: #fff; }

.pillars {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .pillars.pillars-4 { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

.pillar-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.pillar-card.featured {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-primary) 120%);
  color: #fff;
}
.pillar-card.featured h3, .pillar-card.featured p { color: #fff; }
.pillar-card .num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-sun-hover);
  display: block;
  margin-bottom: var(--space-3);
}
.pillar-card.featured .num { color: var(--color-sun); }
.pillar-card h3 { margin-bottom: var(--space-2); font-size: var(--text-lg); }
.pillar-card p { font-size: var(--text-sm); }

.cards-3 {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.info-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.info-card h3 { font-size: var(--text-lg); }
.info-card p { font-size: var(--text-sm); }

.wave-divider {
  display: block;
  width: 100%;
  height: 48px;
  color: var(--color-surface-2);
}

/* ==========================================================================
   Callout / Promise block
   ========================================================================== */

.promise {
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-12));
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  position: relative;
}
.promise blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-navy);
  line-height: 1.3;
  max-width: 46ch;
}
[data-theme='dark'] .promise blockquote { color: var(--color-text); }
.promise cite {
  display: block;
  margin-top: var(--space-5);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Steps / process
   ========================================================================== */
.steps {
  display: grid;
  gap: var(--space-8);
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  counter-increment: step;
  position: relative;
  padding-top: var(--space-10);
}
.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step p { font-size: var(--text-sm); }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 5vw, var(--space-10));
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.field .hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-base);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
}
.field.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-3);
}
.field.checkbox input {
  width: 22px;
  height: 22px;
  min-height: unset;
  margin-top: 2px;
  accent-color: var(--color-primary);
}
.field.checkbox label { font-weight: 500; }

.form-footer-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
}
.form-status.is-visible { display: flex; }
.form-status.success {
  background: var(--color-success-highlight);
  color: var(--color-success);
}
.form-status.success p { color: inherit; }

/* ==========================================================================
   Donate CTA banner (reusable)
   ========================================================================== */
.donate-cta {
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-12));
  background: linear-gradient(135deg, var(--color-sun-highlight) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-divider);
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 860px) {
  .donate-cta { grid-template-columns: 1.4fr auto; }
}
.donate-cta h2 { margin-bottom: var(--space-3); }
.donate-cta .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.integration-note {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--color-surface-offset);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.integration-note svg { flex-shrink: 0; color: var(--color-primary); margin-top: 2px; }

/* ==========================================================================
   Disclaimer blocks
   ========================================================================== */
.disclaimer {
  background: var(--color-surface-offset);
  border-left: none;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  font-size: var(--text-sm);
}
.disclaimer h3 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.disclaimer p { font-size: var(--text-sm); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-surface-navy);
  color: oklch(1 0 0 / 0.85);
  padding-block: clamp(var(--space-16), 6vw, var(--space-20)) var(--space-8);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-12);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-brand img {
  height: 40px; width: 40px; border-radius: var(--radius-md); background: #fff;
}
.footer-brand strong {
  font-family: var(--font-display);
  color: #fff;
  font-size: var(--text-base);
}
.site-footer p { color: oklch(1 0 0 / 0.65); font-size: var(--text-sm); }
.site-footer h4 {
  color: #fff;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a {
  color: oklch(1 0 0 / 0.75);
  text-decoration: none;
  font-size: var(--text-sm);
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { color: var(--color-sun); }
.footer-bottom {
  border-top: 1px solid oklch(1 0 0 / 0.14);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.55);
}
.footer-bottom a { color: oklch(1 0 0 / 0.55); }

/* ==========================================================================
   Utilities
   ========================================================================== */
.stack { display: flex; flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.text-center { text-align: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--color-primary-highlight);
  color: var(--color-primary-hover);
}
.badge.sun { background: var(--color-sun-highlight); color: var(--color-sun-ink); }

.page-hero {
  padding-block: clamp(var(--space-12), 8vw, var(--space-20)) var(--space-10);
  background: linear-gradient(180deg, var(--color-surface-2), var(--color-bg));
}
.page-hero h1 { font-size: var(--text-2xl); margin-top: var(--space-3); }
.page-hero .lede { margin-top: var(--space-4); max-width: 62ch; }

.two-col {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; align-items: start; }
  .two-col.reverse .col-media { order: 2; }
}

.icon-tile {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
table.compare th, table.compare td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  text-align: left;
}
table.compare th { font-family: var(--font-display); color: var(--color-navy); }
[data-theme='dark'] table.compare th { color: var(--color-text); }

details.faq {
  border-bottom: 1px solid var(--color-divider);
  padding-block: var(--space-5);
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 44px;
}
[data-theme='dark'] details.faq summary { color: var(--color-text); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .chev { transition: transform var(--transition-interactive); flex-shrink: 0; color: var(--color-primary); }
details.faq[open] summary .chev { transform: rotate(180deg); }
details.faq p { margin-top: var(--space-3); font-size: var(--text-sm); }

.value-list { display: flex; flex-direction: column; gap: var(--space-5); }
.value-list li { display: flex; gap: var(--space-4); align-items: flex-start; max-width: none; }
.value-list .icon-tile { flex-shrink: 0; }

.timeline { display: flex; flex-direction: column; gap: var(--space-6); border-left: 2px solid var(--color-divider); padding-left: var(--space-6); }
.timeline .t-item { position: relative; }
.timeline .t-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-6) - 5px);
  top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-sun);
  border: 2px solid var(--color-bg);
}

/* ==========================================================================
   Donate Modal
   ========================================================================== */
.donate-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: oklch(0.1 0.03 250 / 0.55);
}
.donate-modal.is-open { display: flex; }
.donate-modal-panel {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: clamp(var(--space-6), 5vw, var(--space-10));
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
}
.donate-modal-panel [data-donate-close] {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}
.donate-modal-panel [data-donate-close]:hover { background: var(--color-surface-2); }
.donate-modal-pending svg { color: var(--color-primary); margin-inline: auto; margin-bottom: var(--space-4); }
.donate-modal-pending h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.donate-modal-pending p { font-size: var(--text-sm); margin-inline: auto; margin-bottom: var(--space-6); }
.donate-modal-pending .btn { margin-inline: auto; }

.icon-btn-close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-navy);
}
[data-theme='dark'] .icon-btn-close { color: var(--color-text); }
.icon-btn-close:hover { background: var(--color-surface-2); }
