/* Home page app demos (partials/home-demo-app.html, js/pages/home-demos.js): the desktop app window
 * beside the device. The window's own look is in home-demo-app.css; this file holds the layout and
 * the small animation helpers it uses. */
/* Laid out at a fixed desktop width and zoomed to fit the stage (home-demos.js sets --demo-zoom). */
.app-demo { position: relative; width: 1010px; display: flex; gap: 20px; align-items: center; text-align: left; }
.app-window { flex: 1 1 720px; min-width: 0; }
.app-device { flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* Wide screens: the app takes the stage and the device hangs past the panel's right edge. */
@media (min-width: 1360px) {
    .app-window { flex: none; width: 880px; }
    .app-device { position: absolute; top: 50%; right: -150px; transform: translateY(-50%); filter: drop-shadow(0 24px 40px rgba(20, 40, 100, .22)); }
}
[data-demo] { zoom: var(--demo-zoom, 1); }
/* Narrow stages (home-demos.js sets .is-narrow): the device alone, centred. */
[data-demo].is-narrow .app-demo { width: auto; justify-content: center; }
[data-demo].is-narrow .app-window { display: none; }
.demo-fallback { margin: 0; padding: 40px 16px; text-align: center; color: var(--h-text-2); }

@keyframes dsIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes dsSpin { to { transform: rotate(360deg); } }
.ds-in { animation: dsIn .35s ease-out both; }

@media (prefers-reduced-motion: reduce) {
    .ds-in { animation: none; }
}
