/* ==========================================================
   THE WORKFLOW — English and Japanese pages.
   - / and /en/ (TOP): branching workflow map (.wf--top)
   - support-fab.html, spool-manager.html (+ /en/) (.wf--product): header,
     Before / After visual, 8-step Before / After flow with expandable
     details, Workflow Impact, CTA
   Loaded after style.css by those six pages only; every selector is
   scoped under .wf (print fix: pages containing .wf--product), so no
   other page is affected. Markup is generated by
   scripts/build-workflow.py from data/workflow/*.json.
   Colors reuse the style.css tokens. The only additions are the blue
   for "Upcoming" and a darker amber for "Partial".
   Type scale inside .wf: 11 (labels) / 12 (notes) / 14 (secondary) /
   15 (body) / 16 (lead) / 17 / 20 (card headings) + clamp() section titles.
   Color roles: product accent = ASPO side; the four status colors appear
   only in the status pills (same pills on TOP and product pages).
========================================================== */

.wf {
  --wf-accent: var(--orange);
  --wf-accent-2: var(--orange-2);
  --wf-accent-soft: var(--orange-soft);
  --wf-accent-tint: rgba(235, 129, 41, 0.07);
  --wf-amber: var(--yellow);
  --wf-amber-ink: #A87F05;
  --wf-amber-soft: var(--cream-soft);
  --wf-blue: #3F6DB0;
  --wf-blue-soft: #DBE3EE;
  --wf-gray: var(--sub-2);
  --wf-gray-soft: #ECEAE6;
  --wf-neutral-tint: #F5F3F0;
  position: relative;
  padding: clamp(80px, 10vh, 140px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 50px);
}
.wf--support {
  --wf-accent: var(--teal);
  --wf-accent-2: var(--teal-2);
  --wf-accent-soft: var(--teal-soft);
  --wf-accent-tint: rgba(31, 168, 154, 0.07);
}
.wf--top { background: var(--bg-2); scroll-margin-top: var(--nav-h); }

.wf .label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  font-size: 11px; font-weight: 800; letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wf-accent-2);
}
.wf .label::before {
  content: "";
  display: inline-block; width: 28px; height: 1px;
  background: currentColor; opacity: 0.6;
}
.wf--top .label { color: var(--orange-2); }

