/* Reduz LP - CSS Otimizado v4.1 */
/* ====== VIDEO PLAYER REDUZ ====== */
.about-reduz-video .video-wrapper {
  position: relative;
  /* aumentado ~10% */
  max-width: 990px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  /* sombra mais suave e maior "spread" */
  box-shadow: 0 10px 30px rgba(0,0,0,0.14);
  background: transparent;
  will-change: transform;
  -webkit-backface-visibility: hidden;
}
.about-reduz-video .video-wrapper video,
.about-reduz-video .video-wrapper iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
  border: 0;
  border-radius: inherit;
  transform: translateZ(0);
}
.about-reduz-video .play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.about-reduz-video .play-overlay svg {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}
.about-reduz-video .video-fallback {
  position: absolute;
  left: 12px;
  bottom: 10px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  z-index: 2;
}
.about-reduz-video .video-fallback a {
  color: #fff;
  text-decoration: underline;
}
.about-reduz-video .video-wrapper.playing .play-overlay {
  display: none;
}
@media (max-width: 768px) {
  .about-reduz-video .video-wrapper {
    max-width: 100%;
    aspect-ratio: 16/9;
  }
}

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

:root {
  /* Cores */
  --primary: #015D7F;
  --secondary: #1E9FBE;
  --accent: #87CE00;
  --text: #004159;
  --text-light: #5f737e;
  --border: #e1e8ed;
  --white: #ffffff;
  --bg-light: #f8fafb;
  --primary-700: #004e6a;
  
  /* Espaçamento (Sistema 8px) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  
  /* Touch Targets */
  --touch-min: 44px;
  --touch-optimal: 48px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.04);
  
  /* Transições */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Border Radius Moderado */
  --radius-btn: 8px;
  --radius-card: 12px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Gradientes Orgânicos */
  --gradient-primary: linear-gradient(135deg, #015D7F 0%, #1E9FBE 50%, #0288AF 100%);
  --gradient-soft: linear-gradient(135deg, rgba(1,93,127,0.05) 0%, rgba(30,159,190,0.08) 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
  
  /* Sombras Orgânicas e Suaves */
  --shadow-organic: 0 8px 32px rgba(1, 93, 127, 0.08), 0 2px 8px rgba(1, 93, 127, 0.04);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 40px rgba(30, 159, 190, 0.15);
  
  /* Layout dinâmico */
  --header-offset: 120px;
}

.footer {
  background: var(--text);
  color: rgba(255,255,255,0.9);
  /* reduzir espaçamentos verticais para layout mais compacto */
  padding: var(--space-4) var(--space-2) var(--space-3);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3); /* menor gap entre colunas */
  margin-bottom: calc(var(--space-3) / 1.25);
  justify-items: start;
  align-items: start;
}

@media (min-width: 900px) {
  .footer-content {
    /* Use fixed first column to align logo and tighten gaps */
    grid-template-columns: 360px 1fr 1fr;
    gap: calc(var(--space-3) * 1);
  }
}

/* Force container padding and left alignment to avoid other rules overriding */
.footer > .container {
  padding-left: var(--space-4) !important;
  padding-right: var(--space-4) !important;
}

.footer > .container .footer-content { justify-items: start !important; }
.footer .footer-section,
.footer .footer-section h4,
.footer .footer-section p,
.footer .footer-section ul,
.footer .footer-section li { text-align: left !important; }
.footer .footer-section ul { margin: 0; padding: 0; }

.footer-section h4 {
  color: var(--white);
  margin-bottom: 12px; /* mais compacto */
  font-size: 16px;
}

.footer-section ul li {
  margin-bottom: 6px; /* reduz espaçamento entre itens */
}

.footer-bottom { 
  padding-top: calc(var(--space-2) / 1.5);
}
  font-feature-settings: "kern" 1;
}

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

.logo-footer{
  padding: 0 0 1rem 0 !important;
  max-width: 240px !important;
  height: auto !important;
  margin: 0 0 0 0 !important;
  display: block !important;
}

/* ========== HEADER FLUTUANTE ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  z-index: 1000;
  background: transparent;
  transition: transform var(--transition-base), opacity var(--transition-base);
  will-change: transform, opacity;
}

.header-container {
  background: var(--white);
  border-radius: 52.5px;
  box-shadow: var(--shadow-organic);
  padding: 0 var(--space-4);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1359px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-2);
}

.header-logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition-base);
}

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

.nav-link-cta {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-weight: 700;
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-base);
  position: absolute;
}

.hamburger-btn span:nth-child(1) {
  transform: translateY(-7px);
}

.hamburger-btn span:nth-child(2) {
  transform: translateY(0);
}

.hamburger-btn span:nth-child(3) {
  transform: translateY(7px);
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(0);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(0);
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 998;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  .site-header {
    padding: var(--space-1) var(--space-2);
    z-index: 999;
  }

  .header-container {
    position: relative;
    z-index: 1;
    height: auto;
    padding: 12px var(--space-2) var(--space-2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transition: padding var(--transition-base);
    border-radius: 52.5px;
  }

  .header-container.menu-open {
    padding-bottom: var(--space-2);
  }

  .header-top {
    width: 100%;
    padding-bottom: var(--space-1);
  }

  .header-logo img {
    height: 36px;
  }
  
  .hamburger-btn {
    display: flex;
  }

  .header-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 var(--space-2);
    margin: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
  }

  .header-nav.active {
    max-height: 240px;
    opacity: 1;
    padding: 4px var(--space-2) 10px;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    text-align: right;
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link-cta {
    margin-top: var(--space-1);
    padding: 12px 20px;
    font-size: 16px;
    text-align: center;
    border-bottom: none;
  }
}

@media (min-width: 769px) {
  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-4);
    height: 70px;
  }

  .header-nav {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
    max-height: none;
    opacity: 1;
    overflow: visible;
    padding: 0;
    pointer-events: auto;
  }

  .header-nav.active {
    padding: 0;
  }

  .nav-link {
    width: auto;
    padding: 0;
    border-bottom: none;
  }
}

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 var(--space-2);
  width: 100%;
}

.hero-section .container {
  max-width: 1200px;
}

.quick-answer-section .container-narrow {
  max-width: 1200px;
  padding: 0 var(--space-2);
}

.container-narrow { 
  max-width: 900px; 
  margin: 0 auto; 
  padding: 0 var(--space-2);
  width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

/* Garante que quick-answer-box dentro de container-narrow tenha espaço e alinhamento */
.container-narrow .quick-answer-box {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow: visible;
}

/* ========== ANIMAÇÕES ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.5; transform: scale(1) translateZ(0); }
  50% { opacity: 0.75; transform: scale(1.02) translateZ(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1) translateZ(0); opacity: 0.5; }
  50% { transform: scale(1.03) translateZ(0); opacity: 0.65; }
}

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

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ========== BREADCRUMB ========== */
.breadcrumb-nav {
  padding: var(--space-1) var(--space-2);
  background: var(--bg-light);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  animation: fadeIn var(--transition-base) ease;
}

.breadcrumb-nav ol {
  flex-wrap: wrap;
}

/* ========== QUICK ANSWER BOX (COMPACTO) ========== */
.quick-answer-section {
  background: white;
  padding: 0;
  margin-top: 0;
  position: relative;
  overflow: visible;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  z-index: 5;
}

.quick-answer-box {
  background: linear-gradient(135deg, #EFF8FB 0%, #E6F5FA 100%);
  padding: var(--space-2) var(--space-2);
  border-left: 4px solid var(--secondary);
  margin: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  animation: slideInLeft 0.5s var(--ease-out-expo);
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  word-wrap: break-word;
  overflow-wrap: break-word;
  will-change: transform, opacity;
  min-width: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* Desktop: Padding aumentado */
@media (min-width: 768px) {
  .quick-answer-box {
    padding: var(--space-3) var(--space-3) !important;
  }
}

@media (min-width: 900px) {
  .quick-answer-box {
    padding: var(--space-3) var(--space-4) !important;
  }
}


.answer-content {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--text);
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
  white-space: normal !important;
}

@media (min-width: 768px) {
  .answer-content {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }
  
  .answer-content strong {
    font-size: 14px;
  }
}

@media (min-width: 900px) {
  .answer-content {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }
  
  .answer-content strong {
    font-size: 15px;
  }
}

.answer-content strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: inline;
}

