/* CreatorPal demos — a hero banner, category chips and a card grid with type-only covers
   (the layout of monid.ai/blog), in the site's dark theme. Builds on /blog/blog.css. */
.demos-wrap { max-width: 1120px; margin: 0 auto; padding: 40px 20px 72px; }

.demo-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 36px 36px; border: 1px solid var(--line); border-radius: 16px;
  background-color: #08090c;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1px);
  background-size: 22px 22px; background-position: 11px 11px;
}
.kicker { margin: 0 0 8px; font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.demo-hero h1 { margin: 0; font-size: clamp(26px, 3.6vw, 36px); max-width: 24ch; }
.hero-cta { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.hero-cta:hover { color: #fff; filter: brightness(1.08); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 22px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 14px/1 "Hanken Grotesk", system-ui, sans-serif; cursor: pointer; }
.chip:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.count { margin: 0 0 22px; font: 500 13px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--faint); }

.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.demo-card { display: block; text-decoration: none; color: var(--ink); }
.demo-card[hidden] { display: none; }
.demo-card:hover { color: var(--ink); }
.cover { position: relative; display: flex; align-items: center; aspect-ratio: 16 / 10; padding: 0 9%; border-radius: 14px; background: #efebe3; color: #121316; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.demo-card:hover .cover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.cover-type { display: grid; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.02; letter-spacing: -0.02em; }
.cover-type b { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; }
.cover-type i { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: 0; }
.cover-rule { width: 34px; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--accent); }
.play { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #121316; color: #fff; transition: background 0.2s ease; }
.demo-card:hover .play { background: var(--accent); }
.dur { position: absolute; left: 16px; bottom: 18px; font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace; color: #55585f; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.eyebrow .cat { color: var(--accent); }
.dot { color: var(--faint); opacity: 0.7; }
.demo-card h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.22; }
.demo-card p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.byline { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }

.demo-page h1 { font-size: clamp(30px, 4.6vw, 44px); margin: 0 0 10px; max-width: 28ch; }
.player { margin: 6px 0 28px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.demo-body { max-width: 760px; }
.demo-body .lede { margin: 0 0 22px; }
.chapters { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.chapters li + li { border-top: 1px solid var(--line); }
.chapters button { width: 100%; display: flex; gap: 16px; align-items: baseline; padding: 13px 16px; background: transparent; border: 0; color: var(--ink); font: 500 16px/1.4 "Hanken Grotesk", system-ui, sans-serif; text-align: left; cursor: pointer; }
.chapters button:hover { background: var(--surface); }
.chapters li.now button { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.ts { flex: none; min-width: 3ch; font: 500 13px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--accent); }
.more-demos { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.more-demos h2 { font-size: 22px; margin: 0 0 20px; }

@media (max-width: 900px) {
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .demos-wrap { padding: 24px 16px 56px; }
  .demo-hero { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .top nav a[href="/demos/"] { display: inline; }
}
