/* ==========================================================================
   Metabolixia public website — RC3.4
   Layers: tokens · base · layout · components · sections · responsive · motion

   Built mobile-first at 360px. The RC3.3 header put brand + "Log in" +
   "Start your journey" + menu on one unshrinkable row: 467px of content in a
   320px container, which is why the CTA was clipped off the right edge.
   Mobile now carries the logo and the menu only; the actions live in the drawer.

   Everything is scoped under .mx-site.
   ========================================================================== */

/* ============================================================== 1. tokens */

.mx-site {
	--mx-container: 1200px;
	--mx-container-narrow: 720px;
	--mx-gutter: 20px;

	--mx-t-display: 700 clamp(2.375rem, 7.2vw, 4.5rem)/1.04 var(--mx-font-display);
	--mx-t-h1: 700 clamp(2rem, 5.4vw, 3.25rem)/1.08 var(--mx-font-display);
	--mx-t-h2: 700 clamp(1.625rem, 3.8vw, 2.5rem)/1.14 var(--mx-font-display);
	--mx-t-h3: 700 clamp(1.0625rem, 1.4vw, 1.25rem)/1.3 var(--mx-font-display);
	--mx-t-body-lg: 400 clamp(1rem, 0.94rem + 0.3vw, 1.3125rem)/1.6 var(--mx-font-body);
	--mx-t-body: 400 clamp(0.9375rem, 0.9rem + 0.15vw, 1.125rem)/1.6 var(--mx-font-body);
	--mx-t-body-sm: 400 0.9375rem/1.55 var(--mx-font-body);
	--mx-t-caption: 500 0.8125rem/1.45 var(--mx-font-body);

	--mx-section-y: 72px;
	--mx-block-y: 36px;

	--mx-control-h: 48px;
	--mx-control-h-lg: 54px;
	--mx-control-h-sm: 40px;
	--mx-control-pad: 24px;
	--mx-control-radius: 12px;

	--mx-head-h: 60px;
	--mx-ease: cubic-bezier(.22,.68,.36,1);

	background: var(--mx-color-background);
	color: var(--mx-color-text);
	font: var(--mx-t-body);
	margin: 0;
	-webkit-font-smoothing: antialiased;

	/* The geometry is fixed at source and verified by qa/layout-model.js;
	   this is the backstop, not the fix. If it ever starts doing real work,
	   something upstream is broken and hiding it here would mask the bug. */
	overflow-x: clip;
}

@media (min-width: 600px)  { .mx-site { --mx-gutter: 24px; } }
@media (min-width: 768px)  { .mx-site { --mx-gutter: 28px; --mx-section-y: 88px;  --mx-block-y: 44px; --mx-head-h: 68px; } }
@media (min-width: 1024px) { .mx-site { --mx-gutter: 32px; --mx-section-y: 104px; } }

/* ================================================================ 2. base */

.mx-site *, .mx-site *::before, .mx-site *::after { box-sizing: border-box; min-width: 0; }

.mx-site h1 { font: var(--mx-t-display); }
.mx-site h2 { font: var(--mx-t-h2); }
.mx-site h3 { font: var(--mx-t-h3); }
.mx-site h1, .mx-site h2, .mx-site h3 {
	letter-spacing: -0.03em; text-transform: none; margin: 0;
	color: var(--mx-color-text); text-wrap: balance; overflow-wrap: break-word;
}
.mx-site p { margin: 0; overflow-wrap: break-word; }
.mx-site ul, .mx-site ol { margin: 0; padding: 0; list-style: none; }
.mx-site a:not([class*="mx-btn"]) { color: var(--mx-color-primary); }
.mx-site img, .mx-site svg, .mx-site video { max-width: 100%; height: auto; }
.mx-site :focus-visible { outline: 3px solid var(--mx-color-focus); outline-offset: 3px; border-radius: var(--mx-radius-small); }

.mx-skip { position: absolute; left: -9999px; background: var(--mx-color-canvas); color: var(--mx-color-on-canvas); padding: var(--mx-space-md) var(--mx-space-lg); border-radius: var(--mx-radius-medium); z-index: 200; }
.mx-skip:focus { left: var(--mx-gutter); top: var(--mx-gutter); }
.mx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ============================================================== 3. layout */

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

.mx-section { padding-block: var(--mx-section-y); position: relative; }
.mx-section--tint { background: var(--mx-color-surface); }
.mx-section--dark { background: var(--mx-color-canvas); color: var(--mx-color-on-canvas); }
.mx-section--dark h2, .mx-section--dark h3 { color: var(--mx-color-on-canvas); }
.mx-section--dark .mx-lede { color: var(--mx-color-on-canvas-muted); }
.mx-section--gradient { background: linear-gradient(180deg, var(--mx-color-surface), var(--mx-color-background)); }

.mx-section-head { margin-bottom: var(--mx-block-y); max-width: 62ch; }
.mx-section-head h2 { margin-bottom: var(--mx-space-md); }
.mx-split { display: grid; gap: var(--mx-block-y); align-items: center; }
.mx-grid { display: grid; gap: var(--mx-space-lg); }

/* ========================================================== 4. components */

.mx-tag {
	display: inline-block; font: var(--mx-t-caption); font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase;
	color: var(--mx-color-primary); margin-bottom: var(--mx-space-md);
}
.mx-tag--on-dark { color: var(--mx-color-accent); }
.mx-lede { font: var(--mx-t-body-lg); color: var(--mx-color-text-muted); max-width: 56ch; }
.mx-body-sm { font: var(--mx-t-body-sm); color: var(--mx-color-text-muted); }
.mx-note {
	font: var(--mx-t-body-sm); color: var(--mx-color-text-muted);
	border-left: 3px solid var(--mx-color-border-strong);
	padding-left: var(--mx-space-lg); margin-top: var(--mx-block-y); max-width: 68ch;
}
.mx-note--on-dark { color: var(--mx-color-on-canvas-muted); border-color: rgba(255,255,255,.22); }
.mx-fineprint { font: var(--mx-t-caption); color: var(--mx-color-text-faint); }
.mx-hint { font: var(--mx-t-caption); color: var(--mx-color-text-muted); margin-top: 4px; }
.mx-optional { font-weight: 400; color: var(--mx-color-text-faint); }
/* Captions were sitting flush against the element they describe. */
.mx-demo-label { font: var(--mx-t-caption); color: var(--mx-color-text-faint); text-align: center; margin-top: var(--mx-space-lg); }
.mx-cta-row + .mx-hero-points, .mx-cta-row + p, .mx-cta-row + .mx-fineprint { margin-top: var(--mx-space-xl); }
.mx-btn + .mx-hint, .mx-btn + .mx-fineprint { display: block; margin-top: var(--mx-space-md); }
.mx-hero-visual > * + * { margin-top: var(--mx-space-lg); }
.mx-section-head + * { margin-top: var(--mx-block-y); }
.mx-demo-label--on-dark { color: var(--mx-color-on-canvas-muted); }
.mx-icon { width: 22px; height: 22px; display: block; flex: none; }

