/* ==========================================================================
   Hope in the Dark Project — design system
   Identity: clear white ground, deep navy type, confident blue.
   Every colour is a token. To re-skin the entire site, edit section 1 only.
   Sections:  1 tokens · 2 reset · 3 typography · 4 layout · 5 buttons
              6 header · 7 hero · 8 components · 9 forms · 10 footer
              11 utilities · 12 motion & responsive
   ========================================================================== */

/* 1 ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  /* Ground — near-black, layered so surfaces read without borders alone */
  --page:       #0a0a0c;
  --surface:    #141418;
  --panel:      #0f0f13;
  --panel-2:    #1b1b21;
  --panel-3:    #25252c;
  --line:       rgba(255,255,255,.10);
  --line-strong:rgba(255,255,255,.20);

  /* Light — the accent is light itself, not a hue */
  --white:      #ffffff;
  --heading:    #f6f6f8;
  --text:       #e9e9ee;
  --text-2:     #adadb8;
  --text-3:     #8b8b96;

  /* Accent ramp (named "blue" for continuity; mono values) */
  --navy:       #000000;
  --blue:       #e6e6ec;
  --blue-500:   #ffffff;
  --blue-700:   #c9c9d4;
  --blue-800:   #9a9aa6;
  --blue-300:   #c9c9d4;
  --blue-100:   rgba(255,255,255,.14);
  --blue-050:   rgba(255,255,255,.05);
  --on-blue:    #0a0a0c;

  /* Secondary */
  --sky:        #d8d8e0;
  --sky-100:    rgba(255,255,255,.07);
  --sky-line:   rgba(255,255,255,.16);
  --sky-deep:   #d8d8e0;
  --sky-500:    #ffffff;
  --sky-800:    #9a9aa6;

  /* Chrome */
  --header-bg:        rgba(10,10,12,.78);
  --header-bg-stuck:  rgba(10,10,12,.95);
  --page-hero-a: #141418;
  --page-hero-b: #0a0a0c;
  --glow-1:     rgba(255,255,255,.05);
  --glow-2:     rgba(255,255,255,.02);
  --band-bg:    linear-gradient(135deg,#1b1b21,#101014 60%,#000000);
  --band-text:  #c9c9d4;
  --topbar-text:#d4d4dc;
  --footer-text:#c9c9d4;
  --footer-dim: #8b8b96;

  /* Status — red is kept for genuine emergencies only */
  --alert:      #ff6b6b;
  --alert-bright:#ff8a8a;
  --alert-bg:   rgba(255,107,107,.10);
  --alert-line: rgba(255,107,107,.32);

  --shadow-1: 0 1px 2px rgba(0,0,0,.5);
  --shadow-2: 0 24px 54px -26px rgba(0,0,0,.85);
  --shadow-blue: 0 12px 30px -12px rgba(0,0,0,.7);

  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Scale — fluid */
  --step--1: clamp(.82rem, .78rem + .18vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.075rem);
  --step-1:  clamp(1.2rem, 1.12rem + .38vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.3rem + .72vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.52rem + 1.3vw, 2.7rem);
  --step-4:  clamp(2.2rem, 1.7rem + 2.3vw, 3.9rem);
  --step-5:  clamp(2.7rem, 1.85rem + 3.9vw, 5.6rem);

  /* Space */
  --sp-1: .35rem;  --sp-2: .6rem;   --sp-3: 1rem;
  --sp-4: 1.5rem;  --sp-5: 2.25rem; --sp-6: 3.25rem;
  --sp-7: 4.75rem; --sp-8: 7rem;

  --wrap: 1200px;
  --wrap-narrow: 760px;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;

}

/* 2 ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep anchored headings clear of the sticky header. */
  scroll-padding-top: 6.5rem;
}

body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--page);
  background-image:
    radial-gradient(1100px 640px at 82% -12%, var(--glow-1), transparent 62%),
    radial-gradient(760px 520px at -8% 2%, var(--glow-2), transparent 58%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue); color: var(--on-blue); padding: .8rem 1.2rem;
  font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* 3 ── Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.018em;
  text-wrap: balance;
  color: var(--heading);
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.2; }
h4 { font-size: var(--step-1); line-height: 1.3; }

p, li { text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: var(--blue); text-decoration-color: rgba(255,255,255,.38); text-underline-offset: .22em; }
a:hover { color: var(--blue-700); text-decoration-color: currentColor; }

