/* Cinemetric website: plain CSS, no frameworks.
   Dark, Plex-inspired palette. Text colors checked for WCAG AA on --bg and --panel. */

:root {
  --bg: #111215;
  --bg-2: #15171a;
  --panel: #1f2326;
  --panel-2: #282c31;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceef1;
  --muted: #a7adb6;
  --faint: #8b929c;
  --accent: #e5a00d;
  --accent-hi: #f5bb2e;
  --accent-ink: #1a1203;
  --good: #3ed184;
  --warn: #f0b429;
  --bad: #ff6b6b;
  --info: #5b9bf0;

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--accent-hi); text-decoration: none; font-weight: 600; }
a:hover { color: #ffd166; }
code { font-family: var(--mono); font-size: .92em; }
p code, li code { background: var(--panel-2); padding: .1em .4em; border-radius: 5px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
q { quotes: "\201C" "\201D"; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-defs { position: absolute; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--accent-ink); }
.accent-text {
  background: linear-gradient(100deg, var(--accent-hi), var(--accent) 60%, #ff9f1c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(17, 18, 21, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav a:hover, .nav a.current { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav a.current { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 2px 2px; }
.nav-gh { display: inline-flex; align-items: center; gap: 7px; }
.nav-gh svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -8px rgba(229, 160, 13, .6); }
.btn-primary:hover { background: var(--accent-hi); color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(229, 160, 13, .75); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary svg { transition: transform .2s var(--ease); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { color: var(--text); border-color: rgba(229, 160, 13, .6); background: rgba(229, 160, 13, .08); }
.btn.sm { padding: 9px 16px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; margin-top: -68px; padding: 150px 0 90px; isolation: isolate; }
.poster-wall {
  position: absolute; inset: -40px -10% auto; z-index: -2;
  display: flex; flex-direction: column; gap: 18px;
  transform: rotate(-8deg) scale(1.15); transform-origin: center top;
  opacity: .62; filter: blur(1.2px) saturate(.95);
}
.poster-row { display: flex; gap: 18px; width: max-content; animation: drift 90s linear infinite; }
.poster-row.reverse { animation-direction: reverse; animation-duration: 110s; }
.poster-row i {
  flex: none; width: 150px; aspect-ratio: 2 / 3; border-radius: 10px;
  background: #1f2326 center / cover no-repeat;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 20% 35%, rgba(229, 160, 13, .16), transparent 70%),
    linear-gradient(180deg, rgba(17, 18, 21, .45) 0%, rgba(17, 18, 21, .7) 50%, var(--bg) 100%),
    linear-gradient(90deg, rgba(17, 18, 21, .9) 0%, rgba(17, 18, 21, .45) 60%, rgba(17, 18, 21, .15) 100%);
}
.hero-inner { max-width: var(--wrap); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-hi);
  background: rgba(229, 160, 13, .1); border: 1px solid rgba(229, 160, 13, .3);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(229, 160, 13, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(229, 160, 13, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 160, 13, 0); } }
h1 { font-size: clamp(2.6rem, 7.5vw, 5.4rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 22px; }
.lede { font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: #c9ced5; max-width: 640px; margin-bottom: 34px; }

.terminal {
  max-width: 620px; background: rgba(21, 23, 26, .88); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  overflow: hidden; margin-bottom: 30px;
}
.terminal-bar, .mock-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: rgba(255, 255, 255, .035); border-bottom: 1px solid var(--line);
}
.terminal-bar span, .mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3f46; }
.terminal-bar span:first-child, .mock-bar span:first-child { background: #ff5f57; }
.terminal-bar span:nth-child(2), .mock-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3), .mock-bar span:nth-child(3) { background: #28c840; }
.terminal-bar em, .mock-bar em { font-style: normal; color: var(--faint); font-size: .8rem; font-weight: 600; margin-left: auto; }
.cmd { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 16px; }
.cmd + .cmd { border-top: 1px dashed var(--line); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--text); font-size: .95rem; scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd.ask code { color: var(--muted); padding: 6px 0; }
.prompt { color: var(--accent); margin-right: 8px; font-weight: 700; }
.caret { display: inline-block; width: 9px; height: 1.1em; vertical-align: -0.2em; margin-left: 3px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.copy {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  color: var(--muted); cursor: pointer; transition: color .2s, background .2s, border-color .2s, transform .15s;
}
.copy svg { width: 17px; height: 17px; }
.copy:hover { color: var(--text); border-color: rgba(229, 160, 13, .6); background: rgba(229, 160, 13, .1); }
.copy:active { transform: scale(.94); }
.copy.copied { color: var(--good); border-color: rgba(62, 209, 132, .5); background: rgba(62, 209, 132, .1); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }
.kicker {
  --k: var(--accent-hi);
  font-family: var(--mono); font-size: .85rem; font-weight: 700; letter-spacing: .04em;
  color: var(--k); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Shelf ---------- */
.shelf-section { padding-top: 40px; }
.shelf {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px;
}
.poster {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 2 / 3; padding: 18px; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--text);
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--a) 45%, transparent), transparent 65%),
    linear-gradient(170deg, var(--b), #0d0e10 85%);
  background-color: var(--b);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .07);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.poster::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .25s;
}
.poster:hover, .poster:focus-visible { transform: translateY(-8px) scale(1.02); box-shadow: 0 34px 60px -28px rgba(0, 0, 0, 1); color: var(--text); }
.poster:hover::after, .poster:focus-visible::after { box-shadow: inset 0 0 0 3px var(--accent); }
.poster:focus-visible { outline: none; }
.poster-art { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); width: 46%; color: var(--a); filter: drop-shadow(0 8px 24px color-mix(in srgb, var(--a) 60%, transparent)); transition: transform .4s var(--ease); }
.poster:hover .poster-art { transform: translateX(-50%) scale(1.08); }
.poster-art svg { width: 100%; height: auto; }
.poster-title { font-family: var(--mono); font-weight: 700; font-size: .98rem; word-break: break-word; }
.poster-sub { color: var(--muted); font-size: .88rem; }

/* ---------- Feature rows ---------- */
.feature { padding: clamp(56px, 8vw, 96px) 0; }
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 60% at 85% 50%, rgba(255, 255, 255, .025), transparent 70%);
}
.feature.flip::before { background: radial-gradient(50% 60% at 15% 50%, rgba(255, 255, 255, .025), transparent 70%); }
.feature-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature-copy > p { color: #c3c8cf; font-size: 1.06rem; }
.feature-copy > .kicker { color: var(--k); font-size: .85rem; }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li strong { color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(229, 160, 13, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23f5bb2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ask-line {
  display: inline-block; margin: 0; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: .95rem;
}
.ask-line q { color: var(--text); font-weight: 600; }

/* ---------- Mock panels ---------- */
.mock {
  margin: 0; background: linear-gradient(180deg, var(--panel), #1a1d20);
  border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .35);
  padding-bottom: 6px;
}
.mock > :not(.mock-bar) { margin-left: 20px; margin-right: 20px; }
.mock figcaption, .mock .caption { color: var(--faint); font-size: .78rem; margin-top: 14px; margin-bottom: 10px; }

/* ---------- Demo tabs ---------- */
.demo .mock-bar { gap: 7px; padding: 8px 10px 8px 14px; }
.tabs { display: none; margin-left: auto; gap: 4px; background: rgba(0, 0, 0, .25); padding: 3px; border-radius: 9px; }
.tabs-ready .tabs { display: flex; }
.tabs [role="tab"] {
  font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted); background: none; border: 0;
  padding: 6px 12px; border-radius: 7px; cursor: pointer; transition: color .2s, background .2s;
}
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { color: var(--accent-ink); background: var(--accent); }
.tabpanel:focus-visible { outline-offset: -3px; }
.panel-label { color: var(--accent-hi); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 0; }
.tabs-ready .panel-label { display: none; }
.tabpanel + .tabpanel { border-top: 1px dashed var(--line-2); }
.tabs-ready .tabpanel + .tabpanel { border-top: 0; }
.term {
  margin: 14px 0 0; padding: 0; max-height: 430px; overflow: auto;
  font: .8rem/1.6 var(--mono); color: #d7dbe0; white-space: pre; tab-size: 2;
  scrollbar-width: thin; scrollbar-color: var(--panel-2) transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); mask-image: linear-gradient(180deg, #000 88%, transparent);
  padding-bottom: 28px;
}
.term code { font: inherit; background: none; padding: 0; }
.term b { color: var(--text); }
.t-you { display: block; color: var(--text); background: rgba(255, 255, 255, .05); border-left: 2px solid var(--accent); padding: 2px 10px; margin: 0 -4px; border-radius: 0 6px 6px 0; }
.t-dot { color: var(--text); }
.t-h { color: var(--text); font-weight: 800; }
.t-dim { color: var(--faint); }
.t-table { display: inline-table; border-collapse: collapse; margin: 2px 0 0; vertical-align: top; white-space: nowrap; }
.t-table th, .t-table td { border: 1px solid #4b525c; padding: 0 1ch; text-align: left; font-weight: 400; }
.t-table th { color: var(--text); font-weight: 700; }
.t-link { color: #8cbcff; text-decoration: underline; text-underline-offset: 3px; }
.shot {
  margin-top: 14px; max-height: 430px; overflow: auto; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); scrollbar-width: thin;
  /* Same color as the dashboard's own background, so the padding looks like part of the page. */
  background: #101113; padding: 16px;
}
.shot img { width: 100%; height: auto; }

/* Both tabs sit in the same grid cell, so the panel is always as tall as the taller tab and nothing
   below it moves when switching. The inactive tab is invisible (and inert), not removed. */
.tabs-ready .tab-stack { display: grid; }
.tabs-ready .tab-stack > .tabpanel { grid-area: 1 / 1; }
.tabs-ready .tab-stack > .tabpanel { display: flex; flex-direction: column; }
.tabs-ready .tab-stack .caption { margin-top: auto; padding-top: 14px; }
.tabs-ready .tab-stack > .tabpanel.is-off { visibility: hidden; }

/* ---------- Privacy cards ---------- */
.privacy { background: linear-gradient(180deg, transparent, var(--bg-2) 25%, var(--bg-2) 75%, transparent); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(229, 160, 13, .35); }
.card-ico { width: 40px; height: 40px; padding: 9px; border-radius: 11px; color: var(--accent-hi); background: rgba(229, 160, 13, .12); margin-bottom: 18px; }
.card h3 { white-space: nowrap; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Setup ---------- */
.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 16px; counter-reset: none; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.step-num {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 900; font-size: 1.3rem; color: var(--accent-ink);
  background: linear-gradient(140deg, var(--accent-hi), var(--accent));
  box-shadow: 0 10px 24px -10px rgba(229, 160, 13, .7);
}
.step-body { min-width: 0; }
.step-body p { color: var(--muted); }
.step-body p q { color: var(--text); font-weight: 600; }
.step-body h3 { margin-top: 10px; }
.codeblock {
  display: flex; align-items: center; gap: 10px;
  background: #0d0e10; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 8px 8px 8px 16px;
}
.codeblock code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: #f3e3bf; padding: 6px 0; background: none; border-radius: 0; }
.codeblock.multi { padding: 4px 16px; }
.codeblock pre { margin: 0; overflow-x: auto; flex: 1; min-width: 0; }
.codeblock pre code { white-space: pre; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 9px 15px; border-radius: 99px; font-size: .95rem; font-weight: 600;
  background: rgba(229, 160, 13, .08); border: 1px solid rgba(229, 160, 13, .3); color: #f6dfa5;
}
.chips li::before { content: "\201C"; } .chips li::after { content: "\201D"; }

.extras { display: grid; gap: 12px; margin-bottom: 40px; }
.extra { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.extra summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.extra summary::-webkit-details-marker { display: none; }
.extra summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease);
}
.extra[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.extra summary:hover { background: rgba(255, 255, 255, .025); }
.extra-body { padding: 0 22px 20px; color: var(--muted); }
.extra-body ul { padding-left: 20px; display: grid; gap: 8px; margin: 0 0 1em; }
.extra-body strong { color: var(--text); }
.extra-body .codeblock { margin-bottom: 1em; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.more:hover svg { transform: translateX(3px); }
.readme-link { text-align: center; margin: 0; }
.readme-link .btn { display: inline-flex; }

/* ---------- Notices ---------- */
.notices { padding-top: 20px; }
.notice-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.notice { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg-2); }
.notice h2 { font-size: 1.1rem; letter-spacing: 0; }
.notice p { color: var(--muted); margin: 0; font-size: .95rem; }
.notice.caution { border-color: rgba(240, 180, 41, .3); background: linear-gradient(135deg, rgba(240, 180, 41, .07), transparent 60%), var(--bg-2); }
.notice.caution h2 { color: var(--warn); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; background: #0c0d0f; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.credit { margin: 8px 0 0; color: var(--muted); }
.credit a { color: var(--text); font-weight: 700; }
.credit a:hover { color: var(--accent-hi); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.footer-links > a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links > a:not(.btn):hover { color: var(--text); }
.legal { color: var(--faint); font-size: .84rem; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .shelf { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 4px 20px; margin: -12px -4px 0; scrollbar-width: thin; }
  .shelf li { scroll-snap-align: start; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .notice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cmd code, .codeblock > code { white-space: normal; overflow-wrap: anywhere; }
  .nav a:not(.nav-gh) { display: none; }
  .nav-gh span { display: none; }
  .hero { padding: 120px 0 70px; }
  .poster-row i { width: 110px; }
  .cards { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .step-num { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 12px; }
  .mock > :not(.mock-bar) { margin-left: 14px; margin-right: 14px; }
  .demo .mock-bar > span { display: none; }
  .tabs { margin-left: 0; }
  .term { font-size: .72rem; white-space: pre-wrap; overflow-wrap: anywhere; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
