:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --card-bg: #161616;
  --surface-2: #1f1f1f;
  --text: #f5f5f5;
  --text-muted: #9c9c9c;
  --accent: #e40038;
  --accent-hover: #ff1f52;
  --accent-tint: rgba(228, 0, 56, 0.16);
  --ring-bg: #262626;
  --border: #2a2a2a;
  --low: #ff4d5e;
  --mid: #ffb020;
  --high: #2ecc71;
  --radius: 16px;
}

* { box-sizing: border-box; }

button, input {
  color: var(--text);
  font-family: inherit;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3, .btn-primary, .btn-nav-cta, .step-number, .service-card h3 {
  font-family: "Space Grotesk", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; }
.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

.btn-nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.btn-nav-cta:hover { background: var(--accent-hover); }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* --- Hero --- */
.hero {
  padding: 72px 20px 48px;
  text-align: center;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin: 18px 0 18px;
  letter-spacing: -0.01em;
}
.hero-text {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 28px;
}
.btn-hero { width: auto; padding: 16px 32px; font-size: 1.05rem; display: inline-block; }
.hero .fine-print { margin-top: 12px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.hero-badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .hero { padding: 48px 16px 32px; }
  .hero h1 { font-size: 1.9rem; }
}

.app {
  display: flex;
  justify-content: center;
  padding: 16px 16px 48px;
}

.screen { display: none; width: 100%; }
.screen.active { display: flex; justify-content: center; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

h1 { font-size: 1.7rem; line-height: 1.3; margin: 0 0 14px; color: var(--text); }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 0 0 10px; color: var(--text); }
h3 { font-size: 1.1rem; margin: 24px 0 12px; color: var(--text); }

.lead-text { color: var(--text-muted); font-size: 0.98rem; line-height: 1.5; margin-bottom: 20px; }

.fine-print { color: var(--text-muted); font-size: 0.82rem; margin-top: 16px; text-align: center; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  padding: 10px 4px;
}
.btn-ghost:hover { color: var(--text); }

/* --- Formulário de lead --- */
#form-lead { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
#form-lead label { font-size: 0.85rem; font-weight: 600; margin-top: 10px; color: var(--text); }
#form-lead input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
  margin-top: 4px;
  margin-bottom: 4px;
  background: var(--surface-2);
  color: var(--text);
  color-scheme: dark;
}
#form-lead input::placeholder { color: var(--text-muted); }
#form-lead input:focus { outline: 2px solid var(--accent); }
#form-lead button { margin-top: 18px; }

/* --- Quiz --- */
.quiz-card { max-width: 560px; }

.quiz-progress-track {
  width: 100%;
  height: 6px;
  background: var(--ring-bg);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.quiz-meta #quiz-progress-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.area-tag {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--accent-tint);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}

.options-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 8px; }

.option-card {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  color-scheme: dark;
  font-size: 0.96rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-card:hover { border-color: var(--accent); }
.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-tint);
  font-weight: 600;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 12px;
}
.quiz-nav .btn-primary { width: auto; flex: 1; }

/* --- Resultado --- */
.result-card { max-width: 640px; }

.result-top {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 18px 0 8px;
  flex-wrap: wrap;
}

.score-ring {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0%, var(--ring-bg) 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.score-ring-inner {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#result-score-number { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.score-ring-caption { font-size: 0.72rem; color: var(--text-muted); }

.result-top-text { flex: 1; min-width: 220px; }
.result-top-text p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.5; margin: 6px 0; }
.weakest-text { font-weight: 700; color: var(--accent) !important; }

.result-areas-title { margin-top: 26px; }

.areas-grid { display: flex; flex-direction: column; gap: 14px; }

.area-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--surface-2);
}
.area-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.area-card-title { font-weight: 700; font-size: 0.96rem; color: var(--text); }

.area-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
}
.status-low { background: var(--low); }
.status-mid { background: var(--mid); color: #241a00; }
.status-high { background: var(--high); color: #062b14; }

.area-bar-track {
  width: 100%;
  height: 8px;
  background: var(--ring-bg);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.area-bar-fill { height: 100%; border-radius: 999px; }
.area-bar-fill.status-low { background: var(--low); }
.area-bar-fill.status-mid { background: var(--mid); }
.area-bar-fill.status-high { background: var(--high); }

.area-card-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

.result-footer { margin-top: 22px; }
.result-footer strong { color: var(--accent); }

@media (max-width: 480px) {
  .card { padding: 24px 18px; }
}

/* --- Seções institucionais --- */
.section { padding: 72px 20px; }
.section-alt { background: var(--card-bg); }
.section-inner { max-width: 880px; margin: 0 auto; }
.section-inner > .eyebrow { display: block; width: fit-content; }
.section-inner h2 { font-size: 2rem; margin: 14px 0 20px; max-width: 640px; }
.section-text { color: var(--text-muted); font-size: 1.02rem; line-height: 1.65; max-width: 680px; }

.section-diagnostico { padding: 56px 20px; }

/* --- Como trabalhamos (steps) --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin: 0 0 8px; }
.step p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; margin: 0; }

/* --- Serviços --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}
.service-icon { font-size: 1.8rem; display: block; margin-bottom: 14px; }
.service-card h3 { font-size: 1.15rem; margin: 0 0 10px; }
.service-card > p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; margin: 0 0 16px; }
.service-card ul { margin: 0; padding-left: 18px; }
.service-card li {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}
.service-card li::marker { color: var(--accent); }

/* --- Depoimentos (prova social em vídeo) --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.testimonial-placeholder {
  aspect-ratio: 9 / 13;
  background: var(--surface-2);
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.testimonial-label { color: var(--text); font-weight: 600; font-size: 0.92rem; }
.testimonial-status {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- CTA final --- */
.section-cta { padding: 72px 20px; }
.section-cta-inner { text-align: center; max-width: 560px; }
.section-cta h2 { margin: 0 0 28px; }

/* --- Rodapé --- */
.site-footer {
  padding: 36px 20px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.brand-logo-footer { height: 36px; margin: 0 auto 10px; }
.site-footer p { color: var(--text-muted); font-size: 0.84rem; margin: 0; }

@media (max-width: 760px) {
  .steps, .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .section-inner h2 { font-size: 1.6rem; }
}
