.case-showcase {
  --cs-navy: #1c284a;
  --cs-blue: #1c54db;
  --cs-mint: #9cf9b1;
  color: var(--cs-navy);
  font-family: "Poppins", sans-serif;
}

.case-showcase .cs-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 26px;
  padding: 0 0 10px;
  border-bottom: 1px solid #d7ddea;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.case-showcase .cs-tab {
  display: inline-flex;
  flex: 1 1 0;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 16px;
  color: #53617d;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 500 0.92rem/1.35 "Poppins", sans-serif;
  white-space: normal;
  cursor: pointer;
}

.case-showcase .cs-tab span {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.7;
}

.case-showcase .cs-tab:hover {
  color: var(--cs-blue);
  background: #f0f4ff;
}

.case-showcase .cs-tab[aria-selected="true"] {
  color: #fff;
  background: var(--cs-blue);
  border-color: var(--cs-blue);
}

.case-showcase .cs-tab:focus-visible,
.case-showcase .cs-panel:focus-visible {
  outline: 3px solid var(--cs-blue);
  outline-offset: 4px;
}

.case-showcase .cs-panel[hidden] {
  display: none !important;
}

.case-showcase .cs-case-intro {
  max-width: 840px;
  margin-bottom: 24px;
}

.case-showcase .cs-sector {
  margin: 0 0 9px;
  color: var(--cs-blue);
  font-size: 0.875rem;
  font-weight: 600;
}

.case-showcase .cs-case-intro h3 {
  margin: 0;
  color: var(--cs-navy);
  font-size: clamp(1.625rem, 2.3vw, 1.875rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.case-showcase .cs-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  border: 1px solid #d9e1ee;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.case-showcase .cs-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 22px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.case-showcase .cs-stage:not(:last-child)::after {
  position: absolute;
  top: 116px;
  right: -12px;
  z-index: 2;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: var(--cs-blue);
  background: #fff;
  border: 1px solid #d9e1ee;
  border-radius: 50%;
  font: 500 14px/1 "Poppins", sans-serif;
  content: "→";
}

.case-showcase .cs-stage + .cs-stage {
  border-left: 1px solid #d9e1ee;
}

.case-showcase .cs-stage-2 {
  background: #f2f5ff;
}

.case-showcase .cs-stage-label {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 22px;
  margin: 0 0 14px;
  color: #4f5d78;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.case-showcase .cs-stage-label > span {
  color: var(--cs-blue);
  font-variant-numeric: tabular-nums;
}

.case-showcase .cs-visual {
  display: grid;
  width: 100%;
  height: 140px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--cs-blue);
}

.case-showcase .cs-icon {
  display: block;
  flex-shrink: 0;
  width: 74px;
  height: 74px;
  max-width: 100%;
  overflow: visible;
}

