/* Product previews share the existing dark/violet studio palette. */
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.product-demo { min-width: 0; border: 1px solid var(--line); background: var(--soft); scroll-margin-top: 110px; }
.demo-stage { position: relative; aspect-ratio: 16 / 10; background: #08060d; isolation: isolate; }
.demo-stage video, .demo-preview { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.demo-stage [hidden] { display: none; }
.demo-stage video { object-fit: contain; }
.demo-preview { border: 0; border-radius: 0; padding: 20px; color: var(--ink); background: radial-gradient(ellipse at 50% 20%, #542375 0%, #21132e 48%, #100d16 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; cursor: pointer; }
.demo-preview:hover { background: radial-gradient(ellipse at 50% 20%, #67308b 0%, #281737 48%, #100d16 100%); }
.demo-preview:focus-visible { outline: 3px solid #dea4ff; outline-offset: -5px; }
.demo-play-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border: 1px solid #cf8aff; border-radius: 50%; background: #a100ff26; }
.demo-play-icon::before { content: ''; width: 0; height: 0; border-block: 8px solid transparent; border-left: 12px solid #f6f3fa; margin-left: 4px; }
.demo-preview-title { font-family: var(--head); font-size: clamp(.95rem, 1.4vw, 1.25rem); font-weight: 600; line-height: 1.3; }
.demo-preview-copy { max-width: 48ch; color: #d9d0e3; font-size: .78rem; line-height: 1.5; }
.demo-play-label { font-size: .72rem; color: #dfb6ff; }
.demo-copy { padding: 26px; }
.demo-copy h3, .demo-copy h4 { font-family: var(--head); font-weight: 500; font-size: 1.45rem; letter-spacing: -.035em; line-height: 1.25; margin-block: 14px; }
.demo-copy p, .demo-benefits { color: var(--muted); font-size: .88rem; line-height: 1.7; }
.demo-benefits { padding-left: 1.2em; margin-block: 18px; }
.demo-benefits li + li { margin-top: 7px; }
.demo-copy .underlink { font-size: .85rem; }
.demo-status { position: absolute; z-index: 1; top: 12px; left: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); margin: 0; padding: 8px 12px; color: #fff; background: #17101fed; border: 1px solid #77538e; font-size: .8rem; line-height: 1.5; pointer-events: none; }
.demo-stage[data-state="loading"] .demo-status::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border: 2px solid #9e7bb6; border-top-color: white; border-radius: 50%; animation: demo-spin .8s linear infinite; vertical-align: -2px; }
.demo-stage[data-state="error"] .demo-status { top: auto; bottom: 8px; font-size: .72rem; }
.demo-stage[data-state="error"] .demo-preview-copy, .demo-stage[data-state="error"] .demo-play-label { display: none; }
.demo-service .product-demo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
.demo-service .demo-copy { padding: clamp(24px, 3vw, 48px); }
.demo-service .demo-copy h2 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); }
.demo-library-group + .demo-library-group { margin-top: 64px; }
.demo-library-group > h3 { margin-bottom: 28px; }
.demo-library .demo-copy h3 { font-size: 1.45rem; }
.demo-noscript { padding: 16px 26px; }
.catalogue-service-card { min-width: 0; display: flex; flex-direction: column; }
.catalogue-service-card .cardlink { flex: 1; }
.catalogue-demo-link { align-self: flex-start; margin: 0 24px 24px; font-size: .85rem; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
@media (max-width: 1190px) {
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-service .product-demo { grid-template-columns: 1fr; }
}
@media (max-width: 740px) {
  .demo-stage { aspect-ratio: 4 / 3; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .demo-copy { padding: 22px; }
  .demo-preview { padding: 14px; gap: 7px; }
  .demo-play-icon { width: 42px; height: 42px; }
  .demo-preview-copy { font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) { .demo-status::before { animation: none !important; } }