.answer-content mark {
  background: rgba(135, 206, 0, 0.15);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  white-space: normal;
  display: inline;
  line-height: inherit;
  word-break: break-word;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========== HERO ========== */
.hero-section {
  /* O gradiente principal é desenhado pelo ::after para poder subir atrás do header */
  background: transparent;
  color: var(--white);
  padding: 100px var(--space-2) var(--space-6);
  position: relative;
  overflow: visible;
  isolation: isolate;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 0;
  padding-bottom: 1rem;
  z-index: 1;
}

.hero-section::after {
  /* Lâmina de fundo: cobre toda a seção e sobe 300px para trás do header */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: -300px;
  background: var(--gradient-primary);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  z-index: 0; /* atrás do conteúdo, à frente do body */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(65% 65% at 50% 50%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index: 1; /* acima do gradiente base, abaixo do conteúdo */
  animation: heroGlow 12s ease-in-out infinite;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  z-index: 4;
  align-items: center;
}

.hero-content { 
  position: relative; 
  z-index: 5 !important; 
  max-width: 760px;
  width: 100%;
}

.hero-image {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
}

/* ========== ANIMAÇÃO DO COFRINHO ========== */
.piggy-bank-container {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}

/* Cofrinho - flutua suavemente à esquerda, mais embaixo */
.piggy-bank-wrapper {
  position: absolute !important;
  left: 4.5rem !important;
  bottom: 5% !important;
  z-index: 3 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  /* Sem animação de entrada - posição fixa desde o início */
}

.piggy-bank {
  max-width: 210px;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  /* Animação apenas no elemento filho - não afeta posição do wrapper */
  animation: floatWiggle 4s ease-in-out infinite;
}

@keyframes floatWiggle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-4px) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(0deg);
  }
  75% {
    transform: translateY(-4px) rotate(3deg);
  }
}

/* Mão com moeda - posicionada acima e centralizada */
.hand-coin-wrapper {
  position: absolute !important;
  top: -8% !important;
  left: 50% !important;
  margin-left: 0.5rem !important;
  transform: translateX(-50%) !important;
  z-index: 2 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  /* Sem animação de entrada - posição fixa desde o início */
}

.hand-coin {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  /* Animação apenas no elemento filho - não afeta posição do wrapper */
  animation: handApproach 3s ease-in-out 1s infinite;
}

@keyframes handApproach {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(7px) rotate(-2deg);
  }
  50% {
    transform: translateY(15px) rotate(0deg);
  }
  75% {
    transform: translateY(7px) rotate(2deg);
  }
}


.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: var(--space-2);
  animation: fadeInUp 0.5s var(--ease-out-expo) 0.1s backwards;
}

/* Checkmark verde no badge */
.hero-badge::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 4px rgba(135, 206, 0, 0.5);
}

.hero-section h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
  animation: fadeInUp 0.5s var(--ease-out-expo) 0.2s backwards;
}

.hero-section .subhead {
  font-size: 16px;
  opacity: 0.95;
  margin-bottom: var(--space-3);
  line-height: 1.5;
  animation: fadeInUp 0.5s var(--ease-out-expo) 0.3s backwards;
}

/* Destaque verde neon nos textos em negrito do hero */
.hero-section strong {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 8px rgba(135, 206, 0, 0.2);
}

/* ========== BUTTONS (BORDER-RADIUS CONSISTENTE) ========== */
.btn-primary,
.btn-secondary {
  display: block;
  width: 100%;
  min-height: var(--touch-optimal);
  padding: 12px var(--space-3);
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.5;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: rgba(30, 159, 190, 0.2);
  touch-action: manipulation;
  will-change: transform;
  contain: layout style paint;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left var(--transition-base);
  will-change: left;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}

@media (hover: none) and (pointer: coarse) {
  .btn-primary:active {
    transform: scale(0.96);
    transition: transform 0.1s;
  }
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.9);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary:active {
  background: rgba(255,255,255,0.15);
  transform: translateY(0) scale(0.98);
}

@media (hover: none) and (pointer: coarse) {
  .btn-secondary:active {
    transform: scale(0.96);
    transition: transform 0.1s;
  }
}

.hero-cta-group { 
  display: flex; 
  flex-direction: column;
  gap: var(--space-2);
  animation: fadeInUp 0.5s var(--ease-out-expo) 0.4s backwards;
}

.hero-disclaimer { 
  font-size: 13px; 
  opacity: 0.9; 
  margin-top: var(--space-2);
  line-height: 1.4;
  animation: fadeInUp 0.5s var(--ease-out-expo) 0.5s backwards;
}

/* ========== CALCULADORA ========== */
.calc-reduz {
  background: var(--white);
  padding: var(--space-4) var(--space-2);
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.calc-reduz .calc-header {
  text-align: center;
  margin-bottom: var(--space-3); /* Espaço entre subtítulo e bloco da calculadora padronizado */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.calc-reduz .calc-header .section-title {
  margin-bottom: var(--space-2);
}

.calc-reduz .calc-header .section-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* Desktop: manter subtítulo em uma única linha na calculadora */
@media (min-width: 900px) {
  .calc-reduz .calc-header .section-subtitle {
    white-space: nowrap;
    max-width: none;
    display: inline-block;
  }
}

.calc-reduz .calculadora-redesign-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 960px;
  margin: 0 auto var(--space-3); /* Espaço inferior único antes do CTA */
  background: var(--text);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: scaleIn 0.5s var(--ease-out-expo) 0.2s forwards;
  /* Performance: Otimização de composição */
  will-change: transform, opacity;
  contain: layout style paint;
}

.calc-reduz .painel-acao {
  padding: var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #fff;
}

.calc-reduz .titulo-painel {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 var(--space-1) 0;
  line-height: 1.2;
}

.calc-reduz .label-passo {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  display: block;
}

.calc-reduz .passo {
  margin-bottom: 0;
}

.calc-reduz .consumo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.calc-reduz .input-group { 
  display: flex; 
  gap: var(--space-1);
}

.calc-reduz .select-estado,
.calc-reduz .select-distribuidora {
  appearance: none;
  background: #E8EEF2;
  border-radius: var(--radius-btn);
  color: var(--text);
  font-size: 15px;
  border: 2px solid transparent;
  padding: 0 28px 0 12px;
  min-height: var(--touch-min);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="10" viewBox="0 0 24 24" fill="%23004159"><path d="M7 10l5 5 5-5"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.calc-reduz .select-estado:hover,
.calc-reduz .select-distribuidora:hover {
  border-color: var(--secondary);
}

.calc-reduz .select-estado:focus,
.calc-reduz .select-distribuidora:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1,93,127,0.15);
}

.calc-reduz .select-estado { 
  width: 70px;
  flex-shrink: 0;
}

.calc-reduz .select-distribuidora { 
  flex: 1;
}

.calc-reduz .input-com-cifrao {
  display: flex;
  align-items: center;
  background: #E8EEF2;
  border-radius: var(--radius-btn);
  padding: 0 12px;
  min-height: var(--touch-optimal);
  width: 100%;
  border: 2px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.calc-reduz .input-com-cifrao:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1,93,127,0.15);
}

.calc-reduz .input-com-cifrao span {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  margin-right: var(--space-1);
  flex-shrink: 0;
}

.calc-reduz .rate-input {
  background: transparent;
  border: none;
  width: 100%;
  color: var(--text);
  font-size: 24px;
  text-align: right;
  font-weight: 800;
  outline: none;
}

.calc-reduz input::-webkit-outer-spin-button,
.calc-reduz input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

/* Range Slider */
.calc-reduz .rate-range {
  appearance: none;
  width: 100%;
  background: transparent;
  margin-top: var(--space-2);
  cursor: pointer;
  height: 44px;
  position: relative;
  /* Mobile: Touch target otimizado */
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-x;
  /* Performance: Otimização de animação */
  will-change: transform;
}

.calc-reduz .rate-range::-webkit-slider-runnable-track {
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.3);
}

.calc-reduz .rate-range::-webkit-slider-thumb {
  appearance: none;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: var(--secondary);
  border: 5px solid #fff;
  cursor: pointer;
  margin-top: -12px;
  box-shadow: 0 4px 16px rgba(30,159,190,0.8);
  transition: transform var(--transition-fast);
}

