#customer-stories {
  background: #f7f9fc;
}

.rx-case-header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.rx-case-title {
  margin: 0 0 .85rem;
  color: #11233f;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.rx-case-copy {
  margin: 0;
  color: #61718a;
  font-size: 1rem;
  line-height: 1.75;
}

.rx-case-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #ccd5e1;
  margin-bottom: 3rem;
}

.rx-case-tab {
  position: relative;
  padding: 1rem .75rem 1.1rem;
  border: 0;
  background: transparent;
  color: #63728a;
  cursor: pointer;
  font-size: clamp(.9rem, 1.7vw, 1.08rem);
  font-weight: 750;
  letter-spacing: .02em;
  transition: color .2s ease;
}

.rx-case-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: #0878f9;
  content: "";
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .2s ease, transform .2s ease;
}

.rx-case-tab:hover,
.rx-case-tab[aria-selected="true"] {
  color: #0d2444;
}

.rx-case-tab[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.rx-case-panel {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  min-height: 360px;
}

.rx-case-panel.is-switching {
  animation: rx-case-switch .32s ease both;
}

@keyframes rx-case-switch {
  from { opacity: .28; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rx-case-kicker {
  margin: 0 0 .65rem;
  color: #0878f9;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rx-case-name {
  margin: 0;
  color: #122543;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.rx-case-description {
  max-width: 32rem;
  margin: 1.35rem 0 1.85rem;
  color: #53637a;
  font-size: 1rem;
  line-height: 1.8;
}

.rx-case-quote {
  max-width: 34rem;
  margin: 2rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid #dbe5f0;
  color: #263b5a;
  font-size: 1rem;
  line-height: 1.75;
}

.rx-case-signature {
  margin: .7rem 0 0;
  color: #5c6b81;
  font-size: .86rem;
  font-weight: 650;
  text-align: right;
}

.rx-case-points {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rx-case-points li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .48rem .7rem;
  border: 1px solid #dbe5f0;
  border-radius: 999px;
  background: #fff;
  color: #38506f;
  font-size: .82rem;
  font-weight: 650;
}

.rx-case-points .material-symbols-outlined {
  color: #0878f9;
  font-size: 1rem;
}

.rx-case-image-shell {
  overflow: hidden;
  border: 1px solid #d9e1eb;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 55px rgba(18, 37, 67, .13);
}

.rx-case-image {
  display: block;
  width: 100%;
  aspect-ratio: 2.13 / 1;
  object-fit: contain;
  object-position: center top;
}

@media (max-width: 767px) {
  .rx-case-tabs { margin-bottom: 2rem; }
  .rx-case-tab { padding-right: .3rem; padding-left: .3rem; }
  .rx-case-panel { grid-template-columns: 1fr; gap: 1.8rem; min-height: 0; }
  .rx-case-description { margin: 1rem 0 1.35rem; }
  .rx-case-quote { margin-top: 1.5rem; }
}
