* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-surface);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4, h5 {
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--color-text-heading);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); font-weight: var(--fw-bold); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-body); }

p { margin: 0 0 var(--space-3); }

/* ============ LAYOUT ============ */

.section {
  padding: var(--space-7) var(--space-4);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.container--narrow {
  max-width: 900px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.center { text-align: center; }

/* ============ COMPONENTES ============ */

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--color-secondary);
  color: var(--color-text-on-secondary);
}
.btn--primary:hover { background: var(--color-secondary-dark); color: #fff; }

/* Botão em fundos verde-escuros — amarelo com texto verde-escuro */
.hero .btn--primary,
.option .btn--primary,
.final-cta .btn--primary {
  background: var(--color-accent-yellow);
  color: var(--color-surface-dark);
}
.hero .btn--primary:hover,
.option .btn--primary:hover,
.final-cta .btn--primary:hover {
  background: #F0C830;
  color: var(--color-surface-dark);
}
.btn--dark {
  background: var(--color-secondary-dark);
  color: #fff;
}
.btn--dark:hover { background: #1e6432; }

/* Ícone check circular */
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: 20px;
  flex-shrink: 0;
}
.check--green {
  background: var(--color-secondary);
}
.check--warn {
  background: var(--color-accent-warn);
}
.check--sm { width: 28px; height: 28px; font-size: 14px; }

/* ============ 01 · HERO ============ */

.hero {
  background-color: var(--color-surface-dark);
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.25 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-7) var(--space-4);
}
.hero__content h1 {
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-4);
}
.hero .eyebrow {
  color: var(--color-accent-yellow);
}
.hero__cover {
  text-align: center;
}
.hero__cover img {
  max-width: 440px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08))
    drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12))
    drop-shadow(0 40px 70px rgba(0, 0, 0, 0.10));
  transition: transform 0.4s ease;
}
.hero__cover:hover img {
  transform: translateY(-6px);
}

/* ============ 02 · VÍDEO ============ */

.video-section {
  padding: var(--space-6) var(--space-4) var(--space-7);
}
.video-section h2 {
  text-align: center;
  margin-bottom: var(--space-5);
}
.video-embed {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-muted);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============ 03 · CONTEÚDO / 4 CARDS ============ */

.cards-section {
  position: relative;
  overflow: hidden;
}
.cards-section::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -40px;
  width: 480px;
  aspect-ratio: 931 / 950;
  background: url("imgs/ebook-comer-fora-doenca-gastrointestinal-conteudo.png") no-repeat right bottom / contain;
  pointer-events: none;
  z-index: 0;
}
.cards-section > .container {
  position: relative;
  z-index: 1;
}
.cards-section .cards-head {
  text-align: center;
  margin-bottom: var(--space-6);
}
.cards-section .cards-head p {
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 auto;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.card {
  background: var(--color-surface-muted);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  text-align: center;
}
.card .check {
  margin: 0 auto var(--space-3);
}
.card p {
  font-size: var(--fs-small);
  color: var(--color-text);
  margin: 0;
}

.cta-wrap {
  text-align: center;
  margin-top: var(--space-6);
}

/* ============ 04 · DETALHES ============ */

.details-section {
  background: var(--color-surface-muted);
}
.details-section .details-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface-muted);
  aspect-ratio: 4 / 5;
}
.details-section .details-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.details-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.details-item {
  display: flex;
  gap: var(--space-3);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}
.details-item:last-child { border-bottom: none; }
.details-item p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--color-text);
}

/* ============ 05 · OPÇÕES DE COMPRA ============ */

.options-section {
  padding: var(--space-7) var(--space-4);
}
.options-section h2 {
  text-align: center;
}
.options-section .options-sub {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 auto var(--space-6);
}
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.option {
  background: var(--color-surface-dark);
  color: #fff;
  border-radius: var(--radius-card);
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
}
.option--highlight {
  background: linear-gradient(135deg, #1A4A34 0%, #0E2E1F 100%);
}
.option__label {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-weight: var(--fw-semibold);
  color: var(--color-primary-soft);
  margin-bottom: var(--space-3);
}
.option h3 {
  color: #fff;
  margin-bottom: var(--space-2);
}
.option__desc {
  color: rgba(255,255,255,0.75);
  font-size: var(--fs-small);
  margin-bottom: var(--space-4);
}
.option__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.option__list li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.9);
}
.option__list li::before {
  content: "✓";
  color: var(--color-primary-soft);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}
