/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    color: var(--c-ink);
    background: var(--c-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: var(--c-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, .site-logo__text, .hero__title, .section-title, .donate__title,
.dashboard__head h1, .donate-card__title, .auth h1, .pay h1, .thanks h1, .legal h1 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    letter-spacing: -0.015em;
    font-variation-settings: "opsz" 96;
}
h1 { font-weight: 600; }

:root {
    /* Warm cream base, deep forest brand, coral CTA, golden highlight */
    --c-bg:            #FAF6EF;
    --c-card:          #FFFFFF;
    --c-ink:           #121C1D;
    --c-ink-soft:      #5A6A6B;
    --c-line:          #E6E0D5;

    --c-brand:         #0E4D3D;
    --c-brand-dark:    #093628;
    --c-brand-soft:    #E3F0EC;

    --c-primary:       #FF6A4D;    /* CTA coral */
    --c-primary-dark:  #E65540;
    --c-primary-soft:  #FFE4DC;

    --c-accent:        #FF6A4D;    /* logo heart */
    --c-highlight:     #F4C35A;    /* golden accent */

    --c-success:       #1F8A5A;
    --c-warn:          #B38014;
    --c-error:         #C43434;
    --c-info:          #3B6FAE;

    --radius:          12px;
    --radius-lg:       20px;
    --shadow-sm:       0 1px 2px rgba(18,30,28,0.05);
    --shadow-md:       0 10px 28px rgba(18,30,28,0.08);
    --shadow-lg:       0 24px 60px rgba(18,30,28,0.14);

    /* Legacy alias used elsewhere */
    --c-bg-card:       var(--c-card);
}

/* ---------- Layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

.site-header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--c-line);
    position: sticky; top: 0; z-index: 20;
}
.site-header__inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.35rem; color: var(--c-brand); }
.site-logo__mark { color: var(--c-accent); font-size: 1.6rem; line-height: 1; }
.site-logo__text { letter-spacing: -0.01em; }
.site-logo:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 22px; color: var(--c-ink-soft); font-size: 0.95rem; }
.site-nav__user { color: var(--c-ink-soft); }
.site-main { padding: 0 0 80px; }

/* Interior pages sit on cream with a top breathing space */
body:not(.page-home) .site-main { padding-top: 48px; }

.site-footer {
    background: var(--c-brand);
    color: #CFE1D9;
    padding: 48px 0 32px;
    margin-top: 80px;
}
.site-footer a { color: #fff; }
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.site-footer__brand h3 { color: #fff; margin: 0 0 8px; font-weight: 600; }
.site-footer__brand p { margin: 0; color: #B8CCC4; max-width: 420px; }
.site-footer__links { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; }
.site-footer__links a { color: #CFE1D9; }
.site-footer__legal {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 20px;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    color: #8FA49C; font-size: 0.88rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
    text-align: center;
    line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 6px 18px -6px rgba(255,106,77,0.65); }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--primary[disabled] { background: #E6B7AC; color: #fff; box-shadow: none; cursor: not-allowed; }
.btn--secondary { background: var(--c-brand-soft); color: var(--c-brand); border-color: transparent; }
.btn--secondary:hover { background: #CCE0D8; color: var(--c-brand-dark); }
.btn--brand { background: var(--c-brand); color: #fff; }
.btn--brand:hover { background: var(--c-brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-ink); border: 1px solid var(--c-line); }
.btn--ghost:hover { background: rgba(14,77,61,0.04); color: var(--c-brand); border-color: #C8C0AE; }
.btn--outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--sm { padding: 7px 14px; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.link-button {
    background: none; border: none; padding: 0; color: var(--c-brand);
    cursor: pointer; font: inherit; text-decoration: underline;
}
.link-button:hover { color: var(--c-brand-dark); }

/* ============================================================
   Homepage
   ============================================================ */

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 640px;
    color: #fff;
    background: #0E2721;
    overflow: hidden;
    margin-bottom: 0;
}
.hero__media {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.02);
}
.hero__media::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(10,35,29,0.45) 0%, rgba(10,35,29,0.75) 100%),
        linear-gradient(90deg, rgba(10,35,29,0.55) 0%, rgba(10,35,29,0.15) 100%);
}
.hero__inner {
    position: relative;
    padding: 120px 0 140px;
    max-width: 720px;
}
.hero__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
}
.hero__title {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    line-height: 1.05;
    margin: 0 0 20px;
    color: #fff;
    font-weight: 500;
}
.hero__title em {
    font-style: italic;
    color: var(--c-highlight);
    font-variation-settings: "opsz" 144;
}
.hero__lede {
    font-size: 1.2rem;
    color: #E8EDEB;
    max-width: 560px;
    margin: 0 0 32px;
    line-height: 1.55;
}
.hero__cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__assurance {
    margin-top: 28px;
    display: flex; gap: 24px; flex-wrap: wrap;
    color: #C9D6D0;
    font-size: 0.92rem;
}
.hero__assurance li { display: inline-flex; gap: 8px; align-items: center; }
.hero__assurance li::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-highlight);
}
.hero__assurance ul { list-style: none; padding: 0; margin: 0; display: contents; }

/* --- Value props strip --- */
.value-props {
    background: var(--c-card);
    border-bottom: 1px solid var(--c-line);
}
.value-props__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 28px 0;
}
.value-prop { padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.value-prop + .value-prop { border-left: 1px solid var(--c-line); }
.value-prop__icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--c-brand-soft); color: var(--c-brand);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.value-prop__icon svg { width: 22px; height: 22px; }
.value-prop strong { display: block; font-weight: 600; }
.value-prop span { color: var(--c-ink-soft); font-size: 0.92rem; }

/* --- Section framing --- */
.section { padding: 96px 0; }
.section--narrow { padding: 72px 0; }
.section--tinted { background: var(--c-card); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__eyebrow {
    display: inline-block;
    color: var(--c-brand);
    font-size: 0.82rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--c-brand);
}
.section__lede { color: var(--c-ink-soft); font-size: 1.08rem; margin: 0; }

/* --- How it works --- */
.how-steps {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    counter-reset: steps;
}
.how-step { counter-increment: steps; }
.how-step__num {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 2rem;
    color: var(--c-highlight);
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}
.how-step__num::before { content: counter(steps, decimal-leading-zero); }
.how-step h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--c-brand); font-weight: 600; }
.how-step p { margin: 0; color: var(--c-ink-soft); }

