@import url('../assets/fonts/fonts.css');

/* ==========================================================================
   FCDC HOPE Foundation — single stylesheet
   Style: "Accessible & Ethical" — WCAG AA/AAA, high contrast, large text.
   Palette sampled from the Foundation's own HOPE logo.
   ========================================================================== */

:root {
  /* ---- Brand (sampled from HOPE logo) ---- */
  --hope-purple:      #7359DE;  /* logo primary */
  --hope-purple-700:  #5B3FC4;  /* 7.1:1 on white — links, body accents */
  --hope-purple-800:  #4A3499;  /* 9.4:1 on white — headings */
  --hope-purple-900:  #2E2163;  /* deep surfaces */
  --hope-crimson:     #8C1533;  /* logo "EXCEL" — 9.3:1 on white */
  --hope-gold:        #E89810;  /* logo figure — donate CTA */
  --hope-gold-600:    #C67D06;

  /* ---- Semantic tokens ---- */
  --color-primary:        var(--hope-purple-700);
  --color-on-primary:     #FFFFFF;
  --color-accent:         var(--hope-gold);      /* donate only */
  --color-on-accent:      #1B1630;

  --color-bg:             #FFFFFF;
  --color-bg-tint:        #F7F5FD;  /* pale purple wash */
  --color-bg-warm:        #FBF8F3;  /* warm paper */
  --color-surface:        #FFFFFF;
  --color-surface-dark:   var(--hope-purple-900);

  --color-text:           #1B1630;  /* 17.4:1 on white */
  --color-text-muted:     #4A4658;  /* 8.9:1 on white */
  --color-text-invert:    #FFFFFF;
  --color-text-invert-mut:#D9D2F2;

  --color-border:         #E2DCF4;
  --color-border-strong:  #C4B8E8;
  --color-ring:           var(--hope-purple);

  --color-success:        #1E7A4D;
  --color-danger:         #A8232E;
  --color-note-bg:        #FFF8E6;
  --color-note-border:    #E8B84B;

  /* ---- Type scale ---- */
  --font-head: 'Lexend', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-xs:   0.8125rem;  /* 13 — legal only */
  --fs-sm:   0.9375rem;  /* 15 */
  --fs-base: 1.0625rem;  /* 17 — body, generous for older donors */
  --fs-lg:   1.1875rem;
  --fs-xl:   1.375rem;
  --fs-2xl:  1.75rem;
  --fs-3xl:  2.125rem;
  --fs-4xl:  2.75rem;

  /* ---- Spacing (4/8 rhythm) ---- */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 5.5rem;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(27,22,48,.06), 0 1px 3px rgba(27,22,48,.08);
  --shadow:    0 2px 6px rgba(27,22,48,.07), 0 8px 24px rgba(27,22,48,.08);
  --shadow-lg: 0 8px 20px rgba(27,22,48,.10), 0 20px 48px rgba(27,22,48,.12);

  --container: 1120px;
  --measure: 68ch;

  --dur: 200ms;
  --ease: cubic-bezier(.2,.7,.3,1);

  /* z-index scale */
  --z-nav: 100;
  --z-sticky-cta: 90;
  --z-skip: 200;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--hope-purple-800);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-4xl); font-weight: 700; }
h2 { font-size: var(--fs-3xl); font-weight: 700; }
h3 { font-size: var(--fs-xl); font-weight: 600; }
h4 { font-size: var(--fs-lg); font-weight: 600; }

p, ul, ol { margin: 0 0 var(--sp-4); }
p { max-width: var(--measure); }

a { color: var(--hope-purple-700); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--hope-purple-800); }

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

hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--sp-6) 0; }

:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--hope-purple); color: #fff; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-6); } }

.section { padding-block: var(--sp-7); }
@media (min-width: 768px) { .section { padding-block: var(--sp-9); } }

.section--tint { background: var(--color-bg-tint); }
.section--warm { background: var(--color-bg-warm); }
.section--dark {
  background: var(--color-surface-dark);
  color: var(--color-text-invert);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--color-text-invert-mut); }
