/* ==========================================================================
   MaxMindSecurity — design system core
   Tokens, base typography, layout primitives and shared components.
   Every colour in the marketing site resolves through a token defined here,
   so both themes are correct by construction rather than by override.
   ========================================================================== */

/* --------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;

  /* surfaces */
  --mm-bg:          #06080b;
  --mm-bg-alt:      #090d12;
  --mm-surface:     #0d131a;
  --mm-surface-2:   #121a23;
  --mm-surface-3:   #18222d;
  --mm-line:        #1b242f;
  --mm-line-2:      #26323f;

  /* ink */
  --mm-text:        #e6edf3;
  --mm-text-2:      #9daabb;
  --mm-text-3:      #6d7b8c;
  --mm-text-on-fill:#03181c;

  /* accent — single direction, used for every interactive affordance */
  --mm-accent:      #22c7dc;
  --mm-accent-hi:   #6ce2f0;
  --mm-accent-lo:   #14939f;
  --mm-accent-soft: rgba(34, 199, 220, .12);
  --mm-accent-line: rgba(34, 199, 220, .30);

  /* status */
  --mm-critical:    #f0565b;
  --mm-high:        #f59e3c;
  --mm-medium:      #dcc04c;
  --mm-low:         #46c08a;
  --mm-ok:          #3fbf7f;
  --mm-critical-bg: rgba(240, 86, 91, .13);
  --mm-high-bg:     rgba(245, 158, 60, .13);
  --mm-medium-bg:   rgba(220, 192, 76, .13);
  --mm-low-bg:      rgba(70, 192, 138, .13);

  /* effects */
  --mm-shadow-1:    0 1px 2px rgba(0, 0, 0, .40);
  --mm-shadow-2:    0 18px 40px -22px rgba(0, 0, 0, .80);
  --mm-shadow-3:    0 30px 70px -30px rgba(0, 0, 0, .85);
  --mm-ring:        0 0 0 3px rgba(34, 199, 220, .35);
  --mm-hairline:    inset 0 1px 0 rgba(255, 255, 255, .04);

  /* type */
  --mm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mm-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --mm-fs-display: clamp(38px, 4.4vw, 60px);
  --mm-fs-h1:      clamp(32px, 3.7vw, 50px);
  --mm-fs-h2:      clamp(25px, 2.7vw, 38px);
  --mm-fs-h3:      clamp(18px, 1.35vw, 21px);
  --mm-fs-lead:    clamp(16px, 1.05vw, 19px);
  --mm-fs-body:    16px;
  --mm-fs-sm:      14px;
  --mm-fs-xs:      13px;
  --mm-lh-tight:   1.08;
  --mm-lh-head:    1.18;
  --mm-lh-body:    1.72;

  /* metrics */
  --mm-wrap:       1200px;
  --mm-wrap-wide:  1320px;
  --mm-wrap-read:  760px;
  --mm-gutter:     clamp(18px, 4vw, 40px);
  --mm-section-y:  clamp(60px, 7.5vw, 104px);
  --mm-r-xs:       6px;
  --mm-r-sm:       9px;
  --mm-r:          13px;
  --mm-r-lg:       18px;
  --mm-r-xl:       24px;
  --mm-r-pill:     999px;
  --mm-header-h:   68px;
}

