/**
 * Glow trigger + expanding popup (`.haam-glow-popup` + `.is-active`).
 */

.haam-glow-popup {
	--haam-glow-a: #1a1532;
	--haam-glow-b: #ebd11a;
	--haam-glow-b-soft: #f5e878;
	--haam-glow-grad: linear-gradient(to right, var(--haam-glow-a), var(--haam-glow-b));
	position: relative;
}

.haam-glow-popup__stage {
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.haam-glow-popup__trigger {
	cursor: pointer;
	position: relative;
	z-index: 2;
	appearance: none;
	background: #fff;
	outline: none;
	border: 1px solid rgba(26, 21, 50, 0.1);
	text-transform: none;
	letter-spacing: 0.04em;
	border-radius: 0;
	transition: all 0.5s ease;
	font-weight: 700;
	font-size: 14px;
	font-family: inherit;
	height: 60px;
	min-width: 110px;
	padding: 0 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 #fff, 0 0 0 #fff;
	color: inherit;
}

.haam-glow-popup__trigger-text {
	display: inline-block;
	position: relative;
	z-index: 2;
	background: var(--haam-glow-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.haam-glow-popup__circle {
	position: absolute;
	height: 6px;
	width: 6px;
	border-radius: 50%;
	transition: all 0.5s ease;
}

.haam-glow-popup__circle--1 {
	left: 0;
	top: 0;
	box-shadow: 0 0 10px var(--haam-glow-a), 0 0 20px var(--haam-glow-a), 0 0 30px var(--haam-glow-a);
}

.haam-glow-popup__circle--2 {
	left: 0;
	bottom: 0;
	top: auto;
	box-shadow: 0 0 10px var(--haam-glow-a), 0 0 20px var(--haam-glow-a), 0 0 30px var(--haam-glow-a);
}

.haam-glow-popup__circle--3 {
	left: auto;
	right: 0;
	top: 0;
	box-shadow: 0 0 10px var(--haam-glow-b), 0 0 20px var(--haam-glow-b), 0 0 30px var(--haam-glow-b);
}

.haam-glow-popup__circle--4 {
	left: auto;
	right: 0;
	top: auto;
	bottom: 0;
	box-shadow: 0 0 10px var(--haam-glow-b), 0 0 20px var(--haam-glow-b), 0 0 30px var(--haam-glow-b);
}

.haam-glow-popup__circles {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.haam-glow-popup__trigger:hover {
	box-shadow: -15px 0 70px -15px var(--haam-glow-a), 15px 0 70px -15px var(--haam-glow-b);
}

.haam-glow-popup__trigger:hover .haam-glow-popup__circle--1 {
	transform: translate(-15px, -15px) scale(0);
}

.haam-glow-popup__trigger:hover .haam-glow-popup__circle--2 {
	transform: translate(-15px, 15px) scale(0);
}

.haam-glow-popup__trigger:hover .haam-glow-popup__circle--3 {
	transform: translate(15px, -15px) scale(0);
}

.haam-glow-popup__trigger:hover .haam-glow-popup__circle--4 {
	transform: translate(15px, 15px) scale(0);
}

.haam-glow-popup__trigger:hover .haam-glow-popup__circle {
	box-shadow: none;
}

.haam-glow-popup__panel {
	opacity: 0;
	visibility: hidden;
	height: min(400px, 70vw);
	width: min(400px, 70vw);
	flex-shrink: 0;
	border-radius: 3px;
	position: absolute;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	pointer-events: none;
}

.haam-glow-popup__panel-inside {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 50%;
	box-shadow: 0 0 0 #000;
	transition:
		box-shadow 0.5s ease 0.7s,
		border-radius 0.35s ease 0.7s;
}

.haam-glow-popup__backgrounds {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.haam-glow-popup__bg {
	--offset: 0;
	position: absolute;
	inset: var(--offset);
	background: var(--haam-glow-grad);
	transform: scale(0);
	transition: all 0.5s ease 0s;
	border-radius: 50%;
}

.haam-glow-popup__bg--2 {
	--offset: 10%;
	background: linear-gradient(to right, #2d2850, #f0dc4a);
	transition-delay: 0.1s;
}

.haam-glow-popup__bg--3 {
	--offset: 20%;
	background: linear-gradient(to right, #4a4570, var(--haam-glow-b-soft));
	z-index: 2;
	transition-delay: 0.2s;
}

.haam-glow-popup__bg--4 {
	--offset: 30%;
	background: linear-gradient(to right, #8a86a8, #fbf6d0);
	z-index: 3;
	transition-delay: 0.3s;
}

.haam-glow-popup__bg--5 {
	--offset: 40%;
	background: linear-gradient(to right, #c9c6de, #fdf9e8);
	z-index: 4;
	transition-delay: 0.4s;
}

.haam-glow-popup__bg--6 {
	--offset: 40%;
	background: #fff;
	z-index: 5;
	transition: all 0.8s ease 0.4s;
}

.haam-glow-popup__content {
	--offset: 0;
	position: absolute;
	inset: var(--offset);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: all 0.35s ease 0.75s;
	z-index: 10;
	text-align: center;
	padding: 1.5rem;
}

.haam-glow-popup__content h2 {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 800;
	text-transform: none;
	letter-spacing: 0;
	color: var(--haam-glow-a);
}

.haam-glow-popup__content p {
	margin: 0 0 0.85rem;
	padding: 0;
	font-size: 0.9rem;
	color: #6b7280;
	line-height: 1.6;
	letter-spacing: 0;
}

.haam-glow-popup__content p:last-of-type {
	margin-bottom: 0;
}

.haam-glow-popup__retry {
	cursor: pointer;
	position: relative;
	font-size: 0.9rem;
	color: var(--haam-glow-a);
	font-weight: 600;
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
}

.haam-glow-popup__retry::after {
	content: '';
	position: absolute;
	left: 15px;
	right: 15px;
	height: 1px;
	top: 100%;
	background: #ebebeb;
	margin-top: 8px;
	transition: all 0.3s ease;
}

.haam-glow-popup__retry:hover::after {
	left: 40%;
	right: 40%;
}

.haam-glow-popup.is-active .haam-glow-popup__content {
	opacity: 1;
}

.haam-glow-popup.is-active .haam-glow-popup__panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.haam-glow-popup.is-active .haam-glow-popup__panel-inside {
	border-radius: 0;
	box-shadow: -50px 0 200px -50px var(--haam-glow-a), 50px 0 200px -50px var(--haam-glow-b);
}

.haam-glow-popup.is-active .haam-glow-popup__bg {
	transform: scale(1);
}

.haam-glow-popup.is-active .haam-glow-popup__bg--6 {
	transform: scale(8);
}

@media (prefers-reduced-motion: reduce) {
	.haam-glow-popup__trigger,
	.haam-glow-popup__circle,
	.haam-glow-popup__panel,
	.haam-glow-popup__panel-inside,
	.haam-glow-popup__bg,
	.haam-glow-popup__content {
		transition: none;
	}

	.haam-glow-popup.is-active .haam-glow-popup__bg--6 {
		transform: scale(1);
	}

	.haam-glow-popup__panel-inside {
		border-radius: 0;
	}
}