/* ---- buttons ---- */

.mx-site .mx-btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: var(--mx-space-sm);
	min-height: var(--mx-control-h);
	padding-inline: var(--mx-control-pad);
	border-radius: var(--mx-control-radius);
	border: 1px solid transparent;
	font: var(--mx-t-body); font-weight: 650; line-height: 1;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .16s var(--mx-ease), border-color .16s var(--mx-ease),
	            color .16s var(--mx-ease), transform .1s var(--mx-ease), box-shadow .16s var(--mx-ease);
}
.mx-site .mx-btn--primary { background: var(--mx-color-primary); color: #fff; border-color: var(--mx-color-primary); }
.mx-site .mx-btn--primary:hover { background: var(--mx-color-primary-press); border-color: var(--mx-color-primary-press); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--mx-color-primary) 32%, transparent); }
.mx-site .mx-btn--primary:active { transform: translateY(1px); box-shadow: none; }
.mx-site .mx-btn--secondary { background: var(--mx-color-surface); color: var(--mx-color-text); border-color: var(--mx-color-border-strong); }
.mx-site .mx-btn--secondary:hover { background: var(--mx-color-surface-sunken); color: var(--mx-color-text); border-color: var(--mx-color-text-faint); }
.mx-site .mx-btn--secondary:active { transform: translateY(1px); }
.mx-site .mx-btn--tertiary { background: transparent; color: var(--mx-color-primary); border-color: transparent; padding-inline: var(--mx-space-md); }
.mx-site .mx-btn--tertiary:hover { background: var(--mx-color-primary-soft); color: var(--mx-color-primary); }
.mx-site .mx-btn--accent { background: var(--mx-color-accent); color: var(--mx-color-on-accent); border-color: var(--mx-color-accent); }
.mx-site .mx-btn--accent:hover { background: #d7f96b; color: var(--mx-color-on-accent); }
.mx-site .mx-btn--onDark { background: transparent; color: var(--mx-color-on-canvas); border-color: rgba(255,255,255,.34); }
.mx-site .mx-btn--onDark:hover { background: rgba(255,255,255,.1); color: var(--mx-color-on-canvas); }
.mx-site .mx-btn--lg { min-height: var(--mx-control-h-lg); padding-inline: 28px; }
.mx-site .mx-btn--sm { min-height: var(--mx-control-h-sm); padding-inline: var(--mx-space-lg); font-size: .875rem; }
.mx-site .mx-head-actions .mx-btn { min-height: 40px; font-size: .875rem; padding-inline: var(--mx-space-md); }
.mx-site .mx-head-actions .mx-btn--primary { padding-inline: var(--mx-space-lg); }
.mx-site .mx-btn--block { width: 100%; }
.mx-site .mx-btn[disabled] { opacity: .55; cursor: not-allowed; }
.mx-site .mx-btn--loading, .mx-site .mx-btn[data-state="loading"] { position: relative; color: transparent; pointer-events: none; }
.mx-site .mx-btn--loading::after, .mx-site .mx-btn[data-state="loading"]::after {
	content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid currentColor; border-top-color: transparent;
	color: #fff; animation: mx-spin .7s linear infinite;
}
.mx-site .mx-btn--secondary.mx-btn--loading::after, .mx-site .mx-btn--secondary[data-state="loading"]::after { color: var(--mx-color-text); }
@keyframes mx-spin { to { transform: rotate(360deg); } }

.mx-link-arrow { font: var(--mx-t-body-sm); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mx-link-arrow::after { content: "\2192"; transition: transform .16s var(--mx-ease); }
.mx-link-quiet { color: var(--mx-color-text-muted); text-decoration: none; font: var(--mx-t-body-sm); font-weight: 600; }
.mx-link-quiet:hover { color: var(--mx-color-text); }

.mx-cta-row { display: flex; flex-wrap: wrap; gap: var(--mx-space-md); align-items: center; }
.mx-cta-row--center { justify-content: center; }

/* ---- cards ---- */

.mx-card-s { background: var(--mx-color-surface); border: 1px solid var(--mx-color-border); border-radius: var(--mx-radius-large); padding: clamp(18px, 4.5vw, 26px); display: grid; gap: var(--mx-space-sm); align-content: start; }
.mx-section--tint .mx-card-s { background: var(--mx-color-background); }
.mx-card-f {
	background: var(--mx-color-surface); border: 1px solid var(--mx-color-border);
	border-radius: var(--mx-radius-large); padding: clamp(18px, 4.5vw, 26px);
	box-shadow: var(--mx-elevation-1); display: grid; gap: var(--mx-space-sm); align-content: start;
	transition: transform .2s var(--mx-ease), box-shadow .2s var(--mx-ease), border-color .2s var(--mx-ease);
}
.mx-card-f:hover { transform: translateY(-4px); box-shadow: var(--mx-elevation-3); border-color: var(--mx-color-border-strong); }
.mx-card-f:hover .mx-card-glyph { transform: scale(1.06) rotate(-3deg); }
.mx-card-f:hover .mx-link-arrow::after { transform: translateX(4px); }
.mx-card-f:active { transform: translateY(-1px); }
.mx-card-s p, .mx-card-f p { font: var(--mx-t-body-sm); color: var(--mx-color-text-muted); }
.mx-card-glyph { width: 44px; height: 44px; border-radius: var(--mx-radius-medium); background: var(--mx-color-canvas); color: var(--mx-color-accent); display: grid; place-content: center; transition: transform .2s var(--mx-ease); }
.mx-card-icon { width: 40px; height: 40px; border-radius: var(--mx-radius-medium); background: var(--mx-color-secondary-soft); color: var(--mx-color-secondary); display: grid; place-content: center; }
.mx-card-meta { font: var(--mx-t-caption); color: var(--mx-color-text-faint); }

.mx-empty-state { border: 1px dashed var(--mx-color-border-strong); border-radius: var(--mx-radius-large); padding: var(--mx-block-y) var(--mx-space-xl); text-align: center; display: grid; justify-items: center; gap: var(--mx-space-md); color: var(--mx-color-text-muted); }
.mx-empty-state .mx-icon { width: 32px; height: 32px; color: var(--mx-color-text-faint); }
.mx-empty-state p { font: var(--mx-t-body-sm); max-width: 46ch; }

.mx-ticks { display: grid; gap: var(--mx-space-sm); margin-top: var(--mx-space-xl); }
.mx-ticks li { font: var(--mx-t-body-sm); padding-left: 28px; position: relative; color: var(--mx-color-text-muted); }
.mx-ticks li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--mx-color-success-soft); color: var(--mx-color-success); display: grid; place-content: center; font-size: 10px; font-weight: 700; }

