/* 흰 히어로의 문법을 그대로 잇는 후반 (2026-11-19 v3)
   - 흰 바탕, 가운데 정렬, 얇은 Pretendard
   - 글자 크기 네 단계: 표시(동사·핵심 문장) / 제목 / 본문 / 주석
   - 파랑은 해결을 뜻하는 곳에만: 줄 긋기, 남는 '넣고', '이제 …' 문장 */
.flow {
  --f-display: clamp(36px, 4.8vw, 68px);
  --f-title: clamp(30px, 3.5vw, 50px);
  --f-body: clamp(17px, 1.3vw, 20px);
  --f-small: 15px;
  --f-ink: #1d2330;
  --f-mute: #5b6678;
  --f-blue: #2469d4;
  --f-line: #dfe4ec;
  background: #fff;
  color: var(--f-ink);
  text-align: center;
  word-break: keep-all;
}
.flow-scene {
  padding: clamp(96px, 12vw, 180px) var(--detail-gutter) 0;
}
.flow-scene:last-child { padding-bottom: clamp(96px, 12vw, 180px); }
.flow-kicker { margin: 0 0 14px; color: var(--f-mute); font-size: var(--f-small); font-weight: 450; letter-spacing: -.01em; }
.flow-title, .flow-display {
  margin: 0 auto;
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1.2;
}
.flow-title { font-size: var(--f-title); }
.flow-display { font-size: var(--f-display); }
.flow-body {
  max-width: 34em;
  margin: clamp(18px, 2vw, 26px) auto 0;
  color: var(--f-ink);
  font-size: var(--f-body);
  font-weight: 400;
  line-height: 1.65;
}
.flow-answer {
  margin: clamp(22px, 2.4vw, 32px) auto 0;
  color: var(--f-blue);
  font-size: var(--f-body);
  font-weight: 550;
  line-height: 1.5;
}
.flow-note { max-width: 40em; margin: 22px auto 0; color: var(--f-mute); font-size: var(--f-small); line-height: 1.65; }

/* 일곱 동사: 히어로의 더미를 같은 축으로 다시 세운다 */
.flow-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(14px, 1.6vw, 24px);
  width: min(100%, 640px);
  margin: clamp(44px, 5vw, 72px) auto 0;
  padding: 0;
  list-style: none;
}
.flow-stack li { display: contents; }
.flow-stack b {
  position: relative;
  justify-self: end;
  font-size: var(--f-display);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: 1.22;
  transition: color .4s ease;
  transition-delay: calc(var(--i) * 90ms + 200ms);
}
.flow-stack b sup { position: absolute; top: .1em; right: -.42em; font-size: .3em; color: var(--f-mute); }
.flow-stack b::after {
  content: '';
  position: absolute;
  left: -5%; right: -5%; top: 56%;
  height: max(3px, .055em);
  background: var(--f-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s cubic-bezier(.3, .7, .2, 1);
  transition-delay: calc(var(--i) * 90ms);
}
.flow-stack span {
  align-self: center;
  justify-self: start;
  padding-top: .2em;
  color: var(--f-mute);
  font-size: var(--f-small);
  text-align: left;
}
.flow-stack.is-done li[data-gone] b { color: #a3adbd; }
.flow-stack.is-done li[data-gone] b::after { transform: scaleX(1); }
.flow-stack .flow-keep b { color: var(--f-blue); font-weight: 450; }
.flow-stack .flow-keep span { color: var(--f-blue); }

/* 몸에 남는 두 장면: 같은 문법, 사진과 큰 문장만 */
.flow-photo { width: min(100%, 980px); margin: 0 auto clamp(36px, 4vw, 56px); }
.flow-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #eef0f3; }

/* 쓰던 용지 비교 */
.flow-compare {
  width: min(100%, 760px);
  margin: clamp(36px, 4vw, 56px) auto 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--f-body);
  line-height: 1.5;
}
.flow-compare th, .flow-compare td { padding: 16px 10px; border-bottom: 1px solid var(--f-line); vertical-align: top; }
.flow-compare thead th { border-bottom-color: var(--f-ink); font-weight: 600; }
.flow-compare tbody th { width: 26%; color: var(--f-mute); font-size: var(--f-small); font-weight: 450; padding-top: 19px; }
.flow-compare tbody td { font-weight: 400; }
.flow-compare tbody tr:last-child td:last-child { color: var(--f-blue); font-weight: 550; }

/* 설치 전후 */
.flow-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.4vw, 20px);
  width: min(100%, 1120px);
  margin: clamp(36px, 4vw, 56px) auto 0;
}
.flow-pair figure { margin: 0; min-width: 0; }
.flow-pair img { display: block; width: 100%; height: auto; }
.flow-pair figcaption { margin-top: 10px; color: var(--f-mute); font-size: var(--f-small); }
.flow-pair figure:last-child figcaption { color: var(--f-blue); font-weight: 550; }

