/* ============================================================
   MEDAL MARKETING — global stylesheet
   Tokens carried verbatim from the design-system bundle.
   ============================================================ */
/* Self-hosted webfonts. Files live in src/assets/fonts/ (Latin subset,
   copied verbatim from the @fontsource/* packages). Only the weights
   actually used by the templates/CSS are included: Saira 400/500/600/700,
   Saira Condensed 800/900, and JetBrains Mono 400/500/600/700 — each one
   was hand-verified as reachable through the cascade (including
   state-modifier selectors like `.mm-slot.is-on` that set font-weight
   without setting font-family themselves) before being kept, and the
   Latin subset was checked for the punctuation this site actually uses. */
@font-face {
  font-family: "Saira";
  src: url("/assets/fonts/saira-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("/assets/fonts/saira-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("/assets/fonts/saira-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("/assets/fonts/saira-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("/assets/fonts/saira-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("/assets/fonts/saira-condensed-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand heat ramp */
  --mm-amber:    #F99000;
  --mm-orange:   #F2611A;
  --mm-red:      #E10600;
  --mm-red-deep: #B30400;
  --mm-ink:      #080A1E;
  --mm-white:    #FFFFFF;
  --mm-heat:      linear-gradient(118deg, #F99000 0%, #F2611A 42%, #E10600 100%);
  --mm-heat-soft: linear-gradient(118deg, #FFB347 0%, #F2611A 55%, #E10600 100%);
  --mm-redline:   linear-gradient(180deg, #F2611A 0%, #E10600 60%, #B30400 100%);

  /* Navy-tinted neutral ramp */
  --ink-950: #050616;  --ink-900: #080A1E;  --ink-850: #0C1024;  --ink-800: #11162E;
  --ink-700: #1A2140;  --ink-600: #283154;  --ink-500: #3B466C;  --ink-400: #5A6488;
  --ink-300: #8089A6;  --ink-200: #AEB6CE;  --ink-150: #C9CFE0;  --ink-100: #E1E5F0;
  --ink-075: #EEF1F8;  --ink-050: #F6F8FC;  --paper: #FFFFFF;

  /* Racing-flag semantics */
  --flag-green: #12A150;  --flag-green-bg: #E6F6EC;
  --flag-yellow: #F5B301; --flag-yellow-bg: #FEF5DC;
  --flag-red: #E10600;    --flag-red-bg: #FCE7E6;
  --flag-blue: #2E63E8;   --flag-blue-bg: #E6EDFD;

  /* Semantic aliases (light, default) */
  --surface-page: var(--ink-050);  --surface-card: var(--paper);  --surface-raised: var(--paper);
  --surface-sunken: var(--ink-075); --surface-inverse: var(--ink-900); --surface-track: var(--ink-100);
  --text-primary: var(--ink-900);  --text-secondary: var(--ink-500);  --text-muted: var(--ink-400);
  --text-inverse: var(--paper);    --text-brand: var(--mm-red);       --text-on-accent: var(--paper);
  --border-subtle: var(--ink-100); --border-default: var(--ink-150);  --border-strong: var(--ink-300);
  --border-accent: var(--mm-red);
  --accent: var(--mm-red);  --accent-hover: #C90500;  --accent-press: var(--mm-red-deep);
  --accent-soft: var(--flag-red-bg);  --focus-ring: rgba(225, 6, 0, 0.38);
  color-scheme: light;

  /* Typography */
  --font-display: "Saira Condensed", "Saira", system-ui, sans-serif;
  --font-sans: "Saira", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --weight-regular:400; --weight-medium:500; --weight-semibold:600; --weight-bold:700; --weight-extra:800; --weight-black:900;
  --text-xs:12px;
  --leading-tight:1.04; --leading-snug:1.18; --leading-normal:1.5; --leading-relaxed:1.65;
  --tracking-tighter:-0.02em; --tracking-tight:-0.01em; --tracking-normal:0em;
  --tracking-wide:0.04em; --tracking-wider:0.08em; --tracking-widest:0.18em;

  /* Fluid type scale — min fits 320px with the 28px gutters,
     max equals the fixed px value this replaced. Every clamp is a linear
     ramp anchored at (320px, MIN) and (1256px, MAX) — 1256px because
     .mm-wrap maxes out at 1200px plus 28px gutters (see .mm-wrap below),
     so the layout (and therefore the type) stops growing there. Above
     1256px the clamp() max takes over and holds the fixed size flat.
     B (vw coefficient) = (MAX-MIN)/(1256-320)*100; A (rem intercept) =
     (MIN - B*3.2)/16. Both endpoints (320px minimum, 1256px maximum) are
     checked for all ten tokens below by test/typography.test.js. */
  --text-display: clamp(2.75rem, 1.6389rem + 5.5556vw, 6.000rem); /* 44 -> 96 */
  --text-h1:      clamp(2.50rem, 1.4744rem + 5.1282vw, 5.500rem); /* 40 -> 88 */
  --text-h2:      clamp(2.00rem, 1.3162rem + 3.4188vw, 4.000rem); /* 32 -> 64 */
  --text-h3:      clamp(1.875rem, 1.1912rem + 3.4188vw, 3.875rem); /* 30 -> 62 */
  --text-h4:      clamp(1.75rem, 1.1517rem + 2.9915vw, 3.500rem); /* 28 -> 56 */
  --text-h5:      clamp(1.625rem, 1.0694rem + 2.7778vw, 3.250rem); /* 26 -> 52 */
  --text-h6:      clamp(1.50rem, 1.0299rem + 2.3504vw, 2.875rem); /* 24 -> 46 */
  --text-price:   clamp(1.375rem, 0.9904rem + 1.9231vw, 2.500rem); /* 22 -> 40; index.njk's price/"Custom" spans */
  --text-price-lg: clamp(1.50rem, 1.0299rem + 2.3504vw, 2.875rem); /* 24 -> 46; pricing.njk's price/"Custom" spans (own page, own fixed size — not the same 40px as index.njk; kept as its own token rather than aliased to --text-h6 even though the numbers match) */
  --text-statnum: clamp(1.75rem, 1.3226rem + 2.1368vw, 3.000rem); /* 28 -> 48 */

  /* Spacing / radii / layout */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:20px; --space-6:24px;
  --space-8:32px; --space-10:40px; --space-12:48px; --space-16:64px; --space-20:80px; --space-24:96px; --space-32:128px;
  --radius-xs:3px; --radius-sm:5px; --radius-md:8px; --radius-lg:12px; --radius-xl:16px; --radius-2xl:24px; --radius-pill:999px;
  --border-hair:1px; --border-thin:1.5px; --border-bold:2px; --border-rail:3px;
  --container-lg:1120px; --container-xl:1320px; --gutter:24px;

  /* Effects */
  --shadow-xs:0 1px 2px rgba(8,10,30,.06); --shadow-sm:0 2px 6px rgba(8,10,30,.08);
  --shadow-md:0 6px 18px rgba(8,10,30,.10); --shadow-lg:0 16px 40px rgba(8,10,30,.14);
  --shadow-xl:0 28px 70px rgba(8,10,30,.20);
  --glow-red:0 6px 22px rgba(225,6,0,.34); --glow-orange:0 6px 22px rgba(242,97,26,.34);
  --ease-out:cubic-bezier(.22,1,.36,1); --ease-in-out:cubic-bezier(.65,0,.35,1);
  --ease-accel:cubic-bezier(.5,0,.75,0); --ease-snap:cubic-bezier(.16,1,.3,1);
  --dur-instant:90ms; --dur-fast:150ms; --dur-base:220ms; --dur-slow:360ms;
  --texture-hatch: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0px, rgba(255,255,255,.045) 1px, transparent 1px, transparent 9px);
  --texture-grid: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  --texture-checker: repeating-conic-gradient(var(--ink-900) 0% 25%, transparent 0% 50%) 50% / 16px 16px;
}

/* Dark theme (telemetry/cockpit) — opt-in via [data-theme="dark"] or .theme-dark */
:root[data-theme="dark"], .theme-dark {
  --surface-page: var(--ink-950); --surface-card: var(--ink-850); --surface-raised: var(--ink-800);
  --surface-sunken: var(--ink-900); --surface-inverse: var(--paper); --surface-track: var(--ink-700);
  --text-primary: #F3F5FC; --text-secondary: var(--ink-200); --text-muted: var(--ink-300);
  --text-inverse: var(--ink-900); --text-brand: var(--mm-orange); --text-on-accent: var(--paper);
  --border-subtle: var(--ink-700); --border-default: var(--ink-600); --border-strong: var(--ink-500);
  --border-accent: var(--mm-orange);
  --accent: var(--mm-red); --accent-hover: #FF1A0E; --accent-press: var(--mm-red-deep);
  --accent-soft: rgba(225,6,0,.16); --focus-ring: rgba(242,97,26,.55);
  color-scheme: dark;
}

/* Base / reset */
html, body { margin: 0; padding: 0; }
* { box-sizing: border-box; }
body { font-family: var(--font-sans); background: var(--surface-page); color: var(--text-primary); -webkit-font-smoothing: antialiased; }
a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); }
@keyframes mmfade { from { opacity: 0; } to { opacity: 1; } }

/* Accessibility: skip link + global focus ring */
.mm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 20px;
  background: var(--surface-card);
  color: var(--text-primary);
  z-index: 150;
}
.mm-skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Type helpers */
.mm-display,
.mm-h1, .mm-h2, .mm-h3, .mm-h4, .mm-h5, .mm-h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tighter);
  text-transform: uppercase;
}
.mm-display { font-size: var(--text-display); }
.mm-h1      { font-size: var(--text-h1); }
.mm-h2      { font-size: var(--text-h2); }
.mm-h3      { font-size: var(--text-h3); }
.mm-h4      { font-size: var(--text-h4); }
.mm-h5      { font-size: var(--text-h5); }
.mm-h6      { font-size: var(--text-h6); letter-spacing: var(--tracking-tight); }
/* Pricing-tier numerals ("$149", "Custom") are not headings: no
   text-transform, so "Custom" cannot be silently rendered "CUSTOM". */
