/* ============================================================
   Programa LibertaDor — lp.css
   Identidade: navy + sage + off-white | DM Sans + Playfair
   ============================================================ */

:root {
  --off-white: #F0EDE8;
  --navy: #1B3A4B;
  --navy-deep: #0F1E26;
  --sage: #8CA57E;
  --sage-light: #9DB183;
  --sage-dark: #40534A;
  --white: #FFFFFF;
  --font-sans: "DM Sans", system-ui, -apple-system, Arial, sans-serif;
  --font-editorial: "Playfair Display", Georgia, serif;
  --fs-small: 0.875rem;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-card: 0 2px 12px rgba(15, 30, 38, 0.07);
  --container: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.0625rem); line-height: 1.65;
  color: var(--navy); background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0 0 1rem; overflow-wrap: break-word; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); line-height: 1.2; font-weight: 700; }
h3 { font-size: clamp(1.0625rem, 2.5vw, 1.25rem); line-height: 1.3; font-weight: 600; }
a { color: var(--sage-dark); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.container-texto { max-width: 760px; }
/* scroll-margin evita que o header fixo cubra o topo da seção ao chegar por link */
.secao { padding-block: 3.5rem; scroll-margin-top: 72px; }
@media (min-width: 768px) { .secao { padding-block: 5rem; } }
.secao-branca { background: var(--white); }
.on-dark { background: var(--navy-deep); color: var(--off-white); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark p { color: rgba(240, 237, 232, 0.88); }
.on-dark .eyebrow { color: var(--sage-light); }
.on-dark .editorial { color: var(--sage-light); }

.editorial { font-family: var(--font-editorial); font-style: italic; font-weight: 400; color: var(--sage-dark); }
.eyebrow {
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sage-dark); margin-bottom: 0.75rem;
}
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 1.75rem;
}

/* ===== HEADER ===== */
.lp-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1.5rem; background: var(--off-white);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(27, 58, 75, 0.08);
}
.lp-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--navy); }
.lp-brand img { width: 38px; height: 38px; object-fit: contain; mix-blend-mode: multiply; }
.lp-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.lp-brand strong { font-size: 0.95rem; }
.lp-brand small { font-size: 0.72rem; color: var(--sage-dark); }

