/* ==========================================================================
   Guia do Skincare — Dr. Ursinho
   CSS único da página. Organizado em: tokens, reset, base, utilitários e
   depois uma seção por bloco da página, na mesma ordem do index.html.
   ========================================================================== */

/* ── Fontes ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-700.woff2") format("woff2");
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --brand: #20bab8;
  --brand-10: rgba(32, 186, 184, 0.1);
  --brand-15: rgba(32, 186, 184, 0.15);
  --brand-20: rgba(32, 186, 184, 0.2);
  --brand-deep: #1c9493;
  --brand-bar: #1aaba9;
  --brand-dark: #139492;
  --lime: #cbe600;
  --lime-ink: #556002;
  --ink: #353535;
  --surface: #f5f5f5;
  --hairline: #dddddd;

  /* Escala do Figma, fluida até o valor de desktop */
  --h1: clamp(2rem, 1.35rem + 2.1vw, 2.75rem);       /* 44px */
  --h2: clamp(1.6875rem, 1.24rem + 0.85vw, 2.0625rem); /* 27px no celular, 33px no desktop */
  --h3: clamp(1.25rem, 1.19rem + 0.2vw, 1.375rem);   /* 22px */
  --aux: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);    /* 20px */
  --corpo: 1rem;                                     /* 16px */

  --raio: 20px;
  --raio-sm: 10px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