.wf-sr {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ---------- TOP: section heading ---------- */
.wf-head { max-width: 860px; margin-bottom: 72px; }
.wf-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.wf-head__title {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 900;
  color: var(--ink);
  margin: 14px 0 20px;
}
.wf-head__desc { font-size: 16px; line-height: 1.9; color: var(--sub); max-width: 760px; }
.wf-head--center .wf-head__desc { margin-left: auto; margin-right: auto; }
.wf-head__desc + .wf-head__desc { margin-top: 12px; }

.wf-note { margin-top: 24px; font-size: 12px; line-height: 1.8; color: var(--sub); }
.wf-note--center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Availability label ---------- */
.wf-status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--ink);
  background: var(--wf-gray-soft);
}
.wf-status--sm { font-size: 11px; padding: 2px 8px 2px 7px; gap: 5px; }
.wf-status__mark {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  box-sizing: border-box;
}
.wf-status--sm .wf-status__mark { width: 8px; height: 8px; }
/* Supported: product color, filled */
.wf-status--supported { background: var(--wf-accent-soft); }
.wf-status--supported .wf-status__mark { background: var(--wf-accent); }
/* Partially Supported: amber, half-filled */
.wf-status--partial { background: var(--wf-amber-soft); }
.wf-status--partial .wf-status__mark {
  border: 1.5px solid #C99A06;
  background: linear-gradient(90deg, #C99A06 50%, transparent 50%);
}
/* Upcoming: blue, ring */
.wf-status--upcoming { background: var(--wf-blue-soft); }
.wf-status--upcoming .wf-status__mark { border: 2px solid var(--wf-blue); }
/* Not Yet Supported: gray, dashed ring */
.wf-status--not-yet { background: var(--wf-gray-soft); color: var(--sub); }
.wf-status--not-yet .wf-status__mark { border: 1.5px dashed var(--wf-gray); }
/* TOP legend: Supported uses each product color */
.wf-status--both .wf-status__mark { background: linear-gradient(90deg, var(--teal) 50%, var(--orange) 50%); }
.wf-status--both { background: #fff; border: 1px solid var(--line); }
.wf-status--external { background: transparent; border: 1px dashed var(--wf-gray); color: var(--sub); }

/* ---------- Legend ---------- */
.wf-legend {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
}
.wf--top .wf-legend { justify-content: center; margin-top: 40px; }
.wf-legend__title {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sub);
}
.wf-legend__list { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-legend__note { flex-basis: 100%; font-size: 12px; line-height: 1.8; color: var(--sub); }

/* ---------- TOP: branching workflow map ---------- */
.wf-map { max-width: 1040px; margin: 0 auto; }
.wf-map__source {
  max-width: 760px; margin: 0 auto;
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 18px 24px 18px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.wf-map__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: var(--ink-2); }
.wf-map__source h3, .wf-map__dest h3 { font-size: 20px; font-weight: 900; letter-spacing: -0.015em; line-height: 1.3; }
.wf-map__sub {
  margin: 4px 0 8px;
  font-family: var(--font-en);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--sub);
}
.wf-map__source p:last-child { font-size: 14px; line-height: 1.8; color: var(--sub); }

.wf-map__fork, .wf-map__merge { position: relative; height: 64px; }
.wf-map__fork span, .wf-map__merge span {
  position: absolute;
  left: calc(25% - 6px); right: calc(25% - 6px);
  height: 50%;
  border: 2px solid var(--line);
  border-left-color: var(--teal);
  border-right-color: var(--orange);
}
.wf-map__fork span { top: 50%; border-bottom: 0; border-radius: 12px 12px 0 0; }
.wf-map__merge span { top: 0; border-top: 0; border-radius: 0 0 12px 12px; }
.wf-map__fork::before, .wf-map__merge::before {
  content: ""; position: absolute; left: calc(50% - 1px);
  width: 2px; height: 50%; background: #CFC8BF;
}
.wf-map__fork::before { top: 0; }
.wf-map__merge::before { bottom: 0; }
.wf-map__fork span, .wf-map__merge span { border-top-color: #CFC8BF; border-bottom-color: #CFC8BF; }

.wf-map__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.wf-prod {
  --wf-accent: var(--orange); --wf-accent-2: var(--orange-2); --wf-accent-soft: var(--orange-soft);
  display: flex; flex-direction: column;
  padding: 32px 30px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--wf-accent);
  border-radius: 16px;
}
.wf-prod--support { --wf-accent: var(--teal); --wf-accent-2: var(--teal-2); --wf-accent-soft: var(--teal-soft); }
.wf-prod__logo { height: 40px; width: auto; margin-bottom: 18px; }
.wf-prod__label {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--wf-accent-2);
}
.wf-prod__title { margin: 6px 0 10px; font-size: 20px; font-weight: 900; line-height: 1.3; letter-spacing: -0.015em; }
.wf-prod__desc { font-size: 14px; line-height: 1.8; color: var(--sub); min-height: 5.4em; }
.wf-prod__steps { margin: 20px 0 24px; border-top: 1px solid var(--line); }
.wf-prod__steps li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px; line-height: 1.45;
}
.wf-prod__no { font-family: var(--font-en); font-size: 12px; font-weight: 800; color: var(--wf-accent-2); }
.wf-prod__name { font-weight: 600; color: var(--ink); }
.wf-prod__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--wf-accent);
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--wf-accent-2);
  transition: background-color .2s, color .2s;
}
.wf-prod__cta:hover { background: var(--wf-accent); color: #fff; }
.wf-prod__cta:focus-visible { outline: 2px solid var(--wf-accent-2); outline-offset: 3px; }

.wf-map__dest {
  padding: 32px 36px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.wf-map__dest > p { margin: 8px auto 0; max-width: 620px; font-size: 14px; line-height: 1.8; color: rgba(255, 255, 255, 0.72); }
.wf-map__outputs {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.wf-map__outputs li {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-size: 14px; font-weight: 700; line-height: 1.45;
}
.wf-map__outputs .wf-icon { width: 28px; height: 28px; color: var(--cream); }



/* ---------- TOP responsive ---------- */
@media (max-width: 900px) {
  .wf-map__outputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .wf-head { margin-bottom: 56px; }
  .wf-map__fork, .wf-map__merge { height: 40px; }
  .wf-map__fork span, .wf-map__merge span { display: none; }
  .wf-map__fork::before, .wf-map__merge::before { height: 100%; }
  .wf-map__products { grid-template-columns: 1fr; gap: 40px; }
  .wf-map__products .wf-prod + .wf-prod::before {
    content: ""; position: absolute; left: calc(50% - 1px); top: -40px;
    width: 2px; height: 40px; background: #CFC8BF;
  }
  .wf-prod { position: relative; }
  .wf-prod__desc { min-height: 0; }
  .wf-map__source { grid-template-columns: 1fr; padding: 16px; }
}
@media (max-width: 560px) {
  .wf-prod { padding: 26px 20px 24px; }
  .wf-map__dest { padding: 28px 20px; }
}

/* ==========================================================
   Product pages: Before / After workflow
   header → Before/After visual → 8-step flow → Workflow Impact + CTA
========================================================== */
.wf--product { padding: clamp(48px, 6vh, 64px) 0; }

/* ---------- Header ---------- */
.wf-ph { max-width: 1180px; }
.wf-ph__title {
  margin-top: 14px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 900;
  color: var(--ink);
}
.wf-ph__desc { margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--sub); }
.wf-sub {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.3; letter-spacing: -0.02em;
  font-weight: 900; color: var(--ink);
}

/* ---------- Before / After visual ---------- */
.wf-ba { margin: 28px 0 0; }
.wf-ba__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: stretch;
}
.wf-ba__card {
  display: flex; flex-direction: column;
  padding: 22px 22px 18px;
  border-radius: 16px;
  min-width: 0;
}
.wf-ba__card--before { background: var(--wf-neutral-tint); border: 1px solid var(--line); }
.wf-ba__card--after { background: var(--wf-accent-tint); border: 1.5px solid var(--wf-accent); box-shadow: 0 18px 40px -30px var(--wf-accent-2); }
.wf-ba__label {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sub-2);
}
.wf-ba__card--after .wf-ba__label { color: var(--wf-accent-2); }
.wf-ba__heading { margin-top: 4px; font-size: 20px; font-weight: 900; letter-spacing: -0.015em; color: var(--sub); }
.wf-ba__card--after .wf-ba__heading { color: var(--ink); }