.section--dark a { color: #CDBEFF; }

.section__head { max-width: var(--measure); margin-bottom: var(--sp-6); }
.eyebrow {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hope-purple-700);
  margin: 0 0 var(--sp-2);
}
.section--dark .eyebrow { color: #C3B2FF; }

.lede { font-size: var(--fs-lg); color: var(--color-text-muted); }
.section--dark .lede { color: var(--color-text-invert-mut); }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px;
  z-index: var(--z-skip);
  background: var(--hope-purple-800); color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-head);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* Donate — gold, deliberately unlike anything else on the page */
.btn--donate {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-sm);
}
.btn--donate:hover { background: var(--hope-gold-600); color: var(--color-on-accent); box-shadow: var(--shadow); }

.btn--primary { background: var(--hope-purple-700); color: #fff; }
.btn--primary:hover { background: var(--hope-purple-800); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--hope-purple-700);
  border-color: var(--color-border-strong);
}
.btn--outline:hover { background: var(--color-bg-tint); color: var(--hope-purple-800); border-color: var(--hope-purple); }

.section--dark .btn--outline { color: #fff; border-color: rgba(255,255,255,.45); }
.section--dark .btn--outline:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

.btn--lg { min-height: 56px; padding: var(--sp-4) var(--sp-6); font-size: var(--fs-lg); }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: 68px;
  padding-block: var(--sp-2);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.brand__text { display: none; }
@media (min-width: 480px) {
  .brand__text {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: var(--fs-sm);
    line-height: 1.25;
    color: var(--hope-purple-800);
    max-width: 15ch;
  }
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; min-width: 44px;
  padding: var(--sp-2) var(--sp-3);
  background: transparent;
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  color: var(--hope-purple-800);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--color-bg-tint); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
  border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--hope-purple-700); }
.site-nav a[aria-current="page"] { color: var(--hope-purple-800); font-weight: 600; }

/* Mobile nav panel */
@media (max-width: 899px) {
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
  }
  .site-nav.is-open { display: block; }
  .site-nav li + li { border-top: 1px solid var(--color-border); }
  .site-nav a { padding: var(--sp-4) var(--sp-1); min-height: 48px; }
  .site-nav a[aria-current="page"] { border-left: 3px solid var(--hope-purple); padding-left: var(--sp-3); }
  .header-donate { display: none; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { display: flex; align-items: center; gap: var(--sp-2); }
  .site-nav a { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); }
  .site-nav a[aria-current="page"] { background: var(--color-bg-tint); }
  .header-donate { margin-left: var(--sp-3); }
}

/* Sticky mobile donate bar */
.mobile-donate {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky-cta);
  padding: var(--sp-3) var(--sp-4);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.98);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(27,22,48,.10);
  backdrop-filter: blur(8px);
}
@media (min-width: 900px) { .mobile-donate { display: none; } }
body.has-mobile-donate { padding-bottom: 88px; }
@media (min-width: 900px) { body.has-mobile-donate { padding-bottom: 0; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--color-bg-tint) 0%, #fff 100%);
  padding-block: var(--sp-7) var(--sp-7);
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding-block: var(--sp-8) var(--sp-8); } }

.hero__grid { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: var(--sp-8); } }

.hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin-bottom: var(--sp-5); }
.hero__lede { font-size: var(--fs-lg); color: var(--color-text-muted); margin-bottom: var(--sp-6); }

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: #fff;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--hope-purple-800);
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.hero__badge svg { width: 16px; height: 16px; color: var(--hope-purple); }

/* Page hero (interior pages) */
.page-hero {
  background: var(--color-bg-tint);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--sp-7);
}
.page-hero h1 { margin-bottom: var(--sp-3); }
.page-hero p { font-size: var(--fs-lg); color: var(--color-text-muted); margin-bottom: 0; }

/* ==========================================================================
   The economic case
   ========================================================================== */
.cost-compare {
  display: grid; gap: var(--sp-4);
  margin-block: var(--sp-6);
}
@media (min-width: 720px) { .cost-compare { grid-template-columns: 1fr 1fr; gap: var(--sp-5); } }

