/* ==========================================================================
   MyMaktab Website — design system
   Lapis and illuminated gold, after the colours of a hand-illuminated mushaf.
   Marcellus (inscriptional display) · Figtree (body) · Amiri (Arabic naskh)
   ========================================================================== */

:root {
	--mm-lapis: #10264f;
	--mm-lapis-600: #1b3d78;
	--mm-lapis-100: #e7ecf5;
	--mm-night: #0a1a35;
	--mm-gold: #b8913a;
	--mm-gold-bright: #d8b766;
	--mm-gold-soft: #f2e8cf;
	--mm-sage: #2f7d6b;
	--mm-sage-soft: #e3f1ec;
	--mm-amber: #9a6512;
	--mm-amber-soft: #fbefd9;
	--mm-red: #a3332b;
	--mm-red-soft: #f8e4e1;
	--mm-paper: #f5f6f2;
	--mm-white: #ffffff;
	--mm-ink: #141a26;
	--mm-body: #464f60;
	--mm-muted: #6a7282;
	--mm-line: #dde1e6;
	--mm-line-strong: #c7cdd6;

	--mm-display: "Marcellus", "Cormorant Garamond", Georgia, serif;
	--mm-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mm-arabic: "Amiri", "Traditional Arabic", "Scheherazade New", serif;

	--mm-container: 74rem;
	--mm-gutter: clamp(1rem, 4vw, 2rem);
	--mm-radius: 0.75rem;
	--mm-radius-lg: 1.25rem;
	--mm-header-h: 4.5rem;
	--mm-section: clamp(4rem, 9vw, 7rem);
	--mm-shadow: 0 1px 2px rgba(16, 38, 79, 0.06), 0 12px 32px -12px rgba(16, 38, 79, 0.18);
	--mm-focus: 0 0 0 3px var(--mm-white), 0 0 0 5px var(--mm-gold);
}

