/* ============================================================
   estilo.css — as 4 páginas do funil
   Substitui reset.css + theme.css + header-footer.css +
   frontend.min.css + post-13.css + post-34.css do original
   (74 KB de Elementor -> este arquivo)
   ============================================================ */

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

:root {
  --preto: #000;
  --branco: #fff;
  --tinta: #111827;
  --tinta-2: #202a37;
  --linha: #e5e7eb;
  --linha-2: #d1d5db;
  --azul: #0866ff;
  --azul-2: #1c7dff;
  --azul-3: #1d5bff;
  --laranja: #ff512f;
  --verde: #059669;
  --vermelho: #ef4444;
  --fundo-claro: #f5f7fb;
  --escuro: #232f3f;
  --sans: Poppins, Inter, Arial, sans-serif;
}

img { max-width: 100%; }
button, a.btn { font-family: inherit; }
:focus-visible { outline: 3px solid var(--azul-2); outline-offset: 2px; }

/* ── preloader ───────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--preto);
  transition: opacity .12s ease;
}
#preloader.hide { opacity: 0; pointer-events: none; }
#preloader .spin {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.18); border-top-color: #fff;
  animation: girar .9s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ══ PÁGINA 1 — advertorial ══════════════════════════════ */
body.p-begin {
  font-family: var(--sans);
  background: var(--preto); color: var(--branco);
  overflow-x: hidden;
}
.top-bar {
  position: absolute; top: 0; left: 0; width: 100%; height: 50px;
  background: var(--branco); color: var(--preto);
  display: flex; align-items: center; justify-content: center; z-index: 999;
}
.top-bar img { position: absolute; left: 16px; height: 24px; width: auto; display: block; }
.top-bar span { font-size: 14px; font-weight: 500; }

/* aspect-ratio reserva a altura ANTES da imagem chegar.
   Sem isto o .content descia 175px no load — 84% do CLS (medido em 03/09). */
.slider { position: relative; width: 100%; overflow: hidden; padding-top: 50px; }
.slides {
  display: flex;
  aspect-ratio: 1055 / 513;
  animation: deslizar 12s infinite ease-in-out;
}
.slides img {
  width: 100%; height: 100%; display: block; flex-shrink: 0;
  object-fit: cover;
}
@keyframes deslizar {
  0%,33%   { transform: translateX(0); }
  38%,66%  { transform: translateX(-100%); }
  71%,100% { transform: translateX(-200%); }
}
@media (prefers-reduced-motion: reduce) { .slides { animation: none; } }
.gradient-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100px;
  background: linear-gradient(to bottom, rgba(51,60,76,0) 0%, #333c4c 100%);
  pointer-events: none;
}

/* Em tela larga o aspect-ratio 2:1 dava 933px de altura em 1920px — a dobra
   inteira só de imagem, com o CTA fora de vista. Aqui a altura passa a ser
   teto de viewport e a imagem faz cover. */
@media (min-width: 900px) {
  .slides { aspect-ratio: auto; height: min(52vh, 420px); }
}
@media (min-width: 1500px) {
  .slides { height: min(48vh, 460px); }
}

/* faixa central: no celular ocupa tudo, no desktop para de esticar.
   Sem isto o parágrafo atravessava 1900px numa linha só. */
.content, .social-proof, .footer { max-width: 680px; margin-inline: auto; }