.calc-reduz .rate-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-reduz .rate-range::-webkit-slider-thumb:active {
  transform: scale(1.25);
}

.calc-reduz .rate-range::-moz-range-track {
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.3);
}

.calc-reduz .rate-range::-moz-range-thumb {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: var(--secondary);
  border: 5px solid #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(30,159,190,0.8);
  transition: transform var(--transition-fast);
}

.calc-reduz .rate-range::-moz-range-thumb:hover {
  transform: scale(1.15);
}

.calc-reduz .rate-range::-moz-range-thumb:active {
  transform: scale(1.25);
}

/* Botão Aderir - 8px border-radius (NÃO MAIS PILL) */
.calc-reduz .footer-section { 
  margin-top: 8px;
}

.calc-reduz .aderir {
  display: block;
  width: 100%;
  min-height: var(--touch-optimal);
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  background: var(--secondary);
  border-radius: var(--radius-btn);
  padding: 12px var(--space-3);
  box-shadow: var(--shadow-md);
  text-align: center;
  line-height: 1.4;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.calc-reduz .aderir::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width var(--transition-base), height var(--transition-base);
}

.calc-reduz .aderir:hover::before {
  width: 300px;
  height: 300px;
}

.calc-reduz .aderir:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.calc-reduz .aderir:active {
  transform: scale(0.98);
}

.calc-reduz .painel-resultado {
  background: linear-gradient(135deg, var(--primary) 0%, var(--text) 100%);
  padding: var(--space-3) var(--space-2);
  text-align: center;
  color: #fff;
}

.calc-reduz .titulo-resultado { 
  font-size: 15px;
  font-weight: 600; 
  margin: 0 0 var(--space-2) 0;
  opacity: 0.95;
}

.calc-reduz .display-economia { 
  margin: var(--space-2) 0;
  padding: var(--space-2) var(--space-3);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.calc-reduz .display-economia .annualResult {
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 900;
  color: var(--secondary);
  line-height: 1.1;
  display: block;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
}


/* Desktop: Ajuste para número grande */
@media (min-width: 900px) {
  .calc-reduz .calculadora-redesign-container {
    flex-direction: row;
  }
  
  .calc-reduz .painel-acao {
    flex: 0 0 40%;
    padding: var(--space-4) var(--space-3);
    max-width: 40%;
  }
  
  .calc-reduz .painel-resultado {
    flex: 0 0 60%;
    padding: var(--space-4);
    max-width: 60%;
  }
  
  .calc-reduz .display-economia {
    padding: var(--space-3) var(--space-4);
    min-height: 100px;
    max-height: 120px;
    height: auto;
    overflow: hidden;
  }
  
  .calc-reduz .display-economia .annualResult {
    font-size: clamp(36px, 4.5vw, 52px);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    margin: 0 auto;
    padding: 0 var(--space-2);
  }
  
  /* Dropdown menor no desktop */
  .calc-reduz .select-distribuidora {
    font-size: 13px;
    padding: 0 20px 0 10px;
    min-height: 40px;
  }
  
  .calc-reduz .select-estado {
    font-size: 13px;
    padding: 0 20px 0 10px;
    min-height: 40px;
  }
  
  .calc-reduz .titulo-painel {
    font-size: 17px;
    margin-bottom: 12px;
  }
  
  .calc-reduz .label-passo {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .calc-reduz .painel-acao {
    gap: 14px;
  }
  
  .calc-reduz .input-com-cifrao {
    min-height: 44px;
  }
  
  .calc-reduz .rate-input {
    font-size: 22px;
  }
  
  .calc-reduz .aderir {
    min-height: 44px;
    padding: 10px var(--space-3);
    font-size: 15px;
  }
}

.calc-reduz .detalhes-economia { 
  font-size: 14px;
  margin-top: var(--space-2);
  opacity: 0.95;
}

/* Destaque verde neon nos percentuais de economia */
.calc-reduz .discount-percent {
  color: var(--accent);
  font-weight: 700;
}

.calc-reduz .detalhes-economia p { 
  margin: 4px 0;
  line-height: 1.4;
  transition: opacity var(--transition-fast);
}

.calc-reduz .note {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  margin-top: var(--space-2);
  line-height: 1.4;
}

/* ========== SEÇÕES GERAIS ========== */
.how-it-works,
.eligibility-section,
.differentials-section,
.faq-section,
.adhesion-section,
.final-cta {
  padding: var(--space-5) var(--space-2);
}

/* ========== SOBRE O REDUZ (EXPLICAÇÃO) ========== */
.about-reduz {
  background: var(--white);
  padding: var(--space-5) var(--space-2);
}

.about-reduz .section-title {
  text-align: center;
  margin-bottom: var(--space-4);
}

.about-reduz-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

.about-reduz-text {
  flex: 1;
}

.about-reduz-text p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.about-reduz-text p:last-child {
  margin-bottom: 0;
}

.about-reduz-video {
  flex: 1;
  width: 100%;
  /* aumentado ~10% para dar mais destaque */
  max-width: 550px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-card);
}

@media (min-width: 900px) {
  .about-reduz-content {
    flex-direction: row;
    gap: var(--space-5);
    align-items: center;
  }
  
  .about-reduz-text {
    flex: 0 0 46%;
  }
  
  .about-reduz-video {
    flex: 0 0 54%;
  }
}

/* CTA extra dentro da calculadora */
.calc-extra-cta {
  /* Espaçamento padronizado: sem padding superior, dependemos da margin-bottom anterior */
  padding: 0 var(--space-2) var(--space-3);
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.calc-extra-cta .btn-expert {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  min-height: var(--touch-optimal);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(30,159,190,0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  will-change: transform;
  contain: layout style paint;
}

.calc-extra-cta .btn-expert::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left var(--transition-base);
  will-change: left;
}

.calc-extra-cta .btn-expert:hover::before { left: 100%; }

.calc-extra-cta .btn-expert:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.calc-extra-cta .btn-expert:active {
  transform: translateY(0) scale(0.97);
  box-shadow: var(--shadow-sm);
}

.calc-extra-cta .btn-expert:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(1,93,127,0.2), var(--shadow-md);
}

@media (hover: none) and (pointer: coarse) {
  .calc-extra-cta .btn-expert:hover { transform: none; }
  .calc-extra-cta .btn-expert:active { transform: scale(0.96); transition: transform 0.1s; }
}

@media (min-width: 900px) {
  .calc-extra-cta { padding: 0 var(--space-2) var(--space-4); }
  .calc-extra-cta .btn-expert { font-size: 16px; }
}

.section-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: var(--space-1);
  color: var(--text);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--text-light);
  margin: 0 auto var(--space-4);
  max-width: 680px;
  line-height: 1.5;
}

