/* Product-tour / workflow page. Builds on styles.css tokens; only adds flow-specific parts. */

.flow-hero { padding-block: clamp(40px, 6vw, 76px) clamp(30px, 4vw, 48px); }
.flow-hero .eyebrow { margin-bottom: 14px; }
.flow-hero h1 { max-width: 22ch; }
.flow-hero .lead { max-width: 56rem; margin-top: 18px; font-size: clamp(1.0625rem, 1rem + .4vw, 1.24rem); }
.flow-hero .lead b { color: var(--ink); font-weight: 600; }

/* Stage map — a clickable table of contents */
.flow-map { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.flow-map a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px 8px 8px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 999px;
  color: var(--ink-2); font-size: .9rem; font-weight: 500; text-decoration: none;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.flow-map a span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--venous-wash); color: var(--venous);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
}
.flow-map a:hover { color: var(--ink); border-color: var(--rule-strong); box-shadow: var(--sheet-shadow); }

/* The stage list */
.flow { --badge: 52px; --spine: 2px; list-style: none; margin: 0; padding: 0; }
.flow > .stage { counter-increment: none; }
.stage {
  position: relative;
  display: grid; grid-template-columns: var(--badge) minmax(0, 1fr); column-gap: clamp(18px, 3vw, 30px);
  padding-bottom: clamp(40px, 6vw, 64px);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.stage:last-child { padding-bottom: 0; }
.stage::before {
  content: ""; position: absolute;
  left: calc(var(--badge) / 2 - var(--spine) / 2); top: var(--badge); bottom: 0;
  width: var(--spine); background: var(--rule-strong);
}
.stage:last-child::before { display: none; }

.stage-num {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: var(--badge); height: var(--badge); border-radius: 50%;
  background: var(--venous); color: #fff;
  font-family: var(--font-display); font-stretch: 108%; font-size: 1.35rem; font-weight: 720;
  box-shadow: 0 0 0 6px var(--sheet);
}
.stage-hilite .stage-num { box-shadow: 0 0 0 6px var(--sheet), 0 0 0 10px var(--venous-wash); }

.stage-head { margin-bottom: 18px; }
.stage-kicker {
  margin-bottom: 8px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--venous);
}
.stage-head h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); font-stretch: 108%; }
.stage-lead { margin-top: 10px; max-width: 46rem; color: var(--ink-2); font-size: var(--fs-m); }

/* Detail: the you-do / system / you-get triad next to a screenshot */
.stage-detail {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(22px, 3vw, 40px); align-items: start;
}
.stage-detail.no-figure { grid-template-columns: 1fr; }

.triad { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.triad li {
  padding: 13px 16px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--rule);
  border-left: 3px solid var(--flow, var(--rule-strong));
}
.triad li > span {
  display: block; margin-bottom: 5px;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--flow, var(--ink-3));
}
.triad li p { color: var(--ink-2); font-size: .97rem; line-height: 1.5; }
.triad li p b { color: var(--ink); font-weight: 600; }
.t-do  { --flow: var(--arterial); }
.t-sys { --flow: var(--venous); }
.t-get { --flow: var(--good); }

/* When there is no figure, lay the triad out in three columns */
.triad-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Screenshots inside a stage (reuses .shot / .shot-frame from styles.css) */
.stage-shots { display: grid; gap: 18px; }
.stage-shot { margin: 0; }

/* Closing CTA on the dark band */
.flow-cta { text-align: center; }
.flow-cta .eyebrow { justify-content: center; color: var(--night-ink-2); }
.flow-cta h2 { max-width: 24ch; margin: 12px auto 0; color: var(--night-ink); }
.flow-cta .lead { max-width: 46rem; margin: 16px auto 0; color: var(--night-ink-2); }
.flow-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.btn-light { background: var(--sheet); color: var(--night); }
.btn-light:hover { background: var(--venous-wash); color: var(--night); }
.btn-ghost-light { background: transparent; color: var(--night-ink); border-color: var(--night-line); }
.btn-ghost-light:hover { color: #fff; border-color: rgba(233, 238, 245, .5); }

@media (max-width: 900px) {
  .stage-detail { grid-template-columns: 1fr; }
  .triad-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .flow { --badge: 42px; }
  .stage-num { font-size: 1.1rem; }
  .stage-head h2 { margin-top: 2px; }
}
