/* ==========================================================================
   VENDA · páginas que recebem o anúncio (desde 29/11/2026).
   Sem menu e sem rodapé do site: um caminho só, o checkout. As peças vêm de
   20-componentes.css e de paginas/material.css (classes mp-); aqui fica só o
   que é da página de venda. Prefixo vd-. Celular primeiro.
   ========================================================================== */

/* ---- cabeçalho mínimo: só a marca, sem link ---- */
.vd-cab { display: grid; place-items: center; padding: 0.7rem var(--calha) 0.6rem; background: var(--branco); border-bottom: var(--contorno) solid var(--marinho); }
.vd-cab__logo { width: clamp(8.5rem, 30vw, 11rem); height: auto; }

/* o selo do público quebra em duas linhas no celular, em vez de encostar na borda */
.pagina-venda .vd-heroi .selo-faixa { max-width: 100%; height: auto; white-space: normal; text-align: center; line-height: 1.25; }

/* o 1º bloco não passa por baixo de menu nenhum */
.pagina-venda .vd-heroi { padding-top: clamp(1.75rem, 5vw, 3.5rem); }

/* ---- pílulas do topo ---- */
.vd-pilulas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.vd-pilulas li {
  padding: 0.35em 0.85em 0.4em;
  background: var(--branco);
  border: var(--contorno) solid var(--marinho);
  border-radius: var(--raio-pilula);
  box-shadow: var(--sombra-papel);
  font-weight: 900;
  font-size: var(--texto-p);
  line-height: 1.2;
  color: var(--marinho);
}
@media (min-width: 62rem) { .vd-heroi:not(.vd-heroi--video) .vd-pilulas { justify-content: flex-start; } }

.vd-nota { font-size: var(--texto-p); font-weight: 800; line-height: 1.4; color: var(--marinho); }
.vd-contador { font-size: var(--texto-m); font-weight: 800; color: var(--marinho); }
.vd-contador strong { padding: 0.05em 0.4em; background: var(--branco); border-radius: var(--raio-p); box-shadow: inset 0 0 0 2px var(--marinho); }
.vd-centro { justify-content: center; margin-top: clamp(1.75rem, 4vw, 2.5rem); }

/* ---- topo da página com vídeo: tudo centrado, o vídeo é o protagonista ---- */
.vd-heroi__miolo { display: grid; justify-items: center; gap: 0.9rem; text-align: center; }
.vd-heroi__frase { max-width: 40rem; }
.vd-heroi__botoes { justify-content: center; }

.vd-video {
  position: relative;
  width: min(100%, 26rem);
  margin: 0.5rem auto 0.25rem;
  overflow: hidden;
  background: var(--marinho);
  border: var(--contorno) solid var(--marinho);
  border-radius: var(--raio-g);
  box-shadow: var(--sombra-papel-g);
}
.vd-video__arquivo { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1350; background: var(--marinho); }
.vd-video__arquivo--computador { display: none; aspect-ratio: 1920 / 1080; }
@media (min-width: 62rem) {
  .vd-video { width: min(100%, 52rem); }
  .vd-video__arquivo--celular { display: none; }
  .vd-video__arquivo--computador { display: block; }
}
.vd-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem 0.9rem 1.1rem;
  background: var(--coral);
  color: var(--branco);
  border: var(--contorno) solid var(--marinho);
  border-radius: var(--raio-pilula);
  box-shadow: var(--sombra-tinta);
  font-family: var(--fonte-letreiro);
  font-size: var(--letreiro-p);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-rapido) var(--ease-quique);
}
.vd-video__play svg { flex: none; display: block; width: 1.6em; height: 1.6em; fill: currentColor; }
.vd-video__play:hover { transform: scale(1.05); }
.vd-video__play:focus-visible { outline: 3px solid var(--branco); outline-offset: 3px; }
.vd-video.tocando .vd-video__play { display: none; }

/* ---- a dor: três momentos em linha do tempo ---- */
.vd-linha { display: grid; gap: clamp(1rem, 3vw, 1.5rem); max-width: 46rem; margin: 0 auto; padding: 0; list-style: none; counter-reset: none; }
.vd-momento { position: relative; display: grid; gap: 0.6rem; padding: 1.25rem 1.35rem 1.4rem; }
.vd-momento > * + * { margin-top: 0; }
.vd-momento__hora { justify-self: start; }
.vd-momento .cartao__texto { font-size: var(--texto-g); line-height: 1.5; }
@media (min-width: 48rem) {
  .vd-linha { gap: 1.25rem; }
  .vd-momento:nth-child(2) { margin-left: 3rem; }
  .vd-momento:nth-child(3) { margin-left: 6rem; }
}

