.upendo-features-with-progress {
  --features-progress-text: #0f172a;
  --features-progress-description: #475569;
  --features-progress-muted: #334155;
  --features-progress-line: rgba(15, 23, 42, 0.08);
  --features-progress-panel: #ffffff;
  --features-progress-soft: rgba(255, 255, 255, 0.9);
  --features-progress-accent: #01233F;
  --features-progress-accent-rgb: 1, 35, 63;
  --features-progress-accent-soft: rgba(var(--features-progress-accent-rgb), 0.11);
  position: relative;
  overflow: hidden;
  color: var(--features-progress-text);
}

.upendo-features-with-progress--default-background {
  background: #ffffff;
}

.upendo-features-with-progress * {
  box-sizing: border-box;
}

.upendo-features-with-progress__container {
  position: relative;
  z-index: 2;
}

.upendo-features-with-progress__header {
  max-width: 65rem;
  margin: 0 auto clamp(2.25rem, 4.3vw, 3.5rem);
  text-align: center;
}

.upendo-features-with-progress__section-eyebrow {
  margin: 0 0 0.48rem;
  color: var(--features-progress-accent);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.upendo-features-with-progress__heading {
  margin: 0;
  color: #01233F;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.18;
}

.upendo-features-with-progress__intro {
  max-width: 55rem;
  margin: 0.85rem auto 0;
  color: var(--features-progress-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.upendo-features-with-progress__intro p:last-child {
  margin-bottom: 0;
}

.upendo-features-with-progress .upendo-features-with-progress__layout {
  display: grid !important;
  grid-template-columns: minmax(20rem, 34.1875rem) minmax(26rem, 40rem);
  gap: clamp(2rem, 5.5vw, 5rem);
  align-items: center;
  justify-content: center;
}

.upendo-features-with-progress .upendo-features-with-progress__feature-rail {
  display: grid !important;
  gap: 1.05rem;
}

.upendo-features-with-progress .upendo-features-with-progress__feature {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  gap: 0.86rem;
  width: 100%;
  min-height: 5.85rem;
  align-items: flex-start !important;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none;
  color: var(--features-progress-text);
  font: inherit;
  line-height: inherit;
  padding: 0.78rem 1rem 0.82rem;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
  opacity: 0;
  animation: upendoFeaturesWithProgressIn 0.66s ease forwards;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.upendo-features-with-progress__feature:nth-child(1) { animation-delay: 0.04s; }
.upendo-features-with-progress__feature:nth-child(2) { animation-delay: 0.1s; }
.upendo-features-with-progress__feature:nth-child(3) { animation-delay: 0.16s; }
.upendo-features-with-progress__feature:nth-child(4) { animation-delay: 0.22s; }

.upendo-features-with-progress .upendo-features-with-progress__feature.is-active {
  border-color: var(--features-progress-line) !important;
  background: var(--features-progress-panel) !important;
  color: var(--features-progress-text) !important;
  box-shadow: 0 0.85rem 1.9rem rgba(15, 23, 42, 0.11) !important;
}

.upendo-features-with-progress__feature:hover,
.upendo-features-with-progress__feature:focus-visible {
  transform: translateY(-0.08rem);
}

.upendo-features-with-progress__feature.is-active:hover,
.upendo-features-with-progress__feature.is-active:focus-visible {
  background: var(--features-progress-panel) !important;
  background-color: var(--features-progress-panel) !important;
}

.upendo-features-with-progress__feature:focus-visible {
  outline: 2px solid rgba(var(--features-progress-accent-rgb), 0.36);
  outline-offset: 3px;
}

.upendo-features-with-progress .upendo-features-with-progress__icon {
  display: inline-flex !important;
  flex: 0 0 2.6875rem;
  width: 2.6875rem;
  height: 2.6875rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--features-progress-accent-rgb), 0.12);
  border-radius: 999px;
  background: var(--features-progress-accent-soft);
  color: var(--features-progress-accent);
  font-size: 0.95rem;
  line-height: 1;
}

.upendo-features-with-progress__feature.is-active .upendo-features-with-progress__icon {
  border-color: var(--features-progress-accent);
  background: var(--features-progress-accent);
  color: #ffffff;
}

.upendo-features-with-progress .upendo-features-with-progress__feature-copy {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
}

.upendo-features-with-progress__eyebrow {
  display: block;
  margin: 0 0 0.55rem;
  color: var(--features-progress-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.upendo-features-with-progress .upendo-features-with-progress__title {
  display: block !important;
  margin: 0 !important;
  color: var(--features-progress-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.16;
}

.upendo-features-with-progress .upendo-features-with-progress__description {
  display: block !important;
  margin: 0.32rem 0 0;
  color: var(--features-progress-description);
  font-size: 0.78rem;
  line-height: 1.42;
}

.upendo-features-with-progress .upendo-features-with-progress__progress {
  display: block !important;
  width: 100%;
  height: 3px;
  margin-top: 0.54rem;
  overflow: hidden;
  border-radius: 999px;
  background: transparent;
  opacity: 0;
}

.upendo-features-with-progress__feature.is-active .upendo-features-with-progress__progress {
  opacity: 1;
  background: rgba(var(--features-progress-accent-rgb), 0.13);
}

.upendo-features-with-progress__progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--features-progress-accent);
  transition: width 90ms linear;
}

.upendo-features-with-progress .upendo-features-with-progress__visual-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  width: min(100%, 40rem);
  height: var(--features-progress-visual-min-height, 26.625rem);
  min-height: 0;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  background: var(--features-progress-panel);
  box-shadow: 0 0.9rem 2rem rgba(15, 23, 42, 0.09);
}

.upendo-features-with-progress .upendo-features-with-progress__visual {
  display: block;
  position: absolute !important;
  inset: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--features-progress-panel);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 820ms ease;
  visibility: hidden;
  z-index: 1;
}

.upendo-features-with-progress .upendo-features-with-progress__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0;
  background: var(--features-progress-panel);
}