body, h1, h2, h3, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
/* `height: auto` é essencial: sem ele os atributos width/height do HTML viram
   altura fixa e a imagem estica quando o CSS muda só a largura. Onde é preciso
   uma altura fixa (hero, palco, avatares) a regra da classe tem precedência. */
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Base ───────────────────────────────────────────────────────────────── */
body {
  background: #fff;
  color: var(--ink);
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: var(--corpo);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* No celular as entrelinhas são mais fechadas, senão um título de 3 ou 4
   linhas se desmancha. A partir de `lg` voltam aos valores exatos do Figma. */
h1 { font-size: var(--h1); line-height: 1.18; font-weight: 700; }
h2 { font-size: var(--h2); line-height: 1.2; font-weight: 700; }
h3 { font-size: var(--h3); line-height: 1.3; font-weight: 600; }

/* Do desktop para cima nada muda em relação ao Figma: entrelinhas originais e
   o H1 volta ao contraste de dois pesos (metade bold, metade regular). */
@media (min-width: 1024px) {
  h1 { line-height: 1.295; font-weight: 400; } /* 57/44 */
  h2 { line-height: 1.272; }                   /* 42/33 */
  h3 { line-height: 1.5; font-weight: 700; }   /* 33/22 */
}

/* Um degrau entre o H2 e o texto corrido: usado onde a seção já tem um H2 e
   a frase seguinte não pode competir com ele. */
.subtitulo-secao {
  font-size: var(--h3);
  line-height: 1.3;
  font-weight: 600;
}

/* Abre o resumo dos materiais sem chegar ao peso visual de um H2. */
.titulo-resumo {
  font-size: var(--h3);
  line-height: 1.3;
  font-weight: 700;
}

/* ── Utilitários ────────────────────────────────────────────────────────── */

/* Coluna de conteúdo: 1216px úteis, como no Figma.
   O max-width é 1280 porque o padding entra na conta do box. */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Faixa colorida: o fundo sangra na largura inteira da viewport. */
.faixa {
  width: 100%;
  border-radius: var(--raio);
}
.faixa--sem-topo { border-top-left-radius: 0; border-top-right-radius: 0; }
.faixa--sem-base { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Respiro padrão das seções */
.secao { padding-block: 64px; }

.lista-check { display: flex; flex-direction: column; gap: 8px; }
.lista-check > li { position: relative; padding-left: 1.75rem; }
.lista-check > li::before { content: "✅"; position: absolute; left: 0; }

.texto-aux { font-size: var(--aux); }
.centro { text-align: center; }
.branco { color: #fff; }

@media (min-width: 1024px) {
  .container { padding-inline: 32px; }
  .secao { padding-block: 80px; }
}

/* ── Botão de compra ────────────────────────────────────────────────────── */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  height: 89px;
  padding-inline: 24px;
  border-radius: var(--raio-sm);
  background: var(--brand);
  color: #fff;
  font-size: var(--aux);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.cta:hover { background: var(--brand-deep); }
.cta:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 4px; }

/* ── 1. Hero ────────────────────────────────────────────────────────────── */
.hero { padding-block: 40px 56px; }
.hero__grid { display: grid; gap: 40px; align-items: start; }
.hero__texto { display: flex; flex-direction: column; gap: 19px; }
.hero__sobrenome { font-size: var(--aux); color: var(--brand); }
.hero h1 strong { font-weight: 700; }

.hero__figura {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: var(--raio);
  overflow: hidden;
}
.hero__figura img { width: 100%; height: 100%; object-fit: cover; }
.hero__antes-depois {
  position: absolute;
  inset-inline: 27px;
  bottom: 19px;
  display: flex;
  justify-content: space-between;
  font-size: var(--h2);
  color: #fff;
}

@media (min-width: 1024px) {
  .hero { padding-block: 75px 60px; }
  .hero__grid { grid-template-columns: 624px 1fr; gap: 72px; }
  .hero__texto { padding-top: 61px; }
}

/* ── 2. Depoimentos ─────────────────────────────────────────────────────── */
.depoimentos { background: var(--brand); }
.depoimentos h2 { margin: 8px auto 0; max-width: 624px; }
.depoimentos__lista {
  margin: 44px auto 0;
  max-width: 900px;
  display: grid;
  gap: 16px;
}
.depoimentos__prova { margin: 48px auto 0; max-width: 624px; font-weight: 700; }

.card-depoimento {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 24px;
  border-radius: var(--raio);
  background: #fff;
}
.card-depoimento figcaption { display: flex; align-items: center; gap: 12px; }
.card-depoimento img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  object-fit: cover;
}
.card-depoimento b { color: var(--ink); }
.card-depoimento blockquote { color: var(--ink); }

@media (min-width: 640px) { .depoimentos__lista { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .depoimentos__lista { gap: 32px; } }

/* ── 3. Autoestima ──────────────────────────────────────────────────────── */
.autoestima h2 { max-width: 476px; margin-inline: auto; }
.autoestima__intro {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 32px auto 0;
  max-width: 640px;
  font-size: var(--aux);
}

.balao {
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--raio-sm);
  background: #fff;
  color: #000;
  text-align: center;
}

/* Abaixo de 1024px não há largura para a composição: foto e balões empilhados */
.autoestima__empilhado { margin-top: 40px; }
.autoestima__empilhado > img {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: var(--raio-sm);
}
.autoestima__baloes { margin-top: 24px; display: grid; gap: 12px; }
@media (min-width: 640px) { .autoestima__baloes { grid-template-columns: 1fr 1fr; } }

/* Composição do Figma (palco de 1216x765). Tudo em % do palco e o texto em
   `cqw`, então a cena inteira encolhe junto em vez de estourar a viewport. */
.palco { display: none; }
@media (min-width: 1024px) {
  .autoestima__empilhado { display: none; }
  .palco {
    display: block;
    position: relative;
    width: 100%;
    margin: 65px auto 0;
    aspect-ratio: 1216 / 765;
    container-type: inline-size;
  }
}
.palco__foto { position: absolute; top: 0; height: 100%; }
.palco__foto img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--raio-sm); }
.palco .rabisco { position: absolute; }
.palco .rabisco--espelhado { transform: scaleY(-1); }
.palco .balao {
  position: absolute;
  width: 16.201%;
  padding: clamp(10px, 1.3158cqw, 16px);
  border-radius: clamp(6px, 0.8224cqw, 10px);
  font-size: clamp(11px, 1.3158cqw, 16px);
  line-height: 1.5;
}

/* ── 4. Título solto ────────────────────────────────────────────────────── */
.titulo-solto {
  max-width: 476px;
  margin-inline: auto;
  padding-inline: 24px;
  padding-bottom: 64px;
}
@media (min-width: 1024px) { .titulo-solto { padding-bottom: 80px; } }