/* ===== BOTÕES ===== */
.btn-cta {
  display: inline-block; background: var(--sage); color: var(--navy-deep);
  font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
  border: 0; padding: 0.95rem 1.9rem; border-radius: var(--radius); cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-cta:hover, .btn-cta:focus-visible { background: var(--sage-dark); color: var(--off-white); }
.btn-header { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-secundario {
  background: transparent; color: var(--sage-dark);
  border: 2px solid var(--sage);
}
.on-dark .btn-secundario { color: var(--sage-light); }
.btn-secundario:hover, .btn-secundario:focus-visible { background: var(--sage); color: var(--navy-deep); }
.cta-duplo { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }
.cta-centro { justify-content: center; display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ===== HERO ===== */
.hero { padding-block: 3rem; }
.hero .container { max-width: 860px; text-align: center; }
.hero-sub { max-width: 640px; margin-inline: auto; font-size: clamp(1.0625rem, 2vw, 1.1875rem); }
.hero .cta-duplo { justify-content: center; }
.trust-row {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem 2rem; padding: 0; margin: 2rem 0 0; font-size: var(--fs-small);
  color: rgba(240, 237, 232, 0.75);
}
.trust-row strong { color: var(--sage-light); }

/* VSL: espaço reservado enquanto não há vídeo, embed quando VSL_URL é preenchida */
.vsl-slot {
  position: relative; aspect-ratio: 16 / 9; max-width: 720px; margin: 2rem auto 0.5rem;
  background: rgba(240, 237, 232, 0.06); border: 2px dashed rgba(240, 237, 232, 0.35);
  border-radius: var(--radius-lg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem; padding: 1rem;
}
.vsl-slot.vsl-ativa { border: 0; padding: 0; background: var(--navy-deep); overflow: hidden; }
.vsl-slot.vsl-ativa iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Sem vídeo o hero fica mais compacto, em vez de deixar um vão */
.hero-sem-vsl .cta-duplo { margin-top: 2rem; }
.hero-sem-vsl .trust-row { margin-top: 2.5rem; }
.vsl-play {
  width: 64px; height: 64px; border-radius: 50%; background: var(--sage);
  color: var(--navy-deep); font-size: 1.5rem; display: flex; align-items: center;
  justify-content: center; padding-left: 5px;
}
.vsl-texto { font-size: var(--fs-small); color: rgba(240, 237, 232, 0.75); }

/* ===== PLACEHOLDERS DE IMAGEM ===== */
.img-slot {
  margin: 1.75rem 0; border: 2px dashed rgba(27, 58, 75, 0.3);
  border-radius: var(--radius-lg); min-height: 180px;
  display: flex; align-items: center; justify-content: center; position: relative;
  padding: 1rem;
}
.on-dark .img-slot { border-color: rgba(240, 237, 232, 0.3); }
.img-slot::before {
  content: attr(data-label); font-size: var(--fs-small);
  color: rgba(27, 58, 75, 0.55); text-align: center; max-width: 80%;
}
.on-dark .img-slot::before { color: rgba(240, 237, 232, 0.55); }
.img-slot.ok { border: 0; padding: 0; min-height: 0; }
.img-slot.ok::before { content: none; }
.img-slot img { border-radius: var(--radius-lg); }

/* Ilustrações de traço sobre fundo branco: o multiply dissolve o branco no fundo
   da seção, então não aparece retângulo. O brightness normaliza o quase-branco
   do JPEG para branco puro antes da fusão. Não usar em fotografia. */
.img-linha img {
  mix-blend-mode: multiply; filter: brightness(1.05); border-radius: 0;
}
.img-slot-larga { min-height: 120px; }
.img-slot-retrato { min-height: 320px; }
.img-slot-selo { min-height: 160px; width: 200px; flex-shrink: 0; margin-inline: auto; }

/* ===== GRIDS ===== */
.grid-cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 700px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
.card-dark {
  background: rgba(240, 237, 232, 0.06); border: 1px solid rgba(240, 237, 232, 0.12);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.card-dark h3 { color: var(--sage-light); }
.card-dark p { margin-bottom: 0; }

.lista-valor { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 1.25rem; }
.lista-valor li { padding-left: 1.5rem; position: relative; }
.lista-valor li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--sage);
}

.grid-depoimentos { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 700px) { .grid-depoimentos { grid-template-columns: 1fr 1fr; } }
.depoimento { margin: 0; }
.depoimento p { font-family: var(--font-editorial); font-style: italic; font-size: 1.0625rem; }
.depoimento footer { font-size: var(--fs-small); color: var(--sage-dark); font-weight: 600; }
.nota-depoimentos { font-size: 0.8125rem; color: rgba(27, 58, 75, 0.6); margin-top: 1.25rem; }

/* ===== FAIXA DE SELOS (SVG inline, sem imagem) ===== */
.selos {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; gap: 1.75rem 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(27, 58, 75, 0.12);
  padding-top: 2rem;
}
@media (min-width: 860px) { .selos { grid-template-columns: repeat(4, 1fr); } }
.selo {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0.6rem; color: var(--navy);
}
.selo svg { width: 54px; height: 54px; }
.selo:nth-child(2) svg { width: 84px; }
.selo span { display: flex; flex-direction: column; font-size: 0.8125rem; line-height: 1.35; color: rgba(27, 58, 75, 0.7); }
.selo strong { font-size: 0.9375rem; color: var(--navy); margin-bottom: 0.15rem; }

.grid-historia { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .grid-historia { grid-template-columns: 340px 1fr; } }

.grid-passos { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 700px) { .grid-passos { grid-template-columns: 1fr 1fr; } }
.passo { position: relative; padding-top: 2.25rem; }
.passo-num {
  position: absolute; top: -1rem; left: 1.5rem;
  font-family: var(--font-editorial); font-style: italic; font-size: 2.5rem;
  color: var(--sage); line-height: 1;
}
.metodo-reforco { text-align: center; font-size: clamp(1.125rem, 2.5vw, 1.375rem); margin-top: 2.5rem; }

/* ===== OFERTA ===== */
.oferta-principal {
  position: relative; margin-top: 2.5rem; border: 2px solid var(--sage);
  padding: 2.25rem 1.75rem 1.75rem;
}
.pacote-selo {
  position: absolute; top: -0.85rem; left: 1.75rem;
  background: var(--sage); color: var(--navy-deep); font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.85rem; border-radius: 999px;
}
.oferta-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .oferta-grid { grid-template-columns: 1fr 300px; gap: 2.5rem; } }

.oferta-lista { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.oferta-lista li { padding-left: 1.7rem; position: relative; }
.oferta-lista li::before {
  content: "✓"; position: absolute; left: 0; color: var(--sage-dark); font-weight: 700;
}

.oferta-preco-bloco {
  background: var(--off-white); border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem; text-align: center;
}
.preco-rotulo {
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sage-dark); margin-bottom: 0.25rem;
}
.preco-avista {
  font-family: var(--font-editorial); font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 3.5rem); line-height: 1; color: var(--navy);
  margin-bottom: 0.5rem;
}
.preco-moeda { font-size: 0.45em; vertical-align: 0.55em; margin-right: 0.15em; }
.preco-parcelado { font-size: 0.9375rem; margin-bottom: 1.25rem; }
.preco-total { font-size: 0.75rem; color: rgba(27, 58, 75, 0.6); }
.oferta-preco-bloco .btn-cta { width: 100%; }
.oferta-preco-bloco .nota-pagamento { margin-top: 0.85rem; margin-bottom: 0; }

.ancora-preco {
  max-width: 640px; margin: 2rem auto 0; text-align: center;
  font-size: var(--fs-small); color: rgba(27, 58, 75, 0.7);
}
.nota-pagamento { text-align: center; font-size: 0.8125rem; color: rgba(27, 58, 75, 0.55); }

/* A oferta do Módulo 1 por R$ 5 vive apenas no modal de saída, por decisão de
   funil: na página, ela competiria com a oferta principal. */

/* ===== GARANTIA ===== */
.secao-garantia { background: #E4E8DD; }
.grid-garantia { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 700px) { .grid-garantia { grid-template-columns: 220px 1fr; } }

/* ===== OBJEÇÕES ===== */
.objecao { margin-top: 2rem; }
.objecao h3 { color: var(--sage-dark); font-family: var(--font-editorial); font-style: italic; font-weight: 500; font-size: 1.25rem; }
.objecao p { margin-bottom: 0; }

/* ===== FAQ ===== */
#faq details {
  background: var(--off-white); border-radius: var(--radius);
  margin-top: 0.75rem; overflow: hidden;
}
#faq summary {
  cursor: pointer; font-weight: 600; padding: 1rem 1.25rem;
  list-style: none; position: relative; padding-right: 2.5rem;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; color: var(--sage-dark);
  transition: transform 0.2s ease;
}
#faq details[open] summary::after { content: "−"; }
#faq details p { padding: 0 1.25rem 1.1rem; margin: 0; color: rgba(27, 58, 75, 0.85); }

