/* ==========================================================================
   Shree Kishori Keshav Foundation — design system (mobile-first)
   ========================================================================== */

:root {
  --purple: #281447;
  --purple-800: #3a1f63;
  --purple-600: #5a3a8a;
  --maroon: #6f2037;
  --maroon-700: #5a1a2d;
  --gold: #d6a84f;
  --gold-300: #e9c77e;
  --gold-100: #f6e7c4;
  --cream: #fff8ec;
  --cream-200: #f8ecd6;
  --green: #47734b;
  --green-100: #e5efe3;
  --white: #ffffff;
  --ink: #2b2236;
  --muted: #5f566b;
  --line: #ead9bb;
  --danger: #a12a2a;
  --danger-100: #fbe9e7;
  --info-100: #ece6f6;

  --font-display: "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --font-body: "Mukta", "Noto Sans Devanagari", "Nirmala UI", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(40, 20, 71, .07);
  --shadow: 0 10px 30px rgba(40, 20, 71, .10);
  --shadow-lg: 0 24px 60px rgba(40, 20, 71, .18);
  --header-h: 68px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'%3E%3Cg fill='none' stroke='%23D6A84F' stroke-width='1.4'%3E%3Cpath d='M0 8h44M76 8h44'/%3E%3Cpath d='M60 2c3 3 3 9 0 12-3-3-3-9 0-12z' fill='%23D6A84F'/%3E%3Cpath d='M60 14c-4-1-7-4-8-8 4 1 7 4 8 8zM60 14c4-1 7-4 8-8-4 1-7 4-8 8z'/%3E%3Ccircle cx='47' cy='8' r='1.6' fill='%23D6A84F'/%3E%3Ccircle cx='73' cy='8' r='1.6' fill='%23D6A84F'/%3E%3C/g%3E%3C/svg%3E");
  --mandala: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D6A84F' stroke-opacity='.16' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3Cpath d='M40 18c5 7 5 15 0 22-5-7-5-15 0-22zM40 62c5-7 5-15 0-22-5 7-5 15 0 22zM18 40c7-5 15-5 22 0-7 5-15 5-22 0zM62 40c-7-5-15-5-22 0 7 5 15 5 22 0z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
img { font-style: italic; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--purple); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--purple); line-height: 1.25; margin: 0 0 .5em; font-weight: 400; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.5rem); }
h3, .h3 { font-size: 1.3rem; }
.h2 { font-size: clamp(1.65rem, 4.2vw, 2.5rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
code { font-size: .9em; background: rgba(40, 20, 71, .07); padding: .1em .35em; border-radius: 4px; }
[lang="hi"] { font-family: var(--font-display); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--purple); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: var(--white); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 18px; }
.container-narrow { max-width: 860px; }
.center { text-align: center; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.icon-sm { width: 1em; height: 1em; }
.icon-xl { width: 3rem; height: 3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  font: 600 1rem/1.2 var(--font-body);
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 54px; padding: .8em 1.7em; font-size: 1.08rem; }
.btn-sm { min-height: 40px; padding: .45em 1.1em; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-donate {
  color: var(--purple);
  background: linear-gradient(135deg, #f1cf85 0%, var(--gold) 55%, #c4913a 100%);
  box-shadow: 0 6px 18px rgba(214, 168, 79, .45), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-donate:hover { color: var(--purple); box-shadow: 0 10px 26px rgba(214, 168, 79, .55); }
.btn-primary { color: var(--white); background: var(--maroon); }
.btn-primary:hover { color: var(--white); background: var(--maroon-700); }
.btn-outline { color: var(--maroon); border-color: var(--maroon); background: transparent; }
.btn-outline:hover { color: var(--white); background: var(--maroon); }
.btn-ghost-light { color: var(--white); border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover { color: var(--purple); background: var(--white); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: .3em; font-weight: 600; text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s var(--ease); }

/* ---------- Dev banner & announcement ---------- */
.dev-banner { background: #fff3cd; color: #5c4400; font-size: .9rem; padding: 8px 18px; text-align: center; border-bottom: 1px solid #f0d78c; }
.announcement {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55em;
  padding: 7px 12px;
  background: linear-gradient(90deg, var(--maroon), var(--purple) 50%, var(--maroon));
  color: var(--gold-300); font-size: .95rem; letter-spacing: .04em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 236, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--purple); min-width: 0; }
.brand-logo { display: block; height: 52px; width: auto; max-width: calc(100vw - 96px); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--font-display); font-size: 1.12rem; color: var(--purple); white-space: nowrap; }
.brand-sub { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--maroon); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub [lang="hi"] { text-transform: none; letter-spacing: 0; }
.brand-light .brand-name { color: var(--white); }
.brand-light .brand-sub { color: var(--gold-300); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); color: var(--purple); cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle-close, .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }

.primary-nav {
  position: fixed; inset: calc(var(--nav-top, 110px)) 0 auto 0;
  max-height: calc(100vh - var(--nav-top, 110px)); overflow-y: auto;
  background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px 18px 22px;
  display: none;
}
.primary-nav.is-open { display: block; animation: drop .25s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav li a {
  display: block; padding: 13px 4px; font-weight: 500; font-size: 1.08rem;
  color: var(--purple); text-decoration: none; border-bottom: 1px solid var(--line);
}
.primary-nav li a[aria-current="page"] { color: var(--maroon); font-weight: 700; }
.nav-donate { margin-top: 16px; width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2::after {
  content: ""; display: block; width: 120px; height: 16px; margin: 14px auto 0;
  background: var(--ornament) center/contain no-repeat;
}
.section-head p { color: var(--muted); }
.eyebrow { font-size: 1.05rem; color: var(--maroon); margin-bottom: .35em; letter-spacing: .02em; }
.eyebrow-light { color: var(--gold-300); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 720px); display: flex; align-items: center;
  color: var(--white); background: var(--purple);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(40, 20, 71, .55) 0%, rgba(40, 20, 71, .78) 55%, rgba(40, 20, 71, .92) 100%);
}
.hero-inner { padding-block: 72px 64px; }
.hero-content { max-width: 640px; }
.hero h1 { color: var(--white); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); margin-bottom: .3em; }
.hero-hi { font-size: clamp(1.15rem, 3.2vw, 1.5rem); color: var(--gold-100); margin-bottom: .6em; }
.hero-en { font-size: 1.1rem; color: rgba(255, 255, 255, .92); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-actions .btn { flex: 1 1 220px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: var(--gold-100); }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.art-credit { position: absolute; right: 12px; bottom: 6px; margin: 0; font-size: .72rem; color: rgba(255, 255, 255, .6); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--white); text-align: center;
  background: radial-gradient(ellipse at top, var(--purple-800), var(--purple) 70%);
  padding: 56px 0 50px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--mandala); opacity: .9; }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 5vw, 3rem); }