/* ============================================================== 5. header */

/*
 * head() sets viewport-fit=cover, which lets the page run under the notch. In a
 * browser there is chrome above it so nothing shows; in the installed app there
 * is not, and the header sat behind the clock and the battery. Opting into the
 * full screen means paying for the inset.
 */
.mx-site-head {
	position: sticky; top: 0; z-index: 60;
	padding-top: env(safe-area-inset-top);
	background: color-mix(in srgb, var(--mx-color-background) 92%, transparent);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--mx-color-border);
}
.mx-head-inner {
	display: flex; align-items: center; gap: var(--mx-space-md);
	min-height: var(--mx-head-h);
}

/* The brand may shrink and truncate rather than force the row wider. */
.mx-brand { display: flex; align-items: center; gap: var(--mx-space-sm); text-decoration: none; color: var(--mx-color-text); min-width: 0; flex: 0 1 auto; }
.mx-brand-mark { width: 32px; height: 32px; border-radius: 10px; flex: none; background: var(--mx-color-surface); border: 1px solid var(--mx-color-border); color: var(--mx-color-primary); display: grid; place-content: center; }
.mx-brand-mark svg { width: 20px; height: 20px; }
/* Truncating a wordmark to "M" looks like a bug, so below 560px the mark
   carries the brand on its own and the name is hidden outright. */
.mx-brand-name { display: none; font-family: var(--mx-font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; white-space: nowrap; }
.mx-brand-mark { width: 36px; height: 36px; }
.mx-brand-mark svg { width: 22px; height: 22px; }

.mx-nav-desktop { display: none; gap: clamp(14px, 2vw, 30px); margin-left: auto; min-width: 0; }
.mx-nav-desktop a { color: var(--mx-color-text-muted); text-decoration: none; font: var(--mx-t-body-sm); font-weight: 600; white-space: nowrap; position: relative; padding-block: 4px; }
.mx-nav-desktop a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mx-color-primary); transform: scaleX(0); transform-origin: left; transition: transform .18s var(--mx-ease); }
.mx-nav-desktop a:hover { color: var(--mx-color-text); }
.mx-nav-desktop a:hover::after { transform: scaleX(1); }

.mx-head-actions { display: flex; gap: var(--mx-space-sm); align-items: center; margin-left: auto; flex: none; }

/* Mobile header carries the logo and the menu. Nothing else. */
.mx-head-login { display: none; }
.mx-head-cta { display: none; }

.mx-menu-btn {
	width: var(--mx-control-h); height: var(--mx-control-h); flex: none;
	display: grid; place-content: center;
	border: 1px solid var(--mx-color-border-strong);
	border-radius: var(--mx-control-radius);
	background: var(--mx-color-surface); color: var(--mx-color-text); cursor: pointer;
}
.mx-menu-btn:active { transform: scale(.96); }
.mx-menu-btn .mx-menu-close { display: none; }
.mx-menu-btn[aria-expanded="true"] .mx-menu-open { display: none; }
.mx-menu-btn[aria-expanded="true"] .mx-menu-close { display: block; }

.mx-drawer {
	position: fixed; inset: 0; z-index: 70;
	display: grid; grid-template-rows: var(--mx-head-h) 1fr;
	background: var(--mx-color-background);
	visibility: hidden; opacity: 0;
	transition: opacity .22s var(--mx-ease), visibility .22s;
}
.mx-drawer[data-open="true"] { visibility: visible; opacity: 1; }
.mx-drawer-panel {
	padding: var(--mx-space-lg) var(--mx-gutter) calc(var(--mx-space-3xl) + env(safe-area-inset-bottom));
	overflow-y: auto; display: grid; gap: var(--mx-space-xs); align-content: start;
	max-width: var(--mx-container); margin-inline: auto; width: 100%;
}
.mx-drawer-panel a.mx-drawer-link {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 56px; font-size: 1.125rem; font-weight: 600;
	color: var(--mx-color-text); text-decoration: none;
	border-bottom: 1px solid var(--mx-color-border);
	opacity: 0; transform: translateY(8px);
}
.mx-drawer[data-open="true"] .mx-drawer-link { animation: mx-in .32s var(--mx-ease) forwards; }
.mx-drawer[data-open="true"] .mx-drawer-link:nth-child(1) { animation-delay: .04s; }
.mx-drawer[data-open="true"] .mx-drawer-link:nth-child(2) { animation-delay: .08s; }
.mx-drawer[data-open="true"] .mx-drawer-link:nth-child(3) { animation-delay: .12s; }
.mx-drawer[data-open="true"] .mx-drawer-link:nth-child(4) { animation-delay: .16s; }
.mx-drawer[data-open="true"] .mx-drawer-link:nth-child(5) { animation-delay: .20s; }
.mx-drawer[data-open="true"] .mx-drawer-link:nth-child(6) { animation-delay: .24s; }
.mx-drawer-actions { display: grid; gap: var(--mx-space-md); margin-top: var(--mx-space-xl); }
.mx-drawer-actions .mx-btn { width: 100%; }
body.mx-locked { overflow: hidden; }

/* =============================================================== 6. hero */

.mx-hero { position: relative; padding-block: var(--mx-block-y) var(--mx-section-y); overflow: hidden; }
.mx-hero-grid { position: relative; z-index: 1; display: grid; gap: var(--mx-block-y); align-items: center; }
.mx-hero h1 { margin-bottom: var(--mx-space-lg); }
.mx-hero .mx-lede { margin-bottom: var(--mx-space-xl); }

.mx-hero-points { display: grid; gap: var(--mx-space-sm); margin-top: var(--mx-space-xl); }
.mx-hero-points li { font: var(--mx-t-body-sm); color: var(--mx-color-text-muted); padding-left: 26px; position: relative; }
.mx-hero-points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--mx-color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mx-color-accent) 26%, transparent); }

.mx-mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mx-mesh span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .42; }
.mx-mesh span:nth-child(1) { width: 46%; aspect-ratio: 1; top: -12%; right: -6%; background: color-mix(in srgb, var(--mx-color-primary) 30%, transparent); }
.mx-mesh span:nth-child(2) { width: 38%; aspect-ratio: 1; bottom: -14%; left: -8%; background: color-mix(in srgb, var(--mx-color-accent) 32%, transparent); }
.mx-mesh--cta span:nth-child(1) { background: color-mix(in srgb, var(--mx-color-accent) 26%, transparent); }
.mx-mesh--cta span:nth-child(2) { background: color-mix(in srgb, var(--mx-color-primary) 44%, transparent); }

/* Everything decorative is anchored to this box, never the viewport. */
.mx-hero-visual { position: relative; width: 100%; max-width: 520px; margin-inline: auto; display: grid; justify-items: center; gap: var(--mx-space-lg); }

