/* NDASA Foundation brand fonts — self-hosted Latin subset, matches
   ndasafoundation.org. Single woff2 for Roboto Condensed is a variable
   font; the same file serves both 400 and 700 weights. */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-condensed.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-condensed.woff2') format('woff2');
}

:root {
  /* Parent brand (ndasafoundation.org) */
  --brand:         #623b99;  /* purple — primary brand anchor, links, accents */
  --brand-hover:   #4e2e7a;  /* deeper purple for link hover */
  --brand-soft:    #efe8f7;  /* light purple tint for accent surfaces */
  --brand-deep:    #9e1f1f;  /* deep red, hero gradient partner */
  --cta:           #fa5c1e;  /* orange — all primary CTAs */
  --cta-hover:     #e14a10;
  --cta-soft:      #fff0e8;
  --gold:          #c9a227;  /* warm gold — frequency accent, premium emphasis */
  --gold-soft:     #fbf4dc;  /* pale gold tint for accent surfaces */

  /* Neutrals — parent uses #202a30 ink, #9c9c9c body, #171717 header text */
  --ink:           #202a30;
  --ink-strong:    #171717;
  --body:          #4a4a4a;  /* slightly darker than parent's #9c9c9c for a11y */
  --muted:         #6b7280;
  --bg:            #f6f7fb;
  --card:          #ffffff;
  --surface-soft:  #eeeeee;  /* parent's light section bg */

  /* Status */
  --danger:        #b42318;
  --danger-bg:     #fef3f2;
  --warn-bg:       #fff7ed;
  --warn-border:   #fcd9b6;
  --warn-ink:      #7a4b08;
  --success:       #0a7d3b;
  --success-bg:    #ecfdf3;

  /* Chrome */
  --border:        #e5e7eb;
  --border-strong: #cbd2da;
  --radius:        10px;
  --radius-sm:     6px;
  --shadow:        0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip link (a11y) */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

/* Layout */
.container {
  width: 100%;
  max-width: 680px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.container--wide {
  max-width: 1080px;
  background: transparent;
  box-shadow: none;
  padding: 1rem 2rem;
  margin: 0 auto;
}

main { flex: 1; width: 100%; }

/* Site header — mirrors ndasafoundation.org's two-band layout.
   Top strip = purple→red→purple gradient with contact info and social.
   Main band = pale aqua with brand wordmark and page context.
   Orange bottom accent on the main band is the shared "you're in the
   donation flow" cue, distinct from the parent site. */
.site-header {
  box-shadow: 0 1px 0 rgba(98, 59, 153, 0.12);
}

/* ── Top contact strip ───────────────────────────────────────────────── */
.site-header__strip {
  background: linear-gradient(150deg, var(--brand) 23%, var(--brand-deep) 45%, var(--brand) 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
}
.site-header__strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.site-header__phone:hover { color: #fff; opacity: 0.85; }
.site-header__phone svg { flex: 0 0 auto; }
/* ── Main band ───────────────────────────────────────────────────────── */
.site-header__main {
  /* Matches ndasafoundation.org's rgba(200,249,253,0.82) over white. */
  background: rgba(200, 249, 253, 0.82);
  border-bottom: 3px solid var(--cta);
}
.site-header__main-inner {
  display: grid;
  /* 1fr side columns + centered auto track. Overrun protection: cap the
     center so it can't shoulder-check the right-side DONATE label. */
  grid-template-columns: 1fr minmax(0, auto) 1fr;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header__brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--brand);
  text-decoration: none;
}
.site-header__logo {
  display: block;
  width: auto;
  height: 72px;
  max-width: 100%;
}
.site-header__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-header__name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--brand);
  letter-spacing: 0.2px;
  text-transform: capitalize;
  transition: color 160ms;
}
.site-header__brand:hover .site-header__name { color: var(--brand-deep); }
.site-header__subtitle {
  font-family: 'Arial Black', 'Poppins', sans-serif;
  font-size: 0.72rem;
  color: #0c0d0d;
  margin-top: 2px;
}

/* Centered slogan — brand purple on the pale aqua band. */
.site-header .slogan {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  max-width: 30ch;
  color: var(--brand);
}
.site-header .slogan__lead {
  color: var(--cta);
}
.site-header .slogan__body {
  color: var(--brand);
}
.site-header .slogan__rule {
  /* Animated hairline, centered on the aqua band. */
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 0;
  background: linear-gradient(90deg,
    rgba(98, 59, 153, 0) 0%,
    rgba(250, 92, 30, 0.9) 50%,
    rgba(98, 59, 153, 0) 100%);
}
.site-header .slogan.is-reveal.is-in .slogan__rule { width: 100%; }

/* Right-column section label. Small 501(c)(3) over a bolder "DONATE"
   with an orange accent bar — echoes the orange bottom border on the
   main band so the CTA slot is visually anchored. */
.site-header__section {
  justify-self: end;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  line-height: 1;
}
.site-header__section-line {
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--brand-deep);
  opacity: 0.85;
}
.site-header__section-tag {
  position: relative;
  font-family: 'Roboto Condensed', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 4px;
  color: var(--brand);
  padding-bottom: 6px;
}
.site-header__section-tag::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cta);
}
/* Rotating donor slogan — sits where a nav would, anchors the donation page
   to the mission. Three animation modes cycle randomly per advance:
   fade (calm), drift (gentle rise), and reveal (underline wipe). All motion
   is suppressed under prefers-reduced-motion. */
