/* ==========================================================================
   SeriousPixel Studio — marketing site
   One stylesheet, no build step. Dark, dense, production-suite look.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #0a0b0d;
  --bg-2: #0e1013;
  --panel: #14161a;
  --panel-2: #1a1d22;
  --panel-3: #21252b;
  --line: #262a31;
  --line-2: #343a45;

  --text: #eceef1;
  --muted: #a8aeb8;
  --dim: #868d99;

  --accent: #ff6b3d;        /* tally light */
  --accent-2: #ff8d66;
  --accent-ink: #1a0a04;
  --accent-soft: rgba(255, 107, 61, 0.14);

  --ok: #3ecf8e;
  --warn: #f2b84b;
  --info: #6aa7ff;
  --danger: #ff6b7a;

  --pre: #a493ff;           /* pre-production */
  --prod: #ff6b3d;          /* production */
  --post: #3fcadd;          /* post-production */

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;

  --shadow-app: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 107, 61, 0.08), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(106, 167, 255, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; letter-spacing: -0.022em; font-weight: 650; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-rev > :first-child { order: 2; }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-rev > :first-child { order: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.eyebrow.no-rule::before { display: none; }
h1, .h1 { font-size: clamp(2.3rem, 5.6vw, 4.5rem); letter-spacing: -0.035em; font-weight: 680; }
h2, .h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); letter-spacing: -0.03em; }
h3, .h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 64ch; line-height: 1.55; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono, .tc { font-family: var(--mono); font-feature-settings: "zero"; }
.tc { font-size: 0.78em; letter-spacing: 0.02em; }
.grad {
  background: linear-gradient(92deg, #fff 0%, #ffd3c2 35%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.35em; }
.prose a, .link { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(255, 141, 102, 0.4); text-underline-offset: 3px; }
.prose a:hover, .link:hover { text-decoration-color: currentColor; }
kbd {
  font-family: var(--mono); font-size: 0.78em; padding: 2px 6px; border-radius: 4px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--text);
}
code { font-family: var(--mono); font-size: 0.88em; background: var(--panel-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--panel-2); --btn-fg: var(--text); --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { --btn-bg: var(--panel-3); --btn-bd: #4a5160; }
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: var(--accent); box-shadow: 0 8px 30px -10px rgba(255, 107, 61, 0.7); }
.btn-primary:hover { --btn-bg: var(--accent-2); --btn-bd: var(--accent-2); }
.btn-ghost { --btn-bg: transparent; }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.05); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 13, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-weight: 680; letter-spacing: -0.02em; font-size: 1.02rem; }
.brand-name span { color: var(--muted); font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.site-nav ul { display: flex; list-style: none; gap: 2px; margin-inline: auto; }
.site-nav ul a {
  display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none;
  color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color 0.15s, background 0.15s;
}
.site-nav ul a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.site-nav ul a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-cta { display: flex; gap: 8px; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line-2); cursor: pointer; place-items: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  /* Without JS the nav simply wraps below the brand; with JS it becomes a toggled panel. */
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: 16px; }
  .site-nav ul { flex-direction: column; margin: 0; }
  .site-nav ul a { padding: 12px; font-size: 1rem; }
  .nav-cta { flex-direction: column; }
  .nav-cta .btn { width: 100%; min-height: 48px; }
  .js .nav-toggle { display: grid; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none;
    padding: 16px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .site-nav.is-open { display: flex; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 56px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin-top: 14px; font-size: 0.92rem; }
.footer-h { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer ul a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--text); }
.footer-base { border-top: 1px solid var(--line); padding-block: 20px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-base p { margin: 0; color: var(--dim); font-size: 0.82rem; max-width: 80ch; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-inner .lead { margin-inline: auto; margin-bottom: 32px; }
.hero-inner .cta-row { justify-content: center; }
.hero-note { margin-top: 20px; color: var(--muted); font-size: 0.92rem; }
.hero-note a { color: var(--text); }
.hero-media { margin-top: clamp(40px, 6vw, 72px); position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 8% 6% auto; height: 70%;
  background: radial-gradient(closest-side, rgba(255, 107, 61, 0.22), transparent); filter: blur(40px); z-index: -1;
}
.page-hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(32px, 5vw, 64px); }
.page-hero .lead { margin-bottom: 0; }
.page-hero .cta-row { margin-top: 28px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.dot-live { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 2.4s ease-in-out infinite; }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }
.dot-info { background: var(--info); }
.dot-draft { background: transparent; border: 1.5px solid var(--dim); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 107, 61, 0); } }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; border: 1px solid var(--line-2); color: var(--muted); background: var(--panel);
  white-space: nowrap;
}
.badge-free { color: var(--post); border-color: rgba(63, 202, 221, 0.4); background: rgba(63, 202, 221, 0.08); }
.badge-pro { color: var(--accent-2); border-color: rgba(255, 107, 61, 0.45); background: var(--accent-soft); }
.badge-team { color: var(--pre); border-color: rgba(164, 147, 255, 0.45); background: rgba(164, 147, 255, 0.1); }
.badge-road { color: var(--warn); border-color: rgba(242, 184, 75, 0.4); background: rgba(242, 184, 75, 0.08); }
.badge-ok { color: var(--ok); border-color: rgba(62, 207, 142, 0.4); background: rgba(62, 207, 142, 0.08); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); font-size: 0.85rem; text-decoration: none; background: var(--panel);
}
a.chip:hover { color: var(--text); border-color: #4a5160; }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--panel), rgba(20, 22, 26, 0.6));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 28px);
  position: relative;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card p + p, .card p + ul, .card ul + p { margin-top: 12px; }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--panel-3); border: 1px solid var(--line-2); color: var(--accent);
}
.card-icon svg { width: 20px; height: 20px; }
.card-link { text-decoration: none; transition: border-color 0.15s, transform 0.15s; display: block; }
.card-link:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .meta { font-family: var(--mono); font-size: 0.75rem; color: var(--dim); letter-spacing: 0.04em; margin-bottom: 10px; display: block; }
.ticks { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-2px);
}
.ticks li strong { color: var(--text); font-weight: 600; }

