@font-face {
  font-family: "Nunito Local";
  src: url("fonts/nunito.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka Local";
  src: url("fonts/fredoka.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --font-nunito: "Nunito Local", Arial, sans-serif;
  --font-fredoka: "Fredoka Local", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

[data-checkout-pendente="true"] {
  cursor: default;
}

.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.exit-popup.is-visible {
  display: flex;
}

.exit-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(5px);
}

.exit-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  border-radius: 30px;
  background: #fff;
  padding: 38px 44px 44px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
  animation: exit-popup-in 240ms ease-out both;
}

.exit-popup__close {
  position: absolute;
  top: 12px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #475569;
  font: 400 38px/1 Arial, sans-serif;
  cursor: pointer;
}

.exit-popup__gift {
  display: block;
  margin-bottom: 18px;
  font-size: 54px;
  line-height: 1;
}

.exit-popup__dialog h2 {
  margin: 0 auto 20px;
  max-width: 470px;
  color: #134e4a;
  font-family: var(--font-fredoka), sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.2;
}

.exit-popup__dialog p {
  margin: 0 auto 30px;
  max-width: 500px;
  color: #64748b;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.55;
}

.exit-popup__dialog p strong {
  color: #7c3aed;
}

.exit-popup__cta {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  padding: 16px 28px;
  color: #fff;
  font-family: var(--font-fredoka), sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.3);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.exit-popup__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(34, 197, 94, 0.38);
}

body.exit-popup-open {
  overflow: hidden;
}

@keyframes exit-popup-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .exit-popup {
    align-items: flex-end;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }

  .exit-popup__dialog {
    width: 100%;
    border-radius: 26px;
    padding: 30px 20px 24px;
  }

  .exit-popup__gift {
    margin-bottom: 14px;
    font-size: 46px;
  }

  .exit-popup__dialog h2 {
    margin-bottom: 14px;
  }

  .exit-popup__dialog p {
    margin-bottom: 22px;
  }

  .exit-popup__cta {
    min-height: 58px;
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exit-popup__dialog {
    animation: none;
  }
}