.slogan {
  position: relative;
  text-align: right;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-style: italic;
  color: #fff;
  line-height: 1.4;
  max-width: 26ch;
  padding-bottom: 6px;
  min-height: 3.1em; /* reserve space so layout doesn't jitter between slogans */
}
.slogan__lead {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-family: 'Roboto Condensed', 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  /* Orange eyebrow on purple — high-contrast brand accent. */
  color: var(--cta);
  font-size: 0.78rem;
  margin-bottom: 2px;
}
.slogan__body {
  display: block;
  /* Slight softening so the italic body reads as secondary to the lead. */
  color: rgba(255, 255, 255, 0.92);
}
.slogan__rule {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  /* Rule fades from transparent through orange to white on the dark
     background, matching the accent hierarchy. */
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(250, 92, 30, 0.9) 40%,
    rgba(255, 255, 255, 0.9) 100%);
  pointer-events: none;
}

/* Shared transition scaffolding. Each mode toggles a specific exit/enter
   shape on top of the common timing. */
.slogan.is-fade   .slogan__lead,
.slogan.is-fade   .slogan__body,
.slogan.is-drift  .slogan__lead,
.slogan.is-drift  .slogan__body,
.slogan.is-reveal .slogan__lead,
.slogan.is-reveal .slogan__body {
  transition:
    opacity 500ms cubic-bezier(.2,.6,.2,1),
    transform 700ms cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}

/* FADE — opacity only, calm baseline. */
.slogan.is-fade.is-out .slogan__lead,
.slogan.is-fade.is-out .slogan__body { opacity: 0; }
.slogan.is-fade.is-in  .slogan__lead,
.slogan.is-fade.is-in  .slogan__body { opacity: 1; }

/* DRIFT — body rises 8px into place, lead follows with a 120ms delay. */
.slogan.is-drift.is-out .slogan__lead { opacity: 0; transform: translateY(-4px); }
.slogan.is-drift.is-out .slogan__body { opacity: 0; transform: translateY(4px); }
.slogan.is-drift.is-in  .slogan__lead { opacity: 1; transform: translateY(0); transition-delay: 120ms; }
.slogan.is-drift.is-in  .slogan__body { opacity: 1; transform: translateY(0); }

/* REVEAL — the hairline rule wipes right-to-left under the body, then the
   text crossfades in against the trailing purple gradient. Editorial feel. */