/* --- Charity logo grid --- */
.logos__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.logo-tile {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 22px 18px;
    min-height: 92px;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    color: var(--c-brand);
    letter-spacing: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
    line-height: 1.2;
}
.logo-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.logos__more {
    text-align: center;
    color: var(--c-ink-soft);
    font-size: 0.95rem;
}

/* --- Benefits with imagery --- */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.benefit {
    background: var(--c-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}
.benefit__image {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
}
.benefit__body { padding: 22px 24px 26px; }
.benefit__body h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--c-brand); font-weight: 600; }
.benefit__body p { margin: 0; color: var(--c-ink-soft); }

/* --- Stats band --- */
.stats {
    background: var(--c-brand);
    color: #fff;
    padding: 60px 0;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}
.stat__num {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1; margin: 0 0 8px;
    color: var(--c-highlight);
}
.stat__label { color: #CFE1D9; font-size: 0.95rem; letter-spacing: 0.02em; }

/* --- Final CTA band --- */
.cta-band {
    text-align: center;
    padding: 96px 24px;
    background: linear-gradient(135deg, #FFE4DC 0%, #FAF6EF 60%, #E3F0EC 100%);
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
}
.cta-band h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0 0 12px;
    color: var(--c-brand);
}
.cta-band p { color: var(--c-ink-soft); max-width: 520px; margin: 0 auto 24px; font-size: 1.05rem; }

/* ---------- Donate page ---------- */
.donate__inner { max-width: 720px; }
.donate__title { font-size: 2rem; margin: 0 0 8px; }
.donate__lede { color: var(--c-ink-soft); margin: 0 0 28px; }

.donate-card {
    background: var(--c-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 20px;
}
.donate-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.donate-card__title { margin: 0 0 16px; font-size: 1.2rem; }
.donate-card__head .donate-card__title { margin: 0; }

.donate-field { margin-bottom: 20px; border: none; padding: 0; }
.donate-field:last-child { margin-bottom: 0; }
.donate-field__label { display: block; font-weight: 600; margin-bottom: 8px; }
.donate-field__hint { color: var(--c-ink-soft); font-size: 0.9rem; margin: 6px 0 0; }

.donate-amount__wrap {
    display: flex; align-items: center;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    padding: 0 14px;
    font-size: 1.4rem;
    max-width: 220px;
}
.donate-amount__wrap:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(255,106,77,0.18); }
.donate-amount__symbol { color: var(--c-ink-soft); font-weight: 600; margin-right: 6px; }
.donate-amount__wrap input {
    border: none; outline: none; padding: 12px 0; width: 100%; font-size: inherit;
    background: transparent;
}

.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
    display: inline-block; padding: 10px 18px;
    border: 1px solid var(--c-line); border-radius: 999px;
    cursor: pointer; background: #fff;
    user-select: none;
    transition: all 0.15s ease;
}
.radio-pill input:checked + span {
    background: var(--c-primary); color: #fff; border-color: var(--c-primary);
}
.radio-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255,106,77,0.18); }

