/*
 * Conversion components shared by the homepage and the about / pricing / checklist pages.
 * Uses only the global --mds-* tokens from style.css, so it works on every page.
 * Prefix: mk-
 */

/* ---------- Generic panel section (subpages) ---------- */
.mk-section {
	position: relative;
	display: grid;
	gap: var(--mds-space-4);
	padding: var(--mds-space-6) var(--mds-space-4);
	border-radius: var(--mds-radius-xl);
	border: 1px solid var(--mds-border);
	background:
		linear-gradient(145deg, var(--mds-accent-soft), transparent 30%),
		var(--mds-bg-elev);
	scroll-margin-top: 120px;
}

.mk-section__header {
	display: grid;
	gap: var(--mds-space-2);
	max-width: 68ch;
}

.mk-kicker {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mds-muted-soft);
}

.mk-section h2,
.mk-title {
	margin: 0;
	font-family: var(--mds-font-display);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--mds-text);
}

.mk-lead {
	margin: 0;
	font-size: var(--mds-text-lg);
	line-height: 1.7;
	color: var(--mds-muted);
}

.mk-stack {
	display: grid;
	gap: var(--mds-space-6);
}

/* ---------- Hero: two-path chooser ---------- */
.mds-hero-visual.mk-paths {
	min-height: 0;
	perspective: none;
	display: grid;
	gap: var(--mds-space-3);
	align-content: center;
}

.mk-paths__label {
	font-size: var(--mds-text-xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mds-muted-soft);
}

.mk-path {
	position: relative;
	display: grid;
	gap: 10px;
	padding: 26px 28px;
	border-radius: var(--mds-radius-lg);
	border: 1px solid var(--mds-border-strong);
	background: var(--mds-bg-panel);
	box-shadow: var(--mds-shadow-soft);
	color: var(--mds-text);
	text-decoration: none;
	transition:
		transform var(--mds-hover-duration, 0.35s) var(--mds-ease, ease),
		border-color var(--mds-hover-duration, 0.35s) ease,
		box-shadow var(--mds-hover-duration, 0.35s) ease;
}

.mk-path:hover,
.mk-path:focus-visible {
	transform: translate3d(0, -3px, 0);
	border-color: var(--mds-text);
	box-shadow: var(--mds-shadow);
}

.mk-path:focus-visible {
	outline: 2px solid var(--mds-text);
	outline-offset: 3px;
}

.mk-path__kicker {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mds-muted-soft);
}

.mk-path strong {
	font-family: var(--mds-font-display);
	font-size: var(--mds-text-xl);
	line-height: 1.3;
}

.mk-path p {
	margin: 0;
	font-size: var(--mds-text-sm);
	line-height: 1.65;
	color: var(--mds-muted);
}

.mk-path__link {
	font-size: var(--mds-text-sm);
	font-weight: 800;
}

.mk-path__link::after {
	content: " \2192";
}

/* Direct-line note with avatar under the hero buttons */
.mk-direct {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: clamp(16px, 2.4svh, 22px);
	font-size: var(--mds-text-sm);
	line-height: 1.5;
	color: var(--mds-muted);
}

.mk-direct img {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 18%;
	border: 1px solid var(--mds-border-strong);
}

.mk-direct a {
	color: var(--mds-text);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Offers ---------- */
.mk-offers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--mds-space-3);
	align-items: stretch;
}

.mk-offer {
	display: grid;
	grid-template-rows: auto auto auto auto auto 1fr auto auto;
	gap: 14px;
	padding: 28px 26px;
	border-radius: var(--mds-radius-lg);
	border: 1px solid var(--mds-border);
	background: var(--mds-bg-panel);
}

.mk-offer--featured {
	border-color: var(--mds-border-strong);
	box-shadow: var(--mds-shadow-soft);
}

.mk-offer h3 {
	margin: 0;
	font-family: var(--mds-font-display);
	font-size: var(--mds-text-xl);
	line-height: 1.25;
	color: var(--mds-text);
}

.mk-offer__summary {
	margin: 0;
	font-size: var(--mds-text-sm);
	line-height: 1.65;
	color: var(--mds-muted);
}

.mk-offer__terms {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 14px 0;
	border-top: 1px solid var(--mds-border);
	border-bottom: 1px solid var(--mds-border);
}