.case-showcase .cs-stage h4 {
  margin: 0 0 10px;
  color: var(--cs-navy);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.case-showcase .cs-stage-copy {
  margin: 0 0 16px;
  color: #4a5670;
  font-size: 1rem;
  line-height: 1.65;
}

.case-showcase .cs-insight-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 9px;
  background: #e0e8ff;
  border-radius: 4px;
  color: var(--cs-blue);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.case-showcase .cs-outcome {
  width: 100%;
  margin-top: auto;
  padding: 14px 0 0;
  border-top: 3px solid var(--cs-mint);
}

.case-showcase .cs-outcome strong,
.case-showcase .cs-outcome span,
.case-showcase .cs-outcome small {
  display: block;
}

.case-showcase .cs-outcome strong {
  margin: 0 0 6px;
  color: var(--cs-blue);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.case-showcase .cs-outcome span {
  max-width: 29ch;
  color: var(--cs-navy);
  font-size: 0.98rem;
  line-height: 1.5;
}

.case-showcase .cs-outcome small {
  margin-top: 8px;
  color: #59647a;
  font-size: 0.875rem;
  line-height: 1.5;
}

.case-showcase .cs-footnote {
  max-width: 950px;
  margin: 14px 0 0;
  color: #667085;
  font-size: 0.875rem;
  line-height: 1.6;
}

.case-showcase .cs-poster {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid #d5dceb;
  border-radius: 10px;
}

.case-showcase .cs-poster span {
  max-width: 13ch;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

.case-showcase .cs-poster-muted {
  background: #f7f8fb;
  color: #68758f;
}

.case-showcase .cs-poster-clear {
  background: #edfdf2;
  border-color: #b9e9c5;
  color: var(--cs-navy);
}

.case-showcase .cs-urgent,
.case-showcase .cs-conversation {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  color: var(--cs-blue);
}

.case-showcase .cs-urgent > span,
.case-showcase .cs-conversation > span {
  font-size: 0.92rem;
  line-height: 1.6;
}

.case-showcase .cs-urgent strong,
.case-showcase .cs-conversation strong {
  color: var(--cs-navy);
  font-size: 0.95rem;
  font-weight: 600;
}

.case-showcase .cs-small-icon {
  width: 36px;
  height: 36px;
  margin-left: auto;
  color: var(--cs-navy);
}

.case-showcase .cs-people {
  display: flex;
  justify-content: center;
  gap: 9px;
  width: 100%;
}

.case-showcase .cs-people > span {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
}

.case-showcase .cs-people .cs-icon {
  width: clamp(44px, 5vw, 65px);
  height: clamp(44px, 5vw, 65px);
  background: #e0e8ff;
  border-radius: 50%;
}

.case-showcase .cs-people b {
  color: var(--cs-navy);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.case-showcase .cs-benefits,
.case-showcase .cs-message-match {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 270px;
}

.case-showcase .cs-benefits span,
.case-showcase .cs-message-match span {
  padding: 8px 15px;
  border-radius: 5px;
  background: #edf0f6;
  color: #6e7b94;
  font-size: 0.875rem;
  line-height: 1.4;
}

.case-showcase .cs-message-match span {
  border-left: 3px solid var(--cs-mint);
  background: #f0fbf3;
  color: var(--cs-navy);
}

.case-showcase .cs-social-proof {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 270px;
  text-align: center;
}

.case-showcase .cs-social-proof > span {
  padding: 7px 10px;
  background: #e5fbea;
  color: var(--cs-navy);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.case-showcase .cs-mini-steps {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-showcase .cs-mini-steps li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--cs-navy);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.case-showcase .cs-mini-steps li span {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  background: var(--cs-mint);
  border-radius: 50%;
  color: var(--cs-navy);
  font-size: 0.875rem;
  font-weight: 600;
}

.case-showcase .cs-four-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 10px;
}

.case-showcase .cs-four-steps li {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.875rem;
}

.case-showcase .cs-benefit-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  max-width: 270px;
}

.case-showcase .cs-benefit-cloud span {
  padding: 8px 11px;
  color: #6c7891;
  background: #edf0f6;
  border: 1px solid #d9e0ec;
  border-radius: 7px;
  font-size: 0.875rem;
  line-height: 1.35;
  transform: rotate(-5deg);
}

.case-showcase .cs-benefit-cloud span:nth-child(even) {
  transform: rotate(5deg);
}

.case-showcase .cs-question {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.case-showcase .cs-question > span {
  padding: 13px;
  color: var(--cs-navy);
  background: #fff;
  border: 1px solid #cbd7f6;
  border-radius: 12px 12px 12px 0;
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .case-showcase .cs-stage:not(:last-child)::after {
    content: none;
  }

  .case-showcase .cs-tab {
    flex: 1 1 0;
  }

  .case-showcase .cs-stage {
    padding: 22px;
  }

  .case-showcase .cs-stages {
    grid-template-columns: 1fr;
  }

  .case-showcase .cs-stage + .cs-stage {
    border-left: 0;
    border-top: 1px solid #d9e1ee;
  }

  .case-showcase .cs-stage {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    column-gap: 28px;
    align-content: start;
  }

  .case-showcase .cs-stage-label {
    grid-column: 1 / -1;
  }

  .case-showcase .cs-visual {
    grid-column: 1;
    grid-row: 2 / span 4;
    height: 140px;
    margin: 0;
    align-self: center;
  }

  .case-showcase .cs-stage h4,
  .case-showcase .cs-stage-copy,
  .case-showcase .cs-insight-tag,
  .case-showcase .cs-outcome {
    grid-column: 2;
  }

  .case-showcase .cs-insight-tag {
    justify-self: start;
  }

  .case-showcase .cs-stage-copy {
    margin-bottom: 16px;
  }

  .case-showcase .cs-people b {
    font-size: 0.875rem;
    white-space: normal;
  }

  .case-showcase .cs-poster {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    text-align: center;
  }

  .case-showcase .cs-poster span {
    max-width: 18ch;
    font-size: 0.875rem;
  }

  .case-showcase .cs-small-icon {
    display: none;
  }
}

@media (max-width: 580px) {
  .case-showcase .cs-tabs {
    margin-bottom: 24px;
  }

  .case-showcase .cs-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 48px;
    padding: 11px 13px;
    font-size: 0.86rem;
  }

  .case-showcase .cs-case-intro h3 {
    font-size: 1.625rem;
  }

  .case-showcase .cs-stages {
    border-radius: 12px;
  }

  .case-showcase .cs-stage {
    display: flex;
    padding: 24px;
  }

  .case-showcase .cs-stage-label {
    margin-bottom: 14px;
  }

  .case-showcase .cs-visual {
    max-width: 310px;
    height: 142px;
    margin: 0 auto 18px;
    align-self: center;
  }

  .case-showcase .cs-poster {
    flex-direction: row;
    gap: 15px;
    text-align: left;
  }

  .case-showcase .cs-poster span {
    max-width: 14ch;
    font-size: 0.95rem;
  }

  .case-showcase .cs-people .cs-icon {
    width: 64px;
    height: 64px;
  }

  .case-showcase .cs-people b {
    font-size: 0.875rem;
  }

  .case-showcase .cs-stage h4 {
    font-size: 1.25rem;
  }

  .case-showcase .cs-outcome {
    margin-top: 4px;
  }

  .case-showcase .cs-outcome strong {
    font-size: 2.05rem;
  }
}
