/* "See how a match happens" section and its motion figure (Figma 781:9274, second draft).
   The figure is a fixed 596×616 stage scaled to its column; match-demo.js drives it.
   The final frame matches the Figma figure: two bubbles, the answer, the badge, two cards, the caption. */
.match { background: var(--surface); border-top: 1px solid var(--border); }
.match-grid { display: grid; grid-template-columns: fit-content(400px) minmax(0, 1fr); gap: 48px; align-items: center; }
.match-copy { display: flex; flex-direction: column; max-width: 400px; }
.match-copy .body { margin-top: 16px; }
.match-copy .body.first { margin-top: 24px; }
.match-copy .try { margin-top: 24px; align-self: flex-start; }
.steps-line { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps-line .num { margin: 0; font-size: 14px; line-height: 21px; color: var(--primary); }
.steps-line h3 { margin: 8px 0 0; font-size: 16px; line-height: 24px; font-weight: 700; }
.steps-line p { margin: 8px 0 0; font-size: 14px; line-height: 21px; color: var(--fg-2); }
@media (max-width: 900px) {
  .match-grid { grid-template-columns: minmax(0, 1fr); }
  .match-copy { max-width: none; }
  .steps-line { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

.md-wrap { position: relative; width: 100%; margin: 0; aspect-ratio: 596 / 616; }
.md-stage { position: absolute; left: 0; top: 0; width: 596px; height: 616px; transform-origin: 0 0; transform: scale(var(--s, 1)); background: var(--background); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; font-size: 14px; line-height: 21px; letter-spacing: -0.02em; color: var(--fg); }
.md-layer { position: absolute; inset: 0; }
.md-abs { position: absolute; }
.md-ex { left: 24px; top: 18px; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.md-comp { left: 24px; top: 544px; width: 548px; height: 48px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; display: flex; align-items: center; padding: 0 6px 0 16px; gap: 8px; }
.md-comp-scroll { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; display: flex; align-items: center; }
.md-ph { color: var(--fg-3); }
.md-caret { display: inline-block; width: 2px; height: 18px; background: var(--primary); margin-left: 1px; vertical-align: middle; }
.md-send { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: #fff; flex: none; }
.md-send svg { width: 18px; height: 18px; }
.md-b1 { background: var(--primary); color: #fff; overflow: hidden; }
.md-b1t { position: absolute; left: 16px; top: 16px; width: 450px; }
.md-b1t mark { color: inherit; background-image: linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,.3)); background-repeat: no-repeat; background-size: 0% 100%; background-color: transparent; border-radius: 4px; padding: 1px 2px; margin: 0 -2px; }
.md-heard { right: 24px; display: flex; gap: 8px; justify-content: flex-end; }
.md-hc { font-size: 12px; line-height: 16px; font-weight: 700; background: var(--sub-lavender); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.md-typing { left: 24px; width: 64px; height: 53px; background: var(--surface); border-radius: 16px 16px 16px 8px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.md-typing i { width: 7px; height: 7px; border-radius: 99px; background: var(--fg-3); display: block; }
.md-b2 { left: 24px; width: 482px; background: var(--surface); border-radius: 16px 16px 16px 8px; padding: 16px; white-space: nowrap; transform-origin: 0 100%; }
.md-q { height: 44px; display: flex; align-items: center; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 22px; background: var(--surface); white-space: nowrap; }
.md-dot { width: 8px; height: 8px; border-radius: 99px; }
.md-filters { left: 0; width: 596px; display: flex; justify-content: center; gap: 8px; }
.md-f { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap; }
.md-ck { display: inline-grid; place-items: center; width: 16px; height: 16px; overflow: hidden; color: var(--primary); flex: none; }
.md-ck svg { width: 16px; height: 16px; flex: none; }
.md-badge { left: 24px; height: 29px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--secondary); color: var(--on-secondary); transform-origin: 0 50%; white-space: nowrap; }
.md-card { overflow: hidden; background: var(--surface); border-radius: 8px; }
.md-cin { position: absolute; left: 0; top: 0; width: 268px; height: 230px; padding: 12px; display: flex; flex-direction: column; }
.md-img { display: block; height: 144px; border-radius: 8px; overflow: hidden; background: var(--background); flex: none; }
.md-img img { width: 100%; height: 100%; object-fit: cover; }
.md-ct { padding-top: 12px; font-size: 16px; line-height: 24px; font-weight: 700; white-space: nowrap; }
.md-cs { padding-top: 4px; color: var(--fg-2); white-space: nowrap; }
.md-capline { left: 24px; top: 555px; width: 548px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--fg-2); }
.md-toggle { right: 14px; top: 12px; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.9); color: var(--fg); display: grid; place-items: center; cursor: pointer; padding: 0; }
.md-toggle:hover { background: var(--sub-sky); }
.md-toggle svg { width: 14px; height: 14px; }
.md-toggle .play { display: none; }
.md-toggle[aria-pressed="true"] .play { display: block; }
.md-toggle[aria-pressed="true"] .pause { display: none; }
@media (prefers-reduced-motion: reduce) { .md-toggle { display: none; } }
