/* Central das Cartas — Refinamento SaaS + slider custom + microinterações */
:root {
  --azul-ademicon: #0B3D91;
  --azul-escuro: #061E4A;
  --azul-claro: #2563EB;
  --vermelho-ademicon: #E11D2E;
  --vermelho-escuro: #B91C1C;
  --cinza-claro: #F6F8FB;
  --cinza-medio: #E5E9F0;
  --cinza-texto: #475569;
  --verde-wa: #22C55E;
  --verde-wa-dark: #16A34A;
  --gradient-hero: radial-gradient(at 20% 20%, #1E40AF 0%, transparent 50%),
                   radial-gradient(at 80% 0%, #3B82F6 0%, transparent 40%),
                   radial-gradient(at 90% 80%, #1E1B4B 0%, transparent 50%),
                   linear-gradient(135deg, #0B1736 0%, #061E4A 60%, #0B3D91 100%);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #0F172A; letter-spacing: -0.011em; }

/* Tipografia fluida: escala automaticamente com viewport */
h1, h2, h3 { letter-spacing: -0.025em; }

.fs-h1   { font-size: clamp(1.75rem, 1rem + 3.8vw, 3.75rem); line-height: 1.1; }
.fs-h2   { font-size: clamp(1.5rem,  1rem + 2.2vw, 2.5rem);  line-height: 1.15; }
.fs-h3   { font-size: clamp(1.125rem, .9rem + .8vw, 1.4rem); line-height: 1.25; }
.fs-lead { font-size: clamp(.95rem,  .85rem + .6vw, 1.125rem); line-height: 1.6; }
.fs-stat { font-size: clamp(1.25rem, .8rem + 1.6vw, 1.875rem); }
.fs-result-value { font-size: clamp(1.5rem, 1rem + 1.8vw, 1.85rem); }

/* Spacing fluido de seções */
.sec-pad-y { padding-top: clamp(3rem, 5vw, 7rem); padding-bottom: clamp(3rem, 5vw, 7rem); }
.sec-pad-y-sm { padding-top: clamp(2.5rem, 4vw, 5rem); padding-bottom: clamp(2.5rem, 4vw, 5rem); }

/* Hero background mesh */
.hero-bg {
  background: var(--gradient-hero);
  position: relative;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom right, rgba(225,29,46,0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Hero avatar (caricatura apontando) */
.hero-avatar-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-avatar-img {
  position: relative;
  z-index: 1;
  max-height: clamp(200px, 52vw, 720px);
  max-width: 100%;
  width: auto;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.35));
  animation: avatarFloat 6s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, rgba(0,0,0,.55) 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 70%, rgba(0,0,0,.55) 88%, transparent 100%);
}
@media (min-width: 640px) {
  .hero-avatar-img {
    filter: drop-shadow(0 24px 20px rgba(0,0,0,.35));
  }
}
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Selos do hero — centralizados, acima do scroll indicator */
.hero-selos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(.75rem, 3vw, 2rem);
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding: 0 .75rem;
  width: 100%;
  box-sizing: border-box;
}
.hero-selo {
  text-align: center;
  color: white;
  flex: 0 0 auto;
  padding: 0 .25rem;
  overflow: visible;
  min-width: max-content;
}
.hero-selo-num {
  display: inline-block;
  font-size: clamp(.9rem, .5rem + 1.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: #FCD34D;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: visible;
  padding: 0 .25em;
  width: max-content;
}
.hero-selo-lbl {
  font-size: clamp(9px, .5rem + .3vw, 13px);
  color: rgba(219, 234, 254, .85);
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.hero-selo-sep {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, .18);
  flex: 0 0 auto;
}

/* Scroll indicator (seta no bottom do hero) */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: clamp(.75rem, 2vw, 1.5rem);
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}
.scroll-indicator:hover {
  color: #FCD34D;
}
.scroll-indicator-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-indicator-arrow {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-indicator:hover .scroll-indicator-arrow {
  background: rgba(255,255,255,.15);
  border-color: rgba(252,211,77,.4);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}
@media (max-width: 640px) {
  .scroll-indicator-label { display: none; }
}

/* Header glassmorphism */
.header-glass {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

/* Botões com lift */
.btn-primary {
  background: linear-gradient(135deg, var(--verde-wa) 0%, var(--verde-wa-dark) 100%);
  box-shadow: 0 8px 20px -6px rgba(34,197,94,.55), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(34,197,94,.65); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  transition: background .2s, transform .15s;
}
.btn-secondary:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }

.btn-ghost-azul {
  background: var(--azul-ademicon);
  box-shadow: 0 8px 20px -6px rgba(11,61,145,.45), inset 0 1px 0 rgba(255,255,255,.15);
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-ghost-azul:hover { background: var(--azul-escuro); transform: translateY(-1px); }

/* Card simulador (no hero) */
.sim-card {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,1) 100%);
  border-radius: 24px;
  box-shadow:
    0 30px 60px -20px rgba(11,61,145,.45),
    0 18px 36px -18px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.4);
}

/* Toggle Parcela/Crédito */
.sim-toggle { background: var(--cinza-claro); border-radius: 10px; padding: 3px; display: inline-flex; gap: 3px; width: 100%; }
.sim-toggle-btn {
  flex: 1; padding: .45rem .5rem; border-radius: 7px; font-weight: 600;
  color: var(--cinza-texto); transition: all .2s ease; cursor: pointer; border: none; background: transparent;
  font-size: clamp(.7rem, 2.4vw, .9rem);
  line-height: 1.2;
}
@media (min-width: 640px) {
  .sim-toggle { padding: 4px; gap: 4px; border-radius: 12px; }
  .sim-toggle-btn { padding: .65rem 1rem; border-radius: 8px; }
}
.sim-toggle-btn[data-active="true"] {
  background: var(--vermelho-ademicon);
  color: white;
  box-shadow: 0 4px 12px -2px rgba(225,29,46,.5);
}

/* Range slider custom (bolinha + trilha) */
.slider-wrap {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
  margin-top: .5rem;
}
.range-track {
  position: absolute;
  left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  height: 8px;
  background: var(--cinza-medio);
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
}
.range-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--vermelho-ademicon) 0%, #F97316 100%);
  border-radius: 999px;
  box-shadow: 0 2px 8px -2px rgba(225,29,46,.6);
}
.range-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 32px;
  background: transparent;
  outline: none;
  position: relative;
  z-index: 2;
  margin: 0; padding: 0;
  cursor: pointer;
}
.range-slider::-webkit-slider-runnable-track { background: transparent; height: 8px; border: none; }
.range-slider::-moz-range-track { background: transparent; height: 8px; border: none; }
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--vermelho-ademicon);
  box-shadow: 0 4px 12px -2px rgba(225,29,46,.55);
  cursor: grab;
  transition: transform .15s ease, box-shadow .2s ease;
  margin-top: -7px; /* (22 - 8) / 2 = 7px, centraliza na trilha */
}
@media (min-width: 640px) {
  .range-slider::-webkit-slider-thumb {
    width: 26px; height: 26px;
    border-width: 4px;
    margin-top: -9px;
  }
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.12); box-shadow: 0 4px 12px -2px rgba(225,29,46,.6), 0 0 0 8px rgba(225,29,46,.12); }
.range-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.08); }
.range-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--vermelho-ademicon);
  box-shadow: 0 4px 12px -2px rgba(225,29,46,.55);
  cursor: grab;
  transition: transform .15s ease;
}
.range-slider::-moz-range-thumb:hover { transform: scale(1.12); }

