/* ------------------------------------------------------------------
   Method section: Clear Strategy · Predictable Sales · Loyal Customers.
   A cream band (copy + animated Venn, drawn by js/method.js) followed by
   the cream 3x3. Ported from the approved mock
   (~/dev/ms-home-mocks/mm-graphic, tab B2). Everything is scoped to .mm.
   ------------------------------------------------------------------ */

.mm {
  --mm-bg: var(--band);      /* warm band, matches the comparison section (2026-10-01) */
  --mm-text: var(--ink);
  --mm-text-2: #4B5563;
  --mm-ring-1: #4B5F71;    /* slate navy: circles + ring */
  --mm-ring-2: #586D80;    /* lighter again: the overlaps */
  --mm-gold: #D4B896;
  --mm-ink: #1F2D3A;       /* text on gold */
  --mm-on-navy: #F3F5F7;
  --mm-on-navy-2: #C3CEDA;
}

/* ---------- cream band ---------- */
.mm-band { background: var(--mm-bg); color: var(--mm-text); padding: clamp(42px, 5.5vw, 67px) 0; }
.mm-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 63px); align-items: center; }
.mm-copy { min-width: 0; }
.mm-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #7E6440; }
.mm-h { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(23px, 2.7vw, 33px); line-height: 1.15; letter-spacing: -.01em; color: var(--mm-text); }
.mm-h span { display: block; white-space: nowrap; }
.mm-steps { list-style: none; margin: 25px 0 0; padding: 0; display: grid; gap: 6px; }
.mm-step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 12px 14px; border-radius: 12px; cursor: pointer; transition: background .35s ease; outline: none; }
.mm-step:focus-visible { box-shadow: 0 0 0 2px var(--mm-ink); }
.mm-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--mm-ring-1); color: var(--mm-on-navy); transition: background .35s, color .35s; }
.mm-step b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--mm-text); }
.mm-step p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--mm-text-2); }
.mm-step.on { background: rgba(61, 80, 96, .08); }
.mm-step.on .mm-n { background: var(--mm-gold); color: var(--mm-ink); }

/* ---------- the Venn ---------- */
.mm-art { min-width: 0; display: grid; place-items: center; }
.mm-fig { width: 100%; max-width: 458px; height: auto; overflow: visible; }
.mm-arc { font-family: var(--sans); font-weight: 600; text-transform: uppercase; }
.mm-seg .mm-band-path { transition: stroke .5s ease; }
.mm-seg text { transition: fill .5s ease; pointer-events: none; }
.mm-seg.on .mm-band-path { stroke: var(--mm-gold); }
.mm-seg.on text { fill: var(--mm-ink); }
.mm-vc { transition: fill .5s ease; cursor: pointer; }
.mm-vc.on { fill: #667B8F; }
.mm-vo { opacity: 0; transition: opacity .5s ease; }
.mm-vo.on { opacity: 1; }

/* the Venn grows in once the band scrolls into view */
@media (prefers-reduced-motion: no-preference) {
  .mm:not(.mm-in) .mm-grow { opacity: 0; }
  .mm.mm-in .mm-grow { transform-box: fill-box; transform-origin: center; animation: mm-grow .9s cubic-bezier(.2, .8, .2, 1) both; }
  .mm.mm-in .mm-g2 { animation-delay: .15s; }
  .mm.mm-in .mm-g3 { animation-delay: .3s; }
  .mm.mm-in .mm-g4 { animation-delay: .45s; }
  @keyframes mm-grow { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
}

/* ---------- cream 3x3 ---------- */
.mm-nine { background: var(--canvas); padding: clamp(49px, 7vw, 84px) 0; }
.mm-nine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(25px, 4vw, 49px); margin-top: clamp(21px, 4vw, 42px); }
.mm-col { min-width: 0; }
.mm-col-head { position: relative; display: grid; place-items: center; height: 74px; margin-bottom: 25px; }
.mm-col-head svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mm-col-head h3 { position: relative; margin: 0; font: 700 23px/1 var(--serif); color: var(--ink); }
.mm-fromto { display: none; margin: -12px 0 14px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #7E6440; }
.mm-item { display: grid; grid-template-columns: 39px 1fr; gap: 14px; align-items: start; padding: 12px 0; }
.mm-item + .mm-item { border-top: 1px solid var(--line); }
.mm-item svg { width: 32px; height: 32px; margin-top: 2px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mm-item p { margin: 0; font-size: 14px; line-height: 1.6; color: #4B5563; }
.mm-item b { color: #2F4050; font-weight: 600; }

@media (max-width: 900px) {
  .mm-grid { grid-template-columns: 1fr; }
  .mm-art { order: -1; }
  .mm-fig { max-width: 370px; }
  .mm-nine-grid { grid-template-columns: 1fr; max-width: 458px; margin-inline: auto; }
}
/* phone: the diagram's small print is repeated in the list and the 3x3, so drop it and enlarge the rest */
@media (max-width: 600px) {
  .mm-fig { width: calc(100% + 28px); max-width: none; margin-inline: -14px; }
  .mm-h span { white-space: normal; }
  .mm-fig .mm-sub { display: none; }
  .mm-fromto { display: block; }
  .mm-fig .mm-arc { font-size: 18px; letter-spacing: 1.5px; }
  .mm-fig .mm-pair { font-size: 18px; }
}
