.pairing-guide { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(18px, 3vw, 40px); margin: 0 auto 32px; max-width: 1020px; }
.pairing-copy h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -.04em; }
.pairing-copy ol { padding-left: 1.5em; margin: 14px 0; }
.pairing-copy li { padding-left: .3em; margin-block: 6px; line-height: 1.45; }
.pairing-copy li::marker { color: #435991; font-weight: 700; }
@media (max-width: 700px) { .pairing-guide { grid-template-columns: 1fr; } }
.pairing-demo { min-width: 0; margin: 0; border: 1px solid #c8d3e6; border-radius: 18px; overflow: hidden; background: white; color: #172941; }
.pairing-demo > svg { width: 100%; height: auto; background: #e8eef8; font: 600 15px system-ui, sans-serif; }
.pairing-demo svg .scene { display: none; }
.pairing-demo[data-step="1"] .scene-1, .pairing-demo[data-step="2"] .scene-2, .pairing-demo[data-step="3"] .scene-3, .pairing-demo[data-step="4"] .scene-4 { display: inline; }
.pairing-demo figcaption, .demo-controls { padding: 14px 18px; }
.pairing-demo figcaption p { margin: 0; line-height: 1.5; }
.pairing-demo figcaption strong { display: block; color: #243f72; }
.demo-controls:not([hidden]) { display: flex; justify-content: space-between; gap: 8px; padding-top: 0; }
.demo-controls button { min-height: 44px; padding: 6px 12px; color: #20365a; background: #edf2fb; border: 1px solid #cfdaeb; border-radius: 10px; font: inherit; cursor: pointer; }
.demo-controls button:last-child { background: #223b64; color: white; }
.demo-controls button:disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  .pairing-demo .scene { animation: scene-enter .45s ease-out both; }
  .pairing-demo .scan { animation: scan-code 1.45s ease-in-out 2 alternate; }
  .pairing-demo .wave { stroke-dasharray: 160; animation: draw-signal 1.25s ease-out 2; }
  .pairing-demo .report-line { transform-box: fill-box; transform-origin: left; animation: insert-text .65s ease-out both; }
  @keyframes scene-enter { from { opacity: 0; transform: translateY(3px); } }
  @keyframes scan-code { to { transform: translateY(42px); } }
  @keyframes draw-signal { from { stroke-dashoffset: 160; } }
  @keyframes insert-text { from { transform: scaleX(0); } }
}
