/* ==========================================================================
   LP DR. PEDRO SOUSA (base: template-lp-vsl)
   1. TOKENS DA MARCA  (é aqui que você troca cor, fonte e imagens de fundo)
   2. Base
   3. Componentes (botão, card, checklist, vídeo)
   4. Seções (header, hero, prova, ofertas, depoimentos, rodapé)
   5. Responsivo
   ========================================================================== */

/* 1. TOKENS DA MARCA ------------------------------------------------------ */
:root {
  /* Cores */
  --brand: #000003;            /* cor principal: botões, checks, nomes */
  --brand-hover: #2b2926;      /* principal no hover */
  --brand-contrast: #f3efe8;   /* texto sobre a cor principal */
  --accent: #d6ccbc;           /* bege da marca: play do vídeo e botões na seção escura */
  --accent-hover: #e6dfd3;
  --accent-deep: #8a6f4e;      /* bronze: estrelas e detalhes */
  --ink: #000003;              /* títulos */
  --text: #1a1917;             /* texto corrido */
  --muted: #504d4a;            /* texto de apoio e avisos */
  --page: #f3efe8;             /* fundo da página */
  --surface: #ffffff;          /* fundo dos cards */
  --header-bg: #f3efe8;
  --footer-bg: #e9e3d8;
  --dark: #000003;             /* fundo da seção escura */
  --notice-bg: #000003;        /* barra de aviso acima do vídeo */

  /* Imagens de fundo (use none para ficar só na cor) */
  --hero-image: none;          /* ex.: url("../img/hero-bg.jpg") */
  --hero-wash: rgba(243, 239, 232, 0);
  --dark-image: none;          /* ex.: url("../img/dark-bg.jpg") */
  --dark-wash: rgba(0, 0, 0, 0.82);

  /* Tipografia */
  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* Forma */
  --radius-card: 20px;
  --radius-btn: 4px;
  --radius-media: 6px;
  --shadow-card: 0 10px 40px rgba(0, 0, 3, 0.10);
  --shadow-btn: 0 3px 8px rgba(0, 0, 0, 0.28);

  /* Medidas */
  --container: 1170px;
  --container-narrow: 900px;
  --video-max: 780px;
  --gutter: 20px;
  --section-gap: clamp(40px, 6vw, 72px);
}

/* 2. BASE ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
strong { font-weight: 700; }

[id] { scroll-margin-top: 24px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-gap); }
.section--tight { padding-block: calc(var(--section-gap) / 2); }
.stack > * + * { margin-top: var(--stack, 24px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* 3. COMPONENTES ---------------------------------------------------------- */

/* Botão */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--brand);
  color: var(--brand-contrast);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: translateY(1px); }
.btn__arrow { font-size: 1.15em; line-height: 1; transform: translateY(-0.06em); }

.btn--block {
  display: flex;
  width: 100%;
  padding: 16px 20px;
  font-size: clamp(17px, 2.1vw, 24px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: var(--shadow-btn);
}

/* Card branco com sombra */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3.6vw, 44px);
  font-size: clamp(17px, 1.75vw, 23px);
  line-height: 1.5;
}
.card__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

/* Lista com check */
.checklist > li {
  position: relative;
  padding-left: 1.75em;
}
.checklist > li + li { margin-top: 0.42em; }
.checklist > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.24em;
  width: 1em;
  height: 1em;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22Zm5.7 8.3a1.1 1.1 0 0 0-1.6-1.5l-5.3 5.6-2.4-2.4a1.1 1.1 0 0 0-1.6 1.6l3.2 3.2a1.1 1.1 0 0 0 1.6 0l6.1-6.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22Zm5.7 8.3a1.1 1.1 0 0 0-1.6-1.5l-5.3 5.6-2.4-2.4a1.1 1.1 0 0 0-1.6 1.6l3.2 3.2a1.1 1.1 0 0 0 1.6 0l6.1-6.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Vídeo (fachada: só carrega o player no clique) */