.slogan.is-reveal .slogan__rule {
  transition: width 700ms cubic-bezier(.2,.6,.2,1), opacity 500ms linear;
  opacity: 0;
  will-change: width, opacity;
}
.slogan.is-reveal.is-out .slogan__lead,
.slogan.is-reveal.is-out .slogan__body { opacity: 0; }
.slogan.is-reveal.is-out .slogan__rule { width: 0; opacity: 0; }
.slogan.is-reveal.is-in  .slogan__lead,
.slogan.is-reveal.is-in  .slogan__body { opacity: 1; transition-delay: 200ms; }
.slogan.is-reveal.is-in  .slogan__rule { width: 100%; opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  .slogan .slogan__lead,
  .slogan .slogan__body,
  .slogan .slogan__rule {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    width: 0 !important;
  }
}
@media (max-width: 720px) {
  /* Top strip stays side-by-side but tightens up. */
  .site-header__strip-inner {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .site-header__phone { font-size: 0.78rem; }

  /* Main band reflows: logo + section on top, slogan below, full width. */
  .site-header__main-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand   section"
      "slogan  slogan";
    row-gap: 10px;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .site-header__brand   { grid-area: brand; gap: 12px; }
  .site-header__section { grid-area: section; }
  .site-header .slogan  {
    grid-area: slogan;
    justify-self: stretch;
    text-align: center;
    font-size: 0.95rem;
    max-width: 100%;
    min-height: 2.8em;
  }
  .site-header__logo { height: 56px; }
  .site-header__name { font-size: 1.25rem; }
  .site-header__subtitle { font-size: 0.65rem; }
}
@media (max-width: 480px) {
  .site-header__section-tag { font-size: 1.05rem; letter-spacing: 3px; }
  .site-header__section-line { font-size: 0.6rem; letter-spacing: 2px; }
  .site-header__logo { height: 48px; }
  .site-header__name { font-size: 1.1rem; }
  .site-header__subtitle { display: none; }
  .site-header__section { font-size: 0.65rem; }
}

/* Site footer — mirrors the header's mint-and-orange palette so the page
   feels bookended. Darker mint at the bottom gives gravity; the orange rule
   at the top is the exact same 3px stroke that closes the header. */
/* Footer — bookends the header. Main aqua band mirrors the header's
   main band; purple strip at the very bottom mirrors the header's
   purple contact strip. Orange top border mirrors the header's orange
   bottom border. */
.site-footer { margin-top: 3rem; color: var(--ink); }

.site-footer__main {
  background: rgba(200, 249, 253, 0.82);
  border-top: 3px solid var(--cta);
  box-shadow: 0 -1px 0 rgba(98, 59, 153, 0.12);
}
.site-footer__inner {
  padding-top: 28px;
  padding-bottom: 28px;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}
.site-footer__tagline {
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
}
.site-footer__eyebrow {
  font-family: 'Roboto Condensed', 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cta);
  font-size: 0.78rem;
}
.site-footer__motto {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  color: var(--brand);
  font-size: 1.1rem;
  max-width: 42ch;
}
.site-footer__meta {
  margin: 0;
  font-size: 0.82rem;
  color: #3b4248;
  letter-spacing: 0.1px;
}
.site-footer__link {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
.site-footer__link:hover,
.site-footer__link:focus {
  color: var(--brand-hover);
  border-bottom-color: currentColor;
}

/* Bottom strip — purple band with security reassurance + quick links. */
.site-footer__strip {
  background: linear-gradient(150deg, var(--brand) 23%, var(--brand-deep) 45%, var(--brand) 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
}
.site-footer__strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-footer__strip-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.95;
}
.site-footer__strip-left svg { opacity: 0.9; }
.site-footer__strip-right {
  display: inline-flex;
  gap: 18px;
}
.site-footer__strip-right a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, opacity 120ms ease;
  opacity: 0.85;
}
.site-footer__strip-right a:hover,
.site-footer__strip-right a:focus {
  opacity: 1;
  border-bottom-color: var(--cta);
  color: #fff;
}

@media (max-width: 560px) {
  .site-footer__inner { padding-top: 22px; padding-bottom: 22px; }
  .site-footer__motto { font-size: 1rem; }
  .site-footer__meta  { font-size: 0.78rem; }
  .site-footer__strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .site-footer__strip-right { flex-wrap: wrap; gap: 14px; }
}

/* Typography — Roboto Condensed uppercase headings match parent site */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Condensed', 'Poppins', sans-serif;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
  font-weight: 700;
}
h1 { margin: 0 0 0.5rem; font-size: 1.75rem; }
h2 { margin: 1.25rem 0 0.5rem; font-size: 1.2rem; }

.hero h1 {
  margin-bottom: 0.75rem;
  /* Sentence case on the hero — this is the warm, human line that
     donors read first. Uppercase is reserved for eyebrows and section
     headings below. Slightly larger and tighter than the h1 default. */
  text-transform: none;
  letter-spacing: -0.3px;
  font-size: 2rem;
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
}
@media (max-width: 560px) {
  .hero h1 { font-size: 1.55rem; }
}
.lede {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  font-weight: 400;
}
.muted { color: var(--muted); }

/* Form */
.donation-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 1.25rem;
  margin: 0 0 1.25rem;
}

