/* Indzu tools exit-intent popup. Matches the static free-tools HTML popup. */
.iz-exit-lock {
  overflow: hidden;
}

.iz-exit-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(26, 20, 48, 0.42);
  backdrop-filter: blur(12px);
}

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

.iz-exit-dialog {
  position: relative;
  width: min(984px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  border: 1px solid #ded0ff;
  border-radius: 26px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(248, 244, 255, 0.96)),
    #fbf8ff;
  box-shadow: 0 28px 80px rgba(31, 25, 61, 0.28);
  color: #251d46;
}

.iz-exit-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(123, 63, 242, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(123, 63, 242, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.4), transparent 42%);
}

.iz-exit-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #201936;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(31, 25, 61, 0.08);
}

.iz-exit-close svg {
  width: 20px;
  height: 20px;
}

.iz-exit-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  padding: 16px 16px 14px;
}

.iz-exit-kicker {
  margin: 0 0 18px;
  color: #6f37ff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.iz-exit-title {
  max-width: 460px;
  margin: 0;
  color: #211936;
  font-size: clamp(48px, 7.3vw, 68px);
  line-height: 0.92;
  font-weight: 900;
}

.iz-exit-title span {
  color: #7c3cff;
}

.iz-exit-copy {
  max-width: 455px;
  margin: 18px 0 24px;
  color: #4d4566;
  font-size: 15px;
  line-height: 1.7;
}

.iz-exit-copy strong,
.iz-exit-panel-title strong {
  color: #7c3cff;
  font-weight: 900;
}

.iz-exit-preview {
  position: relative;
  min-height: 282px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.9), transparent 16%),
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.34), transparent 18%),
    linear-gradient(135deg, #f0e8ff 0%, #ffffff 42%, #eadfff 100%);
  box-shadow: 0 22px 42px rgba(71, 42, 126, 0.16);
  perspective: 1200px;
}

.iz-exit-carousel-stage {
  position: absolute;
  inset: 18px 10px 38px;
  transform-style: preserve-3d;
}

.iz-exit-carousel-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(218px, 48%);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(41, 30, 77, 0.22);
  transform: translate(-50%, -50%);
  animation: izCarouselDepth 15s infinite ease-in-out;
  will-change: transform, opacity, filter;
}

.iz-exit-carousel-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.iz-card-2 {
  animation-delay: -3s;
}

.iz-card-3 {
  animation-delay: -6s;
}

.iz-card-4 {
  animation-delay: -9s;
}

.iz-card-5 {
  animation-delay: -12s;
}

.iz-exit-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.iz-exit-carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(124, 60, 255, 0.26);
  animation: izCarouselDot 15s infinite ease-in-out;
}

.iz-exit-carousel-dots span:nth-child(2) {
  animation-delay: -3s;
}

.iz-exit-carousel-dots span:nth-child(3) {
  animation-delay: -6s;
}

.iz-exit-carousel-dots span:nth-child(4) {
  animation-delay: -9s;
}

.iz-exit-carousel-dots span:nth-child(5) {
  animation-delay: -12s;
}

@keyframes izCarouselDepth {
  0%,
  16% {
    opacity: 1;
    z-index: 5;
    filter: none;
    transform: translate(-50%, -50%) translateX(0) translateZ(86px) rotateY(0deg) rotateZ(0deg) scale(1);
  }

  20%,
  36% {
    opacity: 0.82;
    z-index: 4;
    filter: saturate(0.92) brightness(0.96);
    transform: translate(-50%, -50%) translateX(112px) translateZ(10px) rotateY(-28deg) rotateZ(8deg) scale(0.82);
  }

  40%,
  56% {
    opacity: 0.38;
    z-index: 2;
    filter: saturate(0.75) brightness(0.92);
    transform: translate(-50%, -50%) translateX(58px) translateZ(-90px) rotateY(-34deg) rotateZ(5deg) scale(0.66);
  }

  60%,
  76% {
    opacity: 0.38;
    z-index: 1;
    filter: saturate(0.75) brightness(0.92);
    transform: translate(-50%, -50%) translateX(-58px) translateZ(-90px) rotateY(34deg) rotateZ(-5deg) scale(0.66);
  }

  80%,
  96% {
    opacity: 0.82;
    z-index: 3;
    filter: saturate(0.92) brightness(0.96);
    transform: translate(-50%, -50%) translateX(-112px) translateZ(10px) rotateY(28deg) rotateZ(-8deg) scale(0.82);
  }

  100% {
    opacity: 1;
    z-index: 5;
    filter: none;
    transform: translate(-50%, -50%) translateX(0) translateZ(86px) rotateY(0deg) rotateZ(0deg) scale(1);
  }
}

