/* ─────────────────────────────────────────
   Support Lingadoo page (support.php)
   Namespaced .sup-* — page-specific only.

   Deliberately NOT a SaaS pricing page: warm paper
   backdrop, hand-drawn type (Caveat / Short Stack —
   already used on splash_preview.php), tilted "sticker"
   cards, and the img/classes/ storybook character set
   instead of a hero photo or icon grid. Reuses the same
   green selection language as the rest of the app
   (--sel-outline/--sel-border) and the site's team-color
   tokens for the little card tags.
───────────────────────────────────────── */

.sup-page {
  --sup-cream: #FBF6E9;
  --sup-paper: #FFFDF7;
  --sup-ink: #23262E;
  --sup-ink-soft: #57534a;
  --sup-line: rgba(35,38,46,0.16);
  --font-hand: "Caveat", cursive;
  --font-cursive: "Short Stack", cursive;

  color: var(--sup-ink);
}

.sup-main {
  width: 100%;
}

/* ── Bands: plain vertical rhythm, no full-width color blocks or hairline
   dividers — sections read as a stack of pages, not a corporate landing
   page split into bands. ── */
.sup-band {
  width: 100%;
  padding: 30px 0;
  box-sizing: border-box;
}

.sup-band--hero {
  padding-top: 20px;
  padding-bottom: 12px;
}

.sup-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.sup-container--narrow {
  max-width: 680px;
}

/* ── Paper "sheet" wrapper used by the heavier sections — a card resting
   on the cream backdrop rather than a full-bleed band. ── */
.sup-sheet {
  background: var(--sup-paper);
  border: 1.5px solid var(--sup-line);
  border-radius: 26px;
  box-shadow: 0 16px 32px rgba(35,38,46,0.07);
  padding: 38px 34px;
}

.sup-band:nth-of-type(3) .sup-sheet { transform: rotate(-0.35deg); }
.sup-band:nth-of-type(4) .sup-sheet { transform: rotate(0.3deg); }
.sup-band:nth-of-type(5) .sup-sheet { transform: rotate(-0.3deg); }
.sup-band:nth-of-type(6) .sup-sheet { transform: rotate(0.25deg); }

.sup-sheet--schools {
  text-align: center;
  background: #FBF3FF;
}

/* ── Hero class photo ── */
.sup-cast {
  display: flex;
  justify-content: center;
  margin: 4px 0 18px;
}

.sup-cast-photo {
  display: block;
  width: auto;
  max-width: min(420px, 100%);
  height: 108px;
  object-fit: contain;
}

/* ── Eyebrow — a handwritten caption sitting under the character cast,
   not a corporate uppercase label ── */
.sup-eyebrow {
  display: block;
  text-align: center;
  margin: 0 0 14px;
  font-family: var(--font-cursive);
  font-size: 17px;
  font-weight: 400;
  color: #4b5f8c;
  transform: rotate(-2.5deg);
}

/* ── Hero — centered to match the character cast and eyebrow caption
   above; a left-aligned block here read as accidentally off-kilter
   under a centered illustration. ── */
.sup-hero-title {
  margin: 0 0 16px;
  font-size: clamp(26px, 4.4vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--sup-ink);
  letter-spacing: -0.01em;
  text-align: center;
}

.sup-hero-sub {
  margin: 0 auto;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--sup-ink-soft);
  max-width: 560px;
  text-align: center;
}

.sup-heart {
  margin-left: 4px;
  vertical-align: middle;
  transform: translateY(-1px) rotate(-4deg);
  opacity: 0.8;
}

/* ── Creator note: a tilted paper note, not a pull-quote block ── */
.sup-note-card {
  position: relative;
  background: var(--sup-paper);
  border: 1.5px solid var(--sup-line);
  border-radius: 12px;
  box-shadow: 0 14px 26px rgba(35,38,46,0.09);
  padding: 32px 32px 26px;
  transform: rotate(-1deg);
}

.sup-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 92px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(250, 204, 21, 0.55);
  border: 1px solid rgba(202, 138, 4, 0.25);
}