strong, b { font-weight: 600; color: var(--heading); }
mark { background: rgba(255,255,255,.16); color: var(--heading); padding: 0 .18em; border-radius: 3px; }
small { font-size: var(--step--1); }
blockquote { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--text-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body); font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue-700);
  margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .65; }
.eyebrow--center::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .65; }

.display-serif { font-family: var(--display); }
.text-flame { color: var(--blue); }
.text-beacon { color: var(--sky); }
.text-muted { color: var(--text-2); }
.text-dim { color: var(--text-3); }

/* Rich text blocks (legal/long-form pages) */
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul li { list-style: disc; margin-top: .5em; }
.prose ol li { list-style: decimal; margin-top: .5em; }
.prose li::marker { color: var(--blue); }
.prose p, .prose li { color: var(--text-2); }

/* 4 ── Layout ───────────────────────────────────────────────────────────── */
.main { position: relative; z-index: 1; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }

.section { padding-block: var(--sp-7); position: relative; }
.section--tight { padding-block: var(--sp-6); }
.section--loose { padding-block: var(--sp-8); }
.section--edge { border-top: 1px solid var(--line); }
.section--panel { background: var(--panel); border-block: 1px solid var(--line); }

.section-head { max-width: 60ch; margin-bottom: var(--sp-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--sp-3); color: var(--text-2); font-size: var(--step-1); line-height: 1.55; }

.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--sp-6); align-items: center; }

/* Grid and flex children default to min-width:auto, which lets wide content
   (tables, code, long words) push a column past the viewport. Opt out. */
.grid > *,
.hero__inner > *,
.footer__top > *,
.footer__newsletter > *,
.site-header__inner > * { min-width: 0; }

.stack > * + * { margin-top: var(--sp-3); }
.stack-lg > * + * { margin-top: var(--sp-5); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.cluster--center { justify-content: center; }

/* 5 ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: transparent; --btn-fg: var(--heading); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem;
  font-family: var(--body); font-size: .95rem; font-weight: 600;
  letter-spacing: .01em; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: 999px;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s cubic-bezier(.22,1,.36,1), background-color .25s,
              border-color .25s, box-shadow .25s, color .2s;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--blue-500), var(--blue) 55%, var(--blue-800));
  --btn-fg: var(--on-blue); --btn-bd: transparent;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover { box-shadow: 0 18px 40px -14px rgba(0,0,0,.8); }

.btn--beacon {
  --btn-bg: linear-gradient(135deg, var(--sky-500), var(--sky) 55%, var(--sky-800));
  --btn-fg: var(--on-blue); --btn-bd: transparent;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.7);
}

.btn--ghost { --btn-bg: var(--surface); --btn-fg: var(--blue-700); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--blue); --btn-bg: var(--blue-050); }

.btn--quiet { --btn-bd: transparent; padding-inline: .5rem; color: var(--text-2); }
.btn--quiet:hover { color: var(--blue); }

.btn--sm { padding: .6rem 1.1rem; font-size: .875rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.03rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; text-decoration: none; color: var(--blue);
}
.link-arrow::after { content: "→"; transition: transform .25s cubic-bezier(.22,1,.36,1); }
.link-arrow:hover::after { transform: translateX(5px); }

/* 6 ── Header ───────────────────────────────────────────────────────────── */
.topbar {
  position: relative; z-index: 60;
  background: var(--navy); color: var(--topbar-text);
  font-size: .84rem;
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding-block: .55rem; }
.topbar__text { color: var(--topbar-text); }
.topbar__text span { color: var(--alert-bright); font-size: .7em; vertical-align: middle; }
.topbar a { color: var(--white); font-weight: 700; text-decoration-color: rgba(255,255,255,.5); }
.topbar a:hover { color: var(--blue-300); }
.topbar__link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.topbar__link::after { content: " →"; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: var(--header-bg-stuck);
  box-shadow: 0 10px 30px -22px rgba(0,0,0,.9);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-block: .8rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--heading); }
.brand__mark { display: grid; place-items: center; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--display); font-size: 1.16rem; font-weight: 700; letter-spacing: -.02em; }
.brand__sub { font-size: .62rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--blue); margin-top: .28rem; }

.site-nav__list { display: flex; align-items: center; gap: .15rem; }
.site-nav__list a {
  display: block; padding: .55rem .8rem; border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--text-2); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.site-nav__list a:hover { color: var(--heading); background: var(--blue-050); }
