:root {
  --brand-indigo: #2a2463;
  --brand-violet: #5d46c2;
  --accent-mint: #20b7a2;
  --accent-coral: #ff8b7b;
  --surface-lilac: #ece9ff;
  --surface-card: #ffffff;
  --surface-muted: #f6f5ff;
  --line-soft: #d8d5ef;
  --text-ink: #1f1b38;
  --text-light: #ffffff;
  --text-muted: #64608a;
  --header-bg: rgba(31, 27, 56, 0.95);
  --focus-ring: #20b7a2;
  --page-bg: #fafaff;
  --radius: 14px;
  --shadow: 0 14px 30px rgba(33, 28, 75, 0.12);
}

* { box-sizing: border-box; }
html {
  scroll-padding-top: 6.5rem;
}
body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text-ink);
  background: radial-gradient(circle at 20% 8%, #eef0ff 0%, var(--page-bg) 46%, #ffffff 100%);
  line-height: 1.6;
}

img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: var(--brand-violet); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.wrap {
  width: min(1280px, 94%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  color: var(--text-light);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1rem;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
}
.brand small { display: block; font-size: 0.76rem; font-weight: 500; opacity: 0.9; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}
.nav-list a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.38rem 0.55rem;
  border-radius: 7px;
}
.nav-list a:hover { background: rgba(255,255,255,0.14); }

