/* =========================================================
   Funil Mesversário Feito à Mão – estilos
   TODAS as cores ficam aqui em cima. Para trocar uma cor,
   mude só a variável. (Os nomes das variáveis foram mantidos
   iguais aos do funil original; os valores são a paleta de bebê.)
   ========================================================= */
:root {
  /* cores principais */
  --verde: #56755E;            /* VERDE-SÁLVIA: botões do quiz, barra de progresso, opção selecionada */
  --verde-hover: #63846B;      /* botão com o mouse em cima */
  --verde-escuro: #415A48;     /* "degrau" embaixo do botão */
  --marrom: #9A4F5C;           /* ROSA ANTIGO escuro: títulos, textos das opções, destaques */
  --texto: #2A2224;            /* texto normal (quase preto, mais suave) */
  --texto-forte: #1F191A;      /* negrito */
  --branco: #FFFFFF;

  /* fundos e bordas */
  --fundo: #FBF7F0;            /* fundo da página (creme bem claro) */
  --borda-opcao: #EADBD6;      /* borda das opções de resposta (rosado bem claro) */
  --borda-suave: #F0E6E1;      /* bordas dos cards, fundo da barra "Carregando" */

  /* cores de destaque nos textos */
  --caramelo: #B4697A;         /* rosa antigo médio: "poucos instantes", "Agora chegou a sua vez" */
  --amarelo-destaque: #B4697A; /* fundo de "grande mudança!" (rosa antigo) */
  --dourado: #56755E;          /* "Olha só o que você vai aprender..." (sálvia) */
  --verde-preco: #1C8247;      /* valores em R$, "Parabéns!" */
  --verde-whats: #1C8247;      /* borda da caixa de preço */
  --vermelho: #C0392B;         /* "NÃO!", "TAMBÉM" */
  --estrela: #F2B705;          /* estrelas (não usadas) */

  /* timer */
  --timer-fundo: #FCEEF0;
  --timer-borda: #F3D3D9;
  --timer-texto: #9A4F5C;

  /* aviso "Corra!" */
  --aviso-fundo: #EEF4EF;
  --aviso-borda: #D3E2D6;
  --aviso-texto: #415A48;

  --raio: 16px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

/* ---------- etapa (tela) ---------- */
.etapa {
  min-height: 95svh;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  animation: aparecer .3s ease;
}
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
.etapa-fim { padding: 40px 0; } /* espaço vazio no fim (igual ao original) */

/* topo: seta de voltar + barra de progresso */
.topo {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.voltar {
  justify-self: start;
  background: none;
  border: 0;
  padding: 0;
  color: var(--marrom);
  cursor: pointer;
  height: 20px;
  display: flex;
  align-items: center;
}
.voltar svg { width: 18px; height: 18px; margin-top: 2px; }
.barra {
  position: relative;
  height: 8px;
  border-radius: 9999px;
  overflow: hidden;
}
.barra::before { /* trilho */
  content: "";
  position: absolute; inset: 0;
  background: var(--verde);
  opacity: .1;
}
.barra-preenchida {
  position: absolute; top: 0; left: 0; height: 100%;
  background: var(--verde);
  width: 0;
  transition: width .7s ease;
}

/* conteúdo */
.conteudo {
  /* como no original: a área ocupa 0,2rem a mais de cada lado (os blocos têm 0,2rem de respiro) */
  width: calc(100% + .4rem);
  max-width: 34.4rem;
  margin-left: max(-.2rem, calc((100% - 34.4rem) / 2));
  display: flex;
  flex-wrap: wrap;
}
.bloco { flex-basis: 100%; padding: .2rem; min-width: 0; }
.bloco.l81 { flex-basis: 81%; margin: 0 auto; }
.bloco.l70 { flex-basis: 70%; margin: 0 auto; }
.bloco.l65 { flex-basis: 65%; margin: 0 auto; }

/* ---------- textos ---------- */
.bloco.texto { padding: calc(12px + .2rem) .2rem; word-break: break-word; }
.bloco.carregando { padding: calc(4px + .2rem) .2rem; }
.texto p + p, .texto h2 + p, .texto h3 + p, .texto p + h3 { margin-top: 12px; }
.texto h3 + h2, .texto h3 + h3 { margin-top: 10px; }
.texto h2 { font-size: 1.6rem; line-height: 1.1; font-weight: 700; color: var(--marrom); text-wrap: balance; }
.texto h3 { font-size: 1.3rem; line-height: 1.1; font-weight: 700; color: var(--marrom); text-wrap: balance; }
.texto strong { color: var(--texto-forte); }
.texto h2 strong, .texto h3 strong { color: inherit; }
.centro { text-align: center; }
.pequeno, .pequeno-bloco { font-size: .75rem; line-height: 1.25; display: inline-block; }

/* cores usadas dentro dos textos */
.c-marrom { color: var(--marrom) !important; }
.c-verde { color: var(--verde) !important; }
.c-preto { color: var(--texto-forte) !important; }
.c-caramelo { color: var(--caramelo) !important; }
.c-dourado { color: var(--dourado) !important; }
.c-verde-preco { color: var(--verde-preco) !important; }
.c-vermelho { color: var(--vermelho) !important; }
.marca-verde { background: var(--verde); color: var(--branco) !important; }
.marca-verde-preco { background: var(--verde-preco); color: var(--branco) !important; }
.marca-amarela { background: var(--amarelo-destaque); color: var(--branco) !important; }

/* ---------- timer ---------- */
.timer {
  background: var(--timer-fundo);
  border: 1px solid var(--timer-borda);
  color: var(--timer-texto);
  border-radius: var(--raio);
  padding: 18px;
  text-align: center;
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- imagens ---------- */
.imagem { position: relative; width: 100%; overflow: hidden; border-radius: var(--raio); }
.imagem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.imagem.sem-canto { border-radius: 0; }

/* ---------- botão principal (verde com "degrau" e pulso) ---------- */
.cta {
  position: relative;
  display: grid;
  max-width: 34rem;
  margin: 0 auto;
  padding-bottom: 8px;
  transition: all .2s ease;
}
.cta-pulso { /* halo que pulsa atrás do botão */
  position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 8px);
  background: var(--verde);
  border-radius: var(--raio);
  animation: pulso 1s infinite;
  pointer-events: none;
}
@keyframes pulso {
  0% { opacity: 1; transform: scaleY(.95); }
  50% { opacity: 0; transform: scaleY(1.3) scaleX(1.04); }
  100% { opacity: 0; transform: scaleY(.95); }
}
.cta button {
  position: relative;
  width: 100%;
  min-height: 56px;
  padding: .55rem 1rem;
  border: 0;
  border-radius: var(--raio);
  background: var(--verde);
  color: var(--branco);
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  box-shadow: 0 8px 0 0 var(--verde-escuro);
  transition: all .2s ease;
}
@media (hover: hover) {
  .cta:hover { margin-top: -4px; padding-bottom: 12px; }
  .cta:hover button { background: var(--verde-hover); box-shadow: 0 12px 0 0 var(--verde-escuro); }
}
.cta:active { transform: scale(.99); }

/* ---------- opções de resposta ---------- */
.opcoes { display: grid; gap: 16px; }
.opcao {
  display: flex;
  align-items: stretch;
  width: 100%;
  text-align: left;
  padding: 0;
  cursor: pointer;
  background: var(--fundo);
  color: var(--marrom);
  border: 6px solid var(--borda-opcao);
  border-radius: var(--raio);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
  transition: all .2s ease;
  overflow: hidden;
}
.opcao-emoji {
  width: 3.75rem;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; line-height: 48px; padding: 8px;
}
.opcao-corpo {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 0;
  min-height: 64px;
}
.opcao-seta {
  flex: none;
  position: relative;
  width: 26px; height: 26px;
  border: 1px solid var(--borda-opcao);
  border-radius: 9999px;
  background: var(--fundo);
  transition: all .2s ease;
}
.opcao-seta svg { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; transform: translate(-45%, -50%); }
.opcao-texto { line-height: 1.4; }
@media (hover: hover) {
  .opcao:hover { border-color: var(--verde); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1); }
}
.opcao.ativa { background: var(--verde); border-color: var(--verde); color: var(--branco); }
.opcao.ativa .opcao-seta { background: var(--verde); }

/* ---------- carrosséis ---------- */
.carrossel { position: relative; }
.carrossel-trilho {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 8px; scroll-padding: 0 8px;
  -webkit-overflow-scrolling: touch;
}
.carrossel-trilho::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border: 1px solid var(--borda-suave);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}
.slide img { width: 100%; height: auto; }
.l65 .carrossel-trilho { padding: 0 1px; }
.l65 .slide { flex-basis: 100%; }
.slide.vertical .slide-foto { position: relative; aspect-ratio: 9 / 16; overflow: hidden; }
.slide.vertical img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.slide p { padding: 16px 0; line-height: 1.4; }
.bolinhas {
  position: relative;
  width: 80px; height: 8px;
  margin: 16px auto;
  overflow: hidden;
}
.bolinhas-faixa { position: absolute; top: 0; left: 0; height: 8px; display: flex; align-items: center; transition: transform .2s; }
.bolinha {
  flex: none;
  width: 8px; height: 8px; margin: 0 4px;
  border: 0; padding: 0;
  border-radius: 50%;
  background: var(--verde);
  opacity: .2;
  cursor: pointer;
  transform: scale(.33);
  transition: transform .2s, opacity .2s;
}
.bolinha.perto { transform: scale(.66); }
.bolinha.ativa { transform: scale(1); opacity: 1; }

