/* =========================================================
   Agência Fênix — Landing de recrutamento (TikTok Live)
   Tema: dark neon | Mobile-first
   ========================================================= */

:root {
  --bg: #0b0f12;
  --panel: #131a20;
  --border: #1f2a33;
  --text: #edf2f4;
  --muted: #97a6ae;
  --cyan: #07b8c4;
  --cyan-bright: #19e3ef;
  --red: #de201d;
  --red-bright: #ff4b44;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  /* brilhos sutis nas cores da marca, no topo da página */
  background-image:
    radial-gradient(600px 400px at 15% -5%, rgba(7, 184, 196, .14), transparent 70%),
    radial-gradient(600px 400px at 85% 5%, rgba(222, 32, 29, .12), transparent 70%);
  background-repeat: no-repeat;
}

img { max-width: 100%; display: block; }

#hero, main section, footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px;
  text-align: center;
}

h1 {
  font-size: clamp(1.9rem, 6.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 16px 0 12px;
}

h2 {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px;
}

h3 { font-size: 1.05rem; margin: 0 0 8px; }

.grad {
  background: linear-gradient(90deg, var(--cyan-bright), var(--red-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
#hero { padding-top: 32px; }

.logo {
  width: min(68vw, 280px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 45%;
  margin: 0 auto;
  /* funde o fundo cinza do PNG ao tema escuro, sem recorte */
  -webkit-mask-image: radial-gradient(circle at center, #000 46%, transparent 72%);
  mask-image: radial-gradient(circle at center, #000 46%, transparent 72%);
}

.selo {
  display: inline-block;
  margin: 8px 0 0;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--cyan-bright);
}

.sub { color: var(--muted); font-size: 1.02rem; margin: 0 0 24px; }

.micro { color: var(--muted); font-size: .8rem; margin-top: 10px; }

/* ---------- Botão CTA ---------- */
.btn-cta {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--red));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 0 22px rgba(7, 184, 196, .35), 0 0 34px rgba(222, 32, 29, .25);
  animation: pulse 2.6s ease-in-out infinite;
  transition: transform .15s ease;
}

.btn-cta:hover { transform: scale(1.04); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(7, 184, 196, .30), 0 0 28px rgba(222, 32, 29, .20); }
  50%      { box-shadow: 0 0 30px rgba(7, 184, 196, .55), 0 0 46px rgba(222, 32, 29, .40); }
}

/* ---------- Prova social ---------- */
.label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--red-bright);
  margin: 0 0 6px;
}

.numero {
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  font-weight: 800;
  margin: 0;
  color: var(--cyan-bright);
  text-shadow: 0 0 28px rgba(25, 227, 239, .35);
}

.numero-desc { font-size: 1rem; margin: 6px 0 14px; }

.nota { color: var(--muted); font-size: .82rem; max-width: 440px; margin: 0 auto; }

/* ---------- Benefícios ---------- */
.cards { display: grid; gap: 16px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: left;
}

.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.card-cyan { border-top: 3px solid var(--cyan); }
.card-red  { border-top: 3px solid var(--red); }

/* ---------- Como funciona ---------- */
.passos {
  list-style: none;
  counter-reset: passo;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  text-align: left;
}

.passos li {
  counter-increment: passo;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 18px 62px;
  position: relative;
}

.passos li::before {
  content: counter(passo);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--red));
}

.passos strong { display: block; margin-bottom: 2px; }
.passos span { color: var(--muted); font-size: .92rem; }

/* ---------- Quiz ---------- */
#quiz-app {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 20px;
}

.quiz-fallback {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  text-align: left;
}

.quiz-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 14px;
}

.quiz-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--red));
  transition: width .3s ease;
}

.quiz-step { color: var(--muted); font-size: .8rem; margin: 0 0 6px; }

.quiz-question { font-size: 1.15rem; font-weight: 600; margin: 0 0 18px; }

/* Recebem foco programático (a11y): sem contorno, pois o conteúdo já mudou à vista */
.quiz-question:focus, .quiz-result-title:focus { outline: none; }

.quiz-options { display: grid; gap: 10px; }

.quiz-option {
  padding: 14px 16px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, transform .1s ease;
}

.quiz-option:hover { border-color: var(--cyan); transform: scale(1.01); }

.quiz-result-title { font-size: 1.3rem; font-weight: 800; margin: 4px 0 10px; }

.quiz-result.is-ok .quiz-result-title { color: var(--cyan-bright); }

.quiz-result .btn-cta { margin-top: 14px; }

/* ---------- Formulário de contato (nome + WhatsApp) ---------- */
.quiz-form { display: grid; gap: 10px; margin-top: 16px; }

.quiz-input {
  padding: 14px 16px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  text-align: center;
}

.quiz-input::placeholder { color: var(--muted); }
.quiz-input:focus { outline: none; border-color: var(--cyan); }

.quiz-form-error { color: var(--red-bright); font-size: .88rem; margin: 2px 0 0; }

.quiz-form .btn-cta { margin-top: 6px; }

.quiz-consent { color: var(--muted); font-size: .78rem; line-height: 1.4; margin: 10px 0 0; }

/* ---------- FAQ ---------- */
#faq { text-align: left; }
#faq h2 { text-align: center; }

#faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

#faq summary { font-weight: 600; cursor: pointer; }
#faq details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Rodapé ---------- */
footer {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
}

footer p { margin: 4px 0; }

/* ---------- Animação de entrada (reveal) ----------
   Só esconde conteúdo quando o JS está ativo (html.js),
   então nada fica invisível se o JavaScript falhar. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Acessibilidade: menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-cta { animation: none; transition: none; }
  .quiz-option { transition: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