.hero { padding: 3rem 0 2rem; }
.hero-grid {
  display: grid;
  gap: 1rem;
}
.hero-card, .panel, .card {
  background: var(--surface-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.kicker {
  display: inline-block;
  background: var(--surface-lilac);
  color: var(--brand-indigo);
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

h1, h2, h3 { color: var(--brand-indigo); line-height: 1.2; }
h1 { margin: 0.5rem 0 0.8rem; font-size: clamp(1.8rem, 5vw, 2.7rem); }
h2 { margin: 0 0 0.75rem; font-size: clamp(1.3rem, 4vw, 2rem); }

section { padding: 1.2rem 0; }
section[id] {
  scroll-margin-top: 6.5rem;
}
.grid-2, .grid-3 {
  display: grid;
  gap: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
}
.btn-primary { background: var(--accent-mint); color: #0c2b27; }
.btn-secondary { background: var(--brand-violet); color: var(--text-light); }
.btn-tertiary { background: #f0eeff; color: var(--brand-violet); border-color: var(--line-soft); }
.btn-primary:hover { background: #2ccbb5; }
.btn-secondary:hover { background: #6b54d3; }
.btn-tertiary:hover { border-color: var(--accent-coral); color: var(--accent-coral); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}
.price-card {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.9rem;
  background: var(--surface-muted);
}
.price {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand-indigo);
  margin: 0.3rem 0 0.2rem;
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.list-clean li {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.testimonial,
.case {
  border-left: 4px solid var(--accent-mint);
}

.carousel {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
}

.carousel .card {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.carousel-btn {
  border: 1px solid var(--line-soft);
  background: #f0eeff;
  color: var(--brand-indigo);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.carousel-btn:hover {
  border-color: var(--accent-coral);
  color: var(--accent-coral);
}

.form-row { margin-bottom: 0.72rem; }
label { font-weight: 700; font-size: 0.9rem; }
input, textarea, select {
  width: 100%;
  margin-top: 0.28rem;
  padding: 0.58rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font: inherit;
}

.placeholder { color: var(--text-muted); font-style: italic; font-size: 0.9rem; }

.footer {
  background: var(--text-ink);
  color: #e8e5ff;
  padding: 1.2rem 0 2.2rem;
  margin-top: 1rem;
}
.footer a { color: #b8f1e9; }

.footer-preview {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(32, 183, 162, 0.16), transparent 38%),
    linear-gradient(180deg, #17152a 0%, #11101f 100%);
  color: #ece9ff;
  padding: 0 0 2.4rem;
  margin-top: 1.5rem;
}

.footer-preview-top {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-mint), transparent);
  opacity: 0.75;
}

.footer-preview-grid {
  display: grid;
  gap: 1.4rem;
  padding-top: 2.4rem;
}

.footer-preview h2 {
  color: var(--accent-mint);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.footer-brand-block {
  max-width: 24rem;
}

.footer-brand-link {
  display: inline-block;
  color: var(--accent-mint);
  text-decoration: none;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.footer-preview p,
.footer-preview li,
.footer-preview a {
  color: #ece9ff;
}

.footer-preview a {
  text-decoration: none;
}

.footer-preview a:hover {
  color: var(--accent-coral);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.footer-contact p {
  margin: 0 0 0.8rem;
}

.footer-contact-cta {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--accent-mint);
  border-radius: 10px;
  color: var(--accent-mint);
  font-weight: 700;
}

.footer-contact-cta:hover {
  background: var(--accent-mint);
  color: #0c2b27;
}

.footer-preview-bottom {
  padding-top: 1.5rem;
  text-align: center;
}

.sticky-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 110;
  background: var(--accent-coral);
  color: #381e1a;
  text-decoration: none;
  font-weight: 800;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}
.sticky-cta:hover { background: #ffa294; }

.logo-panel {
  display: grid;
  place-items: center;
  min-height: 320px;
  background:
    radial-gradient(circle at 30% 20%, rgba(32, 183, 162, 0.16) 0%, rgba(32, 183, 162, 0) 45%),
    radial-gradient(circle at 80% 70%, rgba(93, 70, 194, 0.22) 0%, rgba(93, 70, 194, 0) 52%),
    #ffffff;
}

.logo-panel img {
  width: min(420px, 88%);
  object-fit: contain;
}

.donation-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.donation-card h3 {
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
}

.donation-card .btn {
  margin-top: 0.35rem;
}

.compliance-note {
  border-left: 4px solid var(--accent-mint);
}

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .carousel .card { flex-basis: calc((100% - 1.8rem) / 3); }
  .footer-preview-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (max-width: 759px) {
  .brand-logo { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Modern homepage refresh */
.home-page {
  --brand-indigo: #14143d;
  --brand-violet: #6357ff;
  --accent-mint: #29e6c4;
  --accent-coral: #ff8f62;
  --accent-gold: #ffd166;
  --surface-card: rgba(255, 255, 255, 0.88);
  --surface-muted: rgba(244, 247, 255, 0.9);
  --line-soft: rgba(20, 20, 61, 0.12);
  --text-ink: #17172f;
  --text-muted: #5d607c;
  --header-bg: rgba(10, 11, 34, 0.82);
  --page-bg: #f8fbff;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(21, 22, 62, 0.16);
  background:
    radial-gradient(circle at 12% 6%, rgba(41, 230, 196, 0.26), transparent 28rem),
    radial-gradient(circle at 86% 0%, rgba(255, 143, 98, 0.24), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, #eff6ff 46%, #fff9f1 100%);
}

.donate-page,
.legal-page {
  --brand-indigo: #14143d;
  --brand-violet: #6357ff;
  --accent-mint: #29e6c4;
  --accent-coral: #ff8f62;
  --accent-gold: #ffd166;
  --surface-card: rgba(255, 255, 255, 0.88);
  --surface-muted: rgba(244, 247, 255, 0.9);
  --line-soft: rgba(20, 20, 61, 0.12);
  --text-ink: #17172f;
  --text-muted: #5d607c;
  --header-bg: rgba(10, 11, 34, 0.88);
  --page-bg: #f8fbff;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(21, 22, 62, 0.16);
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 209, 102, 0.24), transparent 28rem),
    radial-gradient(circle at 86% 0%, rgba(41, 230, 196, 0.24), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, #f0f7ff 48%, #fff9f1 100%);
}

.home-page .wrap {
  width: min(1440px, 94%);
}

.donate-page .wrap,
.legal-page .wrap {
  width: min(1320px, 94%);
}

.home-page .site-header,
.donate-page .site-header,
.legal-page .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.home-page .brand {
  color: var(--text-light);
  text-decoration: none;
}

.home-page .brand-logo {
  background: transparent;
  box-shadow: none;
}

.home-page .nav-list a,
.donate-page .nav-list a,
.legal-page .nav-list a {
  opacity: 0.9;
}

.home-page .nav-list a:hover,
.donate-page .nav-list a:hover,
.legal-page .nav-list a:hover {
  background: rgba(41, 230, 196, 0.14);
  color: #ffffff;
}

.home-page .hero,
.donate-page .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 4.8rem) 0 3rem;
}

.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 1.4rem;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 20, 61, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 61, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 34%, black, transparent 72%);
}

.home-page .hero-grid {
  position: relative;
  align-items: center;
  gap: 0;
}

.home-page .hero-card,
.home-page .panel,
.home-page .card,
.donate-page .hero-card,
.donate-page .panel,
.donate-page .card,
.legal-page .panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.home-page .hero-copy,
.donate-page .hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(1.4rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,255,255,0.72)),
    radial-gradient(circle at 12% 12%, rgba(41, 230, 196, 0.16), transparent 18rem);
}

.home-page .kicker,
.home-page .eyebrow,
.donate-page .kicker,
.donate-page .eyebrow,
.legal-page .kicker,
.legal-page .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: rgba(41, 230, 196, 0.14);
  border: 1px solid rgba(41, 230, 196, 0.38);
  color: #087464;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
}

.home-page .eyebrow,
.donate-page .eyebrow,
.legal-page .eyebrow {
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.home-page h1,
.donate-page h1,
.legal-page h1 {
  max-width: 15.8ch;
  font-size: clamp(3rem, 8vw, 6.7rem);
  letter-spacing: -0.08em;
  line-height: 0.9;
  color: #101035;
}

.home-page h2,
.donate-page h2,
.legal-page h2 {
  letter-spacing: -0.045em;
}

.home-page .lede,
.donate-page .lede,
.legal-page .lede {
  max-width: 62rem;
  color: #25264a;
  font-size: clamp(1.1rem, 2.1vw, 1.36rem);
  line-height: 1.45;
}

.home-page .btn,
.donate-page .btn {
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.home-page .btn:hover,
.donate-page .btn:hover {
  transform: translateY(-2px);
}

.home-page .btn-primary,
.donate-page .btn-primary {
  background: #111235;
  color: #ffffff;
  box-shadow: 0 15px 30px rgba(17, 18, 53, 0.22);
}

.home-page .btn-secondary,
.donate-page .btn-secondary {
  background: var(--accent-mint);
  color: #062c26;
}

.home-page .btn-tertiary,
.donate-page .btn-tertiary {
  background: rgba(255, 255, 255, 0.8);
  color: #111235;
}

.home-page .hero-showcase {
  position: relative;
  min-height: clamp(460px, 55vw, 760px);
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 209, 102, 0.34), transparent 14rem),
    linear-gradient(145deg, #111235, #5138c7 58%, #29e6c4);
}

.home-page .hero-photo {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  opacity: 0.92;
  filter: saturate(1.14) contrast(1.04);
}

.floating-hero-card {
  position: absolute;
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(7, 10, 38, 0.22);
}

.floating-hero-card {
  right: clamp(1rem, 2.4vw, 1.8rem);
  bottom: clamp(1rem, 2.4vw, 1.8rem);
  grid-template-columns: 64px 1fr;
  align-items: center;
  max-width: 390px;
  padding: 0.95rem 1.05rem;
}

.floating-hero-card img {
  grid-row: span 2;
  width: 64px;
  border-radius: 16px;
  background: #ffffff;
}

.floating-hero-card strong {
  color: #111235;
  font-size: 1.15rem;
  line-height: 1.1;
}

.floating-hero-card span {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.impact-strip {
  padding: 0 0 1.4rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.stat-grid article {
  min-height: 132px;
  padding: 1.1rem;
  border: 1px solid rgba(20, 20, 61, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 34px rgba(21, 22, 62, 0.09);
}

.stat-grid strong {
  display: block;
  color: #111235;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.stat-grid span {
  display: block;
  color: var(--text-muted);
  margin-top: 0.55rem;
  font-weight: 800;
}

.section-deck {
  position: relative;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 1.25rem;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.row-heading {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.home-page #programs > .wrap.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,255,255,0.68)),
    radial-gradient(circle at top right, rgba(255, 143, 98, 0.16), transparent 22rem);
}

.program-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.program-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  color: #101035;
  background: #ffffff;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -34% -20%;
  height: 120px;
  border-radius: 50%;
  opacity: 0.28;
}

.program-card h3,
.program-card p,
.program-card strong {
  position: relative;
}

.accent-a::before { background: var(--accent-mint); }
.accent-b::before { background: var(--accent-coral); }
.accent-c::before { background: var(--brand-violet); }
.accent-d::before { background: var(--accent-gold); }

.feature-image {
  padding: 0;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.process-panel {
  padding: clamp(1.25rem, 3vw, 2.2rem);
}

.timeline-list {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  counter-reset: steps;
}

.timeline-list li {
  position: relative;
  padding: 0.95rem 0.95rem 0.95rem 3.7rem;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  counter-increment: steps;
}

.timeline-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #111235;
  color: #ffffff;
  font-weight: 900;
}

.dark-panel {
  padding: clamp(1.25rem, 3vw, 2.2rem);
  background:
    radial-gradient(circle at 15% 10%, rgba(41, 230, 196, 0.28), transparent 22rem),
    radial-gradient(circle at 90% 20%, rgba(255, 143, 98, 0.24), transparent 18rem),
    linear-gradient(135deg, #111235, #20205a);
  color: #f5f8ff;
}

.dark-panel h2,
.dark-panel h3,
.dark-panel .eyebrow {
  color: #ffffff;
}

.dark-panel .eyebrow {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
}

.dark-panel p {
  color: rgba(245, 248, 255, 0.82);
}

.dark-panel .price-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.value-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.pill-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(20, 20, 61, 0.05);
  border: 1px solid var(--line-soft);
}

.pill-list strong {
  color: #111235;
}

.pill-list span {
  color: var(--text-muted);
}

.elevated-carousel .card {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,255,255,0.78));
  min-height: 210px;
  border-left: 0;
  border-top: 5px solid var(--accent-mint);
}

.elevated-carousel .case {
  border-top-color: var(--accent-coral);
}

.carousel-btn {
  min-width: 2.8rem;
  border-color: rgba(17, 18, 53, 0.12);
  background: #111235;
  color: #ffffff;
}

.carousel-btn:hover {
  background: var(--accent-coral);
  color: #111235;
}

.donation-callout {
  padding: 1.4rem 0;
}

.callout-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.3rem, 4vw, 2.4rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 209, 102, 0.42), transparent 16rem),
    linear-gradient(135deg, #29e6c4, #f7fffb 48%, #ffefe8);
  box-shadow: var(--shadow);
}

.callout-panel h2 {
  margin-bottom: 0.4rem;
}

.callout-panel p {
  max-width: 620px;
  margin: 0;
  color: #263b42;
  font-weight: 700;
}

.donate-visual {
  position: relative;
  min-height: clamp(360px, 40vw, 560px);
  overflow: hidden;
  padding: 0;
  background: #111235;
}

.donate-visual > img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center center;
  opacity: 0.9;
  filter: saturate(1.1) contrast(1.04);
}

.donate-visual-card {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.25rem;
  max-width: 440px;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(7, 10, 38, 0.24);
}

.donate-visual-card strong {
  color: #111235;
  font-size: 1.1rem;
}

.donate-visual-card span {
  color: var(--text-muted);
  font-weight: 800;
}

.donate-page #donation-options {
  padding-top: 0.5rem;
}

.donate-page .donation-grid {
  gap: 1rem;
}

.donate-page .donation-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  border: 1px solid rgba(20, 20, 61, 0.1);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,255,255,0.78));
}

.donate-page .donation-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -34% -20%;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-mint);
  opacity: 0.18;
}