.wf-ba__steps {
  flex: 1;
  margin-top: 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  column-gap: 22px;
  align-items: start;
}
.wf-ba__step { position: relative; display: flex; flex-direction: column; min-width: 0; }
/* connectors: dashed + broken (before), solid brand arrow (after) */
.wf-ba__step + .wf-ba__step::before {
  content: "";
  position: absolute;
  left: -19px; top: 45px;
  width: 16px; height: 0;
}
.wf-ba__step + .wf-ba__step::after {
  content: "";
  position: absolute;
  left: -10px; top: 41.5px;
  width: 6px; height: 6px;
  transform: rotate(45deg);
}
.wf-ba__card--before .wf-ba__step + .wf-ba__step::before { border-top: 2px dashed #BDB6AE; width: 11px; }
.wf-ba__card--before .wf-ba__step + .wf-ba__step::after { border-top: 2px solid #BDB6AE; border-right: 2px solid #BDB6AE; }
.wf-ba__card--after .wf-ba__step + .wf-ba__step::before { border-top: 2px solid var(--wf-accent); }
.wf-ba__card--after .wf-ba__step + .wf-ba__step::after { border-top: 2px solid var(--wf-accent); border-right: 2px solid var(--wf-accent); }
.wf-ba__card--after .wf-ba__step--external::before { border-top-style: dashed !important; }

.wf-ba__media {
  position: relative;
  height: 92px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.wf-ba__media--photo { background: var(--ink-2); border-color: transparent; }
.wf-ba__media--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wf-ba__media--logo img { height: 46px; width: auto; max-width: 86%; object-fit: contain; }
.wf-ba__media .wf-icon { width: 26px; height: 26px; }
.wf-ba__card--before .wf-ba__media { border: 1.5px dashed #CFC8BF; background: rgba(255, 255, 255, 0.6); color: var(--sub-2); }
.wf-ba__card--before .wf-ba__media--photo { border-style: solid; border-color: transparent; }
.wf-ba__card--before .wf-ba__media--photo img { filter: grayscale(1) contrast(0.85) brightness(1.08); opacity: 0.75; }
.wf-ba__card--after .wf-ba__step--aspo .wf-ba__media { outline: 2px solid var(--wf-accent); outline-offset: 2px; }
.wf-ba__card--after .wf-ba__step--external .wf-ba__media { background: transparent; border: 1.5px dashed #C9C2BA; color: var(--sub-2); }

.wf-ba__name { margin-top: 8px; font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--sub); }
.wf-ba__card--after .wf-ba__name { color: var(--ink); }
.wf-ba__card--after .wf-ba__step--aspo .wf-ba__name { color: var(--wf-accent-2); }
.wf-ba__sub { margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--sub); }
.wf-ba__tag {
  margin-top: 4px;
  font-family: var(--font-en);
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sub-2);
}
.wf-ba__tagline {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px dashed #CFC8BF;
  font-family: var(--font-en);
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--sub-2);
}
.wf-ba__card--after .wf-ba__tagline { border-top: 1px solid var(--wf-accent-soft); color: var(--wf-accent-2); }
/* Shift arrow between the cards */
.wf-ba__shift {
  align-self: center; justify-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--wf-accent);
  color: #fff;
  box-shadow: 0 8px 18px -10px var(--wf-accent-2);
}
.wf-ba__shift svg { width: 20px; height: 20px; }
.wf-ba__note { margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--sub); }