.site-nav__list a.is-active { color: var(--blue-700); background: var(--blue-100); font-weight: 600; }
.site-nav__cta { margin-left: .6rem; }
.site-nav__cta a { color: var(--on-blue) !important; }
.site-nav__cta a:hover { background: none; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; place-items: center; background: var(--surface); }
.nav-toggle__bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle__bars span { height: 2px; background: var(--heading); border-radius: 2px; transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7 ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 7.5rem) var(--sp-7); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -30% -10% auto; height: 780px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(255,255,255,.10), rgba(255,255,255,.03) 55%, transparent 78%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--sp-6); align-items: center; }
.hero h1 { margin-bottom: var(--sp-4); }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero__lede { font-size: clamp(1.05rem, .98rem + .45vw, 1.32rem); color: var(--text-2); max-width: 56ch; line-height: 1.55; }
.hero__actions { margin-top: var(--sp-5); }
.hero__trust { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .85rem; color: var(--text-2); }
.hero__trust li { display: flex; align-items: center; gap: .45rem; }
.hero__trust li::before { content: "✓"; color: var(--sky); font-weight: 700; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .95rem .4rem .55rem; margin-bottom: var(--sp-4);
  background: var(--blue-050); border: 1px solid var(--blue-100);
  border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--blue-700);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* Hero art: the kit */
.hero__art { position: relative; }
.kit-card {
  position: relative; padding: var(--sp-5); border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.kit-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, var(--blue-300), transparent 45%, var(--sky));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.kit-card__label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--sp-4); }
.kit-card__title { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--heading); }
.kit-card__price { font-size: .8rem; color: var(--blue); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kit-list { display: grid; gap: .55rem; }
.kit-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .75rem; background: var(--blue-050); border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; color: var(--text-2); }
.kit-list li strong { display: block; color: var(--heading); font-weight: 600; }
.kit-list__icon { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-100); color: var(--blue-700); font-size: .8rem; }
.kit-card__foot { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px dashed var(--line-strong); font-size: .82rem; color: var(--text-3); }

/* 8 ── Components ───────────────────────────────────────────────────────── */

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.stat { padding: var(--sp-5) var(--sp-4); background: var(--surface); text-align: center; }
.stat__num { display: block; font-family: var(--display); font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem); font-weight: 700; line-height: 1; color: var(--blue); letter-spacing: -.03em; }
.stat__label { display: block; margin-top: .6rem; font-size: .84rem; color: var(--text-2); font-weight: 500; }
.stat__note { display: block; margin-top: .35rem; font-size: .72rem; color: var(--text-3); }

/* Card */
.card {
  position: relative; padding: var(--sp-5); border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s, box-shadow .35s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue-300); box-shadow: var(--shadow-2); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--text-2); font-size: .96rem; }
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: var(--sp-4);
  border-radius: 15px; color: var(--blue-700);
  background: var(--blue-050);
  border: 1px solid var(--blue-100);
}
.card__icon--beacon { color: var(--sky); background: var(--sky-100); border-color: var(--sky-line); }
.card__tag { display: inline-block; margin-bottom: .8rem; padding: .22rem .7rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; background: var(--panel-2); color: var(--text-2); }
.card__tag--live { background: var(--sky-100); color: var(--sky-deep); }
.card__tag--soon { background: var(--blue-100); color: var(--blue-700); }
.card__list { margin-top: var(--sp-3); display: grid; gap: .4rem; font-size: .9rem; color: var(--text-2); }
.card__list li { padding-left: 1.25rem; position: relative; }
.card__list li::before { content: "›"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.card__foot { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.card--feature { grid-column: span 2; }
.card--flat { box-shadow: none; background: var(--surface); }
.card--flat:hover { transform: none; box-shadow: var(--shadow-1); }

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: var(--sp-4); }
.step { position: relative; padding: var(--sp-4) var(--sp-4) var(--sp-4) 4.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: var(--sp-4); top: var(--sp-4);
  font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--blue-300);
}
.step h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.step p { color: var(--text-2); font-size: .95rem; }