.donate-page .donation-card:nth-child(2)::after {
  background: var(--accent-coral);
}

.donate-page .donation-card:nth-child(3)::after {
  background: var(--brand-violet);
}

.donate-page .donation-card:nth-child(4)::after {
  background: var(--accent-gold);
}

.donate-page .donation-card > * {
  position: relative;
  z-index: 1;
}

.donate-page .donation-card h3 {
  color: #111235;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.07em;
}

.donate-support {
  padding-bottom: 2.2rem;
}

.legal-page {
  background:
    radial-gradient(circle at 14% 8%, rgba(99, 87, 255, 0.16), transparent 27rem),
    radial-gradient(circle at 88% 4%, rgba(41, 230, 196, 0.2), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, #f4f8ff 52%, #fffaf2 100%);
}

.legal-hero {
  padding: clamp(2.2rem, 5vw, 4rem) 0 1rem;
}

.legal-hero-grid {
  display: grid;
  gap: 1rem;
}

.legal-intro {
  padding: clamp(1.25rem, 3vw, 2.4rem);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.76)),
    radial-gradient(circle at 88% 16%, rgba(41, 230, 196, 0.14), transparent 18rem);
}

.legal-intro h1 {
  margin-bottom: 0.5rem;
}

.legal-layout {
  display: grid;
  gap: 1rem;
  padding-bottom: 2.5rem;
}