.mx-badges { display: flex; flex-wrap: wrap; gap: var(--mx-space-sm); justify-content: center; }
.mx-badge {
	display: inline-flex; align-items: center; gap: var(--mx-space-sm);
	background: var(--mx-color-surface); border: 1px solid var(--mx-color-border);
	border-radius: var(--mx-radius-medium); box-shadow: var(--mx-elevation-2);
	padding: var(--mx-space-sm) var(--mx-space-md);
}
.mx-badge-figure { font-family: var(--mx-font-display); font-size: 1.25rem; line-height: 1; color: var(--mx-color-primary); }
.mx-badge-label { font: var(--mx-t-caption); color: var(--mx-color-text-muted); white-space: nowrap; }
.mx-badge-tick { width: 20px; height: 20px; border-radius: 50%; background: var(--mx-color-success); color: #fff; display: grid; place-content: center; font-size: 11px; flex: none; }

/* ======================================================== 7. app mockups */

.mx-phone { width: 100%; max-width: 268px; border-radius: 32px; background: var(--mx-color-canvas); padding: 9px; box-shadow: var(--mx-elevation-3); }
.mx-phone-inner {
	background: var(--mx-color-surface); border-radius: 24px; padding: var(--mx-space-md);
	display: grid; gap: var(--mx-space-sm); align-content: start;
	min-height: 380px; overflow: hidden; position: relative;
}
/* Rotating screens share one box; only one is shown at a time. */
.mx-screen-stack { position: relative; min-height: 380px; }
.mx-screen-stack > .mx-phone-screen { position: absolute; inset: 0; display: grid; gap: var(--mx-space-sm); align-content: start; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .45s var(--mx-ease), transform .45s var(--mx-ease); pointer-events: none; }
.mx-screen-stack > .mx-phone-screen[data-active="true"] { opacity: 1; transform: none; pointer-events: auto; }

.mx-phone-dots { display: flex; gap: 5px; justify-content: center; margin-top: var(--mx-space-sm); }
.mx-phone-dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: var(--mx-color-border-strong); cursor: pointer; transition: background-color .2s, width .2s; }
.mx-phone-dots button[aria-selected="true"] { background: var(--mx-color-primary); width: 18px; border-radius: 4px; }

.mx-p-bar { display: flex; align-items: center; gap: 6px; padding-bottom: var(--mx-space-sm); border-bottom: 1px solid var(--mx-color-border); }
.mx-p-bar-mark { width: 18px; height: 18px; border-radius: 6px; background: var(--mx-color-canvas); color: var(--mx-color-accent); display: grid; place-content: center; flex: none; }
.mx-p-bar-mark svg { width: 12px; height: 12px; }
.mx-p-bar-title { font: var(--mx-t-caption); font-weight: 700; }
.mx-p-bar-day { margin-left: auto; font: var(--mx-t-caption); color: var(--mx-color-text-faint); }

.mx-p-greet { font: var(--mx-t-caption); font-weight: 700; color: var(--mx-color-text-muted); }
.mx-p-panel { background: var(--mx-color-canvas); color: var(--mx-color-on-canvas); border-radius: var(--mx-radius-medium); padding: var(--mx-space-md); }
.mx-p-eyebrow { font: var(--mx-t-caption); font-weight: 700; color: var(--mx-color-accent); }
.mx-p-big { font-family: var(--mx-font-display); font-size: 1.5rem; line-height: 1.1; margin-top: 2px; }
.mx-p-big span { font-size: .75rem; color: var(--mx-color-on-canvas-muted); }
.mx-p-strip { display: flex; gap: 3px; margin-top: var(--mx-space-sm); }
.mx-p-strip span { flex: 1; height: 18px; border-radius: var(--mx-radius-pill); background: rgba(255,255,255,.14); }
.mx-p-strip span.on { background: var(--mx-color-accent); }
.mx-p-strip span.call { background: var(--mx-color-warning); }
.mx-p-label { font: var(--mx-t-caption); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mx-color-text-muted); }
.mx-p-task { display: flex; align-items: center; gap: var(--mx-space-sm); font: var(--mx-t-body-sm); padding: 9px var(--mx-space-sm); border: 1px solid var(--mx-color-border); border-radius: var(--mx-radius-small); }
.mx-p-task--done { background: var(--mx-color-surface-sunken); color: var(--mx-color-text-muted); }
.mx-p-tick { width: 16px; height: 16px; border-radius: 50%; flex: none; border: 2px solid var(--mx-color-border-strong); display: grid; place-content: center; font-size: 9px; color: transparent; }
.mx-p-task--done .mx-p-tick { background: var(--mx-color-success); border-color: var(--mx-color-success); color: #fff; }
.mx-p-progress { display: flex; gap: 3px; }
.mx-p-progress span { flex: 1; height: 4px; border-radius: var(--mx-radius-pill); background: var(--mx-color-border); transition: background-color .3s var(--mx-ease); }
.mx-p-progress span.on { background: var(--mx-color-success); }
.mx-p-progress span.now { background: var(--mx-color-primary); }
.mx-p-step { font: var(--mx-t-caption); color: var(--mx-color-text-muted); }
.mx-p-question { font-family: var(--mx-font-display); font-size: 1rem; line-height: 1.3; }
.mx-p-choice { font: var(--mx-t-body-sm); font-weight: 600; padding: 10px var(--mx-space-md); border: 1px solid var(--mx-color-border); border-radius: var(--mx-radius-medium); transition: border-color .2s, background-color .2s, color .2s; }
.mx-p-choice--on { border-color: var(--mx-color-primary); background: var(--mx-color-primary-soft); color: var(--mx-color-primary); }
.mx-p-cta { text-align: center; font: var(--mx-t-body-sm); font-weight: 700; background: var(--mx-color-primary); color: #fff; border-radius: var(--mx-control-radius); padding: 11px; }
.mx-p-spark { color: var(--mx-color-primary); }
.mx-p-spark svg { width: 100%; height: 40px; }
.mx-p-spark path { stroke-dasharray: 200; stroke-dashoffset: 200; }
.mx-p-spark[data-drawn="true"] path { animation: mx-draw 1.1s var(--mx-ease) forwards; }
.mx-p-note { font: var(--mx-t-caption); color: var(--mx-color-text-muted); }
.mx-p-metric { display: flex; justify-content: space-between; align-items: baseline; font: var(--mx-t-body-sm); }
.mx-p-metric b { font-family: var(--mx-font-num); font-size: 1rem; }
.mx-p-tl { display: flex; gap: var(--mx-space-sm); align-items: flex-start; padding: 6px 0; }
.mx-p-tl .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--mx-color-border-strong); }
.mx-p-tl .dot--ok { background: var(--mx-color-success); }
.mx-p-tl .dot--call { background: var(--mx-color-warning); }
.mx-p-tl strong { display: block; font: var(--mx-t-caption); font-weight: 700; }
.mx-p-tl em { font: var(--mx-t-caption); color: var(--mx-color-text-faint); font-style: normal; }
.mx-p-done { display: grid; justify-items: center; gap: var(--mx-space-sm); padding-block: var(--mx-space-xl); }
.mx-p-done-tick { width: 52px; height: 52px; border-radius: 50%; background: var(--mx-color-success); color: #fff; display: grid; place-content: center; font-size: 24px; }

/* ============================================================ 8. sections */

.mx-band { background: var(--mx-color-canvas); color: var(--mx-color-on-canvas); padding-block: var(--mx-block-y); }
.mx-band-grid { display: grid; gap: var(--mx-space-lg); }
.mx-band-item { display: grid; grid-template-columns: 24px 1fr; gap: 4px var(--mx-space-md); align-items: start; }
.mx-band-item .mx-icon { color: var(--mx-color-accent); grid-row: span 2; margin-top: 2px; width: 20px; height: 20px; }
.mx-band-item strong { font-family: var(--mx-font-display); font-size: .9375rem; }
.mx-band-item span { font: var(--mx-t-body-sm); color: var(--mx-color-on-canvas-muted); }

/* ---- how it works: vertical timeline on mobile, horizontal on desktop ---- */
.mx-steps { display: grid; gap: 0; position: relative; }
.mx-step { position: relative; padding-left: 56px; padding-bottom: var(--mx-space-xl); display: grid; gap: var(--mx-space-xs); align-content: start; }
.mx-step::before {
	content: ""; position: absolute; left: 19px; top: 42px; bottom: 0; width: 2px;
	background: var(--mx-color-border);
	transform: scaleY(0); transform-origin: top; transition: transform .5s var(--mx-ease);
}
.mx-step[data-seen="true"]::before { transform: scaleY(1); }
.mx-step:last-child { padding-bottom: 0; }
.mx-step:last-child::before { display: none; }
.mx-step-num {
	position: absolute; left: 0; top: 0;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--mx-color-primary-soft); color: var(--mx-color-primary);
	display: grid; place-content: center;
	font-family: var(--mx-font-num); font-size: .8125rem; font-weight: 700;
}
.mx-step h3 { padding-top: 8px; }
.mx-step p { font: var(--mx-t-body-sm); color: var(--mx-color-text-muted); }