.callout {
  border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 16px 20px; background: var(--panel); color: var(--muted); font-size: 0.95rem;
}
.callout strong { color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout-info { border-left-color: var(--info); }
.callout-warn { border-left-color: var(--warn); }

.stat-row { display: flex; flex-wrap: wrap; gap: 32px 48px; margin-top: 32px; }
.stat strong { display: block; font-size: 1.8rem; letter-spacing: -0.03em; font-weight: 650; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ---------- App window mockup ---------- */
.app {
  border-radius: 14px; overflow: hidden; background: #0c0d10; box-shadow: var(--shadow-app);
  border: 1px solid #2a2e36; font-size: 12px; line-height: 1.35; text-align: left; color: #d7dae0;
  user-select: none;
}
.app-titlebar {
  display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #121418; border-bottom: 1px solid #23262d;
}
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f48; display: block; }
.lights i:nth-child(1) { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.app-title { color: var(--muted); font-weight: 500; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-meta { color: var(--dim); white-space: nowrap; }
.app-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 220px; min-height: 0; }
.app-pane { background: #101215; border-right: 1px solid #1f2228; padding: 10px; min-width: 0; }
.app-pane:last-child { border-right: 0; border-left: 1px solid #1f2228; }
.pane-h {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim);
  display: flex; justify-content: space-between; align-items: center; margin: 2px 2px 8px;
}
.shot-list { list-style: none; display: grid; gap: 4px; }
.shot-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 5px; border-radius: 6px; }
.shot-list li.is-sel { background: #1c2027; box-shadow: inset 0 0 0 1px #2e3440; }
.shot-list .frame { height: 26px; border-radius: 3px; }
.shot-list b { font-weight: 600; font-size: 11px; display: block; color: #e6e8ec; }
.shot-list small { color: var(--dim); font-size: 10px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-center { display: flex; flex-direction: column; background: #0b0c0f; min-width: 0; }
.viewer { padding: 14px 14px 8px; display: grid; gap: 8px; }
.viewer .frame { aspect-ratio: 2.39 / 1; border-radius: 4px; box-shadow: 0 0 0 1px #23262d; }
.transport { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); }
.transport .tc { color: #e8eaee; font-size: 11px; }
.transport-btns { display: flex; gap: 10px; align-items: center; }
.transport-btns span { width: 0; height: 0; border-style: solid; }
.tb-play { border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #e8eaee; }
.tb-back { border-width: 5px 8px 5px 0; border-color: transparent #868d99 transparent transparent; }
.tb-fwd { border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #868d99; }
.overlay-label {
  position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.45); padding: 2px 6px; border-radius: 3px;
}

/* timeline */
.tl { --lbl: 34px; position: relative; padding: 6px 10px 12px; border-top: 1px solid #1f2228; background: #0e1013; }
.tl-ruler { display: flex; justify-content: space-between; margin-left: var(--lbl); font-family: var(--mono); font-size: 9.5px; color: var(--dim); padding: 2px 0 6px; border-bottom: 1px solid #1f2228; margin-bottom: 6px; }
.tl-track { position: relative; display: flex; align-items: center; height: 22px; margin-bottom: 4px; }
.tl-track > b { width: var(--lbl); flex-shrink: 0; font-family: var(--mono); font-size: 9.5px; color: var(--dim); font-weight: 500; }
.lane { position: relative; flex: 1; height: 100%; background: #13161a; border-radius: 3px; }
.clip {
  position: absolute; top: 2px; bottom: 2px; left: var(--l); width: var(--w); border-radius: 3px;
  background: #2d5a8f; border: 1px solid rgba(255,255,255,.12); overflow: hidden;
  font-size: 9.5px; color: rgba(255,255,255,.88); padding: 2px 5px; white-space: nowrap; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px;
}
.clip.v { background: linear-gradient(180deg, #34639a, #284f7c); }
.clip.v.alt { background: linear-gradient(180deg, #3f6f8f, #2f566f); }
.clip.title { background: linear-gradient(180deg, #6a4fa8, #533d86); }
.clip.a { background: linear-gradient(180deg, #2f7a5a, #245e46); }
.clip.m { background: linear-gradient(180deg, #7a5a2c, #5f4522); }
.clip.fx { background: linear-gradient(180deg, #3d6b6f, #2e5357); }
.clip.stale { box-shadow: inset 0 0 0 1.5px var(--warn); }
.clip .wave {
  position: absolute; inset: 40% 4px 25%;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 3px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  opacity: .6;
}
.clip i.cdot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--ok); }
.clip i.cdot.warn { background: var(--warn); }
.playhead {
  position: absolute; top: 4px; bottom: 6px; width: 1px; background: var(--accent);
  left: calc(10px + var(--lbl) + (100% - 20px - var(--lbl)) * var(--x));
}
.playhead::before { content: ""; position: absolute; top: 0; left: -5px; border: 5px solid transparent; border-top: 7px solid var(--accent); }

/* version drawer */
.versions { list-style: none; display: grid; gap: 6px; }
.versions li { padding: 8px; border-radius: 7px; background: #15181c; border: 1px solid #22262d; display: grid; gap: 3px; }
.versions li.is-cur { border-color: rgba(62, 207, 142, 0.45); background: #13201b; }
.versions .vrow { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.versions b { font-weight: 600; font-size: 11.5px; }
.versions small { color: var(--dim); font-size: 10px; }
.state { font-size: 9.5px; font-weight: 600; padding: 1px 6px; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.state-ok { color: var(--ok); border-color: rgba(62,207,142,.4); }
.state-rev { color: var(--info); border-color: rgba(106,167,255,.4); }
.state-draft { color: var(--dim); border-color: #3a404b; }
.state-lock { color: var(--pre); border-color: rgba(164,147,255,.45); }
.state-stale { color: var(--warn); border-color: rgba(242,184,75,.45); }
.approve-btn { margin-top: 10px; width: 100%; padding: 7px; border-radius: 7px; background: var(--ok); color: #04140c; font-weight: 700; font-size: 11px; text-align: center; }
.queue { margin-top: 12px; display: grid; gap: 6px; }
.queue .job { font-size: 10px; color: var(--muted); }
.queue .bar { height: 4px; border-radius: 4px; background: #23272e; overflow: hidden; margin-top: 3px; }
.queue .bar i { display: block; height: 100%; width: var(--p); background: var(--accent); border-radius: 4px; }

/* workspace bar */
.wsbar {
  display: flex; justify-content: center; gap: 4px 18px; flex-wrap: wrap; padding: 8px 12px; background: #121418; border-top: 1px solid #23262d;
}
.ws-group { display: flex; align-items: center; gap: 4px; }
.ws-group > span {
  font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-right: 4px;
  padding-left: 8px; border-left: 2px solid var(--gc);
}
.ws-group.pre { --gc: var(--pre); } .ws-group.prod { --gc: var(--prod); } .ws-group.post { --gc: var(--post); }
.ws {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; color: var(--muted);
  font-size: 11px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.ws.is-cur { background: #20242b; color: #fff; box-shadow: inset 0 -2px 0 var(--gc); }
.ws .dot { width: 6px; height: 6px; }
a.ws:hover { color: #fff; background: #1a1d23; }

/* Large standalone workspace bar (how it works) */
.wsbar-lg { border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 14px; gap: 10px 26px; background: var(--panel); }
.wsbar-lg .ws { font-size: 0.9rem; padding: 8px 12px; }
.wsbar-lg .ws-group > span { font-size: 0.68rem; }

@media (max-width: 1100px) { .app-body { grid-template-columns: 170px minmax(0, 1fr) 190px; } }
@media (max-width: 860px) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-pane.app-left, .app-pane.app-right { display: none; }
  .app-meta { display: none; }
  .wsbar .ws-group > span { display: none; }
  .wsbar .ws { padding: 3px 5px; font-size: 10px; }
  .wsbar { gap: 2px 8px; }
}
@media (max-width: 520px) {
  .wsbar .ws:not(.is-cur) .label { display: none; }
  .wsbar .ws { padding: 4px; }
  .tl-track:nth-of-type(n+5) { display: none; }
  .app-title { text-align: left; }
}

/* ---------- Frames (CSS-only "footage") ---------- */
.frame { position: relative; overflow: hidden; background: #1b1e24; }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.35)); pointer-events: none; }
.f-dusk {
  background:
    radial-gradient(circle at 68% 62%, #ffd9a0 0 4%, rgba(255,170,90,.9) 6%, rgba(255,120,60,.0) 22%),
    linear-gradient(180deg, transparent 0 66%, #0d0f14 66% 100%),
    linear-gradient(180deg, #2b2f55 0%, #8a4b6b 38%, #f08a5a 60%, #ffb36b 66%);
}
.f-dusk::before { content: ""; position: absolute; left: 22%; bottom: 34%; width: 3.2%; height: 22%; background: #0d0f14; border-radius: 40% 40% 0 0; }
.f-neon {
  background:
    linear-gradient(180deg, transparent 0 72%, rgba(255,60,160,.25) 72% 74%, #07070c 74%),
    repeating-linear-gradient(90deg, transparent 0 9%, rgba(40,220,255,.18) 9% 10%, transparent 10% 17%),
    radial-gradient(ellipse at 30% 40%, rgba(255,50,150,.55), transparent 50%),
    radial-gradient(ellipse at 75% 30%, rgba(40,200,255,.5), transparent 45%),
    #0b0a18;
}
.f-neon::before { content: ""; position: absolute; left: 56%; bottom: 26%; width: 3%; height: 26%; background: #050509; border-radius: 40% 40% 0 0; }
.f-interior {
  background:
    radial-gradient(ellipse at 72% 38%, rgba(255,205,140,.75), transparent 38%),
    linear-gradient(90deg, #1a120d 0 18%, transparent 18% 20%, #1a120d 20% 22%, transparent 22%),
    linear-gradient(180deg, #3a2a20 0%, #5b3f2b 55%, #24180f 56% 100%);
}
.f-interior::before { content: ""; position: absolute; left: 40%; bottom: 20%; width: 9%; height: 42%; background: #140e0a; border-radius: 45% 45% 10% 10%; }
.f-coast {
  background:
    linear-gradient(180deg, transparent 0 58%, #22394a 58% 61%, #183040 61% 75%, #2b2a26 75%),
    linear-gradient(180deg, #8fa7b8 0%, #c7d2d6 55%, #dfe2dc 58%);
}
.f-coast::before { content: ""; position: absolute; left: 70%; bottom: 25%; width: 2.6%; height: 22%; background: #1a1c1e; border-radius: 40% 40% 0 0; }
.f-noir {
  background:
    repeating-linear-gradient(100deg, transparent 0 6%, rgba(255,255,255,.22) 6% 9%, transparent 9% 14%),
    radial-gradient(ellipse at 40% 50%, #6b6b6b, #151515 70%);
  filter: grayscale(1) contrast(1.1);
}
.f-noir::before { content: ""; position: absolute; left: 30%; bottom: 0; width: 12%; height: 58%; background: #0a0a0a; border-radius: 45% 45% 0 0; }
.f-desert {
  background:
    radial-gradient(ellipse at 50% 120%, #b8743c 0 40%, transparent 41%),
    linear-gradient(180deg, transparent 0 62%, #c98a4a 62% 100%),
    linear-gradient(180deg, #4f86b8 0%, #9cc3d9 45%, #f1d6a8 62%);
}
.f-desert::before { content: ""; position: absolute; left: 46%; bottom: 30%; width: 2.4%; height: 18%; background: #2a1a0f; border-radius: 40% 40% 0 0; }
.f-forest {
  background:
    repeating-linear-gradient(90deg, #0f1a12 0 3%, transparent 3% 11%, #13231a 11% 13%, transparent 13% 21%),
    linear-gradient(180deg, #7fa38a 0%, #3f6650 50%, #1b2e22 100%);
}
.f-board { background: #e9e6df; filter: grayscale(1); }
.f-board::before {
  content: ""; position: absolute; inset: 18% 30% 18% 18%;
  border: 2px solid #3a3a3a; border-radius: 50% 50% 12% 12%; border-bottom: 0;
}
.f-board::after { background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,.12)); }

/* ---------- Pipeline strip ---------- */
.pipeline { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; counter-reset: step; }
.pipeline li {
  position: relative; padding: 16px 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.pipeline li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.7rem; color: var(--dim); display: block; margin-bottom: 10px;
}
.pipeline li::after { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; background: var(--gc, var(--line-2)); border-radius: 0 0 2px 2px; opacity: 0.8; }
.pipeline li.pre { --gc: var(--pre); } .pipeline li.prod { --gc: var(--prod); } .pipeline li.post { --gc: var(--post); }
.pipeline .ws-name { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gc); }
.pipeline strong { display: block; font-size: 0.98rem; margin: 4px 0 4px; letter-spacing: -0.01em; }
.pipeline small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; display: block; }
.pipeline li.is-active { border-color: var(--gc); background: var(--panel-2); transform: translateY(-2px); }

.phase-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--muted); font-size: 0.85rem; }
.phase-legend span { display: inline-flex; align-items: center; gap: 8px; }
.phase-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

/* ---------- Mock panels (stale, dailies) ---------- */
.mock {
  background: #0f1114; border: 1px solid #262a31; border-radius: 14px; box-shadow: var(--shadow-app); overflow: hidden; font-size: 13px;
}
.mock-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #22262d; background: #13151a; }
.mock-h b { font-weight: 600; }
.mock-b { padding: 16px; }
.stale-list { list-style: none; display: grid; gap: 8px; }
.stale-list li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 9px; background: #15181d; border: 1px solid #23272e;
}
.stale-list small { display: block; color: var(--dim); font-size: 11.5px; }
.diff { font-family: var(--mono); font-size: 11.5px; line-height: 1.7; background: #0b0c0f; border: 1px solid #22262d; border-radius: 9px; padding: 10px 12px; margin-bottom: 12px; overflow: hidden; }
.diff .del { color: #ff8a95; background: rgba(255, 107, 122, 0.08); display: block; }
.diff .add { color: #7fe3b0; background: rgba(62, 207, 142, 0.08); display: block; }
.diff .ctx { color: var(--dim); display: block; }
.mock-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mock-btn { padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid #343a45; background: #1a1d22; color: var(--text); }
.mock-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.dailies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.take { border-radius: 9px; background: #15181d; border: 1px solid #23272e; overflow: hidden; position: relative; }
.take .frame { aspect-ratio: 16 / 9; }
.take-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 7px 9px; font-size: 11px; }
.take-meta b { font-family: var(--mono); font-weight: 600; }
.take-meta span { color: var(--dim); font-family: var(--mono); }
.take.is-circled { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px -12px rgba(255, 107, 61, 0.6); }
.take.is-circled::before {
  content: "Circled"; position: absolute; z-index: 2; top: 7px; left: 7px; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 99px; background: var(--accent); color: var(--accent-ink);
}
.take.is-flagged::before {
  content: "Flagged"; position: absolute; z-index: 2; top: 7px; left: 7px; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 99px; background: var(--warn); color: #1d1404;
}
.take.is-noted::before {
  content: "Note 00:04:12"; position: absolute; z-index: 2; top: 7px; left: 7px; font-size: 10px; font-weight: 600; font-family: var(--mono);
  padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff;
}
@media (max-width: 520px) { .dailies { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dailies .take:nth-child(n+5) { display: none; } }

/* Layout diagram */
.layout-diagram { display: grid; grid-template-columns: 1fr 2.2fr 1fr; grid-template-rows: auto auto; gap: 8px; }
.layout-diagram > div { border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px; background: var(--panel); min-height: 120px; }
.layout-diagram .ld-bottom { grid-column: 1 / -1; min-height: 0; }
.layout-diagram b { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.layout-diagram small { color: var(--muted); font-size: 0.82rem; display: block; line-height: 1.4; }
.layout-diagram .ld-center { border-style: solid; border-color: rgba(255, 107, 61, 0.4); }
@media (max-width: 640px) { .layout-diagram { grid-template-columns: 1fr; } .layout-diagram > div { min-height: 0; } }

/* ---------- Workspaces (how it works) ---------- */
.phase { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.phase-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.phase-head h2 { margin: 0; display: flex; align-items: center; gap: 14px; }
.phase-head h2::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--gc); }
.phase.pre { --gc: var(--pre); } .phase.prod { --gc: var(--prod); } .phase.post { --gc: var(--post); }
.phase-head p { color: var(--muted); margin: 0; max-width: 56ch; }
.ws-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ws-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 24px; display: grid; gap: 14px; align-content: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.ws-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ws-card h3 { margin: 0; display: flex; align-items: baseline; gap: 10px; font-size: 1.3rem; }
.ws-card h3 .num { font-family: var(--mono); font-size: 0.78rem; color: var(--gc); font-weight: 500; }
.ws-card > p { color: var(--muted); margin: 0; }
.ws-card dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.ws-card dt { color: var(--dim); font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.ws-card dd { margin: 0; color: var(--text); }
.ws-card.span-2 { grid-column: 1 / -1; }
@media (max-width: 860px) { .ws-cards { grid-template-columns: minmax(0, 1fr); } .ws-card.span-2 { grid-column: auto; } }
@media (max-width: 420px) { .ws-card dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .ws-card dd { margin-bottom: 8px; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.table { font-size: 0.92rem; min-width: 640px; }
.table caption { text-align: left; padding: 14px 18px; color: var(--muted); font-size: 0.85rem; caption-side: bottom; border-top: 1px solid var(--line); }
.table th, .table td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); font-weight: 500; background: var(--bg-2); position: sticky; top: 0; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { font-weight: 600; color: var(--text); }
.table td { color: var(--muted); }
.table td strong { color: var(--text); font-weight: 600; }
.table tr.group th { background: var(--bg-2); font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gc, var(--dim)); font-weight: 500; padding-block: 10px; }
.table .center { text-align: center; }
.yes, .no { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: middle; position: relative; }
.yes { background: rgba(62, 207, 142, 0.15); }
.yes::after { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 4px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.no::after { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; height: 2px; background: #4a505b; }
.compare th:not(:first-child), .compare td { text-align: center; }
.compare td.note { text-align: center; font-size: 0.85rem; }
.compare thead th:not(:first-child) { font-size: 0.8rem; color: var(--text); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1240px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 2.6vw, 32px); background: var(--panel); position: relative; }
.plan.is-feature { border-color: rgba(255, 107, 61, 0.55); background: linear-gradient(180deg, rgba(255, 107, 61, 0.08), var(--panel) 40%); box-shadow: 0 30px 80px -40px rgba(255, 107, 61, 0.5); }
.plan-tag { position: absolute; top: -12px; left: 24px; }
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 0.93rem; min-height: 3em; margin-bottom: 20px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amt { font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 680; letter-spacing: -0.04em; line-height: 1; }
.price .per { color: var(--muted); font-size: 0.95rem; }
.price-sub { color: var(--dim); font-size: 0.86rem; margin: 8px 0 22px; min-height: 2.8em; }
.plan .btn { margin-bottom: 22px; }
.plan .ticks { margin-top: 0; }
.plan .ticks-h { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin: 0 0 10px; }
.plan-foot { margin-top: auto; padding-top: 18px; color: var(--dim); font-size: 0.85rem; }
.plan-foot a { color: var(--muted); }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } .plan .for, .price-sub { min-height: 0; } }

.seat-calc { margin: -6px 0 22px; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 10px; }
.seat-calc label { font-size: 0.85rem; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.stepper button { width: 36px; height: 36px; background: var(--panel-2); border: 0; cursor: pointer; font-size: 1.1rem; color: var(--text); }
.stepper button:hover { background: var(--panel-3); }
.stepper input { width: 56px; height: 36px; text-align: center; background: var(--bg); border: 0; border-inline: 1px solid var(--line-2); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seat-total { font-size: 0.9rem; color: var(--text); }
.seat-total span { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-card { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: clamp(20px, 3vw, 36px); scroll-margin-top: calc(var(--header-h) + 24px); }
.form-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
/* Forms are iframes from seriouspixel.com (see site.js). The heights are fallbacks until the
   form reports its real height; the background matches the card so loading isn't a flash. */
/* The negative margins match the embed's body padding (4px 16px 20px), which leaves room for focus rings and the button glow. */
.form-embed { display: block; width: calc(100% + 32px); margin: 12px -16px -16px; border: 0; background: var(--panel); color-scheme: dark; }
.form-embed[data-form-embed="beta"] { height: 880px; }
.form-embed[data-form-embed="demo"] { height: 560px; }
@media (max-width: 640px) {
  .form-embed[data-form-embed="beta"] { height: 1540px; }
  .form-embed[data-form-embed="demo"] { height: 880px; }
}

/* ---------- Tree / code block ---------- */
.tree {
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.75; background: #0b0c0f; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; overflow-x: auto; color: var(--muted); white-space: pre; margin: 0;
}
.tree b { color: var(--text); font-weight: 600; }
.tree i { color: var(--dim); font-style: normal; }

/* ---------- Misc sections ---------- */
.handoff { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--muted); font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; }
.handoff span { display: inline-flex; align-items: center; gap: 8px; }
.handoff span::before { content: ""; width: 5px; height: 5px; background: var(--line-2); border-radius: 1px; }
.cta-band {
  border: 1px solid var(--line); border-radius: 22px; padding: clamp(32px, 6vw, 72px); text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 0%, rgba(255, 107, 61, 0.16), transparent 70%), var(--panel);
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 56ch; margin: 0 auto 28px; }
.cta-band .cta-row { justify-content: center; }
.type-card .meta { display: flex; justify-content: space-between; gap: 8px; }
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(10, 11, 13, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .chip-row { padding-block: 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.subnav .chip-row::-webkit-scrollbar { display: none; }
.subnav .chip { flex-shrink: 0; }
.feature-block { scroll-margin-top: calc(var(--header-h) + 72px); }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.kv > div { background: var(--panel); padding: 20px; }
.kv b { display: block; margin-bottom: 4px; }
.kv span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 860px) { .kv { grid-template-columns: minmax(0, 1fr); } }
.placeholder-card .frame { aspect-ratio: 16 / 9; border-radius: 10px; margin-bottom: 18px; }
.placeholder-card .frame .overlay-label { z-index: 2; }
.changelog-entry { border-left: 2px solid var(--line-2); padding: 4px 0 4px 20px; }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.media-offline {
  display: inline-grid; place-items: center; width: min(560px, 100%); aspect-ratio: 16 / 9; margin-bottom: 32px; border-radius: 12px;
  background: repeating-linear-gradient(135deg, #1a0c10 0 18px, #220f14 18px 36px); border: 1px solid #3a1a22;
  font-family: var(--mono); color: var(--danger); letter-spacing: 0.1em; font-size: clamp(0.9rem, 2.4vw, 1.2rem);
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