.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: #0a0a0a;
  cursor: pointer;
}
.video--vertical { aspect-ratio: 9 / 16; }
.video > img,
.video > iframe,
.video > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(56px, 12%, 96px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease;
}
.video__play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.7em 0 0.7em 1.15em;
  border-color: transparent transparent transparent var(--brand-contrast);
  font-size: clamp(12px, 1.6vw, 18px);
}
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.07); }
.video.is-playing { cursor: default; }
.video.is-playing .video__play,
.video.is-playing > img { display: none; }

/* 4. SEÇÕES --------------------------------------------------------------- */

/* Header */
.header { background: var(--header-bg); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
  max-width: calc(1080px + var(--gutter) * 2);
}
.header__logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(28px, 6vw, 88px); }
.nav a {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}
.nav a:hover { color: var(--brand); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--text);
}
.nav-toggle span + span { margin-top: 5px; }

/* Hero */
.hero {
  padding-block: clamp(24px, 3vw, 34px) clamp(48px, 7vw, 96px);
  background-color: var(--page);
  background-image: linear-gradient(var(--hero-wash), var(--hero-wash)), var(--hero-image);
  background-size: cover;
  background-position: center;
  text-align: center;
}
.hero__title {
  max-width: 1120px;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(27px, 4.1vw, 45px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
.hero__sub {
  max-width: 970px;
  margin: 12px auto 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 2.1vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: balance;
}
.hero__media {
  max-width: var(--video-max);
  margin: 18px auto 0;
}
.hero__notice {
  padding: 5px 12px;
  background: var(--notice-bg);
  color: #fff;
  font-size: clamp(12px, 1.4vw, 16px);
  line-height: 1.3;
}
.hero__media .btn--block { margin-top: 22px; }

/* Prova social com avatares */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 42px;
  text-align: left;
}
.avatars { display: flex; padding-left: 14px; }
.avatars img {
  width: 62px;
  height: 62px;
  margin-left: -14px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  background: #ddd;
}
.social-proof__text {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 500;
  line-height: 1.3;
}
.social-proof__text strong { display: block; }

/* Números (bloco opcional) */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand);
}
.stats__label { font-size: 16px; color: var(--muted); }

/* Aviso / disclaimer no meio da página */
.disclaimer {
  max-width: 1120px;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(15px, 1.75vw, 23px);
  line-height: 1.3;
}
.disclaimer__title {
  margin-bottom: 1.2em;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Grade de provas (fotos de resultados) */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.6vw, 32px);
  max-width: 1140px;
  margin-inline: auto;
}
.proof-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-media);
  background: #e6e6e6;
}

/* Ofertas dentro do card */
.offer + .offer,
.card__intro + .offer { margin-top: clamp(40px, 5vw, 64px); }
.offer__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.9vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.offer__label { font-weight: 700; }

/* Seção escura (depoimentos + fechamento) */
.section--dark {
  background-color: var(--dark);
  background-image: linear-gradient(var(--dark-wash), var(--dark-wash)), var(--dark-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 45px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}
.section--dark .card { color: var(--text); }

.testimonials { display: grid; gap: clamp(24px, 4vw, 50px); }
.testimonial {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(18px, 2.6vw, 30px);
  font-size: inherit;
  text-align: center;
}
.testimonial__quote {
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.55;
}
.testimonial__name {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand);
}
.testimonial__role {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 500;
}

/* Rodapé */
.footer {
  padding-block: 28px 40px;
  background: var(--footer-bg);
  text-align: center;
  font-size: 13.5px;
  line-height: 1.45;
}
.footer p + p { margin-top: 1.5em; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__strong {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
}

/* Botão flutuante de WhatsApp (opcional) */
.float-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease;
}
.float-cta:hover { transform: scale(1.06); }
.float-cta svg { width: 30px; height: 30px; fill: currentColor; }

/* 5. RESPONSIVO ----------------------------------------------------------- */
@media (max-width: 860px) {
  .header__inner { min-height: 72px; position: relative; justify-content: center; }
  .header__logo img { height: 44px; }
  .header__cta { display: none; }
  .nav-toggle { display: block; position: absolute; right: var(--gutter); }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--header-bg);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; text-align: center; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .section--dark { background-attachment: scroll; }
}

