/* Hallmark · screens: /ambil (board Klaim) and /brand (board Waitlist), built from the approved canvas
 * https://claude.ai/artifact/R9qqLDBdz6hSjqea3ug7r9 · theme: japri.to palette A (tokens in base.css)
 * states: default · hover · focus · active · disabled · loading (wait status) · error (bad status) · success (ok status)
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 */
.flow { min-height: 100svh; display: flex; justify-content: center; }
.flow__col { width: 100%; max-width: 440px; min-height: 100svh; padding: 24px 20px 28px; display: flex; flex-direction: column; gap: 22px; }
.flow__top { display: flex; align-items: center; justify-content: space-between; }
.flow__top img { height: 36px; width: auto; }
.flow__back { display: inline-flex; align-items: center; height: 44px; padding: 0 4px; font-size: 15px; font-weight: 600; }

.step { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.step[hidden] { display: none; }
.step h1 { margin-top: 8px; font-size: 32px; line-height: 38px; font-weight: 800; letter-spacing: -0.02em; }
.step h1:focus { outline: none; }
.lead { font-size: 16px; line-height: 24px; color: var(--ink-muted); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.handle-box { display: flex; align-items: center; height: 56px; border: 2px solid var(--ink); border-radius: 14px; background: var(--surface); padding: 0 14px; gap: 2px; }
.handle-box:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.handle-box span { font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--ink-muted); }
.handle-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 16px var(--mono); padding: 0; }
.handle-box input:focus-visible { outline: 0; }
.input { width: 100%; height: 52px; border: 1.5px solid var(--ink-muted); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 0 16px; font: 500 16px var(--sans); }
.input[aria-invalid="true"] { border-color: var(--danger); }
input::placeholder { color: var(--ink-muted); }

.status { display: flex; align-items: flex-start; gap: 10px; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 20px; font-weight: 600; }
.status[hidden] { display: none; }
.status svg { flex: none; }
.status--ok { align-items: center; background: var(--hl-soft); font-weight: 700; }
.status--ok .tick { width: 24px; height: 24px; flex: none; border-radius: 999px; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; }
.status--bad { border: 1.5px solid var(--danger); color: var(--danger); }
.status--bad svg { margin-top: 1px; }
.status--wait { padding: 4px 0; color: var(--ink-muted); }
.hint { font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.hint[hidden] { display: none; }
.link-inline { font-weight: 700; color: var(--ink); text-decoration: underline; }

.tip { margin-top: auto; display: flex; gap: 12px; align-items: flex-start; background: var(--tint); border-radius: 16px; padding: 14px 16px; }
.tip__icon { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.tip strong { display: block; font-size: 14px; line-height: 20px; font-weight: 800; }
.tip p { margin-top: 4px; font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.tip .mono { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--ink); }

.btn--block { width: 100%; }
.btn--end { margin-top: auto; }
.btn:active { transform: translateY(1px); }
.btn--outline { white-space: nowrap; }

.pill-name { align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; background: var(--hl-soft); border-radius: 999px; padding: 8px 14px; font-family: var(--mono); font-size: 15px; font-weight: 600; }
.consent { margin-top: 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
.gbtn { min-height: 44px; display: flex; justify-content: center; }
.gbtn[aria-busy="true"] { opacity: 0.4; pointer-events: none; }
.fine { font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.fine a { font-weight: 600; text-decoration: underline; }
.link-btn { margin-top: auto; align-self: center; height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--ink); font: 600 15px var(--sans); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--ink-muted); }

.done-icon { margin-top: 48px; width: 72px; height: 72px; border-radius: 20px; background: var(--hl); color: var(--on-hl); display: flex; align-items: center; justify-content: center; }
.step .btn--outline { margin-top: auto; }

@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* Turnstile's sheet (js/turnstile.js): unseen until Turnstile asks the visitor to click, then it slides up. The panel
 * stays rendered off-screen while closed, since Turnstile needs its box in the page. */
.ts-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: transparent; pointer-events: none; transition: background 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ts-sheet.is-open { background: var(--scrim); pointer-events: auto; }
.ts-sheet__panel { width: 100%; max-width: 440px; background: var(--surface); border-radius: 24px 24px 0 0; padding: 22px 20px max(20px, env(safe-area-inset-bottom)); box-shadow: 0 -16px 48px var(--shadow-lg); transform: translateY(105%); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ts-sheet.is-open .ts-sheet__panel { transform: none; }
.ts-sheet__title { font-size: 20px; line-height: 26px; font-weight: 800; letter-spacing: -0.01em; }
.ts-sheet__title:focus { outline: none; }
.ts-sheet__line { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ts-sheet__box { margin-top: 16px; min-height: 65px; display: flex; justify-content: center; }
.ts-sheet__cancel { display: block; margin: 8px auto 0; height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--ink); font: 600 15px var(--sans); text-decoration: underline; cursor: pointer; }
.ts-sheet__cancel:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ts-sheet, .ts-sheet__panel { transition: none; } }