/* ---- check-in demo ---- */
.mx-demo { background: var(--mx-color-surface); border: 1px solid var(--mx-color-border); border-radius: var(--mx-radius-large); padding: var(--mx-space-xl); box-shadow: var(--mx-elevation-2); display: grid; gap: var(--mx-space-md); max-width: 440px; margin-inline: auto; width: 100%; }
.mx-demo-head { display: flex; align-items: center; gap: var(--mx-space-md); }
.mx-demo-head .mx-p-progress { flex: 1; }
.mx-demo-step { font: var(--mx-t-caption); color: var(--mx-color-text-muted); white-space: nowrap; }
.mx-demo-q { font-family: var(--mx-font-display); font-size: 1.125rem; line-height: 1.3; min-height: 2.6em; }
.mx-demo-choices { display: grid; gap: var(--mx-space-sm); }

/* ---- momentum ---- */
.mx-mo { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--mx-radius-large); padding: var(--mx-space-xl); display: grid; gap: var(--mx-space-lg); width: 100%; }
.mx-mo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--mx-space-md); }
.mx-mo-figure { display: block; font-family: var(--mx-font-display); font-size: clamp(1.5rem, 4.5vw, 2rem); line-height: 1; color: var(--mx-color-accent); }
.mx-mo-label { font: var(--mx-t-caption); color: var(--mx-color-on-canvas-muted); }
.mx-mo-strip { display: flex; gap: 4px; }
.mx-mo-strip span {
	flex: 1; height: 38px; border-radius: var(--mx-radius-pill);
	background: rgba(255,255,255,.12);
	transform: scaleY(.3); opacity: 0;
	transition: transform .4s var(--mx-ease), opacity .4s var(--mx-ease), background-color .4s;
}
.mx-mo-strip[data-played="true"] span { transform: none; opacity: 1; }
.mx-mo-strip span.on { background: var(--mx-color-accent); }
.mx-mo-strip span.call { background: var(--mx-color-warning); }
.mx-mo-strip span.today { background: transparent; border: 2px dashed var(--mx-color-accent); }
.mx-mo-legend { display: flex; flex-wrap: wrap; gap: var(--mx-space-md); font: var(--mx-t-caption); color: var(--mx-color-on-canvas-muted); }
.mx-mo-legend span { display: flex; align-items: center; gap: 6px; }
.mx-mo-legend .k { width: 11px; height: 11px; border-radius: 3px; background: rgba(255,255,255,.14); display: inline-block; flex: none; }
.mx-mo-legend .k--on { background: var(--mx-color-accent); }
.mx-mo-legend .k--call { background: var(--mx-color-warning); }

/* ---- care team ---- */
.mx-role { display: grid; grid-template-columns: 44px 1fr; gap: 2px var(--mx-space-md); align-items: center; }
.mx-role-avatar { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--mx-color-primary-soft); color: var(--mx-color-primary); display: grid; place-content: center; }
.mx-role h3 { font-size: .9375rem; align-self: end; }
.mx-role p { font: var(--mx-t-caption); color: var(--mx-color-text-muted); align-self: start; }

/* ---- circle ---- */
/* A percentage translate resolves against the ELEMENT's own box, not the
   parent. `translate(38%)` on a 44px node moved it 17px, so all seven nodes
   collapsed into the middle. The orbit radius must be a real length. */
