.feo-shell {
  --feo-gradient-start: #8584ff;
  --feo-gradient-end: #392cff;
  --feo-text: #1c223a;
  --feo-panel-width: 88%;
  --feo-panel-height: 340px;
  --feo-card-overlap: 115px;
  --feo-top-space: 50px;
  --feo-header-height: 180px;
  box-sizing: border-box;
  isolation: isolate;
  margin: 0 auto;
  overflow: hidden;
  padding: var(--feo-top-space) 0 0;
  position: relative;
  width: calc(100% - 48px);
}

.feo-shell *,
.feo-shell *::before,
.feo-shell *::after {
  box-sizing: border-box;
}

.feo-gradient {
  background:
    radial-gradient(circle at 50% -35%, rgba(255, 255, 255, .2), transparent 45%),
    linear-gradient(180deg, var(--feo-gradient-start), var(--feo-gradient-end));
  border-radius: 28px 28px 0 0;
  height: var(--feo-panel-height);
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: var(--feo-panel-width);
  z-index: -1;
}

.feo-header {
  color: #fff;
  height: var(--feo-header-height);
  margin: 0 auto;
  max-width: 960px;
  overflow: hidden;
  padding: 0 24px;
  text-align: center;
}

.feo-shell .feo-title {
  color: inherit;
  display: -webkit-box;
  font-family: inherit;
  font-size: clamp(40px, 3vw, 50px);
  font-weight: 600;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  letter-spacing: -.045em;
  line-height: 1.08;
  margin: 0;
  overflow: hidden;
}

.feo-shell .feo-description {
  color: inherit;
  display: -webkit-box;
  font-family: inherit;
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 400;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.38;
  margin: 14px auto 0;
  max-width: 720px;
  overflow: hidden;
}

.feo-cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: calc(
    var(--feo-panel-height) - var(--feo-card-overlap) -
    var(--feo-top-space) - var(--feo-header-height)
  );
  position: relative;
  z-index: 1;
}

.feo-card {
  aspect-ratio: 570 / 608;
  container-type: inline-size;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.feo-card__inner {
  color: inherit;
  display: grid;
  height: 100%;
  outline-offset: 4px;
  position: relative;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
  width: 100%;
}

.feo-card--top .feo-card__inner {
  grid-template-areas:
    "content"
    "media";
  grid-template-rows: minmax(0, 37.34%) minmax(0, 62.66%);
}

.feo-card--bottom .feo-card__inner {
  grid-template-areas:
    "."
    "media"
    "content";
  grid-template-rows: minmax(0, 9.4%) minmax(0, 72.6%) minmax(0, 18%);
}

a.feo-card__inner:hover {
  filter: drop-shadow(0 14px 20px rgba(29, 35, 58, .1));
  transform: translateY(-4px);
}

.feo-card__background {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: fill;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.feo-card__content {
  grid-area: content;
  line-height: normal;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.feo-card--top .feo-card__content {
  padding: 15.2% 6.5% 0 21.6%;
}

.feo-card--bottom .feo-card__content {
  padding: 5% 4.5% 1% 21.6%;
}

.feo-card .feo-card__title {
  color: var(--feo-text);
  display: -webkit-box;
  font-family: inherit;
  font-size: 19px;
  font-size: clamp(16px, 4.1cqw, 23px);
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  letter-spacing: -.025em;
  line-height: 1.18;
  margin: 0;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
}

.feo-card--bottom .feo-card__title {
  font-size: 17px;
  font-size: clamp(14px, 3.45cqw, 20px);
  -webkit-line-clamp: 1;
  white-space: nowrap;
}

.feo-card .feo-card__description {
  color: #667085;
  display: -webkit-box;
  font-family: inherit;
  font-size: 13px;
  font-size: clamp(11px, 2.75cqw, 16px);
  font-weight: 400;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.4;
  margin: clamp(7px, 2.2cqw, 14px) 0 0;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
}

.feo-card--bottom .feo-card__description {
  font-size: 12px;
  font-size: clamp(10px, 2.35cqw, 14px);
  -webkit-line-clamp: 2;
  margin-top: clamp(3px, 1.1cqw, 6px);
}

.feo-card__media {
  align-items: flex-start;
  display: flex;
  grid-area: media;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/*
 * The transaction phone artwork includes a wide drop shadow near its lower
 * edge. Fading that shadow inside the media cell prevents the cell boundary
 * from becoming a visible dark horizontal seam above the text block.
 */
.feo-card--bottom .feo-card__media::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .55) 68%,
    #fff 100%
  );
  bottom: 0;
  content: "";
  height: 9%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 2;
}

.feo-card__device {
  display: block;
  flex: 0 0 auto;
  height: auto;
  max-width: none;
  width: 90.53%;
}

.feo-card--bottom .feo-card__device {
  width: 105%;
}

@media (max-width: 1024px) {
  .feo-shell {
    --feo-panel-width: 92%;
    --feo-panel-height: 300px;
    --feo-card-overlap: 100px;
    --feo-top-space: 42px;
    --feo-header-height: 158px;
    width: calc(100% - 32px);
  }

  .feo-shell .feo-title {
    font-size: clamp(36px, 5vw, 46px);
  }

  .feo-cards {
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .feo-cards {
    grid-template-columns: minmax(0, 570px);
    justify-content: center;
  }

  .feo-card {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .feo-shell {
    --feo-panel-width: 100%;
    --feo-panel-height: 280px;
    --feo-card-overlap: 56px;
    --feo-top-space: 36px;
    --feo-header-height: 188px;
    border-radius: 24px 24px 0 0;
    overflow: visible;
    padding: var(--feo-top-space) 16px 32px;
    width: 100%;
  }

  .feo-gradient {
    border-radius: 24px 24px 0 0;
  }

  .feo-header {
    padding-inline: 8px;
  }

  .feo-shell .feo-title {
    font-size: clamp(32px, 10vw, 44px);
  }

  .feo-shell .feo-description {
    font-size: 15px;
    -webkit-line-clamp: 3;
    margin-top: 18px;
  }

  .feo-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .feo-card {
    margin-inline: auto;
    max-width: 570px;
    width: 100%;
  }

  .feo-card--top .feo-card__inner {
    grid-template-rows: minmax(0, 40%) minmax(0, 60%);
  }

  .feo-card--bottom .feo-card__inner {
    grid-template-areas:
      "."
      "media"
      "content";
    grid-template-rows: minmax(0, 9.4%) minmax(0, 68.6%) minmax(0, 22%);
  }

  .feo-card--bottom .feo-card__content {
    padding-top: 5%;
  }

  .feo-card--bottom .feo-card__title {
    -webkit-line-clamp: 2;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feo-card__inner {
    transition: none;
  }
}
