:root {
  --bg: #000000;
  --bg-elevated: #0c0c0c;
  --card: #101010;
  --card-border: #262626;
  --card-hover: #171717;
  --text: #ffffff;
  --text-dim: #a8a8a8;
  --text-faint: #6b6b6b;
  --red: #e01b2e;
  --red-strong: #ff3a4c;
  --red-deep: #a30f1f;
  --grad: linear-gradient(120deg, var(--red-strong), var(--red-deep));
  --accent-contrast: #ffffff;
  --green: #25d366;
  --green-strong: #34e878;
  --green-deep: #128c4a;
  --grad-green: linear-gradient(120deg, var(--green-strong), var(--green), var(--green-deep));
  --accent-contrast-green: #04160d;
  --yellow: #f5c518;
  --yellow-deep: #171400;
  --success: var(--red-strong);
  --error: #ff5c5c;
  --radius: 18px;
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 40% at 15% -5%, rgba(224, 27, 46, 0.24), transparent 60%),
    radial-gradient(45% 35% at 100% 15%, rgba(224, 27, 46, 0.12), transparent 60%),
    radial-gradient(65% 50% at 50% 110%, rgba(224, 27, 46, 0.10), transparent 60%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(60% 60% at 50% 0%, black, transparent 75%);
}

.wizard {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
}

.wizard-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(20px, 5vh, 44px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--text);
}

.brand-pulse {
  color: var(--red-strong);
  flex-shrink: 0;
}

.progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: var(--card-border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 999px;
  transition: width 450ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(224, 27, 46, 0.55);
}

.progress-label {
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.steps-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: step-in 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.step.step-leaving {
  animation: step-out 220ms ease forwards;
}

@keyframes step-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

.step-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-strong);
}

/* ---- Intro / Hero ---- */

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 50px);
  line-height: 1.08;
  margin: 4px 0 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2px 0 6px;
}

.hero-stat-from {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 26px);
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.25);
  font-weight: 600;
}

.hero-stat-arrow {
  color: var(--red-strong);
  flex-shrink: 0;
}

.hero-stat-to {
  font-family: var(--font-display);
  font-size: clamp(42px, 11vw, 72px);
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.hero-stat-unit {
  font-size: 0.36em;
  font-weight: 600;
  -webkit-text-fill-color: var(--text-dim);
  margin-left: 2px;
}

.lede {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 54ch;
}

.lede strong { color: var(--text); font-weight: 700; }
.lede.small { font-size: 15px; }

/* ---- F.O.M.O. bar (fixed, top of viewport — assets/social-proof-widget.js) ---- */

.fomo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  background: var(--grad-green);
  color: var(--accent-contrast-green);
  box-shadow: 0 4px 18px -4px rgba(37, 211, 102, 0.55);
}

body.has-fomo-bar {
  padding-top: 38px;
}

/* .wizard mira 100dvh — sem isso, a barra fixa do topo empurra o rodapé do wizard (nav,
   botões) 38px pra fora da viewport em toda página, já que padding-top no body não é
   descontado de min-height:100dvh em elementos filhos. */
body.has-fomo-bar .wizard {
  min-height: calc(100dvh - 38px);
  /* respiro extra no rodapé pro toast de prova social ter onde aparecer sem nunca cobrir
     texto/botão — o nav (Voltar) fica colado ~18px da borda da tela por padrão, insuficiente
     pra um toast. steps-viewport absorve essa folga (flex:1), então isso não afeta o layout
     das perguntas em si, só empurra o rodapé pra cima. */
  padding-bottom: 96px;
}