/* ========== COMO FUNCIONA ========== */
.how-it-works {
  background: var(--bg-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* Desktop: 4 colunas para cards "como funciona" */
@media (min-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
  
  .step-card {
    min-height: 200px;
    padding: var(--space-4) var(--space-3);
  }
  
  .step-number {
    width: 64px;
    height: 64px;
    font-size: 28px;
    margin-bottom: var(--space-4);
  }
  
  .step-card h3 {
    font-size: 20px;
    margin-bottom: var(--space-3);
  }
  
  .step-card p {
    font-size: 15px;
    line-height: 1.7;
  }
}

.step-card {
  background: var(--white);
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--secondary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  /* Performance: Otimização de composição */
  will-change: transform, opacity;
  contain: layout style paint;
}

/* Remove will-change após animação */
.step-card[style*="opacity: 1"],
.differential-card[style*="opacity: 1"],
.faq-item[style*="opacity: 1"] {
  will-change: auto;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

@media (hover: none) and (pointer: coarse) {
  .step-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  
  .step-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  margin: 0 auto var(--space-3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  /* Performance: Otimização de animação */
  will-change: transform;
  contain: layout style paint;
  box-shadow: 0 4px 12px rgba(1, 93, 127, 0.2);
  flex-shrink: 0;
}

.step-card:hover .step-number {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 16px rgba(1, 93, 127, 0.3);
}

.step-card h3 {
  font-size: 19px;
  margin-bottom: var(--space-2);
  text-align: center;
  color: var(--text);
  transition: color var(--transition-fast);
  font-weight: 700;
  line-height: 1.3;
  flex: 0 0 auto;
}

.step-card:hover h3 {
  color: var(--primary);
}

.step-card p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 15px;
  text-align: center;
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ========== ELEGIBILIDADE ========== */
.eligibility-section {
  background: var(--white);
}

.eligibility-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.eligibility-text h2 {
  font-size: 24px;
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.eligibility-list {
  list-style: none;
  margin: var(--space-2) 0;
}

.eligibility-list li {
  padding: var(--space-1) 0 var(--space-1) 32px;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  transition: transform var(--transition-fast);
}

.eligibility-list li:hover {
  transform: translateX(4px);
}

.eligibility-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: var(--space-1);
  color: var(--secondary);
  font-weight: 800;
  font-size: 20px;
  transition: transform var(--transition-fast);
}

.eligibility-list li:hover::before {
  transform: scale(1.2);
}

.eligibility-note {
  color: var(--text-light);
  margin-top: var(--space-2);
  line-height: 1.5;
  font-size: 14px;
}

.eligibility-highlight {
  background: var(--bg-light);
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-card);
  border-left: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: border-left-width var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.eligibility-highlight:hover { box-shadow: var(--shadow-md); }

.eligibility-highlight h3 {
  font-size: 18px;
  margin-bottom: var(--space-2);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.eligibility-highlight p {
  color: var(--text-light);
  margin-bottom: var(--space-1);
  line-height: 1.5;
  font-size: 15px;
  flex: 1;
}

/* Lista de passos dentro do destaque (Análise técnica, ANEEL, etc.) */
.eligibility-highlight .process-list {
  list-style: none;
  margin: var(--space-1) 0 var(--space-2);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 12px;
}

.eligibility-highlight .process-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 6px 0;
  color: var(--text);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.eligibility-highlight .process-icon {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  flex-shrink: 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.eligibility-highlight .process-list li:hover {
  color: var(--primary);
}

.eligibility-highlight .process-list li:hover .process-icon {
  color: var(--primary);
  transform: scale(1.1);
}

@media (min-width: 900px) {
  .eligibility-highlight .process-list { grid-template-columns: 1fr 1fr; }
}

/* ========== TABELA DE ECONOMIA - CARDS NO MOBILE ========== */
.savings-section {
  background: white;
  padding: var(--space-5) var(--space-2);
}

.table-wrapper {
  margin: var(--space-4) 0 0;
  overflow: hidden;
  background: white;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.savings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.savings-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, #0288AF 100%);
  color: white;
}

.savings-table thead tr:first-child th:first-child {
  border-top-left-radius: var(--radius-card);
}

.savings-table thead tr:first-child th:last-child {
  border-top-right-radius: var(--radius-card);
}

.savings-table th {
  padding: var(--space-2);
  text-align: left;
  font-weight: 700;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  white-space: normal;
  word-wrap: break-word;
}

.savings-table td {
  padding: var(--space-2);
  border-bottom: 1px solid #E1E8ED;
  white-space: normal;
  word-wrap: break-word;
}

.savings-table tbody tr:hover {
  background: #EFF8FB;
  transition: background-color var(--transition-fast);
}

.savings-table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 700px) {
  .savings-section {
    background: #F7FAFC;
  }
  
  .table-wrapper {
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    margin-top: var(--space-3);
  }
  
  .savings-table thead {
    display: none;
  }
  
  .savings-table,
  .savings-table tbody,
  .savings-table tr {
    display: block;
    width: 100%;
  }
  
  .savings-table tr {
    display: block;
    background: white;
    border: 2px solid #E1E8ED;
    border-radius: 16px;
    padding: var(--space-3);
    margin-bottom: var(--space-3);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }
  
  .savings-table tr:hover {
    border-color: var(--secondary);
    box-shadow: 0 4px 16px rgba(30, 159, 190, 0.15);
  }
  
  .savings-table td {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: var(--space-1) 0;
    border: none;
    gap: var(--space-2);
    font-size: 15px;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
  }
  
  .savings-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
    text-align: left;
    white-space: normal;
    word-break: keep-all;
  }
  
  .savings-table td {
    text-align: right;
  }
  
  .savings-table td strong {
    color: var(--secondary);
    font-size: 15px;
    white-space: normal;
    display: block;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: right;
  }
  
  .savings-table td:last-child strong {
    font-size: 16px;
  }
  
  .savings-table td:not(:last-child) {
    border-bottom: 1px dashed #E1E8ED;
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-1);
  }
  
  .savings-table td:last-child {
    padding-bottom: 0;
    font-weight: 700;
    font-size: 16px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .savings-table th,
  .savings-table td {
    padding: var(--space-2) var(--space-1);
    font-size: 0.85rem;
  }
}

.table-note {
  text-align: center;
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  padding: 0 var(--space-2);
}

/* ========== DIFERENCIAIS ========== */
.differentials-section {
  background: var(--white);
}

.differentials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.differential-card {
  background: var(--white);
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  opacity: 0;
  transform: translateY(20px);
  /* Performance: Otimização de composição */
  will-change: transform, opacity;
  contain: layout style paint;
}

.differential-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

@media (hover: none) and (pointer: coarse) {
  .differential-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
  }
  
  .differential-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
  }
}

.differential-icon {
  font-size: 32px;
  margin-bottom: var(--space-2);
  text-align: center;
  transition: transform var(--transition-fast);
  /* Performance: Otimização de animação */
  will-change: transform;
  contain: layout style paint;
}

.differential-card:hover .differential-icon {
  transform: scale(1.15) rotate(-5deg);
}

.differential-card h3 {
  font-size: 17px;
  margin-bottom: var(--space-1);
  text-align: center;
  transition: color var(--transition-fast);
}

.differential-card:hover h3 {
  color: var(--primary);
}

.differential-card p {
  color: var(--text-light);
  line-height: 1.5;
  font-size: 15px;
  text-align: center;
}

/* ========== FAQ ========== */
.faq-section {
  background: var(--bg-light);
}

.faq-container {
  max-width: 100%;
  margin-top: var(--space-4);
}

.faq-item {
  background: var(--white);
  margin-bottom: var(--space-2);
  border-radius: var(--radius-btn);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(20px);
  transition: box-shadow var(--transition-fast);
  /* Performance: Otimização de composição */
  will-change: transform, opacity;
  contain: layout style paint;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  min-height: var(--touch-optimal);
  padding: var(--space-2);
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
  line-height: 1.4;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  /* Mobile: Touch target otimizado */
  -webkit-tap-highlight-color: rgba(1, 93, 127, 0.1);
  touch-action: manipulation;
}

.faq-question:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.faq-question.active {
  color: var(--primary);
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-fast);
  padding: 0 var(--space-2);
  /* Performance: Otimização de animação */
  will-change: max-height;
  contain: layout style paint;
}

.faq-answer.active {
  max-height: 600px;
  padding: 0 var(--space-2) var(--space-2);
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 14px;
}

/* ========== FORMULÁRIO DE ADESÃO - CONTAINER MAIOR, SEM SOMBRA NO CAPTCHA ========== */
.adhesion-section {
  background: linear-gradient(135deg, #F8FAFB 0%, #EFF4F7 100%);
  padding: var(--space-5) 1rem;
}

@media (min-width: 768px) {
  .adhesion-section {
    padding: var(--space-5) var(--space-2);
  }
}

.form-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: var(--space-3);
  padding: 0;
}

.form-header .section-title {
  font-size: 28px;
  margin-bottom: var(--space-2);
  line-height: 1.3;
  font-weight: 800;
}

.form-header .section-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0 auto;
  max-width: 700px;
}

.form-container {
  position: relative;
  min-height: 500px;
  padding: 0;
}

.form-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(30, 159, 190, 0.2);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-2);
}

.form-loader p {
  color: var(--text-light);
  font-weight: 600;
}

.hs-form-html form {
  padding: var(--space-2);
  background: white;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Desktop: Mais padding */
@media (min-width: 768px) {
  .hs-form-html form {
    padding: var(--space-4);
  }
}

/* ========== ESTILOS MELHORADOS DOS CAMPOS DO FORMULÁRIO ========== */

/* Labels */
.hs-form-html label,
.hs-form-html .hs-form-field > label,
.hs-form-html .hs-form-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.hs-form-html .hs-form-field:focus-within > label,
.hs-form-html .hs-form-field:focus-within label {
  color: var(--primary);
}

/* Inputs de texto, email, tel, number */
.hs-form-html input[type="text"],
.hs-form-html input[type="email"],
.hs-form-html input[type="tel"],
.hs-form-html input[type="number"],
.hs-form-html input[type="url"],
.hs-form-html textarea,
.hs-form-html select {
  width: 100%;
  min-height: var(--touch-optimal);
  padding: 12px 16px;
  font-size: 16px;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white) !important;
  border: 2px solid var(--border);
  border-radius: var(--radius-btn);
  transition: all var(--transition-base);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.5;
}