/* Timeline */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: .48rem; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(180deg, var(--blue), var(--blue-100)); }
.timeline__item { position: relative; padding-bottom: var(--sp-5); }
.timeline__item::before { content: ""; position: absolute; left: -2.2rem; top: .45rem; width: 14px; height: 14px; margin-left: -.05rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--blue); }
.timeline__when { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-700); }
.timeline__item h3 { font-size: var(--step-1); margin: .3rem 0 .4rem; }
.timeline__item p { color: var(--text-2); font-size: .95rem; }

/* Quote */
.quote { position: relative; padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-6); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); box-shadow: var(--shadow-1); }
.quote::before { content: "“"; position: absolute; left: 1.1rem; top: .4rem; font-family: var(--display); font-size: 4.5rem; line-height: 1; color: var(--blue-100); }
.quote p { position: relative; font-family: var(--display); font-size: var(--step-1); line-height: 1.45; color: var(--heading); }
.quote footer { margin-top: var(--sp-3); font-size: .85rem; color: var(--text-3); font-family: var(--body); }
.quote cite { font-style: normal; font-weight: 600; color: var(--text-2); display: block; }

/* Pull banner / CTA band */
.band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 4rem);
  background: var(--band-bg);
  border: 1px solid var(--blue-800);
  box-shadow: var(--shadow-2);
  text-align: center;
}
.band::before { content: ""; position: absolute; inset: auto -20% -70%; height: 420px; background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent 72%); pointer-events: none; }
.band > * { position: relative; }
.band h2 { margin-bottom: var(--sp-3); color: var(--white); }
.band p { max-width: 62ch; margin-inline: auto; color: var(--band-text); font-size: var(--step-1); }
.band .eyebrow { color: var(--blue-300); }
.band .cluster { margin-top: var(--sp-5); }
.band .btn--primary { --btn-bg: var(--white); --btn-fg: var(--on-blue); box-shadow: 0 12px 28px -14px rgba(0,0,0,.5); }
.band .btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.5); }
.band .btn--ghost:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: var(--white); }

/* Donation tiers */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); }
.tier { display: flex; flex-direction: column; padding: var(--sp-5); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .3s; }
.tier:hover { transform: translateY(-5px); border-color: var(--blue-300); box-shadow: var(--shadow-2); }
.tier--featured { border-color: var(--blue); border-width: 2px; box-shadow: var(--shadow-2); }
.tier__flag { align-self: flex-start; margin-bottom: var(--sp-3); padding: .25rem .75rem; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--blue); color: var(--on-blue); }
.tier__amount { font-family: var(--display); font-size: clamp(2.1rem, 1.6rem + 2vw, 2.9rem); font-weight: 700; color: var(--heading); line-height: 1; }
.tier__amount span { font-size: .85rem; font-family: var(--body); font-weight: 500; color: var(--text-3); letter-spacing: .05em; }
.tier__name { margin-top: .55rem; font-family: var(--display); font-size: var(--step-1); color: var(--blue-700); }
.tier__desc { margin-top: .6rem; color: var(--text-2); font-size: .93rem; flex: 1; }
.tier .btn { margin-top: var(--sp-4); }

/* Amount picker */
.amounts { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: var(--sp-3); }
.amount-btn { padding: .8rem 1.15rem; border: 1px solid var(--line-strong); border-radius: 12px; font-weight: 600; background: var(--surface); color: var(--heading); transition: all .2s; }
.amount-btn:hover { border-color: var(--blue); color: var(--blue); }
.amount-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.freq-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); margin-bottom: var(--sp-4); }
.freq-toggle button { padding: .5rem 1.15rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--text-2); transition: all .2s; }
.freq-toggle button[aria-pressed="true"] { background: var(--blue); color: var(--on-blue); }
.impact-readout { padding: var(--sp-4); border-radius: var(--radius-sm); background: var(--sky-100); border: 1px solid var(--sky-line); font-size: .95rem; color: var(--text-2); }
.impact-readout strong { color: var(--sky-deep); }

/* Allocation bar */
.alloc { display: flex; height: 46px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); }
.alloc__seg { display: grid; place-items: center; font-size: .76rem; font-weight: 700; color: var(--white); overflow: hidden; white-space: nowrap; }
.alloc__key { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: var(--sp-3); font-size: .85rem; color: var(--text-2); }
.alloc__key li { display: flex; align-items: center; gap: .5rem; }
.alloc__swatch { width: 12px; height: 12px; border-radius: 3px; }