.cost-card {
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  border: 2px solid var(--color-border);
  background: #fff;
  display: flex; flex-direction: column;
}
.cost-card--prison { border-color: #E4C9CE; background: #FDF7F8; }
.cost-card--court  { border-color: var(--hope-purple); background: var(--color-bg-tint); }

.cost-card__label {
  font-family: var(--font-head);
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-3);
}
.cost-card__figure {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--sp-2);
}
.cost-card--prison .cost-card__figure { color: var(--hope-crimson); }
.cost-card--court  .cost-card__figure { color: var(--hope-purple-800); }
.cost-card__unit { font-size: var(--fs-sm); color: var(--color-text-muted); font-weight: 600; display: block; margin-bottom: var(--sp-4); }
.cost-card__desc { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }

/* Proportional bars — visual, not color-only */
.cost-bar { height: 14px; border-radius: var(--radius-pill); background: #EDE7F9; overflow: hidden; margin-bottom: var(--sp-4); }
.cost-bar__fill { height: 100%; border-radius: var(--radius-pill); }
.cost-card--prison .cost-bar__fill { background: var(--hope-crimson); }
.cost-card--court  .cost-bar__fill { background: var(--hope-purple); }

.source-note {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  background: var(--color-bg-warm);
  border-left: 3px solid var(--color-border-strong);
  padding: var(--sp-4) var(--sp-5);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: var(--measure);
}
.source-note p { font-size: inherit; margin-bottom: var(--sp-2); }
.source-note p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: var(--sp-3); }
.card p { margin-bottom: var(--sp-4); }
.card > :last-child { margin-bottom: 0; margin-top: auto; }

.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--color-bg-tint);
  color: var(--hope-purple-700);
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 26px; height: 26px; }

/* Giving tiers */
.tier {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex; flex-direction: column;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tier:hover { border-color: var(--hope-purple); box-shadow: var(--shadow); }
.tier--featured { border-color: var(--hope-purple); box-shadow: var(--shadow); position: relative; }
.tier__flag {
  position: absolute; top: -13px; left: var(--sp-5);
  background: var(--hope-purple-800); color: #fff;
  font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
}
.tier__amount {
  font-family: var(--font-head);
  font-size: var(--fs-3xl); font-weight: 700;
  color: var(--hope-purple-800);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.tier__buys { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); color: var(--color-text); margin-bottom: var(--sp-3); }
.tier p { font-size: var(--fs-sm); color: var(--color-text-muted); }
.tier .btn { margin-top: var(--sp-5); }

/* Outcomes / stats */
.stats { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  text-align: center;
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
}
.stat__figure {
  font-family: var(--font-head);
  font-size: var(--fs-3xl); font-weight: 700; line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--sp-2);
}
.stat__label { font-size: var(--fs-sm); color: var(--color-text-invert-mut); margin: 0; }

