.product-workflow {
  margin-block: clamp(28px,5vw,75px);
  padding: clamp(22px,4.5vw,68px);
  border-radius: clamp(17px,3vw,32px);
  background: #edf7fb;
}
.product-workflow .section-intro { margin-bottom: clamp(21px,3.5vw,44px); }
.product-workflow .section-intro h2 { margin-bottom: 0; }
.product-workflow .eyebrow { color: #174db3; }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr)) minmax(0,1.14fr);
  gap: 14px;
}
.flow-step, .flow-dashboard {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: clamp(13px,1.6vw,22px);
  border: 1px solid #e5eff5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px #2b58730b;
}
.flow-step h3, .flow-dashboard h3 { font-size: clamp(1rem,1.45vw,1.2rem); letter-spacing: -.035em; line-height: 1.2; }
.flow-step p { margin-bottom: 6px; font-size: .875rem; line-height: 1.47; }
.flow-diagram {
  display: grid;
  position: relative;
  isolation: isolate;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr 1fr;
  place-items: center;
  gap: 18px 6px;
  margin-top: auto;
  min-height: 120px;
}
.flow-diagram::before {
  content: "";
  position: absolute;
  inset: 22% 18%;
  z-index: -1;
  border: 1px dashed #abc3f6;
  border-radius: 21px;
  background: linear-gradient(#abc3f6,#abc3f6) center / 100% 1px no-repeat;
}
.flow-diagram span { display: grid; place-items: center; padding: 6px 7px; border: 1px solid #e1e9fd; border-radius: 99px; background: #edf3ff; color: #29478d; font-size: .68rem; font-weight: 650; }
.flow-diagram b { display: grid; grid-area: 1 / 2 / 3 / 3; place-items: center; width: 53px; height: 53px; border: 3px solid #e9efff; border-radius: 50%; background: #2854db; color: #fff; font-size: .74rem; }
.flow-fields { display: grid; gap: 6px; margin: auto 0 0; padding: 0; list-style: none; }
.flow-fields li { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 8px; border-radius: 7px; background: #f0f4ff; color: #2a3b67; font-size: .73rem; font-weight: 600; }
.flow-fields li span { color: #2854cf; }
.flow-fields li small { margin-left: auto; text-align: right; color: #4e5c7b; font-size: .65rem; font-weight: 500; }
.flow-preview { display: flex; align-items: center; gap: 7px; margin-top: auto; min-height: 49px; padding: 6px 8px; border-radius: 8px; background: #f0f5ff; color: #26345b; font-size: .74rem; }
.flow-preview img { flex: none; width: 34px; height: 34px; border-radius: 5px; object-fit: cover; }
.flow-preview small { display: block; color: #4e5c7b; font-size: .65rem; }
.flow-preview strong { margin-left: auto; color: #1a4cbc; white-space: nowrap; }
.flow-published { background: #f4f1ff; }
.flow-published b { overflow-wrap: anywhere; }
.flow-published strong { padding: 3px 6px; border-radius: 99px; background: #daf5e5; color: #16663e; font-size: .65rem; }
.flow-dashboard { grid-column: 3; grid-row: 1 / span 2; gap: 13px; background: #fcfdff; }
.flow-dashboard-title { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.flow-dashboard-title span { color: #4d5c7e; font-size: .69rem; white-space: nowrap; }
.flow-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.flow-metrics div { display: grid; gap: 3px; min-width: 0; padding: 7px 6px; border: 1px solid #edf0fd; border-radius: 7px; background: #fff; color: #202e5b; }
.flow-metrics div:first-child { border-color: transparent; background: linear-gradient(140deg,#6449ef,#462bbd); color: #fff; }
.flow-metrics small { font-size: .62rem; }
.flow-metrics b { font-size: clamp(.75rem,1.25vw,1.15rem); letter-spacing: -.07em; white-space: nowrap; }
.flow-metrics i { display: block; height: 20px; margin-top: 4px; background: #7255d8; clip-path: polygon(0 83%,15% 52%,29% 67%,44% 37%,57% 46%,72% 21%,83% 31%,100% 0,100% 12%,83% 43%,72% 33%,57% 58%,44% 49%,29% 79%,15% 64%,0 95%); }
.flow-metrics div:first-child i { background: #e7defe; }
.flow-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; color: #26345b; font-size: clamp(.61rem,.85vw,.76rem); }
.flow-table caption { margin-bottom: 6px; text-align: left; font-weight: 700; font-size: .84rem; }
.flow-table th { font-weight: 650; color: #4b5d7f; }
.flow-table :is(th,td) { padding: 7px 3px; border-bottom: 1px solid #eaf0fa; overflow-wrap: anywhere; }
.flow-table th:first-child { width: 43%; }
.flow-table th:last-child { width: 30%; }
.flow-week { margin-top: auto; font-size: .78rem; }
.flow-week-bars { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; align-items: end; height: 41px; margin-top: 5px; border-bottom: 1px solid #e6eafa; }
.flow-week-bars i { height: 43%; border-radius: 3px 3px 0 0; background: #c3b4f7; }
.flow-week-bars i:nth-child(2n) { height: 62%; }
.flow-week-bars i:nth-child(3n) { height: 74%; }
.flow-week-bars i:nth-child(5) { height: 96%; background: #6546d8; }
.flow-report-link { align-self: start; margin-top: auto; color: #1d4daf; text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; font-weight: 650; }
@media (prefers-reduced-motion: no-preference) {
  .flow-step:nth-child(2), .flow-step:nth-child(4) { --flow-stagger: .08s; }
  .flow-dashboard { --flow-stagger: .16s; }
  .flow-grid > .is-revealed:not(:focus-within) { transition-delay: var(--flow-stagger, 0s); }
  .flow-step :is(.flow-diagram span, .flow-fields li, .flow-preview), .flow-dashboard :is(.flow-metrics > div, .flow-table tbody tr) { --intro-shift: 8px; }
  .flow-step.is-revealed :is(.flow-diagram span, .flow-fields li, .flow-preview),
  .flow-dashboard.is-revealed :is(.flow-metrics > div, .flow-table tbody tr) {
    animation: appear .46s cubic-bezier(.2,.7,.25,1) calc(var(--flow-stagger, 0s) + var(--flow-item-delay, .15s)) both;
  }
  .flow-step.is-revealed .flow-diagram::before { animation: draw-graph .58s ease-out .16s both; }
  .flow-step.is-revealed .flow-diagram b { animation: flow-hub-in .45s cubic-bezier(.2,.78,.25,1) .18s both; }
  .flow-grid :is(.flow-fields li, .flow-diagram span, .flow-metrics > div, .flow-table tbody tr):nth-child(2) { --flow-item-delay: .22s; }
  .flow-grid :is(.flow-fields li, .flow-diagram span, .flow-metrics > div, .flow-table tbody tr):nth-child(3) { --flow-item-delay: .29s; }
  .flow-grid :is(.flow-diagram span, .flow-table tbody tr):nth-child(4) { --flow-item-delay: .36s; }
  .flow-grid .flow-diagram span:nth-child(5) { --flow-item-delay: .43s; }
  .flow-dashboard.is-revealed .flow-metrics i { mask: linear-gradient(#000,#000) left / 100% 100% no-repeat; animation: flow-sparkline .65s ease-out calc(var(--flow-stagger) + var(--flow-item-delay, .15s)) both; }
  .flow-dashboard.is-revealed .flow-week-bars i { animation: flow-bar-rise .55s cubic-bezier(.2,.76,.25,1) .35s both; }
  .flow-dashboard.is-revealed .flow-week-bars i:nth-child(2n) { animation-delay: .40s; }
  .flow-dashboard.is-revealed .flow-week-bars i:nth-child(3n) { animation-delay: .45s; }
  @keyframes flow-hub-in { from { opacity: 0; scale: .76; } to { opacity: 1; scale: 1; } }
  @keyframes flow-sparkline { from { mask-size: 0 100%; } to { mask-size: 100% 100%; } }
  @keyframes flow-bar-rise { from { scale: 1 0; transform-origin: bottom; } to { scale: 1 1; transform-origin: bottom; } }
}
@media (max-width: 1000px) {
  .flow-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .flow-dashboard { grid-column: 1 / -1; grid-row: auto; }
  .flow-metrics i { height: 23px; }
}
@media (max-width: 540px) {
  .product-workflow { width: calc(100% - 24px); }
  .flow-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
}
