/* Beauty for Ashes: a giving platform (GoFundMe, JustGiving, charity: water).
   Light, paper-and-white surfaces, navy type, gold reserved for the Give actions.
   Radii are concentric: surface 20 = inner 12 + 8 padding.
   Sources cited per block:
   - transitions.dev (~/.claude/skills/transitions-dev): tabs-sliding, number-pop-in, success-check,
     checkbox-check, accordion (grid rows), page-side-by-side, error-state-shake.
   - Arc UI (uiarc.dev/r/*.json): radio-cards (sliding selection ring), segmented-control, stepper, timeline, stats-band.
   - Amicro: exponential enter ease [0.16,1,0.3,1] (= --ease-enter), small press scale.
   - better-ui / emil-design-eng: hover gated to fine pointers, scale 0.96 press, icon enter scale .25 + blur 4px,
     image 1px outlines, exits faster than enters, explicit transition properties.
   Mobbin: GoFundMe donate sidebar + create flow, PayPal Giving donate, sweetgreen gift amount,
   Gusto / Airbnb multi-step forms. */

.section-fund {
  --bfa-r: 20px;
  --bfa-r-in: 12px;
  --bfa-line: #e6e8e4;
  --t-ease: cubic-bezier(.22, 1, .36, 1); /* transitions.dev smooth-out */
  --t-pop: cubic-bezier(.34, 1.45, .64, 1); /* transitions.dev number pop-in */
}

/* ---------- Shared heads ---------- */
.bfa-pagehead { padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 3vw, 36px); }
.bfa-pagehead h1 { max-width: 18ch; }
.bfa-pagehead .lead { margin: 14px 0 0; }
.bfa-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 40px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 36px); }
.bfa-head h2 { max-width: 20ch; }
.bfa-head p { margin: 0; max-width: 46ch; color: var(--text-2); }
.bfa-sub { color: var(--text-2); max-width: 58ch; }

/* ---------- Hub hero ---------- */
.bfa-hero { background: #fff; border-bottom: 1px solid var(--border); padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 72px); }
.bfa-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.bfa-hero-copy { padding-top: clamp(8px, 2vw, 32px); }
.bfa-hero h1 { font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem); letter-spacing: -.035em; }
.bfa-lead { margin: 20px 0 12px; font: 500 clamp(1.25rem, 1.1rem + .6vw, 1.5rem)/1.4 var(--f-display); letter-spacing: -.015em; max-width: 30ch; color: var(--ink); }
.bfa-hero .bfa-sub { margin: 0 0 28px; }
.bfa-verse { margin: 0 0 28px; padding: 20px 22px; border-radius: 16px; background: var(--paper); border: 1px solid var(--bfa-line); max-width: 52ch; }
.bfa-verse blockquote { margin: 0; font: 500 var(--text-lg)/1.5 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.bfa-verse .ref { margin-top: 8px; }
.bfa-hero-help { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; font-size: var(--text-sm); color: var(--text-2); }

/* Quick give card (GoFundMe sidebar donate card) */
.bfa-quick { position: relative; padding: 8px; border-radius: var(--bfa-r); background: #fff; border: 1px solid var(--bfa-line); box-shadow: var(--shadow-floating); }
.bfa-quick-photo { margin: 0; aspect-ratio: 16 / 9; border-radius: var(--bfa-r-in); overflow: hidden; background: var(--surface-muted); }
.bfa-quick-photo img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgb(0 0 0 / .1); outline-offset: -1px; border-radius: inherit; }
.bfa-quick-body { display: grid; gap: 14px; padding: 18px 14px 12px; }
.bfa-quick h2 { font-size: var(--h3); }
.bfa-given { margin: 0; font-size: var(--text-sm); color: var(--text-2); }
.bfa-given b { font-size: 1.375rem; color: var(--ink); font-weight: 500; margin-right: 4px; }
.bfa-quick-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bfa-chip { position: relative; display: block; }
.bfa-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; margin: 0; }
.bfa-chip span { display: grid; place-items: center; height: 48px; border-radius: 10px; border: 1px solid var(--border-strong); background: #fff; font-size: var(--text-lg); color: var(--ink); transition-property: border-color, box-shadow, background-color, transform; transition-duration: 160ms; transition-timing-function: var(--t-ease); }
.bfa-chip input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fbfbfa; }
.bfa-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.bfa-chip input:active + span { transform: scale(.96); }
.bfa-trust { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--text-xs); color: var(--text-3); }
.bfa-trust li { display: flex; gap: 8px; align-items: center; }
.bfa-trust i { font-size: 1rem; color: var(--ink-3); }

/* Segmented once/monthly with a sliding pill (transitions.dev tabs-sliding + Arc segmented-control).
   Without JS the checked label paints its own background. */