/* Logo wall */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  align-items: center;
}
@media (min-width: 640px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
.logo-wall img {
  max-height: 68px; width: auto; margin-inline: auto;
  filter: grayscale(1); opacity: .78;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.logo-wall a:hover img, .logo-wall img:hover { filter: none; opacity: 1; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius);
}

/* ==========================================================================
   Callouts / notes
   ========================================================================== */
.callout {
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  background: var(--color-bg-tint);
  border: 1px solid var(--color-border-strong);
}
.callout--gold { background: var(--color-note-bg); border-color: var(--color-note-border); }
.callout > :last-child { margin-bottom: 0; }

/* Editorial placeholder — visible to the client, obvious in review */
.placeholder {
  background: repeating-linear-gradient(135deg, #FFF8E6, #FFF8E6 10px, #FFF3D6 10px, #FFF3D6 20px);
  border: 2px dashed var(--color-note-border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  color: #6B4A00;
  font-size: var(--fs-sm);
}
.placeholder > :last-child { margin-bottom: 0; }
.placeholder strong { font-family: var(--font-head); }
/* A placeholder keeps its own light card colours even inside a dark section —
   otherwise .section--dark's light text lands on the pale amber and vanishes. */
.section--dark .placeholder,
.section--dark .placeholder p,
.section--dark .placeholder li { color: #6B4A00; }
.section--dark .placeholder a { color: #7A3E00; }
.placeholder code {
  background: rgba(0,0,0,.06); padding: 2px 6px; border-radius: 4px;
  font-size: .95em;
}

/* Help-now strip */
.help-now {
  background: var(--hope-crimson);
  color: #fff;
}
.help-now a { color: #fff; font-weight: 600; }
.help-now__inner {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: center;
  padding-block: var(--sp-4);
  text-align: center;
  font-size: var(--fs-sm);
}
.help-now__label { font-family: var(--font-head); font-weight: 600; }

/* ==========================================================================
   Prose lists
   ========================================================================== */
.list-check { list-style: none; padding: 0; max-width: var(--measure); }
.list-check li {
  position: relative; padding-left: var(--sp-6); margin-bottom: var(--sp-3);
}
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 18px; height: 18px;
  background: var(--hope-purple);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.6 14.3 3.7 10.4l1.4-1.4 2.5 2.5 7.3-7.3 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.6 14.3 3.7 10.4l1.4-1.4 2.5 2.5 7.3-7.3 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.section--dark .list-check li::before { background: #C3B2FF; }

.steps { counter-reset: step; list-style: none; padding: 0; max-width: var(--measure); }
.steps li {
  counter-increment: step;
  position: relative; padding-left: var(--sp-7); margin-bottom: var(--sp-5);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--hope-purple-700); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm);
}
.steps h3 { margin-bottom: var(--sp-2); }

/* ==========================================================================
   Donation embed
   ========================================================================== */
.donate-embed {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 640px;
}
.donate-embed iframe { display: block; width: 100%; min-height: 640px; border: 0; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form { max-width: 34rem; }
.field { margin-bottom: var(--sp-5); }
.field label {
  display: block;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  margin-bottom: var(--sp-2);
}
.field .req { color: var(--color-danger); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: #fff;
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--hope-purple);
  outline: 3px solid rgba(115,89,222,.28);
  outline-offset: 0;
}
.field__help { font-size: var(--fs-sm); color: var(--color-text-muted); margin: var(--sp-2) 0 0; }
.field__error { font-size: var(--fs-sm); color: var(--color-danger); font-weight: 600; margin: var(--sp-2) 0 0; display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--color-danger); }
.field.has-error .field__error { display: block; }

.form__status { margin-top: var(--sp-4); font-weight: 600; }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Contact details
   ========================================================================== */
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-5); align-items: flex-start; }
.detail-list svg { width: 22px; height: 22px; color: var(--hope-purple-700); flex-shrink: 0; margin-top: 3px; }
.detail-list__label { font-family: var(--font-head); font-weight: 600; display: block; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: var(--measure); }
.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: var(--sp-3);
  background: #fff;
}
.faq summary {
  cursor: pointer;
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-head); font-weight: 600;
  min-height: 48px;
  display: flex; align-items: center;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; width: 12px; height: 12px;
  border-right: 2px solid var(--hope-purple-700);
  border-bottom: 2px solid var(--hope-purple-700);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq__body { padding: 0 var(--sp-5) var(--sp-5); }
.faq .faq__body > :last-child { margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--hope-purple-900);
  color: var(--color-text-invert-mut);
  padding-block: var(--sp-7) var(--sp-5);
  font-size: var(--fs-sm);
}
.site-footer h2, .site-footer h3 { color: #fff; font-size: var(--fs-base); margin-bottom: var(--sp-4); }
.site-footer a { color: #CDBEFF; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.site-footer p { max-width: none; }

.footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-6); } }

.footer__brand img { height: 56px; width: auto; margin-bottom: var(--sp-4); background: #fff; border-radius: var(--radius-sm); padding: var(--sp-2); }

.footer__legal {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.18);
}
.footer__disclosure {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: #B9AEDD;
  max-width: 92ch;
}
.footer__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  margin-bottom: var(--sp-4);
  font-family: var(--font-head); font-weight: 600; color: #fff;
}

.footer__help {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
}
.footer__help h3 { margin-bottom: var(--sp-2); }
.footer__help ul { margin: 0; }
.footer__help li { margin-bottom: var(--sp-1); }

/* ==========================================================================
   Utilities
   ========================================================================== */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.narrow { max-width: var(--measure); }

/* Reveal-on-scroll (progressive enhancement; no-JS shows everything) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-donate, .help-now, .btn { display: none !important; }
  body { font-size: 11pt; }
}