.mk-offer__terms p {
	margin: 0;
}

.mk-offer__price {
	font-family: var(--mds-font-display);
	font-size: var(--mds-text-lg);
	font-weight: 700;
	color: var(--mds-text);
}

.mk-offer__duration {
	font-size: var(--mds-text-sm);
	color: var(--mds-muted-soft);
}

.mk-checks {
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mk-checks li {
	position: relative;
	padding-left: 26px;
	font-size: var(--mds-text-sm);
	line-height: 1.55;
	color: var(--mds-text);
}

.mk-checks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.32em;
	width: 12px;
	height: 7px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	opacity: 0.8;
}

.mk-offer__assurance {
	margin: 0;
	padding: 12px 14px;
	border-radius: var(--mds-radius-md);
	background: var(--mds-accent-soft);
	font-size: var(--mds-text-sm);
	line-height: 1.55;
	color: var(--mds-text);
}

.mk-offer .mds-button,
.mk-offer .blog-pill {
	justify-self: start;
}

.mk-offers-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--mds-space-2);
	padding-top: var(--mds-space-3);
	border-top: 1px solid var(--mds-border);
	color: var(--mds-muted);
	font-size: var(--mds-text-sm);
}

.mk-textlink,
.mds-home .mk-textlink {
	color: var(--mds-text);
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Process ---------- */
.mk-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--mds-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: mk-step;
}

.mk-steps li {
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 24px;
	border-radius: var(--mds-radius-lg);
	border: 1px solid var(--mds-border);
	counter-increment: mk-step;
}

.mk-steps li::before {
	content: counter(mk-step, decimal-leading-zero);
	font-family: var(--mds-font-display);
	font-size: var(--mds-text-2xl);
	font-weight: 700;
	color: var(--mds-muted-soft);
}

.mk-steps strong {
	font-size: var(--mds-text-lg);
	color: var(--mds-text);
}

.mk-steps p {
	margin: 0;
	font-size: var(--mds-text-sm);
	line-height: 1.65;
	color: var(--mds-muted);
}

/* ---------- FAQ ---------- */
.mk-faq {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--mds-border);
}

.mk-faq details {
	border-bottom: 1px solid var(--mds-border);
}

.mk-faq summary {
	position: relative;
	padding: 20px 44px 20px 0;
	list-style: none;
	cursor: pointer;
	font-weight: 700;
	font-size: var(--mds-text-lg);
	line-height: 1.45;
	color: var(--mds-text);
}

.mk-faq summary::-webkit-details-marker {
	display: none;
}

.mk-faq summary::after {
	content: "+";
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--mds-muted);
	transition: transform 0.25s ease;
}

.mk-faq details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.mk-faq summary:focus-visible {
	outline: 2px solid var(--mds-text);
	outline-offset: 4px;
	border-radius: 6px;
}

.mk-faq p {
	margin: 0 0 22px;
	max-width: 75ch;
	line-height: 1.75;
	color: var(--mds-muted);
}

/* ---------- Booking card (contact section) ---------- */
.mk-booking {
	display: grid;
	gap: 10px;
	margin-top: var(--mds-space-3);
	padding: 20px 22px;
	border-radius: var(--mds-radius-lg);
	border: 1px solid var(--mds-border-strong);
	background: var(--mds-accent-soft);
}

.mk-booking strong {
	font-size: var(--mds-text-lg);
	color: var(--mds-text);
}

.mk-booking p {
	margin: 0;
	color: var(--mds-muted);
	font-size: var(--mds-text-sm);
}

.mk-booking .mds-button {
	justify-self: start;
}

/* ---------- CTA band (subpages) ---------- */
.mk-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--mds-space-3);
}

.mk-cta__text {
	display: grid;
	gap: 8px;
	max-width: 60ch;
}

.mk-cta__text p {
	margin: 0;
	color: var(--mds-muted);
	line-height: 1.7;
}

.mk-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- About ---------- */
.mk-about-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
	gap: var(--mds-space-6);
	align-items: center;
}

