/* /demos: the product demo videos (templates/demos.html). Uses the site's own tokens from style.css. */

.demo-jump { margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.demo-head { max-width: 780px; margin: 0 auto 2.75rem; text-align: center; }
.demo-head .heading-lg { margin-bottom: .9rem; }
.demo-head .body-lg { margin: 0 auto; }

.demo-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .15rem .5rem; margin: 0 0 1.25rem;
              padding: .5rem 1.2rem; border: 1px solid color-mix(in srgb,var(--bz-accent-on-ground) 35%,transparent); border-radius: 999px; color: var(--bz-on-ground-strong); }
.demo-price strong { color: var(--bz-accent-on-ground); font-size: 1.15rem; }
.demo-price__amount { white-space: nowrap; }
.demo-price__note { color: var(--bz-on-ground-muted); font-size: .9rem; }
.demo-price__note::before { content: "\00b7"; margin-right: .5rem; }
@media (max-width: 600px) {
  .demo-price { flex-direction: column; align-items: center; border-radius: 18px; padding: .6rem 1.1rem; }
  .demo-price__note::before { content: none; margin: 0; }
}

.demo-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 2.25rem; align-items: start; }
@media (max-width: 960px) { .demo-layout { grid-template-columns: 1fr; } }
/* the section list is long: the player stays in view beside it, below the fixed header, so a chapter link plays where you are looking */
@media (min-width: 961px) { .demo-player { position: sticky; top: 6rem; } }

.demo-player { margin: 0; }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--bz-ground); border: 1px solid var(--bz-ground-line-strong);
              border-radius: 10px; box-shadow: var(--bz-shadow-pop); }
.demo-player figcaption { margin-top: .8rem; font-size: .85rem; line-height: 1.5; color: var(--bz-on-ground-muted); }
/* The credit the music's licence (CC BY 4.0) asks for: on its own line under the caption */
.demo-credit { display: block; margin-top: .3rem; }
.demo-credit a { color: inherit; text-decoration: underline; }

.demo-side .heading-sm { margin: 0 0 .7rem; }
.demo-covers { list-style: none; margin: 0 0 1.9rem; padding: 0; }
.demo-covers li { position: relative; padding: .3rem 0 .3rem 1.5rem; color: var(--bz-on-ground); font-size: .95rem; line-height: 1.5; }
.demo-covers li::before { content: ""; position: absolute; left: .15rem; top: .8rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--bz-accent-on-ground); }

.demo-chapters { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 1px solid var(--bz-ground-line-strong); }
.demo-chapters li { border-bottom: 1px solid var(--bz-ground-line-strong); }
.demo-chapters a { display: grid; grid-template-columns: 3.1rem 1fr; gap: .2rem .75rem; padding: .8rem .6rem; color: var(--bz-on-ground); text-decoration: none;
                   border-left: 3px solid transparent; transition: background-color .15s, border-color .15s; }
.demo-chapters a:hover { background: color-mix(in srgb,var(--bz-accent-on-ground) 6%,transparent); }
.demo-chapters a.is-current { border-left-color: var(--bz-accent-on-ground); background: color-mix(in srgb,var(--bz-accent-on-ground) 8%,transparent); }
.demo-time { grid-row: 1; font-family: var(--bz-font-mono); font-size: .8rem; color: var(--bz-accent-2); padding-top: .1rem; }
.demo-chapter-title { grid-row: 1; grid-column: 2; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.demo-blurb { grid-column: 2; font-size: .82rem; line-height: 1.5; color: var(--bz-on-ground-muted); }

.demo-chapters a:focus-visible, .demo-jump a:focus-visible, .demo-video:focus-visible { outline: 2px solid var(--bz-accent-on-ground); outline-offset: 2px; }

@media print { .demo-video { display: none; } }
