/* ╔══════════════════════════════════════╗
   ║  VALLENN CORRETORA — style.css       ║
   ╚══════════════════════════════════════╝ */

/* ═══════════════════════════════════════════════════════════
   TOKENS — Gene Digital (primário) + RitusFlow (secundário)
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Gene Digital — dark navy */
  --bg-primary:   #080c18;
  --bg-secondary: #0d1128;
  --bg-card:      #111827;
  --bg-card-alt:  #151d30;
  --surface:      #1e2840;
  --surface-2:    #243050;
  --border:       rgba(255,255,255,0.08);
  --border-accent:rgba(255,255,255,0.14);

  /* Azul elétrico — Gene primário */
  --blue:         #2563eb;
  --blue-bright:  #3b82f6;
  --blue-light:   #60a5fa;
  --blue-bg:      rgba(37,99,235,0.12);
  --blue-bg-mid:  rgba(37,99,235,0.20);
  --blue-border:  rgba(37,99,235,0.35);
  --blue-glow:    0 0 32px rgba(37,99,235,0.4), 0 4px 20px rgba(37,99,235,0.25);

  /* Verde sucesso — Ritus */
  --green:        #22c55e;
  --green-dim:    rgba(34,197,94,0.12);
  --green-border: rgba(34,197,94,0.28);
  --green-glow:   0 0 20px rgba(34,197,94,0.3);

  /* Vermelho urgência — Ritus */
  --red:          #ef4444;
  --red-dim:      rgba(239,68,68,0.10);
  --red-border:   rgba(239,68,68,0.25);

  /* Âmbar — Ritus */
  --amber:        #f59e0b;

  /* Texto */
  --text-primary:   #ffffff;
  --text-secondary: #94a3b8;
  --text-muted:     #4b5563;
  --text-dim:       #2d3748;

  /* Tipografia */
  --font-display: 'Montserrat', 'Arial Black', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  /* Radius — Gene */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-full: 9999px;

  /* Shadows — difusas, sem glow escuro */
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-xl:   0 16px 48px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);

  /* ═══════════════════════════════════════
     SEGURADORAS — Config de tamanho
     Ajuste estas variáveis para controlar
     o tamanho das logos nas pills
     ═══════════════════════════════════════ */
  --insurer-img-height-desktop: 36px;   /* ← Altura das logos no desktop */
  --insurer-img-width-desktop:  auto;   /* ← Largura: auto mantém proporção */
  --insurer-img-height-mobile:  28px;   /* ← Altura das logos no mobile */
  --insurer-img-width-mobile:   auto;   /* ← Largura: auto mantém proporção */
  --insurer-pill-padding-desktop: 14px 28px; /* ← Padding da pill no desktop */
  --insurer-pill-padding-mobile:  10px 20px; /* ← Padding da pill no mobile */
  --insurer-pill-gap: 16px;             /* ← Espaço entre pills */
}

/* ═══════════════════════════════════════
   RESET + BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; }
.section-alt { background: var(--bg-secondary); }
.section-darker { background: var(--bg-card); }

/* ═══════════════════════════════════════
   EYEBROW / LABELS
   ═══════════════════════════════════════ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-light);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title .accent { color: var(--blue-light); }
.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
}

/* ═══════════════════════════════════════
   NAVBAR — Gene: flutuante arredondada
   ═══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1140px;
  z-index: 200;
  background: rgba(13,17,40,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-2xl);
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  box-shadow: var(--blue-glow);
  flex-shrink: 0;
}
.nav-brand-text { font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.nav-brand-sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); display: block; margin-top: 1px; }

.nav-links { display: flex; gap: 2px; }
.nav-link {
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--r-lg);
  transition: color 0.15s, background 0.15s;
  font-family: var(--font-display);
}
.nav-link:hover { color: var(--text-primary); background: var(--surface); }

.btn-nav {
  padding: 9px 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--blue-glow);
  white-space: nowrap;
}
.btn-nav:hover { transform: scale(1.04); background: var(--blue-bright); }

/* ═══════════════════════════════════════
   ANIMAÇÕES
   ═══════════════════════════════════════ */
@keyframes fade-up {
  from { opacity:0; transform:translateY(22px); filter:blur(4px); }
  to   { opacity:1; transform:translateY(0);    filter:blur(0);   }
}
.anim-in { animation: fade-up 0.65s cubic-bezier(0.23,1,0.32,1) forwards; }
.anim-in-1 { animation-delay: 0.1s; opacity:0; }
.anim-in-2 { animation-delay: 0.25s; opacity:0; }
.anim-in-3 { animation-delay: 0.42s; opacity:0; }
.anim-in-4 { animation-delay: 0.58s; opacity:0; }
.anim-in-5 { animation-delay: 0.72s; opacity:0; }

