/* ===========================================================================
   BASE — reset, tokens da marca, utilitários e animações.
   Carregado por TODAS as páginas (index, /v2 e /obrigado-seguros).
   =========================================================================== */

/* ===========================
   RESET & BASE
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-primary: #2563eb;
  --blue-light: #3b82f6;
  --blue-bright: #60a5fa;
  --blue-glow: #1d4ed8;
  --blue-dark: #1e3a8a;
  --dark-bg: #060b18;
  --dark-card: #0d1526;
  --dark-border: #1e293b;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --green: #22c55e;
  --green-dark: #16a34a;
  --gradient-blue: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);

  /* === Design system / brand guidelines (paleta mantida) === */
  /* Ritmo vertical único para todas as seções */
  --section-pad-y: 96px;
  --section-pad-y-mobile: 64px;
  /* Texto sobre fundo claro */
  --text-on-light: #475569;
  --heading-on-light: #0f172a;
  /* Destaque <em> — variante por fundo (mesma família de azul) */
  --grad-em-dark: linear-gradient(90deg, #3b82f6 0%, #60a5fa 60%, #93c5fd 100%);
  --grad-em-light: linear-gradient(90deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
}

/* ===========================
   BRAND TYPOGRAPHY HELPERS
   Hierarquia consistente entre seções (mantém a paleta).
=========================== */
/* Rótulo "eyebrow" acima dos títulos de seção */
.section-eyebrow {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Título de seção (H2) — tamanho/peso/entrelinha únicos */
.section-title {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-title em {
  font-style: normal;
  font-weight: 500;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--dark-bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ===========================
   UTILITIES
=========================== */
.container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* Botão verde (CTA principal da marca) */
.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  text-decoration: none;
}

.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.btn-green i,
.btn-green svg {
  width: 18px;
  height: 18px;
}

/* Label acessível, oculto visualmente (também ajuda o mapeamento de formulários externos) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Noise overlay sutil sobre seções escuras */
.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* Acessibilidade & Mobile Performance: desativa atrasos de animação no mobile para acelerar o FCP/LCP */
@media (max-width: 768px) {
  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
