/* ==========================================================================
   RL RECUPERAÇÃO DE CRÉDITO - DESIGN SYSTEM & ESTILOS PRINCIPAIS
   Inspirado no padrão estético refinado de fintechs líderes (Acerto, Nubank)
   ========================================================================== */

:root {
  /* Paleta Corporativa & Fintech */
  --primary-950: #060e1a;
  --primary-900: #0a192f;
  --primary-800: #0f274a;
  --primary-700: #163664;
  --primary-600: #1e4985;
  --primary-500: #2563eb;
  --primary-400: #3b82f6;

  /* Cores de Ação, Conversão e Sucesso (Verde Acordo / Dinheiro Salvo) */
  --accent-green: #00d084;
  --accent-green-hover: #00b875;
  --accent-green-light: #e6fbf3;
  --accent-green-border: rgba(0, 208, 132, 0.35);

  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --danger: #ef4444;

  /* Tons Neutros de Superfície e Texto */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Efeitos e Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(10, 25, 47, 0.1), 0 8px 10px -6px rgba(10, 25, 47, 0.05);
  --shadow-green: 0 10px 25px -5px rgba(0, 208, 132, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  --font-family-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset Global & Acessibilidade */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-header {
  max-width: 720px;
  margin: 0 auto 56px auto;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-green-light);
  color: #047857;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid var(--accent-green-border);
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--primary-900);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.875rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
}

/* ==========================================================================
   NAVBAR ELEGANTE (STICKY GLASS)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-family-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-900);
  letter-spacing: -0.02em;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  border-radius: var(--radius-md);
  color: var(--accent-green);
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.15);
  position: relative;
  overflow: hidden;
}

.logo-badge::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--accent-green);
  opacity: 0.2;
  border-radius: 0 0 0 100%;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-green-hover);
  margin-top: -2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--primary-600);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-green);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botões do Sistema */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-green);
  color: var(--primary-950);
  box-shadow: 0 4px 14px rgba(0, 208, 132, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 208, 132, 0.45);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--primary-900);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--primary-600);
  color: var(--primary-600);
}

.btn-dark {
  background-color: var(--primary-900);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: var(--primary-800);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Menu Mobile */
.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--primary-900);
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle-btn {
    display: block;
  }
}

/* Drawer Mobile */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  z-index: 999;
}

.mobile-nav-drawer.active {
  display: block;
}

.mobile-nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

/* ==========================================================================
   HERO SECTION - IMPACTO VISUAL ESTILO ACERTO
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(175deg, #091a33 0%, #0a192f 40%, #061120 100%);
  color: #ffffff;
  padding: 90px 0 100px 0;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 208, 132, 0.12) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a7f3d0;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-title-highlight {
  color: var(--accent-green);
  position: relative;
  display: inline-block;
}

.hero-lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 580px;
}

/* Card Interativo de Consulta (Hero Form) */
.hero-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  color: var(--text-main);
  position: relative;
  z-index: 10;
}

.card-tab-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  gap: 4px;
}

.card-tab-btn {
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.card-tab-btn.active {
  background: #ffffff;
  color: var(--primary-900);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  font-size: 1.0625rem;
  font-weight: 600;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #f8fafc;
  color: var(--primary-900);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.15);
}

.form-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.btn-submit-hero {
  width: 100%;
  padding: 16px;
  font-size: 1.0625rem;
  font-weight: 800;
}

.hero-security-badges {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.security-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.security-badge-item svg {
  color: #10b981;
  width: 16px;
  height: 16px;
}

/* Floating Offer Preview Widget */
.hero-preview-badge-wrap {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-mockup-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mockup-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mockup-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 208, 132, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
}

.mockup-text h4 {
  font-size: 0.9375rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.mockup-text p {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.mockup-tag {
  background: var(--accent-green);
  color: var(--primary-950);
  font-weight: 800;
  font-size: 0.8125rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-card {
    padding: 24px 18px;
  }
}

/* ==========================================================================
   JORNADA EM 3 ETAPAS ("COMO FUNCIONA")
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

@media (max-width: 868px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 208, 132, 0.4);
}

.step-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3rem;
  font-weight: 800;
  color: #f1f5f9;
  font-family: var(--font-family-heading);
  line-height: 1;
}

.step-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-green-light);
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-900);
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ==========================================================================
   SEÇÃO CORPORATIVA (B2B RECUPERAÇÃO PARA EMPRESAS)
   ========================================================================== */
.b2b-section {
  background: #0a192f;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.b2b-section .section-title {
  color: #ffffff;
}

.b2b-section .section-subtitle {
  color: #94a3b8;
}

.b2b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

@media (max-width: 992px) {
  .b2b-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .b2b-grid {
    grid-template-columns: 1fr;
  }
}

.b2b-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.b2b-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-green);
  transform: translateY(-4px);
}

.b2b-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 208, 132, 0.15);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.b2b-card-title {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.b2b-card-desc {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ==========================================================================
   DIFERENCIAIS & BENEFÍCIOS
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-normal);
}