/* ---------- Base (scoped to body.mm-site so theme CSS cannot leak in) ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--mm-header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.mm-site {
	margin: 0;
	font-family: var(--mm-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--mm-body);
	background: var(--mm-paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.mm-site img,
body.mm-site svg { display: block; max-width: 100%; }
:where(body.mm-site) a { color: inherit; text-decoration: none; }
/* Resets use :where() so every component rule below wins without !important. */
:where(body.mm-site) :where(p, ul, ol, figure, blockquote) { margin: 0; padding: 0; }
:where(body.mm-site) :where(ul, ol) { list-style: none; }
:where(body.mm-site) :where(h1, h2, h3) {
	margin: 0;
	color: var(--mm-ink);
	font-family: var(--mm-display);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.005em;
	text-wrap: balance;
}
body.mm-site :where(h1) { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
body.mm-site :where(h2) { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
body.mm-site :where(h3) {
	font-family: var(--mm-sans);
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}
body.mm-site :focus-visible { outline: none; box-shadow: var(--mm-focus); border-radius: 0.35rem; }
body.mm-site button { font: inherit; cursor: pointer; }

.mm-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.mm-skip {
	position: absolute; left: -9999px; top: 0.75rem; z-index: 999;
	padding: 0.75rem 1rem; border-radius: 0.5rem;
	background: var(--mm-lapis); color: #fff !important; font-weight: 600;
}
.mm-skip:focus { left: 0.75rem; }

.mm-container {
	width: 100%;
	max-width: var(--mm-container);
	margin-inline: auto;
	padding-inline: var(--mm-gutter);
}

.mm-icon { width: 1.5rem; height: 1.5rem; flex: none; }

.mm-ar {
	font-family: var(--mm-arabic);
	font-weight: 400;
	line-height: 1.9;
	letter-spacing: 0;
	direction: rtl;
}

.mm-lead {
	font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
	line-height: 1.6;
	color: var(--mm-body);
	max-width: 38em;
}

.mm-link {
	color: var(--mm-lapis-600) !important;
	font-weight: 600;
	text-decoration: underline !important;
	text-decoration-color: color-mix(in srgb, var(--mm-gold) 70%, transparent) !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 0.25em;
}
.mm-link:hover { text-decoration-color: var(--mm-lapis-600) !important; }

.mm-star { width: 0.85rem; height: 0.85rem; fill: var(--mm-gold); flex: none; }

/* ---------- Buttons ------------------------------------------------------ */
.mm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.6rem 1.15rem;
	border: 1px solid transparent;
	border-radius: 0.6rem;
	font-family: var(--mm-sans);
	font-size: 0.975rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.mm-btn--lg { min-height: 3.25rem; padding-inline: 1.5rem; font-size: 1.025rem; }
.mm-btn--small { min-height: 2.5rem; padding: 0.45rem 1rem; }
.mm-btn--primary,
.mm-btn--small { background: var(--mm-lapis); color: #fff !important; }
.mm-btn--primary:hover,
.mm-btn--small:hover { background: var(--mm-lapis-600); }
.mm-btn--outline { border-color: var(--mm-line-strong); color: var(--mm-ink) !important; background: var(--mm-white); }
.mm-btn--outline:hover { border-color: var(--mm-lapis); }
.mm-btn--quiet { color: var(--mm-ink) !important; }
.mm-btn--quiet:hover { background: var(--mm-lapis-100); }
.mm-btn--gold { background: var(--mm-gold-bright); color: var(--mm-night) !important; }
.mm-btn--gold:hover { background: #e6c983; }
.mm-btn--ghost-light { border-color: rgba(255, 255, 255, 0.35); color: #fff !important; }
.mm-btn--ghost-light:hover { border-color: #fff; }

.mm-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.mm-actions--center { justify-content: center; }

/* ---------- Header ------------------------------------------------------- */
.mm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--mm-paper) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}
.admin-bar .mm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mm-header { top: 46px; } }
.mm-header.is-scrolled { border-bottom-color: var(--mm-line); }
.mm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--mm-header-h);
}

.mm-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.mm-logo__mark { width: 2.25rem; height: 2.25rem; }
.mm-mark__star { fill: var(--mm-lapis); }
.mm-mark__ring { fill: none; stroke: var(--mm-gold-bright); stroke-width: 1.6; }
.mm-mark__book { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.mm-logo__word {
	font-family: var(--mm-display);
	font-size: 1.45rem;
	color: var(--mm-ink);
	letter-spacing: 0.01em;
}
.mm-logo--dark .mm-mark__star { fill: var(--mm-gold-bright); }
.mm-logo--dark .mm-mark__ring { stroke: var(--mm-night); }
.mm-logo--dark .mm-mark__book { stroke: var(--mm-night); }
.mm-logo--dark .mm-logo__word { color: #fff; }

.mm-nav { display: flex; align-items: center; gap: 2rem; }
.mm-nav__list { display: flex; gap: 0.25rem; }
.mm-nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding-inline: 0.8rem;
	border-radius: 0.5rem;
	color: var(--mm-body);
	font-weight: 500;
}
.mm-nav__list a:hover { color: var(--mm-ink); background: var(--mm-lapis-100); }
.mm-nav__list a[aria-current="page"] {
	color: var(--mm-ink);
	box-shadow: inset 0 -2px 0 var(--mm-gold);
	border-radius: 0;
}
.mm-nav__actions { display: flex; gap: 0.5rem; }

.mm-nav-toggle {
	display: none;
	width: 2.75rem; height: 2.75rem;
	align-items: center; justify-content: center;
	border: 1px solid var(--mm-line-strong);
	border-radius: 0.6rem;
	background: var(--mm-white);
	color: var(--mm-ink);
}
.mm-nav-toggle__close { display: none; }
.mm-nav-toggle[aria-expanded="true"] .mm-nav-toggle__open { display: none; }
.mm-nav-toggle[aria-expanded="true"] .mm-nav-toggle__close { display: inline; }

@media (max-width: 960px) {
	.mm-nav-toggle { display: inline-flex; }
	.mm-nav {
		position: fixed;
		inset: var(--mm-header-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1rem var(--mm-gutter) 1.5rem;
		background: var(--mm-paper);
		border-bottom: 1px solid var(--mm-line);
		box-shadow: 0 24px 40px -24px rgba(16, 38, 79, 0.35);
		display: none;
	}
	.admin-bar .mm-nav { top: calc(var(--mm-header-h) + 46px); }
	.mm-nav.is-open { display: flex; }
	.mm-nav__list { flex-direction: column; }
	.mm-nav__list a { width: 100%; font-size: 1.125rem; }
	.mm-nav__list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--mm-gold); }
	.mm-nav__actions { flex-direction: column-reverse; }
	.mm-nav__actions .mm-btn { width: 100%; }
}

/* ---------- Pattern (girih lattice, tinted via mask) --------------------- */
.mm-pattern,
.mm-arch__pattern {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-color: var(--mm-gold-bright);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2280%22 height=%2280%22 viewBox=%220 0 80 80%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221%22%3E%3Cg id=%22s%22%3E%3Crect x=%2224%22 y=%2224%22 width=%2232%22 height=%2232%22/%3E%3Crect x=%2224%22 y=%2224%22 width=%2232%22 height=%2232%22 transform=%22rotate(45 40 40)%22/%3E%3Ccircle cx=%2240%22 cy=%2240%22 r=%227%22/%3E%3C/g%3E%3Cuse href=%22%23s%22 x=%22-40%22 y=%22-40%22/%3E%3Cuse href=%22%23s%22 x=%2240%22 y=%22-40%22/%3E%3Cuse href=%22%23s%22 x=%22-40%22 y=%2240%22/%3E%3Cuse href=%22%23s%22 x=%2240%22 y=%2240%22/%3E%3Cpath d=%22M40 0v17.4M40 62.6V80M0 40h17.4M62.6 40H80%22/%3E%3C/svg%3E") repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2280%22 height=%2280%22 viewBox=%220 0 80 80%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221%22%3E%3Cg id=%22s%22%3E%3Crect x=%2224%22 y=%2224%22 width=%2232%22 height=%2232%22/%3E%3Crect x=%2224%22 y=%2224%22 width=%2232%22 height=%2232%22 transform=%22rotate(45 40 40)%22/%3E%3Ccircle cx=%2240%22 cy=%2240%22 r=%227%22/%3E%3C/g%3E%3Cuse href=%22%23s%22 x=%22-40%22 y=%22-40%22/%3E%3Cuse href=%22%23s%22 x=%2240%22 y=%22-40%22/%3E%3Cuse href=%22%23s%22 x=%22-40%22 y=%2240%22/%3E%3Cuse href=%22%23s%22 x=%2240%22 y=%2240%22/%3E%3Cpath d=%22M40 0v17.4M40 62.6V80M0 40h17.4M62.6 40H80%22/%3E%3C/svg%3E") repeat;
	-webkit-mask-size: 80px;
	mask-size: 80px;
	opacity: 0.09;
}