/* ── Sign-off row: signature + email on the left, founder snapshot on the
   right — normal flow (not absolute), so the photo can never sit on top
   of any text. ── */
.sup-note-signoff {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18px;
  margin: 18px 0 20px;
}

.sup-note-signoff-text {
  flex: 0 1 auto;
}

.sup-note-signoff-text .sup-note-sig { margin: 0; }
.sup-note-signoff-text .sup-note-email { margin: 4px 0 0; }

/* ── Founder photo: a Polaroid snapshot taped in next to the signature,
   like one tucked into the corner of a handwritten letter. Top-aligned
   with the signature line (not centered/bottom) so the row's own height
   comes from the photo without inflating the gap above the signature. ── */
.sup-note-photo-wrap {
  position: relative;
  flex: 0 0 auto;
  transform: rotate(5deg);
}

.sup-note-photo-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 46px;
  height: 18px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(250, 204, 21, 0.55);
  border: 1px solid rgba(202, 138, 4, 0.25);
  z-index: 1;
}

.sup-polaroid {
  position: relative;
  background: #fff;
  padding: 7px 7px 18px;
  border-radius: 2px;
  box-shadow: 0 14px 26px rgba(35,38,46,0.24), 0 2px 6px rgba(35,38,46,0.14);
}

.sup-polaroid-img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 1px;
}

.sup-note-label {
  margin: 0 0 14px;
  font-family: var(--font-cursive);
  font-size: 17px;
  font-weight: 400;
  color: #8a6d1f;
  transform: rotate(-1deg);
}

.sup-note-p {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: rgba(35,38,46,0.85);
}

.sup-note-sig {
  margin: 18px 0 0;
  font-family: var(--font-hand);
  font-size: 24px;
  font-weight: 700;
  color: var(--sup-ink);
}

.sup-note-email {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: rgba(35,38,46,0.85);
}

.sup-note-email a {
  color: inherit;
  text-decoration: none;
}

/* ── Section titles ── */
.sup-section-title {
  margin: 0 0 22px;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--sup-ink);
}

.sup-section-title--center {
  text-align: center;
}

.sup-options-intro {
  max-width: 590px;
  margin: -10px auto 26px;
  color: var(--sup-ink-soft);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance;
}

/* ── Support option cards ──
   Flexbox (not grid): 3 equal cards, one row on wide screens, wrapping on
   tablet and a single column on mobile (see responsive section).
   Fixed flex-basis (not flex-grow) keeps all 3 the same size at every
   width, and justify-content:center keeps a wrapped/partial row centered
   if that ever changes. */
.sup-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 18px;
  margin: 0 0 20px;
}

.sup-card {
  --tilt: 0deg;
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - 36px) / 3);
  flex-direction: column;
  background: var(--sup-paper);
  border: 2px solid var(--sup-ink);
  border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 3px 4px 0 rgba(35,38,46,0.14);
  transform: rotate(var(--tilt));
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.sup-card:nth-child(1) { --tilt: -1deg; }
.sup-card:nth-child(2) { --tilt: 0.8deg; }
.sup-card:nth-child(3) { --tilt: -0.7deg; }

.sup-card:hover,
.sup-card:focus-within,
.sup-card:has(.sup-radio:checked) {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 5px 7px 0 rgba(35,38,46,0.18);
}

.sup-card:has(.sup-radio:checked) {
  border-color: var(--sel-border);
}

.sup-card-tag {
  position: absolute;
  top: -9px;
  left: 22px;
  width: 34px;
  height: 11px;
  border-radius: 3px;
  transform: rotate(-4deg);
  opacity: 0.9;
}
.sup-card:nth-child(1) .sup-card-tag { background: var(--team-blue); }
.sup-card:nth-child(2) .sup-card-tag { background: var(--team-orange); }
.sup-card:nth-child(3) .sup-card-tag { background: var(--team-green); }

