/* ==========================================================================
   Página de vendas · mesmo visual da página de acesso (veludo, pergaminho, cartas)
   Mobile first.
   ========================================================================== */

/* ---------- Topo ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 20px 56px;
  text-align: center;
}
.hero > * { position: relative; z-index: 1; }

.hero .selo { width: 96px; height: 96px; }
.titulo-produto {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3em;
  padding-left: .3em;
  color: var(--ouro);
}
.hero .titulo-produto { font-size: clamp(1rem, 3.6vw, 1.4rem); color: var(--ouro-claro); margin-top: 22px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .02em;
  font-size: clamp(1.85rem, 6.6vw, 3.4rem);
  line-height: 1.12;
  margin: 12px 0 14px;
  max-width: 14em;
  color: #F6E9CC;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--ouro-claro); }
.sub { max-width: 32em; color: #E9D6B4; }

/* Três cartas em leque */
.leque { display: flex; justify-content: center; align-items: flex-end; margin: 34px 0 34px; font-size: 13px; }
.leque .tarot { width: 8.6em; min-height: 13.6em; margin: 0 -.35em; }
.leque .tarot:nth-child(1) { transform: rotate(-9deg) translateY(.8em); }
.leque .tarot:nth-child(3) { transform: rotate(9deg) translateY(.8em); }
.leque .tarot:nth-child(2) { z-index: 1; }
@media (min-width: 640px) { .leque { font-size: 14px; margin: 26px 0 30px; } }
@media (min-width: 640px) and (max-height: 900px) { .hero { padding-top: 28px; padding-bottom: 36px; } .hero .selo { width: 76px; height: 76px; } .hero h1 { font-size: clamp(1.85rem, 4.6vw, 3rem); } }

.cta { width: auto; min-width: min(100%, 320px); padding: 17px 28px; font-size: .95rem; }
.garantia-mini { margin-top: 12px; font-size: .85rem; color: #E9D6B4; }

/* ---------- Seções ---------- */
.bloco { padding: 56px 18px; max-width: 980px; margin: 0 auto; }
.bloco.claro { max-width: none; background: rgba(242, 228, 198, .05); border-top: 1px solid rgba(185, 145, 71, .25); border-bottom: 1px solid rgba(185, 145, 71, .25); }
.bloco.claro > * { max-width: 944px; margin-left: auto; margin-right: auto; }

.titulo-secao {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.2;
  text-align: center;
  color: #F6E9CC;
  margin-bottom: 14px;
}
.titulo-secao.esquerda { text-align: left; }
.intro-secao { text-align: center; color: #E9D6B4; margin: -4px auto 30px; max-width: 30em; }

/* Pergaminho com texto */
.folha-texto {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px clamp(22px, 6vw, 56px);
}
.folha-texto h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 4.6vw, 2rem);
  line-height: 1.2;
  color: var(--vinho);
  margin-bottom: 18px;
}
.folha-texto p { margin-bottom: 14px; }
.folha-texto .ornamento { margin-bottom: 22px; }
.voz {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--vinho);
  border-left: 2px solid var(--ouro);
  padding-left: 14px;
  margin: 18px 0 !important;
}
.ano11 .tarot.lado { float: right; font-size: 11px; margin: 0 0 12px 18px; transform: rotate(2deg); }
.ano11 .tarot.ano27 .tarot-rom { letter-spacing: .1em; font-size: .7em; padding-left: .1em; }

/* Três explicações */
.tres { display: grid; gap: 14px; }
.tres .item { text-align: center; padding: 8px 10px; }
.selo-item { width: 48px; height: 48px; margin: 0 auto 10px; }
.tres h3 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; color: var(--ouro-claro); margin-bottom: 6px; }
.tres p { color: #E9D6B4; max-width: 24em; margin: 0 auto; }
@media (min-width: 760px) { .tres { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

/* As cinco partes */
.partes { list-style: none; max-width: 640px; margin: 0 auto 36px; display: grid; gap: 10px; }
.partes li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--vinheta), var(--papel) url(../assets/papel.webp) 0 0 / 384px 384px;
  border-radius: 4px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .35);
}
.partes .rom {
  flex: none;
  width: 2.6em; height: 2.6em;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: .9rem;
  color: var(--vinho);
  border: 1px solid var(--ouro);
  border-radius: 50%;
}
.partes strong { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--tinta); }
.partes p { font-size: .95rem; color: var(--tinta-suave); margin-top: 2px; }