/* Estilos consolidados para selects e componentes do HubSpot */
.hs-form-html select,
.hs-form-html [class*="hsfc"] select,
.hs-form-html [data-hsfc-id] select,
.hs-form-html [data-hsfc-id="Renderer"] select,
.hs-form-html .hs-fieldtype-phone select,
.hs-form-html .hs-input select,
.hs-form-html select.hs-input,
.hs-form-html .hs-phone select,
.hs-form-html select[class*="hs-phone"],
.hs-form-html .hs-country-code select,
.hs-form-html button[role="combobox"],
.hs-form-html [class*="hsfc"] button[role="combobox"],
.hs-form-html [class*="hsfc"] .hsfc-Select_Trigger,
.hs-form-html [class*="hsfc"] [class*="Select_Trigger"],
.hs-form-html [class*="hsfc"] [class*="Select"] button,
.hs-form-html [data-hsfc-id] button,
.hs-form-html [data-hsfc-id] button[role="combobox"],
.hs-form-html [data-hsfc-id="Renderer"] button,
.hs-form-html [data-hsfc-id="Renderer"] button[role="combobox"],
.hs-form-html [data-hsfc-id="Renderer"] .hsfc-Select_Trigger,
.hs-form-html [data-hsfc-id="Renderer"] [class*="Select_Trigger"],
.hs-form-html [data-hsfc-id="Renderer"] [class*="Select"] button,
.hs-form-html .hsfc-PhoneInput_FlagAndCaret,
.hs-form-html [class*="hsfc-PhoneInput_FlagAndCaret"],
.hs-form-html .hsfc-PhoneInput button,
.hs-form-html [class*="hsfc-PhoneInput"] button,
[data-hsfc-id="Renderer"] .hsfc-PhoneInput_FlagAndCaret,
[data-hsfc-id="Renderer"] .hsfc-PhoneInput:not(.hsfc-PhoneInput--rtl) .hsfc-PhoneInput_FlagAndCaret,
.hs-form-html [data-hsfc-id="Renderer"] .hsfc-PhoneInput_FlagAndCaret,
.hs-form-html [data-hsfc-id="Renderer"] .hsfc-PhoneInput:not(.hsfc-PhoneInput--rtl) .hsfc-PhoneInput_FlagAndCaret {
  background-color: var(--white) !important;
  background: var(--white) !important;
  border: 2px solid var(--border) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.hs-form-html select:hover,
.hs-form-html [class*="hsfc"] select:hover,
.hs-form-html [data-hsfc-id] select:hover,
.hs-form-html [data-hsfc-id="Renderer"] select:hover,
.hs-form-html .hs-fieldtype-phone select:hover,
.hs-form-html .hs-input select:hover,
.hs-form-html select.hs-input:hover,
.hs-form-html .hs-phone select:hover,
.hs-form-html select[class*="hs-phone"]:hover,
.hs-form-html .hs-country-code select:hover,
.hs-form-html button[role="combobox"]:hover,
.hs-form-html [class*="hsfc"] button[role="combobox"]:hover,
.hs-form-html [class*="hsfc"] .hsfc-Select_Trigger:hover,
.hs-form-html [data-hsfc-id] button:hover,
.hs-form-html [data-hsfc-id] button[role="combobox"]:hover,
.hs-form-html [data-hsfc-id="Renderer"] button:hover,
.hs-form-html [data-hsfc-id="Renderer"] button[role="combobox"]:hover,
.hs-form-html [data-hsfc-id="Renderer"] .hsfc-Select_Trigger:hover,
.hs-form-html .hsfc-PhoneInput_FlagAndCaret:hover,
.hs-form-html [class*="hsfc-PhoneInput_FlagAndCaret"]:hover,
.hs-form-html .hsfc-PhoneInput button:hover,
.hs-form-html [class*="hsfc-PhoneInput"] button:hover,
[data-hsfc-id="Renderer"] .hsfc-PhoneInput_FlagAndCaret:hover,
[data-hsfc-id="Renderer"] .hsfc-PhoneInput:not(.hsfc-PhoneInput--rtl) .hsfc-PhoneInput_FlagAndCaret:hover,
.hs-form-html [data-hsfc-id="Renderer"] .hsfc-PhoneInput_FlagAndCaret:hover,
.hs-form-html [data-hsfc-id="Renderer"] .hsfc-PhoneInput:not(.hsfc-PhoneInput--rtl) .hsfc-PhoneInput_FlagAndCaret:hover {
  background-color: var(--white) !important;
  background: var(--white) !important;
  border-color: var(--secondary) !important;
  box-shadow: 0 2px 8px rgba(30, 159, 190, 0.1) !important;
}

.hs-form-html select:focus,
.hs-form-html [class*="hsfc"] select:focus,
.hs-form-html [data-hsfc-id] select:focus,
.hs-form-html [data-hsfc-id="Renderer"] select:focus,
.hs-form-html .hs-fieldtype-phone select:focus,
.hs-form-html .hs-input select:focus,
.hs-form-html select.hs-input:focus,
.hs-form-html .hs-phone select:focus,
.hs-form-html select[class*="hs-phone"]:focus,
.hs-form-html .hs-country-code select:focus,
.hs-form-html button[role="combobox"]:focus,
.hs-form-html [class*="hsfc"] button[role="combobox"]:focus,
.hs-form-html [class*="hsfc"] .hsfc-Select_Trigger:focus,
.hs-form-html [data-hsfc-id] button:focus,
.hs-form-html [data-hsfc-id] button[role="combobox"]:focus,
.hs-form-html [data-hsfc-id="Renderer"] button:focus,
.hs-form-html [data-hsfc-id="Renderer"] button[role="combobox"]:focus,
.hs-form-html [data-hsfc-id="Renderer"] .hsfc-Select_Trigger:focus,
.hs-form-html .hsfc-PhoneInput_FlagAndCaret:focus,
.hs-form-html [class*="hsfc-PhoneInput_FlagAndCaret"]:focus,
.hs-form-html .hsfc-PhoneInput button:focus,
.hs-form-html [class*="hsfc-PhoneInput"] button:focus,
.hs-form-html .hsfc-PhoneInput_FlagAndCaret:focus-within,
.hs-form-html [class*="hsfc-PhoneInput_FlagAndCaret"]:focus-within,
[data-hsfc-id="Renderer"] .hsfc-PhoneInput_FlagAndCaret:focus,
[data-hsfc-id="Renderer"] .hsfc-PhoneInput:not(.hsfc-PhoneInput--rtl) .hsfc-PhoneInput_FlagAndCaret:focus,
[data-hsfc-id="Renderer"] .hsfc-PhoneInput_FlagAndCaret:focus-within,
.hs-form-html [data-hsfc-id="Renderer"] .hsfc-PhoneInput_FlagAndCaret:focus,
.hs-form-html [data-hsfc-id="Renderer"] .hsfc-PhoneInput:not(.hsfc-PhoneInput--rtl) .hsfc-PhoneInput_FlagAndCaret:focus,
.hs-form-html [data-hsfc-id="Renderer"] .hsfc-PhoneInput_FlagAndCaret:focus-within {
  background-color: var(--white) !important;
  background: var(--white) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(1, 93, 127, 0.1), 0 2px 8px rgba(30, 159, 190, 0.15) !important;
  outline: none !important;
}

/* Estilos adicionais para PhoneInput e Select_Trigger */
.hs-form-html .hsfc-PhoneInput_FlagAndCaret,
.hs-form-html [class*="hsfc-PhoneInput_FlagAndCaret"],
.hs-form-html .hsfc-PhoneInput button,
.hs-form-html [class*="hsfc-PhoneInput"] button,
[data-hsfc-id="Renderer"] .hsfc-PhoneInput_FlagAndCaret,
[data-hsfc-id="Renderer"] .hsfc-PhoneInput:not(.hsfc-PhoneInput--rtl) .hsfc-PhoneInput_FlagAndCaret,
.hs-form-html [data-hsfc-id="Renderer"] .hsfc-PhoneInput_FlagAndCaret,
.hs-form-html [data-hsfc-id="Renderer"] .hsfc-PhoneInput:not(.hsfc-PhoneInput--rtl) .hsfc-PhoneInput_FlagAndCaret {
  border-radius: var(--radius-btn) !important;
  padding: 12px 16px !important;
  min-height: var(--touch-optimal) !important;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  transition: all var(--transition-base) !important;
  filter: none !important;
  background-color: var(--white) !important;
  background: var(--white) !important;
}

/* Força background branco no hover do PhoneInput (remove qualquer cinza) */
.hs-form-html .hsfc-PhoneInput_FlagAndCaret:hover,
.hs-form-html [class*="hsfc-PhoneInput_FlagAndCaret"]:hover,
.hs-form-html .hsfc-PhoneInput button:hover,
[data-hsfc-id="Renderer"] .hsfc-PhoneInput_FlagAndCaret:hover,
.hs-form-html [data-hsfc-id="Renderer"] .hsfc-PhoneInput_FlagAndCaret:hover {
  background-color: var(--white) !important;
  background: var(--white) !important;
  background-image: none !important;
}


.hs-form-html textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Estados dos inputs */
.hs-form-html input[type="text"]:hover,
.hs-form-html input[type="email"]:hover,
.hs-form-html input[type="tel"]:hover,
.hs-form-html input[type="number"]:hover,
.hs-form-html input[type="url"]:hover,
.hs-form-html textarea:hover,
.hs-form-html select:hover {
  border-color: var(--secondary);
  box-shadow: 0 2px 8px rgba(30, 159, 190, 0.1);
}

.hs-form-html input[type="text"]:focus,
.hs-form-html input[type="email"]:focus,
.hs-form-html input[type="tel"]:focus,
.hs-form-html input[type="number"]:focus,
.hs-form-html input[type="url"]:focus,
.hs-form-html textarea:focus,
.hs-form-html select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(1, 93, 127, 0.1), 0 2px 8px rgba(30, 159, 190, 0.15);
  background: var(--white);
}

