/* Scoped to Workflow: overflow:clip keeps the dock attached to viewport scrolling. */
body.workflow-body { overflow-x: clip; }
.workflow-page.sp-page { overflow-x: clip; --bench-nav-height: 65px; --bench-dock-height: 160px; }
.workflow-page #benchmark-comparison { overflow: visible; }
#benchmark-comparison::before, #benchmark-comparison::after { animation: none; }
.bench-story { position: relative; z-index: 3; }
.bench-dock { position: sticky; top: calc(var(--bench-nav-height) + 8px); z-index: 15; border: 1px solid #dbe5ed; border-radius: 18px; background: #ffffffed; backdrop-filter: blur(20px); box-shadow: 0 12px 38px #15334a12; }
.bench-dock-heading { padding: 11px 18px 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bench-dock-heading h3 { color: #12233d; font-size: 13px; font-weight: 700; margin: 0; }
.bench-dock-heading p { display: none; }
.bench-position { display: flex; align-items: center; gap: 12px; color: #475569; font-size: 12px; }
.bench-position strong { font-variant-numeric: tabular-nums; color: #325ff4; font-size: 18px; }
.bench-stage-links { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; padding: 0 12px 10px; }
.bench-stage-link { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid transparent; border-radius: 10px; color: #64748b; background: #f3f6fa; text-decoration: none; font-size: 12px; font-weight: 600; transition: color .25s, background .25s, box-shadow .25s; white-space: nowrap; }
.bench-stage-link > span { width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0; border-radius: 7px; background: white; font-size: 11px; font-variant-numeric: tabular-nums; }
.bench-stage-link:hover { background: #e8efff; color: #244bcc; }
.bench-stage-link[aria-current="step"] { background: #142b4d; color: #fff; box-shadow: 0 5px 12px #142b4d20; }
.bench-stage-link[aria-current="step"] > span { background: #74d3a7; color: #113f33; }
.bench-stage-link.is-complete > span { background: #dff3e8; color: #17764b; }
.bench-progress { height: 2px; background: #e8edf4; margin: 0 18px 10px; overflow: hidden; border-radius: 3px; }
.bench-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg,#325ff4,#60c578); transition: width .15s linear; }
.bench-column-guide { display: none; grid-template-columns: 1fr 1fr; gap: 20px; padding: 12px 24px; font-size: 10px; font-weight: 700; letter-spacing: .11em; color: #64748b; text-transform: uppercase; }
.bench-column-guide span:last-child { color: #217156; }
.bench-phase { position: relative; margin-top: 30px; border: 1px solid #e0e7ee; background: #fff; border-radius: 18px; padding: 28px; scroll-margin-top: calc(var(--bench-nav-height) + var(--bench-dock-height) + 28px); transition: border-color .4s, box-shadow .4s, opacity .6s, transform .6s; }
.bench-enhanced .bench-phase { opacity: 0; }
.bench-enhanced .bench-phase .bench-comparison { transform: translateY(14px); transition: transform .6s; }
.bench-enhanced .bench-phase.is-visible { opacity: 1; }
.bench-enhanced .bench-phase.is-visible .bench-comparison { transform: none; }
.bench-phase.is-active { border-color: #8ea9ed; box-shadow: 0 14px 45px #325ff411; }
.bench-phase-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 24px; }
.bench-phase-heading { display: flex; align-items: center; gap: 16px; }
.bench-phase-number { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid #dae4f3; border-radius: 13px; color: #325ff4; font-size: 18px; font-weight: 700; background: #f1f5ff; }
.bench-phase-head h3 { color: #142b4d; font-size: clamp(18px,2vw,24px); letter-spacing: -.025em; margin: 0; }
.bench-phase-eyebrow { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; color: #64748b; font-weight: 700; margin-bottom: 5px; }
.bench-outcome { display: flex; align-items: center; gap: 8px; color: #19744e; background: #e9f7ef; border: 1px solid #d3ebdc; padding: 9px 13px; border-radius: 100px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bench-outcome::before { content: '↗'; font-size: 17px; }
.bench-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bench-lane { padding: 25px; border-radius: 13px; border: 1px solid #e7eaf0; background: #f8f9fb; display: flex; flex-direction: column; }
.bench-lane > h4 { display: flex; align-items: center; gap: 9px; color: #687384; font-size: 12px; margin-bottom: 17px; }
.bench-lane > p { color: #5d687a; font-size: 14px; line-height: 1.85; margin: 0 0 24px; }
.bench-lane-ai { background: linear-gradient(125deg,#f0f5ff,#eff9f3); border-color: #dae9e5; position: relative; }
.bench-lane-ai > h4 { color: #244b7d; }
.bench-lane-ai > p { color: #263e55; }
.bench-lane-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #e6eaf0; font-size: 16px; }
.bench-lane-ai .bench-lane-icon { background: #325ff4; color: white; }
.bench-duration { margin-top: auto; padding-top: 15px; border-top: 1px solid #e1e6ee; font-weight: 600; font-size: 12px; color: #697284; }
.bench-lane-ai .bench-duration { color: #217352; border-color: #d6e8df; }
.bench-signal { height: 3px; margin: 18px 0 0; background: #dce6e0; border-radius: 3px; overflow: hidden; }
.bench-signal::after { content: ''; display: block; width: 40%; height: 100%; background: linear-gradient(90deg,transparent,#325ff4,#60c578,transparent); transform: translateX(-100%); }
.bench-phase.is-active .bench-signal::after { animation: bench-signal 3.2s ease-in-out infinite; }
@keyframes bench-signal { to { transform: translateX(350%); } }
.bench-stage-link:focus-visible { outline: 3px solid #325ff4; outline-offset: 3px; }
@media(max-width:1000px) {
  .bench-stage-link { padding: 10px 8px; font-size: 11px; gap: 6px; }
  .bench-position > span { display: none; }
}
@media(max-width:680px) {
  .bench-dock { border-radius: 13px; }
  .bench-dock-heading { padding: 10px 12px 7px; }
  .bench-dock-heading p { display: none; }
  .bench-dock-heading h3 { font-size: 12px; }
  .bench-stage-links { display: flex; overflow-x: auto; padding: 0 10px 10px; scrollbar-width: thin; scroll-behavior: smooth; }
  .bench-stage-link { flex-shrink: 0; padding: 6px 9px; font-size: 11px; }
  .bench-position strong { font-size: 18px; }
  .bench-column-guide { display: none; }
  .bench-progress { margin: 0 12px 8px; }
  .bench-phase { padding: 18px; margin-top: 20px; }
  .bench-phase-head { align-items: flex-start; flex-direction: column; gap: 12px; padding-bottom: 18px; }
  .bench-phase-number { width: 38px; height: 38px; font-size: 15px; }
  .bench-phase-heading { gap: 12px; }
  .bench-comparison { grid-template-columns: 1fr; gap: 12px; }
  .bench-lane { padding: 20px; }
  .bench-lane > p { margin-bottom: 16px; }
  .bench-outcome { align-self: flex-start; padding: 6px 10px; }
}
@media(prefers-reduced-motion:reduce) {
  .bench-phase, .bench-stage-link, .bench-progress-fill { transition: none; }
  .bench-enhanced .bench-phase { opacity: 1; transform: none; }
  .bench-enhanced .bench-phase .bench-comparison { transform: none; transition: none; }
  .bench-phase.is-active .bench-signal::after { animation: none; transform: none; width: 100%; }
  .bench-stage-links { scroll-behavior: auto; }
}

/* Two journeys: paper handoffs on the left, connected engineering on the right. */
.workflow-page #benchmark-comparison { background: linear-gradient(180deg, #f8fbff, #ffffff); }
.bench-dock { border: 1px solid var(--sp-card-border); background: #fffffff5; box-shadow: 0 8px 28px #325ff412; border-radius: 12px; }
.bench-dock-heading h3 { color: var(--sp-primary); }
.bench-position { color: var(--sp-muted); font-size: 11px; }
.bench-position strong { color: var(--sp-accent); }
.bench-stage-link { background: #f3f6fc; color: var(--sp-secondary); border-color: transparent; border-radius: 7px; }
.bench-stage-link > span { background: #ffffff; color: var(--sp-muted); border-radius: 4px; }
.bench-stage-link:hover { color: var(--sp-accent); background: #eaf0fe; }
.bench-stage-link[aria-current="step"] { color: #ffffff; background: var(--sp-gradient); box-shadow: 0 3px 12px #325ff425; }
.bench-stage-link[aria-current="step"] > span { color: #ffffff; background: #ffffff26; }
.bench-stage-link.is-complete > span { background: #e3f4e9; color: #28734e; }
.bench-column-guide { color: var(--sp-muted); }
.bench-column-guide span:last-child { color: #99ddbd; }
.bench-progress { background: #eaf0f7; }
.bench-progress-fill { background: var(--sp-gradient); }
.bench-stage-links { scrollbar-color: #bacbe8 #f3f6fc; }
.bench-stage-links::-webkit-scrollbar { height: 4px; }
.bench-stage-links::-webkit-scrollbar-track { background: #f3f6fc; }
.bench-stage-links::-webkit-scrollbar-thumb { background: #bacbe8; border-radius: 4px; }
.bench-phase { border: 0; border-bottom: 1px solid #d8e0e7; border-radius: 0; background: transparent; padding: 14px 0 26px; margin-top: 18px; }
.bench-phase.is-active { box-shadow: none; border-color: #bdccd6; }
.bench-phase-head { padding: 0 0 14px; }
.bench-phase-number { width: 46px; height: 40px; border: none; background: transparent; color: #bccbd6; font-size: 34px; font-weight: 400; letter-spacing: -.09em; justify-content: start; line-height: 1; }
.bench-phase.is-active .bench-phase-number { color: #325ff4; }
.bench-phase-head h3 { font-size: clamp(19px,1.8vw,23px); }
.bench-phase-eyebrow { color: #6c8194; }
.bench-outcome { background: #fff; border-color: #ceded6; box-shadow: 0 3px 10px #0c2c2505; }
.bench-comparison { gap: 20px; position: relative; align-items: stretch; }
.bench-comparison::after { content: '→'; position: absolute; left: 50%; top: 106px; transform: translateX(-50%); z-index: 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #ffffff; border: 1px solid #d6e2f4; color: #325ff4; font-size: 19px; }
.bench-lane { background: #ffffff; border-color: #e0e7f0; padding: 20px; border-radius: 12px; }
.bench-lane > h4 { color: var(--sp-secondary); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; margin-bottom: 12px; }
.bench-lane > p { color: var(--sp-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.bench-lane-icon { background: #edf1f8; color: #64748b; border-radius: 5px; }
.bench-duration { border-color: #e5ebf4; color: var(--sp-muted); font-size: 11px; padding-top: 10px; }
.bench-lane-ai { background: var(--sp-gradient-soft); border: 1px solid #cfdfed; box-shadow: 0 10px 28px #325ff409; }
.bench-lane-ai > h4 { color: var(--sp-accent); }
.bench-lane-ai .bench-lane-icon { background: var(--sp-gradient); color: #ffffff; }
.bench-lane-ai > p { color: var(--sp-secondary); }
.bench-lane-ai .bench-duration { color: #28734e; border-color: #d6e7dd; }
.bench-signal { background: #dce8e2; }
.bench-manual-visual { height: 160px; display: flex; align-items: center; justify-content: center; gap: 20px; border-top: 1px solid #e5ebf4; border-bottom: 1px solid #e5ebf4; margin: 0 0 14px; }
.bench-paper-stack { width: 70px; height: 92px; padding: 10px; background: #fff; box-shadow: 4px 4px 0 #e0e6f0,8px 8px 0 #edf1f8; border: 1px solid #d6dfed; border-radius: 4px; transform: rotate(-8deg); flex-shrink: 0; }
.bench-paper-stack > span { color: #566d90; font-weight: 700; font-size: 14px; }
.bench-paper-stack > i { display: block; height: 3px; margin-top: 6px; background: #dfe6f2; width: 100%; }
.bench-paper-stack > i:nth-of-type(2) { width: 70%; }
.bench-paper-stack > small { display: block; margin-top: 9px; font-size: 7px; letter-spacing: .05em; color: #74859e; }
.paper-output { transform: rotate(7deg) translateY(12px); }
.bench-handoff { width: 114px; display: flex; flex-direction: column; gap: 10px; align-items: center; color: #8090a7; }
.bench-handoff-line { display: block; width: 100%; height: 1px; background: repeating-linear-gradient(90deg,#b3c2d7 0 5px,transparent 5px 10px); position: relative; }
.bench-handoff-line::after { content: ''; position: absolute; right: -1px; top: -3px; width: 6px; height: 6px; border-top: 1px solid #93a5bf; border-right: 1px solid #93a5bf; transform: rotate(45deg); }
.bench-handoff > span:nth-child(2) { font-size: 9px; }
.bench-handoff > b { font-size: 23px; font-weight: 400; opacity: .6; }
.bench-engine-visual { margin: 0 0 14px; background-color: #ffffff; background-image: linear-gradient(#325ff40b 1px,transparent 1px),linear-gradient(90deg,#325ff40b 1px,transparent 1px); background-size: 20px 20px; border: 1px solid #d7e2f0; border-radius: 10px; overflow: hidden; position: relative; height: 160px; }
.bench-engine-caption { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; border-bottom: 1px solid #e5edf6; color: #64748b; font-size: 8px; letter-spacing: .12em; }
.bench-engine-light { display: block; width: 5px; height: 5px; border-radius: 50%; background: #60c578; box-shadow: 0 0 9px #60c57840; }
.bench-engine-visual svg { width: 100%; height: 116px; stroke: #7292b2; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.bench-engine-visual svg text { fill: #61758c; stroke: none; font-size: 7px; font-family: 'DM Sans',sans-serif; letter-spacing: .6px; }
.engine-flow { stroke: #325ff4; stroke-width: 2; stroke-dasharray: 6 4; }
.engine-node { fill: #eff9f1; stroke: #60c578; stroke-width: 1.5; }
.bench-engine-coordinates { color: #8b9ab0; font-size: 6px; letter-spacing: .1em; position: absolute; bottom: 7px; left: 13px; right: 13px; display: flex; justify-content: space-between; }
.bench-phase.is-active .engine-flow { animation: bench-route-flow 2s linear infinite; }
.bench-phase.is-active .engine-node { animation: bench-node-glow 3s ease-in-out infinite; }
.bench-phase.is-active .engine-scan { animation: bench-engine-scan 4.5s ease-in-out infinite; }
.bench-phase.is-active .bench-paper-stack { animation: bench-paper-drift 5s ease-in-out infinite; }
.bench-phase.is-active .paper-output { animation-delay: -2.5s; }
@keyframes bench-route-flow { to { stroke-dashoffset: -40; } }
@keyframes bench-node-glow { 50% { fill: #60c57833; filter: drop-shadow(0 0 4px #60c57844); } }
@keyframes bench-engine-scan { 0%,100% { transform: translateX(0); opacity: 0; } 15%,85% { opacity: .3; } 95% { transform: translateX(295px); opacity: 0; } }
@keyframes bench-paper-drift { 50% { translate: 0 -5px; } }
@media(max-width:1000px) {
  .bench-lane { padding: 18px; }
  .bench-manual-visual { gap: 12px; }
  .bench-handoff { width: 80px; }
  .bench-paper-stack { width: 62px; height: 88px; }
}
@media(max-width:680px) {
  .bench-phase { padding: 10px 0 20px; margin-top: 14px; }
  .bench-phase-head { flex-direction: row; align-items: center; gap: 8px; }
  .bench-phase-heading { gap: 12px; }
  .bench-phase-number { font-size: 30px; width: 36px; height: 36px; }
  .bench-phase-head h3 { font-size: 17px; }
  .bench-phase-eyebrow { font-size: 8px; }
  .bench-outcome { display: inline-flex; margin-left: 0; align-self: center; font-size: 10px; padding: 5px 8px; gap: 4px; }
  .bench-comparison { gap: 12px; }
  .bench-comparison::after { display: none; }
  .bench-lane { padding: 16px; }
  .bench-manual-visual { height: 140px; }
  .bench-engine-visual { height: 144px; }
  .bench-engine-visual svg { height: 104px; }
  .bench-lane > p { font-size: 13px; line-height: 1.75; margin-bottom: 12px; }
  .bench-paper-stack { width: 64px; }
}
@media(prefers-reduced-motion:reduce) {
  .bench-phase.is-active .engine-flow, .bench-phase.is-active .engine-node,
  .bench-phase.is-active .engine-scan, .bench-phase.is-active .bench-paper-stack { animation: none; }
}
