/* BridgeMD homepage, time saved per applicant (templates/home/_workflow.html). Loaded after company.css.
   One white card on the soft tint. Two bars on one scale: by hand in five grey segments, each named inside with its icon, and
   with BridgeMD in five short blue segments followed by the saved time, a dashed space labelled "2 hours back". Under the bars,
   one column per step with both times. The first time the card scrolls into view the grey segments grow in left to right, then
   the blue ones, then the saved space (company.features.js adds is-armed and is-in); without script or with reduced motion
   everything rests in its final state. */
body.cx-page .cx-wf { scroll-margin-top: 20px; padding: clamp(64px, 9vw, 112px) 0; background: var(--tint); }
body.cx-page .cx-wf-head { max-width: 820px; margin-bottom: clamp(28px, 4vw, 44px); }
body.pub-marketing.cx-page .cx-wf-head .cx-h2 { margin: 0; font-weight: 700; }

body.cx-page .cx-wf-card { --hand-a: #d5dce7; --hand-b: #c6cfdc; --bmd: var(--accent); padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(10, 30, 70, .05), 0 30px 60px -38px rgba(10, 30, 70, .4); }

/* Bars */
body.cx-page .cx-wf-line { display: grid; grid-template-columns: 150px minmax(0, 1fr) 120px; align-items: center; gap: 20px; }
body.cx-page .cx-wf-line + .cx-wf-line { margin-top: 18px; }
body.cx-page .cx-wf-who { font-size: 16px; font-weight: 600; color: var(--text); }
body.cx-page .cx-wf-who.is-bmd { color: var(--accent); }
body.cx-page .cx-wf-sum { justify-self: end; font-family: var(--f-disp); font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
body.cx-page .cx-wf-sum.is-bmd { color: var(--accent); }
body.cx-page .cx-wf-track { position: relative; display: flex; height: 64px; }
body.cx-page .cx-wf-seg { position: relative; flex: 0 0 var(--w); min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden;
  border-right: 2px solid #fff; background: var(--hand-a); color: #3c4a66; font-size: 15px; transform-origin: left; }
body.cx-page .cx-wf-seg:nth-child(even) { background: var(--hand-b); }
body.cx-page .cx-wf-seg:first-child { border-radius: 14px 0 0 14px; }
body.cx-page .cx-wf-seg.is-hand:nth-child(5) { border-radius: 0 14px 14px 0; border-right: 0; }
body.cx-page .cx-wf-seg .ico { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.cx-page .cx-wf-seg b { font-weight: 600; white-space: nowrap; }
body.cx-page .cx-wf-seg.is-narrow b { display: none; }            /* a short step shows its icon only; the columns below name it */
body.cx-page .cx-wf-seg.is-bmd { background: var(--bmd); border-right-color: rgba(255, 255, 255, .55); }
body.cx-page .cx-wf-seg.is-bmd:nth-child(even) { background: #2c6fc9; }
body.cx-page .cx-wf-seg.is-bmd:nth-child(5) { border-radius: 0 14px 14px 0; border-right: 0; }
body.cx-page .cx-wf-saved { flex: 1 1 auto; display: grid; place-items: center; margin-left: 12px; border: 2px dashed #b9cdeb; border-radius: 14px; background: #f5f8fe; }
body.cx-page .cx-wf-saved b { font-family: var(--f-disp); font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.02em; color: var(--accent); }

/* One column per step */
body.cx-page .cx-wf-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: 36px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); list-style: none; }
body.cx-page .cx-wf-steps li { display: grid; justify-items: start; gap: 6px; min-width: 0; }
body.cx-page .cx-wf-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 12px; background: var(--tint); color: var(--accent); }
body.cx-page .cx-wf-ic .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.cx-page .cx-wf-steps b { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
body.cx-page .cx-wf-t { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); }
body.cx-page .cx-wf-t s { margin-right: 6px; font-weight: 500; color: var(--muted); text-decoration-thickness: 1.5px; }
body.cx-page .cx-wf-note { margin: 14px 4px 0; font-size: 13.5px; color: var(--muted); }

/* Grow in once, when the card comes into view */
@media (prefers-reduced-motion: no-preference) {
  body.cx-page .cx-wf-card.is-armed .cx-wf-seg { transform: scaleX(0); }
  body.cx-page .cx-wf-card.is-armed .cx-wf-saved { opacity: 0; }
  body.cx-page .cx-wf-card.is-in .cx-wf-seg { transform: none; transition: transform .45s var(--ease, ease); }
  body.cx-page .cx-wf-card.is-in .cx-wf-seg.is-hand { transition-delay: calc(var(--i) * .3s); }
  body.cx-page .cx-wf-card.is-in .cx-wf-seg.is-bmd { transition-delay: calc(1.6s + var(--i) * .08s); }
  body.cx-page .cx-wf-card.is-in .cx-wf-saved { opacity: 1; transition: opacity .6s ease 2.2s; }
}

@media (max-width: 899px) {
  body.cx-page .cx-wf-line { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  body.cx-page .cx-wf-track { grid-column: 1 / -1; grid-row: 2; height: 52px; }
  body.cx-page .cx-wf-sum { grid-row: 1; grid-column: 2; font-size: 22px; }
  body.cx-page .cx-wf-seg b { display: none; }
  body.cx-page .cx-wf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
}
@media (max-width: 640px) {
  body.cx-page .cx-wf-seg .ico { width: 16px; height: 16px; }
  body.cx-page .cx-wf-saved b { font-size: 17px; }
}
