/* A generic process: repetitive work → software + AI → human validation. */
.hero-artwork.flow-demo { width: 100%; margin: 0; }
.flow-demo { position: relative; overflow: hidden; border: 1px solid #d6e0ee; border-radius: 12px; background: #fff; box-shadow: 0 28px 80px #193e7410, 0 2px 6px #142d4a06; }
.preview-run { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 11px; border: 1px solid #d5dfed; border-radius: 5px; background: #fff; color: #315d91; font-family: var(--mono); font-size: 10px; line-height: 1.4; cursor: pointer; }
.preview-run:hover { border-color: #9bb4d4; background: #f3f7fc; }
.preview-run svg { width: 13px; height: 13px; flex-shrink: 0; }
/* Keep animation controls available to keyboard users without adding visible chrome. */
@media (prefers-reduced-motion: no-preference) {
  .preview-run { position: absolute; right: 16px; bottom: 14px; z-index: 2; min-height: 44px; }
  .preview-run:not(:focus-visible) { width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .preview-run { display: flex; min-height: 44px; margin: 10px auto 0; }
}
.flow-system { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, .88fr) 64px minmax(0, 1fr); align-items: center; padding: 28px 32px; background: radial-gradient(ellipse at 50% 48%, #eef4fc99, transparent 53%); }
.flow-source, .flow-destination { min-width: 0; }
.flow-column-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 28px; margin-bottom: 12px; color: #3c4858; font-size: 12px; font-weight: 500; }
.flow-column-count { color: #8a96a6; font-family: var(--mono); font-size: 9px; font-weight: 400; white-space: nowrap; }
.flow-task-list, .flow-team-list { display: grid; list-style: none; margin: 0; padding: 0; }
.flow-task-list { gap: 6px; }
.flow-task { display: flex; align-items: center; gap: 11px; height: 44px; min-width: 0; padding: 8px 12px; border: 1px solid #e6ebf2; border-radius: 6px; background: #fff; color: #687587; font-size: 12px; transition: border-color .25s, background .25s, color .25s; }
.flow-task-icon { display: flex; color: #8e9fb5; }
.flow-task-icon svg { width: 17px; height: 17px; }
.flow-task-state { display: grid; place-items: center; width: 16px; height: 16px; margin-left: auto; color: #4b75a8; }
.flow-task-state::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #ced7e3; }
.flow-task-state svg { display: none; width: 13px; height: 13px; }
.flow-task[data-state="active"] { border-color: #b5cbe5; background: #f4f8fe; color: #315d91; }
.flow-task[data-state="active"] .flow-task-icon { color: #4873a9; }
.flow-task[data-state="active"] .flow-task-state::before { width: 7px; height: 7px; background: #5f87ba; box-shadow: 0 0 0 3px #e5eef9; }
.flow-task[data-state="processed"] { border-color: #dce7f4; color: #4e6787; }
.flow-task[data-state="processed"] .flow-task-state::before { display: none; }
.flow-task[data-state="processed"] .flow-task-state svg { display: block; }
.flow-links { display: block; width: 100%; height: 294px; margin-top: 40px; overflow: visible; }
.flow-links > path { stroke: #d9e3ef; stroke-width: 1; vector-effect: non-scaling-stroke; }
.flow-links .flow-link-signal { stroke: #5e85b8; stroke-width: 1.5; stroke-dasharray: .1 1; opacity: 0; animation: flow-travel 2.4s linear infinite; animation-delay: var(--signal-delay); animation-play-state: paused; }
.flow-demo[data-preview-flow="processing"] .flow-links-in .flow-link-signal,
.flow-demo[data-preview-flow="routing"] .flow-links-out .flow-link-signal { opacity: .9; animation-play-state: running; }
.flow-demo[data-preview-paused="true"] .flow-links .flow-link-signal { animation-play-state: paused; }
.flow-demo[data-preview-flow="complete"] .flow-links > path:not(.flow-link-signal) { stroke: #b1c6df; }
@keyframes flow-travel { from { stroke-dashoffset: 1.1; } to { stroke-dashoffset: 0; } }
.flow-core { display: grid; align-self: stretch; align-items: center; min-width: 0; padding-top: 40px; }
.flow-engine { position: relative; padding: 24px 20px 20px; border: 1px solid #b9cce4; border-radius: 10px; background: #fff; box-shadow: 0 0 0 5px #f4f7fc, 0 12px 36px #315d910a; }
.flow-engine-head { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; text-align: center; }
.flow-engine-head > img { display: block; width: 48px; height: 48px; }
.flow-engine-head strong { display: block; color: #25374e; font-size: 19px; font-weight: 550; letter-spacing: -.035em; }
.flow-engine-head div > span { display: block; margin-top: 5px; color: #7189a9; font-family: var(--mono); font-size: 9px; }
.flow-engine-actions { display: flex; justify-content: center; gap: 12px; margin-top: 23px; }
.flow-engine-actions > span { display: flex; align-items: center; flex-direction: column; gap: 6px; color: #8192a8; font-size: 9px; }
.flow-engine-actions svg { width: 14px; height: 14px; }
.flow-engine-progress { height: 3px; margin-top: 23px; overflow: hidden; border-radius: 3px; background: #eaf0f7; }
.flow-engine-progress > span { display: block; width: 100%; height: 100%; border-radius: inherit; background: #527fb8; transform: scaleX(0); transform-origin: left; transition: transform .15s linear; }
.hero .flow-engine-status { min-height: 2.8em; margin: 11px 0 0; color: #4c6688; font-size: 11px; font-weight: 450; line-height: 1.4; text-align: center; }
.flow-engine-rule { display: block; margin-top: 10px; color: #9aa5b4; font-family: var(--mono); font-size: 8px; line-height: 1.5; text-align: center; }
.flow-team-list { gap: 10px; }
.flow-team { display: flex; align-items: center; gap: 12px; height: 66px; min-width: 0; padding: 12px 14px; border: 1px solid #e5eaf2; border-radius: 7px; background: #fff; transition: background .3s, border-color .3s; }
.flow-team-icon { display: grid; place-items: center; width: 31px; height: 31px; flex-shrink: 0; border: 1px solid #e9edf3; border-radius: 7px; background: #fafbfd; color: #8b9db6; }
.flow-team-icon svg { width: 16px; height: 16px; }
.flow-team > div { min-width: 0; }
.flow-team strong { display: block; color: #536277; font-size: 11px; font-weight: 500; line-height: 1.4; }
.flow-team-status { display: block; margin-top: 4px; color: #a0aab8; font-family: var(--mono); font-size: 9px; line-height: 1.4; }
.flow-team-check { display: flex; margin-left: auto; color: #b5c0cf; }
.flow-team-check svg { width: 15px; height: 15px; }
.flow-team[data-state="assigned"] { border-color: #c5d6eb; background: #f5f8fd; }
.flow-team[data-state="assigned"] .flow-team-icon { border-color: #dbe5f3; background: #eaf1fb; color: #5279aa; }
.flow-team[data-state="assigned"] .flow-team-status { color: #416b9f; }
.flow-team[data-state="assigned"] .flow-team-check { color: #718fb7; }
.flow-mobile-link { display: none; }
.flow-comparison { display: grid; grid-template-columns: minmax(0, 1fr) 185px 215px; align-items: center; gap: 24px; padding: 19px 32px; border-top: 1px solid #e7edf5; background: #f9fbfe; }
.flow-comparison-copy strong { display: block; color: #4a5b71; font-size: 13px; font-weight: 500; }
.flow-comparison-copy > span { display: block; margin-top: 6px; color: #8b98ab; font-family: var(--mono); font-size: 9px; }
.flow-metric { padding-left: 24px; border-left: 1px solid #e0e8f2; }
.flow-metric > span { display: block; margin-bottom: 4px; color: #8a97a9; font-size: 10px; }
.flow-metric > div { display: flex; align-items: baseline; gap: 9px; }
.flow-time { color: #8f9bac; font-family: var(--mono); font-size: 28px; font-weight: 450; line-height: 1.25; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.flow-metric small { color: #a2adbc; font-family: var(--mono); font-size: 9px; }
.flow-metric-after > span { color: #617eaa; }
.flow-metric-after .flow-time { color: #214d83; }
.hero-artwork.flow-demo figcaption { margin: 0; padding: 11px 22px; border-top: 1px solid #edf1f6; color: #8a96a7; font-family: var(--mono); font-size: 9px; line-height: 1.6; text-align: center; }
.preview-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1100px) {
  .flow-system { grid-template-columns: minmax(0, 1fr) 40px minmax(0, .95fr) 40px minmax(0, 1fr); padding: 24px; }
  .flow-column-count { display: none; }
  .flow-task { font-size: 11px; padding-inline: 10px; gap: 8px; }
  .flow-engine { padding-inline: 14px; }
  .flow-team { padding-inline: 10px; gap: 9px; }
  .flow-team strong { font-size: 10px; }
  .flow-team-check { display: none; }
}
@media (max-width: 760px) {
  .flow-demo { border-radius: 8px; }
  .preview-run { min-height: 44px; padding: 8px 10px; }
  .flow-system { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 16px; background: radial-gradient(ellipse at 50% 50%, #f3f7fd, transparent 60%); }
  .flow-column-label { min-height: 18px; margin-bottom: 8px; font-size: 10px; }
  .flow-column-count { display: block; font-size: 8px; }
  .flow-task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .flow-task { height: 33px; gap: 6px; padding: 6px 7px; font-size: 10px; white-space: nowrap; }
  .flow-task-icon svg { width: 13px; height: 13px; }
  .flow-task-state { width: 10px; height: 10px; }
  .flow-task-state svg { width: 11px; height: 11px; }
  .flow-task-state::before { width: 3px; height: 3px; }
  .flow-links { display: none; }
  .flow-mobile-link { display: flex; justify-content: center; height: 16px; color: #a1b6d1; }
  .flow-mobile-link svg { width: 14px; height: 16px; }
  .flow-core { padding-top: 0; }
  .flow-engine { display: grid; grid-template-columns: 1fr; padding: 12px 14px 10px; border-radius: 8px; box-shadow: 0 0 0 3px #f5f8fd; }
  .flow-engine-head { flex-direction: row; gap: 10px; text-align: left; }
  .flow-engine-head > img { width: 32px; height: 32px; }
  .flow-engine-head strong { font-size: 15px; }
  .flow-engine-head div > span { margin-top: 3px; font-size: 8px; }
  .flow-engine-actions, .flow-engine-rule { display: none; }
  .flow-engine-progress { margin-top: 11px; height: 2px; }
  .hero .flow-engine-status { min-height: 1.4em; margin-top: 7px; font-size: 10px; }
  .flow-team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .flow-team { height: 46px; padding: 7px; gap: 7px; border-radius: 6px; }
  .flow-team-icon { width: 23px; height: 23px; border-radius: 5px; }
  .flow-team-icon svg { width: 13px; height: 13px; }
  .flow-team strong { font-size: 10px; }
  .flow-team-status { margin-top: 2px; font-size: 8px; }
  .flow-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 0; padding: 12px 16px; }
  .flow-comparison-copy { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; gap: 10px; }
  .flow-comparison-copy strong { font-size: 10px; }
  .flow-comparison-copy > span { margin-top: 0; font-size: 8px; }
  .flow-metric { padding-left: 14px; }
  .flow-metric-before { border-left: 0; padding-left: 0; }
  .flow-metric > span { font-size: 9px; }
  .flow-time { font-size: 23px; }
  .flow-metric small { font-size: 8px; }
  .hero-artwork.flow-demo figcaption { padding: 8px 14px; font-size: 8px; text-align: left; }
}
@media (max-width: 360px) {
  .flow-system { padding-inline: 12px; }
  .flow-task { padding-inline: 6px; gap: 5px; font-size: 9px; }
  .flow-task-state { display: none; }
  .flow-team { gap: 5px; }
  .flow-comparison-copy > span { max-width: 17ch; text-align: right; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-demo[data-preview-flow] .flow-links .flow-link-signal { animation: none; opacity: 0; }
  .flow-task, .flow-team, .flow-engine-progress > span { transition: none; }
}