/* ---------- 8-step Before / After flow ---------- */
.wf-flow { margin-top: 36px; }
.wf-flow .wf-sub { margin-bottom: 12px; }
.wf-flow__cols,
.wf-row__grid {
  display: grid;
  grid-template-columns: minmax(0, 30fr) minmax(0, 28fr) 22px minmax(0, 42fr) 18px;
  column-gap: 14px;
  align-items: center;
}
.wf-flow__cols {
  padding: 0 14px 10px 14px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-en);
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sub);
}
.wf-flow__cols span:first-child { padding-left: 2px; }
.wf-flow__cols span:nth-child(2) { padding-left: 14px; color: var(--sub-2); }
.wf-flow__cols span:nth-child(3) { grid-column: 4; padding-left: 14px; color: var(--wf-accent-2); }

.wf-row { position: relative; border-bottom: 1px solid var(--line); }
.wf-row::before {
  content: "";
  position: absolute;
  left: 27px; top: 0; bottom: 0;
  width: 2px;
  background: var(--wf-accent-soft);
}
.wf-row:first-child::before { top: 32px; }
.wf-row:last-child::before { bottom: auto; height: 32px; }

.wf-row__sum {
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 10px;
  transition: background-color .2s;
}
.wf-row__sum::-webkit-details-marker { display: none; }
.wf-row__sum::marker { content: ""; }
.wf-row__sum:hover { background: rgba(35, 31, 32, 0.025); }
.wf-row__sum:focus-visible { outline: 2px solid var(--wf-accent-2); outline-offset: -2px; }

.wf-row__step { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.wf-row__no {
  flex: none;
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--wf-accent);
  font-family: var(--font-en);
  font-size: 11px; font-weight: 800; letter-spacing: 0.02em;
  color: var(--wf-accent-2);
}
.wf-row__icon { flex: none; width: 22px; height: 22px; color: var(--wf-accent-2); }
.wf-row__name { font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--ink); }