@keyframes izCarouselDot {
  0%,
  16%,
  100% {
    width: 22px;
    background: #7c3cff;
  }

  20%,
  96% {
    width: 7px;
    background: rgba(124, 60, 255, 0.26);
  }
}

@media (prefers-reduced-motion: reduce) {
  .iz-exit-carousel-card,
  .iz-exit-carousel-dots span {
    animation: none;
  }

  .iz-card-1 {
    z-index: 5;
    transform: translate(-50%, -50%) translateZ(80px) scale(1);
  }

  .iz-card-2 {
    z-index: 4;
    opacity: 0.82;
    transform: translate(-50%, -50%) translateX(112px) rotateY(-28deg) rotateZ(8deg) scale(0.82);
  }

  .iz-card-3 {
    z-index: 2;
    opacity: 0.42;
    transform: translate(-50%, -50%) translateX(58px) rotateY(-34deg) rotateZ(5deg) scale(0.66);
  }

  .iz-card-4 {
    z-index: 1;
    opacity: 0.42;
    transform: translate(-50%, -50%) translateX(-58px) rotateY(34deg) rotateZ(-5deg) scale(0.66);
  }

  .iz-card-5 {
    z-index: 3;
    opacity: 0.82;
    transform: translate(-50%, -50%) translateX(-112px) rotateY(28deg) rotateZ(-8deg) scale(0.82);
  }

  .iz-exit-carousel-dots span:first-child {
    width: 22px;
    background: #7c3cff;
  }
}

.iz-exit-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-right: 54px;
  margin-bottom: 16px;
}

.iz-exit-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #cfb9ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #6f37ff;
  font-size: 12px;
  font-weight: 800;
}

.iz-exit-platforms {
  padding: 16px;
  border: 1px solid #d9c8ff;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.46);
}

.iz-exit-platforms p {
  margin: 0 0 12px;
  color: #473d65;
  font-size: 13px;
  font-weight: 800;
}

.iz-exit-platform-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 92px;
  padding: 8px 4px 2px;
  gap: 0;
  perspective: 620px;
}