.hs-form-html input[type="text"]::placeholder,
.hs-form-html input[type="email"]::placeholder,
.hs-form-html input[type="tel"]::placeholder,
.hs-form-html input[type="number"]::placeholder,
.hs-form-html input[type="url"]::placeholder,
.hs-form-html textarea::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

/* Select customizado - seta SVG e estilos adicionais */
.hs-form-html select,
.hs-form-html select[class],
.hs-form-html select[id] {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="10" viewBox="0 0 24 24" fill="none" stroke="%23004159" stroke-width="2" stroke-linecap="round" stroke-linecap="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px !important;
  padding-right: 40px !important;
  cursor: pointer !important;
  background: var(--white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="10" viewBox="0 0 24 24" fill="none" stroke="%23004159" stroke-width="2" stroke-linecap="round" stroke-linecap="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 12px center / 16px !important;
}

.hs-form-html select:hover {
  background: var(--white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="10" viewBox="0 0 24 24" fill="none" stroke="%231E9FBE" stroke-width="2" stroke-linecap="round" stroke-linecap="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 12px center / 16px !important;
}

.hs-form-html select:focus {
  background: var(--white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="10" viewBox="0 0 24 24" fill="none" stroke="%23015D7F" stroke-width="2" stroke-linecap="round" stroke-linecap="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 12px center / 16px !important;
}

/* Options do select */
.hs-form-html select option,
[data-hsfc-id="Renderer"] select option,
.hs-form-html [data-hsfc-id] select option {
  background: var(--white) !important;
  color: var(--text) !important;
  padding: 8px 12px !important;
}

.hs-form-html select option:hover,
.hs-form-html select option:checked,
[data-hsfc-id="Renderer"] select option:hover,
[data-hsfc-id="Renderer"] select option:checked {
  background-color: rgba(30, 159, 190, 0.1) !important;
  color: var(--primary) !important;
}

.hs-form-html select:not([multiple]) {
  background-color: var(--white) !important;
}

/* Checkbox e Radio */
.hs-form-html input[type="checkbox"],
.hs-form-html input[type="radio"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: var(--primary);
  border: 2px solid var(--border);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.hs-form-html input[type="radio"] {
  border-radius: 50%;
}

.hs-form-html input[type="checkbox"]:hover,
.hs-form-html input[type="radio"]:hover {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(30, 159, 190, 0.1);
}

.hs-form-html input[type="checkbox"]:checked,
.hs-form-html input[type="radio"]:checked {
  border-color: var(--primary);
  background-color: var(--primary);
}

/* Field groups e espaçamento */
.hs-form-html .hs-form-field {
  margin-bottom: var(--space-3);
}

.hs-form-html .hs-form-field:last-child {
  margin-bottom: 0;
}

/* Mensagens de erro */
.hs-form-html .hs-error-msgs,
.hs-form-html .hs-error-msgs label,
.hs-form-html .hs-main-font-element {
  color: #dc3545;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}

.hs-form-html input.error,
.hs-form-html textarea.error,
.hs-form-html select.error {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.hs-form-html input.error:focus,
.hs-form-html textarea.error:focus,
.hs-form-html select.error:focus {
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1), 0 2px 8px rgba(220, 53, 69, 0.15);
}

/* Mensagens de sucesso */
.hs-form-html .hs-error-msgs.hs-main-font-element {
  color: #28a745;
}

/* Descrições de campos */
.hs-form-html .hs-field-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.5;
}

/* Required indicator */
.hs-form-html .hs-form-required {
  color: #dc3545;
  margin-left: 4px;
}

/* Field groups e layouts */
.hs-form-html .hs-form-field-wrapper,
.hs-form-html .hs-fieldtype-text,
.hs-form-html .hs-fieldtype-email,
.hs-form-html .hs-fieldtype-phone,
.hs-form-html .hs-fieldtype-select,
.hs-form-html .hs-fieldtype-textarea {
  width: 100%;
}

/* Grid de campos lado a lado (se houver) */
.hs-form-html .hs-form-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.hs-form-html .hs-form-row .hs-form-field {
  flex: 1;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hs-form-html .hs-form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .hs-form-html .hs-form-row .hs-form-field {
    margin-bottom: var(--space-2);
  }
}

/* Legendas de fieldset */
.hs-form-html fieldset legend,
.hs-form-html .hs-form-fieldset legend {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  padding: 0;
}

/* Checkbox e radio labels */
.hs-form-html .hs-form-checkbox-display,
.hs-form-html .hs-form-radio-display {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-1);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.hs-form-html .hs-form-checkbox-display:hover,
.hs-form-html .hs-form-radio-display:hover {
  background: var(--bg-light);
}

.hs-form-html .hs-form-checkbox-display label,
.hs-form-html .hs-form-radio-display label {
  margin-bottom: 0;
  cursor: pointer;
  font-weight: 500;
  flex: 1;
}

/* Estados desabilitados */
.hs-form-html input:disabled,
.hs-form-html textarea:disabled,
.hs-form-html select:disabled {
  background: var(--bg-light);
  color: var(--text-light);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Loading state */
.hs-form-html .submitted-message {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: var(--space-3);
  border-radius: var(--radius-btn);
  margin-top: var(--space-3);
  font-weight: 600;
  text-align: center;
}

/* Melhorias visuais gerais */
.hs-form-html .hs-form-field {
  position: relative;
}

/* Placeholder melhorado */
.hs-form-html input:focus::placeholder,
.hs-form-html textarea:focus::placeholder {
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

/* Animações suaves nos campos */
.hs-form-html input,
.hs-form-html textarea,
.hs-form-html select {
  will-change: border-color, box-shadow;
}

.hs-form-html input:focus,
.hs-form-html textarea:focus,
.hs-form-html select:focus {
  will-change: auto;
}

/* INPUT FILE - Melhorado */
.hs-form-html input[type="file"] {
  width: 100%;
  padding: 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg-light);
  font-size: 0 !important; /* Esconde texto do arquivo */
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: var(--touch-optimal);
  color: transparent !important;
  font-weight: 500;
  position: relative;
  line-height: 0;
}

/* Texto do input file - completamente escondido (usamos feedback customizado via JS) */
.hs-form-html input[type="file"]::file-selector-text,
.hs-form-html input[type="file"]::-webkit-file-upload-text {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Esconde qualquer texto que apareça dentro do input */
.hs-form-html input[type="file"]::before {
  content: '';
  display: none;
}

.hs-form-html input[type="file"]:hover {
  border-color: var(--secondary);
  background: rgba(30, 159, 190, 0.05);
  box-shadow: 0 2px 8px rgba(30, 159, 190, 0.1);
}

.hs-form-html input[type="file"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(1, 93, 127, 0.1), 0 2px 8px rgba(30, 159, 190, 0.15);
}

.hs-form-html input[type="file"]::-webkit-file-upload-button {
  padding: 10px 20px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px !important; /* Restaura tamanho do botão */
  cursor: pointer;
  margin-right: 12px;
  white-space: nowrap;
  transition: background var(--transition-fast), transform var(--transition-fast);
  line-height: 1.5;
}

.hs-form-html input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

.hs-form-html input[type="file"]::file-selector-button {
  padding: 10px 20px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px !important; /* Restaura tamanho do botão */
  cursor: pointer;
  margin-right: 12px;
  white-space: nowrap;
  transition: background var(--transition-fast), transform var(--transition-fast);
  line-height: 1.5;
}

.hs-form-html input[type="file"]::file-selector-button:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* FEEDBACK DE CARREGAMENTO DE ARQUIVO */
.hs-form-html .file-input-feedback {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.5;
  min-height: 20px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  transition: all var(--transition-base);
}

/* Feedback quando arquivo está selecionado */
.hs-form-html .file-input-feedback:not(:empty) {
  color: var(--primary);
  background: rgba(1, 93, 127, 0.08);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

/* Feedback quando não há arquivo */
.hs-form-html .file-input-feedback:empty::before {
  content: 'Nenhum arquivo selecionado';
  color: var(--text-light);
  font-weight: 500;
}

/* CAPTCHA - SEM SOMBRA E TAMANHO REDUZIDO */
.hs-form-html .hs-recaptcha,
.hs-form-html .g-recaptcha,
.hs-form-html div[class*="recaptcha"],
.hs-form-html div[class*="captcha"] {
  transform: scale(0.92);
  transform-origin: 0 0;
  margin: var(--space-2) 0;
  box-shadow: none !important;
  filter: drop-shadow(none) !important;
}

.hs-form-html iframe[src*="recaptcha"],
.hs-form-html iframe[src*="google.com/recaptcha"] {
  margin: 0;
  box-shadow: none !important;
  filter: drop-shadow(none) !important;
}

@media (max-width: 768px) {
  .hs-form-html .hs-recaptcha,
  .hs-form-html .g-recaptcha,
  .hs-form-html div[class*="recaptcha"],
  .hs-form-html div[class*="captcha"] {
    transform: scale(0.88);
  }
}

@media (max-width: 400px) {
  .hs-form-html .hs-recaptcha,
  .hs-form-html .g-recaptcha,
  .hs-form-html div[class*="recaptcha"],
  .hs-form-html div[class*="captcha"] {
    transform: scale(0.82);
  }
}

@media (max-width: 360px) {
  .hs-form-html .hs-recaptcha,
  .hs-form-html .g-recaptcha,
  .hs-form-html div[class*="recaptcha"],
  .hs-form-html div[class*="captcha"] {
    transform: scale(0.77);
  }
}

@media (max-width: 320px) {
  .hs-form-html .hs-recaptcha,
  .hs-form-html .g-recaptcha,
  .hs-form-html div[class*="recaptcha"],
  .hs-form-html div[class*="captcha"] {
    transform: scale(0.72);
  }
}

/* Botão de submit - Melhorado */
.hs-form-html input[type="submit"],
.hs-form-html button[type="submit"],
.hs-form-html .hs-button {
  background: var(--secondary) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--radius-btn) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 14px 32px !important;
  cursor: pointer !important;
  transition: all var(--transition-base) !important;
  width: 100%;
  margin-top: var(--space-3);
  min-height: var(--touch-optimal);
  box-shadow: var(--shadow-md) !important;
  position: relative;
  overflow: hidden;
}

.hs-form-html input[type="submit"]:hover,
.hs-form-html button[type="submit"]:hover,
.hs-form-html .hs-button:hover {
  background: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg) !important;
}

.hs-form-html input[type="submit"]:active,
.hs-form-html button[type="submit"]:active,
.hs-form-html .hs-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm) !important;
}

/* Desktop: Botão menor e centralizado */
@media (min-width: 768px) {
  .hs-form-html input[type="submit"],
  .hs-form-html button[type="submit"],
  .hs-form-html .hs-button {
    width: auto;
    min-width: 220px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

.form-disclaimer {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: var(--space-2);
  line-height: 1.4;
  padding: 0 var(--space-2);
  opacity: 0.9;
}

.form-disclaimer strong {
  font-weight: 700;
  color: var(--text);
}

.form-disclaimer a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

/* ========== CTA FINAL ========== */
.final-cta {
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  z-index: 2; /* garante que a CTA fique acima do footer */
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: pulse 10s ease-in-out infinite;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.final-cta h2 {
  font-size: 24px;
  margin-bottom: var(--space-2);
  font-weight: 800;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.final-cta p {
  font-size: 15px;
  margin: 0 auto var(--space-3);
  max-width: 640px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  z-index: 1;
  max-width: 100%;
}

/* Desktop: Botões lado a lado com largura controlada */
@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
  }
  
  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: auto;
    min-width: 200px;
    max-width: 280px;
    flex: 0 1 auto;
  }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.9);
  padding: var(--space-5) var(--space-2) var(--space-3);
  width: 100vw;
  min-width: 100vw;
  left: 50%;
  margin-left: -50vw; /* full-bleed */
  position: relative;
  z-index: 0; /* fica atrás da CTA */
  box-sizing: border-box;
  /* sobe para cobrir os cantos arredondados da CTA */
  margin-top: calc(var(--radius-lg) * -1.6);
  padding-top: calc(var(--space-5) + (var(--radius-lg) * 1.6));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  justify-items: center;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-content {
    align-items: center; /* centraliza verticalmente as sections em telas maiores */
    gap: calc(var(--space-4) * 1.25);
  }
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--space-2);
  font-size: 16px;
}

.footer-section {
  margin-left: 0;
  text-align: left;
}

/* Em telas pequenas manter centralizado para melhor legibilidade */
@media (max-width: 767px) {
  .footer .footer-section {
    text-align: center !important;
  }
}

/* Mantém centralização nos outros blocos, mas força o primeiro à esquerda */
.footer .footer-section:first-child {
  text-align: left !important;
  justify-self: start !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Overpaint para cobrir anti-aliasing/linhas brancas residuais */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--text);
  pointer-events: none;
  z-index: 0;
}

/* Pseudo-elemento que pinta por trás dos cantos arredondados da .final-cta */
.footer::after {
  content: '';
  position: absolute;
  top: calc(var(--radius-lg) * -2);
  left: 0;
  right: 0;
  height: calc(var(--radius-lg) * 2);
  background: var(--text);
  border-radius: 0 0 calc(var(--radius-lg) * 2) calc(var(--radius-lg) * 2);
  pointer-events: none;
  z-index: 0;
}

.footer-section ul {
  list-style: none;
  max-width: 180px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.footer-section ul li {
  margin-bottom: var(--space-1);
}

.footer-section a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  min-height: var(--touch-min);
  display: inline-block;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: var(--space-2);
  text-align: center;
  font-size: 13px;
}

/* ========== LEGAL ========== */
.legal-disclaimer {
  background: var(--bg-light);
  padding: var(--space-4) var(--space-2);
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  border-top: 1px solid var(--border);
}

/* ========== RESPONSIVE - TABLET ========== */
@media (min-width: 768px) {
  .hero-section {
    padding-top: 140px; /* Espaçamento completo para header flutuante em desktop */
  }
  
  .hero-section h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  
  .hero-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-5);
  }
  
  .hero-content {
    flex: 1;
    max-width: 600px;
    order: 1; /* Conteúdo à esquerda */
  }
  
  .hero-image {
    display: flex;
    flex: 0 0 auto;
    max-width: 300px;
    order: 2; /* Imagem à direita */
  }
  
  .calc-reduz .painel-acao {
    padding: var(--space-4);
  }
  
  .steps-grid,
  .differentials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  
  .hero-cta-group {
    flex-direction: row;
  }
  
  .btn-primary,
  .btn-secondary {
    width: auto;
    padding: 12px var(--space-4);
  }
}

