/* openbaab.com/support-us: a gift to Baab itself.
   One action on the first screen of a phone (the amount and the Give button),
   the story under it for whoever scrolls. Builds on site.css: the same tokens,
   type scale, section rhythm and bar. The hero is a night band in both modes,
   like the home hero; the bands under it alternate --ground and --alt. */

/* ── Hero: the night band ───────────────────────────────────────────── */
.give-hero { position: relative; background: var(--night); color: #F4FAFA; }
.give-hero :focus-visible { outline-color: var(--complete-gold); }

/* Phone: the frame runs under the floating bar, a short window on the family
   and the lit door, its foot fading into the band; the words start on the fade. */
.give-scene { position: relative; display: block; overflow: hidden; height: clamp(232px, 64vw, 320px); background: var(--scene-ground); }
@media (max-width: 899px) {
  .give-scene {
    margin-left: calc(-1 * max(var(--gutter), env(safe-area-inset-left)));
    margin-right: calc(-1 * max(var(--gutter), env(safe-area-inset-right)));
  }
}
.give-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.give-scene::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 16, 19, 0.55) 0, rgba(5, 16, 19, 0) 110px),
    linear-gradient(to top, #0A1A1D 0, rgba(10, 26, 29, 0.8) 18%, rgba(10, 26, 29, 0) 56%);
}
.give-inner { position: relative; z-index: 1; margin-top: -56px; padding-bottom: var(--section); }
.give-hero .kicker { color: #9ADDE6; }
.give-hero h1 { color: #FFFFFF; max-width: 14ch; }
.give-hero .lede { margin-top: var(--s2); color: #C9DADC; max-width: 36ch; }

@media (min-width: 900px) {
  .give-hero { padding-top: 76px; }
  .give-hero .give-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--s9);
    align-items: center; padding-top: var(--s9); padding-bottom: var(--s11);
  }
  .give-inner { margin-top: 0; padding-bottom: 0; max-width: 500px; }
  .give-scene {
    order: 2; height: auto; aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    box-shadow: 0 0 0 1px rgba(238, 246, 246, 0.08);
  }
  .give-scene::after { display: none; }
  .give-scene img { object-position: center; }
}

/* ── The gift: amounts, Other, Give ─────────────────────────────────── */
.gift { margin-top: var(--s4); }
.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s1); min-height: 112px; }
/* The chips are drawn by the script; the row keeps their room so nothing moves. */
.amounts .chip:last-child { grid-column: 1 / -1; }
@media (min-width: 360px) {
  .amounts { grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 52px; }
  .amounts .chip:last-child { grid-column: auto; }
}
.chip {
  appearance: none; border: 0; cursor: pointer;
  min-height: 52px; padding: 0 4px; border-radius: 14px;
  background: rgba(238, 246, 246, 0.08);
  box-shadow: inset 0 0 0 1px rgba(238, 246, 246, 0.10);
  color: #EEF6F6;
  font: inherit; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .chip:hover { background: rgba(238, 246, 246, 0.14); } }
