/* Phoenix tokens + Frame.io media framing; one player, opened on request. */
.product-demo-showcase { margin: 0; scroll-margin-top: 112px; }
.product-demo-preview { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #08070b; aspect-ratio: 16 / 9; isolation: isolate; }
.product-demo-preview > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-demo-preview::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 40%, rgba(8,7,11,.8)); }
.product-demo-launch { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-start; gap: 16px; padding: clamp(18px, 3vw, 40px); color: #f3ece4; text-decoration: none; }
.product-demo-play { flex: 0 0 auto; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(243,236,228,.35); border-radius: 50%; background: #9d7bff; color: #100b20; box-shadow: 0 0 0 8px rgba(157,123,255,.1); transition: transform .2s ease; }
.product-demo-play svg { width: 24px; height: 24px; fill: currentColor; }
.product-demo-launch:hover .product-demo-play { transform: scale(1.07); }
.product-demo-launch:focus-visible { outline: 3px solid var(--violet); outline-offset: -6px; border-radius: 18px; }
.product-demo-launch-copy { display: flex; flex-direction: column; gap: 6px; padding-bottom: 5px; }
.product-demo-launch-copy strong { font-family: var(--font-display); font-size: clamp(17px, 2vw, 26px); font-weight: 600; }
.product-demo-launch-copy small { color: #d9cfd6; font-size: 13px; }
.product-demo-caption { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0 0; }
.product-demo-caption h3 { margin: 0 0 8px; font-size: 20px; font-family: var(--font-display); }
.product-demo-caption p { max-width: 680px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.product-demo-caption > .button { flex-shrink: 0; }
.product-demo-caption .button, .product-demo-finish .button { font-size: 14px; min-height: 48px; }
.product-demo-caption .button > span, .product-demo-finish .button > span { font: inherit; color: inherit; }
.product-demo-icon { display: inline-block; width: 15px; height: 15px; fill: currentColor; }
.product-demo-modal-open { overflow: hidden; }
.product-demo-dialog { width: min(1120px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--ink); box-shadow: 0 30px 140px rgba(0,0,0,.6); overflow-y: auto; overscroll-behavior: contain; }
.product-demo-dialog::backdrop { background: rgba(5,4,8,.88); }
.product-demo-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
.product-demo-dialog-head h2 { margin: 0; font: 600 18px/1.4 var(--font-display); }
.product-demo-dialog-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.product-demo-close { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-2); color: var(--ink); cursor: pointer; }
.product-demo-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.product-demo-close:focus-visible, .product-demo-dialog a:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.product-demo-dialog video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 220px); aspect-ratio: 16 / 9; background: #08070b; object-fit: contain; }
.product-demo-dialog video::cue { background: rgba(0,0,0,.9); color: #fff; }
.product-demo-dialog-footer { padding: 16px 24px 20px; }
.product-demo-disclosure { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.product-demo-file-link { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--ink-2); text-underline-offset: 4px; }
.product-demo-message { margin: 12px 0 0; font-size: 14px; color: var(--ink); }
.product-demo-finish { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.product-demo-finish p { margin: 0; font-size: 17px; font-family: var(--font-display); }
.product-demo-dialog [hidden] { display: none !important; }
@media (max-width: 640px) {
  .product-demo-preview, .product-demo-launch:focus-visible { border-radius: 12px; }
  .product-demo-play { width: 48px; height: 48px; box-shadow: 0 0 0 5px rgba(157,123,255,.1); }
  .product-demo-play svg { width: 20px; height: 20px; }
  .product-demo-launch { gap: 12px; padding: 16px; }
  .product-demo-launch-copy { gap: 4px; padding-bottom: 0; }
  .product-demo-launch-copy strong { font-size: 16px; }
  .product-demo-launch-copy small { font-size: 12px; }
  .product-demo-caption { align-items: flex-start; flex-direction: column; gap: 18px; padding-top: 20px; }
  .product-demo-caption > .button { width: 100%; }
  .product-demo-caption p { font-size: 14px; }
  .product-demo-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .product-demo-dialog-head { padding: 12px 16px; }
  .product-demo-dialog-head h2 { font-size: 16px; }
  .product-demo-dialog-footer { padding: 14px 16px 18px; }
  .product-demo-finish { align-items: stretch; flex-direction: column; }
  .product-demo-finish .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .product-demo-play { transition: none; } }
