body {
  font-family: 'Inter', sans-serif;
  background: #DDE4ED;
}

* {
  -webkit-font-smoothing: antialiased;
}

/* ── Keyframes ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* ── Hero entrance ─────────────────────────────────────── */
.hero-title  { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) both; }
.hero-sub    { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.15s both; }
.hero-cta    { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.30s both; }
.hero-card-l { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.50s both; }
.hero-card-r { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.65s both; }
.hero-phone  { animation: fadeIn 0.9s ease 0.4s both, float 5.5s ease-in-out 1.5s infinite; }

/* ── Scroll reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }
.reveal-d4 { transition-delay: 0.40s; }

/* ── Smooth scroll global ──────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Chat typing dots ──────────────────────────────────── */
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.35; }
  30%           { transform: translateY(-4px); opacity: 1;    }
}
.typing-dot              { animation: typingDot 1.1s ease-in-out infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }

/* ── FAQ accordion ─────────────────────────────────────── */
.faq-item[open] {
  background: #F0EEF9;
}
.faq-item[open] summary {
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 1.25rem;
  margin-bottom: 0;
}
.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
  color: #1B3A6B;
}
.faq-item summary::-webkit-details-marker { display: none; }

.wpp-bg {
  background-color: #ECE5DD;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c8b8a4' fill-opacity='0.18'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Scroll progress bar ───────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #1B3A6B);
  width: 0%;
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

/* ── CTA pulse ring ────────────────────────────────────── */
@keyframes ctaPing {
  0%   { transform: scale(1);    opacity: 0.55; }
  100% { transform: scale(1.55); opacity: 0;    }
}
.cta-pulse { position: relative; overflow: visible !important; }
.cta-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #10B981;
  animation: ctaPing 2.2s ease-out infinite;
  z-index: -1;
}

/* ── Step icon pop ─────────────────────────────────────── */
@keyframes iconPop {
  0%   { opacity: 0; transform: scale(0.3) translateY(18px); }
  65%  { opacity: 1; transform: scale(1.18) translateY(-5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.step-icon { opacity: 0; }
.step-icon.popped { animation: iconPop 0.52s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

/* ── Step connector line ───────────────────────────────── */
@keyframes drawLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.step-line { transform-origin: left; transform: scaleX(0); }
.step-line.drawn { animation: drawLine 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards; }

/* ── Urgente badge pulse ───────────────────────────────── */
@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5); }
  50%       { box-shadow: 0 0 0 7px rgba(249, 115, 22, 0); }
}
.badge-urgent { animation: urgentPulse 2s ease-in-out infinite; }

/* ── Card hover lift ───────────────────────────────────── */
.card-hover {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: transform;
}
.card-hover:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.10) !important;
}

/* ── Sticky CTA mobile ─────────────────────────────────── */
#sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: rgba(10, 22, 33, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
#sticky-cta.visible { transform: translateY(0); }

/* ── Floating WhatsApp button ──────────────────────────── */
#whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  animation: waBounce 3.5s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
#whatsapp-float:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.55);
  animation: none;
}
@keyframes waBounce {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-6px); }
}
/* Esconde no mobile — sticky CTA cumpre essa função */
@media (max-width: 767px) { #whatsapp-float { display: none; } }

/* ── Cookie banner LGPD ────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10000;
  background: rgba(10, 22, 33, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 16px 24px max(16px, env(safe-area-inset-bottom));
}
#cookie-banner.show { transform: translateY(0); }

/* ── Acessibilidade: respeita preferência por menos movimento ─ */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
