/* AUDIT INSIDER 작동 방식 데모 — 사이트 색(네이비·연회색)만 쓴다. 카드는 그대로, 재생 중인 카드에 진행선 */
.flow-steps > li { position: relative; padding: 18px 20px 16px; cursor: pointer; border-top-color: var(--mist); outline-offset: 3px; transition: box-shadow .25s ease; }
.flow-steps .no { font-size: 28px; }
.flow-steps h4 { margin-top: 10px; }
.flow-steps dl { padding-top: 10px; }
.flow-steps > li::before { content: ""; position: absolute; top: -3px; left: -1px; right: -1px; height: 3px; background: var(--navy); transform: scaleX(var(--p, 0)); transform-origin: left center; }
.flow-steps > li:not(.is-on) .no, .flow-steps > li:not(.is-on) h4 { color: var(--slate); }
.flow-steps > li:not(.is-on):hover { box-shadow: 0 6px 18px rgba(15, 49, 95, .12); }
.flow-steps > li:focus-visible { outline: 2px solid var(--navy); }
.flow-detail { display: none; }

.product-demo { margin-top: 24px; }
.demo-frame { overflow: hidden; border: 1px solid rgba(15, 49, 95, .16); border-radius: 8px; background: #fff; box-shadow: 0 18px 44px rgba(15, 49, 95, .12); }
.demo-stage { position: relative; aspect-ratio: 2.15 / 1; overflow: hidden; background: #fff; }
.demo-cam { position: absolute; left: 0; top: 0; width: 1280px; height: 1px; transform-origin: 0 0; }
.demo-layer { position: absolute; left: 0; top: 0; width: 1280px; height: auto; max-width: none; opacity: 0; visibility: hidden; }
.demo-layer.on { opacity: 1; visibility: visible; }
.demo-veil { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .13s linear; }
.demo-veil.on { opacity: 1; }
.demo-cursor { position: absolute; left: 0; top: 0; z-index: 3; width: 26px; height: 26px; opacity: 0; pointer-events: none; transition: opacity .2s linear; }
.demo-cursor.on { opacity: 1; }
.demo-cursor svg { display: block; width: 26px; height: 26px; filter: drop-shadow(0 2px 3px rgba(15, 49, 95, .35)); transition: transform .12s ease; transform-origin: 4px 3px; }
.demo-cursor.press svg { transform: scale(.82); }
.demo-ripple { position: absolute; left: 0; top: 0; z-index: 2; width: 0; height: 0; pointer-events: none; }
.demo-ripple::after { content: ""; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(15, 49, 95, .22); opacity: 0; }
.demo-ripple.go::after { animation: demo-ripple .5s ease-out; }
@keyframes demo-ripple { from { opacity: 1; transform: scale(.2); } to { opacity: 0; transform: scale(1); } }
.demo-ring { position: absolute; z-index: 1; border: 2px solid var(--navy); border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .25s linear; box-shadow: 0 0 0 4px rgba(15, 49, 95, .1); }
.demo-ring.on { opacity: 1; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.demo-label { font-weight: 500; color: var(--navy); }
.demo-note { margin-left: auto; }
.demo-pause { padding: 0; border: 0; background: none; color: var(--navy); font: inherit; font-weight: 500; cursor: pointer; }
.demo-pause:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .demo-stage { aspect-ratio: 16 / 10; }
}
/* 좁은 화면 — 화면이 먼저, 그 아래 번호 탭과 지금 단계의 글 */
@media (max-width: 700px) {
  #diagnosis-flow .contain { display: flex; flex-direction: column; }
  .flow-head { order: 1; }
  .product-demo { order: 2; margin-top: 4px; }
  .flow-steps { order: 3; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
  .flow-steps > li { padding: 10px 0; text-align: center; box-shadow: none; }
  .flow-steps > li .flow-body { display: none; }
  .flow-steps .no { font-size: 22px; }
  .flow-detail { order: 4; display: block; margin-top: 16px; }
  .flow-detail h4 { font-size: 19px; font-weight: 700; color: var(--ink); }
  .flow-detail p { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--text); }
  .flow-detail dl { margin: 12px 0 0; }
  .flow-detail dt { font-size: 14px; font-weight: 700; color: var(--navy); }
  .flow-detail dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; color: var(--navy); }
  .demo-stage { aspect-ratio: 5 / 4; }
  .demo-note { width: 100%; margin-left: 0; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-cam, .demo-cursor, .demo-ring { transition: none !important; }
}
