/* 구축 4단계 흐름 띠 — 진단 → 보수 가이드 → 허가·신고 → 검수
   index · service · solution 세 페이지가 같은 마크업을 쓴다 (PRODUCT.md 원칙 3).
   색은 boda-theme.css 토큰만 사용 → 다크/라이트 자동 대응. */

.flow-strip { margin-top: 48px; padding: 32px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 14px; }
.flow-strip__head { margin-bottom: 24px; }
.flow-strip__title { font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--text-primary); margin: 0 0 8px; }
.flow-strip__desc { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin: 0; }

.flow-strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: flow; }
.flow-strip__item { position: relative; counter-increment: flow; }
/* 단계 사이 연결선 (점 중심 높이) */
.flow-strip__item::before { content: ''; position: absolute; top: 15px; left: 32px; right: 0; height: 1px; background: var(--border-strong); }
.flow-strip__item:last-child::before { display: none; }

.flow-strip__link { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 0 20px 4px 0; text-decoration: none; color: inherit; border-radius: 8px; }
.flow-strip__link:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.flow-strip__dot { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9999px; background: var(--bg-card); border: 1px solid var(--border-strong); font-size: 14px; font-weight: 700; color: var(--brand); }
.flow-strip__dot::before { content: counter(flow); }
.flow-strip__name { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--text-primary); margin-top: 4px; }
.flow-strip__text { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.flow-strip__go { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; color: var(--brand); }
.flow-strip__link:hover .flow-strip__name { color: var(--brand); }
.flow-strip__link:hover .flow-strip__go { text-decoration: underline; text-underline-offset: 4px; }

/* 지금 보고 있는 단계 */
.flow-strip__item.is-here .flow-strip__dot { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
[data-theme="light"] .flow-strip__item.is-here .flow-strip__dot { background: var(--brand); border-color: var(--brand); }
.flow-strip__here { display: inline-block; margin-left: 8px; padding: 0 8px; font-size: 12px; font-weight: 600; line-height: 22px; vertical-align: 2px; border-radius: 9999px; color: var(--text-primary); background: var(--brand-glow); border: 1px solid var(--border-strong); }

@media (max-width: 900px) {
  .flow-strip { padding: 24px 20px; margin-top: 40px; }
  .flow-strip__list { grid-template-columns: 1fr; gap: 0; }
  /* 세로 배치: 연결선을 점 아래로 */
  .flow-strip__item::before { top: 32px; bottom: 0; left: 15px; right: auto; width: 1px; height: auto; }
  .flow-strip__link { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; row-gap: 4px; padding: 0 0 20px; }
  .flow-strip__item:last-child .flow-strip__link { padding-bottom: 0; }
  .flow-strip__dot { grid-row: 1 / span 3; }
  .flow-strip__name { margin-top: 4px; }
  .flow-strip__go { padding-top: 0; }
}