.mk-about-hero h1 {
	margin: 0 0 var(--mds-space-2);
	font-family: var(--mds-font-display);
	font-size: clamp(2.2rem, 5vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.mk-about-hero .mk-lead {
	margin-bottom: var(--mds-space-3);
}

.mk-portrait {
	margin: 0;
	display: grid;
	gap: 12px;
}

.mk-portrait img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1079 / 1350;
	object-fit: cover;
	border-radius: var(--mds-radius-xl);
	border: 1px solid var(--mds-border);
	box-shadow: var(--mds-shadow);
}

.mk-portrait figcaption {
	display: grid;
	gap: 2px;
	font-size: var(--mds-text-sm);
	color: var(--mds-muted);
}

.mk-portrait figcaption strong {
	color: var(--mds-text);
	font-size: var(--mds-text-base);
}

.mk-prose {
	display: grid;
	gap: var(--mds-space-2);
	max-width: 72ch;
}

.mk-prose p {
	margin: 0;
	font-size: var(--mds-text-lg);
	line-height: 1.75;
	color: var(--mds-muted);
}

.mk-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--mds-space-3);
}

.mk-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--mds-space-3);
}

.mk-tile {
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 22px 24px;
	border-radius: var(--mds-radius-lg);
	border: 1px solid var(--mds-border);
	background: var(--mds-bg-panel);
}

.mk-tile h3 {
	margin: 0;
	font-size: var(--mds-text-lg);
	color: var(--mds-text);
}

.mk-tile p {
	margin: 0;
	font-size: var(--mds-text-sm);
	line-height: 1.7;
	color: var(--mds-muted);
}

.mk-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--mds-space-3);
	margin: 0;
}

.mk-facts div {
	display: grid;
	align-content: start;
	gap: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--mds-border);
}

.mk-facts dt {
	font-size: var(--mds-text-xs);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mds-muted-soft);
}

.mk-facts dd {
	margin: 0;
	color: var(--mds-text);
	line-height: 1.55;
}

/* ---------- Checklist ---------- */
.mk-checklist-progress {
	position: sticky;
	top: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-radius: var(--mds-radius-md);
	border: 1px solid var(--mds-border-strong);
	background: var(--mds-bg-panel);
	backdrop-filter: blur(10px);
	font-weight: 700;
}

.mk-checklist-progress output {
	font-family: var(--mds-font-display);
	font-size: var(--mds-text-2xl);
}

.mk-checklist-progress progress {
	flex: 1 1 auto;
	height: 8px;
	accent-color: var(--mds-text);
}

.mk-checklist fieldset {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
}

.mk-checklist legend {
	margin-bottom: 8px;
	font-family: var(--mds-font-display);
	font-size: var(--mds-text-xl);
	font-weight: 700;
	color: var(--mds-text);
}

.mk-checklist label {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 14px 16px;
	border-radius: var(--mds-radius-md);
	border: 1px solid var(--mds-border);
	line-height: 1.55;
	color: var(--mds-text);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.mk-checklist label:hover {
	border-color: var(--mds-border-strong);
}

.mk-checklist label:has(input:checked) {
	background: var(--mds-accent-soft);
	border-color: var(--mds-border-strong);
}

.mk-checklist input[type="checkbox"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--mds-text);
}

.mk-score {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mk-score li {
	padding: 12px 16px;
	border-radius: var(--mds-radius-md);
	border: 1px solid var(--mds-border);
	color: var(--mds-muted);
	line-height: 1.55;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mk-score li.is-current {
	border-color: var(--mds-text);
	background: var(--mds-accent-soft);
	color: var(--mds-text);
	font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.mds-hero-visual.mk-paths {
		margin-top: clamp(24px, 4svh, 40px);
		min-height: 0;
	}

	.mk-offers {
		grid-template-columns: 1fr;
		max-width: 640px;
	}

	.mk-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.mk-about-hero,
	.mk-grid-2,
	.mk-grid-3 {
		grid-template-columns: 1fr;
	}

	.mk-portrait {
		max-width: 360px;
	}
}

@media (max-width: 760px) {
	.mk-section {
		padding: var(--mds-space-4) var(--mds-space-2);
		border-radius: var(--mds-radius-lg);
	}

	.mds-hero-visual.mk-paths {
		min-height: 0;
	}

	.mk-path {
		padding: 22px;
	}

	.mk-steps {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mk-path,
	.mk-path:hover {
		transition: none;
		transform: none;
	}
}