.mx-circle-art { display: grid; justify-items: center; gap: var(--mx-space-lg); width: 100%; }
.mx-circle-ring {
	--mx-ring: clamp(248px, 68vw, 340px);
	--mx-node: 52px;
	--mx-orbit: calc(var(--mx-ring) / 2 - var(--mx-node) / 2 - 8px);
	position: relative; width: var(--mx-ring); height: var(--mx-ring);
	display: grid; place-items: center;
}
.mx-circle-orbit { position: absolute; inset: 0; }
.mx-circle-track {
	position: absolute; inset: calc(var(--mx-node) / 2 + 8px);
	border: 1px dashed var(--mx-color-border-strong); border-radius: 50%; opacity: .55;
}
.mx-circle-node {
	position: absolute; top: 50%; left: 50%;
	width: var(--mx-node); height: var(--mx-node); margin: calc(var(--mx-node) / -2);
	border-radius: 50%;
	background: var(--mx-color-surface); border: 1px solid var(--mx-color-border);
	color: var(--mx-color-text-faint); display: grid; place-content: center;
	box-shadow: var(--mx-elevation-2);
	transform: rotate(calc(var(--i) * 51.43deg)) translateY(calc(-1 * var(--mx-orbit))) rotate(calc(var(--i) * -51.43deg)) scale(.4);
	opacity: 0; transition: transform .5s var(--mx-ease), opacity .5s var(--mx-ease);
	transition-delay: calc(var(--i) * .07s);
}
.mx-circle-ring[data-seen="true"] .mx-circle-node {
	opacity: 1;
	transform: rotate(calc(var(--i) * 51.43deg)) translateY(calc(-1 * var(--mx-orbit))) rotate(calc(var(--i) * -51.43deg));
}
.mx-circle-node--on { color: var(--mx-color-success); border-color: var(--mx-color-success); background: var(--mx-color-success-soft); }
.mx-circle-node--on::after {
	content: ""; position: absolute; inset: -5px; border-radius: 50%;
	border: 2px solid var(--mx-color-success); opacity: 0;
}
.mx-circle-ring[data-seen="true"] .mx-circle-node--on::after { animation: mx-pulse 3.4s var(--mx-ease) infinite; animation-delay: calc(var(--i) * .45s); }
.mx-circle-node .mx-icon { width: 20px; height: 20px; }
.mx-circle-core {
	position: relative; z-index: 2;
	width: 42%; height: 42%; border-radius: 50%;
	background: var(--mx-color-canvas); color: var(--mx-color-on-canvas);
	display: grid; place-content: center; align-content: center;
	text-align: center; gap: 2px; padding: 0 10px;
}
.mx-circle-core strong { font-family: var(--mx-font-display); font-size: clamp(1.0625rem, 4vw, 1.375rem); line-height: 1; }
.mx-circle-core span { font-size: .6875rem; line-height: 1.25; color: var(--mx-color-on-canvas-muted); max-width: 100%; }

/* ---- passport preview ---- */
.mx-passport-card { background: var(--mx-color-surface); border: 1px solid var(--mx-color-border); border-radius: var(--mx-radius-large); box-shadow: var(--mx-elevation-2); padding: var(--mx-space-xl); display: grid; gap: var(--mx-space-md); max-width: 440px; margin-inline: auto; width: 100%; }
.mx-pp-row { display: flex; justify-content: space-between; gap: var(--mx-space-md); font: var(--mx-t-body-sm); padding-block: 8px; border-bottom: 1px solid var(--mx-color-border); }
.mx-pp-row:last-child { border-bottom: 0; }
.mx-pp-row span:first-child { color: var(--mx-color-text-muted); }
.mx-pp-row b { font-family: var(--mx-font-num); }

/* ---- faq ---- */
.mx-faq { border-bottom: 1px solid var(--mx-color-border); }
.mx-faq-list { display: grid; }
.mx-faq-layout { display: grid; gap: var(--mx-block-y); }
.mx-faq-intro .mx-lede { margin-top: var(--mx-space-md); }
.mx-faq summary { font: var(--mx-t-h3); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--mx-space-lg); align-items: center; min-height: 64px; padding-block: var(--mx-space-lg); }
.mx-faq summary:hover { color: var(--mx-color-primary); }
.mx-faq summary::-webkit-details-marker { display: none; }
.mx-faq summary::after { content: "+"; color: var(--mx-color-text-muted); font-size: 1.375rem; font-family: var(--mx-font-body); flex: none; transition: transform .22s var(--mx-ease); }
.mx-faq[open] summary::after { transform: rotate(45deg); }
.mx-faq p { font: var(--mx-t-body-sm); color: var(--mx-color-text-muted); padding-bottom: var(--mx-space-lg); max-width: 64ch; }
.mx-faq[open] p { animation: mx-in .28s var(--mx-ease); }

/* ---- final cta ---- */
.mx-final { position: relative; overflow: hidden; background: var(--mx-color-canvas); color: var(--mx-color-on-canvas); padding-block: var(--mx-section-y); }
.mx-final-inner { position: relative; z-index: 1; text-align: center; display: grid; gap: var(--mx-space-md); justify-items: center; }
.mx-final h2 { color: var(--mx-color-on-canvas); }
.mx-final p { color: var(--mx-color-on-canvas-muted); margin-bottom: var(--mx-space-lg); }

/* ---- footer ---- */
.mx-site-foot { background: var(--mx-color-surface); border-top: 1px solid var(--mx-color-border); padding-block: var(--mx-block-y) var(--mx-space-xl); }
.mx-foot-grid { display: grid; gap: var(--mx-block-y); }
.mx-foot-brand p { font: var(--mx-t-body-sm); color: var(--mx-color-text-muted); margin-top: var(--mx-space-md); max-width: 34ch; }
.mx-site-foot nav { display: grid; gap: var(--mx-space-sm); align-content: start; }
.mx-site-foot nav h2 { font: var(--mx-t-caption); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mx-color-text-faint); margin-bottom: var(--mx-space-xs); }
.mx-site-foot nav a { color: var(--mx-color-text-muted); text-decoration: none; font: var(--mx-t-body-sm); min-height: 34px; display: inline-flex; align-items: center; }
.mx-site-foot nav a:hover { color: var(--mx-color-text); }
.mx-foot-base { border-top: 1px solid var(--mx-color-border); margin-top: var(--mx-block-y); padding-top: var(--mx-space-lg); display: grid; gap: var(--mx-space-sm); }
.mx-foot-base p:first-child { font: var(--mx-t-body-sm); color: var(--mx-color-text-muted); }

/* ---- auth ---- */
/* The sticky header plus 100dvh pushed the card below the fold on iOS, so the
   header scrolled away and the page looked headerless. Static header here. */
.mx-site--auth .mx-site-head { position: static; }
.mx-auth-page { position: relative; overflow: hidden; min-height: auto; display: grid; place-items: center; padding: var(--mx-block-y) var(--mx-gutter) var(--mx-section-y); }
@media (min-width: 768px) { .mx-auth-page { min-height: calc(100dvh - var(--mx-head-h)); } }
.mx-auth-card { position: relative; z-index: 1; width: 100%; max-width: 424px; background: var(--mx-color-surface); border: 1px solid var(--mx-color-border); border-radius: var(--mx-radius-large); padding: var(--mx-space-2xl); box-shadow: var(--mx-elevation-3); }
.mx-auth-card h1 { font: var(--mx-t-h2); margin-bottom: var(--mx-space-xs); }
.mx-auth-sub { font: var(--mx-t-body-sm); color: var(--mx-color-text-muted); margin-bottom: var(--mx-space-xl); }
.mx-auth-body { font: var(--mx-t-body-sm); color: var(--mx-color-text-muted); margin-bottom: var(--mx-space-xl); }
.mx-auth-form { display: grid; gap: var(--mx-space-lg); }
.mx-auth-form .mx-field { display: grid; gap: 6px; }
.mx-auth-form label { font: var(--mx-t-body-sm); font-weight: 650; }
.mx-check-inline { display: flex; align-items: center; gap: var(--mx-space-sm); font: var(--mx-t-body-sm); color: var(--mx-color-text-muted); }
.mx-check-inline input { width: 20px; height: 20px; accent-color: var(--mx-color-primary); flex: none; }
.mx-auth-error { background: var(--mx-color-danger-soft); color: var(--mx-color-danger); border: 1px solid var(--mx-color-danger); border-radius: var(--mx-radius-medium); padding: var(--mx-space-md); font: var(--mx-t-body-sm); margin-bottom: var(--mx-space-lg); }
.mx-auth-ok { background: var(--mx-color-success-soft); color: var(--mx-color-success); border: 1px solid var(--mx-color-success); border-radius: var(--mx-radius-medium); padding: var(--mx-space-md); font: var(--mx-t-body-sm); margin-bottom: var(--mx-space-lg); }
.mx-auth-links { margin-top: var(--mx-space-xl); display: grid; gap: var(--mx-space-sm); font: var(--mx-t-body-sm); color: var(--mx-color-text-muted); }
.mx-auth-links a { font-weight: 600; }