.page-hero p { color: var(--gold-100); max-width: 680px; margin-inline: auto; }
.breadcrumb { font-size: .9rem; margin-bottom: 10px; }
.breadcrumb a { color: var(--gold-300); }

/* ---------- Mission cards ---------- */
.card-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.mission-card, .update-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mission-card:hover, .update-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mission-media img, .update-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.update-media img { aspect-ratio: 16 / 10; }
.mission-card:hover .mission-media img, .update-card:hover .update-media img { transform: scale(1.04); }
.mission-media, .update-media { display: block; overflow: hidden; }
.mission-body { position: relative; padding: 34px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.mission-icon {
  position: absolute; top: -28px; left: 24px;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--purple); color: var(--gold); border: 3px solid var(--white); box-shadow: var(--shadow-sm);
}
.mission-icon .icon { width: 26px; height: 26px; }
.mission-hi { color: var(--maroon); margin: 0; font-size: 1.05rem; }
.mission-card h3 a { color: var(--purple); text-decoration: none; }
.mission-card h3 a:hover { color: var(--maroon); }
.tick-list { list-style: none; padding: 0; margin: 0 0 20px; }
.tick-list li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; color: var(--muted); }
.tick-list .icon { color: var(--green); margin-top: .3em; }
.mission-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Donation section ---------- */
.donate-section { background: linear-gradient(160deg, var(--purple) 0%, #3b1844 55%, var(--maroon) 100%); color: var(--white); }
.donate-section::before { content: ""; position: absolute; inset: 0; background: var(--mandala); pointer-events: none; }
.donate-layout { position: relative; display: grid; gap: 32px; }
.donate-intro h2 { color: var(--white); }
.donate-intro p { color: rgba(255, 255, 255, .88); }
.trust-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.trust-list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .9); }
.trust-list .icon { color: var(--gold); width: 26px; height: 26px; margin-top: 2px; }
.trust-list strong { color: var(--gold-100); }
.donate-alt a { color: var(--gold-300); }
.donate-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg); padding: 22px 18px; box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--gold);
}
.donate-card.donate-card-plain { box-shadow: var(--shadow); }

/* ---------- Donation form ---------- */
.donation-form { display: grid; gap: 22px; }
.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 1.08rem; color: var(--purple); }
.step-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--purple); color: var(--gold); font-size: .9rem; }
.purpose-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.purpose-option, .amount-option { position: relative; display: block; cursor: pointer; }
.purpose-option input, .amount-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.purpose-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: 100%;
  padding: 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--cream);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.purpose-card .icon { color: var(--maroon); width: 24px; height: 24px; margin-bottom: 4px; }
