/* =========================================================
   Funil Mesa Posta Lucrativa – estilos
   TODAS as cores ficam aqui em cima. Para trocar uma cor,
   mude só a variável.
   ========================================================= */
:root {
  /* cores principais */
  --verde: #61725D;            /* botões, barra de progresso, opção selecionada */
  --verde-hover: #71806D;      /* botão com o mouse em cima */
  --verde-escuro: #51604D;     /* "degrau" embaixo do botão */
  --marrom: #854D37;           /* títulos, textos das opções, destaques */
  --texto: #000000;            /* texto normal */
  --texto-forte: #09090B;      /* negrito (quase preto) */
  --branco: #FFFFFF;

  /* fundos e bordas */
  --fundo: #F8F2E7;            /* fundo da página (bege) */
  --borda-opcao: #DBD8D1;      /* borda das opções de resposta */
  --borda-suave: #E7E5E1;      /* bordas dos cards, fundo da barra "Carregando" e do preço */

  /* cores de destaque nos textos */
  --caramelo: #C89E72;         /* "experiência", "poucos instantes", "Agora chegou sua vez" */
  --amarelo-destaque: #D5B01D; /* fundo de "grande mudança!" */
  --dourado: #CA8A04;          /* "Olha só o estilo sofisticado..." */
  --verde-preco: #16A34A;      /* valores em R$, "WhatsApp", "Parabéns!" */
  --verde-whats: #00C950;      /* borda da caixa de preço */
  --vermelho: #DC2626;         /* "NÃO!", "TAMBÉM" */
  --estrela: #FACC15;          /* estrelas dos depoimentos */

  /* timer */
  --timer-fundo: #FFF6E6;
  --timer-borda: #FFEAC7;
  --timer-texto: #CF9600;

  /* aviso "Corra!" */
  --aviso-fundo: #E3EEFF;
  --aviso-borda: #C7DCFE;
  --aviso-texto: #1C72F1;

  --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 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; }
