:root {
  --bg: #000;
  --surface: #0c0c0c;
  --surface-2: #141414;
  --line: #262626;
  --line-strong: #3a3a3a;
  --text: #fff;
  --muted: #9a9a9a;
  --faint: #6b6b6b;
  --accent: #3ddc97;
  --accent-hover: #5ee8ab;
  --accent-ink: #04140c;
  --accent-soft: rgba(61, 220, 151, 0.1);
  --danger: #ff6b6b;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Estrutura ---------- */

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.brand::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.step-count { color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; text-transform: none; }

.progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity 0.4s; }
.progress.on { opacity: 1; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.6s var(--ease); }

.stage { flex: 1; display: flex; align-items: center; padding: 56px 0 72px; }
.stage > * { width: 100%; }

.foot { display: flex; gap: 20px; justify-content: center; padding: 0 0 32px; }

/* ---------- Telas e transição ---------- */

.screen { opacity: 0; transform: translateY(14px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.screen.in { opacity: 1; transform: none; }
.screen.leaving { opacity: 0; transform: translateY(-10px); transition-duration: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .screen, .screen.leaving, .progress-bar, .option, .btn { transition: none !important; transform: none !important; }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-title {
  margin: 0 0 20px;
  font-size: clamp(34px, 6.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 650;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { margin: 0 0 44px; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 34em; text-wrap: pretty; }
.hero-meta { margin: 22px 0 0; font-size: 14px; color: var(--faint); }

.q-meta { margin: 0 0 14px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.q-meta .tag { color: var(--faint); margin-left: 8px; }
.q-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 4.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-wrap: balance;
}
.q-help { margin: 0 0 8px; color: var(--muted); font-size: 16px; }
.q-body { margin-top: 32px; }

/* ---------- Opções ---------- */

.options { display: grid; gap: 12px; }
.option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 16px 20px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 17px;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
.option:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-1px); }
.option:active { transform: translateY(0); }
.option .key {
  flex: none;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
  transition: all 0.2s;
}
.option.multi .key { border-radius: 6px; }
.option[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.option[aria-checked="true"] .key { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.option .check { display: none; }
.option[aria-checked="true"] .check { display: block; }
.option[aria-checked="true"] .letter { display: none; }

/* ---------- Campos ---------- */

.field {
  width: 100%;
  padding: 14px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: clamp(20px, 3.4vw, 26px);
  outline: none;
  transition: border-color 0.2s;
}
.field::placeholder { color: #4a4a4a; }
.field:focus { border-bottom-color: var(--accent); }
.field-hint { margin: 12px 0 0; font-size: 13px; color: var(--faint); }

.error { min-height: 22px; margin: 14px 0 0; color: var(--danger); font-size: 14px; }
.error:empty { visibility: hidden; }

.consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent .link { font-size: 14px; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(61, 220, 151, 0.18); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn.ghost:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.wa svg { width: 20px; height: 20px; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; }
.nav .spacer { flex: 1; }
.kbd-hint { font-size: 13px; color: var(--faint); }
.kbd-hint b { color: var(--muted); font-weight: 500; }

.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  cursor: pointer;
}
.link:hover { color: var(--text); }

/* ---------- Redirecionamento ---------- */

.done { text-align: center; }
.done .icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.done .hero-sub { margin-left: auto; margin-right: auto; }
.done .retry { opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s var(--ease); pointer-events: none; }
.done .retry.show { opacity: 1; transform: none; pointer-events: auto; }
.done .small { margin-top: 18px; font-size: 13px; color: var(--faint); }

.spinner {
  display: inline-block;
  width: 22px; height: 22px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; }

/* ---------- Engrenagem, cookies, modal ---------- */

.gear {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: #3a3a3a;
  transition: color 0.2s, background-color 0.2s, transform 0.4s var(--ease);
}
.gear:hover { color: var(--muted); background: var(--surface-2); transform: rotate(45deg); }

.cookie {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: 20;
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 260px; margin: 0; font-size: 14px; color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; }

.modal {
  width: min(640px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  padding: 28px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); }
.modal h2 { margin: 0 0 16px; font-size: 22px; letter-spacing: -0.01em; }
.privacy-body { color: var(--muted); font-size: 15px; white-space: pre-line; margin-bottom: 24px; }

.noscript { text-align: center; padding: 40px 24px; color: var(--muted); }

/* ---------- Celular ---------- */

@media (max-width: 560px) {
  .shell { padding: 0 20px; }
  .topbar { padding-top: 20px; }
  .stage { align-items: flex-start; padding: 40px 0 56px; }
  .hero-sub { margin-bottom: 36px; }
  .hero .btn.primary { width: 100%; }
  .option { font-size: 16px; min-height: 56px; padding: 14px 16px; }
  .nav { flex-wrap: wrap-reverse; }
  .nav .btn.primary { flex: 1 1 100%; }
  .kbd-hint { display: none; }
  .gear { right: 10px; bottom: 10px; }
}