.donation-form legend {
  font-weight: 700;
  padding: 0 0.35rem;
  color: var(--ink);
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.donation-form label {
  display: block;
  margin-top: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.donation-form label.inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 1.25rem;
  margin-top: 0;
  font-weight: 400;
  cursor: pointer;
}

.req {
  color: var(--danger);
  margin-left: 0.15rem;
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 120ms, box-shadow 120ms;
}
textarea { resize: vertical; min-height: 4rem; }
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(250, 92, 30, 0.25);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

small, .fineprint {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Frequency radios — three equal-width tile buttons (One-time / Monthly /
   Yearly) that mirror the preset pattern. The whole fieldset wears a gold
   accent border + legend so it stands out as the primary decision above
   the amount picker: donors should notice "wait, I can give monthly" on
   first glance, not discover it after scrolling. */
/* Gold border has to beat `.donation-form fieldset` specificity (0,1,1),
   so we scope with .donation-form.  */
.donation-form .frequency-group {
  border: 2px solid var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 1px 0 rgba(201, 162, 39, 0.18);
}
.donation-form .frequency-group legend {
  background: var(--gold);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: 'Roboto Condensed', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.frequency {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.5rem 0 0.35rem;
}
.frequency__opt { position: relative; margin: 0; }
.frequency__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.frequency__opt span {
  display: block;
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 120ms, background 120ms, color 120ms, box-shadow 120ms;
}
.frequency__opt:hover span {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.18);
}
.frequency__opt input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.frequency__opt input:focus-visible + span {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}
/* Small descriptive caption below the tiles keeps the ink-strong color so
   it doesn't wash out against the gold tint. */
.frequency-group small { color: var(--body); }

/* Success-page "you started a recurring donation" block */
.recurring-note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--brand-soft);
  border: 1px solid #d7c5ea;
  border-radius: var(--radius-sm);
}
.recurring-note p { margin: 0 0 0.6rem; }
.recurring-note p:last-child { margin-bottom: 0; }

/* Amount presets */
.amount-group { background: var(--brand-soft); border-color: #d7c5ea; }

.presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.preset {
  position: relative;
  margin: 0;
}
.preset input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.preset span {
  display: block;
  text-align: center;
  padding: 0.9rem 0.5rem;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(32, 42, 48, 0.04);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease,
    box-shadow 160ms ease,
    transform 120ms cubic-bezier(.2,.7,.2,1);
}
.preset:hover span {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(98, 59, 153, 0.15);
}
.preset:active span {
  transform: translateY(0);
  transition-duration: 60ms;
}
.preset input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 10px rgba(98, 59, 153, 0.25);
}
.preset input:focus-visible + span {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(250, 92, 30, 0.25);
}

.amount-label { margin-top: 0.25rem; }

.amount-input {
  position: relative;
  margin-top: 0.3rem;
}
.amount-input__prefix {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 600;
  pointer-events: none;
}
.amount-input input {
  padding-left: 1.6rem;
  margin-top: 0;
}

/* Fees note */
.fees__note {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.fees__options { margin-top: 0.25rem; }

/* Total preview */
.total-preview {
  margin: 0.25rem 0 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--brand-soft);
  border: 1px solid #d7c5ea;
  border-radius: var(--radius-sm);
  color: var(--brand-hover);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Buttons — primary is orange CTA (parent site convention), secondary is purple outline.
   Primary adds a real shadow + slight lift on hover so the CTA reads as
   the clear action, not just a colored rectangle. */
.btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-weight: 700;
  font-family: 'Roboto Condensed', 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease,
    transform 140ms cubic-bezier(.2,.7,.2,1);
}
.btn:active { transform: translateY(1px); transition-duration: 60ms; }

.btn--primary {
  background: var(--cta);
  color: #fff;
  border: 1px solid var(--cta);
  box-shadow: 0 2px 6px rgba(250, 92, 30, 0.25);
}
.btn--primary:hover {
  background: var(--cta-hover);
  color: #fff;
  border-color: var(--cta-hover);
  box-shadow: 0 6px 16px rgba(250, 92, 30, 0.35);
  transform: translateY(-2px);
}
.btn--primary:active {
  background: var(--cta-hover);
  color: #fff;
  box-shadow: 0 1px 3px rgba(250, 92, 30, 0.25);
  transform: translateY(0);
}
.btn--primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(250, 92, 30, 0.35), 0 6px 16px rgba(250, 92, 30, 0.30);
}

