/* The comparison sits inside the hero's moving blue ground. */
.mm-comparison, .mm-companies, .mm-process {
  --mm-line: rgb(255 255 255 / 10%);
  --mm-muted: rgb(255 255 255 / 55%);
  --mm-accent: var(--accent, #388cff);
  color: #fff;
}
.mm-container { width: min(1130px, calc(100% - 80px)); margin-inline: auto; }
.mm-comparison { position: relative; padding: 140px 0 100px; }
.mm-comparison-frame {
  position: relative; isolation: isolate; width: min(1360px, calc(100% - 80px));
  margin: auto; overflow: hidden; background: var(--panel, #0d0d0d); border-radius: 32px;
}
.mm-comparison-content {
  position: relative; display: flex; min-height: 756px; padding: 40px 20px;
  flex-direction: column; justify-content: center; align-items: center; gap: 40px;
}
.mm-comparison-intro { width: 100%; text-align: center; }
.mm-comparison-intro h2, .mm-process-intro h2 {
  margin: 0; font-size: 30px; line-height: 1.1; font-weight: 400; letter-spacing: -.02em;
}
.mm-comparison-intro h2 span, .mm-process-intro h2 span { display: block; }
.mm-comparison-intro h2 span { color: var(--mm-accent); }
.mm-comparison-intro p {
  margin: 24px auto 0; width: min(660px, calc(100% - 40px));
  color: rgb(255 255 255 / 80%); font-size: 14px; line-height: 1.26; text-wrap: balance;
}
.mm-globe {
  position: absolute; inset: auto 0 0; width: 100%; height: 72%; pointer-events: none;
  mask-image: linear-gradient(0deg, #000 38%, transparent 76%);
}
.mm-selector { display: flex; padding: 4px; margin: 0; min-width: 0; border: 1px solid var(--mm-line); border-radius: 100px; }
.mm-selector label { position: relative; cursor: pointer; }
.mm-selector input, .mm-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.mm-selector label span {
  display: block; padding: 9px 20px; border-radius: 100px; color: white; font-size: 14px;
  line-height: 1.3; transition: background .15s;
}
.mm-selector label:hover span { background: rgb(255 255 255 / 5%); }
.mm-selector input:checked + span { background: var(--mm-line); }
.mm-selector input:focus-visible + span { outline: 2px solid white; outline-offset: 2px; }
.mm-panels { width: min(100%, 920px); min-height: 340px; }
.mm-panel {
  display: flex; flex-direction: column; gap: 32px; padding: 32px 40px;
  border-radius: 24px; background: rgb(255 255 255 / 5%);
}
/* Native radios select a complete, readable panel even before scripts load. */
.mm-comparison-content:has(input:checked) .mm-panel { display: none; }
.mm-comparison-content:has(input[value="access"]:checked) #mm-case-access,
.mm-comparison-content:has(input[value="signin"]:checked) #mm-case-signin,
.mm-comparison-content:has(input[value="rules"]:checked) #mm-case-rules,
.mm-comparison-content:has(input[value="surface"]:checked) #mm-case-surface,
.mm-comparison-content:has(input[value="simulation"]:checked) #mm-case-simulation { display: flex; }
.mm-overline {
  margin: 0; color: var(--mm-muted); font-size: 14px;
  line-height: 1.3; font-weight: 400;
}
.mm-compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mm-compare-cols .mm-overline { display: block; margin-bottom: 12px; }
.mm-compare-cols > div + div { border-left: 1px solid var(--mm-line); padding-left: 40px; }
.mm-compare-cols > div + div .mm-overline { color: var(--mm-accent); }
.mm-transcript { margin: 0; min-height: 3lh; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; font-weight: 400; }
.mm-compare-cols > div:first-child .mm-transcript { color: var(--mm-muted); }
.mm-word { white-space: nowrap; }
.mm-panel-base { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-top: 1px solid var(--mm-line); padding-top: 24px; }
.mm-panel-base p { margin: 0; max-width: 620px; color: rgb(255 255 255 / 80%); font-size: 14px; line-height: 1.26; }
.mm-panel-base .mm-overline { margin-right: 10px; }
.mm-panel-base a { flex-shrink: 0; color: var(--mm-muted); text-decoration: underline; text-underline-offset: .3em; font-size: 12px; }
.mm-panel-base a:hover { color: white; }
.mm-companies { position: relative; padding: 100px 0 60px; background: #000; }
.mm-companies .mm-container { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.mm-companies h2, .mm-companies h2 span { display: flex; align-items: center; gap: 32px; }
.mm-companies h2 { width: 100%; margin: 0; font-size: 18px; line-height: 1.2; font-weight: 400; letter-spacing: normal; }
.mm-companies h2 span { flex: 1; color: var(--mm-muted); font-size: 14px; }
.mm-companies h2 span::before { flex: 1; content: ''; height: 1px; background: var(--mm-line); }
.mm-brands { width: 100%; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; }
.mm-brands li { position: relative; height: 120px; display: grid; place-items: center; background: #000; }
.mm-brands li:nth-child(n+6) { border-top: 1px solid var(--mm-line); }
.mm-brands li:nth-child(11) { grid-column: 2; }
.mm-brands li:not(:nth-child(5n+1)) { border-left: 1px solid var(--mm-line); }
.mm-brands img { width: auto; height: 36px; max-width: 67%; object-fit: contain; opacity: .72; filter: brightness(0) invert(1); }
.mm-brands li:first-child img, .mm-brands li:nth-child(4) img, .mm-brands li:nth-child(6) img { height: 28px; }
.mm-brands a {
  position: absolute; inset: 0; display: grid; place-items: center;
  transition: background .3s cubic-bezier(.4,0,.2,1);
}
.mm-brands a img { opacity: .94; }
.mm-brands a:hover, .mm-brands a:focus-visible { background: rgb(255 255 255 / 6%); }
.mm-brands a::after { content: ''; position: absolute; right: 0; top: 0; border-top: 12px solid white; border-left: 12px solid transparent; }
.mm-discuss {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px;
  border-radius: 100px; background: white; color: black; padding: 16px 24px; text-decoration: none;
  font-size: 18px; line-height: 1.2; transition: transform .4s cubic-bezier(.19,1,.22,1);
}
.mm-discuss span { display: inline-block; transition: transform .4s cubic-bezier(.19,1,.22,1); }
.mm-discuss:hover { transform: scale(1.025); }
.mm-discuss:hover span { transform: translateX(3px); }

.mm-process { background: black; position: relative; }
.mm-sticky { position: relative; }
.mm-process-intro { position: relative; padding-top: 140px; }
.mm-process-intro header { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.mm-process-intro h2 span { color: var(--mm-muted); }
.mm-process-intro p { margin: 0; width: min(440px, 40%); color: white; font-size: 18px; line-height: 1.2; }
.mm-scene { position: relative; overflow: hidden; background: #1a1a1a; border-radius: 32px; }
.mm-scene canvas { display: block; width: 100%; height: 100%; }
.mm-hud { margin-inline: auto; padding: 40px 0 80px; width: min(1130px, calc(100% - 80px)); }
.mm-step-nav, .mm-indicators { display: none; }
.mm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mm-step {
  display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px;
  background: rgb(255 255 255 / 6%); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.mm-step-top { display: flex; align-items: center; justify-content: space-between; }
.mm-step-top svg { width: 24px; height: 24px; }
.mm-step-top span { color: var(--mm-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.mm-step h3 { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
.mm-step p { margin: 0; color: var(--mm-muted); font-size: 14px; line-height: 1.26; }
.mm-process:not(.mm-interactive) .mm-scene { display: none; }
.mm-interactive { --mm-gutter: 40px; height: 500svh; }
.mm-interactive .mm-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.mm-interactive .mm-process-intro { pointer-events: none; }
.mm-interactive .mm-scene { position: absolute; inset: var(--mm-gutter); will-change: clip-path; }
.mm-interactive .mm-hud {
  position: absolute; bottom: calc(40px + var(--mm-gutter)); left: 50%; width: auto;
  padding: 0; margin: 0; transform: translateX(-50%); opacity: 0; visibility: hidden; transition: opacity .3s;
}
.mm-interactive .mm-hud.mm-active { opacity: 1; visibility: visible; }
.mm-interactive .mm-control-row { display: flex; align-items: center; gap: 16px; }
.mm-interactive .mm-step-nav {
  display: grid; place-items: center; padding: 0; border: 0; font: inherit; color: white;
  font-size: 20px; width: 44px; height: 44px; border-radius: 100px; flex: 0 0 auto;
  cursor: pointer; background: rgb(255 255 255 / 7%); backdrop-filter: blur(20px); transition: background .3s, opacity .3s;
}
.mm-interactive .mm-step-nav:disabled { opacity: .25; cursor: default; }
.mm-interactive .mm-step-nav:not(:disabled):hover { background: rgb(255 255 255 / 14%); }
.mm-interactive .mm-steps { display: grid; grid-template-columns: 1fr; width: calc(min(100vw, 1440px) / 12 * 5 - 45px); }
.mm-interactive .mm-step {
  grid-area: 1/1; opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.mm-interactive .mm-step.mm-active { transform: none; opacity: 1; transition: opacity .45s .15s, transform .45s .15s; }
.mm-interactive .mm-indicators { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.mm-indicators i { width: 5px; height: 5px; border-radius: 50%; background: rgb(255 255 255 / 20%); }
.mm-indicators i.mm-active { background: white; }

@media (max-width: 1023px) {
  .mm-comparison { padding: 24px 0 0; }
  .mm-comparison-content { padding: 20px; }
  .mm-panels { min-height: 360px; }
  .mm-panel { padding: 24px; gap: 24px; }
  .mm-compare-cols { grid-template-columns: 1fr; gap: 24px; }
  .mm-compare-cols > div + div { padding: 24px 0 0; border-left: none; border-top: 1px solid var(--mm-line); }
  .mm-panel-base { flex-direction: column; gap: 16px; }
}
@media (max-width: 767px) {
  .mm-container { width: calc(100% - 40px); }
  .mm-comparison-frame { border-radius: 0; width: 100%; }
  .mm-comparison-content { min-height: 100svh; }
  .mm-globe { display: none; }
  .mm-selector { flex-wrap: wrap; justify-content: center; gap: 8px; border: 0; border-radius: 0; padding: 0; }
  .mm-selector label span { padding: 0 16px; min-height: 44px; border: 1px solid var(--mm-line); display: grid; place-items: center; }
  .mm-panel-base a { display: inline-flex; align-items: center; min-height: 44px; }
  .mm-companies { padding: 64px 0 32px; }
  .mm-companies .mm-container { gap: 40px; }
  .mm-companies h2, .mm-companies h2 span { gap: 20px; }
  .mm-companies h2 { font-size: 14px; }
  .mm-brands { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--mm-line); }
  .mm-brands li { height: 96px; }
  .mm-brands li:nth-child(n) { border: 0; grid-column: auto; }
  .mm-brands li:last-child { grid-column: span 2; }
  .mm-brands img { height: 28px; }
  .mm-brands li:first-child img, .mm-brands li:nth-child(4) img, .mm-brands li:nth-child(6) img { height: 23px; }
  .mm-discuss { margin-top: 8px; }
  .mm-process-intro { padding-top: 80px; }
  .mm-process-intro header { flex-direction: column; gap: 24px; }
  .mm-process-intro p { width: 100%; }
  .mm-steps { grid-template-columns: 1fr; }
  .mm-hud { width: calc(100% - 40px); }
  .mm-interactive { --mm-gutter: 0px; }
  .mm-interactive .mm-hud { width: calc(100% - 40px); bottom: calc(24px + env(safe-area-inset-bottom,0px)); }
  .mm-interactive .mm-control-row { gap: 10px; }
  .mm-interactive .mm-steps { width: auto; min-width: 0; flex: 1; }
}
@media (max-width: 479px) {
  .mm-selector { max-width:345px; }
  .mm-selector label:nth-child(-n+2) span { min-width:106px; }
  .mm-selector label:nth-child(3) span { min-width:140px; }
  .mm-selector label:last-child span { min-width:150px; }
  .mm-comparison-content { gap: 24px; }
  .mm-comparison-intro p { margin-top: 16px; }
  .mm-panel { padding: 20px; gap: 16px; }
  .mm-compare-cols { gap: 16px; }
  .mm-compare-cols > div + div { padding-top: 16px; }
  .mm-transcript { font-size: 18px; }
  .mm-panel-base { gap: 12px; padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .mm-comparison *, .mm-companies *, .mm-process * { animation: none !important; transition: none !important; }
}
.mm-panels { position: relative; }