.bfa-seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 12px; background: var(--surface-muted); border: 1px solid var(--bfa-line); }
.bfa-seg label { position: relative; z-index: 1; display: block; }
.bfa-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.bfa-seg span { display: grid; place-items: center; height: 36px; border-radius: 8px; font-size: var(--text-sm); font-weight: 500; color: var(--text-3); transition: color 250ms var(--t-ease); }
.bfa-seg input:checked + span { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgb(7 29 58 / .1), 0 0 0 1px var(--bfa-line); }
.bfa-seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 1px; }
.bfa-seg-pill { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgb(7 29 58 / .1), 0 0 0 1px var(--bfa-line); opacity: 0; transition: transform 250ms var(--t-ease), width 250ms var(--t-ease); pointer-events: none; }
.bfa-seg.is-live .bfa-seg-pill { opacity: 1; }
.bfa-seg.is-live input:checked + span { background: none; box-shadow: none; }
.bfa-seg--lg { max-width: 360px; }
.bfa-seg--lg span { height: 42px; font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) { .bfa-seg label:hover span { color: var(--ink); } }

/* ---------- Needs bento ---------- */
.bfa-needs { padding-top: clamp(48px, 7vw, 96px); }
.bfa-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bfa-tile { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 240px; padding: 24px; border-radius: var(--bfa-r); background: #fff; border: 1px solid var(--bfa-line); overflow: hidden; }
.bfa-tile > i { font-size: 1.75rem; color: var(--ink-3); margin-bottom: auto; padding-bottom: 28px; }
.bfa-tile h3 { font-size: var(--h4); line-height: 1.3; }
.bfa-tile p { margin: 0; color: var(--text-2); font-size: .9375rem; }
.bfa-tile--wide { grid-column: span 2; }
.bfa-tile--photo { padding: 8px; min-height: 300px; justify-content: flex-end; border: 0; background: var(--ink); }
.bfa-tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-standard); }
.bfa-tile--photo > div { position: relative; padding: 16px 18px; border-radius: var(--bfa-r-in); background: #fff; box-shadow: 0 6px 18px rgb(7 29 58 / .16); max-width: 380px; display: grid; gap: 4px; }
.bfa-tile--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.bfa-tile--ink > i { color: var(--gold); }
.bfa-tile--ink p { color: rgb(255 255 255 / .75); }
.bfa-tile-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; color: var(--gold); font-weight: 600; font-size: var(--text-sm); text-decoration: none; }
.bfa-tile-link i { transition: transform 200ms var(--t-ease); }
@media (hover: hover) and (pointer: fine) {
  .bfa-tile--photo:hover img { transform: scale(1.03); }
  .bfa-tile-link:hover i { transform: translateX(3px); }
  .bfa-tile-link:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* ---------- Ways to give: tier cards ---------- */
.bfa-tiers { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px; }
.bfa-tier { position: relative; display: grid; grid-template-rows: auto 1fr; padding: 8px; border-radius: var(--bfa-r); background: #fff; border: 1px solid var(--bfa-line); color: var(--ink); text-decoration: none; transition-property: transform, box-shadow, border-color; transition-duration: 240ms; transition-timing-function: var(--ease-enter); }
.bfa-tier figure { margin: 0; aspect-ratio: 16 / 10; border-radius: var(--bfa-r-in); overflow: hidden; background: var(--surface-muted); }
.bfa-tier figure img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgb(0 0 0 / .1); outline-offset: -1px; transition: transform 600ms var(--ease-standard); }
.bfa-tier-body { display: grid; gap: 8px; align-content: start; padding: 16px 14px 12px; }
.bfa-tier h3 { font-size: var(--h4); }
.bfa-tier p { margin: 0; color: var(--text-2); font-size: .9375rem; }
.bfa-tier-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--text-sm); font-weight: 600; }
.bfa-tier-cta i { transition: transform 200ms var(--t-ease); }
.bfa-tier--feature { grid-row: span 2; background: var(--ink); border-color: var(--ink); color: #fff; }
.bfa-tier--feature figure { aspect-ratio: 4 / 3; }
.bfa-tier--feature .bfa-tier-body { padding: 22px 18px 16px; gap: 12px; }
.bfa-tier--feature h3 { font-size: var(--h2); line-height: 1.1; }
.bfa-tier--feature p { color: rgb(255 255 255 / .78); font-size: 1rem; max-width: 40ch; }
.bfa-tier--feature .btn { justify-self: start; margin-top: 8px; }
.bfa-tag { justify-self: start; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: rgb(242 183 5 / .16); color: var(--gold); font-size: var(--text-xs); font-weight: 600; }
.bfa-tier--plain { grid-column: span 2; grid-template-rows: 1fr; background: var(--paper); }
.bfa-tier--plain .bfa-tier-body { align-content: center; padding: 20px 18px; grid-template-columns: auto 1fr; column-gap: 16px; }
.bfa-tier--plain .bfa-tier-body > i { grid-row: span 3; font-size: 1.75rem; color: var(--ink-3); }
.bfa-tier--plain .bfa-tier-cta { grid-column: 2; }
@media (hover: hover) and (pointer: fine) {
  .bfa-tier:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); border-color: var(--border-strong); }
  .bfa-tier:hover figure img { transform: scale(1.03); }
  .bfa-tier:hover .bfa-tier-cta i { transform: translate(2px, -2px); }
}
.bfa-tier:active { transform: scale(.99); }