.btn--secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn--secondary:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(98, 59, 153, 0.22);
  transform: translateY(-1px);
}
.btn--secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(98, 59, 153, 0.25);
}

button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
}

.actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Notices */
.notice {
  padding: 0.85rem 1rem;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-sm);
  margin: 0 0 1.25rem;
  color: var(--warn-ink);
}

/* Status blocks (success / pending / error) */
.status {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.status__icon { flex: 0 0 auto; margin-top: 0.15rem; }
.status h1 { margin-top: 0; }

.status--ok      { background: var(--success-bg); border-color: #b3ecc6; color: var(--success); }
.status--ok h1   { color: var(--success); }
.status--ok .lede{ color: var(--ink); }

.status--pending { background: #fff7ed; border-color: var(--warn-border); color: var(--warn-ink); }
.status--pending h1   { color: var(--warn-ink); }
.status--pending .lede{ color: var(--ink); }

.status--error   { background: var(--danger-bg); border-color: #fbc9c0; color: var(--danger); }
.status--error h1   { color: var(--danger); }
.status--error .lede{ color: var(--ink); }

/* Pull quote */
.pullquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pullquote p { margin: 0 0 0.5rem; }
.pullquote footer { font-size: 0.9rem; }

/* Lock icon next to fineprint */
.lock {
  vertical-align: -2px;
  margin-right: 0.25rem;
  color: var(--success);
}

/* Links — purple to match parent heading accents, no underline by default */
a { color: var(--brand); transition: color 160ms; }
a:hover { color: var(--cta); }

/* Badges / eyebrow */
.hero__eyebrow {
  margin: 0.25rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: var(--brand-soft);
  border: 1px solid #d7c5ea;
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.badge--muted {
  background: #f3f4f6;
  border-color: var(--border);
  color: var(--muted);
}

/* Impact grid */
.impact { margin: 1.5rem 0; }
.impact h2 { margin-bottom: 0.5rem; }
.impact-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.impact__hint {
  font-size: 0.88rem;
  margin: 0 0 0.85rem;
}

/* Impact cards — clickable <button> with real affordance.
   - Centered layout so the dollar tier reads as a clear "tap me" button,
     not a paragraph heading.
   - Always-on lift off the page surface (subtle shadow) so donors see
     them as cards, not text blocks.
   - Hover raises the card 3px and pops the shadow + purple border.
   - Active pushes it back down so a click physically registers.
   - Default ($100) tier wears a permanent purple halo + a small "most
     donors" ribbon, anchoring the anchor.
   - On touch devices (no :hover), the always-on shadow + shrink on
     :active is the entire feedback loop. */
.impact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 0.9rem 1rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(32, 42, 48, 0.06);
  transition:
    transform 180ms cubic-bezier(.2,.7,.2,1),
    box-shadow 180ms ease,
    border-color 180ms ease;
}
.impact-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(98, 59, 153, 0.16);
}
.impact-card:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(98, 59, 153, 0.10);
  transition-duration: 60ms;
}
.impact-card:focus-visible {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(250, 92, 30, 0.25), 0 8px 18px rgba(250, 92, 30, 0.18);
}
.impact-card--default {
  /* Extra top padding so the "Most donors" ribbon floating above the
     card has breathing room and doesn't overlap the $100 amount below. */
  padding-top: 1.6rem;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(98, 59, 153, 0.14), 0 4px 12px rgba(98, 59, 153, 0.10);
}
/* "Most donors" ribbon on the default tier — gives the anchor a reason
   to be the anchor. Sits above the card's top edge, centered. */
.impact-card--default::before {
  content: "Most donors";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-family: 'Roboto Condensed', 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(98, 59, 153, 0.25);
  white-space: nowrap;
}
.impact-card__amount {
  color: var(--brand);
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.impact-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--body);
  line-height: 1.45;
}
.impact-card__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--heading, var(--body));
  margin-bottom: 0.4rem !important;
  line-height: 1.25;
}
/* Selected state — when the donor clicks a card the matching preset
   radio gets :checked; we mirror that here via a sibling lookup so the
   card itself shows "this is your current pick". Implemented via a
   JS-set data attribute so we don't need cross-DOM CSS plumbing. */
.impact-card[data-selected="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px var(--brand), 0 4px 12px rgba(98, 59, 153, 0.20);
}
.impact-card[data-selected="true"] .impact-card__amount { color: var(--brand-hover); }

