/* ═══════════════════════════════════════════════════
   StoryPlay — product marketing surface
═══════════════════════════════════════════════════ */

[hidden] { display: none !important; }

:root {
  --bg: #F3F5F7;
  --bg-deep: #E8ECF1;
  --surface: #FFFFFF;
  --text: #12141A;
  --muted: #5C6570;
  --border: rgba(18, 20, 26, 0.12);
  --accent: #E85D04;
  --accent-ink: #FFFFFF;
  --nav-h: 64px;
  --radius: 10px;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.55;
}

a { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; }

/* Atmosphere — cool wash + fine grain (not flat, not neon grid) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 70% -10%, rgba(232, 93, 4, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 20%, rgba(40, 70, 110, 0.08), transparent 50%),
    linear-gradient(180deg, #F7F8FA 0%, var(--bg) 40%, var(--bg-deep) 100%);
}

/* no grid — soft washes above are enough atmosphere */

/* ── Account menu ── */
.user-menu { position: relative; }
.user-menu-btn {
  background: none; border: none; cursor: pointer; color: var(--text);
  display: flex; align-items: center; gap: 8px;
  padding: 0.25rem; border-radius: var(--radius);
}
.user-menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; text-transform: uppercase;
}
.user-avatar--brand { background: var(--text); color: #fff; }
.user-dropdown {
  display: none;
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px; min-width: 180px;
  z-index: 400;
}
.user-dropdown.open { display: block; }
.user-dropdown-head {
  padding: 8px; font-size: 13px; color: var(--muted);
  border-bottom: 1px solid var(--border); margin-bottom: 8px;
  word-break: break-all;
}
.user-menu-item {
  width: 100%; text-align: left; padding: 8px; margin-bottom: 4px;
  background: transparent; border: 1px solid transparent;
  color: var(--text); cursor: pointer; border-radius: 6px;
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  font-family: inherit;
}
.user-menu-item:hover { background: rgba(18, 20, 26, 0.05); }

/* ── Nav ── */
.navbar {
  position: fixed; top: 0; width: 100%; height: var(--nav-h);
  background: rgba(247, 248, 250, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 300;
  display: flex; align-items: center;
}
.nav-container {
  position: relative;
  max-width: 1200px; margin: 0 auto; padding: 0 1.75rem;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.nav-left { display: flex; align-items: center; gap: 2.25rem; }
.nav-logo {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em;
  color: var(--text);
}
.nav-logo svg { width: 22px; height: 22px; }
.nav-logo svg path { fill: currentColor; }

.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
  font-size: 0.92rem; font-weight: 500; color: var(--muted);
  margin: 0; padding: 0; line-height: 1;
}
.nav-links a { transition: color 0.15s; display: block; padding: 10px 0; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.mobile-drawer-cta { display: none !important; }

.nav-actions { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); cursor: pointer; padding: 6px;
}
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: none; white-space: nowrap;
  font-family: var(--font-body);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(18, 20, 26, 0.04); }
.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { background: #2A2E38; }
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { background: #CF4F00; }
.btn-large { padding: 0.8rem 1.45rem; font-size: 1rem; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: rgba(18, 20, 26, 0.04); }

/* ── Page ── */
.page {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 1.75rem;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 2.5rem;
  min-height: calc(100svh - var(--nav-h));
  padding: calc(var(--nav-h) + 2rem) 0 2.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 34rem;
  animation: heroIn 0.7s ease both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 1.1rem;
  color: var(--text);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-trust {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero-trust span + span::before {
  content: "·";
  margin: 0 0.45rem;
  opacity: 0.55;
}

/* Product studio — the dominant visual */
.hero-visual {
  position: relative;
  animation: studioIn 0.85s 0.1s ease both;
}

@keyframes studioIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 18px 50px rgba(18, 20, 26, 0.08);
}

.studio-pane {
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-right: 1px solid var(--border);
}

.studio-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.studio-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

.studio-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.studio-story {
  width: 100%;
  resize: vertical;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.5;
  min-height: 110px;
}
.studio-story:focus {
  outline: 2px solid rgba(232, 93, 4, 0.45);
  outline-offset: 1px;
  border-color: rgba(232, 93, 4, 0.55);
  background: #fff;
}

.studio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.studio-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.studio-chip:hover { border-color: rgba(18, 20, 26, 0.28); color: var(--text); }
.studio-chip.is-active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.studio-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.studio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.studio-meta-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.studio-meta-btn strong { color: var(--text); font-weight: 600; }
.studio-meta-btn:hover { border-color: rgba(18, 20, 26, 0.28); background: #fff; }
.studio-meta-btn.is-flash { border-color: var(--accent); }
.studio-meta-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.studio-generate {
  align-self: flex-start;
  margin-top: 0.15rem;
}

.studio-preview {
  position: relative;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.25rem 1.15rem;
  min-height: 0;
}

.studio-preview-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.studio-phone {
  width: min(255px, 84%);
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #12141A;
  box-shadow: 0 16px 42px rgba(18, 20, 26, 0.16);
  animation: phoneRise 1s 0.25s ease both;
}

@keyframes phoneRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.studio-phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-visual, .studio-phone { animation: none !important; }
  .game-card, .game-card img, .game-card video { transition: none !important; }
  .game-card:hover, .game-card:hover video { transform: none; }
}

/* ── Sections ── */
.features-section, .how-section, .games-section, .examples-section, .faq-section {
  margin-bottom: 5rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.section-header p { color: var(--muted); font-size: 1rem; }

/* Capabilities — no icon cards */
.cap-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.cap-item {
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-bottom: 1px solid var(--border);
  padding-right: 1.5rem;
}
.cap-item + .cap-item { padding-left: 1.5rem; border-left: 1px solid var(--border); }
.cap-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.cap-item p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.how-card {
  padding: 0;
  background: none;
  border: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: none;
}
.how-card:hover { transform: none; box-shadow: none; }
.how-card-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.how-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.how-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Legacy glass / steps kept for subpages */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.how-it-works {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}
.step { display: flex; flex-direction: column; gap: 0.7rem; }
.step-icon-wrapper {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.step-icon-wrapper svg { width: 22px; height: 22px; }
.step-content h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem;
}
.step-content p { font-size: 0.875rem; color: var(--muted); line-height: 1.55; }
.step-arrow { align-self: center; margin-top: -1rem; color: rgba(18, 20, 26, 0.25); }
.step-arrow svg { width: 22px; height: 22px; }

/* Games */
.games-row, .games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}
.game-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  transition: transform 0.25s ease;
}
.game-card img, .game-card video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.game-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.88) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 0.65rem 0.75rem;
}
.game-name { font-weight: 700; font-size: 0.82rem; color: #fff; }
.game-card:hover { transform: translateY(-3px); }
.game-card:hover img, .game-card:hover video { transform: scale(1.05); }

/* Features (subpages) */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.feature-card { display: flex; flex-direction: column; gap: 0.75rem; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(18, 20, 26, 0.06);
  display: flex; align-items: center; justify-content: center; color: var(--text);
}
.feature-icon svg { width: 20px; height: 20px; }

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
  background: none;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 0 1.15rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 1000px; margin: 0 auto; }
.faq-card { padding: 1.5rem; }
.faq-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.5rem; }
.faq-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }

/* Responsive */
@media (max-width: 1100px) {
  .games-row, .games-grid { grid-template-columns: repeat(3, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .studio { grid-template-columns: 1fr; }
  .studio-pane { border-right: none; border-bottom: 1px solid var(--border); }
  .studio-preview {
    min-height: 0;
    padding: 1.1rem 1rem 1.25rem;
    border-top: none;
  }
  .studio-phone { width: min(230px, 68vw); }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 1.75rem);
    padding-bottom: 2rem;
    gap: 2rem;
  }
  .hero-copy { max-width: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(247, 248, 250, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.75rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0; width: 100%; }
  .nav-links a.mobile-drawer-cta {
    margin-top: 0.65rem;
    padding: 0.8rem 1rem !important;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }
  .how-it-works { grid-template-columns: 1fr; gap: 1.25rem; }
  .step-arrow { transform: rotate(90deg); align-self: center; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-list { grid-template-columns: 1fr; }
  .cap-item + .cap-item { padding-left: 0; border-left: none; }
  .features-grid, .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .page { padding: 0 1.1rem; }
  .nav-container { padding: 0 1.1rem; }
  .nav-links { padding-left: 1.1rem; padding-right: 1.1rem; }
  .nav-actions #navSignIn { display: none; }
  .games-row, .games-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .hero-brand { font-size: 2.6rem; }
}

/* ── Subpages ── */
.subpage { padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 5rem; }
.subpage-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.subpage-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
  margin-bottom: 1rem;
}
.subpage-head p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.subpage-section { margin-bottom: 4.5rem; }
.subpage-section:last-child { margin-bottom: 0; }
.subpage-section > h2 {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.doc-card { padding: 1.5rem; }
.doc-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.doc-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

.steps-list { display: grid; gap: 1.25rem; max-width: 820px; margin: 0 auto; counter-reset: step; }
.step-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; align-items: start;
  padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.step-row .step-num {
  counter-increment: step;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.step-row .step-num::before { content: counter(step); }
.step-row h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step-row p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

.doc-body { max-width: 760px; margin: 0 auto; }
.doc-body h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin: 2.5rem 0 0.75rem; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: var(--muted); font-size: 0.97rem; line-height: 1.75; }
.doc-body ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.doc-body li { margin-bottom: 0.4rem; }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-updated {
  font-size: 0.82rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 1.2px; margin-bottom: 2.5rem;
}

.price-panel {
  max-width: 620px; margin: 0 auto; text-align: center;
  padding: 2.25rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px;
}
.price-panel .amount {
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 800;
  margin: 0.5rem 0 0.25rem; letter-spacing: -0.04em;
}
.price-panel .per { color: var(--muted); font-size: 0.95rem; }
.price-panel ul { list-style: none; text-align: left; margin: 2rem 0; display: grid; gap: 0.7rem; }
.price-panel li { color: var(--muted); font-size: 0.95rem; padding-left: 1.5rem; position: relative; }
.price-panel li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

.examples-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem; max-width: 1160px; margin: 0 auto;
}
.example-card {
  position: relative; margin: 0; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #0B0D10;
  display: flex; flex-direction: column;
}
.example-card video {
  width: 100% !important;
  height: auto !important;
  max-height: none;
  aspect-ratio: 9 / 16;
  display: block;
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
}
.example-card figcaption {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  background: rgba(0, 0, 0, 0.55); padding: 8px 12px; border-radius: 8px;
  font-weight: 600; font-size: 0.85rem; text-align: left; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}
.example-meta { padding: 0.85rem 1rem 1rem; flex-shrink: 0; }
.example-tag {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--muted); display: block; margin-bottom: 0.35rem;
}
.example-meta strong { font-size: 0.92rem; font-weight: 600; }

