/* ==========================================================================
   MaxMindSecurity — design system core (v3)
   Deep-navy base, cyber mint and amber brand accents, Plus Jakarta Sans.
   Every colour resolves through a token so both themes stay correct.
   ========================================================================== */

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

  /* surfaces */
  --mm-bg:          #070a14;
  --mm-bg-alt:      #0a0e1c;
  --mm-surface:     #0e1324;
  --mm-surface-2:   #131a30;
  --mm-surface-3:   #1a2240;
  --mm-line:        #1c2442;
  --mm-line-2:      #2b355c;

  /* ink */
  --mm-text:        #f1f3ff;
  --mm-text-2:      #a9b0d0;
  --mm-text-3:      #7a82a8;
  --mm-text-on-fill:#06130f;

  /* brand */
  --mm-accent:      #6dffc6;
  --mm-accent-hi:   #9dffda;
  --mm-accent-lo:   #28d99b;
  --mm-accent-soft: rgba(109, 255, 198, .14);
  --mm-accent-line: rgba(109, 255, 198, .36);
  --mm-violet:      #2dd4bf;
  --mm-pink:        #ffd36f;
  --mm-grad:        linear-gradient(135deg, #34d399 0%, #6dffc6 56%, #ffd36f 100%);
  --mm-grad-text:   linear-gradient(110deg, #6dffc6 0%, #bffff0 55%, #ffd36f 100%);
  --mm-grad-line:   linear-gradient(90deg, transparent, #6dffc6 30%, #ffd36f 70%, transparent);
  --mm-glow:        0 14px 44px -12px rgba(52, 211, 153, .70);
  --mm-glow-soft:   0 0 0 1px rgba(109, 255, 198, .24), 0 20px 60px -24px rgba(52, 211, 153, .50);

  /* status */
  --mm-critical:    #fb7185;
  --mm-high:        #fbbf24;
  --mm-medium:      #facc15;
  --mm-low:         #34d399;
  --mm-ok:          #34d399;
  --mm-critical-bg: rgba(251, 113, 133, .13);
  --mm-high-bg:     rgba(251, 191, 36, .13);
  --mm-medium-bg:   rgba(250, 204, 21, .13);
  --mm-low-bg:      rgba(52, 211, 153, .13);

  /* effects */
  --mm-shadow-1:    0 1px 2px rgba(2, 4, 12, .45);
  --mm-shadow-2:    0 20px 44px -22px rgba(2, 4, 12, .85);
  --mm-shadow-3:    0 34px 80px -30px rgba(2, 4, 12, .9);
  --mm-ring:        0 0 0 3px rgba(109, 255, 198, .30);
  --mm-hairline:    inset 0 1px 0 rgba(255, 255, 255, .05);

  /* type */
  --mm-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mm-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --mm-fs-display: clamp(40px, 5vw, 68px);
  --mm-fs-h1:      clamp(34px, 3.9vw, 54px);
  --mm-fs-h2:      clamp(27px, 2.9vw, 42px);
  --mm-fs-h3:      clamp(18px, 1.35vw, 21px);
  --mm-fs-lead:    clamp(16px, 1.08vw, 19px);
  --mm-fs-body:    16px;
  --mm-fs-sm:      14px;
  --mm-fs-xs:      12.5px;
  --mm-lh-tight:   1.04;
  --mm-lh-head:    1.16;
  --mm-lh-body:    1.7;

  /* metrics */
  --mm-wrap:       1200px;
  --mm-wrap-wide:  1320px;
  --mm-wrap-read:  760px;
  --mm-gutter:     clamp(18px, 4vw, 40px);
  --mm-section-y:  clamp(64px, 8vw, 112px);
  --mm-r-xs:       8px;
  --mm-r-sm:       11px;
  --mm-r:          16px;
  --mm-r-lg:       22px;
  --mm-r-xl:       30px;
  --mm-r-pill:     999px;
  --mm-header-h:   74px;
}

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

  --mm-bg:          #ffffff;
  --mm-bg-alt:      #f6f7fd;
  --mm-surface:     #ffffff;
  --mm-surface-2:   #f3f4fb;
  --mm-surface-3:   #eaecf8;
  --mm-line:        #e5e8f4;
  --mm-line-2:      #cdd3ea;

  --mm-text:        #0c1030;
  --mm-text-2:      #4c5478;
  --mm-text-3:      #6f7799;
  --mm-text-on-fill:#06130f;

  --mm-accent:      #0f8f6b;
  --mm-accent-hi:   #08795c;
  --mm-accent-lo:   #10b981;
  --mm-accent-soft: rgba(16, 185, 129, .10);
  --mm-accent-line: rgba(15, 143, 107, .30);
  --mm-violet:      #0f766e;
  --mm-pink:        #b7791f;
  --mm-grad:        linear-gradient(135deg, #0f8f6b 0%, #10b981 58%, #d99a2b 100%);
  --mm-grad-text:   linear-gradient(110deg, #0f765f 0%, #0f8f6b 58%, #b7791f 100%);
  --mm-grad-line:   linear-gradient(90deg, transparent, #10b981 30%, #d99a2b 70%, transparent);
  --mm-glow:        0 14px 36px -12px rgba(15, 143, 107, .48);
  --mm-glow-soft:   0 0 0 1px rgba(15, 143, 107, .18), 0 20px 50px -24px rgba(15, 143, 107, .35);

  --mm-critical:    #d1385c;
  --mm-high:        #b26a00;
  --mm-medium:      #8a6d00;
  --mm-low:         #0f9f6e;
  --mm-ok:          #0f9f6e;
  --mm-critical-bg: rgba(209, 56, 92, .09);
  --mm-high-bg:     rgba(178, 106, 0, .09);
  --mm-medium-bg:   rgba(138, 109, 0, .09);
  --mm-low-bg:      rgba(15, 159, 110, .09);

  --mm-shadow-1:    0 1px 2px rgba(20, 24, 60, .06);
  --mm-shadow-2:    0 18px 40px -22px rgba(20, 24, 60, .30);
  --mm-shadow-3:    0 30px 70px -30px rgba(20, 24, 60, .32);
  --mm-ring:        0 0 0 3px rgba(15, 143, 107, .24);
  --mm-hairline:    inset 0 1px 0 rgba(255, 255, 255, .75);
}

/* Sections that stay dark in both themes (hero, CTA, footer). */
.mm-invert {
  color-scheme: dark;
  --mm-bg:          #070a14;
  --mm-bg-alt:      #0a0e1c;
  --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, .10);
  --mm-line-2:      rgba(255, 255, 255, .18);
  --mm-text:        #f3f4ff;
  --mm-text-2:      #b0b6d6;
  --mm-text-3:      #838aae;
  --mm-text-on-fill:#06130f;
  --mm-accent:      #6dffc6;
  --mm-accent-hi:   #9dffda;
  --mm-accent-lo:   #28d99b;
  --mm-accent-soft: rgba(109, 255, 198, .16);
  --mm-accent-line: rgba(109, 255, 198, .38);
  --mm-violet:      #2dd4bf;
  --mm-pink:        #ffd36f;
  --mm-grad:        linear-gradient(135deg, #34d399 0%, #6dffc6 56%, #ffd36f 100%);
  --mm-grad-text:   linear-gradient(110deg, #6dffc6 0%, #bffff0 55%, #ffd36f 100%);
  --mm-ok:          #34d399;
  --mm-low-bg:      rgba(52, 211, 153, .14);
  --mm-ring:        0 0 0 3px rgba(109, 255, 198, .34);
  --mm-shadow-2:    0 20px 44px -22px rgba(2, 4, 12, .85);
  --mm-shadow-3:    0 34px 80px -30px rgba(2, 4, 12, .9);
  --mm-hairline:    inset 0 1px 0 rgba(255, 255, 255, .06);
  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: -.024em;
  line-height: var(--mm-lh-head);
  text-wrap: balance;
}
.mm p { margin: 0; }
/* Zero-specificity base so any single-class colour (buttons, links) wins. */
:where(.mm) a { color: inherit; }

.mm ::selection { background: var(--mm-accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--mm-accent-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

.mm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--mm-accent);
  color: #fff;
  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;
}

/* gradient text helper */
.mm-grad-text {
  background: var(--mm-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------- 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); }

/* Soft dot grid used behind dark sections. Decoration only. */
.mm-gridlines::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, currentColor 1px, transparent 1.6px);
  background-size: 28px 28px;
  color: var(--mm-text);
  opacity: .07;
  -webkit-mask-image: radial-gradient(110% 80% at 50% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(110% 80% at 50% 0%, #000 10%, transparent 72%);
}

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

/* Section label: plain text, no pill, no ornament. */
.mm-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--mm-accent);
  line-height: 1.4;
}

.mm-h1 { font-size: var(--mm-fs-h1); font-weight: 800; letter-spacing: -.032em; }
.mm-h2 { font-size: var(--mm-fs-h2); font-weight: 800; letter-spacing: -.03em; }
.mm-h3 { font-size: var(--mm-fs-h3); font-weight: 700; letter-spacing: -.014em; }
.mm-display { font-size: var(--mm-fs-display); font-weight: 800; letter-spacing: -.036em; 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: 18px; }

.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 {
  position: relative;
  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, filter .18s ease;
}
.mm-btn:active { transform: translateY(1px); }

.mm-btn-primary {
  background: var(--mm-grad);
  color: var(--mm-text-on-fill);
  box-shadow: var(--mm-glow), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.mm-btn-primary:hover { color: var(--mm-text-on-fill); filter: brightness(1.04) saturate(1.03); transform: translateY(-1px); box-shadow: 0 18px 48px -12px rgba(52, 211, 153, .62), inset 0 1px 0 rgba(255, 255, 255, .22); }

.mm-btn-outline {
  background: var(--mm-surface);
  border-color: var(--mm-line-2);
  color: var(--mm-text);
  box-shadow: var(--mm-hairline);
}
.mm-btn-outline:hover { border-color: var(--mm-accent-line); color: var(--mm-accent); background: var(--mm-accent-soft); }
.mm-invert .mm-btn-outline { background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mm-invert .mm-btn-outline:hover { background: rgba(255, 255, 255, .11); color: #fff; border-color: rgba(255, 255, 255, .34); }

.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-white { background: #fff; color: #07543f; border-color: #fff; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.mm-btn-white:hover { color: #043629; transform: translateY(-1px); }

.mm-btn-sm { padding: 9px 15px; font-size: 14px; border-radius: var(--mm-r-xs); }
.mm-btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 13px; }
.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(3px); }
svg.mm-icon-arrow { transition: transform .18s ease; }

.mm-backtop {
  --mm-backtop-progress: 0;
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 120;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(7, 10, 20, .78);
  color: #fff;
  box-shadow: 0 18px 44px -18px rgba(2, 4, 12, .72), inset 0 1px 0 rgba(255, 255, 255, .16);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.94);
  transition: opacity .22s ease, transform .22s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.mm-backtop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.mm-backtop:hover {
  border-color: rgba(52, 211, 153, .72);
  background: rgba(7, 10, 20, .9);
  box-shadow: 0 20px 52px -18px rgba(2, 4, 12, .82), 0 0 0 4px rgba(52, 211, 153, .12), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.mm-backtop:active { transform: translateY(1px) scale(.98); }
.mm-backtop-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.mm-backtop-track,
.mm-backtop-progress {
  fill: none;
  stroke-width: 3;
}
.mm-backtop-track { stroke: rgba(255, 255, 255, .17); }
.mm-backtop-progress {
  stroke: #34d399;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--mm-backtop-progress));
  transition: stroke-dashoffset .08s linear;
}
.mm-backtop-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.mm-backtop-icon svg {
  width: 20px;
  height: 20px;
}
html[data-theme='light'] .mm-backtop {
  border-color: rgba(12, 16, 48, .12);
  background: rgba(255, 255, 255, .86);
  color: #0c1030;
  box-shadow: 0 18px 42px -22px rgba(20, 24, 60, .42), inset 0 1px 0 rgba(255, 255, 255, .8);
}
html[data-theme='light'] .mm-backtop:hover {
  border-color: rgba(15, 159, 110, .52);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 48px -22px rgba(20, 24, 60, .5), 0 0 0 4px rgba(15, 159, 110, .1), inset 0 1px 0 rgba(255, 255, 255, .9);
}
html[data-theme='light'] .mm-backtop-track { stroke: rgba(12, 16, 48, .13); }
html[data-theme='light'] .mm-backtop-icon { background: rgba(12, 16, 48, .05); }

.mm-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mm-accent);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color .18s ease, gap .18s ease;
}
.mm-link:hover { color: var(--mm-accent-hi); gap: 10px; }

.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(22px, 2.2vw, 30px);
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-r);
  box-shadow: var(--mm-hairline);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.mm-card h3 { font-size: var(--mm-fs-h3); font-weight: 700; }
.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(-3px);
  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(24px, 2.8vw, 40px); }

.mm-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--mm-accent-soft);
  border: 1px solid var(--mm-accent-line);
  color: var(--mm-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.mm-ico svg { width: 21px; height: 21px; }
.mm-ico-fill {
  background: var(--mm-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--mm-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* --------------------------------------------------------------- badges */
/* Status tag: small rounded label, regular type, no dot. */
.mm-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--mm-surface-3);
  color: var(--mm-text-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.mm-badge-accent   { color: var(--mm-accent);   background: var(--mm-accent-soft); }
.mm-badge-critical { color: var(--mm-critical); background: var(--mm-critical-bg); }
.mm-badge-high     { color: var(--mm-high);     background: var(--mm-high-bg); }
.mm-badge-medium   { color: var(--mm-medium);   background: var(--mm-medium-bg); }
.mm-badge-low      { color: var(--mm-low);      background: var(--mm-low-bg); }
.mm-badge-ok       { color: var(--mm-ok);       background: var(--mm-low-bg); }

.mm-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--mm-r-xs);
  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: 30px;
  color: var(--mm-text-2);
  font-size: 15px;
  line-height: 1.65;
}
.mm-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mm-accent-soft);
  border: 1px solid var(--mm-accent-line);
}
.mm-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: .62em;
  width: 8px;
  height: 4px;
  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 { padding-left: 20px; }
