/* Kinoklip website. Breeze Dark, like the app. */
:root {
  --bg: #1b1e20;
  --panel: #202326;
  --panel2: #232629;
  --deep: #141618;
  --line: #33383d;
  --line2: #3d4349;
  --text: #fcfcfc;
  --muted: #b4bbc2;
  --dim: #a1a9b1;
  --lime: #9ccc3c;
  --lime-ink: #16191b;
  --cyan: #4dd0e1;
  --cyan-hi: #8ee6f0;
  --red: #e5484d;
  --clip-video: #3f6e9e;
  --clip-video2: #4a7cb0;
  --clip-title: #6b4f96;
  --clip-audio: #2f6b45;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.4, 0, .2, 1);
  --pixel: "Pixelify Sans", "Noto Sans", system-ui, sans-serif;
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Noto Sans Mono", ui-monospace, "DejaVu Sans Mono", Menlo, monospace;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--cyan-hi); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--lime); color: var(--lime-ink); padding: 10px 16px; border-radius: 6px; font-weight: 700; z-index: 100; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.pixel { font-family: var(--pixel); }
.kicker { font-family: var(--pixel); font-size: 18px; color: var(--lime); margin: 0 0 10px; letter-spacing: .01em; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; }
h2 { font-family: var(--pixel); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); color: var(--text); }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
code, kbd { font-family: var(--mono); font-size: .9em; }
code { background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; overflow-wrap: anywhere; }
kbd { background: #292c30; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 7px; color: var(--text); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: 44px; }
.brand img { width: 32px; height: 32px; image-rendering: pixelated; }
.brand span { font-family: var(--pixel); font-weight: 700; font-size: 22px; }
.nav { display: flex; gap: 2px; flex: 1 1 auto; margin-left: 16px; }
.nav a { color: #d3d8dc; text-decoration: none; padding: 10px 14px; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; transition: background .15s, color .15s; }
.nav a:hover { background: #2f3337; color: var(--text); }
.nav a[aria-current="page"] { background: #2f3337; color: var(--text); box-shadow: inset 0 -2px 0 var(--lime); }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line2); color: var(--text); border-radius: 6px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 22px; border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .18s var(--ease), background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: #abd94f; color: var(--lime-ink); }
.btn-quiet { background: #292c30; color: var(--text); border-color: var(--line2); font-weight: 600; }
.btn-quiet:hover { background: #31353a; color: var(--text); }
.btn-lg { font-size: 18px; padding: 15px 28px; }
.btn svg { flex: none; }

/* Sections */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 14px; }
.band { background: var(--panel); border-block: 1px solid var(--line); }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { font-size: 14px; color: var(--dim); margin-top: 18px; }

/* App window frame */
.win { background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); min-width: 0; }
.win-bar { display: flex; align-items: center; gap: 16px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.win-bar .title { flex: 1; text-align: center; color: var(--text); }
.win-bar .tc { font-family: var(--mono); color: var(--text); }
.win-view { background: var(--deep); aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.typed { font-family: var(--pixel); font-size: clamp(22px, 3vw, 38px); min-height: 1.3em; display: flex; align-items: center; }
.caret { display: inline-block; width: 3px; height: 1em; background: var(--lime); margin-left: 4px; }
.js [data-anim].is-in .caret { animation: blink 1.1s steps(1) infinite; }
.tl { display: flex; font-size: 12px; color: var(--muted); }
.tl-heads { width: 54px; flex: none; border-right: 1px solid var(--line); }
.tl-heads div { display: flex; align-items: center; padding-left: 10px; border-bottom: 1px solid #2a2e32; }
.tl-heads .h0 { height: 22px; }
.tl-main { position: relative; flex: 1; overflow: hidden; }
.tl-ruler { height: 22px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, var(--line2) 0 1px, transparent 1px 10%) bottom / 100% 6px repeat-x; }
.tl-row { position: relative; border-bottom: 1px solid #2a2e32; }
.clip { position: absolute; top: 4px; bottom: 4px; border-radius: 3px; padding: 0 8px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; color: #eef4fb; font-size: 12px; }
.clip.v { background: var(--clip-video); }
.clip.v2 { background: var(--clip-video2); }
.clip.t { background: var(--clip-title); color: #f3eefb; }
.clip.a { background: var(--clip-audio); padding: 0; }
.wave { position: absolute; inset: 6px 4px; background: repeating-linear-gradient(90deg, #8fd1a5 0 2px, transparent 2px 5px); opacity: .6; clip-path: polygon(0 40%, 6% 20%, 12% 55%, 20% 10%, 28% 45%, 36% 25%, 44% 60%, 52% 15%, 60% 50%, 68% 30%, 76% 55%, 84% 20%, 92% 45%, 100% 35%, 100% 65%, 92% 55%, 84% 80%, 76% 45%, 68% 70%, 60% 50%, 52% 85%, 44% 40%, 36% 75%, 28% 55%, 20% 90%, 12% 45%, 6% 80%, 0 60%); }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--red); left: 62%; z-index: 3; }
.playhead::before { content: ""; position: absolute; top: 0; left: -5px; width: 12px; height: 10px; background: var(--red); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.key { position: absolute; width: 8px; height: 8px; background: #d8c38a; transform: rotate(45deg); top: 50%; margin: -4px 0 0 -4px; }
.pagebar { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pagebar span { padding: 4px 10px; border-radius: 4px; }
.pagebar .on { background: #2f3337; color: var(--text); }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px; margin-bottom: 20px; }
.tab { font: inherit; font-size: 15px; border: 0; cursor: pointer; padding: 10px 16px; border-radius: 6px; min-height: 44px; background: transparent; color: var(--muted); transition: background .15s, color .15s; }
.tab:hover { background: #2f3337; color: var(--text); }
.tab[aria-selected="true"] { background: #3a4046; color: var(--text); box-shadow: inset 0 -2px 0 var(--lime); }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-height: 380px; }
.stage-copy { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.stage-copy h3 { font-size: 28px; margin-bottom: 12px; }
.stage-copy p { color: var(--muted); }
.stage-art { background: var(--deep); border-left: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 32px; min-width: 0; }
.stage-art > div { width: 100%; max-width: 480px; }
.stage.wide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); }
.stage.wide .stage-art { padding: 20px; }
.stage.wide .stage-art > div { max-width: none; }

/* Real screenshots of the app */
.shot { margin: 0; background: var(--deep); border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); min-width: 0; }
.shot img { display: block; width: 100%; height: auto; }
.shot.big { border-radius: 12px; }
.showcase { padding: 0 0 72px; }
.showcase figcaption { padding: 10px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); background: var(--panel); }
.art .shot { margin-top: 22px; box-shadow: none; }
.js [data-anim] .shot.a-rise { animation-delay: calc(var(--i, 0) * 90ms); }

/* Illustrations */
.ill { width: 100%; }
.ill-cap { font-size: 13px; color: var(--dim); text-align: center; margin: 14px 0 0; }
.grid-thumbs { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
.bins { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.bins span { padding: 5px 8px; border-radius: 4px; }
.bins .on { background: #2f3337; color: var(--text); }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 4px; display: flex; align-items: flex-end; overflow: hidden; }
.thumb span { font-size: 11px; color: #f1f4f6; padding: 5px 6px; position: relative; z-index: 1; }
.thumb i { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--red); }
.thumb.sun::after { content: ""; position: absolute; right: 18%; top: 22%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.thumb.hill::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: rgba(0, 0, 0, .22); clip-path: polygon(0 60%, 30% 15%, 55% 55%, 80% 25%, 100% 50%, 100% 100%, 0 100%); }
.strip { position: relative; height: 46px; background: var(--panel); border-radius: 6px; overflow: hidden; }
.strip .row { position: absolute; inset: 8px 0; display: flex; gap: 3px; }
.strip .row div { background: var(--clip-video); border-radius: 3px; }
.strip .row div:nth-child(even) { background: var(--clip-video2); }
.tracks { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tracks .tl-row { border: 0; }
.nodes { position: relative; width: 100%; aspect-ratio: 480 / 270; }
.nodes svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.node { position: absolute; display: flex; align-items: center; justify-content: center; height: 11.5%; font-size: clamp(10px, 2.4vw, 13px); border-radius: 4px; border: 1px solid #4d5d6e; background: #33404f; color: var(--text); white-space: nowrap; }
.node.m { background: #3d3550; border-color: #5a4e75; }
.node.k { background: #2f3337; border-color: #e0a040; }
.node.g { background: #2f4a3a; border-color: #4f8a64; }
.wheels { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.wheel-box { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.wheel { position: relative; width: 104px; height: 104px; border-radius: 50%; background: conic-gradient(#d9534f, #d9c94f, #5fd94f, #4fd9c9, #4f6fd9, #c94fd9, #d9534f); padding: 3px; }
.wheel::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle, #3a3e42 0%, #232629 72%); }
.puck { position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 2px var(--deep); }
.curve { width: 100%; background: var(--panel); border-radius: 8px; margin-top: 18px; }
.mixer { display: flex; gap: 10px; justify-content: center; align-items: stretch; height: 210px; }
.strip-ch { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 54px; font-size: 11px; color: var(--muted); }
.strip-ch .body { flex: 1; display: flex; gap: 6px; align-items: stretch; }
.meter { position: relative; width: 12px; background: var(--panel); border-radius: 3px; overflow: hidden; }
.meter i { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: linear-gradient(to top, var(--lime) 0 62%, #e0c040 62% 84%, var(--red) 84%); transform-origin: bottom; transform: scaleY(.6); }
.fader { position: relative; width: 6px; background: var(--panel); border-radius: 3px; }
.fader i { position: absolute; left: -6px; width: 18px; height: 10px; background: #565d64; border-radius: 2px; bottom: 40%; }
.rec { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 0; font-family: var(--mono); font-size: 13px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; }
.rec b { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.card .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card .dim { color: var(--dim); font-size: 13px; }
.bar { height: 8px; background: var(--deep); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--lime); border-radius: 4px; transform-origin: left; }
.term { background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.8; color: #d9dee2; overflow: hidden; }
.term .p { color: var(--lime); }
.term .o { color: var(--dim); }
.term .l { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.vim-row { display: flex; gap: 14px; align-items: center; }
.keys { display: flex; flex-wrap: wrap; gap: 8px; }
.keycap { font-family: var(--mono); background: #292c30; border: 1px solid var(--line2); border-bottom-width: 3px; border-radius: 6px; padding: 6px 12px; min-width: 40px; text-align: center; font-size: 14px; }
.pipe { display: flex; align-items: center; gap: 0; }
.pipe .st { flex: 1; background: var(--panel); border: 1px solid var(--line2); border-radius: 6px; padding: 12px 8px; text-align: center; font-size: 13px; }
.pipe .st small { display: block; color: var(--dim); font-size: 11px; }
.pipe .wire { flex: 0 0 26px; height: 2px; background: var(--line2); position: relative; overflow: hidden; }
.pipe .wire i { position: absolute; top: 0; bottom: 0; width: 10px; background: var(--lime); }

/* Key demo */
.demo { background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; padding: 22px; }
.demo-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.demo-bar .tc { font-family: var(--mono); font-size: 18px; }
.demo-msg { color: var(--muted); }
.demo-tl { position: relative; height: 128px; background: var(--deep); border-radius: 6px; overflow: hidden; cursor: default; }
.demo-tl:focus-visible { outline-offset: 2px; }
.demo-ruler { position: absolute; left: 0; right: 0; top: 0; height: 22px; background: repeating-linear-gradient(90deg, var(--line2) 0 1px, transparent 1px 10%) bottom / 100% 6px repeat-x; border-bottom: 1px solid var(--line); }
.demo-clip { position: absolute; top: 34px; height: 42px; border-radius: 3px; background: var(--clip-video); color: #eef4fb; font-size: 13px; display: flex; align-items: center; padding: 0 8px; overflow: hidden; white-space: nowrap; transition: left .35s var(--ease), width .35s var(--ease); }
.demo-clip:nth-of-type(even) { background: var(--clip-video2); }
.demo-aud { position: absolute; left: 0; right: 0; top: 82px; height: 36px; display: flex; align-items: center; gap: 2px; padding: 0 2px; }
.demo-aud span { flex: 1 1 0; background: #8fd1a5; opacity: .55; border-radius: 1px; }
.demo-range { position: absolute; top: 0; bottom: 0; background: rgba(77, 208, 225, .13); border-inline: 2px solid var(--cyan); transition: left .2s, width .2s; }
.demo-head { position: absolute; top: 8px; bottom: 0; width: 2px; margin-left: -1px; background: var(--red); z-index: 2; transition: left .25s var(--ease); }
.demo-head.run { transition: none; }
.demo-keys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.keybtn { font: inherit; cursor: pointer; background: #292c30; color: var(--text); border: 1px solid var(--line2); border-bottom-width: 3px; border-radius: 8px; padding: 6px 14px; min-height: 52px; min-width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; transition: transform .1s, background .15s; }
.keybtn:hover { background: #31353a; }
.keybtn:active, .keybtn.hit { transform: translateY(2px); border-bottom-width: 1px; }
.keybtn b { font-family: var(--mono); font-weight: 500; font-size: 15px; }
.keybtn small { font-size: 12px; color: var(--muted); }
.demo-note { font-size: 14px; color: var(--dim); margin: 14px 0 0; }
.link-btn { font: inherit; background: none; border: 0; color: var(--cyan); text-decoration: underline; cursor: pointer; padding: 10px 4px; min-height: 44px; }

/* Facts table (why on linux) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.inspector { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.inspector > div { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr); gap: 18px; padding: 16px 18px; border-top: 1px solid #2a2e32; align-items: baseline; }
.inspector > div:first-child { border-top: 0; font-size: 14px; color: var(--muted); display: block; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.inspector .dt { color: var(--dim); font-size: 14px; text-align: right; }
.inspector .dd { margin: 0; }
.inspector .dd strong { color: var(--cyan); font-weight: 600; }
.inspector .dd .note { color: var(--muted); }
.honest { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 28px; max-width: 760px; }
.honest p { color: var(--muted); }
.honest strong { color: var(--text); }

/* Release highlights */
.hl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.hl h3 { font-size: 20px; margin-bottom: 12px; }
.hl ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hl li { position: relative; padding-left: 26px; color: var(--muted); }
.hl li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; background: var(--lime); }

/* Download block */
.dl-box { background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.dl-box h2 { margin-bottom: 12px; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.chip { background: var(--deep); border-radius: 6px; padding: 10px 12px; font-weight: 600; }
.chip small { display: block; color: var(--dim); font-weight: 400; font-size: 12px; }
.dl-box .btn { width: 100%; }

/* Community */
.community { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.community a.big { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 28px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s var(--ease); }
.community a.big:hover { border-color: var(--cyan); transform: translateY(-2px); }
.community a.big strong { display: block; font-family: var(--pixel); font-size: 24px; margin-bottom: 8px; color: var(--cyan); }
.community a.big span { color: var(--muted); }

/* Feature sections */
.feat { padding: 72px 0; border-top: 1px solid var(--line); }
.feat:first-of-type { border-top: 0; }
.feat .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.feat.flip .copy { order: 2; }
.feat .copy h2 { margin-bottom: 16px; }
.feat .copy p { color: var(--muted); }
.feat ul.plain { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.feat ul.plain li { position: relative; padding-left: 24px; color: var(--muted); }
.feat ul.plain li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--cyan); }
.feat .more { display: inline-block; margin-top: 18px; font-weight: 600; }
.art { background: var(--deep); border: 1px solid var(--line); border-radius: 10px; padding: 28px; min-width: 0; }
.art img { display: block; border-radius: 6px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.toc a { background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; padding: 8px 14px; border-radius: 20px; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
.toc a:hover { border-color: var(--cyan); }

/* Page heads */
.page-head { padding: 72px 0 24px; }
.page-head h1 { margin-bottom: 18px; }

/* Download page */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-left: 60px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--pixel); font-size: 20px; color: var(--lime-ink); background: var(--lime); border-radius: 6px; }
.steps h3 { font-size: 20px; margin-bottom: 4px; }
.steps p { color: var(--muted); margin: 0 0 8px; }
pre { background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.6; margin: 0 0 1em; max-width: 100%; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
.reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.reqs div { padding: 18px 22px; border-top: 1px solid var(--line); }
.reqs div:nth-child(-n+2) { border-top: 0; }
.reqs div:nth-child(odd) { border-right: 1px solid var(--line); }
.reqs dt { font-size: 13px; color: var(--dim); }
.reqs dd { margin: 2px 0 0; font-weight: 600; }
.reqs dd span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 680px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form label span { font-weight: 400; color: var(--muted); font-size: 14px; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; color: var(--text); background: var(--deep); border: 1px solid var(--line2); border-radius: 6px; padding: 10px 12px; min-height: 44px; width: 100%; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible, .form select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.alt { display: flex; flex-wrap: wrap; gap: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.panel h3 { margin-bottom: 8px; }
.panel p { color: var(--muted); }

/* Guide */
.search { position: relative; max-width: 640px; }
.search input { font: inherit; width: 100%; min-height: 52px; padding: 12px 16px; background: var(--panel); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; font-size: 17px; }
.search-count { color: var(--dim); font-size: 14px; margin: 10px 0 0; min-height: 1.5em; }
.g-group { margin-top: 44px; }
.g-group h2 { font-size: 26px; color: var(--cyan); margin-bottom: 16px; }
.g-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.g-list a { display: block; padding: 12px 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); min-height: 44px; }
.g-list a:hover strong { color: var(--cyan); }
.g-list strong { display: block; font-weight: 600; }
.g-list span { display: block; color: var(--muted); font-size: 15px; line-height: 1.5; }
.g-list li[hidden], .g-group[hidden] { display: none; }
.guide-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; padding: 40px 0 88px; align-items: start; }
.side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; font-size: 15px; padding-right: 8px; }
.side h2 { font-size: 16px; font-family: var(--pixel); color: var(--lime); margin: 18px 0 6px; }
.side a { display: block; padding: 8px 10px; color: var(--muted); text-decoration: none; border-radius: 6px; line-height: 1.35; }
.side a:hover { background: #2f3337; color: var(--text); }
.side a[aria-current="page"] { background: #2f3337; color: var(--text); box-shadow: inset 0 -2px 0 var(--lime); }
.side details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--cyan); }
.prose { max-width: 760px; min-width: 0; }
.prose h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 20px; }
.prose h2 { font-size: 28px; margin: 48px 0 14px; color: var(--cyan); }
.prose h3 { margin: 32px 0 10px; font-size: 20px; }
.prose img { border: 1px solid var(--line2); border-radius: 8px; margin: 10px 0 18px; display: block; }
.prose li { margin: 6px 0; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; margin: 0 0 1.2em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel); }
.prose blockquote { margin: 0 0 1em; padding: 4px 18px; background: var(--panel); border-radius: 6px; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose .edit-link { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--dim); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* Releases */
.rel { border-top: 1px solid var(--line); }
.rel summary { cursor: pointer; display: flex; align-items: baseline; gap: 14px; padding: 18px 4px; min-height: 56px; list-style: none; }
.rel summary::-webkit-details-marker { display: none; }
.rel summary::before { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .2s var(--ease); flex: none; align-self: center; }
.rel[open] summary::before { transform: rotate(45deg); }
.rel summary b { font-family: var(--pixel); font-size: 24px; }
.rel summary span { color: var(--muted); font-size: 14px; }
.rel .pill { background: var(--lime); color: var(--lime-ink); font-weight: 700; font-size: 12px; padding: 2px 10px; border-radius: 20px; }
.rel .prose { padding: 4px 4px 28px 28px; max-width: 820px; }
.rel .prose h2 { font-size: 22px; margin-top: 0; color: var(--text); }
.rel .prose h3 { font-size: 18px; color: var(--cyan); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; color: var(--dim); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { color: var(--dim); min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--text); }

/* Animations: base styles are the final state. Hidden until the section scrolls into view (only with JS). */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-24px); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes sweep { from { left: 0; } to { left: 100%; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: var(--len, 260); } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
@keyframes meter { 0%, 100% { transform: scaleY(.3); } 30% { transform: scaleY(.88); } 55% { transform: scaleY(.5); } 80% { transform: scaleY(.72); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes drift-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-16px, 12px); } }
@keyframes drift-b { 0%, 100% { transform: translate(8px, -6px); } 50% { transform: translate(18px, 14px); } }
@keyframes drift-c { 0%, 100% { transform: translate(-10px, 10px); } 50% { transform: translate(12px, -18px); } }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes scan { from { left: 0; } to { left: 100%; } }
@keyframes scroll-strip { to { transform: translateX(-33.333%); } }
@keyframes fader { 0%, 100% { bottom: 30%; } 50% { bottom: 62%; } }
@keyframes line-in { from { opacity: 0; transform: translateX(-10px); } }
@keyframes travel { from { left: -12px; } to { left: 100%; } }

.js [data-anim] .a-rise { animation: rise .8s var(--ease) both paused; animation-delay: calc(var(--i, 0) * 90ms); }
.js [data-anim] .a-slide { animation: slide-in .8s var(--ease) both paused; animation-delay: calc(var(--i, 0) * 110ms); }
.js [data-anim] .a-up { animation: slide-up .6s var(--ease) both paused; animation-delay: calc(var(--i, 0) * 70ms); }
.js [data-anim] .a-pop { animation: pop .5s var(--ease) both paused; animation-delay: calc(var(--i, 0) * 100ms); }
.js [data-anim] .a-line { animation: line-in .5s var(--ease) both paused; animation-delay: calc(var(--i, 0) * 450ms); }
.js [data-anim] .a-sweep { animation: sweep var(--dur, 8s) linear infinite paused; }
.js [data-anim] .a-draw { stroke-dasharray: var(--len, 260); animation: draw 1.6s var(--ease-io) both paused; animation-delay: calc(var(--i, 0) * 350ms + 300ms); }
.js [data-anim] .a-meter { transform-origin: bottom; animation: meter var(--dur, 1.3s) ease-in-out infinite paused; animation-delay: var(--d, 0s); }
.js [data-anim] .a-orbit { animation: orbit 14s linear infinite paused; }
.js [data-anim] .a-drift { animation: drift-a 6s ease-in-out infinite paused; }
.js [data-anim] .a-drift.b { animation-name: drift-b; animation-duration: 7s; }
.js [data-anim] .a-drift.c { animation-name: drift-c; animation-duration: 8s; }
.js [data-anim] .a-fill { animation: fill 7s var(--ease-io) infinite paused; }
.js [data-anim] .a-scan { animation: scan 2.4s var(--ease-io) infinite alternate paused; }
.js [data-anim] .a-scroll { animation: scroll-strip 14s linear infinite paused; }
.js [data-anim] .a-fader { animation: fader 5s ease-in-out infinite paused; animation-delay: var(--d, 0s); }
.js [data-anim] .a-travel { animation: travel 2.2s var(--ease-io) infinite paused; animation-delay: var(--d, 0s); }
.js [data-anim] .a-keyblink { animation: blink 1.6s steps(1) infinite paused; }
.js [data-anim].is-in .a-rise, .js [data-anim].is-in .a-slide, .js [data-anim].is-in .a-up, .js [data-anim].is-in .a-pop, .js [data-anim].is-in .a-line, .js [data-anim].is-in .a-sweep, .js [data-anim].is-in .a-draw,
.js [data-anim].is-in .a-meter, .js [data-anim].is-in .a-orbit, .js [data-anim].is-in .a-drift, .js [data-anim].is-in .a-fill, .js [data-anim].is-in .a-scan, .js [data-anim].is-in .a-scroll, .js [data-anim].is-in .a-fader, .js [data-anim].is-in .a-travel, .js [data-anim].is-in .a-keyblink { animation-play-state: running; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateY(2px); }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .split, .feat .wrap, .dl-box, .stage, .stage.wide { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: 40px; }
  .feat.flip .copy { order: 0; }
  .stage-art { border-left: 0; border-top: 1px solid var(--line); }
  .stage-copy { padding: 28px; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .side { position: static; max-height: none; }
  .hl, .community { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 64px 0; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .site-header .wrap { padding: 0 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .g-list, .reqs { grid-template-columns: minmax(0, 1fr); }
  .reqs div:nth-child(odd) { border-right: 0; }
  .reqs div:nth-child(2) { border-top: 1px solid var(--line); }
  .form .two { grid-template-columns: 1fr; }
  .inspector > div { grid-template-columns: 1fr; gap: 2px; }
  .inspector .dt { text-align: left; }
  .dl-box { padding: 24px; }
  .chips { grid-template-columns: 1fr 1fr 1fr; }
  .grid-thumbs { grid-template-columns: 1fr; }
  .bins { flex-direction: row; flex-wrap: wrap; }
  .stage-art { padding: 20px; }
  .art { padding: 18px; }
  .hero { padding-top: 40px; }
  .tl-heads { width: 40px; }
  .tl-heads div { padding-left: 6px; }
  .win-bar span:nth-child(n+3):not(.title):not(.tc) { display: none; }
  .demo { padding: 14px; }
}

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

/* Donation window after a download starts */
.donate { max-width: 520px; width: calc(100% - 32px); background: var(--panel); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.donate::backdrop { background: rgba(10, 12, 14, .6); }
.donate h2 { font-size: 24px; margin-bottom: 12px; }
.donate p { color: var(--muted); margin: 0 0 20px; }
.donate .fineprint { margin: 18px 0 0; }