html[data-theme='light'] {
  color-scheme: light;

  --mm-bg:          #ffffff;
  --mm-bg-alt:      #f4f8fa;
  --mm-surface:     #ffffff;
  --mm-surface-2:   #f2f6f9;
  --mm-surface-3:   #e9f0f4;
  --mm-line:        #e1e9ef;
  --mm-line-2:      #c9d6e0;

  --mm-text:        #0b1520;
  --mm-text-2:      #4b5b6c;
  --mm-text-3:      #6c7c8d;
  --mm-text-on-fill:#ffffff;

  --mm-accent:      #0b7c8c;
  --mm-accent-hi:   #096878;
  --mm-accent-lo:   #0b7c8c;
  --mm-accent-soft: rgba(11, 124, 140, .09);
  --mm-accent-line: rgba(11, 124, 140, .28);

  --mm-critical:    #c02c33;
  --mm-high:        #a35c07;
  --mm-medium:      #7d6708;
  --mm-low:         #17784f;
  --mm-ok:          #17784f;
  --mm-critical-bg: rgba(192, 44, 51, .09);
  --mm-high-bg:     rgba(163, 92, 7, .09);
  --mm-medium-bg:   rgba(125, 103, 8, .09);
  --mm-low-bg:      rgba(23, 120, 79, .09);

  --mm-shadow-1:    0 1px 2px rgba(16, 30, 45, .06);
  --mm-shadow-2:    0 16px 34px -20px rgba(16, 30, 45, .28);
  --mm-shadow-3:    0 28px 60px -30px rgba(16, 30, 45, .30);
  --mm-ring:        0 0 0 3px rgba(11, 124, 140, .28);
  --mm-hairline:    inset 0 1px 0 rgba(255, 255, 255, .70);
}

/* Sections that stay dark in both themes (hero, CTA band, footer).
   Pinning the tokens locally means nothing inside can lose contrast
   when the site theme changes. */
.mm-invert {
  color-scheme: dark;
  --mm-bg:          #06080b;
  --mm-bg-alt:      #090d12;
  --mm-surface:     rgba(255, 255, 255, .045);
  --mm-surface-2:   rgba(255, 255, 255, .07);
  --mm-surface-3:   rgba(255, 255, 255, .10);
  --mm-line:        rgba(255, 255, 255, .12);
  --mm-line-2:      rgba(255, 255, 255, .20);
  --mm-text:        #f2f6f9;
  --mm-text-2:      #a8b6c5;
  --mm-text-3:      #7f8d9c;
  --mm-text-on-fill:#03181c;
  --mm-accent:      #22c7dc;
  --mm-accent-hi:   #6ce2f0;
  --mm-accent-soft: rgba(34, 199, 220, .14);
  --mm-accent-line: rgba(34, 199, 220, .34);
  --mm-ring:        0 0 0 3px rgba(108, 226, 240, .40);
  color: var(--mm-text);
}

/* ----------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mm-header-h) + 16px);
}

body.mm {
  margin: 0;
  background: var(--mm-bg);
  color: var(--mm-text);
  font-family: var(--mm-font);
  font-size: var(--mm-fs-body);
  line-height: var(--mm-lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.mm img, .mm svg, .mm video { max-width: 100%; }
.mm img { height: auto; display: block; }

.mm h1, .mm h2, .mm h3, .mm h4 {
  margin: 0;
  color: var(--mm-text);
  font-weight: 700;
  letter-spacing: -.021em;
  line-height: var(--mm-lh-head);
  text-wrap: balance;
}
.mm p { margin: 0; }
.mm a { color: inherit; }

.mm ::selection { background: var(--mm-accent); color: var(--mm-text-on-fill); }

:focus-visible {
  outline: 2px solid var(--mm-accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}
.mm-invert :focus-visible { outline-color: #6ce2f0; }

.mm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--mm-accent);
  color: var(--mm-text-on-fill);
  font-weight: 600;
  border-radius: 0 0 var(--mm-r-sm) 0;
}
.mm-skip:focus { left: 0; }

.mm-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------- layout */
.mm-wrap {
  width: 100%;
  max-width: var(--mm-wrap);
  margin-inline: auto;
  padding-inline: var(--mm-gutter);
}
.mm-wrap-wide { max-width: var(--mm-wrap-wide); }
.mm-wrap-read { max-width: var(--mm-wrap-read); }

.mm-section { padding-block: var(--mm-section-y); position: relative; }
.mm-section-tight { padding-block: clamp(44px, 5vw, 72px); }
.mm-alt { background: var(--mm-bg-alt); }
.mm-bordered { border-top: 1px solid var(--mm-line); }

/* Faint engineering grid used behind dark sections. Decoration only. */
.mm-gridlines::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--mm-text);
  opacity: .038;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 78%);
}

.mm-headline { max-width: 62ch; }
.mm-headline-center { margin-inline: auto; text-align: center; }