@media (max-width: 700px) {
  :root { --gutter: 14px; --radius-card: 18px; }
  .card__title { text-align: center; }
  .offer__title { text-align: center; }
  .testimonial { grid-template-columns: 1fr; }
  .avatars img { width: 46px; height: 46px; margin-left: -12px; }
  .social-proof { margin-top: 28px; text-align: center; }
}

@media (max-width: 520px) {
  .proof-grid { grid-template-columns: 1fr; max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 6. AJUSTES DO PROJETO (Dr. Pedro Sousa) ---------------------------------- */

.header { border-bottom: 1px solid rgba(0, 0, 3, 0.10); }

/* Na seção escura o botão solto vira bege; dentro dos cards volta ao preto */
.section--dark {
  --brand: var(--accent);
  --brand-hover: var(--accent-hover);
  --brand-contrast: #000003;
}
.section--dark .card {
  --brand: #000003;
  --brand-hover: #2b2926;
  --brand-contrast: #f3efe8;
}

/* Play do vídeo em bege para aparecer sobre a capa escura */
.video__play { background: var(--accent); }
.video__play::after { border-left-color: #000003; }
.hero__notice { border-radius: var(--radius-media) var(--radius-media) 0 0; }
.hero__media .video { border-radius: 0 0 var(--radius-media) var(--radius-media); }

.hero__eyebrow {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Selo de sigilo no lugar dos avatares */
.seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--accent);
}
.seal svg { width: 26px; height: 26px; fill: currentColor; }
.social-proof__text { max-width: 22em; }

/* Números com rótulo curto */
.stats__num { font-size: clamp(28px, 3.6vw, 44px); }
.stats__label { display: block; max-width: 15em; margin: 6px auto 0; line-height: 1.35; }

/* Quem é o Dr. Pedro */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  max-width: 1080px;
  margin-inline: auto;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
}
.about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.about .stack { --stack: 16px; }
.about__reg { font-size: 14px; letter-spacing: 0.04em; color: var(--muted); }

/* Passos numerados */
.steps { margin-bottom: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; padding-left: 2.5em; counter-increment: step; }
.steps > li + li { margin-top: 0.75em; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.08em;
  display: grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-contrast);
  font-size: 0.82em;
  font-weight: 700;
}

/* Bloco do canal fechado */
.disclaimer__action { margin-top: 1.4em; }
.disclaimer__note { margin-top: 0.9em; font-size: 14px; color: var(--muted); }
.btn--ghost {
  padding: 13px 22px;
  border: 1.5px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-size: clamp(15px, 1.5vw, 18px);
}
.btn--ghost:hover { background: var(--brand); color: var(--brand-contrast); }

/* Avaliações do Google */
.section__sub {
  margin-top: 10px;
  text-align: center;
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(255, 255, 255, 0.72);
}
.reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
}
.review { padding: clamp(20px, 2.6vw, 30px); font-size: clamp(16px, 1.45vw, 18px); line-height: 1.55; }
.review__stars { color: var(--accent-deep); font-size: 20px; letter-spacing: 0.12em; }
.review__quote { margin-top: 10px; }
.review__name { margin-top: 16px; font-weight: 700; }
.review__role { font-size: 14px; color: var(--muted); }

/* Dúvidas frequentes */
.faq details { border-top: 1px solid rgba(0, 0, 3, 0.14); }
.faq details:last-child { border-bottom: 1px solid rgba(0, 0, 3, 0.14); }
.faq summary {
  position: relative;
  padding: 0.85em 2em 0.85em 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3em;
  font-weight: 500;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding: 0 0 1.1em; font-size: 0.9em; color: var(--muted); }

.footer p + p { margin-top: 1.1em; }

@media (max-width: 860px) {
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; text-align: left; }
  .about__photo { max-width: 340px; margin-inline: auto; }
  .about .card__title { text-align: center; }
  .seal { width: 46px; height: 46px; }
  .social-proof__text { max-width: none; }
}