.mm-price   { font-size: var(--text-price); }
/* BEM modifier for /pricing/'s own tier numerals, which were fixed at a
   different size (46px) than the homepage's (40px) before this migration —
   applied alongside .mm-price (e.g. class="mm-price mm-price--lg"); must
   stay after .mm-price in source order so the larger size wins the tie. */
.mm-price--lg { font-size: var(--text-price-lg); }
.mm-eyebrow { font-family: var(--font-mono); font-weight: 600; font-size: var(--text-xs); letter-spacing: var(--tracking-widest); text-transform: uppercase; }
.mm-data { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-tight); }

/* Layout helpers */
.mm-wrap { max-width: 1200px; margin: 0 auto; width: 100%; }
.mm-heat-text { background: var(--mm-heat); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mm-rail { height: 3px; background: var(--mm-heat); border-radius: 4px; }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* Button — pill, weight 700; recreated from DS Button */
.mm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 11px 22px; font-family: var(--font-sans); font-weight: 700;
  font-size: 15px; letter-spacing: .01em; line-height: 1; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; user-select: none;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-snap), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.mm-btn--sm { height: 36px; padding: 8px 16px; font-size: 13px; gap: 8px; }
.mm-btn--lg { height: 54px; padding: 15px 30px; font-size: 17px; gap: 11px; }
.mm-btn--full { display: flex; width: 100%; }
.mm-btn:hover { transform: translateY(-1px); }
.mm-btn:active { transform: scale(.97); }
.mm-btn--primary { background: var(--mm-heat); color: #fff; box-shadow: var(--glow-red); }
.mm-btn--solid { background: var(--accent); color: var(--text-on-accent); box-shadow: var(--shadow-sm); }
.mm-btn--outline { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.mm-btn--outline:hover { border-color: var(--accent); }
.mm-btn--ghost { background: transparent; color: var(--text-primary); }
.mm-btn--ghost:hover { background: var(--accent-soft); }
.mm-btn--inverse { background: var(--surface-inverse); color: var(--text-inverse); box-shadow: var(--shadow-sm); }
.mm-btn--on-dark { color: #fff; border-color: var(--ink-600); }       /* outline on dark sections */
.mm-btn--on-heat { color: #fff; border-color: rgba(255,255,255,.5); } /* ghost on heat CTA band */
.mm-btn .mm-ico { width: 1em; height: 1em; }
.mm-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* Badge — mono uppercase pill */
.mm-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; border-radius: var(--radius-pill); white-space: nowrap;
  color: var(--ink-500); background: var(--ink-100);
}
.mm-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.mm-badge--brand   { color: var(--mm-red);      background: var(--flag-red-bg); }
.mm-badge--success { color: #0c7a3b;            background: var(--flag-green-bg); }
.mm-badge--warning { color: #8a6500;            background: var(--flag-yellow-bg); }
.mm-badge--danger  { color: var(--mm-red-deep); background: var(--flag-red-bg); }
.mm-badge--info    { color: #1f47b0;            background: var(--flag-blue-bg); }
.mm-badge--solid             { color: #fff; background: var(--ink-600); }
.mm-badge--solid.mm-badge--brand   { background: var(--mm-red); }
.mm-badge--solid.mm-badge--success { background: var(--flag-green); }
.mm-badge--solid.mm-badge--warning { background: var(--flag-yellow); color: var(--mm-ink); }
.mm-badge--solid.mm-badge--danger  { background: var(--flag-red); }
.mm-badge--solid.mm-badge--info    { background: var(--flag-blue); }

/* Card — instrument panel surface */
.mm-card {
  position: relative; background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.mm-card--rail::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--mm-heat); }
.mm-card--interactive:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mm-card--feature { border: 1.5px solid var(--mm-red); box-shadow: var(--shadow-lg); }

/* Free-checkup CTA band above the tier grids */
.mm-checkup-band { display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center; padding: 30px 34px; }
.mm-checkup-band__cta { text-align: center; flex: none; }

/* StatCard */
.mm-statcard { position: relative; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px 22px; overflow: hidden; }
.mm-statcard--rail::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--mm-heat); }
.mm-statcard__label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.mm-statcard__value { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.mm-statcard__num { font-family: var(--font-display); font-weight: 900; font-size: var(--text-statnum); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.mm-statcard__unit { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--text-secondary); }
.mm-statcard__delta { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--flag-green); }
.mm-statcard__delta--neutral { color: var(--text-muted); }
.mm-statcard__delta--danger { color: var(--mm-red); }

/* Input */
.mm-input { display: block; }
.mm-input__label { display: block; margin-bottom: 7px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); }
.mm-input__field { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px; background: var(--surface-card); border: 1.5px solid var(--border-default); border-radius: var(--radius-md); transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.mm-input__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.mm-input__field > .mm-ico { color: var(--text-muted); flex: none; }
.mm-input__field input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--text-primary); }
.mm-input__field select { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--text-primary); cursor: pointer; }

/* Switch */
.mm-switch { position: relative; width: 46px; height: 26px; flex: none; border-radius: var(--radius-pill); border: none; cursor: pointer; padding: 0; background: var(--ink-200); box-shadow: inset 0 1px 2px rgba(8,10,30,.18); transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.mm-switch__knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(8,10,30,.35); transition: left var(--dur-base) var(--ease-snap); }
.mm-switch[aria-checked="true"] { background: var(--mm-heat); box-shadow: var(--glow-red); }
.mm-switch[aria-checked="true"] .mm-switch__knob { left: 23px; }

/* Tabs */
.mm-tabs { display: inline-flex; gap: 4px; border-bottom: 1px solid var(--border-subtle); }
.mm-tab { position: relative; border: none; background: transparent; cursor: pointer; padding: 10px 16px 12px; font-family: var(--font-sans); font-weight: 700; font-size: 14px; letter-spacing: .01em; color: var(--text-muted); transition: color var(--dur-fast) var(--ease-out); }
.mm-tab:hover { color: var(--text-secondary); }
.mm-tab[aria-selected="true"] { color: var(--text-primary); }
.mm-tab::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; transition: background var(--dur-base) var(--ease-out); }
.mm-tab[aria-selected="true"]::after { background: var(--mm-heat); }