.mm-eyebrow {
  display: inline-block;
  font-family: var(--mm-mono);
  font-size: var(--mm-fs-xs);
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--mm-accent);
}
.mm-eyebrow::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 1px;
  margin-right: 9px;
  background: currentColor;
  opacity: .6;
}


.mm-h1 { font-size: var(--mm-fs-h1); font-weight: 700; letter-spacing: -.028em; }
.mm-h2 { font-size: var(--mm-fs-h2); font-weight: 700; }
.mm-h3 { font-size: var(--mm-fs-h3); font-weight: 600; letter-spacing: -.012em; }
.mm-display { font-size: var(--mm-fs-display); font-weight: 700; letter-spacing: -.032em; line-height: var(--mm-lh-tight); }

.mm-lead {
  font-size: var(--mm-fs-lead);
  line-height: 1.68;
  color: var(--mm-text-2);
  max-width: 66ch;
}
.mm-headline-center .mm-lead { margin-inline: auto; }
.mm-headline > * + * { margin-top: 16px; }

.mm-body { color: var(--mm-text-2); }
.mm .mm-body > * + * { margin-top: 1em; }

.mm-grid { display: grid; gap: clamp(16px, 1.8vw, 24px); }
.mm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1000px) {
  .mm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mm-grid-2, .mm-grid-3, .mm-grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* -------------------------------------------------------------- buttons */
.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--mm-r-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.mm-btn:active { transform: translateY(1px); }

.mm-btn-primary {
  background: var(--mm-accent);
  color: var(--mm-text-on-fill);
  box-shadow: var(--mm-shadow-1);
}
.mm-btn-primary:hover { background: var(--mm-accent-hi); color: var(--mm-text-on-fill); }
html[data-theme='light'] .mm-btn-primary:hover { color: #fff; }

.mm-btn-outline {
  background: transparent;
  border-color: var(--mm-line-2);
  color: var(--mm-text);
}
.mm-btn-outline:hover { border-color: var(--mm-accent); color: var(--mm-accent); background: var(--mm-accent-soft); }

.mm-btn-quiet {
  background: var(--mm-surface-2);
  border-color: var(--mm-line);
  color: var(--mm-text);
}
.mm-btn-quiet:hover { background: var(--mm-surface-3); border-color: var(--mm-line-2); }

.mm-btn-sm { padding: 9px 15px; font-size: 14px; }
.mm-btn-lg { padding: 15px 26px; font-size: 16px; }
.mm-btn-block { width: 100%; }
.mm-btn[disabled] { opacity: .55; pointer-events: none; }

.mm-btn svg { width: 1.05em; height: 1.05em; }
.mm-btn:hover svg.mm-icon-arrow { transform: translateX(2px); }
svg.mm-icon-arrow { transition: transform .18s ease; }

.mm-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mm-accent);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.mm-link:hover { border-bottom-color: currentColor; }
.mm-link:hover svg.mm-icon-arrow { transform: translateX(2px); }

.mm-link-plain { color: var(--mm-text-2); text-decoration: none; transition: color .18s ease; }
.mm-link-plain:hover { color: var(--mm-accent); }

.mm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.mm-actions small { color: var(--mm-text-3); font-size: var(--mm-fs-sm); }

/* ---------------------------------------------------------------- cards */
.mm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2vw, 28px);
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-r);
  box-shadow: var(--mm-hairline);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.mm-card h3 { font-size: var(--mm-fs-h3); font-weight: 600; }
.mm-card p { color: var(--mm-text-2); font-size: 15px; line-height: 1.68; }

a.mm-card, .mm-card-hover { text-decoration: none; }
a.mm-card:hover, .mm-card-hover:hover {
  border-color: var(--mm-accent-line);
  transform: translateY(-2px);
  box-shadow: var(--mm-shadow-2), var(--mm-hairline);
}

.mm-card-num {
  font-family: var(--mm-mono);
  font-size: var(--mm-fs-xs);
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--mm-accent);
}

.mm-panel {
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-r-lg);
  box-shadow: var(--mm-hairline);
}
.mm-panel-pad { padding: clamp(22px, 2.6vw, 36px); }

