/*
Theme Name: Topachei Landing
Theme URI: https://topachei.com
Author: Topachei
Description: Tema de página única para o guia "Mãe de Criança Autista", com correção de corte de título no mobile.
Version: 1.1
Text Domain: topachei-landing
*/

/* ======= RESET BÁSICO ======= */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1e2a32;
  background: #eef5f4;
  overflow-x: hidden; /* trava qualquer estouro horizontal residual */
}

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

a {
  text-decoration: none;
}

/* ======= CONTAINER RESPONSIVO =======
   Nunca usar largura fixa em px maior que a tela.
   Tudo dentro de 100% + max-width. */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ======= HERO ======= */
.hero {
  padding: 40px 0 30px;
  background: linear-gradient(180deg, #eef5f4 0%, #e3f0ee 100%);
}

.badge {
  display: inline-block;
  border: 1px solid #cfe0dd;
  background: #fff;
  color: #2f4a45;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* AQUI ESTAVA O BUG:
   título tratado como texto único sem permissão de quebra de linha.
   A correção: white-space normal + overflow-wrap + tamanho de fonte fluido (clamp). */
.hero-title {
  margin: 0 0 18px;
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;         /* nunca "nowrap" em títulos */
  overflow-wrap: break-word;   /* quebra palavras se precisar */
  word-break: break-word;
  font-size: clamp(28px, 7vw, 44px); /* escala com a tela, não estoura */
}

.hero-title .line-1 {
  display: block;
  color: #16323d;
}

.hero-title .line-2 {
  display: block;
  color: #1fb6a3;
}

.hero-desc {
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.6;
  color: #33474e;
  max-width: 620px;
  margin: 0 0 24px;
}

.checklist {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #22343b;
}

.checklist li::before {
  content: "\2713";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e3f7f3;
  color: #1fb6a3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.hero-image {
  margin-top: 30px;
  text-align: center;
}

.hero-image img {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 8px;
}

/* ======= CTA FIXO (mobile) ======= */
.sticky-cta {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e6e6e6;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 50;
}

.sticky-cta .price {
  font-weight: 800;
  font-size: 20px;
  color: #ef5a45;
}

.sticky-cta .price small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: #7a7a7a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef5a45;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  white-space: nowrap; /* ok em botões pequenos e curtos, não em títulos longos */
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ======= SEÇÕES GERAIS ======= */
section {
  padding: 48px 0;
}

h2 {
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.25;
  margin: 0 0 12px;
  color: #16323d;
  overflow-wrap: break-word;
}

.section-sub {
  color: #4c5c62;
  font-size: 16px;
  margin-bottom: 28px;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Cards de identificação */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .bonus-grid { grid-template-columns: repeat(3, 1fr); }
  .learn-grid { grid-template-columns: 1fr 1fr; }
}

.pain-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pain-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #1fb6a3;
  margin-top: 8px;
}

/* Bônus */
.bonus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.bonus-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.bonus-card img {
  max-width: 160px;
  margin: 0 auto 14px;
}

.bonus-card .valor {
  color: #7a7a7a;
  font-size: 14px;
  margin: 6px 0 10px;
}

/* O que você aprende */
.learn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.learn-card h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: #16323d;
}

.learn-card p {
  margin: 0;
  font-size: 14px;
  color: #4c5c62;
}

/* Depoimentos */
.testimonial {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.testimonial .stars {
  color: #f5b400;
  margin-bottom: 8px;
}

.testimonial .autor {
  font-weight: 700;
  margin-top: 10px;
  color: #16323d;
}

/* Preço final */
.price-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}

.price-old {
  text-decoration: line-through;
  color: #9aa5a9;
  font-size: 18px;
}

.price-new {
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 800;
  color: #ef5a45;
  margin: 6px 0;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid #e2e8e6;
  padding: 16px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #16323d;
  font-size: 16px;
}

.faq-item p {
  margin: 10px 0 0;
  color: #4c5c62;
  font-size: 15px;
  line-height: 1.6;
}

footer {
  padding: 30px 0 90px; /* respiro extra por causa do CTA fixo */
  text-align: center;
  color: #7a7a7a;
  font-size: 13px;
}
