/* Support us pages: the tier picker, the pretend checkout and the thank-you. */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 22px; padding: 0; border: 0; }
.tiers legend { font-size: 20px; margin: 0 0 12px; padding: 0; }
.tier { position: relative; cursor: pointer; }
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier-face {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 8px 14px; border-radius: 22px; background: #fff; text-align: center;
  border: 4px solid var(--line); box-shadow: 0 6px 0 var(--line-d);
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.tier-emoji { font-size: 36px; line-height: 1.1; }
.tier-amount { font-size: 32px; font-weight: 700; }
.tier-per { font-size: 15px; color: var(--ink-soft); }
.tier-what { font-size: 15px; line-height: 1.25; min-height: 2.5em; }
.tier input:checked + .tier-face { border-color: var(--green); box-shadow: 0 6px 0 var(--green-d); background: #f0fbf2; transform: translateY(-3px); }
.tier input:focus-visible + .tier-face { outline: 5px solid rgba(77, 171, 247, 0.75); outline-offset: 3px; }
.tier input:checked + .tier-face .tier-amount { color: var(--green-d); }

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

.hint { margin: 6px 2px 0; font-size: 16px; color: var(--ink-soft); font-weight: 600; }
.error { margin: 0 0 16px; padding: 12px 16px; border-radius: 16px; background: #ffe3e3; color: var(--red-d); font-size: 18px; }
.error:empty { display: none; }

.early { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; background: #fff6d6; border: 3px dashed var(--yellow); margin: 0 0 22px; }
.early b { display: block; font-size: 19px; }
.early p { margin: 4px 0 0; font-size: 17px; }
.early-badge { flex: none; font-size: 30px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.small-print { margin: 18px 0 0; padding: 0 0 0 20px; }
.small-print li { font-size: 16px !important; color: var(--ink-soft); line-height: 1.5 !important; }

/* The pretend checkout is clearly not a real payment page. */
.pretend { margin: 0 0 18px; padding: 12px 16px; border-radius: 16px; background: repeating-linear-gradient(-45deg, #fff1c2 0 14px, #ffe8a3 14px 28px); font-size: 18px; text-align: center; }
.summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; margin: 0 0 18px; border-radius: 18px; background: #fff; border: 3px solid var(--line); font-size: 20px; }
.summary b { font-size: 28px; }
.row { display: flex; gap: 10px; }
.row .input { flex: 1; }

/* Thank-you hearts. */
.thanks { text-align: center; }
.thanks h2 { font-size: 34px !important; }
.hearts { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.hearts span { position: absolute; bottom: -40px; font-size: 28px; animation: rise 3.6s ease-in forwards; }
@keyframes rise { to { transform: translateY(-110vh) rotate(25deg); opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) {
  .hearts { display: none; }
  .tier-face { transition: none; }
}

/* Tier 2 and up comes with a family page (docs/FAMILY-PRD.md). */
.tier-perk { margin-top: 4px; padding: 4px 10px; border-radius: 999px; background: #f3ecff; color: #6a4bc4; font-size: 15px; font-weight: 700; }
.btn[hidden] { display: none; }

/* The family pages promo on Support us, linking to family-pages/. */
.family-promo { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 0 0 16px; border-radius: 20px; background: linear-gradient(135deg, #f3ecff, #ffeef6); border: 3px solid #d8c8ff; color: inherit; text-decoration: none; }
.family-promo b { display: block; font-size: 19px; }
.family-promo p { margin: 4px 0 6px; font-size: 17px; }
.family-more { font-weight: 700; color: #6a4bc4; }
.family-promo:hover .family-more { text-decoration: underline; }
.tier-perk-early { margin-top: 2px; background: #fff1d6; color: #a05a00; }
.tier-face { justify-content: flex-start; }
.tier-face .tier-perk { width: 100%; box-sizing: border-box; }
.tier-perk-thanks { background: #fff4e0; color: #9a5b00; }
.tier-perk-idea { margin-top: 2px; background: #e6f6ff; color: #1f6fa8; }
.early b.inline { display: inline; font-size: inherit; }
