/* Qojo App Popup: premium dark and blue gradient card.
 * Bottom-left on desktop, bottom sheet on mobile. Hidden until the
 * script adds .is-visible, 4 seconds after page load. */

.qojo-app-popup {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 24px;
	visibility: hidden;
	opacity: 0;
	transition: opacity .35s ease, visibility .35s ease;
	pointer-events: none;
}

.qojo-app-popup[hidden] {
	display: none;
}

.qojo-app-popup.is-visible {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.qojo-app-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 9, 43, .72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.qojo-app-popup__card {
	position: relative;
	width: 100%;
	max-width: 380px;
	padding: 30px 26px 24px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 24px;
	background:
		radial-gradient(120% 90% at 85% 0%, rgba(26, 37, 255, .55) 0%, rgba(26, 37, 255, 0) 55%),
		radial-gradient(100% 80% at 0% 100%, rgba(26, 37, 255, .35) 0%, rgba(26, 37, 255, 0) 50%),
		linear-gradient(150deg, #12133f 0%, #08092b 55%, #0a0c33 100%);
	box-shadow: 0 32px 80px rgba(4, 5, 30, .65), 0 0 0 1px rgba(26, 37, 255, .18), 0 0 64px rgba(26, 37, 255, .28);
	color: #fff;
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	text-align: center;
	transform: translateY(20px);
	transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.qojo-app-popup.is-visible .qojo-app-popup__card {
	transform: translateY(0);
}

.qojo-app-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .10);
	color: #fff;
	cursor: pointer;
	transition: background .2s ease;
}

.qojo-app-popup__close:hover,
.qojo-app-popup__close:focus-visible {
	background: rgba(255, 255, 255, .22);
	outline: none;
}

.qojo-app-popup__icon {
	display: block;
	width: 60px;
	height: 60px;
	margin: 0 auto 14px;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(26, 37, 255, .55);
}

.qojo-app-popup__title {
	margin: 0 0 10px;
	color: #fff;
	font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
}

.qojo-app-popup__text {
	margin: 0 0 18px;
	color: rgba(255, 255, 255, .82);
	font-size: 14px;
	line-height: 1.6;
}

.qojo-app-popup__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 12px 20px;
	border-radius: 999px;
	background: #fff;
	color: #08092b;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
	transition: transform .2s ease, box-shadow .2s ease;
}

.qojo-app-popup__cta:hover,
.qojo-app-popup__cta:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
	outline: none;
}

.qojo-app-popup__cta:active {
	transform: translateY(0);
}

.qojo-app-popup__play {
	flex-shrink: 0;
}

.qojo-app-popup__dismiss {
	display: inline-block;
	margin-top: 16px;
	padding: 6px 10px;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, .62);
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
}

.qojo-app-popup__dismiss:hover,
.qojo-app-popup__dismiss:focus-visible {
	color: #fff;
	text-decoration: underline;
	outline: none;
}

/* Mobile: bottom sheet that slides up, spanning the width. */
@media (max-width: 520px) {
	.qojo-app-popup {
		padding: 0 12px 12px;
	}

	.qojo-app-popup__card {
		max-width: none;
		padding: 26px 20px 18px;
		border-radius: 24px 24px 20px 20px;
	}

	.qojo-app-popup__title {
		font-size: 23px;
	}

	.qojo-app-popup__text {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qojo-app-popup,
	.qojo-app-popup__card,
	.qojo-app-popup__cta {
		transition: none;
	}
}