.iz-exit-platform {
  position: relative;
  width: 42px;
  height: 42px;
  margin-right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72) 44%, rgba(245, 240, 255, 0.82)),
    #ffffff;
  color: #6f37ff;
  box-shadow:
    0 20px 28px rgba(60, 39, 104, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translate3d(0, 0, 0) rotateX(16deg) rotateZ(var(--iz-platform-tilt, 0deg));
  z-index: var(--iz-platform-depth, 1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.iz-exit-platform::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: -13px;
  height: 8px;
  border-radius: 50%;
  background: rgba(73, 48, 124, 0.18);
  filter: blur(5px);
  transform: rotateX(72deg);
  z-index: -1;
}

.iz-exit-platform:nth-child(odd) {
  transform: translate3d(0, -10px, 30px) rotateX(18deg) rotateZ(var(--iz-platform-tilt, 0deg));
}

.iz-exit-platform:nth-child(3n) {
  transform: translate3d(0, 12px, -8px) rotateX(20deg) rotateZ(var(--iz-platform-tilt, 0deg));
}

.iz-exit-platform:nth-child(1) { --iz-platform-depth: 6; --iz-platform-tilt: -10deg; }
.iz-exit-platform:nth-child(2) { --iz-platform-depth: 8; --iz-platform-tilt: 7deg; }
.iz-exit-platform:nth-child(3) { --iz-platform-depth: 5; --iz-platform-tilt: -4deg; }
.iz-exit-platform:nth-child(4) { --iz-platform-depth: 9; --iz-platform-tilt: 9deg; }
.iz-exit-platform:nth-child(5) { --iz-platform-depth: 7; --iz-platform-tilt: -8deg; }
.iz-exit-platform:nth-child(6) { --iz-platform-depth: 4; --iz-platform-tilt: 5deg; }
.iz-exit-platform:nth-child(7) { --iz-platform-depth: 10; --iz-platform-tilt: -5deg; }
.iz-exit-platform:nth-child(8) { --iz-platform-depth: 6; --iz-platform-tilt: 8deg; }
.iz-exit-platform:nth-child(9) { --iz-platform-depth: 11; --iz-platform-tilt: -7deg; }
.iz-exit-platform:nth-child(10) { --iz-platform-depth: 12; --iz-platform-tilt: 6deg; }

.iz-exit-platform:hover {
  transform: translate3d(0, -16px, 56px) rotateX(10deg) rotateZ(0deg) scale(1.06);
  box-shadow:
    0 28px 36px rgba(60, 39, 104, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  z-index: 20;
}

.iz-exit-platform svg {
  width: 19px;
  height: 19px;
  display: block;
}

.iz-platform-instagram {
  color: #d62976;
}

.iz-platform-facebook {
  color: #1877f2;
}

.iz-platform-x,
.iz-platform-threads {
  color: #111827;
}

.iz-platform-linkedin {
  color: #0a66c2;
}

.iz-platform-pinterest,
.iz-platform-youtube {
  color: #e60023;
}

.iz-platform-tiktok {
  color: #111827;
}

.iz-platform-bluesky {
  color: #1185fe;
}

.iz-platform-google svg {
  width: 19px;
  height: 19px;
}

.iz-platform-bluesky svg {
  width: 22px;
  height: 20px;
}

.iz-exit-cta {
  width: 100%;
  min-height: 44px;
  margin: 16px 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #7328f1, #9c4df0);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(115, 40, 241, 0.22);
}

.iz-exit-panel-title {
  margin: 0 0 16px;
  color: #241d3d;
  font-size: 24px;
  line-height: 1.22;
  font-weight: 900;
}

.iz-exit-panel-title .iz-pink {
  color: #ff44a6;
}

.iz-exit-url-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  min-height: 66px;
  padding: 8px;
  border: 1px solid #d9c8ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.iz-exit-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 14px;
}

.iz-exit-input-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.iz-exit-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #241d3d;
  font-size: 14px;
}

.iz-exit-input::placeholder {
  color: #9287aa;
}

.iz-exit-submit {
  min-width: 154px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #7429f2, #9639ef);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.iz-exit-skip {
  display: inline-flex;
  margin-top: 14px;
  color: #655a80;
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width: 820px) {
  .iz-exit-popup {
    padding: 14px;
  }

  .iz-exit-dialog {
    max-height: 94vh;
    border-radius: 22px;
  }

  .iz-exit-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 22px 26px;
  }

  .iz-exit-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .iz-exit-formats {
    padding-right: 48px;
  }

  .iz-exit-title {
    max-width: 330px;
    font-size: 54px;
  }

  .iz-exit-preview {
    min-height: 260px;
  }
}

@media (max-width: 540px) {
  .iz-exit-dialog::before {
    display: none;
  }

  .iz-exit-kicker {
    max-width: 250px;
    font-size: 10px;
  }

  .iz-exit-title {
    font-size: 43px;
  }

  .iz-exit-copy {
    font-size: 14px;
  }

  .iz-exit-formats {
    gap: 8px;
    margin-top: 4px;
  }

  .iz-exit-chip {
    min-height: 31px;
    padding: 0 12px;
    font-size: 11px;
  }

  .iz-exit-carousel-card {
    width: min(190px, 54%);
  }

  .iz-exit-url-form {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .iz-exit-submit {
    min-height: 48px;
  }
}