.sup-suggested-badge {
  position: absolute;
  top: -17px;
  right: 18px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--sup-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.sup-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.sup-radio:focus-visible ~ .sup-card-face {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 10px;
}

.sup-card-face {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  flex: 1;
}

.sup-card-check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(35,38,46,0.3);
  background: #fff;
  box-sizing: border-box;
}

.sup-card:has(.sup-radio:checked) .sup-card-check {
  border-color: var(--sel-border);
  background: color-mix(in srgb, var(--sel-border) 85%, #16a34a 15%);
}

.sup-card:has(.sup-radio:checked) .sup-card-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.sup-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--sup-ink);
  line-height: 1.1;
  margin: 0 0 6px;
  padding-right: 30px;
}

.sup-price-period {
  font-size: 13px;
  font-weight: 700;
  color: #9a9382;
  margin-left: 2px;
}

.sup-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--sup-ink);
  margin: 0 0 8px;
}

.sup-desc {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--sup-ink-soft);
  margin: 0 0 16px;
  flex: 1;
}

.sup-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  border: 2px solid var(--sup-ink);
  background: transparent;
  color: var(--sup-ink);
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.sup-card-btn:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.sup-card:has(.sup-radio:checked) .sup-card-btn {
  background: var(--sup-ink);
  color: #ffffff;
}

/* ── Custom monthly-amount entry bar — compact, just wide enough for a
   1-4 digit amount, matching the one-time custom field's treatment. ── */
.sup-custom-input-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 8px 10px;
  border: 1.5px solid var(--sup-line);
  border-radius: 10px;
  background: #FBF9F2;
}

.sup-custom-prefix {
  font-weight: 800;
  color: var(--sup-ink-soft);
}

.sup-custom-input {
  flex: none;
  width: 46px;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
  color: var(--sup-ink);
  font-family: inherit;
  padding: 0 2px;
  -moz-appearance: textfield;
}

.sup-custom-input::-webkit-outer-spin-button,
.sup-custom-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sup-custom-input:disabled {
  color: #c7c2b3;
  cursor: not-allowed;
}

.sup-custom-input:focus-visible {
  outline: none;
}

.sup-custom-input-row:focus-within {
  border-color: #2563eb;
}

/* ── Payment placeholder live message ── */
.sup-live-note {
  min-height: 20px;
  margin: 4px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--sup-ink);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.sup-live-note.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Choose another monthly amount — a lightweight control below the
   cards, not another card (keeps the grid simple and evenly filled). ── */
.sup-monthly-other {
  margin: 28px auto 0;
  padding-top: 24px;
  max-width: 420px;
  border-top: 1px dashed var(--sup-line);
  text-align: center;
}

.sup-monthly-other-label {
  margin: 0 0 14px;
  font-family: var(--font-cursive);
  font-size: 18px;
  font-weight: 400;
  color: var(--sup-ink-soft);
}

.sup-monthly-other-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.sup-free-choice {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 9px;
  max-width: 700px;
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px dashed var(--sup-line);
  color: var(--sup-ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

.sup-free-choice a {
  color: var(--sup-ink);
  font-weight: 900;
  text-decoration-color: rgba(35,38,46,.4);
  text-underline-offset: 3px;
}

.sup-free-choice a:hover {
  text-decoration-color: currentColor;
}

/* ── One-time contribution — a lighter secondary action below that,
   not a card at all (kept smaller/quieter on purpose). ── */
.sup-onetime {
  margin: 28px auto 0;
  padding-top: 24px;
  max-width: 640px;
  border-top: 1px dashed var(--sup-line);
  text-align: center;
}

.sup-onetime-label {
  margin: 0 0 14px;
  font-family: var(--font-cursive);
  font-size: 18px;
  font-weight: 400;
  color: var(--sup-ink-soft);
}

.sup-onetime-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.sup-onetime-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--sup-ink);
  background: transparent;
  color: var(--sup-ink);
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}

.sup-onetime-btn:hover {
  transform: translateY(-2px) rotate(-1deg);
  background: var(--sup-ink);
  color: #ffffff;
}

