/* =========================================================
   LANDING PAGE IRPF — estilos
   Para trocar a identidade visual, edite só as variáveis abaixo.
   ========================================================= */
:root {
  --petroleo: #0E3A4A;          /* cor principal (fundo do hero) */
  --petroleo-escuro: #0A2B37;   /* topo e rodapé */
  --gelo: #EEF2F3;              /* fundo das seções claras */
  --papel: #FFFFFF;
  --tinta: #17262E;             /* texto principal */
  --tinta-suave: #4B5E68;       /* texto secundário */
  --linha: #CBD6DB;
  --latao: #A9803F;             /* detalhe (CRC, barra de progresso) */
  --latao-claro: #E4C98F;       /* detalhe sobre fundo escuro */
  --texto-sobre-escuro: #C9D9DF;
  --whats: #17803F;             /* botão do WhatsApp */
  --whats-hover: #126B34;

  --fonte: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --raio: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--gelo);
}

h1, h2 { font-family: var(--fonte); font-weight: 400; margin: 0; }
p { margin: 0; }

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

:focus-visible {
  outline: 3px solid var(--latao);
  outline-offset: 2px;
}

/* ---------- TOPO ---------- */
.topo {
  background: var(--petroleo-escuro);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topo__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.assinatura {
  min-width: 0;
}

.assinatura__nome {
  font-family: var(--fonte);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.assinatura__registro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--texto-sobre-escuro);
}

.crc {
  display: inline-block;
  padding: 1px 9px;
  border: 1px solid var(--latao);
  border-radius: 3px;
  color: var(--latao-claro);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.topo__contato {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--raio);
  white-space: nowrap;
}
.topo__contato:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- HERO ---------- */
.hero {
  background: var(--petroleo);
  color: #fff;
  padding: 72px 0 88px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.apresentacao h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
  max-width: 15em;
}

.lead {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--texto-sobre-escuro);
  max-width: 32em;
}

.nota {
  margin-top: 32px;
  padding-left: 16px;
  border-left: 2px solid var(--latao);
  font-size: 0.95rem;
  color: #AFC3CB;
  max-width: 30em;
}

/* ---------- TESTE (cartão) ---------- */
.teste {
  background: var(--papel);
  color: var(--tinta);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 28px 48px -28px rgba(0, 0, 0, 0.55);
  min-height: 360px;
}

.progresso {
  height: 4px;
  background: var(--linha);
  border-radius: 2px;
  overflow: hidden;
}
.progresso__barra {
  height: 100%;
  background: var(--latao);
}

.passo {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--tinta-suave);
}

.pergunta {
  margin-top: 6px;
  font-size: 1.55rem;
  line-height: 1.25;
}
.pergunta:focus { outline: none; }

.ajuda {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--tinta-suave);
}

.opcoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}

.opcao {
  min-height: 54px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--petroleo);
  background: var(--papel);
  border: 1.5px solid var(--petroleo);
  border-radius: var(--raio);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.opcao:hover { background: var(--petroleo); color: #fff; }

.rodape-quiz {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 18px;
}

.link {
  padding: 8px 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--tinta-suave);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link:hover { color: var(--tinta); }

/* ---------- RESULTADO ---------- */
.resultado h2 {
  font-size: 1.65rem;
  line-height: 1.25;
}
.resultado__intro {
  margin-top: 14px;
  color: var(--tinta-suave);
}

.lista {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.lista li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 0.97rem;
}
.lista li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 7px;
  height: 7px;
  background: var(--latao);
}

.lista-titulo {
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.97rem;
}

.btn-whats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 26px;
  padding: 16px 22px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: var(--whats);
  border-radius: var(--raio);
  text-decoration: none;
  transition: background-color 0.15s;
}
.btn-whats:hover { background: var(--whats-hover); }
.btn-whats svg { width: 22px; height: 22px; flex: none; }

.btn-whats--inline {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin-top: 14px;
  padding: 12px 20px;
  font-size: 0.95rem;
}

/* ---------- WHATSAPP FLUTUANTE ---------- */
.whats-flutuante {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--whats);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  z-index: 60;
  transition: background-color 0.15s, transform 0.15s;
}
.whats-flutuante:hover { background: var(--whats-hover); transform: scale(1.06); }
.whats-flutuante svg { width: 28px; height: 28px; }

.resultado__aviso {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--tinta-suave);
}

/* ---------- DÚVIDAS ---------- */
.duvidas { padding: 72px 0 80px; }

.duvidas__inner { max-width: 820px; }

.duvidas h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

details { border-bottom: 1px solid var(--linha); }
details:first-of-type { border-top: 1px solid var(--linha); }

summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--latao);
}
details[open] summary::after { content: "\2212"; }

details p {
  padding: 0 40px 20px 0;
  color: var(--tinta-suave);
  max-width: 62ch;
}

/* ---------- RODAPÉ ---------- */
.rodape {
  background: var(--petroleo-escuro);
  color: #AFC3CB;
  padding: 36px 0 44px;
}
.rodape__assinatura {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--fonte);
  font-size: 1.2rem;
  color: #fff;
}
.rodape__aviso {
  margin-top: 14px;
  max-width: 70ch;
  font-size: 0.85rem;
}

/* ---------- MOBILE ---------- */
@media (max-width: 860px) {
  .hero { padding: 44px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .lead { font-size: 1.05rem; }
  .nota { margin-top: 24px; }
  .teste { padding: 24px 20px; min-height: 0; }
  .assinatura__nome { font-size: 1.35rem; }
  .duvidas { padding: 48px 0 56px; }
  .duvidas h2 { font-size: 1.6rem; }
}

@media (max-width: 640px) {
  .topo__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 22px;
    padding-bottom: 20px;
  }
  .topo__contato {
    align-self: stretch;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .topo__contato { padding: 8px 12px; font-size: 0.88rem; }
  .pergunta { font-size: 1.35rem; }
  .opcoes { grid-template-columns: 1fr; }
  /* só as laterais: não zerar o espaçamento vertical de .topo__inner, .hero__grid etc. */
  .container { padding-left: 18px; padding-right: 18px; }
  .whats-flutuante { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .whats-flutuante svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
