/* ==================================================
   RESET / BASE
================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--hero1), var(--hero2));
  color: var(--text);
  min-height: 100svh; /* 100svh não 100vh - mobile real */
  /* Sem overflow-x: hidden no body - risco de esconder problemas */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px); /* Respiro fluido */
  padding-left: max(clamp(16px, 4vw, 24px), env(safe-area-inset-left)); /* Safe-area */
  padding-right: max(clamp(16px, 4vw, 24px), env(safe-area-inset-right));
}

/* ==================================================
   TOPBAR
================================================== */
.topbar {
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.topbar__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar img { height: 34px; width: auto; display:block; }

.topbar__tag {
  font-size: 14px;
  font-weight: 700;
  color: #0b1320;
  opacity: .7;
}

/* ==================================================
   HERO
================================================== */
.hero {
  min-height: calc(100svh - 64px); /* svh não vh - mobile real */
  display: flex;
  align-items: center;
  padding: clamp(24px, 5vw, 48px) 0; /* Responsivo fluido */

  background:
    radial-gradient(1100px 600px at 20% 10%, rgba(255,255,255,.08), transparent 55%),
    radial-gradient(900px 520px at 80% 40%, rgba(200,164,70,.10), transparent 55%),
    linear-gradient(180deg, var(--hero1), var(--hero2));

  overflow-x: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 40px;
  align-items: center;
  min-width: 0; /* evita estouro */
}

/* ==================================================
   TEXTOS (contraste)
================================================== */
.kicker {
  margin: 0 0 16px;
  font-weight: 700;
  color: rgba(255,255,255,.82);
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

.headline {
  margin: 0 0 18px;
  font-size: clamp(32px, 7vw, 56px); /* Tipografia fluida - diretriz */
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,.22);
}

.gold { color: var(--gold); }

.lead {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.86);
  max-width: 62ch;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

.proof {
  margin: 0 0 18px;
  font-weight: 800;
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

/* ==================================================
   CHECKLIST
================================================== */
.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 34px;
  font-weight: 800;
  color: rgba(255,255,255,.93);
  text-shadow: 0 1px 2px rgba(0,0,0,.16);
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,197,94,.18);
  border: 1px solid rgba(34,197,94,.45);
  color: var(--green);
  font-weight: 900;
}

/* ==================================================
   BOTÕES (CTA)
================================================== */
.ctaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start; /* Desktop: alinhado à esquerda com conteúdo */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  min-width: 240px; /* Largura mínima para CTA forte */
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .06s ease, background .12s ease, filter .12s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: translateY(1px); }

.btn--gold {
  background: var(--gold);
  color: #0b1320;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.btn--gold:hover {
  background: var(--gold2);
  filter: saturate(1.05);
}

/* ==================================================
   DISCLAIMER
================================================== */
.disclaimer {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.72);
  max-width: 70ch;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

/* ==================================================
   RESULTS BOX + SLIDER
================================================== */
.resultsBox{
  --boxSize: clamp(280px, 80vw, 460px); /* Fluido desde o início */

  width: var(--boxSize);
  height: var(--boxSize);
  max-width: 100%; /* Nunca estoura */

  border-radius: clamp(16px, 3vw, 24px);
  overflow: hidden;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);

  position: relative;
}

/* ✅ importante: evita o strip “estourar” a largura e criar scroll */
.resultsStrip{
  display: flex;
  height: 100%;
  width: calc(var(--boxSize) * 16); /* 8 imagens x 2 (duplicadas) = 16 slides */

  animation: resultsScroll 24s linear infinite; /* 8 imagens x 3s = 24s */
  /* Remove will-change - só usar quando necessário (diretriz) */
}

.resultsSlide{
  width: var(--boxSize);
  height: var(--boxSize);
  flex: 0 0 var(--boxSize);
}

.resultsSlide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.resultsBox::before,
.resultsBox::after{
  content:"";
  position:absolute;
  top:0;
  width: 70px;
  height:100%;
  z-index: 2;
  pointer-events:none;
}