/* "Other amount" sits visually apart from the 3 preset pills above so it
   doesn't read as a 4th segment of the same control. */
.sup-onetime-other {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.sup-onetime-other-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--sup-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.sup-onetime-custom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 5px 5px 14px;
  border: 1.5px solid var(--sup-line);
  border-radius: 999px;
  background: #FBF9F2;
}

.sup-onetime-custom .sup-custom-input {
  width: 42px;
}

/* Shared small pill button — "Choose amount" (monthly) and "Give once"
   (one-time) get identical treatment. */
.sup-inline-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--sup-ink);
  background: transparent;
  color: var(--sup-ink);
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}

.sup-inline-btn:hover {
  transform: translateY(-2px) rotate(1deg);
  background: var(--sup-ink);
  color: #ffffff;
}

/* ── Explanation two-column ── */
.sup-explain-lead {
  margin: 0 0 26px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  color: rgba(35,38,46,0.8);
}

.sup-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.sup-col-title {
  margin: 0 0 12px;
  font-family: var(--font-cursive);
  font-size: 19px;
  font-weight: 400;
  color: var(--sup-ink-soft);
}

.sup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sup-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(35,38,46,0.85);
  line-height: 1.5;
}

.sup-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  background-repeat: no-repeat;
  background-size: contain;
}

.sup-list--everyone li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5L8 15L17 5' fill='none' stroke='%234A7DFB' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sup-list--support li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5L8 15L17 5' fill='none' stroke='%2310b981' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── Schools ── */
.sup-schools-p {
  margin: 0 auto 22px;
  max-width: 600px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.65;
  color: rgba(35,38,46,0.8);
}

.sup-schools-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid var(--sup-ink);
  background: transparent;
  color: var(--sup-ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}

.sup-schools-btn:hover {
  transform: translateY(-2px) rotate(-1deg);
  background: var(--sup-ink);
  color: #ffffff;
}

/* ── FAQ (native <details>/<summary>) ── */
.sup-faq-item {
  border-top: 1px dashed var(--sup-line);
  padding: 4px 0;
}
.sup-faq-item:last-of-type {
  border-bottom: 1px dashed var(--sup-line);
}

.sup-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 16px 34px 16px 0;
  position: relative;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--sup-ink);
  line-height: 1.4;
}

.sup-faq-q::-webkit-details-marker {
  display: none;
}

.sup-faq-q::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--sup-ink);
  background: transparent;
  color: var(--sup-ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 21px;
  text-align: center;
  transition: transform 160ms ease;
}

.sup-faq-item[open] .sup-faq-q::after {
  content: "\2212"; /* minus sign */
}

.sup-faq-q:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 6px;
}

.sup-faq-a {
  margin: 0;
  padding: 0 34px 18px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  color: rgba(35,38,46,0.82);
}

/* ── Confetti burst (ported from tools/birthday-blast.js / .css) — fires
   on a paid-tier button click, alongside the "coming soon" message. ── */
.sup-confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}

.sup-confetti-piece {
  position: absolute;
  top: -14px;
  will-change: transform, opacity;
}

@keyframes sup-confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(108vh) rotate(560deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sup-confetti-piece { display: none !important; }
}

/* ── Thank-you takeover — shown on return from a successful payment
   (?support=success). Lives inside the hero band (not its own top-level
   section) so it never shifts the .sup-band:nth-of-type() rotation rules
   above; in success mode we instead hide the hero's normal content and
   every other band via body.sup-success-mode below, so it reads as a
   dedicated thank-you page rather than a small banner. ── */
.sup-thankyou {
  display: none;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 20px;
  padding: 56px 32px;
  margin: 24px 0;
  box-shadow: 0 20px 44px rgba(16,185,129,0.14);
}

body.sup-success-mode .sup-thankyou {
  display: flex;
}

body.sup-success-mode .sup-cast,
body.sup-success-mode .sup-eyebrow,
body.sup-success-mode .sup-hero-title {
  display: none;
}

body.sup-success-mode .sup-band:not(.sup-band--hero) {
  display: none;
}