/* ---------- Hero --------------------------------------------------------- */
.mm-hero {
	position: relative;
	padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem);
	overflow: hidden;
}
.mm-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.mm-hero__bismillah {
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	color: var(--mm-gold);
	text-align: left;
	direction: rtl;
	width: max-content;
	margin-bottom: 1.25rem;
}
.mm-hero__title { max-width: 12ch; }
.mm-hero__gloss {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.6rem;
	margin-top: 1rem !important;
	color: var(--mm-muted);
	font-size: 0.975rem;
}
.mm-hero__gloss .mm-ar { font-size: 1.5rem; color: var(--mm-lapis); line-height: 1.2; }
.mm-hero .mm-lead { margin-top: 1.5rem; }
.mm-hero .mm-actions { margin-top: 2rem; }

/* Finder */
.mm-finder { margin-top: 2.25rem; max-width: 30rem; }
.mm-finder__label { display: block; font-size: 0.925rem; font-weight: 600; color: var(--mm-ink); margin-bottom: 0.5rem; }
.mm-finder__row {
	display: flex;
	align-items: center;
	padding: 0.3rem 0.3rem 0.3rem 0.85rem;
	background: var(--mm-white);
	border: 1px solid var(--mm-line-strong);
	border-radius: 0.75rem;
	font-size: 0.975rem;
}
.mm-finder__row:focus-within { border-color: var(--mm-lapis); box-shadow: 0 0 0 3px var(--mm-lapis-100); }
.mm-finder__scheme,
.mm-finder__domain { color: var(--mm-muted); white-space: nowrap; }
.mm-finder input {
	flex: 1 1 4rem;
	min-width: 3rem;
	border: 0;
	padding: 0.5rem 0.15rem;
	background: transparent;
	font: inherit;
	font-weight: 600;
	color: var(--mm-ink);
	text-align: right;
}
.mm-finder input:focus { outline: none; box-shadow: none; }
.mm-finder input::placeholder { color: #9aa1ad; font-weight: 500; }
.mm-finder .mm-btn { margin-left: 0.5rem; }
.mm-finder__help { margin-top: 0.45rem !important; font-size: 0.85rem; color: var(--mm-muted); }
.mm-finder__help.is-error { color: var(--mm-red); }
@media (max-width: 420px) { .mm-finder__scheme { display: none; } }

/* Arch + product mock */
.mm-hero__art { position: relative; }
.mm-arch {
	position: relative;
	padding: clamp(4.5rem, 9vw, 6.5rem) clamp(1rem, 2.5vw, 1.75rem) clamp(1rem, 2.5vw, 1.75rem);
	background: linear-gradient(180deg, var(--mm-lapis) 0%, var(--mm-night) 100%);
	border-radius: 50% 50% var(--mm-radius-lg) var(--mm-radius-lg) / 22% 22% var(--mm-radius-lg) var(--mm-radius-lg);
	box-shadow: 0 40px 80px -40px rgba(10, 26, 53, 0.6);
	isolation: isolate;
	overflow: hidden;
}
.mm-arch::before {
	content: "";
	position: absolute;
	inset: 0.6rem;
	border: 1px solid color-mix(in srgb, var(--mm-gold-bright) 55%, transparent);
	border-radius: inherit;
	z-index: -1;
}
.mm-arch__pattern { opacity: 0.16; z-index: -1; }

.mm-mock { display: grid; gap: 0.7rem; font-size: 0.875rem; }
.mm-mock__bar {
	display: flex; align-items: center; gap: 0.5rem;
	color: #fff; font-weight: 600; padding-inline: 0.25rem;
}
.mm-mock__mark { width: 1.5rem; height: 1.5rem; }
.mm-mock__mark .mm-mark__star { fill: var(--mm-gold-bright); }
.mm-mock__mark .mm-mark__ring,
.mm-mock__mark .mm-mark__book { stroke: var(--mm-night); }
.mm-mock__card {
	background: var(--mm-white);
	border-radius: 0.8rem;
	padding: 0.85rem 1rem;
	color: var(--mm-ink);
}
.mm-mock__head { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding-bottom: 0.55rem; border-bottom: 1px solid var(--mm-line); margin-bottom: 0.35rem; }
.mm-mock__head span { color: var(--mm-muted); }
.mm-mock__register li { display: flex; align-items: center; gap: 0.6rem; padding-block: 0.35rem; }
.mm-mock__avatar {
	width: 1.75rem; height: 1.75rem; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--mm-lapis-100); color: var(--mm-lapis);
	font-weight: 700; font-size: 0.8rem;
}
.mm-mock__name { flex: 1; }
.mm-chip {
	display: inline-flex; align-items: center;
	padding: 0.15rem 0.6rem; border-radius: 999px;
	font-size: 0.75rem; font-weight: 600;
}
.mm-chip--present { background: var(--mm-sage-soft); color: var(--mm-sage); }
.mm-chip--leave { background: var(--mm-amber-soft); color: var(--mm-amber); }
.mm-chip--absent { background: var(--mm-red-soft); color: var(--mm-red); }
.mm-mock__row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0.7rem; }
.mm-mock__fees { display: grid; gap: 0.2rem; }
.mm-mock__k { color: var(--mm-muted); font-size: 0.78rem; }
.mm-mock__v { font-family: var(--mm-display); font-size: 1.5rem; line-height: 1.1; }
.mm-meter { display: block; height: 0.4rem; border-radius: 999px; background: var(--mm-lapis-100); overflow: hidden; margin-top: 0.3rem; }
.mm-meter span { display: block; height: 100%; background: var(--mm-gold); border-radius: inherit; }
.mm-mock__notice,
.mm-mock__pti { display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.45; }
.mm-mock__notice .mm-icon,
.mm-mock__pti .mm-icon { width: 1.15rem; height: 1.15rem; color: var(--mm-gold); margin-top: 0.1rem; }

