*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #090c1c;
  --surface: #0d1025;
  --accent:  #3d6eff;
  --accent-h:#2a52d4;
  --text:    #e8ecff;
  --sub:     #5a6395;
  --muted:   #232848;
  --border:  #1a2050;
  --err:     #f26464;
}

html, body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

/* ── PROGRESS ── */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  z-index: 100;
  box-shadow: 0 0 6px rgba(61,110,255,0.5);
}

/* ── WRAPPER ── */
#wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ── SLIDE ── */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 0 0 12%;
  transition: transform 0.5s cubic-bezier(0.76,0,0.24,1),
              opacity   0.5s ease;
  will-change: transform, opacity;
}

.slide.on   { transform: translateY(0);    opacity: 1; pointer-events: all;  z-index: 2; }
.slide.up   { transform: translateY(-55px); opacity: 0; pointer-events: none; z-index: 1; }
.slide.down { transform: translateY(55px);  opacity: 0; pointer-events: none; z-index: 1; }

.inner { width: 100%; max-width: 580px; }

/* ── INTRO ── */
.intro-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -2.5px;
  margin-bottom: 20px;
}

h1 i { font-style: italic; color: var(--accent); opacity: 0.9; }

.intro-sub {
  font-size: 15px;
  color: var(--sub);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 44px;
}

.intro-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  letter-spacing: 0.2px;
}

.btn-start:hover  { background: var(--accent-h); }
.btn-start:active { transform: scale(0.97); }
.btn-start svg    { width: 14px; height: 14px; }

.intro-hint {
  font-size: 13px;
  color: var(--sub);
}

.intro-proof {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--muted);
  font-size: 13px;
  color: var(--sub);
  font-weight: 500;
}

.intro-proof strong { color: var(--text); }

/* ── NÚMERO DA PERGUNTA ── */
.q-num {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.q-num svg { width: 15px; height: 15px; }

/* ── HEADLINE ── */
h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 4px;
}

h2 b   { font-weight: 800; }
h2 .req { color: var(--accent); margin-left: 3px; font-weight: 700; }

.q-desc {
  font-size: 14px;
  color: var(--sub);
  margin-bottom: 36px;
  font-weight: 400;
}

/* ── INPUT DE TEXTO ── */
.f-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 22px;
  font-weight: 500;
  padding: 10px 0;
  outline: none;
  caret-color: var(--accent);
  transition: border-color 0.2s;
}

.f-input::placeholder { color: var(--muted); }
.f-input:focus        { border-color: #2a3878; }
.f-input.shake        { animation: shake 0.3s ease; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-8px); }
  75%      { transform: translateX(8px); }
}

.f-err {
  font-size: 13px;
  color: var(--err);
  margin-top: 10px;
  min-height: 18px;
  font-weight: 500;
}

/* ── ACTIONS ── */
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.btn-ok {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 13px 26px;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: background 0.18s, transform 0.12s;
}

.btn-ok:hover  { background: var(--accent-h); }
.btn-ok:active { transform: scale(0.97); }
.btn-ok svg    { width: 15px; height: 15px; }

.btn-skip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--sub);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}

.btn-skip:hover { border-color: #2a3878; color: var(--text); }

.enter-hint {
  font-size: 13px;
  color: var(--sub);
  font-weight: 500;
}

/* ── CHOICES ── */
.multi-note {
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.choices { display: flex; flex-direction: column; gap: 8px; }

.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 16px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  line-height: 1.4;
  transition: border-color 0.18s, background 0.18s;
}

.opt:hover { border-color: var(--accent); background: rgba(61,110,255,0.06); }
.opt.sel   { border-color: var(--accent); background: rgba(61,110,255,0.1); }

.okey {
  width: 26px; height: 26px;
  border-radius: 5px;
  background: var(--muted);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  color: var(--sub);
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.opt.sel .okey {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.err-c {
  font-size: 13px;
  color: var(--err);
  margin-top: 10px;
  min-height: 18px;
  font-weight: 500;
}

/* ── SUCCESS ── */
.s-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(61,110,255,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px;
}

.s-icon svg { width: 24px; height: 24px; color: var(--accent); }

.s-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.s-sub {
  font-size: 15px;
  color: var(--sub);
  line-height: 1.8;
  max-width: 400px;
}

.s-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 12px;
  color: var(--sub);
  font-weight: 600;
}

.s-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%,100% { opacity:1; } 50% { opacity:.3; }
}

/* ── NAV ── */
#nav {
  position: fixed;
  bottom: 28px; right: 32px;
  display: flex; gap: 6px;
  z-index: 100;
}

.nb {
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--sub);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.nb:hover:not(:disabled) {
  background: var(--muted);
  color: var(--text);
  border-color: #2a3878;
}

.nb:disabled { opacity: 0.2; cursor: default; }
.nb svg { width: 14px; height: 14px; }

/* ── GROUPED SLIDE ── */
.group-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 4px;
}

.block-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 8px;
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  .slide {
    padding: 0 22px;
    align-items: flex-start;
    padding-top: 80px;
    padding-bottom: 100px;
  }
  .intro-hint { display: none; }
  #nav { bottom: 20px; right: 20px; }
  h1 { letter-spacing: -1px; }
}