.legal-sidebar {
  display: none;
}

.legal-sidebar .panel {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.legal-sidebar a {
  padding: 0.58rem 0.7rem;
  border-radius: 12px;
  color: #111235;
  text-decoration: none;
  font-weight: 800;
}

.legal-sidebar a:hover {
  background: rgba(41, 230, 196, 0.14);
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-content section {
  padding: 0;
}

.legal-policy {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.86);
}

.legal-policy h2 {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
}

.legal-policy h3 {
  margin: 1.2rem 0 0.35rem;
  color: #111235;
}

.legal-policy p {
  color: var(--text-muted);
}

.contact-panel,
.contact-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.contact-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.home-page #process .grid-2,
.home-page #values .grid-2,
.home-page #contact .grid-2 {
  gap: clamp(1rem, 2vw, 1.8rem);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.checkbox-label input {
  width: auto;
  margin-top: 0.3rem;
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-page .reveal {
  animation: home-rise 680ms ease both;
}

.home-page .hero-showcase.reveal {
  animation-delay: 120ms;
}

@media (max-width: 1040px) {
  .home-page .wrap,
  .donate-page .wrap,
  .legal-page .wrap {
    width: min(100% - 2rem, 1120px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .home-page .hero-grid,
  .donate-page .hero-grid {
    gap: 1rem;
  }

  .home-page .hero-copy,
  .donate-page .hero-copy {
    margin-right: 0;
  }

  .program-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .home-page .hero .wrap {
    width: min(1680px, 96%);
  }

  .home-page .hero-grid {
    grid-template-columns: minmax(520px, 0.82fr) minmax(620px, 1.18fr);
  }

  .home-page .hero-copy {
    margin-right: clamp(-4rem, -3vw, -2rem);
    padding: clamp(2rem, 3vw, 4rem);
  }

  .home-page .hero-showcase {
    border-radius: 34px;
  }

  .home-page section {
    padding-left: clamp(0rem, 1.3vw, 1.5rem);
    padding-right: clamp(0rem, 1.3vw, 1.5rem);
  }

  .legal-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
  }

  .legal-sidebar {
    display: block;
    position: sticky;
    top: 6.8rem;
  }
}

@media (max-width: 759px) {
  .home-page .topbar,
  .donate-page .topbar,
  .legal-page .topbar {
    align-items: flex-start;
  }

  .topbar {
    gap: 0.75rem;
  }

  .nav-list {
    gap: 0.35rem;
  }

  .nav-list a {
    font-size: 0.86rem;
    padding: 0.32rem 0.44rem;
  }

  .home-page h1,
  .donate-page h1,
  .legal-page h1 {
    max-width: 13.5ch;
    font-size: clamp(2.55rem, 16vw, 4.2rem);
  }

  .home-page .hero-showcase,
  .donate-visual {
    min-height: 360px;
  }

  .program-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .row-heading,
  .callout-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-hero-card {
    position: static;
    margin: 0.8rem;
  }

  .home-page .hero-showcase {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .home-page .hero-photo {
    position: absolute;
    inset: 0;
  }

  .floating-hero-card {
    z-index: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .reveal {
    animation: none;
  }

  .home-page .btn {
    transition: none;
  }
}