.option__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin: auto 0 var(--space-4);
}
.price-old {
  text-decoration: line-through;
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-body);
}
.price-new {
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  color: var(--color-accent-yellow);
}
.price-vat {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.6);
  margin-top: -8px;
  margin-bottom: var(--space-4);
}

/* ============ 06 · TESTEMUNHOS VÍDEO ============ */

.testimonials-video h2 {
  text-align: center;
  margin-bottom: var(--space-2);
}
.testimonials-video .sub {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.video-testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.vt-card {
  background: var(--color-surface-muted);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.vt-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-strong);
  overflow: hidden;
}
.vt-card__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: transparent;
  display: block;
}
.vt-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vt-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.9);
  color: var(--color-primary);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
}
.vt-card__poster:hover .vt-card__play,
.vt-card__poster:focus-visible .vt-card__play {
  transform: translate(-50%, -50%) scale(1.06);
  background: #fff;
}
.vt-card__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.vt-card__meta {
  padding: var(--space-3);
}
.vt-card__meta strong { display: block; color: var(--color-text-heading); }
.vt-card__meta span { font-size: var(--fs-small); color: var(--color-text-muted); }

/* ============ 07 · PARA QUEM É / NÃO É ============ */

.audience-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-6);
  align-items: stretch;
}
.audience-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface-muted);
  aspect-ratio: 4 / 5;
}
.audience-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.audience-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
}
.audience-box {
  background: var(--color-surface-muted);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.audience-box--warn {
  background: #F5E5E5;
}
.audience-box__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.audience-box h3 {
  margin: 0;
  font-size: var(--fs-h3);
}
.audience-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.audience-box ul li {
  padding-left: var(--space-3);
  position: relative;
  font-size: var(--fs-small);
  color: var(--color-text);
  line-height: 1.5;
}
.audience-box ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary-soft);
  font-weight: var(--fw-bold);
}

/* ============ 08 · TESTEMUNHOS WHATSAPP ============ */

.wa-section h2 {
  text-align: center;
  margin-bottom: var(--space-6);
}
.wa-grid {
  column-width: 300px;
  column-gap: var(--space-3);
}
.wa-card {
  break-inside: avoid;
  margin: 0 0 var(--space-3);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface-muted);
}
.wa-card img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 600px) {
  .wa-grid {
    column-width: 160px;
    column-gap: var(--space-2);
  }
  .wa-card { margin-bottom: var(--space-2); }
}

/* ============ 09 · SEGUNDO CTA ============ */

/* ============ 08b · TESTEMUNHOS TEXTO ============ */

.text-testimonials-section {
  padding: var(--space-7) var(--space-4);
}
.tt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.tt-card {
  position: relative;
  padding-top: var(--space-5);
}
.tt-card::before {
  content: "\201C";
  position: absolute;
  top: -12px;
  left: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 1;
  color: var(--color-primary-soft);
  font-weight: var(--fw-bold);
}
.tt-card__text {
  font-size: var(--fs-body);
  color: var(--color-text);
  line-height: 1.55;
  margin: 0 0 var(--space-3);
}
.tt-card__author {
  font-weight: var(--fw-bold);
  color: var(--color-text-heading);
  font-size: var(--fs-small);
}