.fade-in {
  opacity:0;
  transform:translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.23,1,0.32,1), transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.fade-in.visible { opacity:1; transform:translateY(0); }
.fade-in:nth-child(1){transition-delay:0s}
.fade-in:nth-child(2){transition-delay:.08s}
.fade-in:nth-child(3){transition-delay:.16s}
.fade-in:nth-child(4){transition-delay:.24s}
.fade-in:nth-child(5){transition-delay:.32s}
.fade-in:nth-child(6){transition-delay:.40s}

/* ═══════════════════════════════════════
   1. HERO — Split 2 colunas
   ═══════════════════════════════════════ */
.hero {
  padding: 130px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content:'';
  position:absolute;
  bottom:-5%;
  left:50%;
  transform:translateX(-50%);
  width:1100px; height:600px;
  background: radial-gradient(ellipse at center,
    rgba(37,99,235,0.18) 0%,
    rgba(37,99,235,0.06) 45%,
    transparent 70%);
  pointer-events:none;
}
/* Grid subtle */
.hero::after {
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,0.025) 1px,transparent 1px);
  background-size: 56px 56px;
  pointer-events:none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%,transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%,transparent 80%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* — Coluna esquerda — */
.hero-content {}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-full);
  margin-bottom: 28px;
}
.hero-badge-icon {
  width: 22px; height: 22px;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.hero-badge-text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero-title .blue { color: var(--blue-light); }

.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

/* Benefícios rápidos */
.hero-benefits { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.benefit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.benefit-icon {
  width: 20px; height: 20px;
  border-radius: var(--r-sm);
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  color: var(--green);
  flex-shrink: 0;
}

/* Prova social hero */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-top: 24px;
}
.proof-avatars { display: flex; }
.proof-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  overflow: hidden;
  margin-right: -8px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--blue-light);
  font-family: var(--font-mono);
}
.proof-av:last-child { margin-right: 0; }
.proof-text { font-size: 13px; color: var(--text-secondary); margin-left: 4px; }
.proof-text strong { color: var(--text-primary); }

/* — Coluna direita: FORMULÁRIO — */
.hero-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-2xl);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.hero-form-wrap::before {
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}

.form-header { margin-bottom: 24px; }
.form-header-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.form-header-sub { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Form campos — estilo Gene */
.f-group { margin-bottom: 14px; }
.f-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.f-label .req { color: var(--red); }
.f-input, .f-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: var(--r-lg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.f-input:focus, .f-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-bg);
  background: var(--bg-card-alt);
}
.f-input::placeholder { color: var(--text-muted); }
.f-select { cursor: pointer; }
.f-select option { background: var(--bg-card); }

.f-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Botão submit */
.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.23,1,0.32,1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 28px rgba(34,197,94,0.35), 0 4px 14px rgba(34,197,94,0.2);
  margin-top: 4px;
}
.submit-btn:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 0 40px rgba(34,197,94,0.5), 0 8px 24px rgba(34,197,94,0.3);
}
.whatsapp-icon { width: 20px; height: 20px; flex-shrink: 0; }

.form-microcopy {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.6;
}
.form-microcopy .lock { color: var(--green); margin-right: 4px; }

/* Status form */
.form-status {
  display: none;
  text-align: center;
  padding: 14px;
  border-radius: var(--r-lg);
  margin-top: 14px;
  font-weight: 600;
  font-size: 13px;
}
.form-loading { background: var(--blue-bg); color: var(--blue-light); border: 1px solid var(--blue-border); }
.success-message { background: var(--green-dim); color: #4ade80; border: 1px solid var(--green-border); }

.spinner {
  border: 2.5px solid rgba(96,165,250,0.15);
  border-top-color: var(--blue-light);
  border-radius: 50%;
  width: 18px; height: 18px;
  animation: spin 0.9s linear infinite;
  display: inline-block; vertical-align: middle; margin-right: 8px;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ═══════════════════════════════════════
   TICKER
   ═══════════════════════════════════════ */
.ticker-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden;
  padding: 13px 0;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker-scroll 32s linear infinite;
  width: max-content;
}
@keyframes ticker-scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 5px rgba(37,99,235,0.6); flex-shrink: 0; }

/* ═══════════════════════════════════════
   MAPA INTERATIVO (D3.js)
   ═══════════════════════════════════════ */
