.demo { width: 250px; max-width: 100%; margin: 20px 0; }
.demo-stage { position: relative; width: 100%; aspect-ratio: var(--demo-ratio); background: #000; border-radius: 14px; overflow: hidden; }
.demo button, .demo video { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: inherit; }
.demo button { display: block; background: #000; color: white; font: inherit; cursor: pointer; }
.demo button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.demo button span { position: absolute; inset: auto 8px 16px; padding: 12px 8px; border-radius: 24px; background: #164f52; color: white; font-size: .85rem; font-weight: 700; box-shadow: 0 2px 12px #0008; }
.demo video { display: block; object-fit: contain; background: #000; }
.demo-stage:focus-within { outline: 3px solid #0f766e; outline-offset: 4px; }
.demo [hidden] { display: none; }
.demo-install { margin-top: 12px; }
.demo-install a { color: #0f766e; text-underline-offset: 3px; }
@media (max-width: 639px) { .demo { width: 220px; margin-inline: auto; } }
/* Homepage demos live together, separate from the screenshot-led benefits. */
.demo-gallery { margin: 36px 0; padding: 32px 24px; background: #e3f2ef; border-radius: 20px; }
.demo-gallery-intro { text-align: center; margin-bottom: 24px; }
.demo-gallery-intro h2 { color: var(--water); font-size: clamp(1.6rem, 3vw, 2rem); margin: 6px 0 12px; }
.demo-gallery-intro .section-label { color: var(--teal); font-weight: 700; margin: 0; }
.demo-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.demo-card { min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 24px 16px; background: #fff; border-radius: 16px; text-align: center; }
.demo-card h3 { margin: 0 0 8px; color: var(--water); font-size: 1.2rem; }
.demo-card > p { margin: 0; color: #2e4354; }
.demo-card .demo { width: 100%; max-width: 280px; margin: 20px 0; }
.demo-card .demo-stage { aspect-ratio: 622 / 1280; }
.demo-card .demo-install { margin-top: auto; }
@media (max-width: 639px) {
 .demo-gallery { padding: 28px 16px; }
 .demo-gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
 .demo-card .demo { max-width: 240px; }
}