/* fala do Biblinho com a figura apoiada */
.vd-fala { display: flex; align-items: flex-end; justify-content: center; gap: 0.5rem; max-width: 40rem; margin: clamp(2rem, 5vw, 3rem) auto 0; }
.vd-fala__figura { flex: 0 0 auto; width: clamp(5.5rem, 22vw, 8rem); }
.vd-fala__balao { margin-bottom: 2.25rem; font-size: var(--letreiro-p); }
.vd-fala__balao strong { color: var(--coral); font-weight: inherit; }

/* ---- a virada (azul): arte de Jesus sobre cartão branco + versículo ---- */
.vd-virada__miolo { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; }
.vd-virada__arte { justify-self: center; width: min(17rem, 72%); padding: 0.75rem 0.75rem 0; overflow: hidden; background: var(--branco); }
.vd-virada__arte img { display: block; width: 100%; height: auto; }
.vd-virada__texto { display: grid; gap: 1.1rem; text-align: center; justify-items: center; }
.vd-versiculo { max-width: 32rem; font-size: var(--texto-g); font-weight: 800; line-height: 1.4; }
.vd-versiculo cite { display: block; margin-top: 0.35rem; font-style: normal; font-weight: 900; }
.vd-virada .bloco__frase { max-width: 36rem; }
@media (min-width: 62rem) {
  .vd-virada__miolo { grid-template-columns: auto minmax(0, 1fr); }
  .vd-virada__texto { text-align: left; justify-items: start; }
}

