/* ============================================================
   CALDOS LUCRATIVOS — OTIMIZAÇÕES MOBILE FIRST
   Carregado depois de site.css (sobrescreve o necessário)
   ============================================================ */

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; font-size: 16px; }

/* Palette and CTA hierarchy from the conversion brief. */
:root {
  --background: #FFF9F1;
  --cream: #FFF9F1;
  --cocoa: #3B2117;
  --terracotta: #C94A24;
  --gold: #D6A642;
  --herb: #526B45;
  --foreground: #241A16;
  --secondary: #F7EEDF;
  --muted-foreground: #6F625A;
  --border: #E8DCCE;
  --ring: #C94A24;
}

#checkout { scroll-margin-top: 16px; }

.checkout-plans {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .checkout-plans {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

img, video, iframe { max-width: 100%; height: auto; }

/* ---------- MOBILE (até 767px) ---------- */
@media (max-width: 767px) {

  /* Espaçamento da página */
  .mx-auto.w-full.max-w-\[1180px\] { padding-left: 16px; padding-right: 16px; }
  .section-pad { padding-top: 32px; padding-bottom: 32px; }

  /* Tipografia */
  h1, .text-\[2rem\] { font-size: 1.75rem !important; line-height: 1.18 !important; }
  h2 { font-size: 1.4rem !important; line-height: 1.25 !important; }
  .text-\[1\.8rem\], .text-\[1\.65rem\], .text-\[1\.5rem\] { font-size: 1.4rem !important; }
  .text-\[3\.4rem\], .text-\[3\.2rem\] { font-size: 2.6rem !important; }
  h3 { font-size: 1rem !important; }
  p, li { font-size: 0.95rem; line-height: 1.6; }
  .text-\[1\.02rem\] { font-size: 0.98rem !important; }

  /* Botões: 100% da largura, altura mínima de 48px */
  .btn-cta,
  .btn-premium,
  a[href*="pay.lowify.com.br"]:not(.mobile-cta a) {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 48px;
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    text-align: center;
    touch-action: manipulation;
    line-height: 1.25;
  }
  .btn-cta + .btn-cta,
  .btn-premium + .btn-premium { margin-top: 12px; }
  .btn-cta:active, .btn-premium:active { transform: scale(0.975); }

  /* Alvos de toque mínimos */
  a, button, summary { touch-action: manipulation; }
  summary { min-height: 44px; padding-top: 12px; padding-bottom: 12px; }

  /* Cards e grids: 1 coluna */
  .grid:not(.grid-cols-\[minmax\(0\,1fr\)_auto\]) { grid-template-columns: 1fr !important; }
  .surface-card { border-radius: 14px; }
  .surface-card.p-8 { padding: 20px !important; }
  .surface-card.p-6 { padding: 18px !important; }

  /* Planos: Premium primeiro e em destaque, Básico depois e discreto */
  .plan-basic { opacity: 0.95; }

  /* Mini VSL: vídeo/imagem 100% da largura */
  #vsl .max-w-\[380px\] { max-width: 100% !important; }
  #vsl video, #vsl img { width: 100%; border-radius: 16px; }

  /* Evita zoom automático no iOS */
  input, select, textarea { font-size: 16px !important; min-height: 44px; }

  /* Espaço para a barra fixa */
  main { padding-bottom: 88px !important; }
}

/* Telas muito pequenas (<= 360px) */
@media (max-width: 360px) {
  h1, .text-\[2rem\] { font-size: 1.45rem !important; }
  h2 { font-size: 1.2rem !important; }
  .btn-cta, .btn-premium { font-size: 0.85rem !important; padding: 12px 14px !important; min-height: 46px; }
  .text-\[3\.4rem\], .text-\[3\.2rem\] { font-size: 2.1rem !important; }
}

/* ---------- CTA FIXO ---------- */
.mobile-cta {
  transform: translateY(110%);
  transition: transform 0.3s ease;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta a { min-height: 44px; display: inline-flex; align-items: center; }

@media (min-width: 768px) {
  .mobile-cta { display: none !important; }
}

/* Sem efeitos exclusivos de hover em telas de toque */
@media (hover: none) {
  *:hover { transition-duration: 0.15s; }
}

/* Refinamentos CRO preservando a identidade visual */
.receive-item {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in oklab, var(--cream) 15%, transparent);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  background: color-mix(in oklab, var(--cream) 5%, transparent);
  padding: 14px 16px;
  color: var(--cream);
  font-weight: 700;
}
.tag-card { border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 14px; text-align: center; color: var(--cocoa); font-size: .875rem; font-weight: 700; }
.btn-basic { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid var(--terracotta); border-radius: 10px; padding: 12px 20px; color: var(--terracotta); font-weight: 800; }

/* Premium and checkout CTAs use the same orange action language. */
.btn-cta,
.btn-premium {
  background: #C94A24;
  border-bottom: 0;
  border-radius: 0.9rem;
  box-shadow: 0 6px 0 #8f341a;
  color: #FFFFFF;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta:hover,
.btn-premium:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn-cta:active,
.btn-premium:active { box-shadow: 0 2px 0 #8f341a; transform: translateY(2px); }

.btn-basic {
  background: #D6A642;
  border-color: #D6A642;
  color: #3B2117;
  box-shadow: none;
}

#checkout .btn-premium {
  animation: checkout-pulse 2.8s ease-in-out infinite;
}

.comments-section {
  background: #F7EEDF;
}

.comments-section .fb {
  max-width: 42rem;
  border: 1px solid #E8DCCE;
  background: #FFFDF8;
  color: #241A16;
  box-shadow: 0 18px 45px -24px rgba(59, 33, 23, 0.45);
}

.comments-section .fb-head {
  border-bottom-color: #E8DCCE;
  color: #8A7A6A;
}

.comments-section .fb-name {
  color: #8F341A;
}

.comments-section .fb-text {
  color: #3B2117;
}

.comments-section .fb-meta,
.comments-section .fb-foot span:last-child {
  color: #8A7A6A;
}

.comments-section .fb-foot {
  border-top-color: #E8DCCE;
}

.fb-avatar {
  display: block;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 999px;
  object-fit: cover;
}

.fb-item.reply .fb-avatar {
  width: 32px;
  height: 32px;
}

.avatar-pink { background: #B66A62; }
.avatar-brown { background: #76533E; }
.avatar-green { background: #526B45; }
.avatar-blue { background: #55758C; }
.avatar-lilac { background: #8A7190; }
.avatar-orange { background: #C47741; }
.avatar-teal { background: #4E817B; }
.avatar-rose { background: #A86670; }
.avatar-yellow { background: #A58A43; }
.avatar-cocoa { background: #3B2117; }

@keyframes checkout-pulse {
  0%, 100% { box-shadow: 0 6px 0 #8f341a, 0 0 0 0 rgba(201, 74, 36, 0.18); }
  50% { box-shadow: 0 6px 0 #8f341a, 0 0 0 10px rgba(201, 74, 36, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #checkout .btn-premium { animation: none; }
  .btn-cta, .btn-premium { transition: none; }
}
@media (max-width: 767px) {
  .mobile-cta { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .mobile-cta .btn-premium { min-height: 48px; padding: 11px 10px !important; font-size: .78rem !important; margin: 0; }
  .tag-card { min-height: 58px; display: grid; place-items: center; padding: 10px; }
  .faq-item summary { padding-right: 28px; }
}
