:root {
  --bg: #0b1220;
  --fg: #f8fafc;
  --accent: #22c55e;
  --accent-fg: #06210f;
  --muted: rgba(248, 250, 252, 0.62);
  --line: rgba(248, 250, 252, 0.22);
  --card: rgba(248, 250, 252, 0.06);
  --danger: #fca5a5;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--card);
  z-index: 10;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.35s ease;
}

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 22px 40px;
}

.step {
  width: 100%;
  max-width: 640px;
  animation: in-next 0.35s ease both;
}
.step.in-back { animation-name: in-back; }

@keyframes in-next { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes in-back { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }

.count {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

h1, h2 {
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 4.6vw, 2rem); }

.lead { margin: 0 0 28px; color: var(--muted); font-size: clamp(1rem, 3.2vw, 1.15rem); }
.hint { margin: 0 0 20px; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 10px 0 12px;
  font: inherit;
  font-size: clamp(1.3rem, 4.4vw, 1.75rem);
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
}
input:focus { border-bottom-color: var(--accent); }
input::placeholder { color: var(--muted); opacity: 0.7; }

.choices { display: grid; gap: 10px; margin-top: 8px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1.05rem;
  text-align: left;
  color: var(--fg);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
@media (hover: hover) {
  .choice:hover { border-color: var(--accent); }
}
.step:focus { outline: none; }
.choice:active { transform: scale(0.99); }
.choice .key {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1.5px solid var(--line);
  border-radius: 6px;
}
.choice[aria-pressed="true"] { border-color: var(--accent); background: rgba(34, 197, 94, 0.14); }
.choice[aria-pressed="true"] .key { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0 4px;
  padding: 14px 16px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--accent); }

.error { min-height: 1.4em; margin: 12px 0 0; color: var(--danger); font-size: 0.95rem; }

.actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

.btn {
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 13px 26px;
  color: var(--accent-fg);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.15s, transform 0.1s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn.ghost { color: var(--fg); background: transparent; border: 1.5px solid var(--line); font-weight: 600; padding: 12px 18px; }

.tip { color: var(--muted); font-size: 0.9rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input:focus-visible { outline: none; }

/* Página de texto (Política de Privacidade) */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 22px 64px; }
.doc h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
.doc h2 { font-size: 1.2rem; margin-top: 32px; }
.doc p, .doc li { color: var(--fg); opacity: 0.88; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--accent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.noscript { padding: 24px; text-align: center; }

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

@media (max-width: 520px) {
  .stage { align-items: flex-start; padding-top: 72px; }
  .tip { display: none; }
}
