/* Website checkout. Builds on ../assets/site.css tokens (warm chalk, charcoal, orange); light + dark. */
[hidden] { display: none !important; } /* .btn sets display, which would otherwise beat the hidden attribute */
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: #DCE3DA; }
.steps li { background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px 12px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.plan { position: relative; display: block; margin: 0; padding: 16px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); cursor: pointer; font-weight: 400; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.plan:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.plan .name { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan .price { font-size: 30px; font-weight: 700; line-height: 1.3; margin-top: 4px; }
.plan .sub { color: var(--muted); font-size: 14px; }
.plan .tick { position: absolute; inset-inline-end: 14px; top: 14px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); }
.plan:has(input:checked) .tick { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 45%, transparent 50%); }
.included { margin: 6px 0 0; padding-inline-start: 20px; }
.included li { margin: 2px 0; }
.note { font-size: 14px; color: var(--muted); }
.test-banner { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); color: var(--on-accent); border-radius: 12px; padding: 8px 14px; font-weight: 700; font-size: 15px; margin: 12px 0 0; }
.who span { overflow-wrap: anywhere; }
.who { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.who .btn { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin: 16px 0 6px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pay-row { margin-top: 16px; }
.pay-row .btn { width: 100%; font-size: 18px; min-height: 54px; }
.result { text-align: center; padding: 28px 18px; }
.result .icon { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; font-weight: 700; }
.result .icon.ok { background: color-mix(in srgb, var(--success) 22%, transparent); color: var(--success); }
.result .icon.wait { background: var(--surface2); color: var(--muted); }
.result .icon.err { background: color-mix(in srgb, var(--error) 18%, transparent); color: var(--error); }
.result .row { justify-content: center; margin-top: 14px; }
/* Return page: try again, other ways to pay, "haven't paid yet?" and the WhatsApp help line. */
.result #retry, .return-unpaid .btn, .return-alt .btn { inline-size: min(100%, 22rem); min-block-size: 48px; }
.return-unpaid, .return-alt { display: grid; justify-items: center; gap: 8px; margin-block-start: 20px; padding-block-start: 18px; border-block-start: 1px solid var(--line); }
.return-unpaid p, .return-alt p { margin: 0; max-inline-size: 32rem; }
.return-q { font-weight: 700; color: var(--ink); }
.return-email { display: grid; justify-items: center; gap: 6px; margin-block: 16px 4px; padding: 14px 16px; border: 2px solid var(--primary); border-radius: 14px; background: var(--surface2); }
.return-email h2, .return-email p { margin: 0; max-inline-size: 32rem; }
.return-email h2 { font-size: 18px; color: var(--ink); }
.return-email .return-email-address { font-weight: 700; font-size: 18px; color: var(--ink); overflow-wrap: anywhere; unicode-bidi: isolate; }
.result a.return-wa { display: inline-flex; align-items: center; justify-content: center; margin-block-start: 12px; min-block-size: 48px; overflow-wrap: anywhere; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* The shared training-sheet treatment for card checkout, including unavailable/provider error states. */
.checkout-page main { max-inline-size: 56rem; }
.checkout-page .hero { border-radius: var(--radius-md); padding: var(--space-8); }
.checkout-page .hero > .pill { margin-block-end: var(--space-4); }
.checkout-page .card { padding: var(--space-8); }
.checkout-page .card h2 { margin-block-start: 0; }
.checkout-page .who .btn, .checkout-page .btn.copy { min-block-size: 48px; }
.checkout-page .plan { border-radius: var(--radius-sm); padding: var(--space-6); }
.checkout-page .result .icon { color: var(--primary); }
@media(max-width:600px) { .checkout-page .card,.checkout-page .hero { padding: var(--space-6); } .checkout-page main { padding-inline: var(--space-4); } }

/* Sign in with Apple (redirect flow): black button with the Apple mark, same width as the Google button; shown only when GET /v1/auth/providers says apple.web. */
.apple-btn { display: flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; inline-size: min(100%, 280px); block-size: 44px; margin-block: 8px; padding: 0 12px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 4px; font: 500 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: none; cursor: pointer; }
.apple-btn:hover { background: #1c1c1e; }
.apple-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px #000; }
.apple-btn svg { flex: none; inline-size: 18px; block-size: 18px; }
#apple-divider { display: none; }
#apple-wrap:not([hidden]) ~ #google-wrap[hidden] ~ #apple-divider { display: flex; }
/* Choose a password after paying (assets/set-password.js): one compact card under the status, on the return page and the pay page's done step. */
.pw-card { display: grid; gap: 8px; margin-block-start: 20px; padding-block-start: 18px; border-block-start: 1px solid var(--line); text-align: start; }
.pw-card .return-q { margin: 0; }
.pw-card form { display: grid; gap: 8px; margin: 0; }
.pw-card .password-control { display: flex; gap: 8px; align-items: stretch; }
.pw-card .password-control input { min-inline-size: 0; flex: 1; }
.pw-card .password-control .btn { inline-size: auto; margin: 0; flex: none; padding-inline: 16px; }
.pw-card .note { margin: 0; }
.pw-card .btn.primary { inline-size: 100%; min-block-size: 48px; }