/* ===== MODAL DE SAÍDA ===== */
.modal-saida { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.modal-saida[hidden] { display: none; }
.modal-saida-fundo { position: absolute; inset: 0; background: rgba(15, 30, 38, 0.72); }
.modal-saida-caixa {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  max-width: 460px; width: 100%; padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 12px 48px rgba(15, 30, 38, 0.28);
  max-height: 92dvh; overflow-y: auto;
  animation: subir 0.28s ease;
}
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal-saida-caixa { animation: none; } }
.modal-saida-fechar {
  position: absolute; top: 0.5rem; right: 0.75rem; background: none; border: 0;
  font-size: 1.75rem; line-height: 1; color: rgba(27, 58, 75, 0.45); cursor: pointer;
  padding: 0.25rem 0.5rem; border-radius: var(--radius);
}
.modal-saida-fechar:hover { color: var(--navy); }
.modal-saida-caixa h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
.modal-saida-caixa p { font-size: 0.9375rem; }
#form-saida { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1.25rem; }
#form-saida input {
  font-family: var(--font-sans); font-size: 1rem; color: var(--navy);
  background: var(--off-white); border: 1px solid rgba(27, 58, 75, 0.2);
  border-radius: var(--radius); padding: 0.8rem 1rem;
}
#form-saida input:focus-visible { outline: 3px solid var(--sage); border-color: var(--sage); }
#form-saida .btn-cta { width: 100%; margin-top: 0.35rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-feedback { min-height: 1.4em; font-size: var(--fs-small); color: var(--sage-dark); margin: 0.4rem 0 0; }
.modal-saida-nota { font-size: 0.75rem; color: rgba(27, 58, 75, 0.6); margin: 0.9rem 0 0; }

/* ===== FOOTER ===== */
.lp-footer { background: var(--navy-deep); color: rgba(240, 237, 232, 0.7); padding-block: 2.5rem; text-align: center; }
.lp-footer p { margin-bottom: 0.5rem; font-size: 0.8125rem; }
.lp-footer strong { color: var(--off-white); }
.lp-footer a { color: var(--sage-light); }

/* ===== AJUSTES MOBILE ===== */
@media (max-width: 520px) {
  /* Header compacto: era 95px de altura, com marca e botão quebrando em duas linhas */
  .lp-header { padding: 0.6rem 1rem; gap: 0.75rem; }
  .lp-brand { min-width: 0; }
  .lp-brand img { width: 32px; height: 32px; }
  .lp-brand strong { font-size: 0.85rem; line-height: 1.15; }
  .lp-brand small { font-size: 0.65rem; }
  .btn-header { padding: 0.55rem 0.95rem; font-size: 0.82rem; white-space: nowrap; flex-shrink: 0; }

  /* A segunda frase do título ganha linha própria em vez de emendar na primeira */
  .hero h1 .editorial { display: block; margin-top: 0.12em; }

  /* CTAs ocupam a largura toda: alvo de toque maior e hierarquia mais clara */
  .cta-duplo, .cta-centro { flex-direction: column; align-items: stretch; }
  .cta-duplo .btn-cta, .cta-centro .btn-cta { width: 100%; }

  /* Prova social em coluna, com respiro entre os itens */
  .trust-row { flex-direction: column; gap: 0.4rem; text-align: center; }

  /* Selo do pacote destacado não pode encostar na borda do card */
  .pacote-destaque { margin-top: 0.5rem; }

  /* Placeholders de imagem mais baixos para não criar buracos na rolagem */
  .img-slot-retrato { min-height: 220px; }
  .img-slot-selo { width: 160px; min-height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
