/* ============================================================
   METRI — LANDING PAGE (Refatoração visual Semrush-style)
   Fontes: Sora (headings) + DM Sans (body)
   1.  Design Tokens
   2.  Reset e Base
   3.  Utilitários (container, buttons, labels)
   4.  Top Banner
   5.  Header / Navbar
   6.  Hero
   7.  Logo Strip
   8.  Feature Card Principal
   9.  Seção Escura (Dark Stat)
   10. Solutions Grid
   11. Como Funciona
   12. Depoimentos
   13. Stats / Números
   14. Sobre
   15. CTA Final
   16. FAQ
   17. Footer
   18. WhatsApp flutuante
   19. Animações
   20. Responsividade
   21. Acessibilidade
============================================================ */


/* ============================================================
   1. DESIGN TOKENS
============================================================ */
:root {
  /* Paleta base */
  --color-primary:      #0C447C;
  --color-button:       #185FA5;
  --color-accent:       #1D9E75;
  --color-bg-section:   #E6F1FB;
  --color-bg-page:      #F4F5F7;
  --color-card:         #FFFFFF;
  --color-text-main:    #2C2C2A;
  --color-text-soft:    #5F5E5A;
  --color-border:       #E2E8EF;
  --color-error:        #DC2626;
  --color-star:         #F59E0B;

  /* Footer */
  --color-footer-bg:    #2C2C2A;

  /* Tipografia */
  --font-heading: 'Sora', -apple-system, sans-serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espaçamento de seção */
  --section-py:        120px;

  /* Container */
  --container-max:     1200px;
  --container-px:      24px;

  /* Bordas */
  --radius-sm:         8px;
  --radius:            12px;
  --radius-lg:         20px;
  --radius-xl:         24px;
  --radius-pill:       100px;

  /* Sombras */
  --shadow-sm:   0 2px 8px rgba(12, 68, 124, 0.06);
  --shadow-card: 0 4px 24px rgba(12, 68, 124, 0.08);
  --shadow-md:   0 8px 32px rgba(12, 68, 124, 0.12);
  --shadow-lg:   0 16px 48px rgba(12, 68, 124, 0.16);

  /* Transições */
  --ease:        0.2s ease;
}


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

html {
  font-size:       16px;
  scroll-behavior: smooth;
}

body {
  font-family:             var(--font-body);
  background-color:        var(--color-bg-page);
  color:                   var(--color-text-main);
  line-height:             1.7;
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
}


/* ============================================================
   3. UTILITÁRIOS
============================================================ */

/* Container */
.container {
  width:     100%;
  max-width: var(--container-max);
  margin:    0 auto;
  padding:   0 var(--container-px);
}

/* Skip link */
.skip-link {
  position:   absolute;
  top:        -100%;
  left:       0;
  z-index:    9999;
  background: var(--color-primary);
  color:      #fff;
  padding:    10px 20px;
  font-size:  0.9375rem;
  font-weight: 600;
  transition: top var(--ease);
}
.skip-link:focus { top: 0; }

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

/* --- Botões --- */
.btn {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  padding:         14px 28px;
  font-family:     var(--font-heading);
  font-size:       1rem;
  font-weight:     600;
  cursor:          pointer;
  border:          none;
  transition:      all var(--ease);
  text-decoration: none;
  white-space:     nowrap;
  line-height:     1;
}
.btn i { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  background-color: var(--color-button);
  color:            #fff;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(24, 95, 165, 0.35);
  transform: translateY(-1px);
}

.btn--outline {
  background:  transparent;
  color:       var(--color-primary);
  border:      2px solid var(--color-primary);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--color-bg-section);
}

.btn--white {
  background: #fff;
  color:      var(--color-primary);
}
.btn--white:hover,
.btn--white:focus-visible {
  background:  #EEF5FF;
  box-shadow:  0 4px 16px rgba(0, 0, 0, 0.12);
  transform:   translateY(-1px);
}

.btn--pill  { border-radius: var(--radius-pill); }
.btn--lg    { padding: 16px 36px; font-size: 1.0625rem; }
.btn--sm    { padding: 10px 20px; font-size: 0.9375rem; }
.btn--full  { width: 100%; justify-content: center; }

/* --- Labels de categoria --- */
.label {
  display:        inline-block;
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color:          var(--color-button);
  margin-bottom:  12px;
}
.label--light { color: rgba(255, 255, 255, 0.70); }

/* --- Cabeçalho de seção (genérico) --- */
.section-header {
  text-align: center;
  max-width:  640px;
  margin:     0 auto 60px;
}
.section-header h2 {
  font-size:     clamp(24px, 4vw, 38px);
  font-weight:   700;
  color:         var(--color-text-main);
  line-height:   1.25;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size:  1.0625rem;
  color:      var(--color-text-soft);
  line-height: 1.7;
}

/* Focus universal */
:focus-visible {
  outline:        2px solid var(--color-button);
  outline-offset: 3px;
  border-radius:  4px;
}


/* ============================================================
   4. TOP BANNER
============================================================ */
.top-banner {
  display:         flex;
  align-items:     center;
  justify-content: center;
  height:          44px;
  background:      var(--color-primary);
  color:           #fff;
  font-family:     var(--font-body);
  font-size:       13.5px;
  font-weight:     500;
  letter-spacing:  0.02em;
  text-align:      center;
  padding:         0 var(--container-px);
  transition:      background-color var(--ease);
}
.top-banner:hover { background: #0a3868; }

.top-banner__text {
  display:     flex;
  align-items: center;
  gap:         8px;
}
.top-banner__text i {
  width:  15px;
  height: 15px;
  opacity: 0.85;
}


/* ============================================================
   5. HEADER / NAVBAR
============================================================ */
.header {
  position:         fixed;
  top:              44px; /* abaixo do top banner */
  left:             0;
  right:            0;
  z-index:          100;
  background-color: #fff;
  border-bottom:    1px solid var(--color-border);
  transition:       box-shadow var(--ease), top var(--ease);
}
.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.10);
}
/* Quando o banner some (banner-hidden adicionado via JS se necessário) */
.header.no-banner { top: 0; }

.nav {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          68px;
  gap:             24px;
}

/* Logo */
.nav__logo {
  display:     flex;
  align-items: center;
  gap:         3px;
  flex-shrink: 0;
}
.logo-text {
  font-family:    var(--font-heading);
  font-size:      22px;
  font-weight:    700;
  letter-spacing: -0.04em;
  color:          var(--color-primary);
}
.logo-dot {
  width:         7px;
  height:        7px;
  background:    var(--color-accent);
  border-radius: 50%;
  margin-bottom: 14px;
}