.sup-thankyou-heart {
  display: block;
  width: 72px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 18px;
  transform: rotate(-7deg);
  animation: sup-thankyou-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sup-thankyou-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.sup-thankyou-title {
  margin: 0 0 10px;
  font-family: var(--font-cursive);
  font-size: 30px;
  font-weight: 400;
  color: #065f46;
  text-wrap: balance;
}

.sup-thankyou-title span,
.sup-thankyou-body span {
  display: block;
}

.sup-thankyou-body {
  margin: 0 0 26px;
  font-size: 16px;
  font-weight: 600;
  color: #0f766e;
  max-width: 440px;
  text-wrap: balance;
}

.sup-badge-choice {
  width: min(100%, 520px);
  margin: 0 0 24px;
  padding: 20px;
  border-top: 1px solid rgba(15,118,110,0.2);
  border-bottom: 1px solid rgba(15,118,110,0.2);
}

.sup-badge-choice-title { margin: 0 0 5px; color: #065f46; font-size: 17px; font-weight: 900; }
.sup-badge-choice-copy { margin: 0 0 15px; color: #0f766e; font-size: 14px; font-weight: 650; }
.sup-badge-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.sup-badge-actions .sup-thankyou-cta { cursor: pointer; }
.sup-thankyou-secondary { border: 1.5px solid #5e8f87; background: transparent; color: #29665c; padding: 11px 22px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.sup-badge-status { min-height: 20px; margin: 10px 0 0; color: #0f766e; font-size: 13px; font-weight: 800; }

.sup-thankyou-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid #10b981;
  background: #10b981;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms ease, background-color 140ms ease;
}

.sup-thankyou-cta:hover {
  transform: translateY(-2px);
  background: #0d9488;
}

@media (prefers-reduced-motion: reduce) {
  .sup-thankyou-heart { animation: none; }
}

/* ── Payment error state — same live-note element, red variant ── */
.sup-live-note--error {
  color: #b91c1c;
}

/* ── Pending/disabled state on a clicked amount button ── */
.sup-card-btn.is-pending,
.sup-onetime-btn.is-pending,
.sup-inline-btn.is-pending {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}

/* ── "Manage or cancel" — quiet link-style control for returning
   supporters, hidden until we've confirmed they have a contribution. ── */
.sup-manage {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px auto 0;
  padding-top: 20px;
  max-width: 420px;
  border-top: 1px dashed var(--sup-line);
  text-align: center;
}

.sup-manage.is-visible {
  display: flex;
}

.sup-manage-text {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--sup-ink-soft);
}

/* ── Focus states (generic, for links/buttons without a more specific rule) ── */
.sup-main a:focus-visible,
.sup-main button:focus-visible,
.sup-custom-input:not(:disabled):focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .sup-card,
  .sup-card-btn,
  .sup-schools-btn,
  .sup-live-note,
  .sup-onetime-btn,
  .sup-inline-btn,
  .sup-faq-q::after {
    transition: none !important;
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sup-cast-photo { height: 88px; }

  .sup-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .sup-sheet { padding: 32px 26px; }
}

@media (max-width: 640px) {
  .sup-band { padding: 22px 0; }
  .sup-band--hero { padding-top: 16px; padding-bottom: 4px; }
  .sup-container { padding: 0 16px; }
  .sup-sheet { padding: 26px 20px; border-radius: 20px; }
  .sup-band:nth-of-type(n) .sup-sheet { transform: none; }

  .sup-cast { margin-bottom: 14px; }
  .sup-cast-photo { height: 64px; }

  .sup-hero-title { line-height: 1.22; }

  .sup-card {
    flex-basis: 100%;
    transform: none !important;
  }
  .sup-card:has(.sup-radio:checked) { transform: none !important; }

  .sup-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sup-note-card { transform: none; padding: 26px 22px 22px; }
  .sup-note-signoff { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sup-polaroid-img { width: 84px; height: 84px; }

  .sup-faq-q,
  .sup-faq-a {
    padding-right: 30px;
  }
}