.resultsBox::before{
  left:0;
  background: linear-gradient(90deg, rgba(14,26,43,.95), rgba(14,26,43,0));
}

.resultsBox::after{
  right:0;
  background: linear-gradient(270deg, rgba(14,26,43,.95), rgba(14,26,43,0));
}

@keyframes resultsScroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==================================================
   RESPONSIVO
================================================== */
@media (max-width: 980px) {

  /* ✅ empurra o conteúdo pra baixo (não fica “pra cima”) */
  .hero{
    min-height: auto;
    align-items: flex-start;      /* não centraliza verticalmente */
    padding: 42px 0 28px;         /* mais respiro em cima */
  }

  .hero__grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* TOPBAR centralizada */
  .topbar__inner{
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
  }

  .topbar__tag{ text-align:center; }

  /* títulos centralizados */
  .kicker, .headline{ text-align:center; }

  /* ✅ essa parte mantém igual */
  .lead, .proof, .checks, .checks li, .disclaimer{ text-align:left; }

  /* ✅ BOTÃO CENTRALIZADO DE VERDADE */
  .ctaRow{
    width: 100%;
    display: flex;
    justify-content: center; /* Centralização óptica perfeita */
  }

  .btn{
    width: 100%;
    max-width: 520px;
  }

  .resultsBox{
    margin: 0 auto;
    /* Já é fluido com clamp() - não precisa redefinir */
  }
}

@media (max-width: 600px) {
  .btn { 
    height: clamp(52px, 12vw, 56px);
    font-size: clamp(15px, 3.5vw, 16px);
  }
}

/* Remove media 420px - já coberto pelo clamp() do headline */

/* ==================================================
   BOTÃO FLUTUANTE WHATSAPP
================================================== */
.whatsappFloat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  
  /* Safe-area para mobile (diretriz) */
  bottom: max(24px, env(safe-area-inset-bottom));
  right: max(24px, env(safe-area-inset-right));
  
  width: 60px;
  height: 60px;
  border-radius: 50%;
  
  background: var(--green);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  
  -webkit-tap-highlight-color: transparent;
  
  /* Animação pulsante leve (diretriz: não exagerada) */
  animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsappFloat:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(34, 197, 94, 0.5);
}

.whatsappFloat:active {
  transform: scale(0.95);
}

/* Ícone SVG WhatsApp */
.whatsappFloat svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

@keyframes whatsappPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4),
                0 0 0 8px rgba(34, 197, 94, 0.15);
  }
}

/* Responsivo: botão menor no mobile */
@media (max-width: 600px) {
  .whatsappFloat {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
    
    bottom: max(20px, env(safe-area-inset-bottom));
    right: max(20px, env(safe-area-inset-right));
  }
  
  .whatsappFloat svg {
    width: 28px;
    height: 28px;
  }
}

/* ==================================================
   EXIT INTENT MODAL
================================================== */
.exitModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 24px);
  animation: fadeIn 0.3s ease;
}

.exitModal.show { display: flex; }

.exitModal__content {
  background: linear-gradient(135deg, var(--hero1), var(--hero2));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(24px, 6vw, 40px);
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.exitModal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.exitModal__close:hover { color: var(--text); }

.exitModal__icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
}

.exitModal__title {
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 800;
  margin: 0 0 12px 0;
  text-align: center;
  line-height: 1.3;
}

.exitModal__text {
  font-size: clamp(15px, 4vw, 16px);
  color: var(--muted);
  margin: 0 0 24px 0;
  text-align: center;
  line-height: 1.6;
}

.exitModal__cta {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: var(--gold);
  color: #0b1320;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(200, 164, 70, 0.3);
}

.exitModal__cta:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 164, 70, 0.4);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile ajustes */
@media (max-width: 430px) {
  .exitModal__content {
    padding: 24px 20px;
  }
  
  .exitModal__title {
    font-size: 20px;
  }
}