/* ========== RESPONSIVE - DESKTOP ========== */
@media (min-width: 900px) {
  .hero-section h1 { font-size: 48px; }
  .section-title { font-size: 36px; }
  
  .hero-wrapper {
    gap: var(--space-6);
    align-items: center;
  }
  
  .hero-content {
    max-width: 760px;
    order: 1; /* Conteúdo à esquerda */
  }
  
  .hero-image {
    max-width: 400px;
    order: 2; /* Imagem à direita */
  }
  
  .piggy-bank-container {
    height: 400px;
    padding-bottom: 50px;
  }
  
  .piggy-bank-wrapper {
    left: 4.5rem;
    bottom: 5%;
  }
  
  .piggy-bank {
    max-width: 210px;
  }
  
  .hand-coin {
    max-width: 220px;
  }
  
  
  .eligibility-content {
    flex-direction: row;
    gap: var(--space-4);
    align-items: center; /* Centraliza verticalmente as duas colunas */
  }
  
  .eligibility-text {
    flex: 0 0 55%;
  }
  
  .eligibility-highlight {
    flex: 0 0 45%;
    padding: var(--space-2) var(--space-3);
    max-height: none;
    align-self: center;
  }
  
  .eligibility-highlight h3 {
    font-size: 17px;
    margin-bottom: var(--space-2);
  }
  
  .eligibility-highlight p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--space-2);
  }
  
  .eligibility-highlight .btn-primary {
    margin-top: auto;
    width: 100%;
    padding: 12px var(--space-3);
  }
  
  .differentials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ========== MOBILE ========== */