.purpose-title { font-weight: 600; line-height: 1.25; color: var(--purple); font-size: .98rem; }
.purpose-hi { font-size: .85rem; color: var(--muted); }
.purpose-option input:checked + .purpose-card { border-color: var(--maroon); background: #fdf1ee; box-shadow: 0 0 0 3px rgba(111, 32, 55, .12); }
.purpose-option input:focus-visible + .purpose-card, .amount-option input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.amount-option span {
  display: grid; place-items: center; min-height: 52px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--cream);
  font-weight: 700; font-size: 1.15rem; color: var(--purple); transition: all .2s;
}
.amount-option input:checked + span { background: var(--purple); border-color: var(--purple); color: var(--gold-300); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; gap: 0 14px; }
.field label, .field-label { font-weight: 600; font-size: .98rem; color: var(--ink); }
.req { color: var(--maroon); }
.optional { font-weight: 400; color: var(--muted); font-size: .9em; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="url"], input[type="search"], select, textarea {
  width: 100%; min-height: 50px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #d9c9ab; border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple-600); box-shadow: 0 0 0 4px rgba(90, 58, 138, .15); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(161, 42, 42, .1); }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.input-prefix input { padding-left: 32px; }
.field-help { font-size: .88rem; color: var(--muted); margin: 0; }
.field-error { color: var(--danger); font-size: .92rem; font-weight: 500; margin: 4px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; font-size: .98rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--maroon); }
.privacy-notice { display: flex; gap: 10px; padding: 12px 14px; background: var(--green-100); border-radius: 12px; font-size: .9rem; color: #2f4d32; }
.privacy-notice p { margin: 0; }
.privacy-notice .icon { margin-top: 3px; color: var(--green); }
.form-alert { padding: 12px 14px; border-radius: 12px; background: var(--danger-100); color: var(--danger); font-weight: 500; }
.form-alert.is-info { background: var(--info-100); color: var(--purple); }
.form-footnote { font-size: .85rem; color: var(--muted); margin: 0; text-align: center; }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: .95rem; margin: 0; }
.notice > .icon { margin-top: 3px; }
.notice-warning { background: #fff4d6; color: #5c4400; border: 1px solid #f0d78c; }
.notice-info { background: var(--info-100); color: var(--purple); }
.notice-soft { background: var(--white); border: 1px dashed var(--gold); color: var(--muted); max-width: 820px; margin: 32px auto 0; }
.notice-success { background: var(--green-100); color: #2f4d32; }
.notice-danger { background: var(--danger-100); color: var(--danger); }
.pending-value { display: inline-block; font-size: .88rem; font-style: italic; color: #8a6d2c; background: #fff4d6; border: 1px dashed #e0c27a; border-radius: 6px; padding: 0 6px; }
.placeholder-block { border: 2px dashed var(--gold); background: #fffaf0; border-radius: var(--radius); padding: 20px; color: #6b5420; }
.founder-figure { margin: 0 0 18px; }
.founder-figure img {
  display: block; width: min(100%, 280px); height: auto; border-radius: 18px;
  object-fit: cover; box-shadow: var(--shadow);
}
.founder-figure figcaption { margin-top: 8px; font-weight: 700; color: var(--maroon); line-height: 1.35; }
.founder-role { display: inline-block; margin-top: 2px; font-weight: 600; font-size: .92em; color: var(--muted); }

/* ---------- Impact ---------- */
.impact { background: var(--white); }
.impact::before { content: ""; position: absolute; inset: 0; background: var(--mandala); opacity: .6; pointer-events: none; }
.impact .container { position: relative; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
.metric {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 24px 12px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%); border: 1px solid var(--line);
}
.metric-number { line-height: 1.1; }
.metric-value { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 2.8rem); color: var(--maroon); }
.metric-suffix { font-family: var(--font-display); font-size: 1.6rem; color: #a87a26; }
.metric-label { margin-top: 6px; color: var(--muted); font-weight: 500; }
.empty-state { text-align: center; max-width: 640px; margin: 0 auto 40px; padding: 28px 22px; border-radius: var(--radius-lg); background: var(--cream); border: 1px solid var(--line); }
.empty-state .icon { margin: 0 auto 10px; color: var(--gold); }
.empty-state p { color: var(--muted); margin: 0; }
.empty-state-dashed { border-style: dashed; border-color: var(--gold); background: transparent; }
.transparency-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.transparency-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s var(--ease);
}
.transparency-card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--ink); }
.transparency-card .icon { color: var(--maroon); width: 28px; height: 28px; }
.transparency-card strong { display: block; color: var(--purple); }
.transparency-card span { font-size: .95rem; color: var(--muted); }

/* ---------- Steps ---------- */
.how-it-works { background: var(--cream-200); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
.step {
  position: relative; counter-increment: step; text-align: center;
  padding: 34px 22px 24px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.step::before {
  content: counter(step); position: absolute; top: 12px; right: 16px;
  font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--gold-100);
}
.step-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--purple); color: var(--gold); }
.step-icon .icon { width: 30px; height: 30px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Updates ---------- */
.update-body { padding: 18px 20px 22px; }
.update-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--gold-100); color: var(--maroon); font-size: .8rem; font-weight: 600; }
.update-card h3 { font-size: 1.2rem; }
.update-card h3 a { color: var(--purple); text-decoration: none; }
.update-card p { color: var(--muted); margin: 0; }
.image-placeholder { display: grid; place-items: center; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--cream-200), var(--gold-100)); color: var(--gold); }
.stories .center { margin-top: 30px; }
.story-note { text-align: center; color: var(--muted); margin: 0 0 22px; }
.story-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.story-video {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.story-video video {
  display: block; width: 100%; max-height: 520px; height: auto;
  background: #1c1230; object-fit: contain;
}
.story-video figcaption { padding: 10px 14px 12px; color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 16px 52px 16px 18px; font-weight: 600; color: var(--purple); font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream); color: var(--maroon); font-size: 1.3rem; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; background: var(--maroon); color: var(--white); }
.faq-answer { padding: 0 18px 16px; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--maroon), var(--purple)); color: var(--white); padding: 52px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--mandala); pointer-events: none; }
.cta-inner { position: relative; display: grid; gap: 22px; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: var(--gold-100); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Content pages ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .35em; }
.content-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.two-col { display: grid; gap: 28px; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .icon { color: var(--maroon); width: 24px; height: 24px; margin-top: 3px; }
.info-list strong { display: block; color: var(--purple); }
.values-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.value-card { text-align: center; padding: 22px 14px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.value-card .value-hi { font-family: var(--font-display); font-size: 1.6rem; color: var(--maroon); display: block; }
.value-card span:last-child { color: var(--muted); font-size: .95rem; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.doc-item { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.doc-item .doc-info { display: flex; gap: 12px; align-items: flex-start; }
.doc-item .icon { color: var(--maroon); width: 26px; height: 26px; }
.doc-item small { display: block; color: var(--muted); }
.supporters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; }
.supporters li { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .95rem; }
.supporters li small { color: var(--muted); }
.cause-detail-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.legal-draft { margin-bottom: 26px; }
.status-card { max-width: 640px; margin: 0 auto; text-align: center; background: var(--white); border-radius: var(--radius-lg); padding: 36px 24px; box-shadow: var(--shadow); border-top: 6px solid var(--gold); }
.status-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; }
.status-icon .icon { width: 38px; height: 38px; }
.status-success .status-icon { background: var(--green-100); color: var(--green); }
.status-pending .status-icon { background: var(--info-100); color: var(--purple); }
.status-failed .status-icon { background: var(--danger-100); color: var(--danger); }
.status-details { text-align: left; margin: 22px 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.status-details li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.status-details li:last-child { border-bottom: 0; }
.status-details span:first-child { color: var(--muted); }
.status-details strong { color: var(--purple); text-align: right; word-break: break-all; }
.status-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--purple); color: rgba(255, 255, 255, .82); padding-top: 56px; font-size: .98rem; }
.site-footer .brand { background: var(--cream); border-radius: 14px; padding: 6px 12px; }
.site-footer .brand-logo { height: 48px; max-width: 100%; }
.footer-ornament { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--gold), var(--maroon), var(--gold)); }
.footer-grid { display: grid; gap: 32px; padding-bottom: 36px; }
.footer-motto { font-size: 1.2rem; color: var(--gold-300); margin: 14px 0 6px; }
.footer-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 4px; }
.site-footer .pending-value { background: rgba(255, 255, 255, .08); color: var(--gold-100); border-color: rgba(214, 168, 79, .5); }
.social-links { display: flex; gap: 10px; list-style: none; padding: 0; margin: 16px 0 0; }
.social-links a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.social-links a:hover { background: var(--gold); color: var(--purple); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 22px 28px; font-size: .9rem; }
.footer-legal ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-note { display: flex; gap: 6px; align-items: center; color: rgba(255, 255, 255, .65); margin-bottom: 6px; }
.copyright { color: rgba(255, 255, 255, .55); margin: 10px 0 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
