/* ===== 진행 과정(PROCESS) — 배관을 따라 물이 흐르며 단계가 차례로 켜지는 영역 (hx-flow) =====
   - 스크립트(hx-flow.js)가 없거나 '동작 줄이기' 설정이면 모든 단계가 켜진 상태로 보입니다.
   - 데스크톱: 가로 배관, 한 번 재생 / 1000px 이하: 세로 배관, 스크롤에 맞춰 채워짐 */
.hx-flow{--fl-node:64px;--fl-gap:24px;--fl-rowgap:38px;--fl-blue:#2563EB;--fl-cyan:#06B6D4;--fl-navy:#0B1A33;--fl-ink:#56627A;
  position:relative;max-width:1120px;margin:56px auto 0;padding:0}
.hx-flow *,.hx-flow *::before,.hx-flow *::after{box-sizing:border-box}
.hx-flow-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:var(--fl-gap);margin:0;padding:0;list-style:none}

/* 단계 */
.hx-step{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;--f:1}
.hx-node{position:relative;z-index:2;display:grid;place-items:center;width:var(--fl-node);height:var(--fl-node);border-radius:50%;
  color:#fff;background:linear-gradient(145deg,#3B82F6,#2563EB);box-shadow:0 12px 26px rgba(37,99,235,.28),inset 0 0 0 1px rgba(255,255,255,.25);
  transition:background .45s,color .45s,box-shadow .45s,border-color .45s}
.hx-node svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hx-no{position:absolute;z-index:3;top:-4px;right:-4px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;
  background:var(--fl-navy);color:#fff;font-size:11.5px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.hx-body{margin-top:22px;transition:opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1)}
.hx-step h4{margin:0;font-size:18px;font-weight:700;letter-spacing:-.02em;color:var(--fl-navy);word-break:keep-all}
.hx-step p{margin:10px auto 0;max-width:215px;font-size:14.5px;line-height:1.7;color:var(--fl-ink);word-break:keep-all}
.hx-fchip{display:inline-flex;align-items:center;gap:6px;margin-top:14px;padding:6px 12px 6px 10px;border-radius:999px;
  background:rgba(6,182,212,.12);color:#0B6C82;font-size:12.5px;font-weight:600;letter-spacing:-.01em;line-height:1.2;word-break:keep-all}
.hx-fchip::before{content:"";flex:none;width:13px;height:13px;border-radius:50%;background:#06B6D4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.4 8.3 2.4 2.4 4.8-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat}

/* 배관(단계 사이 구간): 바탕 + 물 */
.hx-step:not(:last-child)::before,.hx-step:not(:last-child)::after{content:"";position:absolute;z-index:1;top:calc(var(--fl-node)/2 - 5px);left:50%;
  width:calc(100% + var(--fl-gap));height:10px;border-radius:5px}
.hx-step:not(:last-child)::before{background:rgba(37,99,235,.11);box-shadow:inset 0 1px 2px rgba(11,26,51,.08)}
.hx-step:not(:last-child)::after{background:linear-gradient(90deg,#06B6D4,#2563EB);transform-origin:0 50%;transform:scaleX(var(--f))}

/* 흐르는 물방울 (스크립트가 위치를 옮김) */
.hx-flow-drop{position:absolute;z-index:4;left:0;top:0;width:20px;height:25px;margin:-12px 0 0 -10px;pointer-events:none;opacity:1;
  filter:drop-shadow(0 4px 8px rgba(37,99,235,.35))}
.hx-flow-drop path{fill:#2563EB;stroke:#fff;stroke-width:2.4;paint-order:stroke}
.hx-flow:not(.is-armed) .hx-flow-drop{display:none}

/* 스크립트가 켜졌을 때만: 아직 도착하지 않은 단계는 꺼진 상태 */
.hx-flow.is-armed .hx-step:not(.on){--f:0}
.hx-flow.is-armed .hx-step:not(.on) .hx-node{color:#8DA0C4;background:#fff;box-shadow:0 6px 16px rgba(11,26,51,.06),inset 0 0 0 2px #D5DFF3}
.hx-flow.is-armed .hx-step:not(.on) .hx-body{opacity:0;transform:translateY(14px)}
.hx-step.on .hx-node{animation:hx-fl-pop .6s cubic-bezier(.2,.8,.2,1)}
@keyframes hx-fl-pop{0%{transform:scale(.86)}55%{transform:scale(1.08)}100%{transform:scale(1)}}
.hx-step.on .hx-node::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 0 rgba(37,99,235,.38);animation:hx-fl-ring 1s ease-out}
@keyframes hx-fl-ring{to{box-shadow:0 0 0 20px rgba(37,99,235,0)}}

/* 모바일: 세로 배관 */
@media (max-width:1000px){
  .hx-flow{--fl-node:56px;max-width:520px;margin-top:40px}
  .hx-flow-steps{grid-template-columns:minmax(0,1fr);row-gap:var(--fl-rowgap)}
  .hx-step{display:grid;grid-template-columns:var(--fl-node) minmax(0,1fr);column-gap:18px;align-items:start;text-align:left}
  .hx-node{grid-column:1;grid-row:1}
  .hx-body{grid-column:2;grid-row:1;margin-top:2px}
  .hx-step p{margin:8px 0 0;max-width:none;font-size:14px}
  .hx-step:not(:last-child)::before,.hx-step:not(:last-child)::after{top:calc(var(--fl-node)/2);left:calc(var(--fl-node)/2 - 5px);
    width:10px;height:calc(100% + var(--fl-rowgap))}
  .hx-step:not(:last-child)::after{background:linear-gradient(180deg,#06B6D4,#2563EB);transform-origin:50% 0;transform:scaleY(var(--f))}
  .hx-node svg{width:25px;height:25px}
}
@media (prefers-reduced-motion:reduce){
  .hx-flow *,.hx-flow *::before,.hx-flow *::after{animation:none!important;transition:none!important}
}

/* 진행 과정: 단계마다 문구 길이가 달라도 칩이 같은 높이에 정렬되게 (hx-flow.css 맨 끝에 추가) */
@media (min-width:1001px){
  .hx-body{display:flex;flex:1;flex-direction:column;align-items:center;width:100%}
  .hx-step p{width:100%;margin-bottom:14px}
  .hx-fchip{margin-top:auto}
}