@media (max-width: 768px) {
  /* Animações mais rápidas no mobile para melhor performance */
  .hero-section::before,
  .final-cta::before {
    animation-duration: 8s;
  }
  
  .quick-answer-box,
  .hero-badge,
  .hero-section h1,
  .hero-section .subhead,
  .hero-cta-group,
  .hero-disclaimer {
    animation-duration: 0.4s;
  }
  
  .calc-reduz .calculadora-redesign-container {
    animation-duration: 0.4s;
  }
  
  /* Mobile: Hero simplificado e otimizado */
  .hero-wrapper {
    gap: var(--space-3);
  }
  
  .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-2);
    max-width: 100%;
    order: -1; /* Imagem aparece antes do conteúdo no mobile */
  }
  
  .hero-content {
    order: 1;
  }
  
  .piggy-bank-container {
    height: 250px;
    padding-bottom: 0;
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  /* Mobile: Porco centralizado e menor - animação suave */
  .piggy-bank-wrapper {
    position: absolute;
    left: 50%;
    bottom: 10%;
    z-index: 3;
    /* Posição final correta - sem animação de entrada */
    transform: translateX(-50%);
    opacity: 1;
  }
  
  .piggy-bank {
    max-width: 140px;
    display: block;
    transform-origin: center center;
    /* Animação apenas no elemento filho - não afeta posição do wrapper */
    animation: floatMobile 4s ease-in-out infinite;
  }
  
  @keyframes floatMobile {
    0%, 100% {
      transform: translateY(0px) rotate(0deg);
    }
    25% {
      transform: translateY(-3px) rotate(-1.5deg);
    }
    50% {
      transform: translateY(-5px) rotate(0deg);
    }
    75% {
      transform: translateY(-3px) rotate(1.5deg);
    }
  }
  
  /* Mobile: Mão simplificada - animação suave e sutil */
  .hand-coin-wrapper {
    position: absolute;
    top: 5%;
    left: 50%;
    z-index: 2;
    /* Posição final correta - sem animação de entrada */
    transform: translateX(-50%);
    opacity: 1;
  }
  
  .hand-coin {
    max-width: 120px;
    display: block;
    transform-origin: center center;
    /* Animação apenas no elemento filho - não afeta posição do wrapper */
    animation: handFloatMobile 3.5s ease-in-out 1s infinite;
  }
  
  @keyframes handFloatMobile {
    0%, 100% {
      transform: translateY(0px) rotate(0deg);
    }
    25% {
      transform: translateY(-2px) rotate(0.5deg);
    }
    50% {
      transform: translateY(-3px) rotate(0deg);
    }
    75% {
      transform: translateY(-2px) rotate(-0.5deg);
    }
  }
  
  .adhesion-section {
    padding: var(--space-4) var(--space-2);
  }
  
  .form-wrapper {
    max-width: 100%;
  }
  
  .form-header {
    margin-bottom: var(--space-2);
  }
  
  .form-header .section-title {
    font-size: 20px;
    margin-bottom: var(--space-1);
  }
  
  .form-header .section-subtitle {
    font-size: 13px;
    line-height: 1.4;
  }
  
  .form-container {
    min-height: 400px;
  }
  
  /* Mobile: Ajustes dos campos */
  .hs-form-html input[type="text"],
  .hs-form-html input[type="email"],
  .hs-form-html input[type="tel"],
  .hs-form-html input[type="number"],
  .hs-form-html input[type="url"],
  .hs-form-html textarea,
  .hs-form-html select {
    font-size: 16px; /* Previne zoom no iOS */
    padding: 12px 14px;
  }
  
  .hs-form-html label,
  .hs-form-html .hs-form-field > label,
  .hs-form-html .hs-form-field label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .hs-form-html .hs-form-field {
    margin-bottom: var(--space-2);
  }
  
  /* Mobile: Input file melhorado */
  .hs-form-html input[type="file"] {
    padding: 14px 12px;
    font-size: 14px;
    min-height: 56px;
  }
  
  /* Mobile: Ajustes específicos do file input */
  .hs-form-html input[type="file"] {
    padding: 14px 12px;
    font-size: 14px;
    min-height: 56px;
  }
  
  .hs-form-html input[type="file"]::-webkit-file-upload-button,
  .hs-form-html input[type="file"]::file-selector-button {
    padding: 10px 18px;
    font-size: 14px;
    margin-right: 12px;
    display: inline-block;
  }
  
  .hs-form-html input[type="submit"],
  .hs-form-html button[type="submit"],
  .hs-form-html .hs-button {
    padding: 14px 24px !important;
    font-size: 15px !important;
  }
  
  .form-disclaimer {
    font-size: 11px;
    line-height: 1.4;
    margin-top: var(--space-1);
  }
}

@media (max-width: 400px) {
  .form-header .section-title {
    font-size: 18px;
  }
  
  .form-header .section-subtitle {
    font-size: 12px;
  }
  
  .form-disclaimer {
    font-size: 10px;
  }
}

/* ========== ACESSIBILIDADE ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  /* Desabilita animações do cofrinho para usuários que preferem movimento reduzido */
  .piggy-bank,
  .hand-coin-wrapper {
    animation: none !important;
  }
  
  .piggy-bank-wrapper {
    animation: none !important;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

@supports (-webkit-touch-callout: none) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Performance: Containment e otimizações */
.hero-section,
.calc-reduz,
.section-title {
  contain: layout style paint;
}

.how-it-works,
.eligibility-section,
.differentials-section,
.faq-section,
.adhesion-section,
.final-cta {
  contain: layout style;
}

.savings-section {
  contain: layout style;
}

.hero-section { /* permite o gradiente extrapolar o topo */
  contain: layout style;
}

.hero-section::before,
.final-cta::before {
  transform: translateZ(0);
  will-change: transform, opacity;
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 80px; /* Espaçamento reduzido para mobile pequeno */
  }
  
  .step-card,
  .differential-card,
  .faq-item {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  }
  .calc-reduz .calculadora-redesign-container {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  /* Mobile pequeno: Hero ainda mais compacto */
  .piggy-bank-container {
    height: 200px;
    max-width: 240px;
  }
  
  .piggy-bank {
    max-width: 120px;
  }
  
  .hand-coin {
    max-width: 100px;
  }
  
  .hand-coin-wrapper {
    top: 8%;
  }
  
  .piggy-bank-wrapper {
    bottom: 5%;
  }
}