/* Exit-intent pop-up. */

.dsp-exit {
	width: min(960px, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 24px;
	background:
		radial-gradient(60% 70% at 85% 70%, rgba(61, 91, 255, 0.45), transparent 70%),
		radial-gradient(40% 50% at 0% 0%, rgba(48, 72, 252, 0.4), transparent 70%),
		#040824;
	box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.7);
	color: #fff;
}

.dsp-exit[open] {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	animation: dsp-exit-in 0.25s ease-out;
}

.dsp-exit::backdrop {
	background: rgba(4, 8, 36, 0.65);
	backdrop-filter: blur(3px);
}

@keyframes dsp-exit-in {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
	.dsp-exit[open] { animation: none; }
}

.dsp-exit__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
}

.dsp-exit__close:hover,
.dsp-exit__close:focus-visible {
	background: rgba(255, 255, 255, 0.18);
}

.dsp-exit__close svg {
	width: 1.25rem;
	height: 1.25rem;
}

.dsp-exit__body {
	padding: clamp(2rem, 4vw, 3.25rem);
}

.dsp-exit__logo {
	margin: 0 0 2.5rem;
	color: #fff !important;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.dsp-exit__logo i {
	color: #5C77FF;
	font-style: normal;
}

.dsp-exit__eyebrow {
	margin: 0 0 0.75rem;
	color: #8D9BFF;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.dsp-exit h2 {
	margin: 0 0 1rem;
	color: #fff;
	font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.dsp-exit h2 em {
	background: linear-gradient(90deg, #6F86FF, #B072FF);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-style: normal;
}

.dsp-exit__text {
	margin: 0 0 1.75rem;
	color: rgba(255, 255, 255, 0.78) !important;
	line-height: 1.55;
}

.dsp-exit .dsp-form input[type="email"] {
	border-radius: 999px;
	padding-left: 1.25rem;
}

.dsp-exit .dsp-form .wp-block-button__link {
	width: 100%;
	border-radius: 999px;
}

.dsp-exit .dsp-form__consent {
	color: rgba(255, 255, 255, 0.6);
}

/* Illustration: glowing box with three cards. */
.dsp-exit__art {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.dsp-exit__box {
	position: absolute;
	right: 12%;
	bottom: 12%;
	width: 60%;
	height: 34%;
	border-radius: 10px;
	background: linear-gradient(180deg, #2B36B8, #0B1240);
	box-shadow: 0 -30px 60px -10px rgba(110, 130, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.dsp-exit__art ul {
	position: relative;
	display: grid;
	gap: 0.9rem;
	margin: 0 0 3rem;
	padding: 0;
	list-style: none;
}

.dsp-exit__art li {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.9rem 1.25rem 0.9rem 0.9rem;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6);
	color: #0B1035;
	font-weight: 600;
	transform: rotate(4deg);
}

.dsp-exit__art li:nth-child(2) {
	margin-left: 1.5rem;
}

.dsp-exit__art li span {
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 10px;
	background: linear-gradient(145deg, #7C5CFF, #3048FC);
	color: #fff;
}

.dsp-exit__art li svg {
	width: 1.25rem;
	height: 1.25rem;
}

@media (max-width: 760px) {
	.dsp-exit[open] {
		grid-template-columns: 1fr;
	}

	.dsp-exit__art {
		display: none;
	}
}
