/* Coach Dex donation page. Builds on landing.css (same tokens, backdrop, header, powered-by strip); only what is new lives here. */

.give-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.give-grid h1 { font-size: clamp(2.5rem, 6.6vw, 4.6rem); line-height: 0.98; }
.give-grid .lead { max-width: 30ch; color: var(--ink); font-weight: 600; }
.thanks h1 { font-size: clamp(3rem, 9vw, 6rem); }

.letter { margin-top: 26px; max-width: 54ch; }
.letter p { margin: 0 0 14px; color: var(--mute); font-size: 1.03rem; line-height: 1.65; }
.letter .sign { margin-top: 18px; color: var(--sky); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }

/* ---------- the card ---------- */
.card {
  position: relative; overflow: hidden; padding: 28px 28px 24px 30px; border-radius: 20px;
  border: 1px solid var(--line); border-left: 3px solid var(--ember);
  background: linear-gradient(155deg, rgba(26, 26, 46, 0.92) 0%, rgba(18, 24, 43, 0.96) 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 170px at 100% 0%, rgba(65, 105, 225, 0.28), transparent 70%); }
.card > * { position: relative; z-index: 1; }
.card h2 { margin: 0 0 18px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }

.group { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.group legend { padding: 0; margin-bottom: 10px; font: 600 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

.pills { display: grid; gap: 10px; }
.pills.two { grid-template-columns: 1fr 1fr; }
.pills.amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pill { position: relative; display: block; }
.pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill span {
  display: grid; place-items: center; min-height: 48px; padding: 0 10px; border-radius: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--ink);
  transition: background 0.18s, border-color 0.18s, transform 0.18s var(--ease);
}
.pill:hover span { border-color: rgba(65, 105, 225, 0.6); }
.pill input:checked + span { background: var(--royal); border-color: var(--sky); color: #fff; box-shadow: 0 8px 24px rgba(65, 105, 225, 0.35); }
.pill input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 3px; }

.money { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.money:focus-within { border-color: var(--sky); box-shadow: 0 0 0 2px rgba(147, 181, 245, 0.35); }
.money b { color: var(--mute); font-weight: 700; }
.money input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 1rem var(--sans); font-variant-numeric: tabular-nums; }
.money input::placeholder { color: var(--faint); font-weight: 500; }
.money input[aria-invalid='true'] { color: #ffb4a3; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.give {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 4px; padding: 0 22px;
  border: 0; border-radius: 14px; background: var(--royal); color: #fff; font: 800 1.02rem var(--sans); cursor: pointer;
  box-shadow: 0 12px 30px rgba(65, 105, 225, 0.4); transition: background 0.2s, transform 0.2s var(--ease);
}
.give:hover { background: var(--royal-dark); transform: translateY(-1px); }
.give:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.give:disabled { cursor: not-allowed; background: rgba(255, 255, 255, 0.1); box-shadow: none; color: var(--mute); transform: none; }

.notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(65, 105, 225, 0.12); color: var(--ink); font-size: 0.95rem; }
.notice.bad { border-color: rgba(255, 120, 90, 0.5); background: rgba(255, 69, 0, 0.12); }

.fine { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--faint); }
.fine a { color: var(--sky); }

.foot a { color: var(--mute); }

a.go { display: inline-flex; text-decoration: none; margin-top: 8px; }
a.go:hover .arrow { transform: translateX(4px); }

@media (max-width: 860px) {
  .give-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .card { padding: 22px 20px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .pill span, .give { transition: none; }
  .give:hover { transform: none; }
}