.feature-box:hover {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-lg);
}

.feature-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  margin-bottom: 18px;
}

.feature-box h4 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  color: var(--primary-900);
}

.feature-box p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-wrap {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary-500);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary-900);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-600);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

/* ==========================================================================
   SEÇÃO DE CONTATO / LEAD CAPTURE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-col {
  background: var(--primary-900);
  color: #ffffff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-col h3 {
  color: #ffffff;
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.contact-info-col p {
  color: #cbd5e1;
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  flex-shrink: 0;
}

.channel-text h5 {
  color: #ffffff;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.channel-text p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 0;
}

.contact-form-col {
  padding: 48px;
}

@media (max-width: 640px) {
  .contact-info-col, .contact-form-col {
    padding: 32px 20px;
  }
}

/* ==========================================================================
   RODAPÉ CORPORATIVO & DISCLOSURES
   ========================================================================== */
.site-footer {
  background-color: var(--primary-950);
  color: #94a3b8;
  padding: 72px 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-green);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 16px;
  color: #64748b;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-text {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.5;
  margin-top: 16px;
}

/* ==========================================================================
   MODAL DE NEGOCIAÇÃO E CONSULTA AO VIVO
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(6, 14, 26, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  position: relative;
  padding: 36px;
}

@media (max-width: 640px) {
  .modal-container {
    padding: 24px 18px;
  }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-subtle);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--primary-900);
}

/* Loading Steps no Modal */
.modal-loader-wrap {
  text-align: center;
  padding: 40px 0;
}

.spinner-ring {
  width: 54px;
  height: 54px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-offer-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.modal-offer-card:hover, .modal-offer-card.selected {
  border-color: var(--accent-green);
  background-color: var(--accent-green-light);
}

.pix-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.pix-code-text {
  font-family: monospace;
  font-size: 0.8125rem;
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-sm);
  word-break: break-all;
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
}

/* ==========================================================================
   BOTÃO FLUTUANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 900;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-ping {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background-color: #ef4444;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

/* Toast de Notificação */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-900);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  opacity: 0;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}


/* ==========================================================================
   ESTILOS DE IMPRESSÃO (TERMO DE ACORDO & COMPROVANTE OFICIAL)
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  .modal-overlay, .modal-overlay * {
    visibility: visible;
  }
  .modal-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: transparent !important;
    padding: 0 !important;
  }
  .modal-container {
    box-shadow: none !important;
    border: 2px solid #0f172a !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 30px !important;
  }
  .modal-close-btn, .whatsapp-float-btn, #btnCopyPix, #btnSendWppAgreement, #btnPrintAgreement, .site-header, .top-notice-bar, .site-footer {
    display: none !important;
  }
}

/* ==========================================================================
   OTIMIZAÇÃO DE PERFORMANCE E SCROLL SUAVE (RXL FAST-RENDER)
   ========================================================================== */
#como-funciona, #para-empresas, #diferenciais, #faq, #contato {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

.offline-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #0f172a;
  color: #f8fafc;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 9999;
  border: 1px solid #334155;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}
.offline-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}


/* ===== Animações (antigo animations.css) ===== */
/* ==========================================================================
   ANIMAÇÕES E TRANSIÇÕES REFINADAS - RL RECUPERAÇÃO DE CRÉDITO
   Micro-interações fluidas inspiradas no padrão moderno de fintechs
   ========================================================================== */

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(0, 208, 132, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 208, 132, 0);
  }
}

.pulse-glow {
  animation: pulseGlow 2.4s infinite;
}

