.mrk-widget,
.mrk-widget * {
	box-sizing: border-box;
}

.mrk-widget {
	position: relative;
	z-index: 20;
	width: 100%;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.mrk-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	padding: clamp(42px, 7vw, 86px) 24px;
	border-top: 1px solid rgb(100 226 232 / 28%);
	border-bottom: 1px solid rgb(100 226 232 / 28%);
	background:
		radial-gradient(circle at 12% 50%, rgb(32 199 212 / 28%), transparent 34%),
		linear-gradient(125deg, #081524 0%, #122b43 55%, #0d1b2c 100%);
	color: #fff;
	isolation: isolate;
}

.mrk-hero::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: repeating-linear-gradient(115deg, transparent 0 38px, rgb(255 255 255 / 3%) 39px 40px);
	content: "";
}

.mrk-hero__pulse {
	position: absolute;
	top: 50%;
	left: 12%;
	z-index: -1;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #64e2e8;
	box-shadow: 0 0 0 0 rgb(100 226 232 / 55%);
	animation: mrk-pulse 2.2s infinite;
}

.mrk-hero__content {
	width: min(1120px, 100%);
	margin: 0 auto;
	text-align: center;
	animation: mrk-hero-in .7s cubic-bezier(.2, .9, .25, 1) both;
}

.mrk-hero h2 {
	max-width: 900px;
	margin: 0 auto 26px;
	color: #fff;
	font-size: clamp(34px, 5.7vw, 72px);
	font-weight: 900;
	line-height: .98;
	letter-spacing: -.045em;
	text-wrap: balance;
}

.mrk-launcher {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 58px;
	padding: 16px 30px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #64e2e8, #20a9da);
	color: #071522;
	font: 900 18px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
	letter-spacing: .06em;
	box-shadow: 0 14px 42px rgb(32 199 212 / 34%);
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}

.mrk-launcher:hover,
.mrk-launcher:focus-visible {
	background: linear-gradient(135deg, #86f4f7, #42bee9);
	outline: 3px solid #fff;
	outline-offset: 3px;
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 18px 52px rgb(32 199 212 / 48%);
}

.mrk-launcher__arrow {
	font-size: 28px;
	line-height: .7;
}

.mrk-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgb(4 12 24 / 68%);
}

.mrk-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99999;
	width: min(520px, calc(100vw - 32px));
	max-height: min(760px, calc(100vh - 32px));
	overflow-y: auto;
	padding: 24px;
	border: 1px solid #31506b;
	border-radius: 20px;
	background: #111e30;
	color: #f8fbff;
	font: 400 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
	box-shadow: 0 24px 70px rgb(0 0 0 / 48%);
	transform: translate(-50%, -50%);
	animation: mrk-dialog-in .28s cubic-bezier(.2, .9, .25, 1) both;
}

.mrk-dialog[hidden],
.mrk-backdrop[hidden] {
	display: none;
}

.mrk-dialog__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.mrk-dialog h2,
.mrk-dialog h3,
.mrk-dialog p {
	margin-top: 0;
}

.mrk-dialog h2 {
	margin-bottom: 0;
	color: #fff;
	font-size: clamp(26px, 5vw, 36px);
	line-height: 1.15;
}

.mrk-eyebrow {
	margin-bottom: 6px;
	color: #64e2e8;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mrk-close {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border: 1px solid #52708c;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.mrk-close:hover,
.mrk-close:focus-visible,
.mrk-choice:focus-visible,
.mrk-submit:focus-visible,
.mrk-reset:focus-visible,
.mrk-result-link:focus-visible {
	outline: 3px solid #64e2e8;
	outline-offset: 3px;
}

.mrk-description {
	margin: 18px 0;
	color: #cad8e5;
}

.mrk-choices {
	display: grid;
	gap: 12px;
}

.mrk-choice {
	display: block;
	width: 100%;
	padding: 16px;
	border: 2px solid #344e68;
	border-radius: 14px;
	background: #182a3d;
	color: #fff;
	text-align: left;
	cursor: pointer;
}

.mrk-choice:hover,
.mrk-choice[aria-pressed="true"] {
	border-color: #53d6df;
	background: #1c3850;
}

.mrk-choice strong,
.mrk-choice span {
	display: block;
}

.mrk-choice strong {
	margin-bottom: 3px;
	font-size: 18px;
}

.mrk-choice span {
	color: #c5d4e0;
	font-size: 14px;
}

.mrk-submit,
.mrk-reset,
.mrk-result-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	border-radius: 12px;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
}

.mrk-submit {
	margin-top: 18px;
	border: 0;
	background: linear-gradient(135deg, #20c7d4, #2479d7);
	color: #071522;
	cursor: pointer;
}

.mrk-submit:disabled {
	cursor: not-allowed;
	filter: grayscale(1);
	opacity: .5;
}

.mrk-results {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #344e68;
}

.mrk-results h3 {
	margin-bottom: 4px;
	color: #fff;
	font-size: 22px;
}

.mrk-results p {
	color: #cad8e5;
}

.mrk-results__links {
	display: grid;
	gap: 10px;
}

.mrk-result-link {
	padding: 12px 14px;
	border: 1px solid #53d6df;
	background: #18314c;
	color: #fff;
}

.mrk-result-link:hover {
	background: #214563;
	color: #fff;
}

.mrk-reset {
	margin-top: 14px;
	border: 1px solid #607991;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.mrk-privacy {
	margin: 18px 0 0;
	color: #aebfce;
	font-size: 13px;
	text-align: center;
}

body.mrk-dialog-open {
	overflow: hidden;
}

@keyframes mrk-hero-in {
	from {
		opacity: 0;
		transform: translateY(34px) scale(.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes mrk-dialog-in {
	from {
		opacity: 0;
		transform: translate(-50%, -46%) scale(.94);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

@keyframes mrk-pulse {
	70% {
		box-shadow: 0 0 0 42px rgb(100 226 232 / 0%);
	}
	100% {
		box-shadow: 0 0 0 0 rgb(100 226 232 / 0%);
	}
}

@media (max-width: 600px) {
	.mrk-hero {
		padding: 42px 18px;
	}

	.mrk-dialog {
		width: calc(100vw - 32px);
		max-height: calc(100vh - 32px);
		padding: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mrk-widget * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
