/* Reset, page shell, buttons and the small shared components.
   Direction comes from <html dir>; only logical properties here. */

*, *::before, *::after { box-sizing: border-box; }
/* Without this the browser gives body 8px of margin, which is exactly
   the white strip that showed on both sides of the countdown band. */
html, body { margin: 0; padding: 0; background: #fff; }
[hidden] { display: none !important; }
body.is-locked { overflow: hidden; }
:focus-visible { outline: 3px solid var(--olive-mid); outline-offset: 3px; border-radius: 10px; }

/* ---------- page shell ---------- */
.lp {
    font-family: var(--font); color: var(--ink); background: #fff;
    line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
/* Element defaults wrapped in :where() so they carry element specificity
   only: any class rule in landing.css overrides them, as the .lp-prefixed
   rules of the old page did. */
:where(.lp) img { max-width: 100%; display: block; }
:where(.lp) a { color: inherit; }
:where(.lp) h1, :where(.lp) h2, :where(.lp) h3 {
    margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; text-wrap: balance;
}
:where(.lp) p { margin: 0; }
.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.narrow { width: min(940px, 92vw); margin-inline: auto; }
.center { text-align: center; }
.sec { padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; isolation: isolate; }
.on-dark { color: #fff; }

/* ---------- buttons ----------
   All donation buttons carry --crimson (olive here) and a white border.
   The border separates the button from the dark section behind it; on
   light backgrounds it separates it from its own shadow. */
.btn {
    display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: .6rem;
    font: inherit; font-weight: 800; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; text-decoration: none; line-height: 1.25; text-align: center;
    transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-coral {
    background: var(--crimson); border-color: #fff; color: #fff;
    font-size: clamp(1.06rem, 2.1vw, 1.32rem); padding: 1.15rem 2.7rem;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
}
.btn-coral:hover {
    transform: translateY(-2px); background: var(--maroon); border-color: #fff; color: #fff;
    box-shadow: 0 18px 38px -12px rgba(0, 0, 0, .55);
}
/* Tier button: min-height keeps it at a 44px touch target. */
.btn-pill-w {
    background: var(--crimson); border-color: #fff; color: #fff;
    font-size: 1.06rem; padding: .85rem 1.9rem; font-weight: 800; min-height: 50px;
    box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .6);
}
.btn-pill-w:hover {
    transform: translateY(-2px); background: var(--maroon); border-color: #fff; color: #fff;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7);
}
/* On dark sections the button is light with dark text. */
.on-dark .btn-coral, .tiers-sec .btn {
    background: var(--cta-on-dark); color: var(--olive-black); border-color: #fff;
    box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .55);
}
.on-dark .btn-coral:hover, .tiers-sec .btn:hover { background: var(--cta-on-dark-h); }

/* ---------- trust line ---------- */
.trust {
    display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap;
    font-size: .82rem; color: var(--grey); text-align: center; line-height: 1.5;
}
.on-dark .trust { color: rgba(255, 255, 255, .82); }

/* ---------- logo pair ----------
   Two marks side by side with a divider. The divider is a border on the
   second image, not its own element, so if one file is missing and gets
   removed by onerror no line is left hanging. max-height, not max-width,
   because the two logos have different aspect ratios. Used in the about
   section (.marks--big) and inside the popup. */
.marks { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 16px auto 0; }
.marks img {
    display: block; width: auto; height: auto;
    box-sizing: content-box;    /* so the divider padding is not taken off max-width */
    max-height: 38px; max-width: 130px; opacity: .92;
}
.marks img + img { padding-inline-start: 16px; border-inline-start: 1px solid rgba(0, 0, 0, .15); }
.marks--big { margin-block-end: 1.1rem; }
.marks--big img { max-height: 56px; max-width: 190px; opacity: 1; }
/* The Never Forget mark is a circle; equal height keeps the campaign logo leading. */
.marks__mark { max-height: 38px !important; max-width: 38px !important; }
.marks--big .marks__mark { max-height: 56px !important; max-width: 56px !important; }
@media (max-width: 520px) {
    .marks--big img { max-height: 42px; max-width: 140px; }
    .marks--big .marks__mark { max-height: 42px !important; max-width: 42px !important; }
}
@media (max-width: 420px) {
    .marks { gap: 11px; }
    .marks img { max-height: 31px; max-width: 104px; }
    .marks img + img { padding-inline-start: 11px; }
    .marks__mark { max-height: 31px !important; max-width: 31px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .btn:hover { transform: none; }
}