.mm-list-dot li::before {
  top: .66em;
  width: 6px;
  height: 6px;
  border: 0;
  background: var(--mm-grad);
}
.mm-list-dot li::after { display: 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: 700; 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;
  box-shadow: var(--mm-hairline);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.mm-faq details[open] { border-color: var(--mm-accent-line); box-shadow: var(--mm-glow-soft); }
.mm-faq summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 19px 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: 6px;
  width: 9px;
  height: 9px;
  flex: none;
  border-right: 2px solid var(--mm-accent);
  border-bottom: 2px 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;
}

/* Divider-style variant: no boxes, one rule between questions. */
.mm-faq-list { gap: 0; border-top: 1px solid var(--mm-line-2); }
.mm-faq-list details {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--mm-line-2);
  border-radius: 0;
  box-shadow: none;
}
.mm-faq-list details[open] { border-color: var(--mm-line-2); box-shadow: none; }
.mm-faq-list summary {
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.012em;
  align-items: center;
}
.mm-faq-list summary::after { margin-top: 0; width: 10px; height: 10px; border-width: 2px; }
.mm-faq-list p { padding: 0 4px 24px; font-size: 15.5px; max-width: none; }

/* ---------------------------------------------------------------- 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-recaptcha {
  min-height: 78px;
  margin-top: 2px;
}
.mm-recaptcha .g-recaptcha {
  max-width: 100%;
  overflow: hidden;
}

.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); }

@media (max-width: 420px) {
  .mm-recaptcha {
    transform: scale(.92);
    transform-origin: left top;
  }
}

.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-surface);
  padding: 26px 24px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.mm-invert .mm-metrics > div { background: rgba(255, 255, 255, .035); }
.mm-metric-v {
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--mm-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.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(16px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s 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-backtop,
  .mm-backtop-progress { transition: none; }
  .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, .mm-drawer, .mm-backtop { display: none !important; }
  body.mm { background: #fff; color: #000; }
}


/* ------------------------------------------------------ motion refresh */
@keyframes mm-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Reveal directions: default rises; left/right slide in from their side; scale settles. */
.mm-reveal[data-mm-reveal="left"]  { transform: translateX(-26px); }
.mm-reveal[data-mm-reveal="right"] { transform: translateX(26px); }
.mm-reveal[data-mm-reveal="scale"] { transform: scale(.96); }
.mm-reveal.is-in { opacity: 1; transform: none; }