/* ============================================================ 9. motion */

@keyframes mx-in { to { opacity: 1; transform: none; } }
@keyframes mx-draw { to { stroke-dashoffset: 0; } }

/* ---- ambient motion: slow, continuous, never competing for attention ---- */
@keyframes mx-drift-a { 50% { transform: translate3d(-4%, 5%, 0) scale(1.1); } }
@keyframes mx-drift-b { 50% { transform: translate3d(5%, -4%, 0) scale(1.08); } }
@keyframes mx-float   { 50% { transform: translateY(-7px); } }
@keyframes mx-pulse   { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes mx-sheen   { 0% { background-position: -140% 0; } 55%, 100% { background-position: 240% 0; } }
@keyframes mx-orbit   { to { transform: rotate(360deg); } }
@keyframes mx-breathe { 50% { opacity: .55; } }

/* The hero and CTA gradients drift indefinitely so the page is never inert. */
.mx-mesh span:nth-child(1) { animation: mx-drift-a 26s var(--mx-ease) infinite alternate; }
.mx-mesh span:nth-child(2) { animation: mx-drift-b 32s var(--mx-ease) infinite alternate; }

.mx-badge { animation: mx-float 7s var(--mx-ease) infinite; }
.mx-badge:nth-child(2) { animation-duration: 8.5s; animation-delay: -2.5s; }

/* A live check-in indicator that keeps breathing rather than firing once. */
.mx-badge-tick { position: relative; }
.mx-badge-tick::after {
	content: ""; position: absolute; inset: -4px; border-radius: 50%;
	border: 2px solid var(--mx-color-success);
	animation: mx-pulse 3.2s var(--mx-ease) infinite;
}

/* The whole node ring turns slowly; each node counter-turns so icons stay level. */
.mx-circle-ring[data-seen="true"] .mx-circle-orbit { animation: mx-orbit 90s linear infinite; }
.mx-circle-ring[data-seen="true"] .mx-circle-node .mx-icon { animation: mx-orbit 90s linear infinite reverse; }
.mx-circle-track { animation: mx-breathe 6s var(--mx-ease) infinite; }

/* Momentum bars catch a slow sheen after they have finished arriving. */
.mx-mo-strip[data-played="true"] span.on {
	background-image: linear-gradient(100deg, transparent 30%, color-mix(in srgb, #fff 45%, transparent) 50%, transparent 70%);
	background-size: 240% 100%;
	animation: mx-sheen 5.5s var(--mx-ease) infinite;
}
.mx-mo-strip[data-played="true"] span.on:nth-child(even) { animation-delay: -2.2s; }

.mx-brand-mark { transition: transform .3s var(--mx-ease); }
.mx-brand:hover .mx-brand-mark { transform: rotate(-6deg) scale(1.06); }
.mx-step-num { transition: transform .3s var(--mx-ease), background-color .3s var(--mx-ease); }
.mx-step[data-seen="true"] .mx-step-num { animation: mx-float 9s var(--mx-ease) infinite; }
.mx-step:nth-child(even)[data-seen="true"] .mx-step-num { animation-delay: -4.5s; }

.mx-reveal { opacity: 0; transform: translateY(16px); }
.mx-reveal[data-seen="true"] { animation: mx-in .55s var(--mx-ease) forwards; }
.mx-reveal[data-delay="1"][data-seen="true"] { animation-delay: .07s; }
.mx-reveal[data-delay="2"][data-seen="true"] { animation-delay: .14s; }
.mx-reveal[data-delay="3"][data-seen="true"] { animation-delay: .21s; }
.mx-reveal[data-delay="4"][data-seen="true"] { animation-delay: .28s; }
.mx-reveal[data-delay="5"][data-seen="true"] { animation-delay: .35s; }

/* No JavaScript: everything is visible rather than stuck invisible. */
.mx-site.no-js .mx-reveal { opacity: 1; transform: none; }
.mx-site.no-js .mx-screen-stack > .mx-phone-screen { position: static; opacity: 1; transform: none; }
.mx-site.no-js .mx-screen-stack > .mx-phone-screen ~ .mx-phone-screen { display: none; }
.mx-site.no-js .mx-mo-strip span { opacity: 1; transform: none; }
.mx-site.no-js .mx-circle-node { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	.mx-site .mx-reveal { opacity: 1; transform: none; animation: none; }
	.mx-site .mx-circle-node { opacity: 1; transition: none; }
	.mx-site .mx-mo-strip span { opacity: 1; transform: none; transition: none; }
	.mx-site .mx-step::before { transform: scaleY(1); transition: none; }
	.mx-site .mx-mesh span, .mx-site .mx-badge, .mx-site .mx-badge-tick::after,
	.mx-site .mx-circle-orbit, .mx-site .mx-circle-node .mx-icon,
	.mx-site .mx-circle-track, .mx-site .mx-mo-strip span.on,
	.mx-site .mx-step-num, .mx-site .mx-circle-node--on::after { animation: none !important; }
	.mx-site *, .mx-site *::before, .mx-site *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
	.mx-site .mx-card-f:hover { transform: none; }
}

/* ==================================================== 10. diagnostics */

.mx-site[data-diagnostics="on"] .mx-wrap { outline: 1px dashed color-mix(in srgb, var(--mx-color-danger) 55%, transparent); outline-offset: -1px; }
.mx-site[data-diagnostics="on"] [data-overflows="true"] { outline: 3px solid var(--mx-color-danger) !important; background: color-mix(in srgb, var(--mx-color-danger) 12%, transparent) !important; }
.mx-diag {
	position: fixed; bottom: 10px; left: 10px; z-index: 300;
	background: var(--mx-color-canvas); color: var(--mx-color-on-canvas);
	font: 11px/1.5 var(--mx-font-num); padding: 8px 10px; border-radius: 8px;
	box-shadow: var(--mx-elevation-3); pointer-events: none; max-width: calc(100vw - 20px);
}
.mx-diag b { color: var(--mx-color-accent); }

/* ========================================================= 11. responsive */

@media (min-width: 420px) {
	/* Room for a compact text login beside the menu. */
	.mx-head-login { display: inline-flex; }
}

@media (min-width: 560px) {
	.mx-brand-name { display: block; }
	.mx-brand-mark { width: 32px; height: 32px; }
	.mx-brand-mark svg { width: 20px; height: 20px; }
}

@media (min-width: 600px) {
	.mx-band-grid { grid-template-columns: repeat(2, 1fr); gap: var(--mx-space-xl); }
	.mx-grid--2, .mx-grid--3, .mx-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.mx-menu-btn, .mx-drawer { display: none; }
	.mx-nav-desktop { display: flex; }
	.mx-head-cta { display: inline-flex; }

	.mx-band-grid { grid-template-columns: repeat(4, 1fr); }
	.mx-hero { padding-block: var(--mx-section-y); }
	.mx-hero-grid { grid-template-columns: 1.04fr .96fr; gap: var(--mx-space-3xl); }
	.mx-hero-visual { justify-items: center; }
	.mx-hero-visual .mx-phone { max-width: 288px; }

	/* Badges overlap the mockup, still anchored to the visual container. */
	.mx-badges { position: absolute; inset: 0; display: block; pointer-events: none; }
	.mx-badges .mx-badge { position: absolute; }
	.mx-badges .mx-badge:nth-child(1) { top: 10%; left: 0; }
	.mx-badges .mx-badge:nth-child(2) { bottom: 14%; right: 0; }

	.mx-split { grid-template-columns: 1fr 1fr; gap: var(--mx-space-3xl); }
	.mx-split--reverse > *:first-child { order: 2; }
	.mx-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.mx-grid--4 { grid-template-columns: repeat(4, 1fr); }

	/* How it works becomes a horizontal journey. */
	.mx-steps { grid-template-columns: repeat(5, 1fr); gap: var(--mx-space-lg); }
	.mx-step { padding-left: 0; padding-bottom: 0; padding-top: 56px; }
	.mx-step-num { left: 0; top: 0; }
	.mx-step::before { left: 40px; right: calc(-1 * var(--mx-space-lg)); top: 19px; bottom: auto; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
	.mx-step[data-seen="true"]::before { transform: scaleX(1); }
	.mx-step:last-child::before { display: none; }
	.mx-step h3 { padding-top: 0; }

	/* The FAQ was boxed into a 720px column and looked cramped on a laptop.
	   Give it the full container: a sticky intro beside a wide accordion. */
	.mx-faq-layout { grid-template-columns: .8fr 1.2fr; gap: var(--mx-space-3xl); align-items: start; }
	.mx-faq-intro { position: sticky; top: calc(var(--mx-head-h) + 28px); }

	.mx-foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
	.mx-foot-base { grid-template-columns: auto 1fr; align-items: baseline; gap: var(--mx-space-2xl); }
}

@media (min-width: 1280px) {
	.mx-hero-visual .mx-phone { max-width: 300px; }
}

/* A whole card is the link, so the card must not inherit anchor styling. */
.mx-site a.mx-card-link { text-decoration: none; color: inherit; }
.mx-site a.mx-card-link h3 { color: var(--mx-color-text); }
.mx-site a.mx-card-link .mx-link-arrow { color: var(--mx-color-primary); margin-top: var(--mx-space-xs); }

/* ---- long-form pages ---- */
.mx-hero--page { padding-block: var(--mx-block-y) var(--mx-block-y); }
.mx-hero--page h1 { font: var(--mx-t-h1); margin-bottom: var(--mx-space-md); }
.mx-prose h2 { font: var(--mx-t-h2); margin-top: var(--mx-block-y); margin-bottom: var(--mx-space-md); }
.mx-prose h2:first-child { margin-top: 0; }
.mx-prose p { font: var(--mx-t-body-lg); color: var(--mx-color-text-muted); margin-bottom: var(--mx-space-lg); max-width: 68ch; }
.mx-prose p:last-child { margin-bottom: 0; }

/* Captions and notes were sitting flush against the card they describe. */
.mx-passport-card + .mx-demo-label,
.mx-demo + .mx-demo-label,
.mx-circle-art + .mx-demo-label { margin-top: var(--mx-space-xl); }
.mx-grid + .mx-note, .mx-ticks + .mx-note { margin-top: var(--mx-block-y); }
.mx-section > .mx-wrap > *:last-child { margin-bottom: 0; }

/* ============================================================ 12. services */

/*
 * The Services page. Deliberately dense: a health service is a considered
 * purchase, so the page has to put price, duration, what is included and the
 * button close enough together to be compared without scrolling between them.
 * Generous whitespace here reads as an empty shop.
 */
.mx-feature {
	display: grid; gap: var(--mx-space-xl);
	background: var(--mx-color-surface); border: 1px solid var(--mx-color-border-strong);
	border-radius: var(--mx-radius-large); padding: clamp(20px, 4vw, 32px);
	box-shadow: var(--mx-elevation-2);
}
.mx-feature-body h3 { font: var(--mx-t-h2); margin-bottom: var(--mx-space-xs); }
.mx-feature-lede { font: var(--mx-t-body-lg); color: var(--mx-color-text-muted); margin-bottom: var(--mx-space-md); }
.mx-feature-body p { font: var(--mx-t-body-sm); color: var(--mx-color-text-muted); }
.mx-ticks--tight { margin-top: var(--mx-space-md); gap: var(--mx-space-xs); }

.mx-feature-buy {
	display: grid; gap: var(--mx-space-sm); align-content: start; justify-items: start;
	background: var(--mx-color-canvas); border-radius: var(--mx-radius-medium);
	padding: var(--mx-space-lg);
}
.mx-price { font: var(--mx-t-h2); color: var(--mx-color-text); line-height: 1.1; }
.mx-price--sm { font: var(--mx-t-h3); }
.mx-price del { font: var(--mx-t-body-sm); color: var(--mx-color-text-faint); }
.mx-price-note { font: var(--mx-t-caption); color: var(--mx-color-text-muted); }
.mx-feature-buy .mx-btn { width: 100%; justify-content: center; }

.mx-service { gap: var(--mx-space-xs); }
.mx-service h3 { font: var(--mx-t-h3); }
.mx-service-buy {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--mx-space-md); flex-wrap: wrap;
	margin-top: var(--mx-space-md); padding-top: var(--mx-space-md);
	border-top: 1px solid var(--mx-color-border);
}
.mx-fineprint { font: var(--mx-t-caption); color: var(--mx-color-text-faint); margin-top: var(--mx-space-md); }

@media (min-width: 780px) {
	.mx-feature { grid-template-columns: minmax(0, 1.7fr) minmax(240px, .8fr); align-items: start; }
}
