.theme-saas .saas-hero-subtitle {
  margin: 0 0 12px;
  color: #182451;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
}

.theme-saas .saas-hero-subtitle + p {
  margin-top: 0;
}

.theme-saas .saas-workflow-section {
  overflow: hidden;
}

.theme-saas .saas-workflow-shell {
  overflow: hidden;
  border: 1px solid #dbe0f2;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(45, 57, 110, 0.14);
}

.theme-saas .saas-workflow-toolbar {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 24px;
  border-bottom: 1px solid #e3e7f5;
}

.theme-saas .saas-workflow-toolbar > div:first-child {
  display: grid;
  gap: 3px;
}

.theme-saas .saas-workflow-toolbar strong {
  color: #182451;
  font-size: 17px;
}

.theme-saas .saas-workflow-label,
.theme-saas .saas-workflow-result > span:last-child {
  color: #64709d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-saas .saas-workflow-result {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-align: right;
}

.theme-saas .saas-workflow-metric {
  min-width: 68px;
  color: #725fee;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.theme-saas .saas-progress {
  height: 4px;
  overflow: hidden;
  background: #e8ebf7;
}

.theme-saas .saas-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #725fee;
  transform: scaleX(0.82);
  transform-origin: 0 50%;
  will-change: transform;
}

.theme-saas .saas-workflow-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  background: #f6f8ff;
  isolation: isolate;
}

.theme-saas .saas-workflow-station {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 20px;
  border-color: #dce1f2;
  border-radius: 16px;
  background: #ffffff;
  isolation: isolate;
}

.theme-saas .saas-station-active {
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 2px solid #725fee;
  border-radius: 15px;
  background: #f2efff;
  opacity: 0.14;
  pointer-events: none;
  will-change: opacity;
}

.theme-saas .saas-workflow-station:last-of-type .saas-station-active {
  opacity: 1;
}

.theme-saas .saas-station-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.theme-saas .saas-station-state {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid #dbe0f2;
  border-radius: 999px;
  background: #ffffff;
  padding: 4px 9px;
  color: #64709d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.theme-saas .saas-station-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.theme-saas .saas-workflow-station .saas-station-copy h3 {
  margin-top: 190px;
}

.theme-saas .saas-workflow-path {
  position: absolute;
  z-index: 2;
  top: 108px;
  left: 18px;
  width: calc(100% - 36px);
  height: 82px;
  overflow: visible;
  pointer-events: none;
}

.theme-saas .saas-workflow-path path {
  fill: none;
  stroke: #cbd2ea;
  stroke-width: 3;
  stroke-linecap: round;
}

.theme-saas .saas-workflow-path circle {
  fill: #ffffff;
  stroke: #9aa6d1;
  stroke-width: 3;
}

.theme-saas .saas-task-card {
  position: absolute;
  z-index: 4;
  top: 116px;
  right: 38px;
  display: grid;
  width: min(230px, calc(33.333% - 48px));
  min-width: 172px;
  min-height: 84px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #b9c1e4;
  border-radius: 13px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 16px 36px rgba(35, 47, 103, 0.18);
  will-change: transform;
}

.theme-saas .saas-task-card small,
.theme-saas .saas-task-card strong {
  display: block;
}

.theme-saas .saas-task-card small {
  margin-bottom: 2px;
  color: #7580a8;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.theme-saas .saas-task-card strong {
  overflow: hidden;
  color: #182451;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-saas .saas-task-check {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #725fee;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.theme-saas .saas-task-time {
  color: #64709d;
  font-size: 9px;
  font-weight: 700;
}

@media (max-width: 800px) {
  .theme-saas .saas-workflow-section {
    overflow: visible;
  }

  .theme-saas .saas-workflow-shell {
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(45, 57, 110, 0.1);
  }

  .theme-saas .saas-workflow-toolbar {
    align-items: flex-start;
    padding: 18px;
  }

  .theme-saas .saas-workflow-result {
    display: grid;
    gap: 0;
  }

  .theme-saas .saas-workflow-board {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .theme-saas .saas-workflow-station {
    min-height: 230px;
  }

  .theme-saas .saas-workflow-station .saas-station-copy h3 {
    margin-top: 72px;
  }

  .theme-saas .saas-workflow-path {
    display: none;
  }

  .theme-saas .saas-task-card {
    position: static;
    width: 100%;
    min-width: 0;
    min-height: 76px;
    box-shadow: none;
    transform: none;
    will-change: auto;
  }

  .theme-saas .saas-progress-fill,
  .theme-saas .saas-station-active {
    will-change: auto;
  }
}

@media (max-width: 480px) {
  .theme-saas .saas-workflow-toolbar {
    flex-direction: column;
    gap: 12px;
  }

  .theme-saas .saas-workflow-result {
    text-align: left;
  }

  .theme-saas .saas-workflow-station {
    min-height: 210px;
  }

  .theme-saas .saas-station-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-saas .saas-task-card,
  .theme-saas .saas-progress-fill,
  .theme-saas .saas-station-active {
    will-change: auto;
  }
}