.wf-row__conv,
.wf-row__aspo {
  display: flex; align-items: center;
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px; line-height: 1.4;
}
.wf-row__conv { background: var(--wf-neutral-tint); color: var(--sub); }
.wf-row__aspo {
  justify-content: space-between; gap: 12px;
  background: var(--wf-accent-tint);
  color: var(--wf-accent-2);
  font-weight: 700;
}
.wf-row__arrow { width: 18px; height: 18px; color: var(--wf-accent); justify-self: center; }
.wf-row__chev { width: 18px; height: 18px; color: var(--sub); transition: transform .2s; }
.wf-row details[open] .wf-row__chev { transform: rotate(180deg); }

/* Main features: emphasis by weight only (color is reserved for status) */
.wf-row--key .wf-row__aspo { font-weight: 800; }

/* Upcoming / not yet supported: neutral */
.wf-row--upcoming .wf-row__no,
.wf-row--not-yet .wf-row__no { border: 2px dashed var(--wf-gray); color: var(--sub); }
.wf-row--upcoming .wf-row__icon,
.wf-row--not-yet .wf-row__icon { color: var(--sub-2); }
.wf-row--upcoming .wf-row__aspo,
.wf-row--not-yet .wf-row__aspo {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--sub);
  font-weight: 500;
}
.wf-row--upcoming .wf-row__arrow,
.wf-row--not-yet .wf-row__arrow { color: var(--wf-gray); }

/* Availability: the same pill as the TOP page */
.wf-row__aspo .wf-status { flex: none; }

/* Phone: first steps only until "Show all" (scripts/workflow.js) */
.wf-flow__more { display: none; }
@media (max-width: 768px) {
  .wf-flow.is-collapsed .wf-row:nth-child(n+4) { display: none; }
  .wf-flow.is-collapsed .wf-row:nth-child(3)::before { bottom: auto; height: 24px; }
  .wf-flow__more:not([hidden]) {
    display: flex; align-items: center; justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px solid var(--wf-accent);
    border-radius: 999px;
    background: #fff;
    font: inherit; font-size: 14px; font-weight: 700;
    color: var(--wf-accent-2);
    cursor: pointer;
  }
  .wf-flow__more:focus-visible { outline: 2px solid var(--wf-accent-2); outline-offset: 3px; }
}

/* Expanded details: 1-4 short bullets */
.wf-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px; row-gap: 14px;
  margin: 0 14px 14px 52px;
  padding: 12px 0 2px;
  border-top: 1px dashed var(--line);
  font-size: 14px; line-height: 1.6; color: var(--ink-3);
}
.wf-detail__title {
  margin: 0 0 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.wf-detail__group--impact .wf-detail__title { color: var(--wf-accent); }
.wf-detail__tag {
  margin-left: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--sub);
}
.wf-detail__group--impact {
  padding: 10px 14px 4px;
  border-radius: 8px;
  background: var(--wf-accent-tint);
}
.wf-detail li { position: relative; padding-left: 14px; margin-bottom: 6px; }
.wf-detail li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--wf-accent);
}
.wf-detail__group--features li::before { background: var(--sub-2); }

/* ---------- Workflow Impact + CTA ---------- */
.wf-impact { margin-top: 36px; text-align: center; }
.wf-impact .wf-sub { margin-top: 10px; }
.wf-impact__list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wf-impact__item {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 24px;
  min-width: 0;
}
.wf-impact__item + .wf-impact__item { border-left: 1px solid var(--line); }
.wf-impact__value,
.wf-impact__icon {
  height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--wf-accent-2);
}
.wf-impact__value {
  font-family: var(--font-en);
  font-size: clamp(34px, 3.2vw, 44px);
  font-weight: 900; line-height: 1; letter-spacing: -0.03em;
  white-space: nowrap;
}
.wf-impact__icon .wf-icon { width: 46px; height: 46px; stroke-width: 1.5; }
.wf-impact__head { margin-top: 10px; font-size: 17px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.wf-impact__desc { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--sub); }
.wf-impact__note { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--sub-2); }
.wf-impact__foot { margin-top: 16px; font-size: 12px; color: var(--sub); }
.wf-impact__cta { margin-top: 24px; display: flex; justify-content: center; }