/* ---------- Applications ---------- */
.bfa-apply-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.bfa-apply h2 { margin-bottom: 12px; }
.bfa-faq { margin-top: 8px; }

/* Arc timeline: a rail painted behind dot markers (no text-leading lines) */
.bfa-timeline { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 0; background: linear-gradient(var(--border-strong), var(--border-strong)) 7px 14px / 2px calc(100% - 40px) no-repeat; }
.bfa-timeline li { position: relative; display: grid; gap: 2px; padding: 6px 0 18px 32px; }
.bfa-timeline li::before { content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.bfa-timeline li:first-child::before { background: var(--gold); box-shadow: inset 0 0 0 2px var(--ink); }
.bfa-timeline b { font-weight: 600; color: var(--ink); }
.bfa-timeline span { font-size: var(--text-sm); color: var(--text-3); }

/* ---------- Trust band ---------- */
.bfa-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bfa-trust-grid > div { padding: 28px 24px 28px 0; display: grid; gap: 6px; align-content: start; }
.bfa-trust-grid > div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.bfa-trust-grid i { font-size: 1.5rem; color: var(--ink-3); margin-bottom: 6px; }
.bfa-trust-grid h3 { font-size: var(--h4); }
.bfa-trust-grid p { margin: 0; font-size: var(--text-sm); color: var(--text-2); }

/* ---------- Closing panel ---------- */
.bfa-close { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; padding: clamp(28px, 5vw, 56px); border-radius: var(--bfa-r); background: var(--ink); color: #fff; }
.bfa-close p { margin: 12px 0 0; max-width: 56ch; color: rgb(255 255 255 / .78); }
.bfa-close .ref { display: block; color: rgb(255 255 255 / .6); }

/* ---------- Give page ---------- */
.give-shell { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.give-main { display: grid; gap: 0; padding: clamp(20px, 3.4vw, 36px); border-radius: var(--bfa-r); background: #fff; border: 1px solid var(--bfa-line); }
.give-block { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--bfa-line); }
.give-legend { display: block; margin-bottom: 14px; font: 600 var(--text-lg)/1.3 var(--f-display); letter-spacing: -.01em; color: var(--ink); }

/* Stripe not set up yet */
.give-soon { display: grid; grid-template-columns: auto 1fr; gap: 16px; margin-bottom: 28px; padding: 20px; border-radius: 16px; background: var(--gold-soft); border: 1px solid #f0d98a; color: #4d3800; }
.give-soon-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #7a5800; font-size: 1.25rem; box-shadow: 0 1px 2px rgb(122 88 0 / .15); }
.give-soon h2 { font-size: var(--h4); color: var(--ink); }
.give-soon p { margin: 6px 0 0; font-size: var(--text-sm); }
.give-soon-alt { color: #5c4300; }

/* Fund radio cards with Arc's sliding selection ring */
.fund-cards { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fund-card { position: relative; display: block; }
.fund-card input { position: absolute; inset: 0; z-index: 2; opacity: 0; margin: 0; cursor: pointer; }
.fund-card-in { position: relative; display: grid; align-content: start; gap: 10px; height: 100%; padding: 6px 6px 14px; border-radius: 16px; border: 1px solid var(--border); background: #fff; transition-property: border-color, box-shadow, transform; transition-duration: 160ms; transition-timing-function: var(--t-ease); }
.fund-card-in img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; outline: 1px solid rgb(0 0 0 / .1); outline-offset: -1px; }
.fund-card-text { display: grid; gap: 2px; padding: 0 8px; }
.fund-card-text b { font-weight: 600; font-size: .9375rem; color: var(--ink); line-height: 1.3; }
.fund-card-text small { color: var(--text-3); font-size: var(--text-xs); line-height: 1.4; }
.fund-card-mark { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8125rem; box-shadow: 0 0 0 2px #fff; opacity: 0; transform: scale(.25); filter: blur(4px); transition-property: opacity, transform, filter; transition-duration: 200ms; transition-timing-function: cubic-bezier(.2, 0, 0, 1); }
.fund-card input:checked + .fund-card-in { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fund-card input:checked + .fund-card-in .fund-card-mark { opacity: 1; transform: none; filter: none; }
.fund-card input:focus-visible + .fund-card-in { outline: 2px solid var(--gold); outline-offset: 2px; }
.fund-card input:active + .fund-card-in { transform: scale(.98); }
.fund-ring { position: absolute; z-index: 1; top: 0; left: 0; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--ink); opacity: 0; pointer-events: none; transition: transform 300ms var(--ease-enter), width 300ms var(--ease-enter), height 300ms var(--ease-enter); }
.fund-cards.is-live .fund-ring { opacity: 1; }
.fund-cards.is-live .fund-card input:checked + .fund-card-in { box-shadow: none; border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .fund-card:hover .fund-card-in { border-color: var(--border-strong); box-shadow: var(--shadow-resting); } }

/* Amount tiles (PayPal / sweetgreen) + a large custom field */
.amount-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.amount-tile { position: relative; display: block; }
.amount-tile input { position: absolute; inset: 0; z-index: 1; opacity: 0; margin: 0; cursor: pointer; }
.amount-tile span { display: grid; place-items: center; align-content: center; height: 64px; border-radius: 12px; border: 1px solid var(--border-strong); background: #fff; font-size: 1.25rem; color: var(--ink); transition-property: border-color, box-shadow, background-color, color, transform; transition-duration: 160ms; transition-timing-function: var(--t-ease); }
.amount-tile small { display: none; font: 400 var(--text-xs)/1 var(--f-body); color: var(--text-3); margin-top: 4px; }
.amount-tile input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 4px 12px -4px rgb(7 29 58 / .4); }
.amount-tile input:checked + span small { color: rgb(255 255 255 / .7); }
.amount-tile input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.amount-tile input:active + span { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .amount-tile:hover input:not(:checked) + span { border-color: var(--ink); } }
.give-shell:has(input[name="frequency"][value="monthly"]:checked) .amount-tile small { display: block; }

.amount-field { display: grid; margin-top: 16px; }
.amount-field > label { margin-bottom: 8px; font-size: var(--text-sm); font-weight: 500; }
.amount-input { position: relative; display: flex; align-items: center; gap: 4px; height: 76px; padding: 0 20px; border: 1px solid var(--border-strong); border-radius: 14px; background: #fff; box-shadow: inset 0 1px 2px rgb(7 29 58 / .04); transition: border-color 150ms ease-out, box-shadow 150ms ease-out; }
.amount-input > span:first-child { font: 500 2rem/1 var(--f-figures); color: var(--text-3); }
.amount-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 2.25rem; font-weight: 500; color: var(--ink); -moz-appearance: textfield; }
.amount-input input::-webkit-outer-spin-button, .amount-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-input-per { display: none; font-size: var(--text-sm); color: var(--text-3); white-space: nowrap; }
.give-shell:has(input[name="frequency"][value="monthly"]:checked) .amount-input-per { display: block; }
.amount-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(242 183 5 / .35); }
@media (hover: hover) and (pointer: fine) { .amount-input:hover { border-color: var(--ink); } }
.amount-input--sm { height: var(--control-md); padding: 0 12px; border-radius: var(--radius-control); max-width: 240px; }
.amount-input--sm > span:first-child, .amount-input--sm input { font-size: var(--text-base); }

/* Gift Aid: a toggle card whose declaration fields reveal with the transitions.dev accordion (grid rows).
   CSS-only via :has(), so it works without JS. Collapsed fields are visibility:hidden, so not focusable. */
.giftaid { border-radius: 16px; background: var(--paper); border: 1px solid var(--bfa-line); transition: border-color 200ms var(--t-ease), background-color 200ms var(--t-ease); }
.giftaid-toggle { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; cursor: pointer; }
.giftaid-toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.giftaid-box { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--border-strong); background: #fff; color: var(--ink); transition-property: background-color, border-color; transition-duration: 150ms; transition-timing-function: var(--t-ease); }
.giftaid-box svg { width: 16px; height: 16px; }
.giftaid-box path, .need-box path, .apply-marker svg path { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 150ms var(--t-ease); }
.giftaid-toggle input:checked + .giftaid-box { background: var(--gold); border-color: #d9a300; }
.giftaid-toggle input:checked + .giftaid-box path { stroke-dashoffset: 0; transition: stroke-dashoffset 350ms var(--t-ease); }
.giftaid-toggle input:focus-visible + .giftaid-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.giftaid-copy { display: grid; gap: 6px; }
.giftaid-copy b { font-weight: 600; color: var(--ink); }
.giftaid-copy > span { font-size: var(--text-xs); line-height: 1.55; color: var(--text-3); }
.giftaid-extra { margin-left: 6px; color: var(--success); font-weight: 500; }
.giftaid-reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 250ms var(--t-ease); }
.giftaid-fields { overflow: hidden; visibility: hidden; opacity: 0; padding: 0 18px; transition: opacity 200ms var(--t-ease), visibility 0s linear 250ms; }
.giftaid-fields > :first-child { margin-top: 4px; }
.giftaid-fields .form-2 { padding-bottom: 18px; }
.giftaid-note { margin: 0 0 14px; padding-top: 14px; border-top: 1px solid var(--bfa-line); font-size: var(--text-sm); color: var(--text-2); }
.giftaid:has(input[name="gift_aid"]:checked) { background: #fff; border-color: var(--ink); }
.giftaid:has(input[name="gift_aid"]:checked) .giftaid-reveal { grid-template-rows: 1fr; }
.giftaid:has(input[name="gift_aid"]:checked) .giftaid-fields { visibility: visible; opacity: 1; transition: opacity 250ms var(--t-ease) 60ms, visibility 0s; }

/* Summary card */
.give-summary { position: sticky; top: 92px; display: grid; gap: 12px; }
.give-summary-card { padding: 8px; border-radius: var(--bfa-r); background: #fff; border: 1px solid var(--bfa-line); box-shadow: var(--shadow-raised); }
.give-summary-photo { margin: 0; aspect-ratio: 16 / 8; border-radius: var(--bfa-r-in); overflow: hidden; background: var(--surface-muted); }
.give-summary-photo img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgb(0 0 0 / .1); outline-offset: -1px; transition: opacity 200ms var(--t-ease); }
.give-summary-photo img.is-swapping { opacity: 0; }
.give-summary-body { display: grid; gap: 16px; padding: 16px 12px 10px; }
.give-summary-to { margin: 0; font-size: var(--text-sm); color: var(--text-3); }
.give-summary-to b { display: block; margin-top: 2px; font: 600 var(--h4)/1.3 var(--f-display); color: var(--ink); }
.give-lines { margin: 0; display: grid; gap: 10px; }
.give-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--text-sm); }
.give-lines dt { color: var(--text-2); }
.give-lines dd { margin: 0; color: var(--ink); }
.give-lines [data-sum-ga] { color: var(--success); }
.give-total { padding-top: 12px; border-top: 1px solid var(--bfa-line); align-items: end !important; }
.give-total dt { display: grid; gap: 2px; font-weight: 600; color: var(--ink); }
.give-total dt small { font-weight: 400; color: var(--text-3); font-size: var(--text-xs); }
.give-total dd { font-size: 2rem; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.give-stripe { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: var(--text-xs); color: var(--text-3); }
.give-stripe i { font-size: 1rem; color: var(--ink-3); flex: none; }
.give-summary .btn i { order: -1; }
.give-verse { padding: 22px 24px; border-radius: var(--bfa-r); background: var(--ink); color: #fff; }
.give-verse blockquote { margin: 0; font: 500 var(--text-lg)/1.45 var(--f-display); letter-spacing: -.01em; }
.give-verse .ref { color: rgb(255 255 255 / .62); }

/* transitions.dev number pop-in */
@keyframes t-digit-pop-in { from { transform: translateY(8px); opacity: 0; filter: blur(2px); } to { transform: none; opacity: 1; filter: blur(0); } }
.t-digit-group { display: inline-flex; align-items: baseline; }
.t-digit { display: inline-block; }
.t-digit-group.is-animating .t-digit { animation: t-digit-pop-in 500ms var(--t-pop) both; }
.t-digit-group.is-animating .t-digit[data-stagger="1"] { animation-delay: 70ms; }
.t-digit-group.is-animating .t-digit[data-stagger="2"] { animation-delay: 140ms; }

/* ---------- Get support: steps ---------- */
.apply-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.apply-side { position: sticky; top: 92px; display: grid; gap: 24px; }
.apply-count { margin: 0; font: 500 var(--text-sm)/1 var(--f-figures); color: var(--text-3); }
/* Arc stepper, vertical: marker morphs from dot to check when a step completes */
.apply-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; background: linear-gradient(var(--border), var(--border)) 13px 28px / 2px calc(100% - 56px) no-repeat; }
.apply-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 8px 0; }
.apply-marker { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--border-strong); color: #fff; transition-property: background-color, box-shadow; transition-duration: 250ms; transition-timing-function: var(--t-ease); }
.apply-marker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition-property: transform, opacity, background-color; transition-duration: 200ms; transition-timing-function: var(--t-ease); }
.apply-marker svg { position: absolute; width: 16px; height: 16px; }
.apply-step-text { display: grid; gap: 2px; padding-top: 3px; }
.apply-step-text b { font-weight: 600; font-size: .9375rem; color: var(--text-3); transition: color 200ms var(--t-ease); }
.apply-step-text small { font-size: var(--text-xs); color: var(--text-3); overflow-wrap: anywhere; }
.apply-steps li.is-current .apply-marker { background: #fff; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgb(242 183 5 / .35); }
.apply-steps li.is-current .apply-marker-dot { background: var(--ink); }
.apply-steps li.is-current b, .apply-steps li.is-done b { color: var(--ink); }
.apply-steps li.is-done .apply-marker { background: var(--ink); box-shadow: none; }
.apply-steps li.is-done .apply-marker-dot { transform: scale(.25); opacity: 0; }
.apply-steps li.is-done .apply-marker svg path { stroke-dashoffset: 0; transition: stroke-dashoffset 350ms var(--t-ease) 80ms; }
.apply-steps li.is-done small { color: var(--success); }
.apply-reassure { padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--bfa-line); }
.apply-reassure h2 { font-size: var(--h4); margin-bottom: 12px; }
.apply-reassure ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.apply-reassure li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: var(--text-sm); color: var(--text-2); line-height: 1.5; }
.apply-reassure i { font-size: 1.125rem; color: var(--ink-3); margin-top: 1px; }

.apply-card { position: relative; overflow: hidden; border-radius: var(--bfa-r); background: #fff; border: 1px solid var(--bfa-line); box-shadow: var(--shadow-resting); }
.apply-progress { height: 4px; background: var(--surface-muted); }
.apply-progress span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, .3333)); transition: transform 400ms var(--ease-enter); }
.apply-panel { padding: clamp(22px, 3.6vw, 40px); gap: 22px; }
.apply-panel + .apply-panel { border-top: 1px solid var(--bfa-line); }
.apply-card.is-live .apply-panel + .apply-panel { border-top: 0; }
.apply-panel header h2 { font-size: var(--h2); }
.apply-panel header p { margin: 8px 0 0; color: var(--text-2); }
.apply-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 22px; border-top: 1px solid var(--bfa-line); }
.apply-count-hint { display: flex; justify-content: space-between; gap: 12px; }
.apply-count-hint .fig { flex: none; }
.apply-count-hint .fig.is-ok { color: var(--success); }
.apply-consent { padding: 16px 16px 16px 44px; border-radius: 12px; background: var(--paper); }
.apply-consent input { left: 16px; top: 17px; }
.apply-amount { max-width: 280px; }
/* transitions.dev page-side-by-side: the entering step slides in from the side it comes from */
@keyframes bfa-step-in { from { opacity: 0; transform: translateX(var(--from, 12px)); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }
.apply-panel.is-entering { animation: bfa-step-in 280ms var(--t-ease) both; }

/* Need checkbox cards (transitions.dev checkbox-check) */
.need-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.need { position: relative; display: block; }
.need input { position: absolute; inset: 0; z-index: 1; opacity: 0; margin: 0; cursor: pointer; }
.need > span { display: flex; align-items: center; gap: 12px; min-height: 56px; height: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: #fff; font-size: var(--text-sm); font-weight: 500; color: var(--ink); transition-property: border-color, box-shadow, background-color, transform; transition-duration: 160ms; transition-timing-function: var(--t-ease); }
.need-box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); color: #fff; transition-property: background-color, border-color; transition-duration: 150ms; }
.need-box svg { width: 14px; height: 14px; }
.need input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fbfbfa; }
.need input:checked + span .need-box { background: var(--ink); border-color: var(--ink); }
.need input:checked + span .need-box path { stroke-dashoffset: 0; transition: stroke-dashoffset 350ms var(--t-ease); }
.need input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.need input:active + span { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .need:hover input:not(:checked) + span { border-color: var(--ink); } }

