/* ────────────────────────────────────────────────
   video-modal — opened by the hero "See how it works" CTA
   ──────────────────────────────────────────────── */

.video-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.video-modal.is-open {
	visibility: visible;
	pointer-events: auto;
}

.video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 8, 10, 0.78);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	cursor: pointer;
}

.video-modal__panel {
	position: relative;
	width: 100%;
	max-width: 1080px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
	transform-origin: center center;
}

.video-modal__close {
	position: absolute;
	top: -46px;
	right: 0;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	transition: color 160ms ease, transform 160ms ease;
	z-index: 2;
}

.video-modal__close:hover {
	color: #fff;
	transform: rotate(90deg);
}

.video-modal__close svg {
	width: 100%;
	height: 100%;
	display: block;
}

.video-modal__frame {
	position: relative;
	width: 100%;
	height: 100%;
}

.video-modal__frame video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background: #000;
}

/* lock scroll on the body while open */
body.video-modal-open {
	overflow: hidden;
}

/* small screens — let the panel fill width, move close inside */
@media (max-width: 720px) {
	.video-modal {
		padding: 0;
	}
	.video-modal__panel {
		width: 100%;
		max-width: none;
		border-radius: 0;
		height: 100%;
		aspect-ratio: auto;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.video-modal__frame {
		height: auto;
		aspect-ratio: 16 / 9;
	}
	.video-modal__close {
		top: 14px;
		right: 14px;
		width: 36px;
		height: 36px;
		padding: 8px;
		background: rgba(0, 0, 0, 0.55);
		border-radius: 50%;
	}
}

/* screen-reader only helper */
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