/* Charity list */
.charity-list { list-style: none; padding: 0; margin: 0 0 16px; }
.charity-row {
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
}
.charity-row__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.charity-row__name { font-weight: 600; }
.charity-row__slider { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.charity-row__range { flex: 1 1 200px; accent-color: var(--c-primary); }
.charity-row__values { display: flex; align-items: center; gap: 12px; }
.charity-row__pct-wrap { display: inline-flex; align-items: center; gap: 2px; }
.charity-row__pct {
    width: 56px; padding: 6px 8px; border-radius: 6px;
    border: 1px solid var(--c-line); text-align: right;
    font: inherit;
}
.charity-row__money { font-variant-numeric: tabular-nums; color: var(--c-ink-soft); font-weight: 600; min-width: 64px; text-align: right; }

.charity-empty { color: var(--c-ink-soft); padding: 16px; text-align: center; border: 1px dashed var(--c-line); border-radius: var(--radius); margin-bottom: 12px; }

.charity-add { border-top: 1px solid var(--c-line); padding-top: 16px; }
.charity-search { margin-top: 12px; position: relative; }
.charity-search input {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--c-line); border-radius: var(--radius);
    font: inherit;
}
.charity-search input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(255,106,77,0.18); }
.charity-search__results {
    list-style: none; margin: 6px 0 0; padding: 0;
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
    max-height: 260px; overflow: auto; box-shadow: var(--shadow-sm);
}
.charity-search__results:empty { display: none; }
.charity-search__results li {
    padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--c-line);
}
.charity-search__results li:last-child { border-bottom: none; }
.charity-search__results li:hover,
.charity-search__results li[aria-selected="true"] { background: #eef3ff; }
.charity-search__hint { color: var(--c-ink-soft); font-size: 0.9rem; margin: 8px 0 0; }

/* Summary */
.donate-summary {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    position: sticky; bottom: 10px;
}
.donate-summary__row { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 10px; }
.donate-summary__bar {
    height: 10px; background: #eef0f5; border-radius: 999px; overflow: hidden; margin-bottom: 10px;
}
.donate-summary__fill { height: 100%; background: var(--c-primary); transition: width 0.15s ease, background 0.15s ease; }
.donate-summary.is-over .donate-summary__fill { background: var(--c-error); }
.donate-summary.is-complete .donate-summary__fill { background: var(--c-success); }
.donate-summary__status { margin: 0 0 14px; color: var(--c-ink-soft); min-height: 1.3em; }
.donate-summary.is-complete .donate-summary__status { color: var(--c-success); }
.donate-summary.is-over .donate-summary__status { color: var(--c-error); }
.donate-summary__errors { margin-top: 12px; color: var(--c-error); }
.donate-summary__errors ul { margin: 4px 0 0; padding-left: 20px; }

/* ---------- Auth ---------- */
.auth__inner { max-width: 420px; }
.auth h1 { margin: 0 0 8px; }
.auth__lede { color: var(--c-ink-soft); margin: 0 0 24px; }
.auth__switch { margin-top: 16px; color: var(--c-ink-soft); }

.form-stack { display: grid; gap: 14px; }
.form-stack label { display: grid; gap: 6px; font-weight: 500; }
.form-stack label small { color: var(--c-ink-soft); font-weight: 400; }
.form-stack input[type="text"],
.form-stack input[type="email"],
.form-stack input[type="password"],
.form-stack input[type="url"],
.form-stack textarea {
    padding: 10px 12px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    font: inherit;
    background: #fff;
}
.form-stack input:focus,
.form-stack textarea:focus {
    outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(255,106,77,0.18);
}
.form-stack input[readonly] { background: #f2f4f9; color: var(--c-ink-soft); }
.required { color: var(--c-error); }
.form-actions { margin-top: 10px; display: flex; gap: 10px; justify-content: flex-end; }
.form-message { margin-top: 6px; color: var(--c-success); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.alert { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.alert--error { background: #fdecec; color: var(--c-error); border: 1px solid #f4bcbc; }

/* ---------- Pay ---------- */
.pay__inner { max-width: 520px; }
.pay-summary { background: #fff; padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.pay-summary__row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--c-line); }
.pay-summary__row:last-of-type { border: none; }
.pay-summary h3 { margin: 16px 0 8px; font-size: 1rem; }
.pay-summary__charities { list-style: none; padding: 0; margin: 0; }
.pay-summary__charities li { display: flex; justify-content: space-between; padding: 6px 0; color: var(--c-ink-soft); }
.pay-form { background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pay-form__notice { background: #fff7e6; border: 1px solid #f3deac; color: #835a0f; padding: 10px 12px; border-radius: 8px; margin: 0; }

/* ---------- Thank you ---------- */
.thanks__inner { text-align: center; max-width: 480px; padding: 60px 20px; }
.thanks__mark { font-size: 3rem; color: var(--c-accent); }
.thanks h1 { margin: 16px 0 12px; font-size: 2rem; }
.thanks__lede { color: var(--c-ink-soft); margin-bottom: 24px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,20,40,0.5); }
.modal__panel {
    position: relative; z-index: 1;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
    max-width: 520px; width: calc(100% - 40px);
    padding: 28px 28px 24px;
    max-height: 90vh; overflow: auto;
}
.modal__panel h2 { margin: 0 0 8px; }
.modal__close {
    position: absolute; top: 8px; right: 12px; background: none; border: none;
    font-size: 1.6rem; cursor: pointer; color: var(--c-ink-soft);
}
.modal__close:hover { color: var(--c-ink); }

/* ---------- Dashboard ---------- */
.dashboard__inner { max-width: 720px; }
.dashboard__head { margin-bottom: 28px; }
.dashboard__head h1 { margin: 0 0 6px; font-size: 1.8rem; }
.dashboard__lede { color: var(--c-ink-soft); margin: 0; }

.dashboard-section { margin-bottom: 40px; }
.dashboard-section__head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin-bottom: 16px;
}
.dashboard-section__head h2 { margin: 0; }
.dashboard-section__heading {
    margin: 24px 0 10px;
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--c-ink-soft);
}

.group-card {
    background: #fff; border-radius: var(--radius); padding: 18px 20px;
    box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.group-card--cancelled { opacity: 0.65; }
.group-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.group-card__title { font-size: 1.15rem; font-weight: 700; }
.group-card__freq { font-weight: 400; color: var(--c-ink-soft); font-size: 0.95rem; margin-left: 4px; }
.group-card__charities { list-style: none; padding: 0; margin: 0 0 12px; }
.group-card__charities li {
    display: flex; justify-content: space-between; padding: 4px 0;
    color: var(--c-ink-soft); font-variant-numeric: tabular-nums;
}
.group-card__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.group-card__actions form { display: inline; margin: 0; }
.group-card__warning { color: var(--c-warn); font-size: 0.95rem; margin: 0 0 10px; }

.badge {
    padding: 3px 10px; border-radius: 999px; font-size: 0.78rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
    background: #eef0f5; color: var(--c-ink-soft); white-space: nowrap;
}
.badge--active { background: #dff2e8; color: var(--c-success); }
.badge--pending_payment { background: #fff1d5; color: var(--c-warn); }
.badge--draft { background: var(--c-brand-soft); color: var(--c-brand); }
.badge--cancelled { background: #f4d9d9; color: var(--c-error); }

.empty-state {
    color: var(--c-ink-soft); padding: 28px; text-align: center;
    border: 1px dashed var(--c-line); border-radius: var(--radius);
    background: #fff;
}
.empty-state p { margin: 0 0 14px; }
.empty-state p:last-child { margin: 0; }

.account-card {
    background: #fff; border-radius: var(--radius); padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}
.account-card dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0 0 16px; }
.account-card dt { color: var(--c-ink-soft); font-weight: 500; }
.account-card dd { margin: 0; font-weight: 600; }

.alert--info    { background: #eef3ff; color: var(--c-primary); border: 1px solid #cfd9f6; }
.alert--success { background: #e6f5ec; color: var(--c-success); border: 1px solid #b4ddc4; }

/* ---------- Account ---------- */
.account__inner { max-width: 520px; }
.account h1 { margin: 0 0 4px; }
.account__lede { color: var(--c-ink-soft); margin: 0 0 24px; }
.account-block {
    background: #fff; border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.account-block h2 { margin: 0 0 16px; font-size: 1.2rem; }

/* Editing an active donation banner */
.active-banner {
    background: #dff2e8; color: var(--c-success);
    border: 1px solid #b4ddc4; border-radius: var(--radius);
    padding: 12px 16px; margin-bottom: 20px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    flex-wrap: wrap;
}
.active-banner .btn { white-space: nowrap; }

/* Nav links */
.site-nav__link { color: var(--c-ink-soft); }
.site-nav__link:hover { color: var(--c-ink); text-decoration: none; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.legal h1 { font-size: 2.4rem; color: var(--c-brand); margin: 0 0 8px; }
.legal__meta { color: var(--c-ink-soft); margin: 0 0 40px; font-size: 0.95rem; }
.legal h2 { color: var(--c-brand); font-size: 1.4rem; margin: 32px 0 12px; font-weight: 600; }
.legal h3 { color: var(--c-ink); font-size: 1.1rem; margin: 24px 0 8px; font-weight: 600; }
.legal p, .legal li { color: var(--c-ink); line-height: 1.7; }
.legal ul, .legal ol { padding-left: 22px; }
.legal ul li, .legal ol li { margin-bottom: 6px; }
.legal a { color: var(--c-brand); text-decoration: underline; }
.legal a:hover { color: var(--c-brand-dark); }
.legal__toc {
    background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius);
    padding: 18px 22px; margin-bottom: 40px;
}
.legal__toc h2 { margin: 0 0 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-ink-soft); font-family: 'Inter', sans-serif; font-weight: 600; }
.legal__toc ol { margin: 0; padding-left: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .value-props__grid { grid-template-columns: 1fr; padding: 18px 0; }
    .value-prop + .value-prop { border-left: none; border-top: 1px solid var(--c-line); }
    .how-steps { grid-template-columns: repeat(2, 1fr); }
    .logos__grid { grid-template-columns: repeat(3, 1fr); }
    .benefits__grid { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: 1fr; gap: 32px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__links { justify-content: flex-start; }
}
@media (max-width: 520px) {
    .hero__inner { padding: 80px 0 90px; }
    .hero__title { font-size: 2.4rem; }
    .hero__lede { font-size: 1.05rem; }
    .how-steps { grid-template-columns: 1fr; }
    .logos__grid { grid-template-columns: repeat(2, 1fr); }
    .donate-card, .donate-summary, .pay-form, .pay-summary { padding: 18px; }
    .radio-group { gap: 6px; }
    .radio-pill span { padding: 8px 14px; font-size: 0.95rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .cta-band { padding: 72px 24px; }
}