/* Links de navegação (desktop) */
.nav__links { display: none; }

/* Ações desktop */
.nav__actions {
  display:     none;
  align-items: center;
  gap:         10px;
  flex-shrink: 0;
}

/* Hambúrguer */
.nav__hamburger {
  background:    none;
  border:        none;
  color:         var(--color-primary);
  cursor:        pointer;
  display:       flex;
  align-items:   center;
  padding:       6px;
  border-radius: var(--radius-sm);
  transition:    background-color var(--ease);
}
.nav__hamburger:hover { background: var(--color-bg-section); }
.nav__hamburger i { width: 24px; height: 24px; }

/* Menu mobile expandido */
.nav__links.is-open {
  display:          flex;
  flex-direction:   column;
  position:         fixed;
  top:              112px; /* 44 banner + 68 nav */
  left:             0;
  right:            0;
  background-color: #fff;
  padding:          24px var(--container-px) 32px;
  gap:              20px;
  border-top:       1px solid var(--color-border);
  box-shadow:       0 8px 24px rgba(0, 0, 0, 0.10);
}
.nav__links.is-open .nav__mobile-cta-item {
  display:    block;
  margin-top: 8px;
}
.nav__mobile-cta-item { display: none; }

.nav__link {
  font-family:  var(--font-body);
  font-size:    0.9375rem;
  font-weight:  500;
  color:        var(--color-text-soft);
  transition:   color var(--ease);
  padding:      4px 0;
}
.nav__link:hover { color: var(--color-primary); }


