@font-face { font-family: "Fraunces"; font-weight: 900; font-display: swap; src: url("/static/fonts/Fraunces_900Black.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 500; font-display: swap; src: url("/static/fonts/Nunito_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/static/fonts/Nunito_800ExtraBold.ttf") format("truetype"); }

:root {
  --bg: #FFF6EC; --card: #FFFFFF; --alt: #FFF0E0; --border: #F0DFCC; --ink: #22122E; --muted: #6E5C7A;
  --primary: #FF3D6E; --purple: #6C2BD9; --purple-soft: #EFE6FF; --mint: #12B886; --danger: #E03131;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); background-image: linear-gradient(var(--page-bg, transparent), var(--page-bg, transparent)); color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, sans-serif; font-weight: 500; font-size: 16px; line-height: 1.45; }
a { color: var(--purple); }
.wrap { max-width: 520px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.center { text-align: center; }
.top { padding: 8px 0; }
.brand { font-family: "Fraunces", Georgia, serif; font-weight: 900; color: var(--ink); }
.brand span { color: var(--primary); }
.top .brand { font-size: 30px; }
h1, .hero { font-family: "Fraunces", Georgia, serif; font-weight: 900; margin: 0; line-height: 1.1; }
h1 { font-size: 30px; }
.hero { font-size: 40px; }
h2 { font-size: 21px; font-weight: 800; margin: 0; }
h3 { font-size: 17px; font-weight: 800; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small, small { font-size: 13px; color: var(--muted); }
.label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.accent { color: var(--primary); }
.card { background: var(--card); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 6px 20px rgba(80, 30, 60, .10); }
.card.danger { background: #FFE3E3; color: var(--danger); }
.hero-img { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; display: block; box-shadow: 0 10px 30px rgba(80, 30, 60, .18); background: var(--alt); }
.hero-card { padding: 48px 18px; text-align: center; }
.line { display: flex; gap: 10px; align-items: flex-start; }
.message { background: var(--alt); padding: 12px; border-radius: 14px; white-space: pre-wrap; }
.actions, .stores { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 800 16px "Nunito", system-ui, sans-serif; text-decoration: none; cursor: pointer; color: var(--ink); background: var(--card); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; border: 1.5px solid var(--border); }
.btn-primary { background: var(--primary); color: #fff; width: 100%; box-shadow: 0 8px 22px rgba(255, 61, 110, .35); }
.btn-primary:disabled { opacity: .6; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--purple); }
.stores .btn { flex: 1; }
form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
form[hidden], [hidden] { display: none !important; }
.choices { display: flex; gap: 8px; }
.choice { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border-radius: 14px; border: 2px solid var(--border); background: var(--card); cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { font-size: 28px; }
.choice b { font-size: 14px; }
.choice:has(input:checked) { border-color: var(--mint); background: #12B88618; }
.choice:has(input[value="maybe"]:checked) { border-color: #E0A100; background: #E0A10018; }
.choice:has(input[value="no"]:checked) { border-color: var(--danger); background: #E0313118; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input { font: 500 16px "Nunito", system-ui, sans-serif; color: var(--ink); background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 14px; min-height: 50px; }
.field input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.going { display: flex; flex-direction: column; gap: 12px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper > div { flex: 1; display: flex; flex-direction: column; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--alt); font: 800 20px "Nunito", sans-serif; color: var(--ink); cursor: pointer; }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-size: 20px; }
.error { color: var(--danger); font-weight: 800; font-size: 14px; min-height: 1em; }
.emoji { font-size: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 800; color: var(--purple); background: var(--purple-soft); padding: 4px 10px; border-radius: 999px; }
.quota { border-top: 1px solid var(--border); padding: 12px 0 0; }
.quota summary { display: flex; gap: 10px; cursor: pointer; list-style: none; font-weight: 800; }
.quota summary span { flex: 1; }
.quota summary b { color: var(--primary); }
.quota summary::-webkit-details-marker { display: none; }
.pix { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; }
.qr { width: 200px; height: 200px; }
.qr svg { width: 100%; height: 100%; }
.open-app { text-align: center; font-weight: 800; font-size: 14px; }
.footer { padding-top: 4px; }
.toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); background: var(--ink); color: #fff; font-weight: 800;
  padding: 12px 18px; border-radius: 999px; max-width: calc(100% - 32px); text-align: center; z-index: 10; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -10px); } }
.legal article h1 { font-size: 28px; }
.legal article h2 { font-size: 18px; margin-top: 8px; }
.legal article h3 { font-size: 16px; margin-top: 6px; }
.legal article ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.brand-link { text-decoration: none; }