.upendo-features-with-progress .upendo-features-with-progress__visual.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
  z-index: 2;
}

.upendo-features-with-progress__visual img {
  display: block;
  position: absolute;
  top: -3rem;
  left: 0;
  width: 100%;
  height: calc(100% + 3rem);
  object-fit: cover;
  border-radius: 0;
  transform: translate3d(0, 3rem, 0);
  transition: transform 980ms cubic-bezier(0.22, 1, 0.36, 1);
}

.upendo-features-with-progress__visual.is-active img {
  transform: translate3d(0, 0, 0);
}

.upendo-features-with-progress.image-hidden .upendo-features-with-progress__visual-stage {
  display: none;
}

.upendo-features-with-progress.image-hidden .upendo-features-with-progress__layout {
  grid-template-columns: minmax(0, 48rem);
  justify-content: center;
}

.upendo-features-with-progress__placeholder-panel {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 22%, rgba(var(--features-progress-accent-rgb), 0.18), transparent 8rem),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.upendo-features-with-progress__placeholder-grid {
  position: absolute;
  inset: 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0.85rem;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 3.25rem 3.25rem;
}

.upendo-features-with-progress__placeholder-orbit {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--features-progress-accent-rgb), 0.26);
  border-radius: 999px;
  box-shadow:
    0 0 0 1.65rem rgba(var(--features-progress-accent-rgb), 0.05),
    0 0 0 3.3rem rgba(var(--features-progress-accent-rgb), 0.035);
}

.upendo-features-with-progress__placeholder-label {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.65rem;
  background: var(--features-progress-soft);
  color: var(--features-progress-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.78rem 0.95rem;
}

@keyframes upendoFeaturesWithProgressIn {
  from {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 991.98px) {
  .upendo-features-with-progress__header {
    margin-bottom: 2.25rem;
  }

  .upendo-features-with-progress__intro {
    margin-left: 0;
    margin-right: 0;
  }

  .upendo-features-with-progress .upendo-features-with-progress__layout {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 1.4rem;
    align-items: stretch;
  }

  .upendo-features-with-progress .upendo-features-with-progress__feature-rail {
    display: flex !important;
    gap: 0.9rem;
    margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0.2rem calc(var(--bs-gutter-x, 1.5rem) * 0.5) 1.1rem;
    scroll-padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .upendo-features-with-progress .upendo-features-with-progress__feature {
    flex: 0 0 min(82vw, 23rem);
    scroll-snap-align: center;
  }

  .upendo-features-with-progress__visual-stage,
  .upendo-features-with-progress__placeholder-panel {
    height: min(var(--features-progress-visual-min-height, 26.625rem), 64vw);
  }
}

@media (max-width: 575.98px) {
  .upendo-features-with-progress__visual-stage,
  .upendo-features-with-progress__placeholder-panel {
    min-height: 18rem;
  }

  .upendo-features-with-progress__feature {
    flex-basis: 86vw;
    border-radius: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .upendo-features-with-progress__feature,
  .upendo-features-with-progress__visual {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .upendo-features-with-progress__feature {
    opacity: 1 !important;
  }
}