/* transitions.dev error-state-shake */
@keyframes t-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.is-shaking { animation: t-shake 320ms var(--t-ease); }
.section-fund .input[aria-invalid="true"], .section-fund .textarea[aria-invalid="true"] { border-color: var(--danger); }

/* ---------- Sponsor ---------- */
.kind-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kind-card { position: relative; display: block; color: var(--ink); text-decoration: none; }
.kind-card input { position: absolute; inset: 0; z-index: 2; opacity: 0; margin: 0; cursor: pointer; }
.kind-card-in { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 12px; height: 100%; padding: 6px 6px 16px; border-radius: 16px; border: 1px solid var(--border); background: #fff; transition-property: border-color, box-shadow, transform; transition-duration: 160ms; transition-timing-function: var(--t-ease); }
.kind-photo { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-muted); }
.kind-photo img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgb(0 0 0 / .1); outline-offset: -1px; transition: transform 600ms var(--ease-standard); }
.kind-text { display: grid; gap: 4px; align-content: start; padding: 0 10px; }
.kind-text b { font-weight: 600; line-height: 1.3; }
.kind-text small { color: var(--text-3); font-size: var(--text-sm); line-height: 1.45; }
.kind-card input:checked + .kind-card-in { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), var(--shadow-raised); }
.kind-card input:checked + .kind-card-in .fund-card-mark { opacity: 1; transform: none; filter: none; }
.kind-card input:focus-visible + .kind-card-in, .kind-card--link:focus-visible .kind-card-in { outline: 2px solid var(--gold); outline-offset: 2px; }
.kind-card--link:focus-visible { outline: 0; }
.kind-card input:active + .kind-card-in, .kind-card--link:active .kind-card-in { transform: scale(.98); }
.kind-card--link .kind-card-in { background: var(--paper); border-style: dashed; }
.kind-go { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow-resting); transition: transform 200ms var(--t-ease); }
@media (hover: hover) and (pointer: fine) {
  .kind-card:hover .kind-card-in { border-color: var(--border-strong); }
  .kind-card:hover .kind-photo img { transform: scale(1.03); }
  .kind-card--link:hover .kind-go { transform: translate(2px, -2px); }
}
.sponsor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.sponsor-card { padding: clamp(20px, 3.4vw, 36px); border-radius: var(--bfa-r); background: #fff; border: 1px solid var(--bfa-line); }
.sponsor-prompt { margin: -2px 0 10px; font-size: var(--text-sm); color: var(--text-2); }
/* transitions.dev text-states-swap */
.sponsor-prompt.is-swapping { opacity: 0; transform: translateY(4px); }
.sponsor-prompt { transition: opacity 150ms ease-in-out, transform 150ms ease-in-out; }
.sponsor-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: var(--text-sm); }
.sponsor-grid .give-verse { position: sticky; top: 92px; }

