.product-demo {
  color-scheme:dark;
  --bg:#171819;
  --surface:#242628;
  --card:#242628;
  --text:#f3f3f1;
  --muted:#c1c4c6;
  --line:#404448;
  --selection:#443a25;
  --link:#f2bf58;
  --focus:#f2bf58;
  color:var(--text);
  height:clamp(430px,calc(100svh - 4.5rem - 8svh - 2px),760px);
  min-width:0;
  display:flex;
  flex-direction:column;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:1rem;
  box-shadow:0 12px 40px #2729240b;
  overflow:hidden
}
.demo-heading {display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 1.1rem;background:var(--surface);border-bottom:1px solid var(--line)}
.demo-label {font-size:.72rem;color:var(--muted)}
.demo-heading h2 {font-size:1rem;letter-spacing:-.025em;margin-top:.15rem}
.demo-expand {display:inline-flex;align-items:center;gap:.6rem;min-height:2.65rem;padding:.5rem .8rem;font:inherit;font-size:.75rem;font-weight:700;color:var(--text);background:var(--card);border:1px solid var(--line);border-radius:.5rem;white-space:nowrap}
.demo-expand:hover {background:var(--selection)}
.demo-expand[hidden] {display:none}
.demo-frame {width:100%;flex:1;min-height:0;border:0;background:var(--bg)}
.demo-footer {display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.55rem 1.1rem;border-top:1px solid var(--line);font-size:.68rem}
.demo-footer p {line-height:1.4}
.demo-real-capture {overflow:visible;flex-shrink:0;display:inline-flex;gap:.4rem;align-items:center;color:var(--link);text-decoration:underline;text-underline-offset:.2rem;min-height:2.5rem}
.demo-real-capture img[hidden] {display:none}
.product-demo:fullscreen {width:100%;height:100%;max-height:none;border:0;border-radius:0;background:var(--card)}
@media(min-width:1024px) and (min-height:600px) {
  .hero .product-demo {height:100%;min-height:0}
  .hero .product-demo:fullscreen {height:100%}
}
@media(max-width:800px) {
  .product-demo {height:min(720px,85svh)}
}
@media(max-width:520px) {
  .demo-heading {padding:.8rem}
  .demo-heading h2 {font-size:.9rem}
  .demo-expand {padding:.5rem;font-size:.7rem}
  .demo-footer {padding:.5rem .8rem;font-size:.65rem;gap:.5rem}
}