/* ── 5. Armadilha ───────────────────────────────────────────────────────── */
.armadilha { background: var(--brand-10); }
.armadilha h2 { max-width: 476px; margin-inline: auto; }
.armadilha__chamada { margin: 32px auto 0; max-width: 591px; font-size: var(--aux); }
.armadilha__grid { margin-top: 48px; display: grid; gap: 40px; align-items: center; }
.armadilha__texto { display: flex; flex-direction: column; gap: 16px; }
.armadilha__texto .blocos { display: flex; flex-direction: column; gap: 24px; }
.armadilha__texto .lista-check { line-height: 2; }
.armadilha__foto {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: var(--raio);
  object-fit: cover;
}
@media (min-width: 1024px) {
  .armadilha__grid { grid-template-columns: 591px 1fr; gap: 104px; }
}

/* ── 6. Como funciona ───────────────────────────────────────────────────── */
.como-funciona { background: var(--brand); }
.como-funciona__bloco {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-inline: auto;
  max-width: 860px;
}
.como-funciona__cabecalho { display: flex; flex-direction: column; gap: 14px; }
.passos { display: flex; flex-direction: column; gap: 40px; }
.passo { display: flex; flex-direction: column; gap: 12px; }
.passo__marcador { display: flex; align-items: center; gap: 16px; }
.passo__num {
  width: 44px;
  flex-shrink: 0;
  text-align: center;
  font-size: clamp(2.5rem, 1.6rem + 2.4vw, 4rem);
  line-height: 1;
  font-weight: 700;
  color: #fff;
}
.passo__icone {
  display: flex;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}
.passo__icone img { width: 24px; height: 24px; }
.passo__texto { display: flex; flex-direction: column; gap: 4px; color: #fff; }
.nota-tracejada {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  border-radius: var(--raio-sm);
  font-size: var(--aux);
  color: #fff;
  text-align: center;
}
@media (min-width: 640px) {
  .passo { flex-direction: row; align-items: center; gap: 24px; }
  /* dissolve o wrapper: número e ícone voltam a ser colunas da mesma linha */
  .passo__marcador { display: contents; }
  .passo__num { width: 64px; }
  .passo__icone { width: 56px; height: 56px; }
  .passo__icone img { width: 28px; height: 28px; }
}
@media (min-width: 1024px) { .passos { gap: 48px; } .passo { gap: 28px; } }

/* ── 7. Entregáveis ─────────────────────────────────────────────────────── */
.entregaveis h2 { max-width: 476px; margin-inline: auto; }
.entregaveis__lista { margin-top: 48px; display: flex; flex-direction: column; gap: 56px; }
.entregavel { display: grid; gap: 32px; align-items: center; }
.entregavel__mock { width: 100%; border-radius: var(--raio); object-fit: cover; }
.entregavel__texto { display: flex; flex-direction: column; gap: 16px; }
.selo-icone {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--raio-sm);
  background: var(--brand-10);
}
.selo-icone img { width: 32px; height: 32px; }
.entregavel__texto p { font-size: var(--aux); }
.banner-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 134px;
  margin-block: 56px;
  padding: 16px;
  border-radius: var(--raio);
  background: var(--brand);
  color: #fff;
  font-size: var(--h2);
  line-height: 1.272;
  text-align: center;
}
.banner-brand strong { display: block; font-weight: 700; }
.entregaveis__fecho { margin: 56px auto 0; max-width: 800px; font-size: var(--aux); }
@media (min-width: 1024px) {
  .entregaveis__lista { gap: 56px; }
  .entregavel { grid-template-columns: 1fr 1fr; gap: 72px; }
  .entregavel__mock { height: 423px; }
  .entregavel--invertido .entregavel__mock { order: 2; }
}

/* ── 8. Para você ───────────────────────────────────────────────────────── */
.para-voce { background: var(--brand-10); }
.para-voce__grid { display: grid; gap: 40px; align-items: center; }
.para-voce__texto { display: flex; flex-direction: column; gap: 16px; }
.para-voce__texto .lista-check { line-height: 2; }
/* Sem padding e na proporção real do arquivo: a foto encosta nas bordas. */
.para-voce__figura {
  width: 100%;
  max-width: 515px;
  margin-inline: auto;
  border-radius: var(--raio-sm);
  background: var(--brand-20);
  overflow: hidden;
}
.para-voce__figura img { width: 100%; height: auto; }
@media (min-width: 1024px) {
  .para-voce__grid { grid-template-columns: 591px 1fr; gap: 104px; }
}

