.xk-lm[hidden],
.xk-lm [hidden] { display: none !important; }

.xk-lm {
	padding-block: clamp(28px, 4vw, 58px) clamp(54px, 6vw, 88px);
	color: #182d3b;
}

.xk-lm button,
.xk-lm input { font: inherit; }

.xk-lm__intro,
.xk-lm__quiz,
.xk-lm__results {
	border: 1px solid #ead7bd;
	border-radius: 26px;
	background: #fffdf9;
	box-shadow: 0 18px 48px rgb(31 50 59 / 7%);
}

.xk-lm__intro {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr);
	min-height: 560px;
	overflow: hidden;
}

.xk-lm__intro-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(34px, 5vw, 76px);
}

.xk-lm__eyebrow {
	margin: 0 0 10px;
	color: #18817c;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.xk-lm h1,
.xk-lm h2,
.xk-lm h3 { color: #102d3b; font-family: inherit; }

.xk-lm h1 {
	max-width: 760px;
	margin: 0;
	font-size: clamp(38px, 5vw, 68px);
	line-height: 1.04;
	letter-spacing: -.035em;
}

.xk-lm__intro-copy > p:not(.xk-lm__eyebrow) {
	max-width: 720px;
	margin: 20px 0 0;
	color: #536775;
	font-size: clamp(17px, 1.6vw, 21px);
	line-height: 1.65;
}

.xk-lm__intro-points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 32px 0;
	padding: 0;
	list-style: none;
}

.xk-lm__intro-points li {
	min-width: 0;
	padding: 16px;
	border: 1px solid #e4e8e5;
	border-radius: 16px;
	background: #fff;
}

.xk-lm__intro-points strong,
.xk-lm__intro-points span { display: block; }
.xk-lm__intro-points strong { margin-bottom: 5px; font-size: 14px; }
.xk-lm__intro-points span { color: #687985; font-size: 13px; line-height: 1.45; }

.xk-lm__intro-art {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, 112px);
	align-content: center;
	justify-content: center;
	gap: 18px;
	padding: 50px;
	background:
		radial-gradient(circle at 78% 20%, rgb(255 255 255 / 75%) 0 72px, transparent 73px),
		linear-gradient(145deg, #dff1ec, #f8edcd 72%);
}

.xk-lm__intro-art span {
	display: grid;
	place-items: center;
	width: 112px;
	height: 112px;
	border: 1px solid rgb(255 255 255 / 85%);
	border-radius: 28px;
	background: rgb(255 255 255 / 78%);
	box-shadow: 0 12px 28px rgb(55 87 79 / 12%);
	font-size: 52px;
}

.xk-lm__intro-art span:nth-child(2),
.xk-lm__intro-art span:nth-child(5) { transform: translateY(22px); }

.xk-lm__primary,
.xk-lm__secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 11px 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 800;
	cursor: pointer;
}

.xk-lm__primary {
	align-self: flex-start;
	background: #ff5c1a;
	box-shadow: 0 9px 20px rgb(255 92 26 / 20%);
	color: #fff;
}

.xk-lm__primary:hover,
.xk-lm__primary:focus-visible { background: #e94b0b; color: #fff; transform: translateY(-1px); }
.xk-lm__secondary { border-color: #bfd1d0; background: #fff; color: #205b5a; }
.xk-lm__secondary:hover,
.xk-lm__secondary:focus-visible { border-color: #16817c; background: #edf8f6; color: #145f5b; }
.xk-lm__secondary:disabled { opacity: .45; cursor: default; }
.xk-lm button:focus-visible,
.xk-lm a:focus-visible,
.xk-lm input:focus-visible + .xk-lm-option__mark { outline: 3px solid rgb(255 92 26 / 30%); outline-offset: 3px; }

.xk-lm__quiz {
	width: min(920px, 100%);
	min-height: 590px;
	margin-inline: auto;
	padding: clamp(26px, 4vw, 54px);
}

.xk-lm__progress { margin-bottom: clamp(30px, 5vw, 52px); }
.xk-lm__progress > div:first-child { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: #61727e; font-size: 13px; font-weight: 750; }
.xk-lm__progress-track { height: 8px; border-radius: 999px; background: #e8eeeb; overflow: hidden; }
.xk-lm__progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #16817c, #ff8a3d); transition: width .25s ease; }

.xk-lm__question { min-width: 0; margin: 0; padding: 0; border: 0; }
.xk-lm__question legend { width: 100%; padding: 0; color: #102d3b; font-size: clamp(27px, 3.5vw, 39px); font-weight: 850; line-height: 1.18; }
.xk-lm__question > p:not(.xk-lm__error) { max-width: 720px; margin: 12px 0 26px; color: #637580; line-height: 1.55; }
.xk-lm__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.xk-lm-option {
	position: relative;
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 14px 16px;
	border: 1px solid #dbe3df;
	border-radius: 15px;
	background: #fff;
	color: #29424f;
	font-weight: 700;
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.xk-lm-option:hover { border-color: #83aaa5; background: #f7fbfa; }
.xk-lm-option:has(input:checked) { border-color: #16817c; background: #edf8f6; box-shadow: inset 0 0 0 1px #16817c; }
.xk-lm-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.xk-lm-option__mark { display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid #aebdb9; border-radius: 50%; background: #fff; }
.xk-lm-option input[type="checkbox"] + .xk-lm-option__mark { border-radius: 6px; }
.xk-lm-option input:checked + .xk-lm-option__mark { border-color: #16817c; background: #16817c; }
.xk-lm-option input:checked + .xk-lm-option__mark::after { width: 8px; height: 4px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; content: ""; transform: translateY(-1px) rotate(-45deg); }

.xk-lm__error { margin: 14px 0 0; padding: 10px 13px; border-radius: 10px; background: #fff0eb; color: #a53d1e; font-weight: 700; }
.xk-lm__actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; }

.xk-lm__results { padding: clamp(28px, 4vw, 58px); }
.xk-lm__results > header { max-width: 820px; margin-bottom: 30px; }
.xk-lm__results h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; }
.xk-lm__results > header > p:last-child { margin: 14px 0 0; color: #637580; font-size: 17px; line-height: 1.6; }
.xk-lm__result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.xk-lm-result {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 24px;
	border: 1px solid #dfe5e1;
	border-radius: 20px;
	background: #fff;
}
.xk-lm-result.is-best { border-color: #e8a266; background: linear-gradient(160deg, #fff9ef, #fff); box-shadow: 0 12px 28px rgb(88 64 28 / 9%); }
.xk-lm-result > header { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid #ebefec; }
.xk-lm-result__emoji { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; background: #eef7f3; font-size: 32px; }
.xk-lm-result h3 { margin: 4px 0 0; font-size: 24px; }
.xk-lm-result__band { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #edf1ef; color: #52646c; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.xk-lm-result__band--strong_fit { background: #dff3e8; color: #236746; }
.xk-lm-result__band--worth_considering { background: #fff1cf; color: #795b0b; }
.xk-lm-result__band--possible_adjustments { background: #f3e8e5; color: #855041; }
.xk-lm-result__why,
.xk-lm-result__consider { margin-top: 18px; }
.xk-lm-result__why > strong,
.xk-lm-result__consider > strong,
.xk-lm-result__profiles > strong { font-size: 13px; }
.xk-lm-result ul { display: grid; gap: 7px; margin: 9px 0 0; padding: 0; list-style: none; }
.xk-lm-result li { position: relative; padding-left: 20px; color: #526773; font-size: 14px; line-height: 1.45; }
.xk-lm-result__why li::before { position: absolute; left: 0; color: #16817c; content: "✓"; font-weight: 900; }
.xk-lm-result__consider li::before { position: absolute; left: 0; color: #d66a2e; content: "•"; font-weight: 900; }
.xk-lm-result__profiles { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.xk-lm-result__profiles > strong { flex-basis: 100%; }
.xk-lm-result__profiles a { padding: 5px 9px; border-radius: 999px; background: #f0f4f2; color: #38555f; font-size: 12px; font-weight: 700; }
.xk-lm-result__profiles a:hover { background: #e3efeb; color: #146b67; }
.xk-lm-result__link { align-self: flex-start; margin-top: auto; padding-top: 22px; color: #e94b0b; font-weight: 850; }
.xk-lm-result__link:hover { color: #b83907; }

.xk-lm__disclaimer { margin-top: 24px; padding: 20px 22px; border-left: 4px solid #16817c; border-radius: 14px; background: #f1f8f6; }
.xk-lm__disclaimer p { margin: 6px 0 0; color: #536b72; line-height: 1.55; }
.xk-lm__result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

@media (max-width: 900px) {
	.xk-lm__intro { grid-template-columns: 1fr; }
	.xk-lm__intro-art { grid-template-columns: repeat(3, 86px); order: -1; min-height: 235px; padding: 32px; }
	.xk-lm__intro-art span { width: 86px; height: 86px; border-radius: 22px; font-size: 40px; }
	.xk-lm__intro-art span:nth-child(2), .xk-lm__intro-art span:nth-child(5) { transform: none; }
	.xk-lm__intro-points { grid-template-columns: 1fr; }
	.xk-lm__result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.xk-lm { width: min(100% - 22px, var(--xk-site-width, 1440px)); padding-block: 18px 48px; }
	.xk-lm__intro, .xk-lm__quiz, .xk-lm__results { border-radius: 19px; }
	.xk-lm__intro-copy, .xk-lm__quiz, .xk-lm__results { padding: 24px 20px; }
	.xk-lm__intro-art { grid-template-columns: repeat(3, 62px); gap: 10px; min-height: 176px; }
	.xk-lm__intro-art span { width: 62px; height: 62px; border-radius: 16px; font-size: 31px; }
	.xk-lm__intro-points { margin-block: 24px; }
	.xk-lm__primary { width: 100%; }
	.xk-lm__options { grid-template-columns: 1fr; }
	.xk-lm__actions .xk-lm__primary { width: auto; }
	.xk-lm__question legend { font-size: 26px; }
	.xk-lm-result { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.xk-lm *, .xk-lm *::before, .xk-lm *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
