
.feature-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  display: grid;
  place-items: center;
}

.feature-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.feature-scene[hidden] {
  display: none;
}

.feature-panel {
  position: relative;
  overflow: hidden;
  width: min(100%,calc((100svh - 160px)*var(--panel-ratio)));
  max-width: 520px;
  aspect-ratio: var(--panel-ratio);
  border-radius: 20px;
  border: 1px solid #3b374b;
  background: #0d0c13;
  box-shadow: 0 16px 44px #24202b15;
}

.feature-panel>.screen-art {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  transform: translateY(var(--screen-offset));
}

.feature-scene[data-overview] .feature-panel {
  max-width: 470px;
}

.panel-chapter.is-in-view .is-active:not([data-overview]):not([data-market]) .feature-panel {
  animation: panel-reveal .55s cubic-bezier(.22,1,.36,1) both;
}

.market-preview {
  width: min(100%,calc((100svh - 205px)*854/1110));
  max-width: 470px;
}

.market-preview .feature-panel {
  width: 100%;
  max-width: none;
}

.feature-alerts {
  width: 100%;
  max-width: 510px;
  padding-bottom: 48px;
}

.feature-alerts .ios-alert-stack {
  display: grid;
  gap: 0;
}

.feature-alerts .ios-alert {
  grid-area: 1 / 1;
  background: #e7e6edf5;
  border-color: #fff9;
  color: #28252e;
  box-shadow: 0 12px 30px #24202b18;
  transform-origin: top center;
}

.feature-alerts .ios-alert-content p {
  color: #38333f;
}

.feature-alerts .ios-alert-heading>span {
  color: #716b7b;
}

.feature-alerts .ios-alert--latest {
  z-index: 3;
}

.feature-alerts .ios-alert--earlier {
  z-index: 2;
  transform: translateY(24px) scale(.96);
  margin: 0;
  opacity: 1;
  background: #d6d4dff5;
}

.feature-alerts .ios-alert--oldest {
  z-index: 1;
  transform: translateY(48px) scale(.92);
  background: #c5c2d1f5;
}

@keyframes panel-reveal {
  from {
    transform: translateY(10px) scale(.99);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

@media (max-width:760px) {
  .feature-stage {
    flex: 1;
    height: auto;
    min-height: 0;
  }
  .feature-scene {
    padding: 20px 0;
  }
  .feature-panel {
    width: min(100%,calc((100svh - 255px)*var(--panel-ratio)));
    border-radius: 15px;
  }
  .market-preview {
    width: min(100%,calc((100svh - 355px)*854/1110));
  }
  .feature-alerts {
    padding-bottom: 40px;
  }
  .feature-alerts .ios-alert {
    padding: 13px 11px;
    gap: 9px;
    border-radius: 20px;
  }
  .feature-alerts .ios-alert>img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .feature-alerts .ios-alert-heading {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .feature-alerts .ios-alert-heading strong, .feature-alerts .ios-alert-content p {
    font-size: .8125rem;
  }
  .feature-alerts .ios-alert-heading>span {
    font-size: .6875rem;
  }
}

@media (prefers-reduced-motion:reduce) {
  .feature-stage {
    min-height: 700px;
  }
  .panel-chapter.is-in-view .is-active .feature-panel {
    animation: none;
  }
}

@media (prefers-reduced-motion:reduce) and (max-width:760px) {
  .feature-stage {
    min-height: 500px;
  }
}