/* Prévias do PDF: carrossel no celular, quatro lado a lado no computador */
.previas {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 18px 18px;
  margin: 0 -18px;
  -webkit-overflow-scrolling: touch;
}
.previas figure { flex: 0 0 62%; scroll-snap-align: center; }
.previas img {
  width: 100%; height: auto;
  border-radius: 6px;
  border: 1px solid rgba(185, 145, 71, .6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
@media (min-width: 760px) {
  .previas { overflow: visible; margin: 0; padding: 0; }
  .previas figure { flex: 1 1 0; }
  .previas figure:nth-child(odd) { transform: translateY(14px); }
}
.legenda { text-align: center; font-size: .85rem; color: #C9B08A; margin-top: 18px; }

/* Vick */
.vick { display: grid; gap: 22px; justify-items: center; text-align: center; max-width: 760px; }
.vick p { color: #E9D6B4; margin-bottom: 12px; }
.vick .titulo-secao.esquerda { text-align: center; }
.vick-foto {
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 1px solid var(--ouro);
  box-shadow: 0 0 0 6px rgba(185, 145, 71, .15), 0 18px 40px rgba(0, 0, 0, .45);
  background: radial-gradient(circle at 40% 35%, #8E2335, #4A0A15);
  display: grid; place-items: center;
  overflow: hidden;
}
.vick-foto img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) {
  .vick { grid-template-columns: 200px 1fr; text-align: left; justify-items: start; align-items: center; }
  .vick-foto { width: 200px; height: 200px; }
  .vick .titulo-secao.esquerda { text-align: left; }
}

/* Preço */
.preco { max-width: 460px; margin: 0 auto; padding: 40px 26px 30px; text-align: center; }
.preco .selo { width: 84px; height: 84px; margin-bottom: 12px; }
.preco .titulo-produto { font-size: 1rem; }
.preco h2 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.25; color: var(--vinho); margin: 8px 0 6px; }
.valor { font-family: var(--display); font-weight: 700; font-size: 4.2rem; line-height: 1; color: var(--vinho); margin-top: 10px; }
.moeda-rs { font-size: .38em; vertical-align: .95em; margin-right: .12em; color: var(--tinta-suave); }
.pagamento { font-size: .85rem; color: var(--tinta-suave); margin-bottom: 22px; }
.inclui { list-style: none; text-align: left; margin: 0 0 26px; }
.inclui li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid rgba(185, 145, 71, .3); font-size: .95rem; }
.inclui li::before { content: "✦"; position: absolute; left: 4px; top: 9px; color: var(--verde); }
.preco .cta { width: 100%; }
.seguro { font-size: .8rem; color: var(--tinta-suave); margin-top: 12px; }

/* Perguntas */
.faq { max-width: 700px; display: grid; gap: 10px; }
.faq-item { border-radius: 4px; }
.previas figure { border-radius: 6px; }
.faq details {
  background: var(--vinheta), var(--papel) url(../assets/papel.webp) 0 0 / 384px 384px;
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .3);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 18px;
  position: relative;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--tinta);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-52%);
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--ouro);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-52%) rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: var(--tinta-suave); }

/* Final */
.final { text-align: center; padding-bottom: 72px; }
.final h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2.3rem);
  line-height: 1.2;
  color: #F6E9CC;
  max-width: 16em;
  margin: 0 auto 12px;
}
.final .sub { margin: 0 auto 28px; }