/* ---------- Product responsive ---------- */
@media (max-width: 1024px) {
  .wf-flow__cols, .wf-row__grid { grid-template-columns: minmax(0, 32fr) minmax(0, 26fr) 18px minmax(0, 42fr) 18px; column-gap: 10px; }
  .wf-ba__grid { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .wf-ba__shift { transform: rotate(90deg); }
}
@media (max-width: 768px) {
  .wf-detail { grid-template-columns: 1fr; }
  /* Each step: name on top, Before → After side by side */
  .wf-flow__cols { display: none; }
  .wf-flow__list { border-top: 2px solid var(--ink); }
  .wf-row__grid {
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 18px;
    grid-template-areas: "step step step chev" "conv arrow aspo aspo";
    column-gap: 6px; row-gap: 8px;
    align-items: stretch;
  }
  .wf-row__step { grid-area: step; }
  .wf-row__conv { grid-area: conv; }
  .wf-row__arrow { grid-area: arrow; align-self: center; width: 16px; height: 16px; }
  .wf-row__aspo { grid-area: aspo; flex-wrap: wrap; align-content: center; row-gap: 2px; }
  .wf-row__chev { grid-area: chev; align-self: center; }
  .wf-row__conv, .wf-row__aspo { margin-left: 38px; min-height: 0; padding: 8px 10px; font-size: 14px; }
  .wf-row__aspo { margin-left: 0; }
  .wf-row:first-child::before { top: 24px; }
  .wf-row:last-child::before { height: 24px; }
}
@media (max-width: 560px) {
  .wf-row__sum { padding: 12px 4px; }
  .wf-row::before { left: 17px; }
  .wf-row__conv { margin-left: 38px; }
  .wf-detail { margin: 0 4px 14px 42px; }
  /* Visual: steps run top to bottom inside each card */
  .wf-ba__card { padding: 18px 16px 14px; }
  .wf-ba__steps { grid-auto-flow: row; grid-template-columns: 1fr; row-gap: 14px; }
  .wf-ba__step { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; align-content: center; }
  .wf-ba__media { grid-row: 1 / span 3; height: 56px; }
  .wf-ba__name { margin-top: 0; align-self: end; }
  .wf-ba__step:not(:has(.wf-ba__sub, .wf-ba__tag)) .wf-ba__name { grid-row: 1 / span 3; align-self: center; }
  .wf-ba__step + .wf-ba__step::before { left: 47px; top: -13px; width: 0 !important; height: 10px; border-top: 0 !important; border-left: 2px solid; }
  .wf-ba__card--before .wf-ba__step + .wf-ba__step::before { border-left: 2px dashed #BDB6AE; height: 7px; }
  .wf-ba__card--after .wf-ba__step + .wf-ba__step::before { border-left-color: var(--wf-accent); }
  .wf-ba__card--after .wf-ba__step--external::before { border-left-style: dashed !important; }
  .wf-ba__step + .wf-ba__step::after { left: 45px; top: -7px; transform: rotate(135deg); }
  .wf-impact__list { grid-template-columns: 1fr; }
  .wf-impact__item { padding: 18px 0; }
  .wf-impact__item + .wf-impact__item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Print / PDF (product pages only) ----------
   Content revealed by the scroll animation (style.css .js ... :not(.is-in))
   is never revealed when printing, so FEATURES and later sections printed
   blank. Show everything and keep dark section backgrounds so white text
   stays legible. Web animation is unchanged. Step details print closed. */
@media print {
  html:has(.wf--product) {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  html.js:has(.wf--product) :where(
    .showcase__head, .showcase__products,
    .deep__head, .vshot, .problem,
    .impact__head, .metrics, .quals, .outcomes,
    .features__head, .features__grid,
    .demo,
    .cta__grid,
    .footer__main
  ) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* Fixed / sticky chrome would repeat on every printed page over the content */
  html:has(.wf--product) .cookie { display: none !important; }
  html:has(.wf--product) .nav { position: absolute; }
  html:has(.wf--product) :where(.deep__sticky, .cta__left) { position: static; }
  .wf-row, .wf-ba__card, .wf-impact__item { break-inside: avoid; }
  .wf-flow.is-collapsed .wf-row { display: block !important; }
  .wf-flow__more { display: none !important; }
}