/* ---- antes e depois (céu) ---- */
.vd-troca { max-width: 52rem; margin: 0 auto; overflow: hidden; background: var(--branco); border: var(--contorno) solid var(--marinho); border-radius: var(--raio-g); box-shadow: var(--sombra-papel-g); color: var(--marinho); }
.vd-troca__linha { display: grid; grid-template-columns: 1fr 1fr; }
.vd-troca__linha + .vd-troca__linha { border-top: 2px dashed rgb(var(--marinho-rgb) / 0.2); }
.vd-troca__linha > span { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.85rem 0.9rem; font-weight: 800; font-size: var(--texto-p); line-height: 1.35; }
.vd-troca__linha > span:first-child { color: var(--tinta-suave); background: rgb(240 96 96 / 0.08); }
.vd-troca__linha > span::before { content: ""; flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: 0.05rem; border-radius: 50%; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' stroke='white' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 75% no-repeat; }
.vd-troca__linha > span:last-child::before { background-color: var(--verde); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.vd-troca__linha--topo > span { font-family: var(--fonte-letreiro); font-weight: 400; font-size: var(--letreiro-p); line-height: 1.1; color: var(--marinho); }
.vd-troca__linha--topo > span::before { display: none; }
.vd-troca__linha--topo > span:first-child { background: var(--rosa); }
.vd-troca__linha--topo > span:last-child { background: var(--sol); }
@media (min-width: 48rem) { .vd-troca__linha > span { padding: 1rem 1.25rem; font-size: var(--texto-m); } }

/* ---- pra quem é (sol) ---- */
.vd-quem__cartoes { display: grid; gap: 1rem; max-width: 46rem; margin: 0 auto; padding: 0; list-style: none; }
.vd-quem__cartao { padding: 1.25rem 1.35rem 1.4rem; text-align: center; }
.vd-quem__cartao .mp-peca__titulo { color: var(--azul); }
.vd-quem__cartao .cartao__texto { font-size: var(--texto-m); }
@media (min-width: 40rem) { .vd-quem__cartoes { grid-template-columns: 1fr 1fr; } }
.vd-fala--centro { margin-top: clamp(1.75rem, 4vw, 2.5rem); }

/* ---- como recebe + garantia ---- */
.vd-como__passos { max-width: 60rem; margin: 0 auto; }
@media (min-width: 48rem) { .vd-como__passos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vd-garantia { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.1rem; max-width: 40rem; margin: clamp(2rem, 5vw, 3rem) auto 0; padding: 1.2rem 1.35rem; }
.vd-garantia > * + * { margin-top: 0; }
.vd-garantia__selo {
  display: grid;
  place-items: center;
  align-content: center;
  width: 5.5rem;
  height: 5.5rem;
  background: var(--sol);
  border: var(--contorno) solid var(--marinho);
  border-radius: 50%;
  box-shadow: var(--sombra-papel);
  rotate: -6deg;
  font-weight: 900;
  font-size: var(--texto-p);
  line-height: 1;
  color: var(--marinho);
}
.vd-garantia__selo span { font-family: var(--fonte-letreiro); font-size: 2.2rem; line-height: 0.95; }

/* ---- perguntas ---- */
.vd-sanfona { max-width: 46rem; margin-inline: auto; }

/* ---- rodapé mínimo ---- */
.vd-rodape { display: grid; justify-items: center; gap: 0.75rem; padding: 2rem var(--calha) calc(2rem + var(--vd-barra-folga, 0px)); background: var(--branco); text-align: center; }
.vd-rodape__logo { width: 9.5rem; height: auto; }
.vd-rodape__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 0.6rem; font-size: var(--texto-pp); font-weight: 700; color: var(--tinta-suave); }
.vd-rodape__legal a { color: inherit; }

/* ---- barra de compra no celular ---- */
.vd-barra {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem var(--calha) calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--branco);
  border-top: var(--contorno) solid var(--marinho);
  box-shadow: 0 -6px 0 rgb(var(--marinho-rgb) / 0.08);
  transition: transform var(--t-medio) var(--ease-sai);
}
.vd-barra[hidden] { display: none; }
.vd-barra.escondida { transform: translateY(110%); }
.vd-barra__nome { font-family: var(--fonte-letreiro); font-size: 1.05rem; line-height: 1.05; color: var(--marinho); }
.vd-barra__nome span { display: block; font-family: var(--fonte-texto); font-weight: 800; font-size: var(--texto-pp); color: var(--tinta-suave); }
.vd-barra__botao { flex: 0 0 auto; }
.pagina-venda { --vd-barra-folga: 4.5rem; }
@media (min-width: 62rem) { .vd-barra { display: none !important; } .pagina-venda { --vd-barra-folga: 0px; } }
@media (prefers-reduced-motion: reduce) { .vd-barra { transition: none; } }

/* ---- preço (pedido dela em 29/11: a pessoa vê o valor antes de ir pro checkout) ---- */
.vd-preco {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.65rem;
  padding: 0.5rem 1.15rem 0.6rem;
  background: var(--branco);
  border-radius: var(--raio-m);
  box-shadow: inset 0 0 0 2.5px var(--marinho), 0.3rem 0.35rem 0 var(--marinho);
  color: var(--marinho);
}
.vd-preco__valor { font-family: var(--fonte-letreiro); font-size: clamp(2.1rem, 6vw, 2.9rem); line-height: 1; color: var(--coral-forte); }
.vd-preco__como { font-weight: 800; font-size: var(--texto-p); line-height: 1.3; }
.vd-preco { flex-direction: column; align-items: center; text-align: center; }
@media (min-width: 30rem) { .vd-preco { flex-direction: row; align-items: baseline; text-align: left; } }
.mp-fecho .vd-preco { margin-top: 0.25rem; }
.vd-tudo { margin-top: 1rem; font-size: var(--texto-m); font-weight: 800; color: var(--marinho); }
.vd-tudo strong { padding: 0.05em 0.4em; background: var(--sol); border-radius: var(--raio-p); white-space: nowrap; }
.vd-tudo--centro { text-align: center; margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.vd-tudo--centro + .vd-centro { margin-top: 0.9rem; }
.vd-barra__nome .vd-barra__preco { margin-top: 0.15rem; font-family: var(--fonte-letreiro); font-weight: 400; font-size: 1.2rem; color: var(--coral-forte); }

/* ---- espera (pedido dela em 01/12, página B): preço e botão do topo entram depois de 30 s; venda.js tira a classe ---- */
:root.vd-espera-ativa [data-vd-espera][data-entra],
:root.vd-espera-ativa [data-vd-espera] { visibility: hidden; opacity: 0; translate: 0 1.5rem; }
:root.vd-espera-ativa .vd-barra { transform: translateY(110%); }
[data-vd-espera] { transition: opacity 0.6s ease, translate 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2), visibility 0s; }
@media (prefers-reduced-motion: reduce) { [data-vd-espera] { transition: none; } }
