/* =========================================================
   Diagnóstico — multi-step form
   ========================================================= */
:root {
  --blue: #4cf35e;
  --blue-600: #38d24a;
  --ink: #111114;
  --muted: #6b6b73;
  --line: #e6e6e4;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Topbar + progress */
.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
}
.topbar .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}
.topbar .brand .dot { color: var(--blue); }
.progress {
  flex: 1;
  height: 4px;
  background: #ececea;
  border-radius: 4px;
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 16%;
  background: var(--blue);
  border-radius: 4px;
  transition: width .35s ease;
}
.progress__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--muted);
  white-space: nowrap;
}

/* Stage */
.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 100px;
}
.card { width: 100%; max-width: 720px; margin: 0 auto; }
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  font-size: 15px;
  letter-spacing: .06em;
  margin-bottom: 26px;
}
.q-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.q-help { color: var(--muted); font-size: 17px; margin: 0 0 40px; }

/* Text input */
.text-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 500;
  padding: 8px 0 14px;
  outline: none;
  color: var(--ink);
  background: transparent;
  transition: border-color .2s ease;
}
.text-input::placeholder { color: #b6b6bc; }
.text-input:focus { border-color: var(--blue); }

/* Options */
.options { display: grid; gap: 14px; margin-bottom: 8px; }
.option {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 22px 24px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.option:hover { border-color: #bcbcc4; }
.option.selected { border-color: var(--blue); background: #ecfced; }
.option .key {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 6px;
  background: #f1f1ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}
.option.selected .key { background: var(--blue); color: #06210c; }

/* Actions */
.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 44px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.btn-primary { background: var(--blue); color: #06210c; }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-back {
  background: none;
  color: var(--muted);
  padding: 15px 4px;
  font-weight: 600;
}
.btn-back:hover { color: var(--ink); }
.hint { margin-left: auto; color: #b6b6bc; font-size: 14px; }

/* Success */
.done { text-align: center; max-width: 560px; }
.done .check {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.done h2 { font-family: var(--font-display); font-size: clamp(30px,4.4vw,46px); margin: 0 0 16px; letter-spacing: -.02em; }
.done p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 30px; }

/* =========================================================
   Tela final (dark) — resultado personalizado
   ========================================================= */
body.result-mode { background: #0a0a0c; }
body.result-mode .topbar { border-bottom-color: transparent; background: #0a0a0c; }
body.result-mode .topbar .brand { color: #5f5f6b; }
body.result-mode .topbar .brand .dot { color: #1f5a2a; }

.result { width: 100%; max-width: 720px; margin: 0 auto; color: #fff; }
.result .kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
}
.result .kicker-bar {
  width: 84px; height: 3px;
  background: var(--blue);
  margin: 14px 0 30px;
}
.result h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 24px;
  color: #fff;
}
.result .intro {
  color: #b6b6c0;
  font-size: 18px;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 30px;
}
.result .insight {
  border-left: 3px solid var(--blue);
  padding: 2px 0 2px 22px;
  margin: 0 0 34px;
  max-width: 54ch;
}
.result .insight .tag {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  margin-bottom: 10px;
}
.result .insight p { color: #d6d6de; font-size: 15.5px; line-height: 1.65; margin: 0; }
.result .insight p.urg { color: #8f8f9c; font-size: 14px; margin-top: 12px; }

.result .result-cta { margin: 0 0 40px; }

.result .steps-box {
  border: 1px solid #26262c;
  border-radius: 12px;
  margin: 4px 0 40px;
}
.result .rstep {
  display: flex;
  gap: 26px;
  padding: 26px 28px;
  border-bottom: 1px solid #1d1d23;
}
.result .rstep:last-child { border-bottom: none; }
.result .rstep .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--blue);
  letter-spacing: -.02em;
  min-width: 34px;
}
.result .rstep h3 { font-family: var(--font-display); color: #fff; font-size: 18px; margin: 0 0 6px; letter-spacing: -.01em; }
.result .rstep p { color: #9a9aa6; font-size: 14.5px; line-height: 1.6; margin: 0; max-width: 62ch; }

.result .rfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #26262c;
  padding-top: 24px;
}
.result .rfoot a { color: #8f8f9c; font-weight: 600; font-size: 15px; }
.result .rfoot a:hover { color: #fff; }
.result .rfoot .rbrand { color: #5f5f6b; font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; }

@media (max-width: 560px){
  .topbar { padding: 16px 20px; gap: 16px; }
  .topbar .brand { display: none; }
  .stage { padding: 24px 20px 80px; }
  .result .rstep { padding: 22px 18px; gap: 16px; }
}