/* ── 9. Recapitulação e 11. Reflexão ────────────────────────────────────── */
.texto-central {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-inline: auto;
  max-width: 655px;
  font-size: var(--aux);
  text-align: center;
}
.texto-central .lista-check { text-align: left; display: inline-flex; gap: 4px; }
.texto-central .total { margin-top: 30px; font-weight: 700; }
.texto-central .solto { display: flex; flex-direction: column; gap: 30px; }

/* ── 10 e 13. Oferta ────────────────────────────────────────────────────── */
.oferta { background: var(--lime); padding-inline: 24px; }
.oferta h2 { max-width: 448px; margin-inline: auto; color: var(--lime-ink); }
.oferta__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 592px;
  margin: 48px auto 0;
  padding: 48px 24px;
  border-radius: var(--raio);
  background: #fff;
  text-align: center;
}
.oferta__preco {
  margin-top: 8px;
  font-size: clamp(4rem, 2rem + 8vw, 7.25rem);
  line-height: 1;
  font-weight: 700;
}
.oferta__parcela { margin-top: 24px; }
.oferta__cupom {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--raio-sm);
  background: var(--brand-10);
  font-size: var(--aux);
}
.oferta__cupom strong { font-weight: 700; color: var(--brand-dark); }
.oferta__card .lista-check {
  margin-top: 24px;
  display: inline-flex;
  gap: 4px;
  text-align: left;
  font-size: var(--aux);
}
.oferta__card .cta { margin-top: 40px; }
@media (min-width: 1024px) {
  .oferta { padding-inline: 32px; }
  .oferta__card { padding-inline: 48px; }
}

/* ── 12. Autor ──────────────────────────────────────────────────────────── */
.autor { background: var(--brand); }
.autor__grid { display: grid; gap: 48px; align-items: center; }
.autor__figura { position: relative; display: flex; justify-content: center; }
.autor__cartao { display: none; }
.autor__figura img {
  position: relative;
  width: 100%;
  max-width: 407px;
  border-radius: var(--raio);
  object-fit: cover;
  transform: scaleX(-1); /* o frame espelha a foto na horizontal */
}
.autor__texto { display: flex; flex-direction: column; gap: 22px; color: #fff; }
.autor__texto .blocos { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) {
  .autor__grid { grid-template-columns: 592px 1fr; gap: 104px; }
  .autor__figura { height: 619px; align-items: flex-end; }
  .autor__cartao {
    display: block;
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 552px;
    border-radius: var(--raio);
    background: #fff;
  }
  .autor__figura img { border-radius: 0; }
}

/* ── 14. FAQ ────────────────────────────────────────────────────────────── */
.faq__bloco { width: 100%; max-width: 689px; margin-inline: auto; }
.faq__lista { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.faq__item { border-radius: var(--raio-sm); background: var(--brand-10); }
.faq__botao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 75px;
  padding: 16px 24px;
  text-align: left;
  color: #000;
}
.faq__sinal { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--brand); }
/* a barra vertical some quando o item está aberto, virando um "−" */
.faq__botao[aria-expanded="true"] .faq__sinal .barra-vertical { display: none; }
.faq__resposta { padding: 0 24px 24px; }
.faq__resposta[hidden] { display: none; }

/* ── 15. Rodapé ─────────────────────────────────────────────────────────── */
.rodape__topo {
  background: var(--brand);
  padding-block: 64px;
  color: #fff;
  text-align: center;
}
.rodape__topo .container { display: flex; flex-direction: column; gap: 48px; }
.rodape__aviso { display: flex; flex-direction: column; gap: 24px; margin-inline: auto; max-width: 1008px; }
.rodape__barra {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 16px 24px;
  background: var(--brand-bar);
  color: #fff;
  text-align: center;
}
@media (min-width: 1024px) { .rodape__topo { padding-block: 80px; } }


/* Black Friday — imagens da campanha */
.bf-logo { padding: 28px 24px 0; }
.bf-logo img { width: min(320px, 70vw); height: auto; margin-inline: auto; }
.oferta__card .bf-offer-banner {
  flex: 0 0 auto;
  width: calc(100% + 48px);
  margin: -48px -24px 28px;
  overflow: hidden;
  border-radius: var(--raio) var(--raio) 0 0;
}
.bf-offer-banner img { width: 100%; height: auto; }
@media (min-width: 1024px) {
  .oferta__card .bf-offer-banner { width: calc(100% + 96px); margin-inline: -48px; }
}