/* Select estilizado */
.sim-select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230B3D91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.75rem;
}

/* Cards de tipos de carta refinados */
.card-tipo {
  background: white;
  border: 1px solid var(--cinza-medio);
  border-radius: 18px;
  padding: 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.card-tipo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,61,145,.04), transparent 50%);
  opacity: 0;
  transition: opacity .25s ease;
}
.card-tipo:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(11,61,145,.18), 0 12px 24px -12px rgba(0,0,0,.08);
  border-color: rgba(11,61,145,.18);
}
.card-tipo:hover::before { opacity: 1; }

.icon-bubble {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11,61,145,.08) 0%, rgba(37,99,235,.08) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--azul-ademicon);
  transition: all .25s ease;
}
.card-tipo:hover .icon-bubble {
  background: linear-gradient(135deg, var(--azul-ademicon) 0%, var(--azul-claro) 100%);
  color: white;
  transform: scale(1.05);
}

/* Selo / pílula */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  color: white;
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34,197,94,.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* Consultor section */
.consultor-bg {
  background:
    radial-gradient(ellipse at left, rgba(11,61,145,.05) 0%, transparent 60%),
    linear-gradient(180deg, white 0%, var(--cinza-claro) 100%);
}
.consultor-img-wrap {
  position: relative;
}
.consultor-img-wrap::before {
  content: '';
  position: absolute;
  inset: -10% -5% -5% -5%;
  background: radial-gradient(ellipse at center, rgba(11,61,145,.18) 0%, transparent 60%);
  z-index: 0;
  filter: blur(40px);
}
.consultor-img { position: relative; z-index: 1; filter: drop-shadow(0 30px 30px rgba(11,61,145,.25)); }

/* Floating badge */
.float-badge {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: .85rem 1.1rem;
  box-shadow: 0 18px 36px -12px rgba(11,61,145,.25), 0 8px 16px -8px rgba(0,0,0,.08);
  display: flex; align-items: center; gap: .65rem;
  z-index: 2;
}

/* WhatsApp button flutuante */
.btn-whatsapp-flutuante {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  box-shadow: 0 12px 28px -6px rgba(34, 211, 102, .55), 0 0 0 0 rgba(34,197,94,.3);
  animation: floatPulse 3s ease-in-out infinite;
}
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 12px 28px -6px rgba(34, 211, 102, .55), 0 0 0 0 rgba(34,197,94,.4); }
  50% { box-shadow: 0 12px 28px -6px rgba(34, 211, 102, .55), 0 0 0 16px rgba(34,197,94,0); }
}

/* FAQ accordion */
.faq-item {
  background: white;
  border: 1px solid var(--cinza-medio);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[data-open="true"] { border-color: rgba(11,61,145,.25); box-shadow: 0 12px 28px -16px rgba(11,61,145,.15); }
.faq-item[data-open="true"] .faq-icon { transform: rotate(180deg); }
.faq-item[data-open="true"] .faq-answer { max-height: 500px; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-icon { transition: transform .25s ease; }

/* Cookie banner */
.cookie-banner { transform: translateY(120%); transition: transform .4s ease; }
.cookie-banner[data-visible="true"] { transform: translateY(0); }

/* Selos numéricos do hero */
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-size: 1.875rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

/* Depoimentos refinados */
.depoimento-card {
  background: white;
  border: 1px solid var(--cinza-medio);
  border-radius: 18px;
  padding: 1.75rem;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.depoimento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -16px rgba(11,61,145,.12);
}
.depoimento-card::before {
  content: '"';
  position: absolute;
  top: 0.5rem; right: 1.5rem;
  font-size: 5rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(11,61,145,.08);
}

/* Reveal on scroll (sutil) */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
