/* Ajuste tipográfico global — mantém layout, cores e conteúdo originais */
:root {
  --font-sans: "Poppins", system-ui, sans-serif !important;
  --font-display: "Poppins", system-ui, sans-serif !important;
}

/* Fallback de cores para versões do Safari sem suporte completo a OKLCH. */
@supports not (color: oklch(50% 0.1 40)) {
  :root {
    --background: #130b08;
    --foreground: #fafafa;
    --card: #251a16;
    --card-foreground: #fafafa;
    --border: #4b3830;
    --orange: #fe7802;
    --success: #46c320;
    --destructive: #ff3344;
    --muted-foreground: #b8aaa3;
  }
}

html {
  overflow-x: clip !important;
}

body {
  overflow-x: clip !important;
  font-family: "Poppins", system-ui, sans-serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body * {
  font-family: inherit;
}

body h1,
body h2,
body h3,
body h4,
body .font-bold,
body .font-extrabold {
  font-family: "Poppins", system-ui, sans-serif !important;
}

/* Headline principal — mobile first */
body h1 {
  font-size: 1.875rem !important; /* exatamente 30px no mobile */
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.5px !important;
  text-align: center !important;
  max-width: 760px !important;
  margin-inline: auto !important;
  text-wrap: balance;
}

/* Headline da primeira dobra — estilo editorial premium */
body h1.hero-headline {
  font-size: 40px !important;
  font-weight: 600 !important;
  line-height: 1.12 !important;
  letter-spacing: -1px !important;
  text-transform: none !important;
  color: #FFFFFF !important;
  width: 92% !important;
  max-width: 380px !important;
  text-align: center !important;
  margin-inline: auto !important;
  text-wrap: balance;
}
@media (min-width: 640px) {
  body h1.hero-headline {
    font-size: 62px !important;
    line-height: 1.1 !important;
    max-width: 760px !important;
  }
}

/* Títulos de seção — mobile first */
body h2 {
  font-size: 1.375rem !important; /* exatamente 22px no mobile */
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.25px !important;
  text-align: center !important;
  max-width: 900px !important;
  margin-inline: auto !important;
  text-wrap: balance;
}

/* Títulos de cards e benefícios */
body h3 {
  font-size: 0.875rem !important; /* 14px no mobile */
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

/* Textos comuns */
body p,
body li,
body figcaption,
body button,
body a,
body span,
body div {
  overflow-wrap: normal;
  hyphens: none;
}

body p {
  font-size: 0.875rem !important; /* 14px */
  font-weight: 400;
  line-height: 1.6 !important;
}

/* Subheadline principal — primeiro parágrafo após o h1 */
body section:first-of-type p {
  font-size: 21px !important; /* 20-22px mobile */
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  max-width: 340px !important;
  color: #ffffff !important;
}

/* Palavras destacadas */
body strong,
body b,
body .font-bold,
body .font-semibold,
body .font-medium {
  font-weight: 800 !important;
}

/* CTAs e botões */
body .btn-cta,
body button {
  font-size: 0.9375rem !important; /* 15px */
  font-weight: 700 !important;
  line-height: 1.2 !important;
  min-height: 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: normal !important;
}

body .btn-cta {
  width: min(100%, 28rem) !important;
}

/* Descrições menores em cards */
body .card-surface p {
  font-size: 0.8125rem !important; /* 13px */
  line-height: 1.55 !important;
}

/* Microtextos e selos sem comprometer toque/leitura */
body .text-xs,
body .text-\[11px\] {
  font-size: 0.75rem !important;
  line-height: 1.35 !important;
}

/* Conteúdo sempre contido */
body section,
body article,
body figure,
body img,
body video {
  max-width: 100% !important;
}

body img,
body video {
  height: auto !important;
}

body figure img {
  height: 100% !important;
  object-fit: cover;
}


/* Escala fluida para desktop */
@media (min-width: 640px) {
  body h1 {
    font-size: clamp(2.875rem, 5vw, 3.375rem) !important; /* 46px → 54px */
  }

  body h2 {
    font-size: clamp(1.875rem, 3vw, 2.25rem) !important; /* 30px → 36px */
  }

  body p {
    font-size: 1rem !important;
  }

  body section:first-of-type p {
    font-size: 22px !important;
    max-width: 620px !important;
  }

  body h3 {
    font-size: 1rem !important;
  }

  body .card-surface p {
    font-size: 0.875rem !important;
  }
}

/* Planos básico e completo — valores diretos para compatibilidade com Safari/iPhone */
body .basic-plan-card,
body .complete-plan-card {
  background: linear-gradient(180deg, #251a16 0%, #1b110e 100%) !important;
  background-color: #251a16 !important;
  border: 2px solid #fe7802 !important;
  border-radius: 16px !important;
  box-shadow:
    0 0 0 1px rgba(254, 120, 2, 0.18),
    0 18px 45px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(254, 120, 2, 0.12) !important;
}

body .basic-plan-title,
body .complete-plan-title {
  background: #fafafa !important;
  color: #130b08 !important;
  border-radius: 8px !important;
}

body .basic-plan-price {
  color: #46c320;
}

body .offer-popup-panel {
  max-height: calc(100dvh - 1rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 5vw, 2.5rem) !important;
  box-shadow: 0 24px 70px oklch(0 0 0 / 55%);
}

body .offer-popup-panel [role="heading"] {
  font-size: clamp(1.35rem, 4vw, 2rem) !important;
  line-height: 1.25 !important;
}

body .offer-popup-panel .btn-success {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 639px) {
  body .basic-plan-card,
  body .complete-plan-card {
    width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px !important;
    overflow: visible !important;
  }

  body .basic-plan-title,
  body .complete-plan-title {
    display: block !important;
    width: 100% !important;
    padding: 10px 16px !important;
    text-align: center !important;
  }

  body .offer-popup-panel {
    width: 100%;
    border-radius: 0.75rem !important;
  }
}

/* ===== Bloco de Garantia — layout responsivo (selo à esquerda no desktop) ===== */
body .garantia-wrap {
  flex-direction: column !important;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  body .garantia-wrap {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    text-align: left;
  }
  body .garantia-wrap .garantia-text {
    text-align: left;
  }
  body .garantia-wrap img.garantia-seal {
    width: 11rem !important; /* 176px */
    height: 11rem !important;
    flex-shrink: 0;
  }
}

/* Divisor interno do card completo em tom laranja */
body .complete-plan-card .border-t {
  border-color: rgba(254, 120, 2, 0.35) !important;
}

/* Headline da primeira dobra — espaçamento para a subheadline */
body h1.hero-headline {
  margin-bottom: 20px !important;
}

/* Subheadline da primeira dobra — composição contínua com a headline */
body section:first-of-type p.hero-subheadline {
  margin-top: 0 !important;
  margin-bottom: 60px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  max-width: none !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  color: #D8D2CF !important;
}
@media (min-width: 640px) {
  body h1.hero-headline {
    margin-bottom: 24px !important;
  }
  body section:first-of-type p.hero-subheadline {
    margin-top: 0 !important;
    margin-bottom: 64px !important;
    max-width: 620px !important;
    font-size: 20px !important;
  }
}
