@charset "utf-8";
.demo-page { background: var(--surface); }
.demo-page h1, .demo-page h2, .demo-page h3 { letter-spacing: 0; }
.demo-page [hidden] { display: none !important; }
.demo-intro { padding: 42px 0 26px; }
.demo-intro h1 { font-size: 38px; max-width: none; margin-bottom: 18px; }
.demo-intro .intro { max-width: 82ch; font-size: 17px; line-height: 1.65; margin-bottom: 18px; }
.demo-disclosure { color: var(--muted); font-size: 13px; margin: 0; }
.demo-films { padding: 8px 0 56px; }
.demo-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 32px; }
.demo-choice { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 12px; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); transition: border-color 160ms, background 160ms; }
.demo-choice:hover { border-color: var(--accent); }
.demo-choice[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 -3px var(--accent); }
.demo-choice img { width: 104px; height: 100%; min-height: 84px; object-fit: cover; border-radius: 3px; }
.demo-choice-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.demo-topic { display: block; font-family: var(--mono); font-size: 11px; color: var(--accent); line-height: 1.5; margin: 0 0 8px; }
.demo-choice .demo-topic { margin: 0; }
.demo-choice strong { font-size: 14px; line-height: 1.45; font-weight: 700; }
.demo-duration { font-size: 11px; color: var(--muted); }
.demo-duration time { font-family: var(--mono); }
.demo-film { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr); gap: 0 32px; }
.demo-film + .demo-film { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.demo-enhanced .demo-film + .demo-film { margin-top: 0; padding-top: 0; border: 0; }
.demo-screen { min-width: 0; }
.demo-screen video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #10181f; border: 1px solid var(--line); }
.demo-screen video::cue { font-family: var(--font); background: rgb(16 24 31 / 90%); }
.demo-screen-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 0; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); }
.demo-tools { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 20px; padding-top: 12px; font-size: 12px; }
.demo-tools button { padding: 0; min-height: 32px; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.demo-copy-status { color: var(--muted); }
.demo-brief h2 { font-size: 23px; line-height: 1.3; margin-bottom: 18px; }
.demo-summary { font-size: 15px; line-height: 1.65; }
.demo-roles { font-size: 12px; line-height: 1.7; color: var(--muted); }
.demo-result { padding: 15px 0 15px 16px; margin: 22px 0 18px; border-left: 3px solid #287e6e; }
.demo-result h3 { font-family: var(--mono); font-size: 11px; font-weight: 500; color: #216a5d; margin-bottom: 8px; }
.demo-result p { font-size: 14px; line-height: 1.65; margin: 0; }
.demo-limit { font-size: 12px; line-height: 1.65; color: var(--muted); }
.demo-module { font-size: 13px; text-underline-offset: 4px; }
.demo-error { padding: 12px; margin: 0; color: var(--alarm); background: var(--alarm-bg); font-size: 14px; }
.demo-route { grid-column: 1 / -1; margin-top: 32px; border-top: 1px solid var(--border); padding-top: 22px; }
.demo-route-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.demo-route-heading h3 { font-size: 17px; margin: 0; }
.demo-route-heading p { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0; }
.demo-chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.demo-chapters li { min-width: 0; border-bottom: 1px solid var(--line); }
.demo-chapter { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: baseline; gap: 8px; min-height: 64px; height: 100%; padding: 14px 10px; color: var(--text); text-decoration: none; font-size: 12px; line-height: 1.65; border-left: 2px solid transparent; }
.demo-chapter time { font-family: var(--mono); color: var(--muted); }
.demo-chapter:hover { background: var(--surface-2); }
.demo-chapter[aria-current="step"] { border-left-color: var(--accent); background: var(--accent-soft); }
.demo-chapter[aria-current="step"] time { color: var(--accent); }
.demo-next { padding: 42px 0; border-top: 1px solid var(--line); }
.demo-next .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.demo-next h2 { font-size: 24px; max-width: 28ch; }
.demo-next p:not(.kicker) { max-width: 64ch; font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.demo-next .btn { flex-shrink: 0; gap: 14px; font-size: 14px; background: var(--accent); color: white; }
.demo-next .btn:hover { background: var(--accent-strong); }
.demo-page .top-nav a[href="demo.html"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .demo-enhanced .demo-film:not([hidden]) { animation: demo-enter 220ms ease-out both; }
  @keyframes demo-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1050px) {
  .demo-choice { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .demo-choice img { width: 76px; }
  .demo-film { gap: 0 24px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .demo-brief h2 { font-size: 20px; }
}
@media (max-width: 800px) {
  .demo-intro { padding-top: 30px; }
  .demo-intro h1 { font-size: 30px; }
  .demo-picker { gap: 10px; }
  .demo-choice { display: flex; flex-direction: column; padding: 8px; }
  .demo-choice img { width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .demo-choice-copy { flex: 1; }
  .demo-choice strong { font-size: 12px; }
  .demo-choice .demo-topic { font-size: 10px; }
  .demo-film { grid-template-columns: minmax(0, 1fr); }
  .demo-brief { margin-top: 30px; }
  .demo-brief h2 { font-size: 24px; }
  .demo-result { margin-top: 18px; }
  .demo-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-route-heading { display: block; }
  .demo-route-heading p { margin-top: 10px; }
  .demo-next .wrap { align-items: flex-start; flex-direction: column; gap: 24px; }
}
@media (max-width: 480px) {
  .demo-page .wrap { width: calc(100% - 28px); }
  .demo-intro h1 { font-size: 27px; }
  .demo-intro .intro { font-size: 15px; }
  .demo-picker { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 24px; }
  .demo-choice { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .demo-choice img { height: 100%; min-height: 72px; object-fit: cover; }
  .demo-choice-copy { gap: 4px; }
  .demo-choice strong { font-size: 13px; }
  .demo-duration { font-size: 10px; }
  .demo-brief h2 { font-size: 22px; }
  .demo-chapters { grid-template-columns: minmax(0, 1fr); }
  .demo-chapter { min-height: 52px; }
  .demo-next h2 { font-size: 21px; }
}