.mm-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--mm-r-sm);
  background: var(--mm-accent-soft);
  border: 1px solid var(--mm-accent-line);
  color: var(--mm-accent);
}
.mm-ico svg { width: 21px; height: 21px; }

/* --------------------------------------------------------------- badges */
.mm-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--mm-r-pill);
  border: 1px solid var(--mm-line-2);
  background: var(--mm-surface-2);
  color: var(--mm-text-2);
  font-family: var(--mm-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mm-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.mm-badge-accent   { color: var(--mm-accent);   border-color: var(--mm-accent-line); background: var(--mm-accent-soft); }
.mm-badge-critical { color: var(--mm-critical); border-color: var(--mm-critical); background: var(--mm-critical-bg); }
.mm-badge-high     { color: var(--mm-high);     border-color: var(--mm-high);     background: var(--mm-high-bg); }
.mm-badge-medium   { color: var(--mm-medium);   border-color: var(--mm-medium);   background: var(--mm-medium-bg); }
.mm-badge-low      { color: var(--mm-low);      border-color: var(--mm-low);      background: var(--mm-low-bg); }
.mm-badge-ok       { color: var(--mm-ok);       border-color: var(--mm-ok);       background: var(--mm-low-bg); }

.mm-badge-live::before { animation: mm-pulse 2.4s ease-in-out infinite; }
@keyframes mm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.8); }
}

.mm-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--mm-r-pill);
  border: 1px solid var(--mm-line);
  background: var(--mm-surface-2);
  color: var(--mm-text-2);
  font-size: var(--mm-fs-sm);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- lists */
.mm-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.mm-list li {
  position: relative;
  padding-left: 27px;
  color: var(--mm-text-2);
  font-size: 15px;
  line-height: 1.65;
}
.mm-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 13px;
  height: 7px;
  border-left: 1.8px solid var(--mm-accent);
  border-bottom: 1.8px solid var(--mm-accent);
  transform: rotate(-45deg);
}
.mm-list strong { color: var(--mm-text); font-weight: 600; }

.mm-list-dot li::before {
  content: '';
  top: .66em;
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 50%;
  background: var(--mm-accent);
  transform: none;
}

/* ---------------------------------------------------------------- steps */
.mm-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.mm-steps > li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--mm-line);
}
.mm-steps > li:last-child { border-bottom: 1px solid var(--mm-line); }
.mm-step-n {
  font-family: var(--mm-mono);
  font-size: var(--mm-fs-sm);
  font-weight: 500;
  letter-spacing: .09em;
  color: var(--mm-accent);
  padding-top: 3px;
}
.mm-steps h3 { font-size: 17px; font-weight: 600; margin-bottom: 7px; }
.mm-steps p { color: var(--mm-text-2); font-size: 15px; line-height: 1.68; }
@media (max-width: 560px) {
  .mm-steps > li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* ------------------------------------------------------------- accordion */
.mm-faq { display: grid; gap: 10px; }
.mm-faq details {
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-r);
  overflow: hidden;
  transition: border-color .2s ease;
}
.mm-faq details[open] { border-color: var(--mm-accent-line); }
.mm-faq summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--mm-text);
  list-style: none;
}
.mm-faq summary::-webkit-details-marker { display: none; }
.mm-faq summary::after {
  content: '';
  margin-left: auto;
  margin-top: 5px;
  width: 9px;
  height: 9px;
  flex: none;
  border-right: 1.9px solid var(--mm-accent);
  border-bottom: 1.9px solid var(--mm-accent);
  transform: rotate(45deg);
  transition: transform .22s ease;
}
.mm-faq details[open] summary::after { transform: rotate(-135deg); }
.mm-faq summary:hover { color: var(--mm-accent); }
.mm-faq-n {
  font-family: var(--mm-mono);
  font-size: var(--mm-fs-xs);
  color: var(--mm-accent);
  padding-top: 3px;
  flex: none;
}
.mm-faq p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--mm-text-2);
  font-size: 15px;
  line-height: 1.72;
  max-width: 80ch;
}

/* ---------------------------------------------------------------- forms */
.mm-form { display: grid; gap: 18px; }
.mm-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .mm-form-row { grid-template-columns: minmax(0, 1fr); } }