@media (max-width: 1160px) {
  .examples-grid { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
}
@media (max-width: 860px) {
  .examples-grid { grid-template-columns: 1fr; max-width: 320px; }
}
@media (max-width: 600px) {
  .examples-grid { max-width: 280px; }
}

.subpage-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem; padding-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem;
  align-items: center; justify-content: space-between;
}
.subpage-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.subpage-footer a { color: var(--muted); font-size: 0.88rem; transition: color 0.15s; }
.subpage-footer a:hover { color: var(--text); }
.subpage-footer .copy { color: var(--muted); font-size: 0.82rem; }

@media (max-width: 860px) {
  .subpage { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 3.5rem; }
  .subpage-head { margin-bottom: 2rem; }
  .subpage-section { margin-bottom: 2.75rem; }
  .doc-grid { grid-template-columns: 1fr; }
  .step-row { grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.25rem; }
  .step-row .step-num { width: 40px; height: 40px; font-size: 1.1rem; }
}

@media (max-width: 520px) {
  .subpage { padding-top: calc(var(--nav-h) + 1.25rem); padding-bottom: 2.5rem; }
  .subpage-head h1 { font-size: 1.85rem; margin-bottom: 0.5rem; }
  .subpage-head p { font-size: 0.95rem; }
  .subpage-section { margin-bottom: 2rem; }
  .price-panel { padding: 1.4rem 1.1rem; }
  .glass-card { padding: 1.25rem 1rem; }
}
