/* ===============================================================
   Quiz Kard — servidor municipal de Fortaleza.
   Paleta "Fortaleza Design System" (decisoes.md D5): teal + fundo
   quente, acentos em coral e sol. Sai do branco-e-verde da demo.
   =============================================================== */

:root {
  --tinta:      #17343D;
  --tinta-2:    #3F5259;
  --tinta-3:    #53666B;
  --linha:      #DDE5E6;
  --linha-2:    #C9D6D8;
  --fundo:      #FFFCF5;   /* Background quente */
  --branco:     #FFFFFF;   /* Surface */
  --warm:       #F8F1E3;   /* Warm Surface */

  --acento:     #087E9E;   /* Primary */
  --acento-esc: #06657D;   /* Primary escurecido p/ hover */
  --acento-luz: #E4F1F5;   /* tint do primary */
  --acento-ring:rgba(8, 126, 158, .18);

  --coral:      #E86F51;   /* acento quente */
  --sun:        #F5B82E;
  --sand:       #E8C98D;

  --sucesso:    #3F8F68;
  --sucesso-luz:#E7F1EC;
  --erro:       #C94F4F;

  --raio:       18px;
  --raio-2:     12px;
  --sombra:     0 1px 2px rgba(23, 52, 61, .04), 0 10px 30px -14px rgba(23, 52, 61, .16);

  --fonte: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.14; }
p { margin: 0; }
button { font: inherit; }

/* ---------------- Topo ---------------- */

.topo {
  min-height: 64px;
  background: var(--branco);
  border-bottom: 3px solid var(--acento);
  box-shadow: 0 1px 12px -6px rgba(23, 52, 61, .28);
  display: grid;
  place-items: center;
  padding: 11px 20px;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--tinta); }
.logo__selo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--acento);
  color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
  flex: none;
}
.logo__selo--foto { background: none; padding: 0; overflow: hidden; }
.logo__selo--foto picture { display: block; width: 100%; height: 100%; }
.logo__selo--foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo__nome { font-size: 16.5px; font-weight: 700; letter-spacing: -.015em; }
.logo__tag {
  font-size: 11px; font-weight: 600;
  letter-spacing: .02em;
  color: var(--acento);
}

/* ---------------- Dobra ---------------- */

.dobra {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;      /* centraliza o fold na tela */
  min-height: calc(100svh - 90px); /* fold ocupa a tela (menos o header) */
  padding: 24px 20px 32px;
  /* atmosfera: céu (azul) descendo para o fundo quente, sutil */
  background: linear-gradient(180deg, rgba(72, 185, 214, .13) 0%, rgba(72, 185, 214, 0) 46%);
}
/* Hero (abertura): ancorado no topo e com altura do próprio conteúdo — sem a
   folga vertical que sobrava. Os cards do quiz continuam centralizados e
   preenchendo o fold (regra .dobra acima). */
.dobra:has(.abertura) {
  justify-content: flex-start;
  min-height: auto;
  padding-top: 26px;
  padding-bottom: 40px;
}

/* sol de assinatura, canto superior — calor sem virar site turístico */
.dobra::before {
  content: "";
  position: absolute;
  top: -90px; right: -70px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 46, .30), rgba(232, 201, 141, .14) 58%, transparent 72%);
  pointer-events: none;
}
.palco { position: relative; z-index: 1; width: 100%; max-width: 520px; }

/* ---- Abertura ---- */

.abertura { text-align: center; }

.pill {
  display: inline-block;
  padding: 7px 15px;
  margin-bottom: 15px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--acento);
  background: rgba(72, 185, 214, .18);
  border-radius: 100px;
}

.abertura h1 { font-size: 40px; font-weight: 800; margin-bottom: 13px; }
.abertura h1 em { font-style: normal; color: var(--coral); }

.abertura__sub {
  max-width: 420px;
  margin: 0 auto 24px;
  font-size: 16px;
  color: var(--tinta-2);
  line-height: 1.5;
}

/* ---- Benefícios: bloco vertical compacto, sem cardização ---- */

.beneficios {
  list-style: none;
  margin: 0 auto 24px;
  padding: 5px 10px;
  max-width: 420px;
  background: var(--warm);
  border-radius: var(--raio);
}
.beneficio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 550;
  text-align: left;
  color: var(--tinta);
}
.beneficio + .beneficio { border-top: 1px solid rgba(23, 52, 61, .08); }
.beneficio__ic {
  flex: none;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--branco);
  color: var(--acento);
}
.beneficio__ic svg { display: block; }