@keyframes floatSoft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.float-soft {
  animation: floatSoft 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-bg {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Badge Online Pulsante */
.ping-dot {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
}

.ping-dot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--accent-green);
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-dot::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Transições de Fade In */
.fade-in {
  animation: fadeIn 0.4s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Conversão de moeda na negociação ===== */
.conversao-box { border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-size: 0.85rem; color: #1e3a8a; }
.conversao-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.conversao-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; color: #047857; }
.conversao-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: conversaoPulse 1.6s ease-in-out infinite; }
.conversao-live.parado { color: #b45309; }
.conversao-live.parado .conversao-dot { background: #f59e0b; animation: none; }
.conversao-lista { display: grid; gap: 8px; }
.conversao-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; background: #fff; border: 1px solid #dbeafe; border-radius: 8px; padding: 10px 12px; }
.conversao-item .orig { font-weight: 700; color: #0f172a; }
.conversao-item .brl { font-weight: 800; color: #0a192f; text-align: right; }
.conversao-item .taxa { font-size: 0.75rem; color: #475569; grid-column: 1 / -1; }
.conversao-item .var.up { color: #b91c1c; }
.conversao-item .var.down { color: #047857; }
.conversao-nota { margin-top: 8px; font-size: 0.75rem; color: #475569; }
@keyframes conversaoPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .conversao-dot { animation: none; } }

/* ===== Resumo da consulta e acordo ===== */
.consulta-resumo { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 0.85rem; }
.consulta-resumo span { color: #64748b; }
.consulta-resumo strong { display: block; color: #0f172a; }
.dividas-lista { display: grid; gap: 8px; }
.divida-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; font-size: 0.85rem; }
.divida-item span { display: block; color: #64748b; font-size: 0.78rem; }
.divida-valor { text-align: right; }
.divida-valor small { display: block; color: #64748b; }
.pagamento-box { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 14px 18px; color: #065f46; font-size: 0.9rem; }
.pagamento-box strong { font-size: 1.15rem; color: #064e3b; }
.pagamento-instrucoes { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 14px 18px; color: #1e3a8a; font-size: 0.9rem; }
#pixQrCodeContainer svg { display: block; margin: 0 auto; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid #e2e8f0; }
@media (max-width: 560px) { .consulta-resumo { grid-template-columns: 1fr; } }

/* ===== Agente de atendimento (n8n Chat) ===== */
/* html:root vence o :root do CSS do n8n, que é carregado depois */
html:root {
  --chat--color--primary: #00d084;
  --chat--color--primary-shade-50: #00b873;
  --chat--color--primary--shade-100: #009e63;
  --chat--color--secondary: #0a192f;
  --chat--color-secondary-shade-50: #112a4a;
  --chat--font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --chat--header--background: #0a192f;
  --chat--header--color: #ffffff;
  --chat--message--user--background: #00d084;
  --chat--message--user--color: #0a192f;
  --chat--toggle--background: #00d084;
  --chat--toggle--hover--background: #00e892;
  --chat--toggle--active--background: #00b873;
  --chat--toggle--color: #0a192f;
  --chat--toggle--size: 60px;
  --chat--window--bottom: 28px;
  --chat--window--right: 28px;
  --chat--window--z-index: 1500; /* acima do cabeçalho, abaixo do modal de consulta */
  --chat--heading--font-size: 1.35rem;
  --chat--subtitle--font-size: 0.875rem;
}
.chat-launcher {
  position: fixed; right: 28px; bottom: 28px; z-index: 1500;
  height: 60px; padding: 0 22px 0 18px; border-radius: 999px; border: 0;
  display: flex; align-items: center; gap: 10px;
  background: #00d084; color: #0a192f; cursor: pointer;
  font: 600 1rem/1 'Inter', system-ui, sans-serif;
  box-shadow: 0 10px 28px rgba(0, 208, 132, 0.45), 0 0 0 0 rgba(0, 208, 132, 0.55);
  animation: chatChama 2.4s ease-out infinite;
  transition: transform var(--transition-normal), background var(--transition-normal);
}
.chat-launcher strong { font-weight: 800; }
.chat-launcher:hover, .chat-launcher:focus-visible { background: #00e892; transform: translateY(-2px); }
.chat-launcher:focus-visible { outline: 3px solid #0a192f; outline-offset: 3px; }
.chat-launcher.carregando { animation: none; }
.chat-launcher.carregando svg { animation: chatGira 0.9s linear infinite; }
@keyframes chatGira { to { transform: rotate(360deg); } }
/* Anel pulsando: o botão chama atenção sobre fundos claros e escuros */
@keyframes chatChama {
  0% { box-shadow: 0 10px 28px rgba(0, 208, 132, 0.45), 0 0 0 0 rgba(0, 208, 132, 0.55); }
  70% { box-shadow: 0 10px 28px rgba(0, 208, 132, 0.45), 0 0 0 16px rgba(0, 208, 132, 0); }
  100% { box-shadow: 0 10px 28px rgba(0, 208, 132, 0.45), 0 0 0 0 rgba(0, 208, 132, 0); }
}
@media (prefers-reduced-motion: reduce) { .chat-launcher { animation: none; } }
/* Com o chat ativo, o WhatsApp sobe para os botões não se sobreporem */
body.com-chat .whatsapp-float-btn { bottom: 100px; }
@media (max-width: 560px) {
  .chat-launcher { right: 16px; bottom: 16px; height: 56px; padding: 0 18px 0 14px; font-size: 0.95rem; }
  html:root { --chat--window--bottom: 16px; --chat--window--right: 16px; --chat--heading--font-size: 1.1rem; }
  body.com-chat .whatsapp-float-btn { bottom: 88px; right: 16px; }
}
@media print { .chat-launcher, .chat-window-wrapper { display: none !important; } }

/* Celular: o cabeçalho cabia mais largo que a tela e cortava o botão do menu */
@media (max-width: 480px) {
  .nav-actions .btn-sm { display: none; }
  .logo-sub { display: none; }
}
