/* cinema.kluk.one. Tokens follow the app: bg #0B0B0F, surface #1C1C21, accent #E50914 (Cinema/UI). Dark only, like the app. */
:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --surface: #15151a;
  --surface-2: #1c1c21;
  --line: rgba(255, 255, 255, .09);
  --text: #f4f4f6;
  --muted: #a9a9b4;      /* 8.3:1 on --bg */
  --accent: #e50914;
  --accent-hi: #ff4d57;  /* red for text on dark: 5.9:1 */
  --r: 14px;
  --gutter: 16px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; letter-spacing: -.02em; line-height: 1.08; font-weight: 800; }
p { text-wrap: pretty; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 11, 15, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .14em; color: var(--accent-hi); font-size: 15px; }
.brand img { width: 28px; height: 28px; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.top nav a:hover { color: var(--text); }
.top .btn { padding: 8px 14px; font-size: 14px; min-height: 0; }
@media (max-width: 719px) { .top nav a:not(.keep) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 26px; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: #f31420; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.ghost { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: #26262d; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 0; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 38%, rgba(229, 9, 20, .26), transparent 70%); }
.hero .wrap { position: relative; }
.hero .appicon { width: 96px; height: 96px; margin: 0 auto 20px; }
.hero h1 { font-size: clamp(38px, 7vw, 72px); max-width: 14ch; margin: 0 auto; }
.hero .lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 21px); max-width: 36em; margin: 20px auto 28px; }
.dl-meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.dl-meta a { text-underline-offset: 3px; }
.shot { margin: 48px auto 0; width: min(100%, 1040px); border-radius: var(--r) var(--r) 0 0; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 -20px 120px rgba(229, 9, 20, .16); }
@media (max-width: 719px) { .hero { padding-top: 40px; } .hero .btn { width: 100%; } .dl-meta .sep { display: none; } .dl-meta a { display: block; width: fit-content; margin: 2px auto 0; } .shot { margin-top: 36px; border-radius: 10px 10px 0 0; } }

/* Sections */
section { padding: 72px 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { color: var(--accent-hi); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
h2 { font-size: clamp(28px, 4.4vw, 44px); }
.sub { color: var(--muted); max-width: 40em; margin-top: 16px; }
.split { display: grid; gap: 36px; align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.15fr; gap: 64px; } .split.rev > :first-child { order: 2; } }
.frame { border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .5); background: #000; }
.frame.sheet { background: #0a0a0e; width: min(100%, 480px); margin-inline: auto; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: var(--muted); }
.ticks li b { color: var(--text); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border: solid var(--accent-hi); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-3px); }

/* 16 connections diagram */
.lanes { display: grid; gap: 22px; padding: 24px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.lane-h { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.lane-h b { color: var(--text); }
.bar { height: 14px; border-radius: 4px; background: #2a2a31; overflow: hidden; display: grid; gap: 2px; }
.bar.x16 { grid-template-columns: repeat(16, 1fr); background: none; }
.bar i { display: block; background: #2a2a31; position: relative; overflow: hidden; }
.bar.x16 i { border-radius: 2px; }
.bar i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(.06); }
.bar.x16 i::after { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .bar i::after { animation: fill 9s linear infinite; }
  .bar.x16 i::after { animation: fill16 9s cubic-bezier(.3, 0, .4, 1) infinite; animation-delay: calc(var(--i) * 40ms); }
  @keyframes fill { from { transform: scaleX(0); } 90%, to { transform: scaleX(.38); } }
  @keyframes fill16 { from { transform: scaleX(0); } 26%, to { transform: scaleX(1); } }
}

/* Feature grid */
.grid { display: grid; gap: 14px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid:first-child { margin-top: 0; }
.card { padding: 22px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.card svg { width: 24px; height: 24px; color: var(--accent-hi); margin-bottom: 14px; }
kbd { font: 600 13px var(--font); padding: 2px 7px; border-radius: 6px; background: #2a2a31; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line); color: var(--text); white-space: nowrap; }

/* Steps */

/* FAQ */
.faq { max-width: 760px; margin-top: 28px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 650; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details > div { color: var(--muted); padding: 0 0 20px; display: grid; gap: 10px; }
details ol { margin: 0; padding-left: 22px; }

/* CTA + footer */
.cta { text-align: center; }
.cta .btn { margin-top: 28px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
.kluk { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.kluk svg { width: 22px; height: 22px; }
footer .right { margin-left: auto; }

/* Releases */
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(30px, 5vw, 44px); }
.rel { padding: 28px 0; border-bottom: 1px solid var(--line); max-width: 760px; }
.rel-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.rel-h h2 { font-size: 24px; letter-spacing: -.01em; }
.rel-h h2 a { text-decoration: none; }
.rel-h time, .rel-h .build { color: var(--muted); font-size: 14px; }
.rel-h .tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 99px; }
.notes { color: #d6d6dd; font-size: 16px; }
.notes h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.notes ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.notes li::marker { color: var(--accent-hi); }
.notes p + p, .notes ul + p { margin-top: 10px; }
.notes a { color: var(--accent-hi); }

/* A single release page: also shown inside the app's update sheet (dark webview, ~420 px). */
body.note { font-size: 15px; background: var(--bg); }
body.note main { max-width: 640px; margin: 0 auto; padding: 20px 16px 28px; }
body.note .rel { border: 0; padding: 0; }
body.note .rel-h h1 { font-size: 22px; letter-spacing: -.01em; }
body.note .notes { font-size: 15px; }
body.note .all { display: inline-block; margin-top: 22px; color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