.mm-field { display: grid; gap: 8px; }
.mm-field > span {
  font-size: var(--mm-fs-sm);
  font-weight: 600;
  color: var(--mm-text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mm-field > span small {
  font-weight: 400;
  color: var(--mm-text-3);
  font-size: 12.5px;
}

.mm-field input,
.mm-field select,
.mm-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--mm-bg);
  border: 1px solid var(--mm-line-2);
  border-radius: var(--mm-r-sm);
  color: var(--mm-text);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
html[data-theme='light'] .mm-field input,
html[data-theme='light'] .mm-field select,
html[data-theme='light'] .mm-field textarea { background: #fff; }

.mm-field textarea { resize: vertical; min-height: 130px; }
.mm-field input::placeholder,
.mm-field textarea::placeholder { color: var(--mm-text-3); }
.mm-field input:focus,
.mm-field select:focus,
.mm-field textarea:focus {
  outline: none;
  border-color: var(--mm-accent);
  box-shadow: var(--mm-ring);
}
.mm-field [aria-invalid='true'] { border-color: var(--mm-critical); }

.mm-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.mm-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: var(--mm-fs-sm);
  line-height: 1.6;
  color: var(--mm-text-2);
  cursor: pointer;
}
.mm-check input {
  width: 19px; height: 19px;
  margin: 1px 0 0;
  accent-color: var(--mm-accent);
  cursor: pointer;
}
.mm-check a { color: var(--mm-accent); }

.mm-help {
  font-size: var(--mm-fs-sm);
  color: var(--mm-text-3);
  line-height: 1.6;
  margin: 0;
}
.mm-help a { color: var(--mm-accent); }

.mm-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}
.mm-form-foot small { color: var(--mm-text-3); font-size: var(--mm-fs-sm); }

.mm-notice {
  padding: 16px 18px;
  border-radius: var(--mm-r-sm);
  border: 1px solid var(--mm-line-2);
  background: var(--mm-surface-2);
  color: var(--mm-text-2);
  font-size: 15px;
  line-height: 1.65;
}
.mm-notice strong { color: var(--mm-text); display: block; margin-bottom: 4px; }
.mm-notice ul { margin: 8px 0 0; padding-left: 20px; }
.mm-notice-ok  { border-color: var(--mm-ok); background: var(--mm-low-bg); color: var(--mm-text); }
.mm-notice-err { border-color: var(--mm-critical); background: var(--mm-critical-bg); color: var(--mm-text); }

/* -------------------------------------------------------- breadcrumbs */
.mm-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: var(--mm-fs-sm);
  color: var(--mm-text-3);
}
.mm-crumbs a { color: var(--mm-text-2); text-decoration: none; }
.mm-crumbs a:hover { color: var(--mm-accent); }
.mm-crumbs [aria-current] { color: var(--mm-text); }
.mm-crumb-sep { opacity: .5; }

/* ------------------------------------------------------------- metrics */
.mm-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--mm-line);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-r);
  overflow: hidden;
}
.mm-metrics > div {
  background: var(--mm-bg);
  padding: 24px 22px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.mm-invert .mm-metrics > div { background: rgba(255, 255, 255, .03); }
.mm-metric-v {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--mm-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.mm-metric-l { font-size: var(--mm-fs-sm); color: var(--mm-text-2); line-height: 1.5; }
@media (max-width: 860px) { .mm-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- table */
.mm-table-scroll { overflow-x: auto; border: 1px solid var(--mm-line); border-radius: var(--mm-r); }
.mm-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.mm-table th, .mm-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--mm-line); }
.mm-table th {
  background: var(--mm-surface-2);
  color: var(--mm-text);
  font-weight: 600;
  font-size: var(--mm-fs-sm);
}
.mm-table td { color: var(--mm-text-2); }
.mm-table tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------ motion */
.mm-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--mm-delay, 0ms);
}
.mm-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mm-reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .mm-site-header, .mm-footer, .mm-cta-band { display: none !important; }
  body.mm { background: #fff; color: #000; }
}