/* Accordion */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); }
.accordion details + details { border-top: 1px solid var(--line); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: 1.15rem var(--sp-4); cursor: pointer; list-style: none;
  font-family: var(--display); font-size: var(--step-1); font-weight: 600; line-height: 1.3;
  color: var(--heading);
  transition: color .2s, background-color .2s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--blue); background: var(--blue-050); }
.accordion summary::after { content: "+"; flex: 0 0 auto; font-family: var(--body); font-size: 1.5rem; font-weight: 300; color: var(--blue); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding: 0 var(--sp-4) 1.35rem; color: var(--text-2); }
.accordion__body > * + * { margin-top: .8rem; }

/* Hotline / resource list */
.resource { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--sp-3) var(--sp-4); align-items: center; padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.resource + .resource { margin-top: .75rem; }
.resource h3 { font-size: 1.08rem; font-family: var(--body); font-weight: 600; }
.resource p { font-size: .88rem; color: var(--text-3); margin-top: .2rem; }
.resource__action { font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--blue); text-decoration: none; white-space: nowrap; }
.resource__action:hover { color: var(--blue-700); }

/* Checklist */
.checklist { display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text-2); }
.checklist li::before { content: ""; flex: 0 0 auto; width: 22px; height: 22px; margin-top: .18rem; border-radius: 50%; background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6e6ec' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat; }
.checklist--flame li::before { background-color: var(--blue-100); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }

/* Marquee of city names */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--blue-300); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { min-width: 560px; font-size: .93rem; }
.table th, .table td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); color: var(--text-2); }
.table thead th { background: var(--panel); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--blue-700); font-weight: 700; }
.table tbody th { color: var(--heading); font-weight: 600; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--blue-050); }
.table td:last-child, .table th:last-child { text-align: right; }
.table .num { font-variant-numeric: tabular-nums; color: var(--blue); font-weight: 700; }

/* Notice box */
.notice { padding: var(--sp-4); border-radius: var(--radius-sm); border: 1px solid var(--blue-100); border-left: 4px solid var(--blue); background: var(--blue-050); font-size: .93rem; color: var(--text-2); }
.notice strong { color: var(--blue-700); }
.notice--alert { border-color: var(--alert-line); border-left-color: var(--alert); background: var(--alert-bg); }
.notice--alert strong { color: var(--alert); }
.notice--alert a { color: var(--alert); }
.notice--beacon { border-color: var(--sky-line); border-left-color: var(--sky); background: var(--sky-100); }
.notice--beacon strong { color: var(--sky-deep); }

/* Quick exit — for pages someone may be reading while unsafe */
.exit-bar {
  position: sticky; top: 0; z-index: 45;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .75rem 1.25rem; padding: .7rem 1rem;
  background: var(--alert-bg); border-bottom: 1px solid var(--alert-line);
  font-size: .88rem; color: var(--text);
}
.exit-bar p { margin: 0; }
.exit-bar kbd {
  font-family: var(--body); font-size: .8em; padding: .1rem .4rem;
  border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface);
}
.btn--exit {
  /* Dark text on the bright red: 6.89:1. White on this red is only 2.78:1,
     and this is the one button someone may need to find in a hurry. */
  --btn-bg: var(--alert); --btn-fg: #2a0000; --btn-bd: transparent;
  padding: .5rem 1.1rem; font-size: .88rem; font-weight: 700;
}
.btn--exit:hover { --btn-bg: var(--alert-bright); --btn-fg: #2a0000; }
@media (max-width: 560px) { .exit-bar { flex-direction: column; gap: .5rem; text-align: center; } }

/* Slogan */
.slogan {
  font-family: var(--display); font-size: var(--step-2); font-weight: 600;
  line-height: 1.15; letter-spacing: -.015em; color: var(--heading);
}
.slogan__tag {
  display: block; margin-top: .5rem; font-family: var(--body); font-size: .78rem;
  font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue);
}

/* Sticky sidebar */
.sticky { position: sticky; top: 6.5rem; }

/* Page hero (interior) */
.page-hero { position: relative; padding-block: clamp(3rem, 6vw, 5rem) var(--sp-6); border-bottom: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, var(--page-hero-a), var(--page-hero-b)); }
.page-hero__inner { position: relative; max-width: 68ch; }
.page-hero h1 { font-size: var(--step-4); margin-bottom: var(--sp-4); }
.page-hero .lede { max-width: 60ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: var(--text-3); margin-bottom: var(--sp-4); }
.breadcrumbs a { color: var(--text-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs li + li::before { content: "/"; margin-right: .45rem; opacity: .5; }
.breadcrumbs li { display: flex; }

/* Anchor nav */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; padding: var(--sp-3) 0; }
.jump a { padding: .45rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .85rem; text-decoration: none; color: var(--text-2); background: var(--surface); transition: all .2s; }
.jump a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-050); }