/* Generic icon sizing (inline SVG from icons.njk) */
.mm-ico { display: inline-flex; width: 20px; height: 20px; vertical-align: middle; }
.mm-ico svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }

/* Service/feature tag chip */
.mm-chip { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: 999px; padding: 4px 9px; }

/* ============================================================
   RESPONSIVE (from bundle shared/site.css)
   ============================================================ */
@media (max-width: 980px) {
  .mm-nav-links, .mm-nav-actions { display: none !important; }
  .mm-nav-burger { display: inline-flex !important; }
  .mm-hero-split { grid-template-columns: 1fr !important; gap: 40px !important; }
  .mm-svc-grid { grid-template-columns: 1fr 1fr !important; }
  .mm-footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 860px) {
  .mm-checkup-band { grid-template-columns: 1fr; padding: 26px; }
  .mm-checkup-band__cta { text-align: left; }
}
@media (max-width: 620px) {
  .mm-svc-grid { grid-template-columns: 1fr !important; }
  .mm-stat-grid { grid-template-columns: 1fr 1fr !important; }
  .mm-footer-grid { grid-template-columns: 1fr !important; }
  .mm-modal__panel { grid-template-columns: 1fr !important; }
}

/* Nav */
.mm-nav { position: sticky; top: 0; z-index: 100; background: var(--surface-card); border-bottom: 1px solid transparent; transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.mm-nav.is-scrolled { background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom-color: var(--border-subtle); }
.mm-nav__bar { max-width: 1200px; margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mm-nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.mm-nav-links { display: flex; gap: 30px; align-items: center; }
.mm-nav__link { font-family: var(--font-sans); font-weight: 600; font-size: 14.5px; color: var(--text-secondary); text-decoration: none; white-space: nowrap; transition: color var(--dur-fast) var(--ease-out); }
.mm-nav__link:hover, .mm-nav__link.is-active { color: var(--mm-red); }
.mm-nav__dropdown { position: relative; display: inline-flex; }
.mm-nav__dd-trigger { background: none; border: none; padding: 0; margin: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.mm-nav__dd-trigger .mm-ico { transform: rotate(90deg); transition: transform var(--dur-base) var(--ease-out); }
.mm-nav__dd-trigger[aria-expanded="true"] .mm-ico { transform: rotate(-90deg); }
.mm-nav__panel { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); min-width: 232px; display: grid; gap: 2px; padding: 8px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 60; }
.mm-nav__panel[hidden] { display: none; }
.mm-nav__panel-link { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-family: var(--font-sans); font-weight: 600; font-size: 14.5px; color: var(--text-primary); text-decoration: none; white-space: nowrap; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.mm-nav__panel-link:hover { background: var(--surface-sunken); color: var(--mm-red); }
.mm-nav__sheet-group { display: flex; flex-direction: column; gap: 12px; }
.mm-nav__sheet-heading { font-family: var(--font-mono); font-weight: 600; font-size: 11px; letter-spacing: var(--tracking-widest); text-transform: uppercase; color: var(--text-muted); }
.mm-nav__sheet-sub { padding-left: 14px; }
.mm-nav-actions { display: flex; align-items: center; gap: 16px; }
.mm-nav__phone { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-weight: 600; font-size: 13.5px; color: var(--text-primary); text-decoration: none; letter-spacing: .01em; }
.mm-nav__phone .mm-ico { color: var(--mm-red); }
.mm-nav__phone--brand { color: var(--mm-red); }
.mm-nav__signin { font-family: var(--font-sans); font-weight: 700; font-size: 14px; color: var(--text-primary); text-decoration: none; }
.mm-nav-burger { display: none; background: none; border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 8px; cursor: pointer; color: var(--text-primary); align-items: center; }
.mm-nav__sheet { border-top: 1px solid var(--border-subtle); background: var(--surface-card); padding: 16px 28px 22px; display: flex; flex-direction: column; gap: 16px; }
.mm-nav__sheet[hidden] { display: none; }

/* CTA band */
.mm-cta { position: relative; overflow: hidden; padding: 76px 28px; background: var(--mm-heat); }
.mm-cta__texture { position: absolute; inset: 0; background: var(--texture-checker); opacity: .06; }
.mm-cta__inner { position: relative; max-width: 860px; margin: 0 auto; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mm-cta__title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: var(--text-h5); line-height: 1; letter-spacing: -.015em; margin: 0; }
.mm-cta__sub { font-family: var(--font-sans); font-size: 18px; color: rgba(255,255,255,.92); margin: 0; max-width: 560px; }
.mm-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.mm-footer { background: var(--ink-950); color: var(--ink-200); padding: 54px 28px 32px; }
.mm-footer__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.mm-footer__blurb { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: var(--ink-300); max-width: 290px; margin-top: 16px; }
.mm-footer__phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--font-display); font-weight: 900; font-size: 22px; color: #fff; text-decoration: none; }
.mm-footer__heading { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 14px; }
.mm-footer__links { display: flex; flex-direction: column; gap: 9px; }
.mm-footer__link { font-family: var(--font-sans); font-size: 14px; color: var(--ink-200); text-decoration: none; }
.mm-footer__link:hover { color: var(--mm-amber); }
.mm-footer__bar { max-width: 1200px; margin: 30px auto 0; padding-top: 22px; border-top: 1px solid var(--ink-800); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--ink-400); }
.mm-footer__legal { display: flex; align-items: center; gap: 8px; }

/* Book-a-call modal */
.mm-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.mm-modal[hidden] { display: none; }
.mm-modal__scrim { position: absolute; inset: 0; background: rgba(8,10,30,.62); backdrop-filter: blur(5px); animation: mmfade 160ms var(--ease-out); }
.mm-modal__panel { position: relative; width: 720px; max-width: 100%; background: var(--surface-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); overflow: hidden; display: grid; grid-template-columns: .92fr 1.08fr; animation: mmfade 160ms var(--ease-out); }
.mm-modal__rail-side { position: relative; overflow: hidden; background: var(--ink-950); color: #fff; padding: 34px 30px; }
.mm-modal__hatch { position: absolute; inset: 0; background-image: var(--texture-hatch); opacity: .6; }
.mm-modal__top-rail { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--mm-heat); }
.mm-modal__rail-content { position: relative; }
.mm-modal__h { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1; letter-spacing: -.01em; margin: 12px 0 14px; color: #fff; }
.mm-modal__h--dark { color: var(--text-primary); font-size: 28px; }
.mm-modal__p { font-family: var(--font-sans); font-size: 14.5px; color: var(--ink-200); line-height: 1.55; margin: 0 0 22px; }
.mm-modal__p--muted { color: var(--text-secondary); }
.mm-modal__call { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 30px; color: #fff; letter-spacing: -.01em; }
.mm-modal__points { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.mm-modal__point { display: flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-size: 13.5px; color: var(--ink-200); }
.mm-modal__point .mm-ico { color: var(--mm-amber); }
.mm-modal__form-side { position: relative; padding: 32px; }
.mm-modal__x { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; color: var(--text-muted); }
.mm-modal__fields { display: flex; flex-direction: column; gap: 13px; margin-top: 4px; }
.mm-modal__slots-label { color: var(--text-muted); display: block; margin: 16px 0 9px; }
.mm-modal__slots { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mm-slot { font-family: var(--font-mono); font-size: 12px; padding: 9px 6px; cursor: pointer; border-radius: var(--radius-md); text-align: center; border: 1px solid var(--border-default); background: var(--surface-card); color: var(--text-secondary); font-weight: 500; transition: all var(--dur-fast) var(--ease-out); }
.mm-slot.is-on { border: 1.5px solid var(--mm-red); background: var(--accent-soft); color: var(--mm-red); font-weight: 700; }
.mm-modal__sent { text-align: center; padding: 30px 0 14px; }
.mm-modal__sent[hidden] { display: none; }
.mm-modal__sent-ico { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 18px; background: var(--flag-green-bg); color: var(--flag-green); display: flex; align-items: center; justify-content: center; }
.mm-link-red { color: var(--mm-red); font-weight: 700; text-decoration: none; }

/* JS-driven helpers */
.is-dim { color: var(--ink-300) !important; }
/* Ensure the `hidden` attribute wins even when an element also has inline styles */
[hidden] { display: none !important; }
.mm-gauge { display: inline-flex; flex-direction: column; align-items: center; }

/* Blog category filter pills */
.mm-filter { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-default); background: var(--surface-card); color: var(--text-secondary); font-weight: 500; transition: all var(--dur-fast) var(--ease-out); }
.mm-filter.is-on { border: 1.5px solid var(--mm-red); background: var(--mm-red); color: #fff; font-weight: 700; }