/* ============================================================
   6. HERO
============================================================ */
.hero {
  position:      relative;
  background:    linear-gradient(135deg, #E6F1FB 0%, #F4F5F7 55%, #FFFFFF 100%);
  padding-top:   calc(44px + 68px + 100px);
  padding-bottom: 0;
  overflow:      hidden;
  text-align:    center;
}

/* Barras verticais decorativas */
.hero__bars {
  position:       absolute;
  inset:          0;
  display:        flex;
  align-items:    flex-end;
  justify-content: center;
  gap:            clamp(14px, 2.5vw, 28px);
  padding-bottom: 0;
  pointer-events: none;
  z-index:        0;
}
.bar {
  display:          block;
  width:            clamp(16px, 1.8vw, 28px);
  background:       #185FA5;
  opacity:          0.07;
  border-radius:    4px 4px 0 0;
  transform-origin: bottom;
}
/* Alturas variadas simulando curva de preços */
.bar--1  { height: 30%; }
.bar--2  { height: 42%; }
.bar--3  { height: 55%; }
.bar--4  { height: 66%; }
.bar--5  { height: 78%; }
.bar--6  { height: 90%; }
.bar--7  { height: 82%; }
.bar--8  { height: 70%; }
.bar--9  { height: 58%; }
.bar--10 { height: 44%; }
.bar--11 { height: 34%; }
.bar--12 { height: 24%; }

@media (prefers-reduced-motion: no-preference) {
  .bar { animation: bar-pulse 4s ease-in-out infinite; }
  .bar--1  { animation-delay: 0.0s; }
  .bar--2  { animation-delay: 0.2s; }
  .bar--3  { animation-delay: 0.4s; }
  .bar--4  { animation-delay: 0.6s; }
  .bar--5  { animation-delay: 0.8s; }
  .bar--6  { animation-delay: 1.0s; }
  .bar--7  { animation-delay: 0.9s; }
  .bar--8  { animation-delay: 0.7s; }
  .bar--9  { animation-delay: 0.5s; }
  .bar--10 { animation-delay: 0.3s; }
  .bar--11 { animation-delay: 0.1s; }
  .bar--12 { animation-delay: 0.0s; }
}

.hero__container {
  position:  relative;
  z-index:   1;
  max-width: 760px;
  margin:    0 auto;
}

/* Eyebrow */
.hero__eyebrow {
  display:         inline-flex;
  align-items:     center;
  gap:             7px;
  font-family:     var(--font-body);
  font-size:       13px;
  font-weight:     600;
  text-transform:  uppercase;
  letter-spacing:  0.12em;
  color:           var(--color-button);
  background:      rgba(24, 95, 165, 0.08);
  border:          1px solid rgba(24, 95, 165, 0.15);
  border-radius:   var(--radius-pill);
  padding:         6px 16px;
  margin-bottom:   28px;
}
.hero__eyebrow i { width: 14px; height: 14px; }

/* H1 */
.hero__title {
  font-size:     clamp(38px, 6.5vw, 72px);
  font-weight:   700;
  color:         var(--color-primary);
  line-height:   1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* Subtítulo */
.hero__subtitle {
  font-size:     clamp(16px, 2vw, 18px);
  color:         var(--color-text-soft);
  line-height:   1.7;
  max-width:     520px;
  margin:        0 auto 40px;
}

/* CTA form */
.hero__cta-form { margin-bottom: 24px; }

.hero__input-wrapper {
  display:       flex;
  align-items:   center;
  background:    #fff;
  border-radius: var(--radius-pill);
  box-shadow:    0 2px 16px rgba(12, 68, 124, 0.10);
  padding:       6px 6px 6px 20px;
  max-width:     540px;
  margin:        0 auto;
  gap:           8px;
  border:        1.5px solid var(--color-border);
  transition:    border-color var(--ease), box-shadow var(--ease);
}
.hero__input-wrapper:focus-within {
  border-color: var(--color-button);
  box-shadow:   0 4px 20px rgba(12, 68, 124, 0.15);
}
.hero__input-icon {
  width:     18px;
  height:    18px;
  color:     var(--color-text-soft);
  flex-shrink: 0;
}
.hero__input-wrapper input {
  flex:       1;
  border:     none;
  outline:    none;
  font-family: var(--font-body);
  font-size:  1rem;
  color:      var(--color-text-main);
  background: transparent;
  min-width:  0;
}
.hero__input-wrapper input::placeholder { color: #A0AAB4; }

.hero__cta-disclaimer {
  font-size:  13px;
  color:      var(--color-text-soft);
  margin-top: 12px;
  text-align: center;
}

/* Prova social */
.hero__social-proof {
  display:     flex;
  align-items: center;
  justify-content: center;
  gap:         12px;
  margin-bottom: 60px;
}
.hero__social-proof p {
  display:     flex;
  align-items: center;
  gap:         6px;
  font-size:   0.9375rem;
  color:       var(--color-text-soft);
}
.hero__social-proof p i {
  width:  16px;
  height: 16px;
  color:  var(--color-accent);
}
.hero__social-proof strong { color: var(--color-text-main); }

.hero__avatars {
  display: flex;
}
.avatar {
  width:         36px;
  height:        36px;
  border-radius: 50%;
  background:    var(--color-primary);
  color:         #fff;
  font-family:   var(--font-heading);
  font-size:     11px;
  font-weight:   700;
  display:       flex;
  align-items:   center;
  justify-content: center;
  border:        2px solid #fff;
  margin-left:   -8px;
}
.avatar:first-child { margin-left: 0; }

/* Mockup wrapper (abaixo do hero) */
.hero__mockup-wrapper {
  position:         relative;
  z-index:          1;
  background:       transparent;
  padding-top:      40px;
}
.hero__mockup {
  position:  relative;
  max-width: 420px;
  margin:    0 auto;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__mockup {
    animation: float 5s ease-in-out infinite;
  }
}

/* Card principal do mockup */
.mock-card--main {
  background:    var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow:    var(--shadow-lg);
  padding:       24px;
  overflow:      hidden;
}
.mock-card__header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   18px;
  padding-bottom:  16px;
  border-bottom:   1px solid var(--color-bg-section);
  gap:             12px;
}
.mock-card__title {
  display:     flex;
  align-items: center;
  gap:         8px;
  font-weight: 600;
  font-size:   0.9375rem;
  color:       var(--color-text-main);
  font-family: var(--font-heading);
}
.mock-card__title i { width: 16px; height: 16px; color: var(--color-button); }

.mock-badge {
  display:     inline-flex;
  align-items: center;
  gap:         4px;
  padding:     4px 10px;
  border-radius: 20px;
  font-size:   11px;
  font-weight: 700;
  white-space: nowrap;
}
.mock-badge--success {
  background: rgba(29, 158, 117, 0.12);
  color:      var(--color-accent);
}
.mock-badge i { width: 12px; height: 12px; }

.mock-card__body { display: flex; flex-direction: column; margin-bottom: 20px; }
.mock-line {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  font-size:       0.875rem;
  color:           var(--color-text-soft);
  padding:         9px 0;
  border-bottom:   1px solid #F0F2F5;
}
.mock-line:last-child { border-bottom: none; }
.mock-line__value { font-weight: 500; color: var(--color-text-main); }

.mock-card__footer {
  background:    linear-gradient(135deg, var(--color-bg-section), #F0F7FF);
  margin:        0 -24px -24px;
  padding:       20px 24px;
  display:       flex;
  flex-direction: column;
  gap:           12px;
}
.mock-price__label {
  font-size:      0.6875rem;
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color:          var(--color-text-soft);
  margin-bottom:  4px;
}
.mock-price__value {
  font-family:  var(--font-heading);
  font-size:    1.625rem;
  font-weight:  700;
  color:        var(--color-primary);
}
.mock-margin__bar {
  height:        6px;
  background:    rgba(12, 68, 124, 0.10);
  border-radius: 3px;
  overflow:      hidden;
  margin-bottom: 6px;
}
.mock-margin__fill { height: 100%; background: var(--color-accent); border-radius: 3px; }
.mock-margin__text { font-size: 0.8125rem; font-weight: 600; color: var(--color-accent); text-align: right; }

.mock-mini {
  display:       flex;
  align-items:   center;
  gap:           10px;
  background:    var(--color-card);
  border-radius: var(--radius);
  padding:       11px 14px;
  box-shadow:    var(--shadow-md);
  position:      absolute;
  white-space:   nowrap;
}
.mock-mini i { width: 20px; height: 20px; color: var(--color-button); flex-shrink: 0; }
.mock-mini p { font-size: 11px; color: var(--color-text-soft); margin-bottom: 2px; }
.mock-mini strong { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; color: var(--color-primary); }
.mock-mini--top    { top: -22px; right: -16px; }
.mock-mini--bottom { bottom: -22px; left: -16px; }


/* ============================================================
   7. LOGO STRIP
============================================================ */
.logo-strip {
  background:   #fff;
  padding:      52px 0 44px;
  border-top:   1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow:     hidden;
}
.logo-strip__header { text-align: center; margin-bottom: 28px; }
.logo-strip__label {
  font-family:    var(--font-body);
  font-size:      12px;
  font-weight:    500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color:          var(--color-text-soft);
  opacity:        0.70;
}

.logo-strip__track-wrapper {
  overflow:   hidden;
  width:      100%;
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.logo-strip__track {
  display:    flex;
  align-items: center;
  gap:        56px;
  width:      max-content;
  animation:  logo-scroll 22s linear infinite;
}
.logo-item {
  font-family:    var(--font-heading);
  font-size:      1.125rem;
  font-weight:    700;
  letter-spacing: 0.06em;
  color:          var(--color-text-soft);
  opacity:        0.45;
  white-space:    nowrap;
  user-select:    none;
}


/* ============================================================
   8. FEATURE CARD PRINCIPAL
============================================================ */
.feature-hero {
  background: var(--color-bg-page);
  padding:    var(--section-py) 0;
}

.feature-hero__card {
  background:    linear-gradient(135deg, var(--color-primary) 0%, #185FA5 100%);
  border-radius: var(--radius-xl);
  padding:       60px 56px;
  display:       grid;
  grid-template-columns: 1fr;
  gap:           48px;
  align-items:   center;
  overflow:      hidden;
  position:      relative;
}

/* Decoração de fundo do card */
.feature-hero__card::before {
  content:       '';
  position:      absolute;
  top:           -60px;
  right:         -60px;
  width:         300px;
  height:        300px;
  background:    rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.feature-hero__content { color: #fff; }
.feature-hero__content h2 {
  font-size:     clamp(24px, 4vw, 38px);
  font-weight:   700;
  line-height:   1.25;
  margin-bottom: 18px;
  color:         #fff;
}
.feature-hero__content p {
  font-size:     1.0625rem;
  color:         rgba(255, 255, 255, 0.80);
  line-height:   1.7;
  margin-bottom: 32px;
}

/* Mini tabela mockup */
.feature-mock {
  background:    rgba(255, 255, 255, 0.08);
  border:        1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  overflow:      hidden;
  font-size:     0.875rem;
}
.feature-mock__row {
  display:         grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:             8px;
  padding:         12px 16px;
  border-bottom:   1px solid rgba(255, 255, 255, 0.08);
  color:           rgba(255, 255, 255, 0.80);
  align-items:     center;
}
.feature-mock__row:last-of-type { border-bottom: none; }
.feature-mock__row--header {
  background:    rgba(255, 255, 255, 0.06);
  font-family:   var(--font-body);
  font-size:     11px;
  font-weight:   600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:         rgba(255, 255, 255, 0.50);
}
.feature-mock__row .green { color: #4ADE80; font-weight: 600; }
.feature-mock__row .bold  { color: #fff; font-weight: 700; }
.feature-mock__footer {
  display:     flex;
  align-items: center;
  gap:         8px;
  padding:     12px 16px;
  background:  rgba(29, 158, 117, 0.15);
  color:       #4ADE80;
  font-size:   12px;
  font-weight: 600;
}
.feature-mock__footer i { width: 14px; height: 14px; }


/* ============================================================
   9. SEÇÃO ESCURA (DARK STAT)
============================================================ */
.dark-stat {
  background: var(--color-primary);
  padding:    var(--section-py) 0;
  overflow:   hidden;
}

.dark-stat__container {
  display:     grid;
  grid-template-columns: 1fr;
  gap:         56px;
  align-items: center;
}

.dark-stat__content { color: #fff; }
.dark-stat__content h2 {
  font-size:     clamp(26px, 4vw, 40px);
  font-weight:   700;
  color:         #fff;
  line-height:   1.25;
  margin-bottom: 18px;
}
.dark-stat__content p {
  font-size:     1.0625rem;
  color:         rgba(255, 255, 255, 0.75);
  line-height:   1.7;
  margin-bottom: 32px;
  max-width:     480px;
}

/* Gráfico de barras CSS */
.stat-chart {
  background:    rgba(255, 255, 255, 0.06);
  border:        1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding:       28px 24px 20px;
}
.stat-chart__label {
  font-family:  var(--font-body);
  font-size:    12px;
  font-weight:  600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color:        rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
}
.stat-chart__bars {
  display:     flex;
  align-items: flex-end;
  gap:         28px;
  height:      160px;
}
.stat-bar {
  flex:           1;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            10px;
  height:         100%;
  justify-content: flex-end;
}
.stat-bar__fill {
  width:         100%;
  border-radius: 6px 6px 0 0;
  display:       flex;
  align-items:   flex-start;
  justify-content: center;
  padding-top:   8px;
  font-family:   var(--font-body);
  font-size:     11px;
  font-weight:   600;
  color:         rgba(255,255,255,0.70);
  transition:    height 1s ease;
}
.stat-bar__fill--real   { background: rgba(255, 255, 255, 0.20); }
.stat-bar__fill--actual { background: var(--color-accent); }

.stat-bar__val {
  font-family:  var(--font-heading);
  font-size:    1.25rem;
  font-weight:  700;
  color:        rgba(255, 255, 255, 0.85);
}
.stat-bar__val.accent { color: var(--color-accent); }

.stat-chart__caption {
  font-size:  12px;
  color:      rgba(255, 255, 255, 0.40);
  margin-top: 16px;
  text-align: center;
}


/* ============================================================
   10. SOLUTIONS GRID / FUNCIONALIDADES
============================================================ */
.solutions {
  background: var(--color-bg-page);
  padding:    var(--section-py) 0;
}

.solutions__header {
  max-width: 700px;
  margin-bottom: 60px;
}
.solutions__header h2 {
  font-size:      clamp(28px, 5vw, 52px);
  font-weight:    700;
  color:          var(--color-text-main);
  line-height:    1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom:  16px;
}
.solutions__header .section-subtitle { text-align: left; }

.solutions-grid {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   20px;
}

.solution-card {
  background:    var(--color-bg-section);
  border-radius: var(--radius-lg);
  padding:       32px;
  border:        1px solid rgba(12, 68, 124, 0.06);
  box-shadow:    var(--shadow-sm);
  display:       flex;
  flex-direction: column;
  gap:           12px;
  transition:    transform var(--ease), box-shadow var(--ease);
  position:      relative;
  overflow:      hidden;
}
.solution-card:hover {
  transform:  translateY(-4px);
  box-shadow: var(--shadow-md);
}

.solution-card__top {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}
.solution-card__label {
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color:          var(--color-button);
}
.solution-card__plus {
  width:           28px;
  height:          28px;
  border-radius:   50%;
  border:          1.5px solid rgba(12, 68, 124, 0.20);
  background:      transparent;
  color:           var(--color-button);
  font-size:       1.125rem;
  font-weight:     400;
  cursor:          default;
  display:         flex;
  align-items:     center;
  justify-content: center;
  line-height:     1;
  transition:      background var(--ease), border-color var(--ease);
}
.solution-card:hover .solution-card__plus {
  background:    var(--color-button);
  border-color:  var(--color-button);
  color:         #fff;
}

.solution-card h3 {
  font-size:  1.0625rem;
  font-weight: 700;
  color:      var(--color-text-main);
  line-height: 1.35;
}
.solution-card p {
  font-size:   0.9375rem;
  color:       var(--color-text-soft);
  line-height: 1.65;
  flex:        1;
}

.solution-card__icon {
  align-self: flex-end;
  width:      48px;
  height:     48px;
  background: rgba(12, 68, 124, 0.08);
  border-radius: var(--radius);
  display:    flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  transition: background var(--ease);
}
.solution-card:hover .solution-card__icon { background: var(--color-button); }
.solution-card__icon i { width: 22px; height: 22px; color: var(--color-button); }
.solution-card:hover .solution-card__icon i { color: #fff; }


/* ============================================================
   11. COMO FUNCIONA
============================================================ */
.how-it-works {
  background: #fff;
  padding:    var(--section-py) 0;
}

.steps {
  display:        flex;
  flex-direction: column;
  max-width:      760px;
  margin:         0 auto;
}
.step {
  display:       grid;
  grid-template-columns: 52px 1fr;
  gap:           24px;
  padding:       28px 0;
  border-bottom: 1px solid var(--color-bg-section);
}
.step:last-child { border-bottom: none; }

.step__number {
  font-family: var(--font-heading);
  font-size:   2.25rem;
  font-weight: 700;
  color:       var(--color-border);
  line-height: 1;
  padding-top: 2px;
  user-select: none;
}
.step__content {
  display:        flex;
  flex-direction: column;
  gap:            8px;
}
.step__icon {
  width:          40px;
  height:         40px;
  background:     var(--color-bg-section);
  border-radius:  var(--radius-sm);
  display:        flex;
  align-items:    center;
  justify-content: center;
  margin-bottom:  4px;
}
.step__icon i { width: 18px; height: 18px; color: var(--color-button); }
.step__content h3 {
  font-size:   1.0625rem;
  font-weight: 700;
  color:       var(--color-text-main);
}
.step__content p {
  font-size:   0.9375rem;
  color:       var(--color-text-soft);
  line-height: 1.65;
  max-width:   540px;
}


/* ============================================================
   12. DEPOIMENTOS
============================================================ */
.testimonials {
  background: var(--color-bg-section);
  padding:    var(--section-py) 0;
}

.testimonials-grid {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   20px;
}

.testimonial-card {
  background:     #fff;
  border-radius:  var(--radius-lg);
  padding:        32px;
  box-shadow:     var(--shadow-card);
  border:         1px solid rgba(12, 68, 124, 0.06);
  display:        flex;
  flex-direction: column;
  gap:            18px;
  transition:     transform var(--ease), box-shadow var(--ease);
}
.testimonial-card:hover {
  transform:  translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card__stars span {
  color:          var(--color-star);
  font-size:      1.125rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size:   0.9375rem;
  color:       var(--color-text-main);
  line-height: 1.75;
  font-style:  italic;
  flex:        1;
}

.testimonial-card__author {
  display:     flex;
  align-items: flex-start;
  gap:         14px;
}
.testimonial-card__avatar {
  width:         44px;
  height:        44px;
  background:    var(--color-primary);
  border-radius: 50%;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-family:   var(--font-heading);
  font-size:     0.8125rem;
  font-weight:   700;
  color:         #fff;
  flex-shrink:   0;
}
.testimonial-card__author strong {
  display:    block;
  font-size:  0.9375rem;
  font-weight: 600;
  color:      var(--color-text-main);
  margin-bottom: 2px;
}
.testimonial-card__author > div > span {
  display:   block;
  font-size: 0.8125rem;
  color:     var(--color-text-soft);
}
.testimonial-card__badge {
  display:     inline-flex !important;
  align-items: center;
  gap:         4px;
  margin-top:  6px;
  font-size:   11px !important;
  font-weight: 600 !important;
  color:       var(--color-accent) !important;
  background:  rgba(29, 158, 117, 0.10);
  border-radius: var(--radius-pill);
  padding:     3px 9px 3px 6px;
}
.testimonial-card__badge i { width: 12px; height: 12px; }


/* ============================================================
   13. STATS / NÚMEROS
============================================================ */
.stats-section {
  background: var(--color-bg-section);
  padding:    80px 0;
  border-top: 1px solid rgba(12, 68, 124, 0.08);
}

.stats-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   2px;
}

.stat-item {
  background:  #fff;
  padding:     40px 24px;
  text-align:  center;
  display:     flex;
  flex-direction: column;
  align-items: center;
  gap:         8px;
}
.stat-item:first-child { border-radius: var(--radius-lg) 0 0 0; }
.stat-item:nth-child(2) { border-radius: 0 var(--radius-lg) 0 0; }
.stat-item:nth-child(3) { border-radius: 0 0 0 var(--radius-lg); }
.stat-item:last-child   { border-radius: 0 0 var(--radius-lg) 0; }

.stat-item__number {
  display:     block;
  font-family: var(--font-heading);
  font-size:   clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color:       var(--color-primary);
  line-height: 1;
}
.stat-item__label {
  font-size:  0.875rem;
  color:      var(--color-text-soft);
  line-height: 1.4;
  max-width:  140px;
}


/* ============================================================
   14. SOBRE
============================================================ */
.about {
  background: #fff;
  padding:    var(--section-py) 0;
}

.about__container {
  display:     grid;
  grid-template-columns: 1fr;
  gap:         48px;
  align-items: center;
}
.about__image { display: flex; justify-content: center; }
.about__photo-placeholder {
  width:          260px;
  height:         320px;
  background:     var(--color-bg-section);
  border-radius:  var(--radius-xl);
  display:        flex;
  flex-direction: column;
  align-items:    center;
  justify-content: center;
  gap:            14px;
  border:         2px dashed rgba(12, 68, 124, 0.20);
  color:          var(--color-text-soft);
  font-size:      0.875rem;
  text-align:     center;
  padding:        20px;
}
.about__photo-placeholder i { width: 56px; height: 56px; opacity: 0.40; }

.about__content h2 {
  font-size:     clamp(20px, 3vw, 32px);
  font-weight:   700;
  color:         var(--color-text-main);
  line-height:   1.3;
  margin-bottom: 20px;
}
.about__content p {
  font-size:     0.9375rem;
  color:         var(--color-text-soft);
  line-height:   1.75;
  margin-bottom: 14px;
}
.about__content p strong { color: var(--color-text-main); font-weight: 600; }

.about__credentials { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.credential {
  display:     flex;
  align-items: center;
  gap:         10px;
  font-size:   0.9375rem;
  color:       var(--color-text-soft);
}
.credential i { width: 17px; height: 17px; color: var(--color-accent); flex-shrink: 0; }


/* ============================================================
   15. CTA FINAL
============================================================ */
.cta-section {
  background: var(--color-bg-page);
  padding:    var(--section-py) 0;
}

.cta-section__card {
  background:    linear-gradient(135deg, var(--color-primary) 0%, #185FA5 100%);
  border-radius: var(--radius-xl);
  padding:       64px 40px;
  text-align:    center;
  max-width:     640px;
  margin:        0 auto;
  position:      relative;
  overflow:      hidden;
}
.cta-section__card::before {
  content:       '';
  position:      absolute;
  top:           -80px;
  right:         -80px;
  width:         280px;
  height:        280px;
  background:    rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section__card h2 {
  font-size:     clamp(24px, 4vw, 38px);
  font-weight:   700;
  color:         #fff;
  line-height:   1.25;
  margin-bottom: 14px;
}
.cta-section__card > p {
  font-size:     1.0625rem;
  color:         rgba(255, 255, 255, 0.80);
  line-height:   1.7;
  margin-bottom: 40px;
}

/* Formulário CTA */
.lead-form {
  display:         flex;
  flex-direction:  column;
  gap:             14px;
  background:      rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border:          1px solid rgba(255, 255, 255, 0.15);
  border-radius:   var(--radius-lg);
  padding:         32px;
  text-align:      left;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size:   0.875rem;
  font-weight: 500;
  color:       rgba(255, 255, 255, 0.80);
}
.form-group input {
  width:        100%;
  padding:      14px 18px;
  border-radius: var(--radius-pill);
  border:       1.5px solid rgba(255, 255, 255, 0.20);
  background:   rgba(255, 255, 255, 0.10);
  color:        #fff;
  font-family:  var(--font-body);
  font-size:    1rem;
  transition:   border-color var(--ease), background var(--ease);
  outline:      none;
}
.form-group input::placeholder { color: rgba(255, 255, 255, 0.40); }
.form-group input:focus {
  border-color:     rgba(255, 255, 255, 0.50);
  background-color: rgba(255, 255, 255, 0.16);
}
.form-group input.error { border-color: #FCA5A5; }
.form-error { font-size: 0.8125rem; color: #FCA5A5; min-height: 16px; }

.form-disclaimer {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             7px;
  font-size:       0.8125rem;
  color:           rgba(255, 255, 255, 0.55);
  margin-top:      4px;
}
.form-disclaimer i { width: 14px; height: 14px; color: var(--color-accent); flex-shrink: 0; }


/* ============================================================
   16. FAQ
============================================================ */
.faq {
  background: var(--color-bg-page);
  padding:    var(--section-py) 0;
}

.faq-list {
  max-width:     720px;
  margin:        0 auto;
  border-radius: var(--radius-xl);
  overflow:      hidden;
  box-shadow:    var(--shadow-md);
  border:        1px solid var(--color-border);
}
.faq-item {
  background:   #fff;
  border-bottom: 1px solid var(--color-border);
}
.faq-item:last-child { border-bottom: none; }

.faq-item__question {
  width:           100%;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             16px;
  padding:         22px 28px;
  background:      none;
  border:          none;
  font-family:     var(--font-body);
  font-size:       0.9375rem;
  font-weight:     600;
  color:           var(--color-text-main);
  cursor:          pointer;
  text-align:      left;
  transition:      background var(--ease), color var(--ease);
}
.faq-item__question:hover { background: var(--color-bg-page); }
.faq-item__question[aria-expanded="true"] {
  background: var(--color-bg-section);
  color:      var(--color-primary);
}
.faq-item__question i {
  width:      20px;
  height:     20px;
  color:      var(--color-button);
  flex-shrink: 0;
  transition: transform var(--ease);
}
.faq-item__question[aria-expanded="true"] i { transform: rotate(180deg); }

.faq-item__answer {
  overflow:   hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.faq-item__answer:not([hidden]) { max-height: 400px; }
.faq-item__answer p {
  padding:     4px 28px 24px;
  font-size:   0.9375rem;
  color:       var(--color-text-soft);
  line-height: 1.7;
}


/* ============================================================
   17. FOOTER
============================================================ */
.footer {
  background: var(--color-footer-bg);
  padding:    60px 0 36px;
  color:      rgba(255, 255, 255, 0.65);
}

.footer__top {
  display:       grid;
  grid-template-columns: 1fr;
  gap:           36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.footer__logo { margin-bottom: 14px; }
.footer__logo .logo-text { color: #fff; }
.footer__brand p {
  font-size:     0.9375rem;
  color:         rgba(255, 255, 255, 0.50);
  line-height:   1.6;
  max-width:     240px;
  margin-bottom: 20px;
}
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width:         36px;
  height:        36px;
  background:    rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display:       flex;
  align-items:   center;
  justify-content: center;
  transition:    background var(--ease);
}
.footer__social a:hover { background: rgba(255, 255, 255, 0.18); }
.footer__social i { width: 18px; height: 18px; color: rgba(255, 255, 255, 0.70); }

.footer__links-group h4 {
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color:          rgba(255, 255, 255, 0.35);
  margin-bottom:  16px;
}
.footer__links-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links-group a {
  font-size:   0.9375rem;
  color:       rgba(255, 255, 255, 0.60);
  transition:  color var(--ease);
  display:     flex;
  align-items: center;
  gap:         7px;
}
.footer__links-group a:hover { color: #fff; }
.footer__links-group i { width: 14px; height: 14px; flex-shrink: 0; }

.footer__bottom {
  padding-top: 32px;
  font-size:   0.875rem;
  color:       rgba(255, 255, 255, 0.35);
  text-align:  center;
  line-height: 1.7;
}
.footer__legal { margin-top: 6px; font-size: 0.8125rem; }


/* ============================================================
   18. WHATSAPP FLUTUANTE
============================================================ */
.whatsapp-float {
  position:      fixed;
  bottom:        28px;
  right:         28px;
  z-index:       200;
  width:         58px;
  height:        58px;
  background:    #25D366;
  border-radius: 50%;
  display:       flex;
  align-items:   center;
  justify-content: center;
  box-shadow:    0 4px 20px rgba(37, 211, 102, 0.45);
  color:         #fff;
  transition:    transform var(--ease), box-shadow var(--ease);
}
.whatsapp-float:hover {
  transform:  scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}
.whatsapp-float::before {
  content:         'Fale conosco';
  position:        absolute;
  right:           calc(100% + 12px);
  background:      rgba(20, 20, 20, 0.88);
  color:           #fff;
  padding:         6px 12px;
  border-radius:   6px;
  font-family:     var(--font-body);
  font-size:       0.8125rem;
  white-space:     nowrap;
  opacity:         0;
  pointer-events:  none;
  transition:      opacity var(--ease);
}
.whatsapp-float:hover::before { opacity: 1; }


/* ============================================================
   19. ANIMAÇÕES
============================================================ */

/* Flutuação do mockup */
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Scroll infinito do logo strip */
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pulso nas barras do hero */
@keyframes bar-pulse {
  0%, 100% { opacity: 0.07; }
  50%       { opacity: 0.13; }
}

/* Scroll reveal */
.reveal {
  opacity:    0;
  transform:  translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity:   1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }


/* ============================================================
   20. RESPONSIVIDADE (mobile-first)
============================================================ */

/* --- Tablet: 768px+ --- */
@media (min-width: 768px) {
  :root {
    --container-px: 40px;
  }

  /* Navbar desktop */
  .nav__links {
    display:     flex;
    align-items: center;
    gap:         28px;
  }
  .nav__actions   { display: flex; }
  .nav__hamburger { display: none; }

  /* Hero centralizado */
  .hero__mockup-wrapper .container { max-width: 520px; }

  /* Logo strip */
  .logo-strip__track { gap: 80px; }

  /* Feature card */
  .feature-hero__card { grid-template-columns: 1.1fr 0.9fr; }

  /* Dark stat */
  .dark-stat__container { grid-template-columns: 1fr 1fr; }

  /* Solutions */
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }

  /* Sobre */
  .about__container { grid-template-columns: 1fr 1.5fr; }

  /* Footer */
  .footer__top { grid-template-columns: 1.6fr repeat(3, 1fr); }
}

/* --- Desktop: 1280px+ --- */
@media (min-width: 1280px) {
  :root {
    --section-py:   140px;
    --container-px: 24px;
  }

  /* Solutions em 3 colunas */
  .solutions-grid { grid-template-columns: repeat(3, 1fr); }

  /* Mini cards mais afastados */
  .mock-mini--top    { top: -26px; right: -24px; }
  .mock-mini--bottom { bottom: -26px; left: -24px; }
}

/* --- Mobile pequeno: até 480px --- */
@media (max-width: 480px) {
  .hero__input-wrapper {
    flex-direction: column;
    border-radius:  var(--radius-lg);
    padding:        12px;
    align-items:    stretch;
  }
  .hero__input-wrapper input { text-align: center; }
  .hero__input-wrapper .btn  { border-radius: var(--radius-lg); justify-content: center; }
  .hero__input-icon          { display: none; }

  .mock-mini { display: none; }
  .lead-form { padding: 24px 16px; }
  .cta-section__card { padding: 40px 20px; }

  .feature-hero__card { padding: 36px 24px; }
  .feature-mock__row  { grid-template-columns: 1.5fr 1fr 0.7fr 1fr; font-size: 0.75rem; }
}


/* ============================================================
   21. PREFERÊNCIAS DE ACESSIBILIDADE
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration:       0.01ms !important;
  }
  html { scroll-behavior: auto; }
}


/* ============================================================
   22. PÁGINAS LEGAIS (privacidade / termos)
============================================================ */
.body--legal .top-banner { display: none; }
.body--legal .header     { top: 0; }
.body--legal .nav__links.is-open { top: 68px; }

.legal-page {
  padding-top:    calc(68px + 60px);
  padding-bottom: 100px;
  min-height:     80vh;
  background:     var(--color-bg-page);
}
.legal-page__inner {
  max-width:  800px;
  margin:     0 auto;
  padding:    0 var(--container-px);
}

/* Breadcrumb */
.breadcrumb {
  display:     flex;
  align-items: center;
  gap:         8px;
  font-size:   0.875rem;
  color:       var(--color-text-soft);
  margin-bottom: 36px;
}
.breadcrumb a { color: var(--color-button); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { opacity: 0.45; }

/* Cabeçalho do documento */
.legal-doc__header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--color-bg-section);
}
.legal-doc__header h1 {
  font-size:     clamp(28px, 5vw, 40px);
  font-weight:   700;
  color:         var(--color-primary);
  margin-bottom: 10px;
  line-height:   1.2;
}
.legal-doc__meta {
  font-size:  0.875rem;
  color:      var(--color-text-soft);
  display:    flex;
  gap:        20px;
  flex-wrap:  wrap;
}
.legal-doc__meta span { display: flex; align-items: center; gap: 6px; }
.legal-doc__meta i    { width: 14px; height: 14px; }

/* Seções */
.legal-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-bg-section);
}
.legal-section:last-child { border-bottom: none; }

.legal-section__num {
  display:        inline-block;
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color:          var(--color-button);
  margin-bottom:  6px;
}
.legal-section h2 {
  font-size:     1.25rem;
  font-weight:   600;
  color:         var(--color-primary);
  margin-bottom: 16px;
  line-height:   1.35;
}
.legal-section p {
  font-size:     1rem;
  color:         var(--color-text-main);
  line-height:   1.75;
  margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul, .legal-section ol {
  margin:      12px 0 12px 20px;
  list-style:  disc;
}
.legal-section ol { list-style: decimal; }
.legal-section li {
  font-size:     1rem;
  color:         var(--color-text-main);
  line-height:   1.75;
  margin-bottom: 6px;
}
.legal-section strong { font-weight: 600; color: var(--color-text-main); }
.legal-section a      { color: var(--color-button); text-decoration: underline; }

.legal-highlight {
  background:    var(--color-bg-section);
  border-left:   4px solid var(--color-button);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding:       16px 20px;
  margin:        16px 0;
  font-size:     0.9375rem;
  color:         var(--color-text-main);
  line-height:   1.7;
}


/* ============================================================
   23. MODAL DE AUTENTICAÇÃO
============================================================ */

/* Overlay */
.modal-overlay {
  position:        fixed;
  inset:           0;
  z-index:         600;
  background:      rgba(12, 68, 124, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         20px;
  overflow-y:      auto;
}
.modal-overlay[hidden] { display: none; }

/* Painel do modal */
.modal {
  background:    #fff;
  border-radius: var(--radius-xl);
  width:         100%;
  max-width:     540px;
  padding:       36px 40px 40px;
  position:      relative;
  animation:     modal-in 0.25s ease forwards;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Cabeçalho do modal */
.modal__header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   28px;
}
.modal__close {
  width:         36px;
  height:        36px;
  border-radius: 50%;
  border:        none;
  background:    var(--color-bg-page);
  color:         var(--color-text-soft);
  display:       flex;
  align-items:   center;
  justify-content: center;
  cursor:        pointer;
  transition:    background var(--ease), color var(--ease);
  flex-shrink:   0;
}
.modal__close:hover { background: var(--color-bg-section); color: var(--color-primary); }
.modal__close i { width: 18px; height: 18px; }

/* Tabs */
.modal__tabs {
  display:       flex;
  background:    var(--color-bg-page);
  border-radius: var(--radius-pill);
  padding:       4px;
  margin-bottom: 32px;
  gap:           4px;
}
.modal__tab {
  flex:           1;
  padding:        10px 16px;
  border-radius:  var(--radius-pill);
  border:         none;
  background:     transparent;
  font-family:    var(--font-body);
  font-size:      0.9375rem;
  font-weight:    500;
  color:          var(--color-text-soft);
  cursor:         pointer;
  transition:     background var(--ease), color var(--ease), box-shadow var(--ease);
}
.modal__tab--active {
  background:  #fff;
  color:       var(--color-primary);
  font-weight: 600;
  box-shadow:  var(--shadow-sm);
}

/* Título e subtítulo */
.modal__title {
  font-size:     1.375rem;
  font-weight:   700;
  color:         var(--color-primary);
  margin-bottom: 6px;
  line-height:   1.3;
}
.modal__subtitle {
  font-size:     0.9375rem;
  color:         var(--color-text-soft);
  margin-bottom: 28px;
  line-height:   1.6;
}

/* Switch tab link */
.modal__switch {
  text-align:  center;
  font-size:   0.9375rem;
  color:       var(--color-text-soft);
  margin-top:  20px;
}

/* Botão voltar (forgot) */
.modal__back {
  display:     inline-flex;
  align-items: center;
  gap:         6px;
  background:  none;
  border:      none;
  cursor:      pointer;
  font-family: var(--font-body);
  font-size:   0.875rem;
  font-weight: 500;
  color:       var(--color-button);
  padding:     0;
  margin-bottom: 20px;
  transition:  opacity var(--ease);
}
.modal__back:hover { opacity: 0.75; }
.modal__back i { width: 16px; height: 16px; }

/* --- Formulários dentro do modal --- */
.modal-form {
  display:        flex;
  flex-direction: column;
  gap:            16px;
}

/* Sobrescreve o form-group do CTA (que tem fundo escuro) */
.modal-form .form-group { gap: 5px; }

.modal-form .form-group label {
  font-size:   0.875rem;
  font-weight: 500;
  color:       var(--color-text-main);
}

.modal-form .form-group input,
.modal-form .form-group select {
  width:        100%;
  padding:      13px 16px;
  border-radius: var(--radius);
  border:       1.5px solid #CBD5E1;
  background:   #fff;
  color:        var(--color-text-main);
  font-family:  var(--font-body);
  font-size:    1rem;
  transition:   border-color var(--ease), box-shadow var(--ease);
  outline:      none;
}
.modal-form .form-group input::placeholder,
.modal-form .form-group select::placeholder { color: #A0AAB4; }
.modal-form .form-group input:focus,
.modal-form .form-group select:focus {
  border-color: var(--color-button);
  box-shadow:   0 0 0 3px rgba(24, 95, 165, 0.10);
}
.modal-form .form-group input.input--error,
.modal-form .form-group select.input--error {
  border-color: #DC2626;
  box-shadow:   0 0 0 3px rgba(220, 38, 38, 0.08);
}
.modal-form .form-group input.input--valid,
.modal-form .form-group select.input--valid { border-color: var(--color-accent); }

.modal-form .form-error {
  font-size:  0.8125rem;
  color:      #DC2626;
  min-height: 14px;
  line-height: 1.3;
}

/* Section label dentro do form */
.modal-form__section {
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color:          var(--color-text-soft);
  padding-top:    8px;
  padding-bottom: 4px;
  border-top:     1px solid var(--color-border);
  margin-top:     4px;
}

/* Form row (grid horizontal) */
.form-row {
  display: flex;
  gap:     12px;
}
.form-row .form-group { flex: 1; }
.form-row .fg-70 { flex: 0 0 calc(70% - 6px); }
.form-row .fg-30 { flex: 0 0 calc(30% - 6px); }
.form-row .fg-60 { flex: 0 0 calc(60% - 6px); }
.form-row .fg-40 { flex: 0 0 calc(40% - 6px); }

/* Input senha (wrapper com botão olho) */
.input-pwd-wrap {
  position: relative;
}
.input-pwd-wrap input { padding-right: 46px; }
.input-pwd-toggle {
  position:  absolute;
  right:     12px;
  top:       50%;
  transform: translateY(-50%);
  background: none;
  border:    none;
  cursor:    pointer;
  color:     var(--color-text-soft);
  padding:   4px;
  display:   flex;
  align-items: center;
  transition: color var(--ease);
}
.input-pwd-toggle:hover { color: var(--color-primary); }
.input-pwd-toggle i { width: 18px; height: 18px; }

/* Input CEP (wrapper com loader) */
.input-cep-wrap {
  position: relative;
}
.input-cep-wrap input { padding-right: 40px; }
.cep-loader {
  position:  absolute;
  right:     12px;
  top:       50%;
  transform: translateY(-50%);
  color:     var(--color-button);
  animation: spin 1s linear infinite;
  display:   flex;
  align-items: center;
}
.cep-loader i { width: 16px; height: 16px; }

/* Password strength */
.pwd-strength {
  display:     flex;
  align-items: center;
  gap:         10px;
  margin-top:  6px;
}
.pwd-strength__bar {
  flex:          1;
  height:        4px;
  background:    var(--color-border);
  border-radius: 2px;
  overflow:      hidden;
}
.pwd-strength__fill {
  height:        100%;
  width:         0%;
  border-radius: 2px;
  transition:    width 0.3s ease, background-color 0.3s ease;
}
.pwd-strength__fill--weak   { background: #EF4444; }
.pwd-strength__fill--medium { background: var(--color-star); }
.pwd-strength__fill--strong { background: var(--color-accent); }

.pwd-strength__label {
  font-size:  12px;
  font-weight: 600;
  min-width:  42px;
  text-align: right;
}
.pwd-strength__label--weak   { color: #EF4444; }
.pwd-strength__label--medium { color: #D97706; }
.pwd-strength__label--strong { color: var(--color-accent); }

/* Password rules */
.pwd-rules {
  display:        flex;
  flex-direction: column;
  gap:            4px;
  margin-top:     8px;
}
.pwd-rule {
  display:     flex;
  align-items: center;
  gap:         6px;
  font-size:   0.8125rem;
  color:       var(--color-text-soft);
  transition:  color var(--ease);
}
.pwd-rule i { width: 14px; height: 14px; flex-shrink: 0; }
.pwd-rule--ok { color: var(--color-accent); }

/* Checkbox */
.form-check {
  display:     flex;
  align-items: flex-start;
  gap:         10px;
}
.form-check input[type="checkbox"] {
  width:       18px;
  height:      18px;
  border:      2px solid #CBD5E1;
  border-radius: 4px;
  cursor:      pointer;
  flex-shrink: 0;
  margin-top:  1px;
  accent-color: var(--color-button);
}
.form-check label {
  font-size:   0.9375rem;
  color:       var(--color-text-main);
  cursor:      pointer;
  line-height: 1.5;
}
.form-check label a {
  color:      var(--color-button);
  font-weight: 500;
}
.form-check label a:hover { text-decoration: underline; }
.lbl-opt {
  font-size:  0.8125rem;
  color:      var(--color-text-soft);
  margin-left: 4px;
}

/* Link button (dentro do form) */
.link-btn {
  background:  none;
  border:      none;
  padding:     0;
  cursor:      pointer;
  font-family: inherit;
  font-size:   inherit;
  color:       var(--color-button);
  font-weight: 500;
  transition:  color var(--ease);
}
.link-btn:hover { color: var(--color-primary); text-decoration: underline; }

/* Forgot row (dentro do login form) */
.form-forgot {
  text-align: right;
  margin-top: -8px;
  font-size:  0.875rem;
}

/* Sucesso */
.modal-success {
  text-align: center;
  padding:    40px 20px;
}
.modal-success__icon {
  width:         64px;
  height:        64px;
  background:    rgba(29, 158, 117, 0.12);
  border-radius: 50%;
  display:       flex;
  align-items:   center;
  justify-content: center;
  margin:        0 auto 20px;
}
.modal-success__icon i { width: 32px; height: 32px; color: var(--color-accent); }
.modal-success p {
  font-size:   1.0625rem;
  color:       var(--color-text-main);
  font-weight: 500;
  line-height: 1.6;
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .modal {
    padding:       28px 20px 32px;
    border-radius: 24px 24px 0 0;
    margin-top:    auto;
    max-width:     100%;
  }
  .modal-overlay {
    align-items: flex-end;
    padding:     0;
  }
  .form-row { flex-direction: column; }
  .form-row .fg-70,
  .form-row .fg-30,
  .form-row .fg-60,
  .form-row .fg-40 { flex: 1 1 100%; }
}
