/* The next section itself supplies the scroll cue; no extra copy or arrows. */
#demo-section {
  --demo-width: min(70vw, 1200px, calc((100svh - 180px) * 1.58));
  position: relative;
  z-index: 3;
  margin-top: -8.5svh;
  padding-bottom: max(96px, 10svh);
  perspective: 2400px;
  perspective-origin: 50% 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity .45s ease;
}
body[data-state="ready"] #demo-section { visibility: visible; opacity: 1; }
#demo-stage {
  /* Keep the entire app visible below the fixed brand/CTA on short desktops. */
  width: var(--demo-width);
  margin-inline: auto;
  aspect-ratio: 1512 / 886;
  position: relative;
  transform: rotateX(22deg);
  transform-origin: 50% 0;
  border: 1px solid #e5e5e5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 42px -18px #00000030, 0 4px 18px #0000000a;
}
afewfolks-demo { display: block; width: 100%; aspect-ratio: 1512 / 886; border-radius: inherit; overflow: hidden; }
#demo-error { position: absolute; inset: 0; margin: 0; padding: 24px; align-content: center; text-align: center; color: #767676; background: #fff; border-radius: inherit; }
#demo-replay {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #737373;
  cursor: pointer;
}
#demo-replay:disabled { color: #b8b8b8; cursor: default; }
#demo-replay:not(:disabled):hover { color: #171717; }
#demo-replay:focus-visible { outline: 2px solid #3f4ff5; outline-offset: 2px; }
@media (max-width: 700px) {
  #demo-section {
    --demo-width: min(calc(100vw - 48px), calc((100svh - 160px) * 1.5));
    margin-top: -38px;
    padding-bottom: 84px;
    perspective: 1000px;
  }
  #demo-stage { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #demo-section { transition: none; }
}