/* ---------- Thanks pages (transitions.dev success-check) ---------- */
.bfa-done { padding: clamp(40px, 7vw, 96px) 0 0; }
.bfa-done-card { display: grid; justify-items: center; text-align: center; gap: 16px; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px); border-radius: var(--bfa-r); background: #fff; border: 1px solid var(--bfa-line); box-shadow: var(--shadow-raised); }
.bfa-done-card h1 { max-width: 18ch; }
.bfa-done-card .lead { margin: 0; }
.bfa-done-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: var(--gold); margin-bottom: 4px; box-shadow: 0 0 0 8px var(--gold-soft); }
.bfa-done-mark--wait { color: #fff; font-size: 1.75rem; box-shadow: 0 0 0 8px var(--surface-muted); }
.t-success-check { display: inline-block; transform-origin: center; }
.t-success-check svg { display: block; width: 40px; height: 40px; overflow: visible; }
.js .t-success-check[data-state="out"] { opacity: 0; }
.js .t-success-check[data-state="out"] svg path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.t-success-check[data-state="in"] { animation: t-check-fade 500ms var(--t-ease) forwards, t-check-rotate 500ms var(--t-ease) forwards, t-check-blur 500ms var(--t-ease) forwards, t-check-bob 500ms cubic-bezier(.34, 1.35, .64, 1) forwards; }
.t-success-check[data-state="in"] svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: t-check-draw 500ms var(--t-ease) 80ms forwards; }
@keyframes t-check-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes t-check-rotate { from { transform: rotate(80deg); } to { transform: rotate(0deg); } }
@keyframes t-check-blur { from { filter: blur(10px); } to { filter: blur(0); } }
@keyframes t-check-bob { from { translate: 0 40px; } to { translate: 0 0; } }
@keyframes t-check-draw { to { stroke-dashoffset: 0; } }
.bfa-receipt { width: 100%; max-width: 420px; margin: 8px 0 0; display: grid; border-top: 1px solid var(--bfa-line); }
.bfa-receipt > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bfa-line); font-size: var(--text-sm); }
.bfa-receipt dt { color: var(--text-3); }
.bfa-receipt dd { margin: 0; font-weight: 600; color: var(--ink); }
.bfa-ref { display: grid; gap: 4px; justify-items: center; padding: 16px 28px; border-radius: 14px; background: var(--paper); border: 1px dashed var(--border-strong); }
.bfa-ref span { font-size: var(--text-sm); color: var(--text-3); }
.bfa-ref b { font-size: 1.75rem; font-weight: 500; color: var(--ink); letter-spacing: .02em; }
.bfa-ref small { font-size: var(--text-xs); color: var(--text-3); }
.bfa-timeline--done { width: 100%; max-width: 440px; text-align: left; margin: 12px 0 8px; }
.bfa-timeline--done li:first-child::before { background: var(--ink); }
.bfa-done-actions { justify-content: center; margin-top: 8px; }
.bfa-done-verse { margin: 24px auto 0; max-width: 52ch; text-align: center; color: var(--text-2); font: 500 var(--text-base)/1.55 var(--f-display); }
.bfa-done-verse .ref { display: block; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bfa-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bfa-tier--feature { grid-row: auto; grid-column: span 2; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .bfa-tier--feature figure { aspect-ratio: auto; min-height: 280px; }
  .kind-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .bfa-hero-grid, .bfa-apply-grid { grid-template-columns: 1fr; }
  .bfa-quick { max-width: 560px; }
  .give-shell, .sponsor-grid { grid-template-columns: 1fr; }
  .give-summary, .sponsor-grid .give-verse { position: static; }
  .apply-shell { grid-template-columns: 1fr; }
  .apply-side { display: contents; }
  .apply-shell { gap: 16px; }
  .apply-card { order: 2; }
  .apply-steps { grid-auto-flow: column; grid-auto-columns: 1fr; background: none; }
  .apply-steps li { grid-template-columns: 1fr; justify-items: start; gap: 8px; }
  .apply-steps small { display: none; }
  .apply-reassure { order: 3; margin-top: 8px; }
  .bfa-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bfa-trust-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .bfa-trust-grid > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 760px) {
  .bfa-bento { grid-template-columns: 1fr; }
  .bfa-tile--wide { grid-column: auto; }
  .bfa-tile { min-height: 0; }
  .bfa-tile > i { padding-bottom: 12px; }
  .bfa-tile--photo { min-height: 280px; }
  .bfa-tiers { grid-template-columns: 1fr; }
  .bfa-tier--feature, .bfa-tier--plain { grid-column: auto; }
  .bfa-tier--feature { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .bfa-tier--feature figure { min-height: 0; aspect-ratio: 16 / 10; }
  .bfa-close { grid-template-columns: 1fr; }
  .fund-cards { grid-template-columns: 1fr; }
  .fund-card-in { grid-template-columns: 96px 1fr; align-items: center; padding: 6px 44px 6px 6px; }
  .fund-card-in img { aspect-ratio: 4 / 3; }
  .fund-card-text { padding: 0; }
  .fund-card-mark { top: 50%; margin-top: -13px; }
  .amount-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need-grid { grid-template-columns: 1fr; }
  .kind-cards { grid-template-columns: 1fr; }
  .kind-card-in { grid-template-columns: 104px 1fr; grid-template-rows: auto; align-items: center; padding: 6px 44px 6px 6px; }
  .kind-text { padding: 0; }
  .kind-card .fund-card-mark, .kind-go { top: 50%; margin-top: -13px; }
}
@media (max-width: 520px) {
  .bfa-trust-grid { grid-template-columns: 1fr; }
  .bfa-trust-grid > div, .bfa-trust-grid > div + div { padding: 20px 0; border-left: 0; }
  .bfa-trust-grid > div + div { border-top: 1px solid var(--border); }
  .apply-nav .btn { flex: 1; }
  .amount-input { height: 68px; padding: 0 16px; }
  .amount-input input { font-size: 1.875rem; }
  .give-total dd { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .t-digit-group .t-digit, .apply-panel.is-entering, .is-shaking { animation: none !important; }
  .t-success-check, .js .t-success-check[data-state="out"] { animation: none !important; opacity: 1; }
  .t-success-check svg path, .js .t-success-check[data-state="out"] svg path { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* Guided application entry (links to the adaptive intake at /start/support) */
.apply-guided { display: inline-grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--bfa-line); box-shadow: var(--shadow-resting); color: var(--ink); text-decoration: none; max-width: 560px; transition-property: border-color, box-shadow, transform; transition-duration: 160ms; transition-timing-function: var(--t-ease); }
.apply-guided > i:first-child { font-size: 1.5rem; color: var(--ink-3); }
.apply-guided span { display: grid; gap: 2px; }
.apply-guided b { font-weight: 600; }
.apply-guided small { font-size: var(--text-sm); color: var(--text-3); }
.apply-guided > i:last-child { transition: transform 200ms var(--t-ease); }
.apply-guided:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) { .apply-guided:hover { border-color: var(--border-strong); box-shadow: var(--shadow-raised); } .apply-guided:hover > i:last-child { transform: translateX(3px); } }
