/* Brand tokens from src/global.css (decision 0029): the dark theme only, mint
   main action, pills and hairlines. */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/Inter-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/fonts/Inter-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Inter Display'; font-weight: 700; font-display: swap; src: url('/fonts/InterDisplay-Bold.ttf') format('truetype'); }

:root {
  /* Dark only: the dark tokens of src/global.css. */
  --background: #0b1411;
  --foreground: #fff7e9;
  --card: #13221b;
  --muted-foreground: #a7b5ac;
  --border: #26392f;
  --input: #66796e;
  --primary: #a3e4bc;
  --primary-foreground: #0b1411;
  --accent: #16301f;
  --accent-foreground: #a3e4bc;
  --destructive: #f97066;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--background);
  color: var(--foreground);
  font: 400 16px/1.5 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }

/* Layout rules below set display; hidden must still win. */
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: max(20px, env(safe-area-inset-top)) 24px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 20px/1 'Inter Display', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

.progress { height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background: var(--primary); transition: width 420ms var(--ease); }

.deck { position: relative; flex: 1; }

.step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 420ms var(--ease), opacity 420ms var(--ease), visibility 0s 420ms;
}
.step.is-active { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.step.is-past { transform: translateX(-100%); }

@media (prefers-reduced-motion: reduce) {
  .step, .progress-fill { transition: none; }
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.title {
  margin: 0;
  font: 700 clamp(28px, 7vw, 40px)/1.12 'Inter Display', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}
.title:focus { outline: none; }

.lead, .hint { margin: 0; color: var(--muted-foreground); }
.hint { font-size: 14px; }
.error { margin: 0; font-size: 14px; color: var(--destructive); }

.options { display: flex; flex-direction: column; gap: 10px; }

.option {
  min-height: 52px;
  padding: 12px 20px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--input);
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms, border-color 160ms;
}
.option:hover { border-color: var(--foreground); }
.option[aria-pressed='true'] { background: var(--accent); border-color: var(--accent-foreground); color: var(--accent-foreground); }

.field { display: flex; flex-direction: column; gap: 12px; }

.input {
  min-height: 52px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--input);
  border-radius: 6px;
}
.input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

.btn-primary {
  align-self: flex-start;
  min-height: 48px;
  padding: 12px 28px;
  font-weight: 500;
  background: var(--primary);
  color: var(--primary-foreground);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.btn-primary:disabled { opacity: 0.55; cursor: progress; }

:is(.option, .btn-primary, .btn-back, .segmented button, .store):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.segmented { display: inline-flex; align-self: flex-start; padding: 3px; border: 1px solid var(--input); border-radius: 999px; }
.segmented button { min-height: 40px; padding: 6px 18px; background: none; border: 0; border-radius: 999px; cursor: pointer; }
.segmented button[aria-checked='true'] { background: var(--foreground); color: var(--background); }

.stores { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 8px; }
.store { display: inline-flex; border-radius: 8px; }
.store img { display: block; height: 48px; width: auto; }
.store[aria-disabled='true'] { opacity: 0.55; }
.stores-soon { flex-basis: 100%; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }

.bottom { padding: 0 24px max(20px, env(safe-area-inset-bottom)); min-height: 64px; }
.btn-back { min-height: 44px; padding: 8px 4px; background: none; border: 0; color: var(--muted-foreground); cursor: pointer; }

.turnstile:empty { display: none; }
a.btn-primary { display: inline-flex; align-items: center; text-decoration: none; }