.map-container {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
  background: transparent;
}
.brazil-map {
  width: 100%;
  max-width: 480px;
  height: auto;
  cursor: pointer;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.10));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px;
}
.brazil-map:hover {
  transform: scale(1.02);
}
.state {
  fill: var(--surface);
  stroke: var(--border-accent);
  stroke-width: 0.5;
  transition: all 0.3s ease;
  cursor: pointer;
}
.state:hover {
  fill: var(--blue-bg-mid);
  stroke: var(--blue-border);
  stroke-width: 1.5;
}
.state.active {
  fill: #fee2e2;
  stroke: #ef4444;
  stroke-width: 0.5;
  animation: blinkActive 1.5s ease-in-out infinite;
}
.state-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  fill: var(--text-secondary);
  text-anchor: middle;
  pointer-events: none;
  opacity: 0.9;
}
.state.active + .state-label {
  fill: #991b1b;
}
.map-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@keyframes blinkActive {
  0%, 100% { fill: #fee2e2; stroke: #ef4444; }
  50% { fill: rgba(254, 226, 226, 0.6); stroke: rgba(239, 68, 68, 0.6); }
}

/* ═══════════════════════════════════════
   2. IDENTIFICAÇÃO (Problema)
   ═══════════════════════════════════════ */
.ident-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ident-values { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.ident-value-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s, transform 0.2s;
}
.ident-value-item:hover { border-color: var(--blue-border); transform: translateX(4px); }
.ident-value-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ident-cta-box {
  margin-top: 28px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--red-border);
  border-left: 3px solid var(--red);
  border-radius: var(--r-lg);
}
.ident-cta-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.ident-cta-text { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ═══════════════════════════════════════
   3. AUTORIDADE
   ═══════════════════════════════════════ */
.authority-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ═══════════════════════════════════════
   4. ESTATÍSTICAS
   ═══════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content:'';
  position:absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity:0; transition:opacity 0.22s;
}
.stat-card:hover { border-color: var(--blue-border); transform:translateY(-4px); box-shadow: var(--shadow-card); }
.stat-card:hover::before { opacity:1; }
.stat-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--blue-light);
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   5. SEGURADORAS PARCEIRAS — Slider com imagens
   ═══════════════════════════════════════════════════════════
   
   CONFIGURAÇÃO DE TAMANHO:
   Para ajustar o tamanho das logos, edite as variáveis CSS
   no bloco :root no topo deste arquivo:
   
   Desktop:
   --insurer-img-height-desktop  (padrão: 36px)
   --insurer-img-width-desktop   (padrão: auto)
   --insurer-pill-padding-desktop (padrão: 14px 28px)
   
   Mobile:
   --insurer-img-height-mobile   (padrão: 28px)
   --insurer-img-width-mobile    (padrão: auto)
   --insurer-pill-padding-mobile (padrão: 10px 20px)
   ═══════════════════════════════════════════════════════════ */
.insurers { overflow: hidden; padding: 80px 0; }

.insurers-track {
  display: flex;
  gap: 0;
  animation: ticker-scroll 28s linear infinite;
  width: max-content;
  margin-top: 40px;
  align-items: center;
}

/* Pausa a animação ao hover */
.insurers-track:hover {
  animation-play-state: paused;
}

.insurer-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--insurer-pill-padding-desktop);
  margin: 0 var(--insurer-pill-gap);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-xl);
  white-space: nowrap;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
  cursor: default;
  flex-shrink: 0;
}

.insurer-pill:hover {
  border-color: var(--blue-border);
  background: var(--bg-card-alt);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.15), var(--shadow-card);
}

/* Logo das seguradoras */
.insurer-pill img {
  height: var(--insurer-img-height-desktop);
  width: var(--insurer-img-width-desktop);
  max-width: 120px;
  object-fit: contain;
  object-position: center;
  display: block;
  /* Deixa logos coloridas com leve brilho no hover da pill */
  filter: brightness(0.85) saturate(0.9);
  transition: filter 0.25s;
  /* Fundo branco para logos com fundo transparente */
  border-radius: var(--r-sm);
}

.insurer-pill:hover img {
  filter: brightness(1) saturate(1.1);
}

