/* =========================================================
   Mestres dos Negócios Stone — LP
   Paleta:
   --verde-vibrante #00D700  destaques, botões, gráficos
   --verde-escuro   #00461E  header, footer, seções fortes
   --verde-claro    #D2FF7E  cards e fundos de apoio
   --branco         #FFFFFF  fundo principal
   --preto-verde    #10251A  textos principais
   --cinza-claro    #F2F5F3  divisórias, bordas, neutros
   ========================================================= */

:root {
  --verde-vibrante: #00D700;
  --verde-escuro: #00461E;
  --verde-claro: #D2FF7E;
  --branco: #FFFFFF;
  --preto-verde: #10251A;
  --cinza-claro: #F2F5F3;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(16, 37, 26, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--branco);
  color: var(--preto-verde);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; display: flex; flex-direction: column; }

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.header {
  background: var(--verde-escuro);
  padding: 18px 0;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--branco);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.logo img { height: 44px; display: block; }

.logo-mark {
  color: var(--verde-vibrante);
  font-size: 1.1rem;
}

.logo-text strong { color: var(--verde-claro); font-weight: 800; }

/* ---------- Telas ---------- */
.screen {
  display: none;
  flex: 1;
  padding: 64px 0 80px;
}

.screen.is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Tela 1: Convite ---------- */
.intro { text-align: center; }

.badge {
  display: inline-block;
  background: var(--verde-claro);
  color: var(--verde-escuro);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.intro-title {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.intro-title em {
  font-style: normal;
  color: var(--verde-escuro);
  background: linear-gradient(transparent 62%, var(--verde-claro) 62%);
}

.intro-text {
  font-size: 1.12rem;
  color: rgba(16, 37, 26, 0.78);
  max-width: 520px;
  margin: 0 auto 14px;
}

.intro .btn-lg { margin-top: 26px; }

.intro-hint {
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(16, 37, 26, 0.5);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  background: var(--verde-vibrante);
  color: var(--verde-escuro);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 15px 34px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 6px 20px rgba(0, 215, 0, 0.28);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(0, 215, 0, 0.35);
}

.btn:active { transform: translateY(0); }

.btn-lg { font-size: 1.1rem; padding: 18px 44px; }

.btn-back {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(16, 37, 26, 0.55);
  cursor: pointer;
  margin-top: 34px;
  padding: 6px 0;
}

.btn-back:hover { color: var(--verde-escuro); }

/* ---------- Barra de progresso ---------- */
.progress {
  height: 6px;
  background: var(--cinza-claro);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--verde-vibrante);
  border-radius: 0 999px 999px 0;
  transition: width 0.4s ease;
}

/* ---------- Formulário ---------- */
.screen--form { padding-top: 0; }

.screen--form.is-active { justify-content: flex-start; }

.form-wrap { padding-top: 72px; }

.step { display: none; }

.step.is-active { display: block; animation: fadeUp 0.4s ease both; }

.step-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--verde-escuro);
  background: var(--verde-claro);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.question {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 26px;
}

input {
  width: 100%;
  font-family: inherit;
  font-size: 1.25rem;
  color: var(--preto-verde);
  background: var(--branco);
  border: none;
  border-bottom: 3px solid var(--cinza-claro);
  padding: 12px 4px;
  outline: none;
  transition: border-color 0.2s ease;
}

input::placeholder { color: rgba(16, 37, 26, 0.3); }

input:focus { border-bottom-color: var(--verde-vibrante); }

input.has-error { border-bottom-color: #d64545; }

.error {
  min-height: 22px;
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #d64545;
}

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

.enter-hint {
  font-size: 0.85rem;
  color: rgba(16, 37, 26, 0.45);
}

.enter-hint kbd {
  font-family: inherit;
  background: var(--cinza-claro);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.8rem;
}

/* ---------- Tela final ---------- */
.screen--final { text-align: center; }

.final-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--verde-vibrante);
  color: var(--verde-escuro);
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(0, 215, 0, 0.35);
}

.final-title {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 34px;
}

.final-card {
  background: var(--cinza-claro);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  text-align: left;
}

.final-subtitle {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--verde-escuro);
  margin-bottom: 10px;
}

.final-text { font-size: 1.08rem; margin-bottom: 8px; }

.final-text--muted { color: rgba(16, 37, 26, 0.65); margin-top: 14px; }

.final-list {
  list-style: none;
  margin: 14px 0 30px;
}

.final-list li {
  position: relative;
  padding: 7px 0 7px 32px;
  font-size: 1.02rem;
}

.final-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--verde-claro);
  color: var(--verde-escuro);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.final-card .btn { display: block; text-align: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--verde-escuro);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-size: 0.85rem;
  padding: 22px 24px;
}

/* ---------- Diagnóstico: múltipla escolha ---------- */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--preto-verde);
  background: var(--branco);
  border: 2px solid var(--cinza-claro);
  border-radius: var(--radius);
  padding: 15px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.option:hover {
  border-color: var(--verde-vibrante);
  transform: translateY(-1px);
}

.option.is-selected {
  border-color: var(--verde-vibrante);
  background: rgba(0, 215, 0, 0.06);
}

.option-key {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--cinza-claro);
  color: var(--verde-escuro);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.option.is-selected .option-key {
  background: var(--verde-vibrante);
}

/* ---------- Diagnóstico: texto longo ---------- */
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--preto-verde);
  background: var(--branco);
  border: none;
  border-bottom: 3px solid var(--cinza-claro);
  padding: 12px 4px;
  outline: none;
  resize: none;
  min-height: 120px;
  transition: border-color 0.2s ease;
}

textarea::placeholder { color: rgba(16, 37, 26, 0.3); }

textarea:focus { border-bottom-color: var(--verde-vibrante); }

textarea.has-error { border-bottom-color: #d64545; }

/* ---------- Diagnóstico: etapa intermediária ---------- */
.step-note {
  font-size: 1.08rem;
  color: rgba(16, 37, 26, 0.65);
  max-width: 520px;
  margin: -6px 0 10px;
}

/* ---------- Diagnóstico: resultado ---------- */
.result-text {
  font-size: 1.12rem;
  color: rgba(16, 37, 26, 0.78);
  max-width: 560px;
  margin: 0 auto 34px;
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  .screen { padding: 48px 0 64px; }
  .form-wrap { padding-top: 48px; }
  .step-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .final-card { padding: 30px 22px; }
  .btn-lg { width: 100%; }
  .option { font-size: 0.95rem; padding: 13px 14px; }
}
