/* Shared workflow presentation; tab behavior remains in site.js. */
.workflow-icon {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-b .stage-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px;
  border: 0;
  margin-bottom: 36px;
  overflow: visible;
}
.home-b .stage-tabs button {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-width: 0;
  min-height: 104px;
  padding: 20px;
  border: 1px solid #edf0f7;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}
.home-b .stage-tabs button:not(:last-child)::before {
  content: "";
  position: absolute;
  right: -19px;
  top: calc(50% - 4px);
  width: 7px;
  height: 7px;
  border-top: 1.5px solid #a3aec6;
  border-right: 1.5px solid #a3aec6;
  transform: rotate(45deg);
}
.home-b .stage-tabs button::after {
  content: "";
  display: block;
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  border-radius: 0 0 8px 8px;
  background: transparent;
}
.home-b .stage-tabs button:hover {
  border-color: #ccc8f8;
}
.home-b .stage-tabs button[aria-selected=true] {
  background: #eeecff;
  border-color: #e4e0ff;
  color: var(--bbd-primary);
  box-shadow: none;
}
.home-b .stage-tabs button[aria-selected=true]::after {
  inset: auto 0 0;
  height: 3px;
  background: var(--bbd-primary);
}
.home-b .stage-tabs button > .stage-tab-copy {
  display: block;
  min-width: 0;
  font-size: inherit;
  opacity: 1;
}
.stage-tab-copy strong {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
}
.stage-tab-copy small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: #657086;
}
.stage-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}
.home-b .stage-copy .stage-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  margin: 0;
}
.home-b .stage-copy .stage-highlights li::before { display: none; }
.stage-highlights .workflow-icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 8px;
  background: #eeecff;
  color: var(--bbd-primary);
}
.stage-highlights strong, .stage-highlights small {
  display: block;
  line-height: 1.6;
}
.stage-highlights strong { font-size: 13px; font-weight: 600; color: var(--ink); }
.stage-highlights small { font-size: 11px; color: #657086; margin-top: 3px; }
.product-overview-page .workflow-heading { margin-bottom: 32px; }
.product-overview-page .workflow-heading h2 { font-size: 28px; line-height: 1.5; }
.product-overview-page .workflow-heading p { font-size: 15px; color: #657086; margin-top: 8px; }
.product-overview-page .workflow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 56px;
}
.product-overview-page .workflow > .workflow-step {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
}
.workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 76px;
  width: calc(100% - 68px);
  height: 1px;
  background: #b9c5df;
}
.workflow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 24px;
  right: -8px;
  width: 6px;
  height: 6px;
  border-top: 1px solid #b9c5df;
  border-right: 1px solid #b9c5df;
  transform: rotate(45deg);
}
.product-overview-page .workflow .workflow-step-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #f0efff;
  color: var(--bbd-primary);
}
.workflow-step-icon .workflow-icon { width: 28px; height: 28px; }
.product-overview-page .workflow .workflow-step strong {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--ink);
}
.workflow-step p { font-size: 13px; line-height: 1.7; color: #657086; margin-top: 4px; }
.product-overview-page .workflow .workflow-output {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border: 1px solid #d9dfeb;
  border-radius: 4px;
  color: #657086;
  font-size: 11px;
  line-height: 1.7;
  font-weight: 400;
}
.product-overview-page .workflow .workflow-step:last-child .workflow-step-icon {
  color: #159fa8;
  background: #e5f8f9;
}
.product-overview-page .workflow .workflow-step:last-child .workflow-output {
  color: #159fa8;
  border-color: #b8e3e6;
}
@media (max-width: 1399px) {
  .home-b .stage-tabs { gap: 24px; }
  .home-b .stage-tabs button { padding: 18px 14px; gap: 12px; }
  .home-b .stage-tabs button:not(:last-child)::before { right: -16px; }
  .home-b .stage-tabs .workflow-icon { width: 32px; height: 32px; }
  .stage-tab-copy strong { font-size: 15px; }
  .stage-highlights { gap: 10px; }
  .home-b .stage-copy .stage-highlights li { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1100px) {
  .product-overview-page .workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .workflow-step:nth-child(3)::before, .workflow-step:nth-child(3)::after { display: none; }
}
@media (max-width: 959px) {
  .home-b .stage-tabs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 196px;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 4px 12px;
    margin-inline: -4px;
    scrollbar-width: thin;
    scrollbar-color: #ccc8f8 transparent;
    scroll-snap-type: x proximity;
  }
  .home-b .stage-tabs button { scroll-snap-align: start; }
  .home-b .stage-copy .stage-highlights li { flex-direction: row; }
}
@media (max-width: 599px) {
  .home-b .stage-tabs { margin-bottom: 24px; grid-auto-columns: 180px; }
  .home-b .stage-tabs button { min-height: 92px; padding: 16px 14px; gap: 12px; }
  .stage-tab-copy strong { font-size: 14px; }
  .stage-tab-copy small { font-size: 11px; }
  .stage-highlights { gap: 12px; margin-block: 22px; }
  .home-b .stage-copy .stage-highlights li { flex-direction: column; gap: 8px; }
  .product-overview-page .workflow-heading h2 { font-size: 23px; }
  .product-overview-page .workflow-heading p { font-size: 14px; }
  .product-overview-page .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-bottom: 36px; }
  .product-overview-page .workflow .workflow-step strong { font-size: 14px; }
  .workflow-step p { font-size: 12px; }
  .workflow-step:nth-child(3)::before, .workflow-step:nth-child(3)::after { display: block; }
  .workflow-step:nth-child(even)::before, .workflow-step:nth-child(even)::after { display: none; }
}