/* 9 ── Forms ────────────────────────────────────────────────────────────── */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: .45rem; }
.field label, .form-label { font-size: .85rem; font-weight: 600; color: var(--heading); letter-spacing: .01em; }
.field .hint { font-size: .78rem; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; padding: .85rem 1rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(255,255,255,.14);
}
.textarea { min-height: 150px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8b96' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; padding-right: 2.6rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-4); }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.checkbox input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--blue); flex: 0 0 auto; }
.form-card { padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.hp { position: absolute; left: -9999px; }

.newsletter { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter .input { flex: 1 1 240px; width: auto; }

/* 10 ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { position: relative; z-index: 1; margin-top: var(--sp-8); padding-block: var(--sp-6) var(--sp-4); background: var(--navy); color: var(--footer-text); }
.site-footer h2, .site-footer h3 { color: var(--white); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr); gap: var(--sp-6); padding-bottom: var(--sp-6); }
.brand--footer { color: var(--white); }
.brand--footer .brand__sub { color: var(--blue-300); }
.footer__mission { margin-top: var(--sp-3); font-family: var(--display); font-size: var(--step-1); color: var(--white); }
.footer__note { margin-top: .8rem; font-size: .88rem; color: var(--footer-dim); max-width: 42ch; }
.footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-5); }
.footer__heading { font-family: var(--body); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-300); margin-bottom: var(--sp-3); }
.footer__list { display: grid; gap: .55rem; }
.footer__list a { font-size: .92rem; color: var(--footer-text); text-decoration: none; }
.footer__list a:hover { color: var(--white); text-decoration: underline; }
.social { display: flex; gap: .55rem; margin-top: var(--sp-4); }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(255,255,255,.22); color: var(--footer-text); transition: all .25s cubic-bezier(.22,1,.36,1); }
.social a:hover { color: var(--navy); background: var(--white); border-color: var(--white); transform: translateY(-3px); }

.footer__newsletter { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--sp-5); align-items: center; padding: var(--sp-5); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.footer__newsletter p { font-size: .9rem; color: var(--footer-dim); margin-top: .4rem; }
.footer__newsletter .input { background: var(--surface); border-color: transparent; color: var(--text); }

.footer__legal { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: .8rem; font-size: .8rem; color: var(--footer-dim); }
.footer__disclaimer { max-width: 90ch; }
.site-footer a { color: var(--white); }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__legal-links a { color: var(--footer-text); text-decoration: none; }
.footer__legal-links a:hover { color: var(--white); text-decoration: underline; }

.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--white); border: 1px solid var(--line-strong); color: var(--blue); box-shadow: var(--shadow-1); transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s; }
.to-top:hover { transform: translateY(-4px); border-color: var(--blue); }
.to-top[hidden] { display: none; }

/* 11 ── Utilities ───────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); }
.measure { max-width: 66ch; } .measure-narrow { max-width: 52ch; }
.full { grid-column: 1 / -1; }

/* 12 ── Motion & responsive ─────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .grid--sidebar { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .card--feature { grid-column: auto; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 340px);
    padding: 6rem var(--sp-4) var(--sp-5);
    background: var(--white);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 50px -30px rgba(0,0,0,.9);
    transform: translateX(100%); transition: transform .38s cubic-bezier(.22,1,.36,1);
    overflow-y: auto; z-index: 55;
  }
  .site-nav.is-open { transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .site-nav__list a { padding: .9rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .site-nav__cta { margin: var(--sp-3) 0 0; }
  .site-nav__cta a { justify-content: center; padding: .95rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 52; }
  .footer__newsletter { grid-template-columns: 1fr; }
  .resource { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-6); }
}

@media (max-width: 560px) {
  .topbar__inner { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .cluster .btn { width: auto; flex: 1 1 auto; }
  .hero__actions .btn { width: 100%; }
  .band { padding: var(--sp-5) var(--sp-4); }
  .alloc__seg { font-size: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .site-footer, .to-top, .band { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