/* Newsletter opt-in — sits below the email field, same fieldset */
.email-optin {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--body);
}

/* Tax note, other-ways, stay-connected, amplify, contact-help */
.tax-note,
.other-ways,
.stay-connected,
.amplify,
.contact-help {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.tax-note h2,
.other-ways h2,
.stay-connected h2,
.amplify h2,
.contact-help h2 {
  margin-top: 0;
}

/* Success-page amplification block — share buttons and employer-match CTA */
.amplify__block { margin: 1.25rem 0 0; }
.amplify__block h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.amplify__block p { margin: 0 0 0.6rem; }

.share-buttons {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.share {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  transition: background 160ms, transform 120ms;
}
.share:hover { background: var(--brand-hover); color: #fff; }
.share:active { transform: translateY(1px); }
.share--twitter   { background: #111; }
.share--facebook  { background: #1877f2; }
.share--linkedin  { background: #0a66c2; }
.share--email     { background: var(--cta); }
.share--twitter:hover   { background: #000; color: #fff; }
.share--facebook:hover  { background: #145ec2; color: #fff; }
.share--linkedin:hover  { background: #084b8f; color: #fff; }
.share--email:hover     { background: var(--cta-hover); color: #fff; }

.other-ways__list,
.stay-connected__list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.other-ways__list li {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fcfcfd;
}
.other-ways__list strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink);
}
.stay-connected__list li { padding-left: 0.25rem; }

/* Next steps (success page) */
.next-steps { margin-top: 1.5rem; }
.next-steps__list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.next-steps__list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3rem;
  background: #fcfcfd;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  counter-increment: step;
}
.next-steps__list li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.next-steps__list strong { display: block; margin-bottom: 0.15rem; }

/* Recovery list (error page) */
.recovery { margin-top: 1rem; }
.recovery__list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.recovery__list li { margin: 0.35rem 0; }

/* Reassurance callout (error page) */
.reassure {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  background: var(--success-bg);
  border: 1px solid #b3ecc6;
  border-radius: var(--radius-sm);
  color: #0b3b22;
}
.reassure__icon { flex: 0 0 auto; color: var(--success); margin-top: 0.1rem; }
.reassure p { margin: 0; }

/* ────────────────────────────────────────────────────────────────────────
   Mobile — phone-first optimization pass.
   ≤560px: primary phone breakpoint. Form reflows above decorative blocks,
           tap targets bump to 48px min, fieldset padding tightens.
   ≤480px: narrow phones. Header contact strip drops; slogan hides; CTA
           goes sticky at the bottom of the viewport while the form is
           scrolled through.
   ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .container { margin: 0.75rem; padding: 1rem; }
  .container--wide { padding: 0.75rem 1rem; }
  .row { grid-template-columns: 1fr; }
  .presets { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  h1 { font-size: 1.5rem; }
  .status { flex-direction: column; gap: 0.5rem; }

  /* Impact cards sit right under the hero pills on mobile so the donor
     sees concrete gift-impact examples before the amount picker. DOM
     order is preserved for screen readers; only the visual flow reorders. */
  main.container { display: flex; flex-direction: column; }
  main.container > .hero         { order: 1; }
  main.container > .notice       { order: 2; }
  main.container > .impact       { order: 3; }
  main.container > .donation-form{ order: 4; }
  main.container > .tax-note     { order: 5; }
  main.container > .other-ways   { order: 6; }

  /* Tighter vertical rhythm — every fieldset costs a scroll on mobile. */
  .donation-form fieldset { padding: 0.85rem 1rem 1rem; margin-bottom: 1rem; }
  .hero { margin-bottom: 1rem; }

  /* Tap-target minimums (WCAG 2.5.5 → 44px; bumping to 48 for comfort).
     Preset + frequency tiles stretch vertically on touch without changing
     desktop sizing. */
  .preset span,
  .frequency__opt span {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.5rem;
  }
  .amount-input input { min-height: 48px; font-size: 1rem; }
  .donation-form input[type="text"],
  .donation-form input[type="email"],
  .donation-form input[type="tel"],
  .donation-form input[type="number"],
  .donation-form textarea {
    min-height: 44px;
    font-size: 1rem; /* 16px prevents iOS Safari zoom-on-focus */
  }

  /* Impact cards stack to a single column; the "Most donors" ribbon
     floats above the default card and needs extra top gap so it doesn't
     clip into the card above it. */
  .impact-card--default { margin-top: 0.5rem; }

  /* Footer strip reflow already in place elsewhere — this is a tighter
     rhythm for the main band so the page doesn't end with oversized
     whitespace. */
  .site-footer__inner { padding-top: 20px; padding-bottom: 20px; }
}

@media (max-width: 480px) {
  /* Drop the contact strip entirely on narrow phones — the phone
     number isn't worth the vertical real estate when it pushes the
     hero below the fold. */
  .site-header__strip { display: none; }

  /* Hide the rotating slogan too — on a 360px viewport it crammed the
     header. Donors get the logo + DONATE label only. Desktop users
     still get the full slogan animation. */
  .site-header .slogan { display: none; }

  /* Header main band: one row, logo + DONATE, tight. */
  .site-header__main-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas: "brand section";
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .container { margin: 0.5rem; padding: 0.85rem; }

  /* Hero tier tighter on smallest screens. */
  .hero h1 { font-size: 1.35rem; }
  .hero .lede { font-size: 0.95rem; }
  .hero__eyebrow .badge { font-size: 0.7rem; padding: 0.15rem 0.45rem; }

  /* Preset row becomes a single tighter column so each amount is
     thumb-reach from either hand. Three columns at this width was
     making the $ amounts wrap. */
  .presets { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }

  /* Frequency tiles stack vertically so each interval reads clearly. */
  .frequency { grid-template-columns: 1fr; gap: 0.5rem; }

  /* Sticky submit CTA — anchors the donate button to the bottom of the
     viewport once the form is scrolled past. Standard donation-page
     pattern; donor never has to scroll back to find the action. Use a
     separate class so the button can opt-in via the template. */
  .donation-form .btn--primary.btn--sticky-mobile,
  .donation-form button[type="submit"] {
    /* position:sticky keeps natural document flow but pins the element
       to the bottom once it would have scrolled off. Works on iOS 14+
       and all modern Chrome/Firefox. Falls back gracefully on older
       browsers — just stays inline. */
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-inline: calc(-1 * 0.85rem);  /* bleed to container edges */
    width: calc(100% + 1.7rem);
    border-radius: 0;
    box-shadow: 0 -4px 16px rgba(98, 59, 153, 0.22);
  }

  /* Re-anchor the give-monthly link under the sticky CTA so it still
     reads in the flow. */
  .give-monthly { margin-top: 0.5rem; }

  /* Give the form bottom breathing room so the sticky CTA doesn't hide
     the final fineprint / lock message when the donor scrolls to the
     very end. */
  .donation-form .fineprint { padding-bottom: 0.5rem; }
}

/* ——— Conversion patch 2: error notice, fee deltas, submit feedback ——— */

.notice--error {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

.fees__delta,
.fees__delta-amount {
  font-weight: 600;
  color: var(--brand);
}

.spinner {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.35em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: ndasa-spin 0.7s linear infinite;
}
@keyframes ndasa-spin { to { transform: rotate(360deg); } }

button[type="submit"][disabled] {
  opacity: 0.75;
  cursor: progress;
}

/* ————————————————————————————————————————————————————————
   Test-mode banner
   Only rendered when the Stripe mode flag is "test". Designed to be
   unmistakable without being annoying: diagonal amber/black caution-tape
   background that slowly drifts, a pulsing "TEST" chip for motion
   affordance, and a subtle shimmer sweep every 8s so the eye re-catches
   it during a long form fill. All animations disabled under
   prefers-reduced-motion; full text remains visible.
   ———————————————————————————————————————————————————————— */
.test-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #1a1a1a;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.35) 50%,
      rgba(255,255,255,0) 100%) 0 0 / 220px 100% no-repeat,
    repeating-linear-gradient(-45deg,
      #f5b942 0 28px,
      #1a1a1a 28px 56px);
  background-position: -220px 0, 0 0;
  animation: ndasa-test-tape 60s linear infinite,
             ndasa-test-shimmer 8s ease-in-out infinite;
  box-shadow: 0 2px 0 #b8860b, 0 6px 12px rgba(0,0,0,.15);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.test-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 238, 180, 0.92);
  /* Inner cream band keeps the text legible over the stripes */
}
.test-banner__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #ffd37a;
  font-family: 'Roboto Condensed', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  flex-shrink: 0;
}
.test-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5c5c;
  box-shadow: 0 0 0 0 rgba(255,92,92,.7);
  animation: ndasa-test-dot 1.4s ease-out infinite;
}
.test-banner__msg { font-size: 14px; line-height: 1.35; }
.test-banner__msg strong { font-weight: 700; }

@keyframes ndasa-test-tape {
  /* Drift the caution stripes one full tile diagonally to the right.
     Two backgrounds: first is the shimmer (handled separately below),
     second is the stripes — we only animate position of the second. */
  from { background-position: -220px 0, 0 0; }
  to   { background-position: -220px 0, 560px 0; }
}
@keyframes ndasa-test-shimmer {
  0%, 70% { background-position: -220px 0, 0 0; }
  100%    { background-position: 100vw 0, 0 0; }
}
@keyframes ndasa-test-dot {
  0%   { box-shadow: 0 0 0 0 rgba(255,92,92,.7); }
  70%  { box-shadow: 0 0 0 8px rgba(255,92,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,92,92,0); }
}
@media (prefers-reduced-motion: reduce) {
  .test-banner { animation: none; background-position: 0 0; }
  .test-banner__dot { animation: none; }
}
@media (max-width: 540px) {
  .test-banner__inner { padding: 8px 14px; gap: 10px; }
  .test-banner__msg { font-size: 13px; }
  .test-banner__chip { font-size: 11px; padding: 3px 9px; letter-spacing: 1.5px; }
}

/* When test mode is active, nudge the site-header down so the banner
   sits cleanly above it. */
body.is-test-mode .site-header { border-top: none; }

/* ————————————————————————————————————————————————————————
   Gratitude moment — donation success page only
   A one-time intro (outline draw → fill reveal → radiance) that plays on
   page load, followed by a gentle 6-second breathing loop. Quiet warmth,
   not confetti — appropriate for a charitable-gift confirmation.
   ———————————————————————————————————————————————————————— */
.gratitude {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 1.75rem auto 1rem;
  display: grid;
  place-items: center;
}
.gratitude__heart {
  position: relative;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(98, 59, 153, 0.28));
  transform-origin: center 58%;
  /* Intro: fill scales up from nothing (550ms), then breathing loop. */
  animation:
    gratitude-fill-in 550ms cubic-bezier(.2,.8,.2,1) 900ms both,
    gratitude-breath 6s ease-in-out 2800ms infinite;
}
.gratitude__heart-path {
  /* Path length is ~320 units; dasharray + dashoffset equal to that length
     hides the stroke, then animates it back to 0 to "draw" the outline. */
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: gratitude-draw 900ms cubic-bezier(.6,.1,.2,1) 150ms forwards;
}
.gratitude__radiance {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(250, 92, 30, 0.28) 0%,
    rgba(98, 59, 153, 0.18) 45%,
    rgba(98, 59, 153, 0) 72%);
  opacity: 0;
  transform: scale(0.6);
  /* Intro radiance (one-shot) and the pulse loop piggybacked on the same
     element for fewer layout objects. Different delays keep them clean. */
  animation:
    gratitude-radiance-in 1400ms ease-out 1200ms forwards,
    gratitude-pulse 6s ease-in-out 2800ms infinite;
}

@keyframes gratitude-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes gratitude-fill-in {
  from { transform: scale(0.2); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes gratitude-radiance-in {
  0%   { opacity: 0; transform: scale(0.6); }
  55%  { opacity: 1; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(2.1); }
}
@keyframes gratitude-breath {
  /* Subtle — 1.5% scale bump, slow in-and-out. Only plays on the heart. */
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}
@keyframes gratitude-pulse {
  /* Quieter reprise of the intro radiance every 6s. */
  0%, 100% { opacity: 0; transform: scale(0.8); }
  40%      { opacity: 0.55; transform: scale(1.35); }
  80%      { opacity: 0; transform: scale(1.7); }
}

@media (prefers-reduced-motion: reduce) {
  .gratitude__heart        { animation: none; }
  .gratitude__heart-path   { stroke-dashoffset: 0; animation: none; }
  .gratitude__radiance     { animation: none; opacity: 0; }
}

/* Hide the old inline status icon on the paid path — the heart stands in
   for it. Pending/unpaid states still show the clock icon because it would
   be inappropriate to celebrate before payment clears. */
.status--ok .status__icon { display: none; }