.chip[aria-pressed="true"] { background: #3CB8C9; color: #06262B; box-shadow: none; }

.other {
  display: flex; align-items: center; gap: 6px;
  margin-top: var(--s1); padding: 0 var(--s2); height: 52px;
  border-radius: 14px;
  background: rgba(238, 246, 246, 0.06);
  box-shadow: inset 0 0 0 1.5px rgba(238, 246, 246, 0.16);
}
.other[hidden] { display: none; }
.other:focus-within { box-shadow: inset 0 0 0 2px #3CB8C9; }
.other[data-bad="true"] { box-shadow: inset 0 0 0 2px #FF8A80; }
.other span { font-size: 19px; font-weight: 600; color: #A9C3C7; }
.other input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: #FFFFFF; font: inherit; font-size: 19px; font-weight: 600;
}
.other input::placeholder { color: #7F9A9E; }
@keyframes refuse {
  20% { transform: translateX(-6px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: no-preference) { .other.shake { animation: refuse 0.35s linear; } }
.limit, .give-error { margin-top: var(--s1); font-size: 15px; color: #FF8A80; }

.give-button {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; margin-top: var(--s2); padding: 0 var(--s3);
  border: 0; border-radius: 14px; cursor: pointer;
  background: #3CB8C9; color: #06262B;
  font: inherit; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .give-button:hover:not(:disabled) { background: #5CC6D4; } }
.give-button:active:not(:disabled) { transform: scale(0.98); }
.give-button:disabled { cursor: default; background: rgba(238, 246, 246, 0.12); color: #A9C3C7; }
.give-fine { margin-top: 12px; font-size: var(--fs-small); color: #A9C3C7; }

/* Paying here: the wallet button first and large, the card form under it
   (Stripe.js draws both; /donate/pay.js). */
.wallet-slot { margin-top: var(--s2); min-height: 52px; border-radius: 14px; }
.wallet-slot[hidden] { display: none; }
.wallet-slot[data-loading="true"] { background: rgba(238, 246, 246, 0.08); }
.card-toggle {
  display: block; width: 100%; margin-top: 10px; padding: 12px 0;
  border: 0; background: none; cursor: pointer;
  color: #9ADDE6; font: inherit; font-size: 16px; font-weight: 600;
}
.card-toggle[hidden] { display: none; }
.pay-card { margin-top: var(--s2); }
.pay-card[hidden] { display: none; }
.field { display: block; }
.field span { display: block; margin-bottom: 6px; font-size: var(--fs-small); color: #A9C3C7; }
.field input {
  display: block; width: 100%; height: 50px; padding: 0 14px;
  border: 0; border-radius: 14px; outline: 0;
  background: #132A2E; box-shadow: inset 0 0 0 1.5px rgba(238, 246, 246, 0.16);
  color: #FFFFFF; font: inherit; font-size: 16px;
}
.field input::placeholder { color: #7F9A9E; }
.field input:focus { box-shadow: inset 0 0 0 2px #3CB8C9; }
.card-element { margin-top: 14px; min-height: 120px; }
.give-button[hidden] { display: none; }

/* ── The bar at the bottom of a phone once the hero is gone ─────────── */
.give-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 0 max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
  visibility: hidden;
}
.give-dock.on { transform: none; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .give-dock { transition: transform 240ms ease, visibility 0s linear 240ms; }
  .give-dock.on { transition: transform 240ms ease, visibility 0s; }
}
.give-dock-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s2);
  max-width: 560px; margin: 0 auto; padding: 8px 8px 8px var(--s2);
  border-radius: 20px;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  box-shadow: 0 0 0 1px rgba(238, 246, 246, 0.10), 0 18px 44px -20px rgba(0, 0, 0, 0.7);
}
.give-dock-inner p { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; color: #C9DADC; }
.give-dock .give-button { width: auto; margin-top: 0; min-height: 48px; padding: 0 20px; font-size: 17px; }
.give-dock :focus-visible { outline-color: var(--complete-gold); }
@media (min-width: 900px) { .give-dock { display: none; } }

/* ── The bands under the hero ───────────────────────────────────────── */
.give-band { padding: var(--section) 0; }
.give-band.alt { background: var(--alt); }
.give-band h2 { max-width: 22ch; }
.give-band h2 + p { margin-top: var(--s2); }
.give-band p { max-width: 62ch; color: var(--ink-soft); }
.give-band p + p { margin-top: var(--s2); }

/* The work, counted. Plain figures, no counters, no icons. */
.since { margin-top: var(--s5); font-size: var(--fs-small); font-weight: 650; color: var(--teal); }
.figures { margin-top: var(--s2); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s2); list-style: none; }
@media (min-width: 820px) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); } }
.figures li { padding-top: var(--s2); border-top: 1px solid var(--line-strong); }
.figures strong {
  display: block; font-family: var(--round); font-weight: 700;
  font-size: clamp(40px, 30px + 2.6vw, 56px); line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.figures span { display: block; margin-top: var(--s1); font-size: 15px; line-height: 1.4; color: var(--ink-soft); text-wrap: pretty; }
.figures-note { margin-top: var(--s3); font-size: var(--fs-small); }

/* Unwritten facts: impossible to miss, so they cannot ship by accident. */
.ph {
  display: block; padding: var(--s2); border-radius: 14px;
  border: 2px dashed var(--pro); background: var(--teal-wash);
  color: var(--pro) !important; font-weight: 600; font-size: 16px;
}

/* Ways to help that cost nothing: rows, each one tap. */
.helps { margin-top: var(--s4); list-style: none; border-top: 1px solid var(--line); max-width: 760px; }
.helps li { border-bottom: 1px solid var(--line); }
.help {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2); align-items: center;
  width: 100%; min-height: 72px; padding: var(--s2) 0;
  background: none; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
}
.help:hover { text-decoration: none; }
.help-title { display: block; font-size: var(--fs-body); font-weight: 600; line-height: 1.35; }
.help-sub { display: block; margin-top: 2px; font-size: 15px; line-height: 1.4; color: var(--ink-soft); text-wrap: pretty; }
.help-go { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--teal-hover); white-space: nowrap; }
.help-go svg { transition: transform 0.2s ease; }
@media (hover: hover) { .help:hover .help-go svg { transform: translateX(3px); } }
@media (max-width: 359px) { .help-go .go-word { display: none; } }

/* The footer sits clear of the bar at the bottom of a phone. */
@media (max-width: 899px) { .give-page + .foot { padding-bottom: max(112px, calc(88px + env(safe-area-inset-bottom))); } }
