/* ===========================
   DONATE PAGE — design tokens
   Brand palette: purple #8200db,
   gold #FFB800, white
=========================== */

:root {
    --purple: #8200db;
    --gold: #FFB800;
    --white: #ffffff;
    --ink: #17151c;
    --muted: #6b6b74;
    --surface: #f8f8f9;
    --line: rgba(23, 21, 28, 0.12);
}

.donate-page {
    background-color: #ffffff;
}

.donate-page h1,
.donate-page h2,
.receipt-total-amount,
.tier-amount,
.trust-figure {
    font-family: 'Fraunces', 'Inter', serif;
}

/* ===========================
   GIVING HERO
=========================== */

.give__shell {
    background-color: var(--surface);
    padding-block: 4.5rem;
    border-bottom: 1px solid var(--line);
}

.give__layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: start;
}

.give-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--purple);
    margin: 0 0 1rem;
}

.give-headline {
    font-size: 3.4rem;
    line-height: 1.05;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 1.25rem;
}

.give-subhead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 34rem;
    margin: 0 0 2.25rem;
}

/* frequency toggle */

.give-frequency {
    display: inline-flex;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.3rem;
    gap: 0.25rem;
    margin-bottom: 1.75rem;
}

.freq-btn {
    border: none;
    background: transparent;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.freq-btn.is-active {
    background-color: var(--ink);
    color: #fff;
}

/* amount tiers */

.give-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.tier-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    background-color: #fff;
    border: 1.5px solid var(--line);
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.tier-btn:hover {
    border-color: var(--purple);
    transform: translateY(-2px);
}

.tier-btn.is-active {
    border-color: var(--purple);
    background-color: #fbf5ff;
    box-shadow: 0 0 0 3px rgba(130, 0, 219, 0.12);
}

.tier-amount {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
}

.tier-label {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.3;
}

/* custom amount */

.give-custom {
    display: block;
    margin-bottom: 2rem;
}

.give-custom span {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.give-custom-input {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1.5px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.85rem 1.1rem;
    max-width: 16rem;
    transition: border-color 0.2s ease;
}

.give-custom-input:focus-within {
    border-color: var(--purple);
}

.currency-prefix {
    color: var(--muted);
    font-weight: 600;
    margin-right: 0.4rem;
}

.give-custom-input input {
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    width: 100%;
    background: transparent;
    font-family: inherit;
}

/* CTA */

.give-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--purple);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 1rem 1.75rem;
    border-radius: 0.75rem;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.give-cta:hover {
    filter: brightness(88%);
    transform: translateY(-1px);
}

.give-fineprint {
    font-size: 0.85rem;
    color: var(--muted);
    opacity: 0.8;
    margin-top: 1rem;
}

/* ===========================
   THE RECEIPT — signature element
=========================== */

.receipt-wrap {
    position: sticky;
    top: 6.5rem;
}

.receipt {
    background-color: var(--white);
    border-radius: 0.4rem;
    padding: 2.25rem 2rem 1.75rem;
    box-shadow: 0 20px 50px rgba(47, 24, 40, 0.14);
    position: relative;
}

.receipt::before,
.receipt::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 14px;
    background-image: radial-gradient(circle, var(--surface) 7px, transparent 7.5px);
    background-size: 20px 20px;
    background-position: -4px center;
    background-repeat: repeat-x;
}

.receipt::before {
    top: -7px;
}

.receipt::after {
    bottom: -7px;
}

.receipt-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    margin: 0 0 0.75rem;
    text-align: center;
}

.receipt-total-amount {
    font-size: 3rem;
    font-weight: 600;
    color: var(--ink);
    text-align: center;
    margin: 0;
    line-height: 1;
}

.receipt-total-label {
    text-align: center;
    color: var(--purple);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0.4rem 0 0;
}

.receipt-divider {
    border-top: 1px dashed var(--line);
    margin: 1.5rem 0;
}

.receipt-footnote {
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* ===========================
   TRUST ROW
=========================== */

.trust__shell {
    background-color: var(--purple);
    padding-block: 3rem;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trust-figure {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--gold);
}

.trust-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 20rem;
}

/* ===========================
   PAYMENT
=========================== */

.payment__shell {
    padding-block: 5rem;
    background-color: #ffffff;
    scroll-margin-top: 6rem;
}

.payment__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.payment-intro h2 {
    font-size: 2.2rem;
    color: var(--ink);
    margin: 0 0 0.75rem;
}

.payment-intro p {
    color: var(--muted);
    font-size: 1.1rem;
    margin: 0 0 2.5rem;
}

.payment-intro strong {
    color: var(--purple);
}

.payment-panel {
    width: 100%;
    max-width: 34rem;
    background-color: var(--surface);
    border-radius: 1.25rem;
    padding: 0.5rem;
    text-align: left;
}

.payment-tabs {
    display: flex;
    gap: 0.4rem;
    padding: 0.6rem;
}

.pay-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pay-tab.is-active {
    background-color: #fff;
    color: var(--purple);
    box-shadow: 0 4px 14px rgba(47, 24, 40, 0.08);
}

.payment-view {
    background-color: #fff;
    border-radius: 1rem;
    padding: 1.75rem;
    margin: 0 0.1rem 0.1rem;
}

.payment-view-copy {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.payment-view-copy a {
    color: var(--purple);
}

.pay-submit {
    width: 100%;
    border: none;
    background-color: var(--purple);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.pay-submit:hover {
    filter: brightness(88%);
}

.transfer-card {
    background-color: var(--surface);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transfer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.transfer-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.transfer-value {
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}

.transfer-account {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.copy-btn {
    border: 1px solid var(--purple);
    background: transparent;
    color: var(--purple);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
    background-color: var(--purple);
    color: #fff;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 900px) {
    .give__layout {
        grid-template-columns: 1fr;
    }

    .receipt-wrap {
        position: static;
        order: -1;
    }

    .give-headline {
        font-size: 2.5rem;
    }

    .give-tiers {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 480px) {
    .give-tiers {
        grid-template-columns: 1fr 1fr;
    }

    .receipt-total-amount {
        font-size: 2.4rem;
    }
}