/* ═══════════════════════════════════════
   6. BENEFÍCIOS
   ═══════════════════════════════════════ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  gap: 18px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover {
  border-color: var(--blue-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.benefit-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-lg);
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.benefit-card:hover .benefit-card-icon { background: var(--blue-bg-mid); }
.benefit-card-title { font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.benefit-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ═══════════════════════════════════════
   7. PROCESSO — 3 passos
   ═══════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
.process-grid::before {
  content:'';
  position:absolute;
  top: 28px; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  pointer-events:none;
}
.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: border-color 0.22s, transform 0.22s;
}
.process-card:hover { border-color: var(--blue-border); transform: translateY(-4px); }
.process-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: var(--blue-glow);
}
.process-title { font-family: var(--font-display); font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.process-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ═══════════════════════════════════════
   8. DEPOIMENTOS
   ═══════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.testimonial-card:hover { border-color: var(--blue-border); transform: translateY(-3px); }
.testimonial-stars { color: var(--amber); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text { font-size: 14px; color: var(--text-secondary); line-height: 1.75; font-style: italic; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue-bg);
  border: 2px solid var(--blue-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-light);
  flex-shrink: 0;
}
.testimonial-name { font-size: 13px; font-weight: 700; }
.testimonial-role { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.08em; }

/* ═══════════════════════════════════════
   9. CTA FINAL
   ═══════════════════════════════════════ */
.cta-final {
  background: var(--bg-secondary);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content:'';
  position:absolute; inset:0;
  background: radial-gradient(ellipse 65% 70% at 50% 50%, rgba(37,99,235,0.12) 0%, transparent 65%);
  pointer-events:none;
}
.cta-final-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 680px;
  margin: 0 auto 16px;
  position: relative; z-index:1;
}
.cta-final-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 40px;
  position: relative; z-index:1;
}
.btn-cta-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 44px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.23,1,0.32,1);
  text-decoration: none;
  box-shadow: 0 0 40px rgba(34,197,94,0.35), 0 8px 24px rgba(34,197,94,0.2);
  position: relative; z-index:1;
}
.btn-cta-large:hover { transform: scale(1.04) translateY(-2px); box-shadow: 0 0 60px rgba(34,197,94,0.5), 0 12px 32px rgba(34,197,94,0.3); }

/* ═══════════════════════════════════════
   RODAPÉ
   ═══════════════════════════════════════ */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-logo {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 16px; font-weight: 900; color: #fff;
  box-shadow: var(--blue-glow); margin-bottom: 14px;
}
.footer-brand-name { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.footer-brand-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; max-width: 300px; margin-bottom: 20px; }
.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.footer-contact-icon { color: var(--blue-light); font-size: 14px; }
.footer-col-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-col-link { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; transition: color 0.15s; }
.footer-col-link:hover { color: var(--text-primary); }
.footer-socials { display: flex; gap: 8px; }
.footer-social-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  text-decoration: none;
}
.footer-social-btn:hover { background: var(--blue-bg); border-color: var(--blue-border); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.06em; }

/* ═══════════════════════════════════════
   SCROLL TO TOP
   ═══════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--blue);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s;
  z-index: 150;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--blue-glow);
}
.scroll-top.show { opacity:1; transform:translateY(0); }
.scroll-top:hover { background: var(--blue-bright); transform: translateY(-3px); }

/* ═══════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════ */
.divider { height:1px; background:linear-gradient(90deg,transparent,var(--border-accent),transparent); }

/* ═══════════════════════════════════════
   RESPONSIVO — Mobile-first
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 130px 0 80px; }
  .hero-title { font-size: clamp(28px,5vw,44px); }
  .ident-grid { grid-template-columns: 1fr; gap: 40px; }
  .authority-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .navbar { width: calc(100% - 24px); padding: 11px 16px; }
  section { padding: 72px 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-form-wrap { padding: 28px 20px; }
  .f-row-2 { grid-template-columns: 1fr; }

  /* ── Seguradoras — Mobile ── */
  .insurer-pill {
    padding: var(--insurer-pill-padding-mobile);
  }
  .insurer-pill img {
    height: var(--insurer-img-height-mobile);
    width: var(--insurer-img-width-mobile);
    max-width: 90px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 30px; }
  .hero-trust .hero-trust-item { display: none; }
  .scroll-top { bottom: 16px; right: 16px; }
}

/* ═══════════════════════════════════════
   CAMPOS DINÂMICOS — preservados do form original
   ═══════════════════════════════════════ */
.dynamic-fields {
  display: none;
  background: var(--bg-card-alt);
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-accent);
  margin-bottom: 14px;
  animation: fade-up 0.35s ease-out;
}
.dynamic-fields.show { display: block; }
.dynamic-fields .f-group:last-child { margin-bottom: 0; }

/* Página de loading */
#page-loading {
  position:fixed; inset:0;
  background: var(--bg-primary);
  display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:16px;
  z-index:9999;
}
.spinner-page {
  border: 3px solid rgba(37,99,235,0.15);
  border-top-color: var(--blue);
  border-radius:50%;
  width:44px; height:44px;
  animation: spin 0.9s linear infinite;
}
#page-loading p {
  font-family: var(--font-mono);
  font-size:12px; letter-spacing:0.12em; text-transform:uppercase;
  color: var(--text-muted);
}