/* ---------- etapa "carregando" ---------- */
.carregando-topo { display: flex; justify-content: space-between; color: var(--marrom); font-weight: 600; font-size: 14px; line-height: 20px; padding-bottom: 4px; }
.carregando-trilho { background: var(--borda-suave); border-radius: 12px; }
.carregando-barra { height: 12px; width: 0; border-radius: 12px; background: var(--verde); transition: width .05s linear; }

/* ---------- oferta ---------- */
.preco {
  border: 1px solid var(--verde-whats);
  border-radius: 20px;
  background: var(--fundo);
}
.preco.r16 { border-radius: var(--raio); }
.preco-dentro { display: flex; align-items: center; gap: 16px; padding: 8px; }
.preco-nome { flex: 1; padding: 4px 0 4px 4px; font-size: 20px; line-height: 28px; color: var(--marrom); }
.preco-nome strong { color: var(--marrom); }
.preco-valor { padding: 8px; background: var(--borda-suave); }
.preco-de { font-size: 12px; line-height: 1; text-align: left; }
.preco-por { font-size: 24px; line-height: 1; font-weight: 700; color: var(--marrom); padding: 3.2px 0; }
.preco-por span { font-size: .9rem; }
.preco-vista { font-size: 12px; line-height: 1; text-align: right; }

