/* Popup de saída — pré-avaliação */
.exit-pop {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  background: rgba(0, 28, 64, 0.62);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.exit-pop.is-open {
  opacity: 1;
  visibility: visible;
}

.exit-pop__card {
  position: relative;
  width: min(420px, 100%);
  max-height: min(92dvh, 720px);
  overflow: auto;
  background:
    radial-gradient(280px 140px at 50% 0%, rgba(65, 201, 175, 0.22), transparent 70%),
    linear-gradient(180deg, #f7fbfa 0%, #ffffff 42%);
  border-radius: 28px;
  padding: 1.7rem 1.45rem 1.35rem;
  box-shadow: 0 28px 70px rgba(0, 24, 56, 0.28);
  text-align: center;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.32s ease;
}

.exit-pop.is-open .exit-pop__card {
  transform: none;
}

.exit-pop__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #41c9af, #0048a8 55%, #ffc425);
}

.exit-pop__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 72, 168, 0.08);
  color: #0048a8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.exit-pop__close:hover {
  background: rgba(0, 72, 168, 0.14);
}

.exit-pop__logo {
  width: 84px;
  height: auto;
  margin: 0.35rem auto 0.2rem;
}

.exit-pop__card .exit-pop__script {
  font-family: "Great Vibes", cursive;
  font-size: 2.35rem;
  line-height: 1;
  color: #0d8f78;
  margin-bottom: 0.15rem;
}

.exit-pop__card h2 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.28rem;
  line-height: 1.3;
  font-weight: 800;
  color: #003680;
  margin-bottom: 0.7rem;
}

.exit-pop__card p {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #555;
  margin-bottom: 1rem;
}

.exit-pop__points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
  padding: 0;
  list-style: none;
}

.exit-pop__points li {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0048a8;
  background: rgba(65, 201, 175, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.exit-pop__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc425, #f0b400);
  color: #0048a8;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(255, 196, 37, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exit-pop__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 196, 37, 0.48);
}

.exit-pop__stay {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.35rem 0.5rem;
  border: 0;
  background: transparent;
  color: #5d6b80;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.exit-pop__stay:hover {
  color: #003680;
}

@media (max-width: 480px) {
  .exit-pop {
    padding: 0.85rem;
    align-items: end;
  }

  .exit-pop__card {
    border-radius: 24px 24px 20px 20px;
    padding: 1.45rem 1.1rem 1.15rem;
  }

  .exit-pop__card .exit-pop__script {
    font-size: 2.05rem;
  }

  .exit-pop__card h2 {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exit-pop,
  .exit-pop__card,
  .exit-pop__cta {
    transition: none;
  }

  .exit-pop__card {
    transform: none;
  }
}
