/* ==========================================================================
   Atlas — popup de saída (exit-intent)

   Visual espelha o `.modal` / `.modal-card` que já existe em atlas-2026.css
   (pré-inscrição do Nilo/Ariel) — mesmos tokens (raio, sombra, cores, tipo),
   mas com classes próprias (`.exit-popup*`) porque é um componente
   independente, injetado por JS em qualquer página do site, e não pode
   depender de qual folha de estilo (atlas-2026.css ou atlas-landing.css)
   a página carregou.
   ========================================================================== */

.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  box-sizing: border-box;
}
.exit-popup * { box-sizing: border-box; }

.exit-popup.on { display: flex; animation: exitPopupFundo .2s ease-out; }
@keyframes exitPopupFundo { from { opacity: 0; } to { opacity: 1; } }

.exit-popup-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 26px;
  box-shadow: 0 40px 80px -20px rgba(15, 23, 42, .45);
  animation: exitPopupEntra .28s cubic-bezier(.16, 1, .3, 1);
  text-align: left;
}
@keyframes exitPopupEntra {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .exit-popup.on, .exit-popup-card { animation: none; }
}

.exit-popup-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exit-popup-x:hover { background: #F0F4F8; color: #1E293B; }

.exit-popup-olho {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #94A3B8;
}

.exit-popup-titulo {
  margin: 10px 0 0;
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.25;
  color: #1E293B;
  padding-right: 28px; /* não passa por baixo do X em telas estreitas */
}

.exit-popup-sub {
  margin: 10px 0 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #64748B;
}

.exit-popup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid #2563EB;
  background: #2563EB;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.exit-popup-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(37, 99, 235, .5);
}
.exit-popup-cta svg { flex-shrink: 0; }

.exit-popup-dispensa {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #94A3B8;
  text-align: center;
  cursor: pointer;
}
.exit-popup-dispensa:hover { color: #64748B; text-decoration: underline; }

.exit-popup-nota {
  margin: 16px 0 0;
  font-size: 12px;
  color: #94A3B8;
  text-align: center;
}

@media (max-width: 420px) {
  .exit-popup { padding: 16px; }
  .exit-popup-card { padding: 28px 20px 20px; }
}