.content { padding: 26px 20px 22px; }
.content h1 {
  /* piso 17px: e o tamanho em que o titulo inteiro cabe numa linha no 320px */
  font-size: clamp(17px, 5.2vw, 30px); font-weight: 800; margin-bottom: 14px;
  /* no iPhone SE o emoji final caía sozinho numa 2a linha */
  text-wrap: balance; word-break: keep-all;
}
.content p  { font-size: clamp(15px, 3.4vw, 18px); line-height: 1.55; color: #e8e8e8; }
.content .btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 60px; margin-top: 24px; padding: 16px 14px;
  border: 0; border-radius: 0; cursor: pointer;
  background: linear-gradient(90deg, #ff512f 0%, #f7971e 100%);
  color: var(--branco); font-weight: 800;
  /* encolhe a fonte no 320 em vez de quebrar em duas linhas */
  font-size: clamp(15px, 4.4vw, 18px);
  text-align: center; text-decoration: none; line-height: 1.25;
}
.content .btn:hover { filter: brightness(1.06); }

.social-proof { padding: 26px 20px; text-align: center; }
.avatars { display: flex; justify-content: center; }
.avatars img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--preto); margin-left: -10px;
}
.avatars img:first-child { margin-left: 0; }
.proof-text { margin-top: 10px; font-size: 14px; color: #d5d5d5; }

.footer { padding: 22px 20px 34px; text-align: center; }
.footer img { height: 22px; width: auto; margin-bottom: 10px; }
.footer p { font-size: 12px; line-height: 1.6; color: #cfcfcf; }
.footer a { color: #cfcfcf; text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: var(--branco); }

/* o pop-up ficava POR CIMA do CTA no celular. O respiro no fim da página
   garante que ele caia sempre em área vazia. */
body.p-begin { padding-bottom: 76px; }
#popup-container { position: fixed; left: 12px; bottom: 12px; z-index: 900; max-width: calc(100vw - 24px); }

/* Em tela estreita não sobra faixa livre embaixo: o pop-up caía em cima do CTA.
   Abaixo de 400px ele vai pro topo, logo abaixo da barra, onde não tapa nada
   clicável. */
@media (max-width: 400px) {
  body.p-begin { padding-bottom: 20px; }
  #popup-container { top: 58px; bottom: auto; }
  .popup { animation: entrar-topo .35s ease; }
}
@keyframes entrar-topo { from { opacity: 0; transform: translateY(-10px); } }
.popup {
  display: flex; align-items: center; gap: 9px;
  margin-top: 8px; padding: 10px 14px; border-radius: 8px;
  background: var(--branco); color: var(--tinta);
  font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  animation: entrar .35s ease;
}
.popup img { height: 16px; width: auto; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } }

/* ══ PÁGINA 2 — quiz ═════════════════════════════════════ */
body.p-quiz {
  font-family: var(--sans); color: var(--tinta);
  background: var(--escuro);
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 14px;
}
.quiz-topo { position: fixed; top: 22px; left: 0; right: 0; text-align: center; }
.quiz-topo img { height: 36px; width: auto; }

.card {
  width: min(520px, 100%); background: var(--branco);
  border-radius: 12px; padding: 22px; text-align: center;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}
.progress-wrap {
  height: 12px; border-radius: 999px; background: #eef1f6;
  border: 1px solid var(--linha); overflow: hidden;
}
.progress { height: 100%; width: 0; background: var(--azul-2); transition: width .35s ease; }
.progress-info { margin: 9px 0 4px; font-size: 13px; color: #6b7280; }
.card h2 { font-size: 24px; color: #0b2a5b; margin-bottom: 8px; }
.lead { font-size: 15px; line-height: 1.5; color: #374151; }

.tag {
  display: inline-block; margin: 16px 0 12px; padding: 7px 16px;
  border-radius: 999px; background: #eaf1ff; color: #0b2a5b;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
}
.item-img {
  background: #fafbfc; border-radius: 10px; padding: 14px;
  display: flex; align-items: center; justify-content: center;
}
.item-img img { max-height: 230px; width: auto; object-fit: contain; }

.opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.opcoes button {
  border-radius: 10px; padding: 17px 12px; cursor: pointer;
  font-size: 16px; font-weight: 800;
}
.op-nao { border: 1px solid var(--linha-2); background: var(--branco); color: var(--tinta); }
.op-nao:hover { background: #f7f8fa; }
.op-sim {
  border: 0; color: var(--branco);
  background: linear-gradient(90deg, #f7971e 0%, #ff8c00 100%);
}
.op-sim:hover { filter: brightness(1.05); }

.proc-overlay {
  position: fixed; inset: 0; z-index: 500;
  display: none; align-items: center; justify-content: center;
  background: rgba(15,23,42,.72); padding: 20px;
}
.proc-overlay[aria-hidden="false"] { display: flex; }
.proc-card {
  width: min(430px, 100%); background: var(--branco);
  border-radius: 12px; padding: 26px 22px; text-align: center;
}
.proc-brand {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14px; margin-bottom: 16px;
}
.proc-brand img { height: 34px; width: auto; }
.proc-spinner {
  width: 40px; height: 40px; margin: 0 auto 16px; border-radius: 50%;
  border: 4px solid #e8eaf0; border-top-color: var(--azul-2);
  animation: girar .9s linear infinite;
}
.proc-title { font-size: 17px; margin-bottom: 14px; }
.proc-steps { text-align: left; display: flex; flex-direction: column; gap: 9px; }
.proc-step { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #9ca3af; }
.proc-step .dot {
  width: 9px; height: 9px; border-radius: 50%; background: #d1d5db; flex: none;
}
.proc-step.active { color: var(--tinta); font-weight: 600; }
.proc-step.active .dot { background: var(--verde); }

/* ══ PÁGINA 3 — VSL ══════════════════════════════════════ */
body.p-vsl {
  font-family: var(--sans); color: var(--tinta); background: var(--fundo-claro);
  min-height: 100vh;
}
.page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; padding: 28px 14px 40px;
}
.notice {
  width: min(760px, 100%); margin-bottom: 14px; padding: 12px 14px;
  border-radius: 8px; background: var(--branco); border: 1px solid var(--linha);
  text-align: center; font-weight: 700; color: var(--tinta-2);
}
.video-wrap {
  width: min(900px, 100%); background: var(--preto);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 16px 38px rgba(15,23,42,.18);
}
.video-ratio { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-ratio > * { display: block; width: 100%; height: 100%; }
.video-vazio {
  display: flex; align-items: center; justify-content: center;
  color: #6b7280; font-size: 14px; text-align: center; padding: 20px;
}
.cta-wrap { margin-top: 24px; text-align: center; }
#cta-button {
  width: min(520px, calc(100vw - 28px));
  border: 0; border-radius: 8px; padding: 18px 22px;
  background: var(--laranja); color: var(--branco);
  font-size: 18px; font-weight: 900; cursor: pointer;
  box-shadow: 0 12px 26px rgba(255,81,47,.28);
  animation: pulsar 1.5s infinite;
}
.oferta { display: none; }
.oferta.is-on, #cta-button.is-on { display: inline-block; }
.cta-wrap.oferta.is-on { display: block; }
#cta-button:active { transform: translateY(1px) scale(.99); }
@keyframes pulsar {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(255,81,47,.7); }
  70%  { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(255,81,47,0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(255,81,47,0); }
}
@media (prefers-reduced-motion: reduce) { #cta-button { animation: none; } }

/* ══ PÁGINA 4 — escolha ══════════════════════════════════ */
body.p-choose {
  font-family: Inter, var(--sans); color: var(--tinta);
  background: linear-gradient(to bottom, var(--escuro) 0 350px, var(--branco) 350px 100%);
  padding: 0 12px 110px;
}
/* sticky num wrapper em vez de dois `fixed` com padding fixo de 106px: quando a
   faixa de frete quebrava em 2 linhas no 320px, ela passava por baixo da nav. */
.topo-fixo {
  position: sticky; top: 0; z-index: 10;
  margin: 0 -12px 12px;
  background: var(--branco); border-bottom: 1px solid var(--linha);
}
.strip {
  min-height: 42px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--verde); text-align: center;
  padding: 8px 12px; line-height: 1.3;
  font-size: clamp(12px, 3.4vw, 14px);
  border-bottom: 1px solid var(--linha);
}
.nav {
  height: 64px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 14px;
}
.brand { height: 35px; width: auto; }
.cart {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 8px; padding: 10px 12px;
  background: var(--azul-2); color: var(--branco); font-weight: 900;
}
.cart span {
  display: inline-flex; width: 28px; height: 28px;
  align-items: center; justify-content: center; border-radius: 50%;
  background: var(--branco); color: var(--azul-2);
}
.sheet {
  width: min(980px, 100%); margin: 0 auto; background: var(--branco);
  border: 1px solid var(--linha); border-radius: 8px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(15,23,42,.14);
}
.sheet-header { padding: 18px; border-bottom: 1px solid var(--linha); }
.sheet-header h1 { margin: 0; font-size: clamp(20px, 4vw, 28px); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.cell { padding: 12px; border-bottom: 1px solid var(--linha); }
.cell:nth-child(odd) { border-right: 1px solid var(--linha); }
.cell img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  border-radius: 8px; background: var(--branco);
}
.cell img.selected { outline: 3px solid var(--azul-2); outline-offset: 2px; }
.btn-add {
  width: 100%; margin-top: 10px; border: 0; border-radius: 8px;
  padding: 13px 10px; background: var(--azul); color: var(--branco);
  font-weight: 800; cursor: pointer;
}
.btn-add.remove { background: var(--vermelho); }

.floating-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20;
  display: none; justify-content: center;
}
.floating-cta.is-visible { display: flex; }
.floating-cta button, .submit {
  width: min(760px, 100%); border: 0; border-radius: 8px;
  padding: 18px 20px; background: var(--azul-3); color: var(--branco);
  font-weight: 900; cursor: pointer; font-size: 16px;
}
a.submit { display: block; text-align: center; text-decoration: none; }

.modal { position: fixed; inset: 0; z-index: 30; display: none; }
.modal[aria-hidden="false"] { display: block; }
.backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.58); }
.dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 28px)); border-radius: 8px;
  background: var(--branco); padding: 22px;
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
}
.dialog h2 { margin: 0 0 14px; font-size: 21px; }
.input {
  width: 100%; margin-bottom: 12px; border: 1px solid var(--linha-2);
  border-radius: 8px; padding: 14px; font-size: 16px; font-family: inherit;
}
.input[aria-invalid="true"] { border-color: var(--vermelho); }
.erro { margin: -6px 0 10px; font-size: 13px; color: var(--vermelho); min-height: 18px; }

/* 2 colunas ate 700px, 3 no tablet, 4 no desktop.
   Antes o iPad (768px) caia em 2 colunas e os cards ficavam gigantes. */
@media (min-width: 700px) and (max-width: 1023px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cell { border-right: 1px solid var(--linha); }
  .cell:nth-child(3n) { border-right: 0; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .cell { border-right: 1px solid var(--linha); }
  .cell:nth-child(4n) { border-right: 0; }
}