/* The one orchestrated moment: the register is taken, row by row. */
@media (prefers-reduced-motion: no-preference) {
	.mm-js .mm-mock__register .mm-chip { opacity: 0; transform: scale(0.85); }
	.mm-js .mm-arch.is-live .mm-mock__register .mm-chip {
		animation: mm-mark-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1.2) forwards;
		animation-delay: calc(0.45s + var(--i, 0) * 0.28s);
	}
	.mm-js .mm-meter span { transform-origin: left; transform: scaleX(0); }
	.mm-js .mm-arch.is-live .mm-meter span { animation: mm-meter 1.1s 1.9s cubic-bezier(0.3, 0.7, 0.2, 1) forwards; }
}
@keyframes mm-mark-in { to { opacity: 1; transform: none; } }
@keyframes mm-meter { to { transform: scaleX(1); } }

@media (max-width: 900px) {
	.mm-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.mm-hero__art { max-width: 30rem; width: 100%; margin-inline: auto; }
}
@media (max-width: 420px) {
	.mm-mock__row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Sections ----------------------------------------------------- */
.mm-section { padding-block: var(--mm-section); }
.mm-section--tint { background: var(--mm-white); border-block: 1px solid var(--mm-line); }
.mm-section--flush { padding-top: clamp(2.5rem, 5vw, 4rem); }
.mm-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.mm-head .mm-lead { margin-top: 1rem; }
.mm-more { margin-top: 2.5rem; }

/* Night band */
.mm-band { position: relative; overflow: hidden; padding-block: var(--mm-section); }
.mm-band--night { background: var(--mm-night); color: #cdd5e3; }
body.mm-site .mm-band--night h2 { color: #fff; }
.mm-band__center { display: flex; justify-content: center; text-align: center; }

.mm-mission {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}
.mm-mission__text p { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.7; max-width: 34em; }
@media (max-width: 860px) { .mm-mission { grid-template-columns: minmax(0, 1fr); } }

/* Passages */
.mm-passage { display: grid; gap: 0.9rem; }
.mm-passage blockquote { display: grid; gap: 0.6rem; }
.mm-passage .mm-ar { color: var(--mm-gold-bright); }
.mm-passage--lg .mm-ar { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.7; }
.mm-passage--lg .mm-passage__en { font-family: var(--mm-display); font-size: clamp(1.2rem, 2vw, 1.5rem); color: #fff; line-height: 1.4; }
.mm-passage figcaption { font-size: 0.875rem; color: color-mix(in srgb, currentColor 75%, transparent); }
.mm-band--night .mm-passage figcaption { color: #93a0b8; }
.mm-band__center .mm-passage { justify-items: center; max-width: 42rem; }
.mm-passage--sm {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--mm-line);
}
.mm-passage--sm .mm-ar { font-size: 1.45rem; color: var(--mm-lapis); line-height: 1.8; }
.mm-passage--sm .mm-passage__en { font-size: 0.95rem; font-style: italic; color: var(--mm-body); }
.mm-passage--sm figcaption { color: var(--mm-muted); font-size: 0.8rem; }

/* Journey (numbered: a real sequence) */
.mm-journey { counter-reset: none; border-top: 1px solid var(--mm-line-strong); }
.mm-stage {
	display: grid;
	grid-template-columns: 12rem minmax(0, 1fr) minmax(0, 1.25fr);
	gap: clamp(1rem, 3vw, 2.5rem);
	padding-block: clamp(1.75rem, 3vw, 2.5rem);
	border-bottom: 1px solid var(--mm-line-strong);
	align-items: start;
}
.mm-stage__label { display: flex; align-items: center; gap: 0.9rem; }
.mm-stage__num {
	position: relative;
	display: grid; place-items: center;
	width: 2.75rem; height: 2.75rem; flex: none;
	font-family: var(--mm-display); font-size: 1.15rem;
	color: var(--mm-lapis);
}
.mm-stage__num::before {
	content: "";
	position: absolute; inset: 0.4rem;
	border: 1px solid var(--mm-gold);
	border-radius: 0.3rem;
	background: var(--mm-gold-soft);
	transform: rotate(45deg);
	z-index: -1;
}
.mm-stage__label, .mm-fstage__head { isolation: isolate; }
.mm-stage__label h3 { font-family: var(--mm-display); font-weight: 400; font-size: 1.75rem; }
.mm-stage__summary { color: var(--mm-body); max-width: 28em; }
.mm-stage__modules { display: grid; gap: 1rem; }
.mm-stage__modules li { display: flex; gap: 0.85rem; align-items: flex-start; }
.mm-stage__icon {
	display: grid; place-items: center; flex: none;
	width: 2.5rem; height: 2.5rem; border-radius: 0.6rem;
	background: var(--mm-lapis-100); color: var(--mm-lapis);
}
.mm-stage__icon .mm-icon { width: 1.25rem; height: 1.25rem; }
.mm-stage__modules strong { display: block; color: var(--mm-ink); font-weight: 600; }
.mm-stage__feat { display: block; font-size: 0.925rem; color: var(--mm-muted); line-height: 1.5; }
@media (max-width: 960px) {
	.mm-stage { grid-template-columns: minmax(0, 1fr); }
}

/* Roles tabs */
.mm-roles__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}
.mm-roles__tabs button {
	display: inline-flex; align-items: center; gap: 0.55rem;
	min-height: 3rem; padding: 0.55rem 1.1rem;
	border: 1px solid var(--mm-line-strong);
	border-radius: 999px;
	background: var(--mm-white);
	color: var(--mm-body);
	font-weight: 600;
}
.mm-roles__tabs button .mm-icon { width: 1.2rem; height: 1.2rem; color: var(--mm-gold); }
.mm-roles__tabs button:hover { border-color: var(--mm-lapis); color: var(--mm-ink); }
.mm-roles__tabs button[aria-selected="true"] { background: var(--mm-lapis); border-color: var(--mm-lapis); color: #fff; }
.mm-roles__tabs button[aria-selected="true"] .mm-icon { color: var(--mm-gold-bright); }
.mm-roles__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	padding: clamp(1.5rem, 4vw, 2.75rem);
	background: var(--mm-paper);
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius-lg);
}
.mm-roles__panel + .mm-roles__panel { margin-top: 1rem; }
.mm-roles--js .mm-roles__panel + .mm-roles__panel { margin-top: 0; }
.mm-roles__panel[hidden] { display: none; }
.mm-roles__who { font-size: 0.9rem; color: var(--mm-gold); font-weight: 600; margin-bottom: 0.4rem !important; }
.mm-roles__intro h3 { font-family: var(--mm-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 0.75rem; }
@media (max-width: 760px) {
	.mm-roles__panel { grid-template-columns: minmax(0, 1fr); }
	.mm-roles__tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: none; }
	.mm-roles__tabs button { flex: none; }
}

/* Tick list (star bullets) */
.mm-ticks { display: grid; gap: 0.75rem; }
.mm-ticks li { position: relative; padding-left: 1.6rem; color: var(--mm-ink); line-height: 1.5; }
.mm-ticks li::before {
	content: "";
	position: absolute; left: 0; top: 0.32em;
	width: 0.85rem; height: 0.85rem;
	background: var(--mm-gold);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.6 4.2 4.8-1.1-1.1 4.8 4.2 2.6-4.2 2.6 1.1 4.8-4.8-1.1L12 22.5l-2.6-4.2-4.8 1.1 1.1-4.8L1.5 12l4.2-2.6-1.1-4.8 4.8 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.6 4.2 4.8-1.1-1.1 4.8 4.2 2.6-4.2 2.6 1.1 4.8-4.8-1.1L12 22.5l-2.6-4.2-4.8 1.1 1.1-4.8L1.5 12l4.2-2.6-1.1-4.8 4.8 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mm-ticks--cols { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); column-gap: 2rem; }

/* Values */
.mm-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.mm-value { padding-top: 1.5rem; border-top: 2px solid var(--mm-gold); }
.mm-value__name {
	display: flex; align-items: center; gap: 0.5rem;
	font-family: var(--mm-display); font-size: 1.15rem; color: var(--mm-gold);
	margin-bottom: 0.75rem !important;
}
.mm-value h3 { margin-bottom: 0.6rem; }
@media (max-width: 900px) { .mm-values { grid-template-columns: minmax(0, 1fr); } }

/* Quotes */
.mm-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2rem; }
.mm-quote blockquote p { font-family: var(--mm-display); font-size: 1.35rem; line-height: 1.45; color: var(--mm-ink); }
.mm-quote figcaption { margin-top: 1rem; font-size: 0.925rem; color: var(--mm-muted); }
.mm-quote figcaption strong { color: var(--mm-ink); }

/* Steps (sequence) */
.mm-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.mm-steps li { position: relative; padding: 0 1.5rem 0 0; }
.mm-steps li::after {
	content: "";
	position: absolute; top: 1.25rem; left: 3.25rem; right: 0.75rem;
	border-top: 1px dashed var(--mm-line-strong);
}
.mm-steps li:last-child::after { display: none; }
.mm-steps__num {
	display: grid; place-items: center;
	width: 2.5rem; height: 2.5rem; margin-bottom: 1.25rem;
	border-radius: 50%;
	background: var(--mm-lapis); color: #fff;
	font-family: var(--mm-display); font-size: 1.1rem;
}
.mm-steps h3 { margin-bottom: 0.4rem; }
.mm-steps p { color: var(--mm-body); font-size: 0.975rem; }
@media (max-width: 860px) {
	.mm-steps { grid-template-columns: 1fr; gap: 1.75rem; }
	.mm-steps li { padding: 0 0 0 3.75rem; }
	.mm-steps__num { position: absolute; left: 0; top: 0; margin: 0; }
	.mm-steps li::after { top: 2.75rem; bottom: -1.5rem; left: 1.25rem; right: auto; border-top: 0; border-left: 1px dashed var(--mm-line-strong); }
}

/* FAQ */
.mm-faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.mm-faq-wrap .mm-head { margin-bottom: 0; position: sticky; top: calc(var(--mm-header-h) + 2rem); }
@media (max-width: 860px) {
	.mm-faq-wrap { grid-template-columns: minmax(0, 1fr); }
	.mm-faq-wrap .mm-head { position: static; }
}
.mm-faq { border-top: 1px solid var(--mm-line-strong); }
.mm-faq__item { border-bottom: 1px solid var(--mm-line-strong); }
.mm-faq__item summary {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	min-height: 3.5rem; padding-block: 1.1rem;
	cursor: pointer; list-style: none;
	color: var(--mm-ink); font-weight: 600; font-size: 1.075rem;
}
.mm-faq__item summary::-webkit-details-marker { display: none; }
.mm-faq__mark { position: relative; width: 1rem; height: 1rem; flex: none; }
.mm-faq__mark::before,
.mm-faq__mark::after {
	content: ""; position: absolute; left: 0; right: 0; top: 50%;
	border-top: 2px solid var(--mm-gold); transition: transform 0.2s ease;
}
.mm-faq__mark::after { transform: rotate(90deg); }
.mm-faq__item[open] .mm-faq__mark::after { transform: rotate(0deg); }
.mm-faq__item p { padding: 0 2rem 1.35rem 0; color: var(--mm-body); max-width: 40em; }

/* CTA band */
.mm-cta {
	position: relative; overflow: hidden;
	background: radial-gradient(120% 140% at 50% 0%, var(--mm-lapis-600) 0%, var(--mm-lapis) 45%, var(--mm-night) 100%);
	color: #cdd5e3;
	padding-block: clamp(4rem, 9vw, 6.5rem);
	text-align: center;
}
.mm-cta .mm-pattern { opacity: 0.12; }
.mm-cta__inner { position: relative; display: grid; justify-items: center; gap: 1rem; }
.mm-cta p.mm-cta__dua { max-width: none; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--mm-gold-bright); line-height: 1.5; }
body.mm-site .mm-cta h2 { color: #fff; max-width: 20ch; }
.mm-cta p { max-width: 36em; font-size: 1.125rem; }
.mm-cta .mm-actions { margin-top: 1rem; }

/* ---------- Inner page hero ---------------------------------------------- */
.mm-page-hero {
	position: relative; overflow: hidden;
	background: var(--mm-night);
	color: #cdd5e3;
	padding-block: clamp(3rem, 7vw, 5.5rem);
}
.mm-page-hero .mm-pattern { opacity: 0.1; }
.mm-page-hero .mm-container { position: relative; }
body.mm-site .mm-page-hero h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 18ch; }
.mm-page-hero .mm-lead { color: #cdd5e3; margin-top: 1.1rem; }
.mm-crumbs { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem; font-size: 0.9rem; color: #93a0b8; }
.mm-crumbs a:hover { color: #fff; }
.mm-crumbs__sep { width: 0.6rem; height: 0.6rem; }

/* ---------- Features page ------------------------------------------------ */
.mm-features { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.mm-toc { position: sticky; top: calc(var(--mm-header-h) + 2rem); font-size: 0.925rem; }
.mm-toc__title { font-weight: 700; color: var(--mm-ink); margin-bottom: 0.75rem !important; }
.mm-toc__stage { margin-bottom: 0.75rem; color: var(--mm-ink); font-weight: 600; }
.mm-toc__stage ul { margin-top: 0.3rem; border-left: 1px solid var(--mm-line-strong); }
.mm-toc__stage ul a { display: block; padding: 0.25rem 0 0.25rem 0.85rem; font-weight: 400; color: var(--mm-muted); }
.mm-toc a:hover { color: var(--mm-lapis-600); }
.mm-toc__stage > a { color: var(--mm-ink); }
@media (max-width: 960px) {
	.mm-features { grid-template-columns: minmax(0, 1fr); }
	.mm-toc { display: none; }
}
.mm-fstage + .mm-fstage { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.mm-fstage > h2 { margin-bottom: 1.5rem; }
.mm-fstage > .mm-lead { margin: -0.75rem 0 1.5rem; }
.mm-fstage__head { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.5rem; }
.mm-fstage__head p { margin-top: 0.5rem; max-width: 36em; }
.mm-fstage__head .mm-stage__num { margin-top: 0.5rem; }
.mm-module {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--mm-white);
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius-lg);
	scroll-margin-top: calc(var(--mm-header-h) + 1.5rem);
}
.mm-module + .mm-module { margin-top: 1rem; }
.mm-module__title { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.mm-module__title p { color: var(--mm-muted); margin-top: 0.15rem; }
.mm-module__icon {
	display: grid; place-items: center; flex: none;
	width: 3rem; height: 3rem; border-radius: 0.75rem;
	background: var(--mm-gold-soft); color: var(--mm-lapis);
}
.mm-cross { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.mm-cross__item h3 { margin: 1rem 0 0.35rem; }
.mm-cross__item p { color: var(--mm-body); }
@media (max-width: 640px) { .mm-cross { grid-template-columns: minmax(0, 1fr); } }

.mm-table-wrap { overflow-x: auto; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); background: var(--mm-white); }
.mm-table { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: 0.95rem; }
.mm-table th,
.mm-table td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mm-line); }
.mm-table thead th { background: var(--mm-lapis); color: #fff; font-weight: 600; position: sticky; top: 0; }
.mm-table tbody th { color: var(--mm-ink); font-weight: 600; white-space: nowrap; }
.mm-table tbody tr:last-child > * { border-bottom: 0; }
.mm-table tbody tr:nth-child(even) { background: #fafbf8; }
.mm-table__none { color: #a3a9b4; }

/* ---------- Who it's for ------------------------------------------------- */
.mm-solutions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.mm-solution {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--mm-white);
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius-lg);
}
.mm-solution h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 1.25rem 0 0.6rem; }
.mm-solution > p { margin-bottom: 1.25rem; }
@media (max-width: 760px) { .mm-solutions { grid-template-columns: minmax(0, 1fr); } }

/* ---------- About -------------------------------------------------------- */
.mm-about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.mm-about__aside { padding: clamp(1.5rem, 3vw, 2rem); background: var(--mm-white); border: 1px solid var(--mm-line); border-radius: var(--mm-radius-lg); }
.mm-about__aside .mm-passage--sm { margin-top: 0; padding-top: 0; border-top: 0; }
.mm-about__h { font-size: 1.5rem !important; margin: 1.75rem 0 1rem !important; }
@media (max-width: 860px) { .mm-about { grid-template-columns: minmax(0, 1fr); } }

.mm-prose { max-width: 40rem; }
.mm-prose h2 { margin: 2.5rem 0 0.9rem; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.mm-prose h2:first-child { margin-top: 0; }
.mm-prose p { margin-bottom: 1.1rem; font-size: 1.0875rem; line-height: 1.75; }
.mm-prose ul { margin: 0 0 1.25rem; display: grid; gap: 0.5rem; }
.mm-prose ul li { position: relative; padding-left: 1.35rem; }
.mm-prose ul li::before { content: ""; position: absolute; left: 0.2rem; top: 0.7em; width: 0.4rem; height: 0.4rem; background: var(--mm-gold); transform: rotate(45deg); }
.mm-prose a { color: var(--mm-lapis-600); text-decoration: underline; text-underline-offset: 0.2em; }
.mm-legal__updated { color: var(--mm-muted); font-size: 0.925rem !important; }

/* ---------- Contact ------------------------------------------------------ */
.mm-contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.mm-contact__form {
	padding: clamp(1.5rem, 4vw, 2.75rem);
	background: var(--mm-white);
	border: 1px solid var(--mm-line);
	border-radius: var(--mm-radius-lg);
	box-shadow: var(--mm-shadow);
}
.mm-contact__aside h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.mm-contact__aside h2:not(:first-child) { margin-top: 2.5rem; }
.mm-next { counter-reset: mm-next; display: grid; gap: 0.9rem; }
.mm-next li { counter-increment: mm-next; position: relative; padding-left: 2.5rem; color: var(--mm-ink); }
.mm-next li::before {
	content: counter(mm-next);
	position: absolute; left: 0; top: -0.05rem;
	width: 1.75rem; height: 1.75rem; border-radius: 50%;
	display: grid; place-items: center;
	border: 1px solid var(--mm-gold); color: var(--mm-lapis);
	font-family: var(--mm-display); font-size: 0.95rem;
}
.mm-contact__list { display: grid; gap: 0.85rem; }
.mm-contact__list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.mm-contact__list .mm-icon { width: 1.25rem; height: 1.25rem; color: var(--mm-gold); margin-top: 0.2rem; }
.mm-contact__list a { color: var(--mm-lapis-600); font-weight: 600; }
.mm-contact__list a:hover { text-decoration: underline; }
.mm-contact__parents { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--mm-line-strong); }
.mm-contact__parents h2 { margin-top: 0 !important; font-size: 1.35rem; }
.mm-contact__parents .mm-finder { margin-top: 1.25rem; }
.mm-contact__parents .mm-finder__label { display: none; }
@media (max-width: 900px) { .mm-contact { grid-template-columns: minmax(0, 1fr); } }

/* Form */
.mm-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.25rem; }
.mm-field { display: grid; gap: 0.4rem; }
.mm-field--wide { grid-column: 1 / -1; }
.mm-field label { font-weight: 600; color: var(--mm-ink); font-size: 0.95rem; }
.mm-req { color: var(--mm-red); margin-left: 0.15rem; }
.mm-field input,
.mm-field select,
.mm-field textarea {
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--mm-line-strong);
	border-radius: 0.6rem;
	background: var(--mm-white);
	color: var(--mm-ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mm-field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23464f60' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 1.1rem;
	padding-right: 2.5rem;
}
.mm-field textarea { min-height: 7.5rem; resize: vertical; }
.mm-field input:focus,
.mm-field select:focus,
.mm-field textarea:focus { outline: none; border-color: var(--mm-lapis); box-shadow: 0 0 0 3px var(--mm-lapis-100); }
.mm-field.is-invalid input { border-color: var(--mm-red); }
.mm-field__error { color: var(--mm-red); font-size: 0.85rem; }
.mm-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.mm-form__privacy { font-size: 0.875rem; color: var(--mm-muted); max-width: 26rem; }
.mm-form__privacy a { color: var(--mm-lapis-600); text-decoration: underline; }
.mm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mm-btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
@media (max-width: 560px) { .mm-form__grid { grid-template-columns: minmax(0, 1fr); } }

.mm-notice { padding: 1rem 1.15rem; border-radius: 0.75rem; margin-bottom: 1.5rem; font-weight: 500; line-height: 1.5; }
.mm-notice--ok { background: var(--mm-sage-soft); color: #1d5a4b; border: 1px solid #bfdfd4; }
.mm-notice--err { background: var(--mm-red-soft); color: #7e2620; border: 1px solid #efc6c0; }

/* ---------- Footer ------------------------------------------------------- */
.mm-footer { background: var(--mm-night); color: #aab4c7; padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; font-size: 0.975rem; }
.mm-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.3fr); gap: clamp(2rem, 4vw, 3rem); }
.mm-footer__brand p { margin-top: 1.1rem; max-width: 24rem; line-height: 1.6; }
.mm-footer__h { font-family: var(--mm-sans) !important; font-size: 0.975rem !important; font-weight: 700 !important; color: #fff !important; margin-bottom: 1rem !important; letter-spacing: 0 !important; }
.mm-footer ul { display: grid; gap: 0.55rem; }
.mm-footer a:hover { color: #fff; }
.mm-social { display: flex !important; gap: 0.5rem !important; margin-top: 1.25rem; }
.mm-social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); }
.mm-social .mm-icon { width: 1.1rem; height: 1.1rem; }
.mm-footer .mm-finder { margin-top: 0; }
.mm-footer .mm-finder__label { color: #aab4c7; font-weight: 400; }
.mm-footer .mm-finder__row { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); }
.mm-footer .mm-finder input { color: #fff; }
.mm-footer .mm-finder input::placeholder { color: #7f8aa0; }
.mm-footer .mm-finder__scheme,
.mm-footer .mm-finder__domain,
.mm-footer .mm-finder__help { color: #7f8aa0; }
.mm-footer .mm-finder .mm-btn { background: var(--mm-gold-bright); color: var(--mm-night) !important; }
.mm-footer__base {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
	margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.9rem;
}
.mm-footer__base ul { display: flex; gap: 1.5rem; }
@media (max-width: 1000px) { .mm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mm-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Print -------------------------------------------------------- */
@media print {
	.mm-header, .mm-footer, .mm-cta, .mm-pattern { display: none !important; }
	body.mm-site { background: #fff; }
}

/* Narrow footer column: the code alone, the domain is implied. */
.mm-footer .mm-finder__domain { display: none; }
.mm-footer .mm-finder input { text-align: left; }
