/* SubPro Demos page — sits on top of /css/lp2.css design tokens.
   Reuses .stage / .inner / .words / .reveal from lp2.css.
   Only the demo grid + card chrome lives here. No new accent colors —
   color stays inside the theme screenshots, chrome stays black/white/gray. */

.demos-hero > .inner { gap: 12px; }
.demos-hero .words { gap: 12px; }

.demos-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.demo-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.demo-card:hover,
.demo-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 24px 48px -20px rgba(0, 0, 0, 0.28);
}
.demo-card:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }

.demo-shot {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--ground-2);
}

.demo-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
  text-align: left;
  gap: 8px;
}
.demo-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.demo-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}
.demo-cta {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.demo-card:hover .demo-cta,
.demo-card:focus-visible .demo-cta { text-decoration: underline; }

@media (max-width: 640px) {
  .demos-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Genre filter — a row of pills above the grid. Black pill = chosen. */
.demo-filters {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.demo-filters button {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 980px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.demo-filters button .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.demo-filters button:hover { border-color: rgba(0, 0, 0, 0.3); }
.demo-filters button:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }
.demo-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.demo-filters button[aria-pressed="true"] .n { color: rgba(255, 255, 255, 0.6); }

.demo-card[hidden] { display: none; }

@media (max-width: 640px) {
  .demo-filters { justify-content: flex-start; }
  .demo-filters button { font-size: 13px; padding: 9px 13px; }
}

/* A card with a second link (the demo, and the real site it was made from).
   The card is then a div: the main link wraps shot + info, the second sits under it. */
.demo-main { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.demo-main:focus-visible { outline: none; }
.demo-card:has(:focus-visible) { outline: 2px solid #0071e3; outline-offset: 3px; transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 24px 48px -20px rgba(0, 0, 0, 0.28); }
.demo-alt {
  padding: 0 24px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.demo-alt:hover, .demo-alt:focus-visible { color: var(--ink); text-decoration: underline; }