.aviso {
  background: var(--aviso-fundo);
  border: 1px solid var(--aviso-borda);
  color: var(--aviso-texto);
  border-radius: var(--raio);
  padding: 16px;
}
.aviso p { padding: 0 3.2px; margin-top: -2px; }
.aviso strong { color: var(--aviso-texto); }

.depoimentos { display: grid; gap: 8px; }
.depoimento {
  background: var(--fundo);
  border: 1px solid var(--borda-suave);
  border-radius: var(--raio);
  padding: 16px;
}
.estrelas { display: flex; gap: 1.6px; padding-bottom: 4px; color: var(--estrela); }
.estrelas svg { width: 12px; height: 12px; }
.depoimento-nome { font-weight: 600; line-height: 24px; color: var(--marrom); }
.depoimento-user { font-size: 12px; line-height: 16px; }
.depoimento-texto { padding-top: 8px; }

/* ---------- rodapé ---------- */
.rodape {
  height: 5svh;
  position: relative;
  font-size: .65rem;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.rodape p { padding-bottom: 8px; text-align: center; }

/* =========================================================
   v2 – TELA DE OFERTA (planos, Natal, pop-up)
   ========================================================= */
:root {
  /* (nome "terracota" mantido do original: aqui é o VERDE DE COMPRA, que chama atenção) */
  --terracota: #1C8247;          /* botões de compra da oferta e pop-ups */
  --terracota-hover: #22955A;
  --terracota-escuro: #13603A;   /* "degrau" embaixo do botão */
  --terracota-claro: #EEF8F1;    /* fundo do botão de contorno e do plano completo */
  --natal-fundo-1: #F9E4E7;      /* caixa do presente de Natal (rosa claro) */
  --natal-fundo-2: #EAF2EA;      /* ... até sálvia clarinho */
  --natal-borda: #DDB0B9;
  --cinza-riscado: #756A6C;      /* itens que o plano básico não tem */
}

/* botão terracota (mesmo formato do verde, outra cor) */
.cta-terracota .cta-pulso { background: var(--terracota); }
.cta-terracota button { background: var(--terracota); box-shadow: 0 8px 0 0 var(--terracota-escuro); font-weight: 700; }
@media (hover: hover) {
  .cta-terracota:hover button { background: var(--terracota-hover); box-shadow: 0 12px 0 0 var(--terracota-escuro); }
}

/* fotos 4:5 nos carrosséis dos bodies e do Natal */
.slide.foto45 .slide-foto { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.slide.foto45 img { position: absolute; inset: 0; height: 100%; object-fit: cover; }

/* caixa do presente de Natal */
.natal {
  background: linear-gradient(135deg, var(--natal-fundo-1), var(--natal-fundo-2));
  border: 2px solid var(--natal-borda);
  border-radius: var(--raio);
  padding: 18px 16px;
  text-align: center;
  font-size: 17px;
  line-height: 1.4;
  color: var(--texto-forte);
  box-shadow: 0 4px 14px rgba(154, 79, 92, .12);
}
.natal strong { color: var(--marrom); }

/* planos */
.planos { display: grid; gap: 20px; padding-top: 14px; }
.plano {
  position: relative;
  background: var(--fundo);
  border: 1px solid var(--borda-opcao);
  border-radius: 20px;
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
}
.plano-completo {
  background: var(--terracota-claro);
  border: 3px solid var(--terracota);
  padding: 30px 18px 22px;
  box-shadow: 0 8px 24px rgba(28, 130, 71, .16);
}
.plano-selo {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--terracota);
  color: var(--branco);
  font-size: 12px; font-weight: 800; letter-spacing: .06em;
  padding: 6px 14px;
  border-radius: 9999px;
  white-space: nowrap;
}
.plano-nome { text-align: center; font-weight: 800; font-size: 18px; color: var(--marrom); }
.plano-completo .plano-nome { font-size: 21px; }
.plano-preco { text-align: center; font-weight: 900; font-size: 30px; line-height: 1.1; color: var(--texto-forte); margin-top: 6px; }
.plano-completo .plano-preco { font-size: 38px; color: var(--terracota-escuro); }
.plano-parcelas { text-align: center; font-size: 14px; color: var(--marrom); margin-top: 4px; }
.plano-lista { list-style: none; margin: 16px 0 18px; padding: 0; display: grid; gap: 8px; flex: 1; }
.plano-lista li { display: flex; gap: 8px; line-height: 1.35; font-size: 15px; }
.plano-lista li span { flex: none; }
.plano-completo .plano-lista li { font-weight: 600; }
.plano-lista li.nao { color: var(--cinza-riscado); }
.plano .cta { width: 100%; }
.botao-contorno {
  width: 100%;
  min-height: 52px;
  border: 2px solid var(--terracota);
  border-radius: var(--raio);
  background: var(--terracota-claro);
  color: var(--terracota);
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
@media (hover: hover) { .botao-contorno:hover { background: var(--terracota); color: var(--branco); } }
.botao-contorno:active { transform: scale(.99); }

/* computador: os dois cartões lado a lado (completo à esquerda, um pouco maior) */
@media (min-width: 860px) {
  .planos {
    width: min(52rem, calc(100vw - 48px));
    position: relative; left: 50%; transform: translateX(-50%);
    grid-template-columns: 1.12fr 1fr;
    align-items: center;
  }
}

/* pop-up do Básico */
body.sem-rolagem { overflow: hidden; }
.popup { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.popup-fundo { position: absolute; inset: 0; background: rgba(40, 25, 30, .6); animation: aparecer .2s ease; }
.popup-caixa {
  position: relative;
  width: 100%; max-width: 420px;
  max-height: calc(100svh - 32px); overflow-y: auto;
  background: var(--fundo);
  border: 3px solid var(--terracota);
  border-radius: 20px;
  padding: 30px 20px 18px;
  text-align: center;
  animation: subir .25s ease;
}
@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.popup-caixa h2 { padding: 0 22px; font-size: 23px; line-height: 1.15; font-weight: 900; color: var(--marrom); text-wrap: balance; }
.popup-caixa p { margin: 12px 0 20px; line-height: 1.45; }
.popup-caixa p strong { color: var(--terracota-escuro); }
.popup-caixa .cta button { min-height: 60px; font-size: 17px; }
.popup-x {
  position: absolute; top: 6px; right: 8px;
  width: 40px; height: 40px;
  border: 0; background: none;
  font-size: 30px; line-height: 1; color: var(--marrom);
  cursor: pointer;
}
.popup-nao {
  margin-top: 8px;
  border: 0; background: none;
  padding: 10px;
  font-size: 13px;
  color: var(--cinza-riscado);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- carrosséis: setas, arrastar com mouse e limite de tamanho ---------- */
.carrossel-trilho { position: relative; }               /* posição das fotos medida sempre pelo próprio trilho */
.carrossel-trilho.arrastando { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.carrossel-trilho img { -webkit-user-drag: none; user-select: none; }
.seta {
  display: none;                                          /* no celular: só arrastar com o dedo + bolinhas */
  position: absolute; top: calc(50% - 20px); transform: translateY(-50%);
  width: 40px; height: 40px; padding: 0;
  align-items: center; justify-content: center;
  border: 0; border-radius: 9999px;
  background: rgba(255, 255, 255, .92);
  color: var(--marrom);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  cursor: pointer; z-index: 2;
  transition: opacity .2s, transform .2s;
}
.seta-ant { left: 4px; }
.seta-prox { right: 4px; }
.seta:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {               /* computador */
  .seta { display: flex; }
  .seta:hover { transform: translateY(-50%) scale(1.08); }
  .carrossel-trilho { cursor: grab; }
}
/* no computador as fotos grandes da oferta não passam de 448px de largura */
.bloco.limite { max-width: 28rem; margin-left: auto; margin-right: auto; }

/* ---------- ESTEIRA: carrosséis da oferta (bodies e Natal) andando sozinhos ---------- */
.carrossel.esteira { overflow: hidden; }
.esteira .carrossel-trilho {
  display: flex;
  gap: 0;
  width: max-content;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
  will-change: transform;
  cursor: default;
}
.esteira .slide {
  flex: 0 0 var(--larg-foto, 66%);
  width: var(--larg-foto, 66%);
  margin-right: 8px;                       /* mesmo valor de ESPACO no quiz.js */
  scroll-snap-align: none;
}
/* computador: a faixa sai da coluna estreita e fica mais larga, para caber 3 fotos de bom tamanho */
@media (min-width: 860px) {
  .carrossel.esteira {
    width: min(66rem, calc(100vw - 48px));
    position: relative; left: 50%; transform: translateX(-50%);
  }
}

/* =========================================================
   Mesversário – perguntas frequentes (sanfona) e espaço de provas
   ========================================================= */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--branco);
  border: 1px solid var(--borda-opcao);
  border-radius: var(--raio);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  position: relative;
  font-weight: 700;
  color: var(--marrom);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; font-weight: 600; color: var(--verde);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 16px 16px; line-height: 1.45; }

/* PROVAS_REAIS: fica escondido até você colocar provas reais e tirar o "hidden" */
.provas-reais { border: 2px dashed var(--borda-opcao); border-radius: var(--raio); padding: 16px; text-align: center; }