/* Ajuste mobile: aperta a tipografia do hero para o fold caber na tela */
@media (max-width: 520px) {
  .abertura h1 { font-size: 32px; }
  .abertura__sub { font-size: 15px; margin-bottom: 20px; }
  .beneficio { padding: 9px 12px; font-size: 14px; }
}
@media (max-width: 360px) {
  .abertura h1 { font-size: 29px; }
}

/* ---- Cartão do quiz ---- */

.cartao {
  background: var(--warm);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  overflow: hidden;
}
.cartao__topo {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 16px 22px 0;
}
.trilho { flex: 1; height: 4px; background: var(--linha); border-radius: 100px; overflow: hidden; }
.trilho__fita {
  display: block; height: 100%; width: 0;
  background: var(--acento); border-radius: 100px;
  transition: width .5s cubic-bezier(.25, .8, .3, 1);
}
.contador { font-size: 12.5px; font-weight: 500; color: var(--tinta-3); white-space: nowrap; }
.cartao__corpo { padding: 22px 22px 24px; }

@media (max-width: 400px) {
  .cartao__topo { padding: 14px 17px 0; }
  .cartao__corpo { padding: 20px 17px 20px; }
}

.voltar {
  display: inline-flex; align-items: center; gap: 5px;
  margin-bottom: 12px; padding: 0;
  font-size: 13.5px; color: var(--tinta-3);
  background: none; border: none; cursor: pointer;
  transition: color .18s;
}
.voltar:hover { color: var(--tinta-2); }

.pergunta { font-size: 23px; font-weight: 700; margin-bottom: 6px; }
.apoio { font-size: 15px; color: var(--tinta-3); margin-bottom: 20px; line-height: 1.45; }

/* ---- Opções ---- */

.opcoes { display: grid; gap: 9px; }
.opcao {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 15px 17px;
  font-size: 16px; font-weight: 500; text-align: left;
  color: var(--tinta); background: var(--branco);
  border: 1.5px solid var(--linha-2); border-radius: var(--raio-2);
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.opcao svg { flex: none; color: var(--tinta-3); transition: transform .22s cubic-bezier(.3,.8,.3,1), color .18s; }
.opcao:hover { border-color: var(--acento); background: var(--acento-luz); }
.opcao:hover svg { color: var(--acento); transform: translateX(3px); }
.opcao:focus-visible { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px var(--acento-ring); }
.opcao.escolhida { border-color: var(--acento); background: var(--acento-luz); }
.opcao.escolhida svg { color: var(--acento); }
.opcao:disabled { pointer-events: none; }   /* etapa de qualificação travada (só leitura) */

/* ---- Campos ---- */

.campo { margin-bottom: 15px; }
.campo label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.campo input {
  width: 100%; height: 54px; padding: 0 16px;
  font: inherit; font-size: 16.5px; color: var(--tinta);
  background: var(--branco); border: 1.5px solid var(--linha-2); border-radius: var(--raio-2);
  transition: border-color .18s, box-shadow .18s;
}
.campo input::placeholder { color: #A6B7C7; }
.campo input:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px var(--acento-ring); }
.campo input.erro { border-color: var(--erro); }

.recado { display: none; margin-top: 6px; font-size: 13px; color: var(--erro); }
.recado.visivel { display: block; }
.nota { margin-top: 7px; font-size: 13px; color: var(--tinta-3); }

/* ---- Consentimento (tela do CPF) ---- */

.consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 4px 0 16px;
  font-size: 13.5px; color: var(--tinta-2); line-height: 1.45;
  cursor: pointer;
}
.consent input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--acento); flex: none; }
.consent.erro { color: var(--erro); }

/* ---- Botões ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; height: 56px; padding: 0 24px;
  font-size: 16.5px; font-weight: 650; color: #fff; text-decoration: none;
  background: var(--acento); border: none; border-radius: var(--raio-2);
  cursor: pointer; transition: background .18s, transform .08s;
}
.btn:hover { background: var(--acento-esc); }
.btn:active { transform: scale(.988); }
.btn:disabled { opacity: .45; pointer-events: none; }   /* confirmar sem opção escolhida */
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--acento-ring); }
.btn svg { transition: transform .22s cubic-bezier(.3,.8,.3,1); }
.btn:hover svg { transform: translateX(3px); }
.btn--abrir { max-width: 360px; margin: 0 auto; }

