:root {
  --bg-1: #0a1a4a;
  --bg-2: #0f3290;
  --accent: #1a60e5;
  --accent-hover: #2f72f0;
  --fg: #ffffff;
  --muted: #b9c6e4;
  --subtle: #8496c0;
  --line: rgba(160, 188, 255, 0.35);
  --opt-bg: rgba(26, 96, 229, 0.14);
  --opt-bg-hover: rgba(26, 96, 229, 0.26);
  --opt-border: rgba(140, 175, 255, 0.45);
  --danger: #ff8a8f;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  color: var(--fg);
  background: radial-gradient(1200px 800px at 85% -10%, #1a4bc4 0%, transparent 60%),
              linear-gradient(160deg, var(--bg-2) 0%, #0c2670 45%, var(--bg-1) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.progress { position: fixed; inset: 0 0 auto 0; height: 4px; background: rgba(255,255,255,.08); z-index: 10; }
.progress-bar { height: 100%; width: 0; background: var(--accent-hover); transition: width .5s cubic-bezier(.2,.8,.2,1); }

.top { position: fixed; top: 0; left: 0; right: 0; padding: 22px 28px; z-index: 5; pointer-events: none; }
.logo { height: 30px; width: auto; }

.stage { position: relative; height: 100%; height: 100dvh; }

.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 90px 24px 110px;
  overflow-y: auto;
}
.slide-inner { width: 100%; max-width: 720px; }

/* transições */
.slide.enter { animation: enterUp .55s cubic-bezier(.2,.8,.2,1) both; }
.slide.enter.back { animation-name: enterDown; }
.slide.leave { animation: leaveUp .4s cubic-bezier(.4,0,.6,1) both; pointer-events: none; }
.slide.leave.back { animation-name: leaveDown; }
@keyframes enterUp   { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes enterDown { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: none; } }
@keyframes leaveUp   { to { opacity: 0; transform: translateY(-60px); } }
@keyframes leaveDown { to { opacity: 0; transform: translateY(60px); } }

/* pergunta */
.q-head { display: flex; gap: 12px; align-items: baseline; }
.q-num { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--accent-hover); font-size: 17px; font-weight: 600; }
.q-num svg { width: 14px; height: 14px; }
.q-title { margin: 0; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.q-title .req { color: var(--accent-hover); }
.q-desc { margin: 10px 0 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); line-height: 1.45; }
.q-body { margin-top: 30px; padding-left: 0; }
@media (min-width: 640px) { .q-body, .q-desc { padding-left: 38px; } .q-desc { margin-left: 0; } }

/* texto */
.input {
  width: 100%; border: 0; border-bottom: 2px solid var(--line);
  background: transparent; color: var(--fg);
  font: inherit; font-size: clamp(22px, 3.2vw, 30px); padding: 6px 0 10px;
  outline: none; border-radius: 0; transition: border-color .2s;
}
.input::placeholder { color: rgba(185,198,228,.45); }
.input:focus { border-bottom-color: var(--fg); }

/* opções */
.options { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 14px 10px 10px; min-height: 48px;
  border: 1px solid var(--opt-border); border-radius: 8px;
  background: var(--opt-bg); color: var(--fg);
  font: inherit; font-size: 18px; text-align: left; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.opt:hover { background: var(--opt-bg-hover); }
.opt:active { transform: scale(.99); }
.opt .key {
  flex: none; display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 5px;
  border: 1px solid var(--opt-border); background: rgba(10,26,74,.55);
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.opt .label { flex: 1; }
.opt .check { flex: none; opacity: 0; transition: opacity .15s; }
.opt.selected { border-color: var(--fg); background: rgba(26,96,229,.45); box-shadow: 0 0 0 1px var(--fg) inset; }
.opt.selected .key { background: var(--fg); color: var(--bg-1); border-color: var(--fg); }
.opt.selected .check { opacity: 1; }
.opt.blink { animation: blink .3s steps(2) 2; }
@keyframes blink { 50% { background: var(--opt-bg); } }

/* ações */
.actions { display: flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; min-height: 46px; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff;
  font: inherit; font-size: 19px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 20px rgba(26,96,229,.35);
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-lg { font-size: 21px; padding: 14px 28px; }
.btn-wa { background: #1fae5b; box-shadow: 0 6px 20px rgba(31,174,91,.35); }
.btn-wa:hover { background: #22c063; }
.hint { color: var(--muted); font-size: 13px; }
.hint b { font-weight: 700; }
@media (hover: none) { .hint { display: none; } }

.error {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 6px 12px; border-radius: 6px; background: rgba(207,42,51,.18);
  color: var(--danger); font-size: 15px;
}
.error[hidden] { display: none; }

.legal { margin-top: 22px; color: var(--subtle); font-size: 13px; line-height: 1.5; max-width: 520px; }

/* boas-vindas e final */
.center { text-align: center; }
.center .actions { justify-content: center; }
.hero-logo { height: 54px; margin-bottom: 28px; }
.hero-title { margin: 0; font-size: clamp(28px, 5vw, 44px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.hero-sub { margin: 16px auto 0; max-width: 560px; color: var(--muted); font-size: clamp(17px, 2.4vw, 21px); line-height: 1.45; }
.meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* navegação */
.nav { position: fixed; right: 24px; bottom: 24px; display: flex; gap: 2px; z-index: 6; }
.nav[hidden] { display: none; }
.nav-btn {
  display: grid; place-items: center; width: 40px; height: 36px;
  border: 0; background: var(--accent); color: #fff; cursor: pointer;
}
.nav-btn:first-child { border-radius: 6px 0 0 6px; }
.nav-btn:last-child { border-radius: 0 6px 6px 0; }
.nav-btn:hover { background: var(--accent-hover); }
.nav-btn[disabled] { opacity: .45; cursor: default; }

@media (max-width: 639px) {
  .top { padding: 16px; }
  .logo { height: 24px; }
  .slide { padding: 72px 16px 96px; align-items: flex-start; padding-top: 18vh; }
  .opt { font-size: 17px; }
  .nav { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide.enter, .slide.leave, .opt.blink { animation-duration: .01ms; }
  .progress-bar { transition: none; }
}
.hero-sub a { color: inherit; }