/* 남는 일 */
.flow-product { width: min(56vw, 260px); margin: clamp(32px, 4vw, 52px) auto 0; }
.flow-product img { display: block; width: 100%; height: auto; }
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 40px);
  width: min(100%, 980px);
  margin: clamp(32px, 4vw, 52px) auto 0;
  padding: 0;
  list-style: none;
  font-size: var(--f-body);
  line-height: 1.6;
}
.flow-steps b { display: block; margin-bottom: 6px; color: var(--f-blue); font-size: var(--f-small); font-weight: 600; }

.motion-still .flow-stack b, .motion-still .flow-stack b::after { transition: none; }

@media (max-width: 700px) {
  .flow-scene { padding-top: 84px; }
  .flow-scene:last-child { padding-bottom: 84px; }
  .flow-body br, .flow-note br { display: none; }
  .flow-stack { margin-top: 36px; }
  .flow-stack b { line-height: 1.26; }
  .flow-compare { font-size: 16px; }
  .flow-compare th, .flow-compare td { padding: 13px 6px; }
  .flow-steps { grid-template-columns: 1fr; gap: 18px; max-width: 30em; }
}

/* 남는 일: 실제 촬영 영상과 꺼낸 직후·몇 초 뒤 */
.flow-video { width: min(100%, 720px); margin: clamp(32px, 4vw, 52px) auto 0; }
.flow-video video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; background: #fff; }
.flow-video figcaption, .flow-rise figcaption { margin-top: 10px; color: var(--f-mute); font-size: var(--f-small); }
.flow-sub { margin-top: clamp(72px, 8vw, 120px); }
.flow-rise { width: min(100%, 840px); }
.flow-rise img { aspect-ratio: 5 / 3; object-fit: cover; }
.flow-rise figure:last-child figcaption { color: var(--f-blue); font-weight: 550; }

/* 올라오는 원리: 직접 그린 단면 (사진 대신) */
.flow-diagram { width: min(100%, 560px); margin: clamp(28px, 3.5vw, 48px) auto 0; }
.flow-diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
.dg-body { fill: #f4f6f9; stroke: var(--f-ink); stroke-width: 2; }
.dg-paper { fill: #fff; stroke: #8a96a8; stroke-width: 1.2; }
.dg-sheets line { stroke: #d5dbe5; stroke-width: 1; }
.dg-lift { fill: var(--f-ink); }
.dg-bundle { fill: #fff; stroke: var(--f-blue); stroke-width: 2; }
.dg-level { stroke: var(--f-blue); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dg-label { fill: var(--f-blue); font: 600 15px Pretendard, sans-serif; letter-spacing: -.02em; }
.dg-arrow { fill: none; stroke: var(--f-blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html:not(.motion-still) .flow-diagram.is-visible .dg-take { animation: dg-take 4.4s cubic-bezier(.45, 0, .2, 1) infinite; }
html:not(.motion-still) .flow-diagram.is-visible .dg-stack { animation: dg-rise 4.4s cubic-bezier(.45, 0, .2, 1) infinite; }
html:not(.motion-still) .flow-diagram.is-visible .dg-arrow { animation: dg-push 4.4s ease-in-out infinite; }
@keyframes dg-take {
  0%, 10% { transform: translate(0, 0); opacity: 1; }
  34% { transform: translate(150px, -46px); opacity: 1; }
  44%, 86% { transform: translate(150px, -46px); opacity: 0; }
  87% { transform: translate(0, 0); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
@keyframes dg-rise {
  0%, 40% { transform: translateY(0); }
  64%, 86% { transform: translateY(-26px); }
  100% { transform: translateY(0); }
}
@keyframes dg-push {
  0%, 40%, 100% { opacity: .35; transform: translateY(0); }
  52% { opacity: 1; transform: translateY(-6px); }
  64% { opacity: 1; transform: translateY(-10px); }
}

.chores-entry { position: relative; }
.chores-entry-link { position: absolute; top: 0; left: 0; }
.chores-entry .flow-stack { margin-top: clamp(24px, 3vw, 42px); }
.flow-compare thead td:first-child { width: 17%; }
.management-preview {
  display: inline-block;
  margin-top: 12px;
  color: var(--f-blue);
  font-size: var(--f-small);
  text-decoration: underline;
  text-underline-offset: .25em;
}
#after .purchase-intro > p + p { margin-top: 12px; }

@media (min-width: 820px) and (min-height: 580px) {
  .flow-weight {
    padding-top: clamp(52px, 7vh, 79px);
  }
  .flow-weight .flow-photo {
    width: min(100%, 940px, max(450px, calc((100svh - var(--nav-height) - 260px) * 1.5)));
    margin-bottom: clamp(20px, 2.3vh, 32px);
  }
  .flow-weight .flow-display { font-size: clamp(36px, 4vw, 60px); }
  .flow-weight .flow-body {
    max-width: 44em;
    margin-top: 14px;
  }
  .flow-weight .flow-answer { margin-top: 13px; }
}