@media (max-width: 900px) {
  .tt-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
}
@media (max-width: 600px) {
  .tt-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* ============ 09 · SEGUNDO CTA ============ */

.final-cta {
  background: linear-gradient(135deg, #1A4A34 0%, #0E2E1F 100%);
  color: #fff;
  padding: var(--space-7) var(--space-4);
}
.final-cta__image {
  text-align: center;
}
.final-cta__image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
}
.final-cta__content h2 {
  color: #fff;
  margin-bottom: var(--space-3);
}
.final-cta__content p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 var(--space-5);
}
.final-cta__bullets {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.final-cta__bullets li {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  color: rgba(255,255,255,0.9);
  font-size: var(--fs-small);
}

/* ============ 10 · FAQ ============ */

.faq-section h2 {
  text-align: center;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: var(--space-6);
  color: var(--color-primary);
}
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
  padding: var(--space-4) 0;
  cursor: pointer;
  font-weight: var(--fw-semibold);
  color: var(--color-text-heading);
  font-size: var(--fs-body);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--color-primary);
  font-weight: var(--fw-regular);
  line-height: 1;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item__body {
  padding: 0 0 var(--space-4);
  color: var(--color-text);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}
.faq-item__body p { margin: 0 0 var(--space-2); }
.faq-item__body p:last-child { margin: 0; }

/* --- Scroll-reveal: secções (one-shot) ---
   Aplica em qualquer elemento com [data-animate] ou [data-stagger].
   Variantes: (default = fade-up) | fade-left | fade-right | fade | scale */
.has-scroll-reveal [data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.has-scroll-reveal [data-animate="fade-left"]  { transform: translateX(-32px); }
.has-scroll-reveal [data-animate="fade-right"] { transform: translateX(32px);  }
.has-scroll-reveal [data-animate="fade"]       { transform: none; }
.has-scroll-reveal [data-animate="scale"]      { transform: scale(0.94); }
.has-scroll-reveal [data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger — cada filho aparece com pequeno desfasamento */
.has-scroll-reveal [data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.has-scroll-reveal [data-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.has-scroll-reveal [data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.13s; }
.has-scroll-reveal [data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.21s; }
.has-scroll-reveal [data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.29s; }
.has-scroll-reveal [data-stagger].is-visible > *:nth-child(5) { transition-delay: 0.37s; }
.has-scroll-reveal [data-stagger].is-visible > *:nth-child(6) { transition-delay: 0.45s; }
.has-scroll-reveal [data-stagger].is-visible > *:nth-child(7) { transition-delay: 0.53s; }
.has-scroll-reveal [data-stagger].is-visible > *:nth-child(n+8) { transition-delay: 0.6s; }
.has-scroll-reveal [data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .has-scroll-reveal [data-animate],
  .has-scroll-reveal [data-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ FOOTER ============ */

.footer {
  background: var(--color-surface);
  border-top: 2px solid var(--color-surface-strong);
  color: var(--color-text);
  padding: var(--space-7) var(--space-4) var(--space-5);
  font-size: var(--fs-small);
}
.footer__ers {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  margin: var(--space-2) 0 0;
}
.footer__ers strong {
  color: var(--color-text-heading);
  font-weight: var(--fw-semibold);
}
.footer__social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-muted);
  color: var(--color-primary);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.footer__social a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer__social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.footer__reclamacoes-badge {
  display: inline-block;
  margin-top: var(--space-4);
  transition: opacity 0.2s ease;
}
.footer__reclamacoes-badge:hover { opacity: 0.85; }
.footer__reclamacoes-badge img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 4px;
}
.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.footer__logo {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 0 var(--space-3);
}
.footer__brand p {
  color: var(--color-text-muted);
  max-width: 40ch;
  margin: 0;
}
.footer__col-title {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-3);
}
.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer__links a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--color-primary); }
.footer__bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer__credit {
  color: var(--color-text-muted);
  margin: 0;
}
.footer__credit a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--fw-semibold);
  transition: color 0.2s ease;
}
.footer__credit a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-section::after {
    width: 280px;
    bottom: -40px;
    right: -30px;
    opacity: 0.6;
  }
}

@media (max-width: 700px) {
  .section, .hero, .video-section { padding: var(--space-6) var(--space-3); }
  .grid-2, .options-grid, .audience-layout, .video-testimonials {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .audience-image { max-width: 400px; margin: 0 auto; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-section::after { display: none; }
  .footer__main { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer__bottom { flex-direction: column; text-align: center; }
  h1 { font-size: 2rem; }
  .price-new { font-size: 2rem; }
}