.fomo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-contrast-green);
  box-shadow: 0 0 0 0 rgba(4, 22, 13, 0.5);
  animation: pulse-dot-dark 1.8s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot-dark {
  0% { box-shadow: 0 0 0 0 rgba(4, 22, 13, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(4, 22, 13, 0); }
  100% { box-shadow: 0 0 0 0 rgba(4, 22, 13, 0); }
}

.fomo-bar-text {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.fomo-bar-text strong { font-weight: 900; }

/* ---- Social-proof toast (fixed, bottom corner — assets/social-proof-widget.js) ---- */

.proof-toast {
  position: fixed;
  /* top é sempre definido via JS (social-proof-widget.js), logo abaixo do último
     texto/botão visível na tela naquele momento — nunca fica por cima de conteúdo */
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  max-width: 300px;
  /* puramente informativo (sem link/botão dentro) — nunca deve bloquear cliques no
     conteúdo real da página por baixo, mesmo se visualmente sobrepuser algo */
  pointer-events: none;
  animation: proof-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.proof-toast-bottom-left {
  left: 16px;
  animation-name: proof-in-left;
}

.proof-toast-bottom-right {
  right: 16px;
  animation-name: proof-in-right;
}

.proof-toast.leaving {
  animation: proof-out 320ms ease forwards;
}

/* estado temporário só pra medir a altura real da mensagem (offsetHeight) antes de decidir
   se ela cabe na tela sem cobrir nada — invisível mas ainda ocupa layout, sem animação */
.proof-toast.measuring {
  visibility: hidden;
  animation: none;
}

@keyframes proof-in-left {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes proof-in-right {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes proof-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(14px); }
}

.proof-icon {
  flex-shrink: 0;
  font-size: 20px;
}

.proof-text {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text);
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---- Options (lettered quiz style) ---- */

.options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 6px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
}

.option-letter {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.option-text { flex: 1; }

.option-row:hover {
  background: var(--card-hover);
  border-color: rgba(255, 58, 76, 0.45);
  transform: translateX(2px);
}

.option-row:hover .option-letter {
  border-color: rgba(255, 58, 76, 0.55);
  color: var(--red-strong);
}

.option-row:active { transform: translateX(2px) scale(0.99); }

.option-row.selected {
  border-color: var(--red-strong);
  background: linear-gradient(0deg, rgba(224, 27, 46, 0.14), rgba(224, 27, 46, 0.14)), var(--card);
}

.option-row.selected .option-letter {
  background: var(--grad);
  border-color: transparent;
  color: var(--accent-contrast);
}

/* ---- Contact form ---- */

.form-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
  padding: 20px;
  background: rgba(16, 16, 16, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.req { color: var(--red-strong); }

.field input {
  padding: 15px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
  outline: none;
  border-color: var(--red-strong);
  box-shadow: 0 0 0 3px rgba(255, 58, 76, 0.18);
}

.field input.invalid {
  border-color: var(--error);
}

.field-error {
  font-size: 13px;
  color: var(--error);
  min-height: 16px;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---- Checkbox field (Forms SS: "tem sócio" question) ---- */

.field-checkbox { flex-direction: row; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--red-strong);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn-primary {
  background: var(--grad);
  color: var(--accent-contrast);
  box-shadow: 0 10px 32px -8px rgba(224, 27, 46, 0.6);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -8px rgba(224, 27, 46, 0.75); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-cta {
  background: var(--grad-green);
  color: var(--accent-contrast-green);
  box-shadow: 0 10px 34px -6px rgba(37, 211, 102, 0.75);
}

.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -6px rgba(37, 211, 102, 0.9); }
.btn-cta:active { transform: translateY(0); }
.btn-cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; animation: none; }

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 10px 34px -6px rgba(37, 211, 102, 0.75); }
  50% { box-shadow: 0 10px 40px -2px rgba(37, 211, 102, 1); }
}

.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-hero {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
  width: fit-content;
  animation: cta-pulse 2.2s ease-in-out infinite;
}

.btn-hero:hover { animation: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  padding: 10px 4px;
  font-size: 14px;
}
.btn-ghost:hover { color: var(--text); }

.btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--accent-contrast);
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.microcopy {
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
  margin: 0;
}

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  min-height: 32px;
}

.save-indicator {
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 300ms ease;
}

.save-indicator.visible { opacity: 1; }

.step-done {
  align-items: stretch;
  gap: 14px;
}

.hazard-stripe {
  border-radius: 10px;
  padding: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow),
    var(--yellow) 10px,
    #1a1400 10px,
    #1a1400 20px
  );
}

.hazard-stripe-inner {
  background: #0a0800;
  border-radius: 7px;
  padding: 9px 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}

.hazard-stripe-inner span {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--yellow);
}

.done-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
}

.done-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--accent-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.done-author {
  margin: 0;
  font-size: 14px;
  color: var(--text-faint);
}

.done-warning {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 4.2vw, 22px);
  color: var(--red-strong);
}

.done-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 46ch;
}

.done-text strong { color: var(--text); font-weight: 700; }

.done-cta-hint {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.done-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

.step h2 {
  font-family: var(--font-display);
  font-size: clamp(23px, 5vw, 31px);
  line-height: 1.22;
  margin: 0;
  font-weight: 700;
}

@media (max-width: 480px) {
  .wizard { padding: 20px 18px 18px; }
  .option-row { padding: 13px 14px; font-size: 15px; }
  .form-card { padding: 16px; }
  .hero-title { font-size: clamp(30px, 10vw, 38px); line-height: 1.12; }
  .lede { font-size: 15px; }
  .btn-hero { width: 100%; letter-spacing: 0.02em; }
  .trust-row { gap: 8px 14px; font-size: 12.5px; }

  .fomo-bar { height: 34px; }
  body.has-fomo-bar { padding-top: 34px; }
  body.has-fomo-bar .wizard { min-height: calc(100dvh - 34px); padding-bottom: 88px; }
  .fomo-bar-text { font-size: 11.5px; }

  .proof-toast {
    left: 10px;
    right: 10px;
    padding: 11px 13px;
    max-width: none;
    gap: 10px;
  }
  .proof-icon { font-size: 17px; }
  .proof-text { font-size: 12.5px; }
}