/* Rodapé */
.rodape { text-align: center; padding: 34px 20px calc(34px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(185, 145, 71, .25); color: #C9B08A; font-size: .9rem; }
.rodape .assinatura { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ouro-claro); margin-bottom: 6px; }
.rodape a { color: #E9D6B4; }
.rodape .aviso { max-width: 34em; margin: 14px auto 0; font-size: .78rem; opacity: .8; }

/* ---------- Brilho das cartas do topo (mesmo efeito do relatório) ---------- */
.leque .tarot, .ano11 .tarot {
  --aura-base: 0 10px 24px rgba(0, 0, 0, .35);
  --aura-brilho: 0 0 0 1.5px #C9A55A, 0 0 14px 3px rgba(226, 190, 110, .85), 0 0 34px 10px rgba(226, 190, 110, .35), 0 12px 26px rgba(0, 0, 0, .4);
  position: relative;
  box-shadow: var(--aura-base);
  transition: box-shadow .35s ease, translate .35s ease;
}
.leque .tarot-in, .ano11 .tarot-in { overflow: hidden; }
.leque .tarot-in::after, .ano11 .tarot-in::after {
  content: "";
  position: absolute;
  top: -15%; bottom: -15%; left: 0;
  width: 55%;
  background: linear-gradient(90deg, rgba(226, 190, 110, 0), rgba(226, 190, 110, .35) 30%, rgba(255, 255, 255, .95) 50%, rgba(226, 190, 110, .35) 70%, rgba(226, 190, 110, 0));
  transform: translateX(-140%) skewX(-18deg);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .leque .tarot:hover, .ano11 .tarot:hover { box-shadow: var(--aura-brilho); translate: 0 -6px; }
  .leque .tarot:hover .tarot-in::after, .ano11 .tarot:hover .tarot-in::after { animation: reflexo 1s ease-out; }
}
@media (hover: none), (pointer: coarse) {
  .leque .tarot { animation: aura 5s ease-in-out infinite; }
  .leque .tarot .tarot-in::after { animation: reflexo-ciclo 5s ease-in-out infinite; }
  .leque .tarot:nth-child(2), .leque .tarot:nth-child(2) .tarot-in::after { animation-delay: .45s; }
  .leque .tarot:nth-child(3), .leque .tarot:nth-child(3) .tarot-in::after { animation-delay: .9s; }
}
@keyframes reflexo { from { transform: translateX(-140%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }
@keyframes reflexo-ciclo { 0%, 12% { transform: translateX(-140%) skewX(-18deg); } 40%, 100% { transform: translateX(260%) skewX(-18deg); } }
@keyframes aura { 0%, 10%, 60%, 100% { box-shadow: var(--aura-base); } 30% { box-shadow: var(--aura-brilho); } }

@media (prefers-reduced-motion: reduce) {
  .flutua, .leque .tarot, .leque .tarot .tarot-in::after { animation: none !important; }
  html { scroll-behavior: auto; }
}
html { scroll-behavior: smooth; }

/* ajustes de celular */
@media (max-width: 480px) {
  .cta { font-size: .82rem; letter-spacing: .08em; padding: 16px 14px; }
  .ano11 .tarot.lado { font-size: 8.5px; margin: 0 0 8px 12px; }
  .ano11 .voz { font-size: 1.15rem; }
}

/* ==========================================================================
   Movimento da página
   1. Topo: ao abrir, os elementos surgem em sequência e as três cartas se abrem em leque.
   2. Rolagem: cada bloco sobe e aparece quando chega na tela (js/vendas.js marca .revela → .visivel).
   Só vale com .js-anima no <html> (posto no <head>, e nunca para quem pede menos movimento).
   Usa as propriedades translate/scale/rotate, que somam com os transform já existentes.
   ========================================================================== */
@keyframes leque-esq { from { opacity: 0; translate: 104% -.6em; rotate: 9deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes leque-dir { from { opacity: 0; translate: -104% -.6em; rotate: -9deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes leque-meio { from { opacity: 0; translate: 0 2em; scale: .92; } to { opacity: 1; translate: 0 0; scale: 1; } }

.js-anima .hero .selo { animation: surgir .9s cubic-bezier(.2, .7, .2, 1) .05s backwards, flutua 6s ease-in-out 1s infinite; }
.js-anima .hero .titulo-produto { animation: surgir .9s cubic-bezier(.2, .7, .2, 1) .2s backwards; }
.js-anima .hero h1 { animation: surgir 1s cubic-bezier(.2, .7, .2, 1) .32s backwards; }
.js-anima .hero .sub { animation: surgir 1s cubic-bezier(.2, .7, .2, 1) .5s backwards; }
.js-anima .leque .tarot:nth-child(2) { animation: leque-meio 1s cubic-bezier(.2, .7, .2, 1) .7s backwards; }
.js-anima .leque .tarot:nth-child(1) { animation: leque-esq 1.1s cubic-bezier(.2, .7, .2, 1) 1.05s backwards; }
.js-anima .leque .tarot:nth-child(3) { animation: leque-dir 1.1s cubic-bezier(.2, .7, .2, 1) 1.05s backwards; }
.js-anima .hero .cta { animation: surgir .9s cubic-bezier(.2, .7, .2, 1) 1.35s backwards; }
.js-anima .hero .garantia-mini { animation: surgir .9s cubic-bezier(.2, .7, .2, 1) 1.5s backwards; }
/* no celular as cartas também brilham sozinhas: a abertura em leque vem antes do brilho */
@media (hover: none), (pointer: coarse) {
  .js-anima .leque .tarot:nth-child(2) { animation: leque-meio 1s cubic-bezier(.2, .7, .2, 1) .7s backwards, aura 5s ease-in-out 2.6s infinite; }
  .js-anima .leque .tarot:nth-child(1) { animation: leque-esq 1.1s cubic-bezier(.2, .7, .2, 1) 1.05s backwards, aura 5s ease-in-out 2.2s infinite; }
  .js-anima .leque .tarot:nth-child(3) { animation: leque-dir 1.1s cubic-bezier(.2, .7, .2, 1) 1.05s backwards, aura 5s ease-in-out 3s infinite; }
}

