.demo-visual { height: 660px; }
.demo-device {
  width: min(342px, calc(100% - 36px));
  padding: 8px;
  border-radius: 47px;
  background: linear-gradient(125deg, #79716e, #272426 24%, #141315 64%, #77716e);
  box-shadow: 0 35px 65px -18px rgba(38, 24, 34, .32), 0 0 0 1px rgba(255,255,255,.65), inset 0 0 0 2px #494348;
  transform: rotate(2deg);
  position: relative;
}
.demo-device::before, .demo-device::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: #554c50;
}
.demo-device::before { left: -3px; top: 104px; height: 66px; }
.demo-device::after { right: -3px; top: 144px; height: 48px; }
.demo-display { overflow: hidden; border-radius: 39px; background: #f3edf1; }
.demo-top { height: 33px; display: grid; place-items: center; }
.demo-top span { width: 77px; height: 17px; border-radius: 20px; background: #171518; }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1246; object-fit: contain; background: #f3edf1; }
.demo-bottom { height: 21px; display: grid; place-items: center; }
.demo-bottom span { width: 100px; height: 4px; background: #302b30; border-radius: 8px; }
.demo-toggle {
  position: absolute; bottom: 8px; right: 12px; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  color: #493a43; background: rgba(255,255,255,.84); border: 1px solid #e5dadf;
  box-shadow: 0 6px 22px #50374512;
}
.demo-toggle:hover { background: #fff; }
.demo-toggle:focus-visible { outline: 3px solid #856477; outline-offset: 4px; }
.demo-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-toggle[data-playing="true"] .demo-play-icon, .demo-toggle[data-playing="false"] .demo-pause-icon { display: none; }
@media (max-width: 640px) {
  .demo-visual { height: auto; min-height: 570px; margin-top: 42px; padding: 12px 0 56px; }
  .demo-device { width: min(320px, calc(100% - 32px)); transform: rotate(0deg); }
  .demo-visual .orb-one { width: 100%; left: 0; }
  .demo-visual .orb-two { width: 85%; }
  .demo-toggle { bottom: 0; right: calc(50% - 24px); }
}
@media (prefers-reduced-motion: reduce) { .demo-device { transform: none; } }

/* Real app screens share the hero's phone frame, without cropping. */
.feature-phone-stage { display: grid; place-items: center; position: relative; padding: 36px 0 48px; }
.feature-phone-stage .feature-phone { width: min(342px, calc(100% - 40px)); transform: none; z-index: 1; }
.feature-phone-image { display: block; width: 100%; height: auto; aspect-ratio: 1290 / 2235; object-fit: contain; }
.feature-phone .demo-display { background: #f5f1f2; }
.scheme-phone-stage { margin-top: 48px; background: radial-gradient(ellipse at center, #e7d9e1 0%, transparent 65%); }
.editorial-pair { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; }
.phone-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 36px 24px 48px; min-height: 0; }
.phone-pair .feature-phone { width: 100%; max-width: 320px; }
.phone-pair:focus-visible { outline: 3px solid #856477; outline-offset: 4px; }
@media (max-width: 900px) {
  .editorial-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .feature-phone-stage { padding: 28px 0 40px; }
  .feature-phone-stage .feature-phone { width: min(320px, calc(100% - 32px)); }
  .scheme-phone-stage { margin-top: 28px; }
  .phone-pair { display: flex; align-items: flex-start; justify-content: flex-start; min-height: 0; gap: 20px; padding: 28px 16px 40px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
  .phone-pair .feature-phone { flex: 0 0 min(300px, calc(100% - 28px)); width: auto; scroll-snap-align: start; }
}
