.hero-app {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  min-width: 0;
  margin: 0;
  gap: 14px;
}

.hero-app::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 0 14%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 65% 30%, rgba(255, 225, 178, .62), transparent 54%),
    radial-gradient(ellipse at 36% 66%, rgba(183, 162, 255, .38), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-app-phone {
  position: relative;
  width: min(100% - 20px, 344px);
  padding: 7px;
  border: 1px solid #777387;
  border-radius: 47px;
  background: linear-gradient(155deg, #464353, #1e1b29 35%, #252133 80%, #575365);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18),
    0 14px 32px rgba(32, 22, 65, .18), 0 32px 70px rgba(46, 26, 102, .2);
}

.hero-app-phone::before,
.hero-app-phone::after {
  content: "";
  position: absolute;
  top: 21%;
  width: 3px;
  height: 8%;
  border-radius: 2px;
  background: #454252;
}

.hero-app-phone::before { left: -3px; box-shadow: 0 52px #454252; }
.hero-app-phone::after { right: -3px; top: 26%; }

.hero-app-display {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 39px;
  background: #f5f2fb;
}

.hero-app-display img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.hero-app-display img.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.hero-app-display::after {
  content: "";
  position: absolute;
  inset: .55% 37.25% auto;
  height: 3.25%;
  border-radius: 999px;
  background: radial-gradient(circle at 85% 48%, #242338 0%, #0f0f18 5%, #08080c 8%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .1);
  pointer-events: none;
}

.hero-app-controls:not([hidden]),
.hero-app-pages {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-app-controls { gap: 6px; }
.hero-app-dot,
.hero-app-playback {
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--purple-deep);
  cursor: pointer;
}

.hero-app-dot { width: 27px; height: 36px; padding: 0; }
.hero-app-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #9289aa;
}
.hero-app-dot[aria-current="true"]::after { width: 17px; background: var(--purple); }
.hero-app-playback { width: 36px; height: 36px; border-radius: 50%; }
.hero-app-playback:hover { background: rgba(91, 61, 245, .08); }
.hero-app[data-playing="true"] .hero-app-icon-play,
.hero-app:not([data-playing="true"]) .hero-app-icon-pause { display: none; }

@media (max-width: 680px) {
  .hero-app-phone { width: min(100% - 20px, 320px); }
  .hero-app::before { inset: 6% 4% 14%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-app-display img { transition: none; }
}