/* Primary button: a single light sweep on hover. */
.mm-btn-primary { overflow: hidden; }
.mm-btn-primary::after {
  content: '';
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .34) 50%, transparent 100%);
  transform: translateX(-170%) skewX(-18deg);
  pointer-events: none;
}
.mm-btn-primary:hover::after { animation: mm-shine .85s cubic-bezier(.3, .6, .2, 1) forwards; }
@keyframes mm-shine { to { transform: translateX(330%) skewX(-18deg); } }

/* Icon tiles fill with the brand gradient when their block is hovered. */
.mm-ico { transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.mm-feature:hover .mm-ico,
.mm-benefit:hover .mm-ico,
.mm-card:hover .mm-ico,
.mm-proof-list li:hover .mm-ico {
  background: var(--mm-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--mm-glow);
}

/* Links: arrow travels with the hover. */
.mm-link svg { transition: transform .2s ease; }
.mm-link:hover svg { transform: translateX(3px); }

/* FAQ answers fade in as they open; closing is handled in site.js. */
@keyframes mm-faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mm-faq details[open] > :not(summary) { animation: mm-faq-in .35s cubic-bezier(.22, .61, .36, 1) .04s both; }

/* Parallax figures: image is oversized slightly and drifts with scroll (site.js sets --mm-py). */
[data-mm-parallax].is-parallax { overflow: hidden; }
[data-mm-parallax].is-parallax img {
  transform: translate3d(0, var(--mm-py, 0%), 0) scale(1.12);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .mm-reveal, .mm-reveal[data-mm-reveal] { opacity: 1 !important; transform: none !important; }
  .mm-hh-copy > *, .mm-hh-visual, .mm-phero-inner > *, .mm-cfeed-row.is-seed { animation: none !important; opacity: 1 !important; transform: none !important; }
  .mm-btn-primary::after { display: none; }
  [data-mm-parallax].is-parallax img { transform: none; }
}