/* CTA principal do hero: Sol como cor de conversão, texto escuro (contraste alto) */
.btn--cta { background: var(--sun); color: var(--tinta); font-weight: 750; box-shadow: 0 10px 24px -12px rgba(245, 184, 46, .85); }
.btn--cta:hover { background: #E7A81E; }
.btn--cta svg { color: var(--tinta); }
.btn--cta:focus-visible { box-shadow: 0 0 0 4px rgba(245, 184, 46, .4); }

/* botão de WhatsApp no final */
.btn--zap { background: var(--sucesso); }
.btn--zap:hover { background: #347A57; }

/* ---- Final ---- */

.resultado { text-align: center; }
.brasao {
  width: 56px; height: 56px; margin: 2px auto 16px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--sucesso-luz); color: var(--sucesso);
}
.brasao--neutro { background: var(--warm); color: var(--coral); }
.resultado h2 { font-size: 24px; font-weight: 750; margin-bottom: 6px; }
.resultado__sub { font-size: 15.5px; color: var(--tinta-3); margin-bottom: 20px; }

.caixa {
  padding: 16px 18px; background: var(--warm); border-radius: var(--raio-2);
  font-size: 15px; color: var(--tinta-2); text-align: left; line-height: 1.5; margin-bottom: 18px;
}
.rodape-nota { margin-top: 14px; font-size: 13px; color: var(--tinta-3); line-height: 1.5; }

/* Card da consultora (handoff) — foto real da Claudia antes do WhatsApp. */
.consultor {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--warm); border-radius: var(--raio-2);
  padding: 12px 14px; margin-bottom: 16px;
}
.consultor__foto,
.consultor > picture {
  width: 56px; height: 56px; flex: none;
  border-radius: 50%; overflow: hidden; display: block;
  box-shadow: 0 0 0 2px #fff, 0 2px 10px -4px rgba(23, 52, 61, .45);
}
.consultor > picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.consultor__txt { display: flex; flex-direction: column; line-height: 1.25; }
.consultor__label {
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; color: var(--acento);
}
.consultor__txt b { font-size: 16px; font-weight: 700; }
.consultor__papel { font-size: 13px; color: var(--tinta-3); }

/* ---------------- FAQ ---------------- */

/* céu suave separando o hero do rodapé; borda-assinatura em gradiente mar->céu->areia */
.faq {
  background: linear-gradient(180deg, rgba(72, 185, 214, .09), rgba(72, 185, 214, .03));
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--acento), #48B9D6, var(--sand)) 1;
}
.faq__wrap { max-width: 700px; margin: 0 auto; padding: 60px 20px 72px; }
.faq h2 { font-size: 28px; font-weight: 750; margin-bottom: 26px; }
.item-faq {
  background: var(--branco);
  border: 1px solid var(--linha); border-radius: var(--raio-2);
  margin-bottom: 9px; overflow: hidden; transition: border-color .2s;
}
.item-faq:hover, .item-faq.aberto { border-color: var(--linha-2); }
.item-faq__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 17px 20px;
  font-size: 16px; font-weight: 600; text-align: left; color: var(--tinta);
  background: none; border: none; cursor: pointer;
}
.item-faq__btn svg { flex: none; color: var(--acento); transition: transform .25s cubic-bezier(.3,.8,.3,1); }
.item-faq.aberto .item-faq__btn svg { transform: rotate(180deg); }
.item-faq__corpo { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s cubic-bezier(.3,.8,.3,1); }
.item-faq.aberto .item-faq__corpo { grid-template-rows: 1fr; }
.item-faq__corpo > div { overflow: hidden; }
.item-faq__corpo p { padding: 0 20px 18px; font-size: 15.5px; color: var(--tinta-2); line-height: 1.6; }

/* ---------------- Rodapé ---------------- */

.rodape { background: var(--tinta); color: #B7C7CC; text-align: center; }
.rodape__wrap { max-width: 720px; margin: 0 auto; padding: 40px 24px 46px; }
.rodape__marca { color: #fff; font-size: 15px; font-weight: 650; margin-bottom: 14px; }
.rodape p { font-size: 12.5px; line-height: 1.7; }
.rodape__cnpj { margin-top: 14px; font-size: 12px; color: #7E969B; }

/* ---------------- Animação ---------------- */

.entra { animation: entrar .28s cubic-bezier(.25, .8, .3, 1) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.sai { animation: sair .18s ease both; }
@keyframes sair { to { opacity: 0; transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
