/* Kinoteka landing page — the app's own palette (ui/theme/Theme.kt), its pill buttons and rounded cards,
   laid out the way streaming services do it: artwork wall, headline, devices, features, plans, FAQ. */
:root {
  --bg: #0b0b0f;
  --surface: #14141b;
  --surface-high: #1c1c26;
  --outline: #2a2a36;
  --text: #f3f3f7;
  --muted: #9b9bb0;
  --accent: #4f8eff;
  --accent-soft: rgba(79, 142, 255, .14);
  --good: #3dd68c;
  --star: #f5c518;
  --tile-movies: #f5a623;
  --tile-series: #2dd4c6;
  --tile-watch: #3dd68c;
  --tile-account: #aa7cf2;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --max: 1200px;
  --gap-section: clamp(64px, 8vw, 100px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ── nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 40px; padding: 22px 36px;
  background: linear-gradient(rgba(11, 11, 15, .92), rgba(11, 11, 15, .55));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand.small { font-size: 15px; }
.brand-logo { display: block; height: 34px; width: auto; }
.brand.small .brand-logo { height: 26px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #34343f, #1d1d27);
  box-shadow: inset 0 0 0 1.5px rgba(79, 142, 255, .7);
}
.logo-mark svg { width: 22px; height: 22px; fill: var(--accent); }
.links { display: flex; gap: 32px; margin-left: 12px; color: var(--muted); font-size: 14px; font-weight: 700; }
.links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; border: 1px solid var(--outline); border-radius: var(--r-pill); padding: 2px; background: rgba(20, 20, 27, .6); }
.lang button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: var(--r-pill); cursor: pointer; }
.lang button.on { background: var(--accent); color: #fff; }

/* ── buttons: the app's pills ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--r-pill); font-weight: 600; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--outline); background: var(--surface); color: var(--text);
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(79, 142, 255, .35); }
.btn.primary:hover { background: #6aa0ff; box-shadow: 0 14px 36px rgba(79, 142, 255, .45); }
.btn.glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.btn.sm { font-size: 13px; padding: 10px 18px; }
.btn.lg { font-size: 15px; padding: 14px 24px; }
.btn svg { width: 20px; height: 20px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ── hero with the artwork wall ── */
.hero { position: relative; min-height: 92vh; display: grid; place-items: center; padding: 150px 24px 72px; overflow: hidden; isolation: isolate; }
.wall {
  position: absolute; top: -12%; bottom: -12%; left: -20%; right: -20%; inset: -12% -20%; z-index: -2; display: grid; gap: 18px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  transform: perspective(1400px) rotateX(18deg) rotateZ(-6deg) scale(1.08); transform-origin: 50% 40%;
  opacity: 0; transition: opacity 1.2s ease;
}
.wall.ready { opacity: 1; }
.wall .col { display: grid; gap: 18px; animation: drift linear infinite; }
.wall .col:nth-child(odd) { animation-direction: reverse; }
.wall img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; filter: saturate(.9) brightness(.85); }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-14%); } }
.hero-fade {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 48%, rgba(11, 11, 15, .92) 0%, rgba(11, 11, 15, .72) 45%, rgba(11, 11, 15, .2) 100%),
    linear-gradient(180deg, rgba(11, 11, 15, .85) 0%, rgba(11, 11, 15, .15) 25%, rgba(11, 11, 15, .15) 70%, var(--bg) 100%);
}
.hero-inner { max-width: 860px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 64px); font-weight: 700; letter-spacing: -.02em; text-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.lead { margin-top: 20px; font-size: clamp(15px, 1.4vw, 17px); color: #c9c9d6; max-width: 58ch; text-shadow: 0 4px 20px rgba(0, 0, 0, .7); }
.price-line { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--text); }
.price-line b { color: var(--good); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.version { margin-top: 14px; font-size: 13px; color: var(--muted); }
.stats { list-style: none; margin: 48px 0 0; padding: 28px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; gap: 40px; }
.stats b { display: block; font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--muted); }

/* ── sections ── */
.section { max-width: var(--max); margin: 0 auto; padding: var(--gap-section) 24px 0; }
.section-head { max-width: 760px; }
.section-head h2, .devices h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section .sub { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 60ch; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ── devices with mockups ── */
.devices { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.checks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 4px; border: 2px solid var(--accent); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.mockups { position: relative; padding: 16px 0 64px 0; }
.tv { width: 90%; }
.tv-screen { border-radius: 14px; border: 6px solid #1b1b22; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px #2d2d38; overflow: hidden; }
.tv-stand { width: 34%; height: 10px; margin: 0 auto; background: linear-gradient(#2a2a35, #15151c); border-radius: 0 0 8px 8px; }
.phone { position: absolute; right: -4%; bottom: -6%; width: 46%; min-width: 200px; }
.phone-screen { border-radius: 22px; border: 6px solid #1b1b22; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 0 1px #2d2d38; overflow: hidden; }

/* ── features: big screens, alternating ── */
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 24px 0; }
.feature + .feature { margin-top: 16px; }
.feature.flip .shot { order: 2; }
.shot { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--outline); background: var(--surface); box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.feature-text h3 { font-size: clamp(21px, 2.3vw, 28px); margin: 16px 0 12px; }
.feature-text p { color: var(--muted); font-size: 15px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-high); border: 1px solid var(--outline); }
.tile-movies { color: var(--tile-movies); } .tile-lang { color: var(--accent); } .tile-remote { color: var(--tile-account); } .tile-watch { color: var(--tile-watch); }

/* ── plans ── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 40px; }
.plan { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-lg); padding: 26px 22px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s ease, transform .15s ease; }
.plan:hover { border-color: var(--accent); transform: translateY(-3px); }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(79, 142, 255, .18); }
.plan .label { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan .price { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.plan .per { font-size: 13px; color: var(--muted); min-height: 1.4em; }
.plan .tag-space { height: 25px; }
.plan.free { border-color: rgba(61, 214, 140, .45); background: linear-gradient(180deg, rgba(61, 214, 140, .07), transparent 55%), var(--surface); }
.plan.free .tag { color: var(--good); background: rgba(61, 214, 140, .14); }
.plan.free .btn { border-color: rgba(61, 214, 140, .5); }
.plan.free .btn:hover { border-color: var(--good); }
.plan .tag { align-self: flex-start; height: 25px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: var(--r-pill); padding: 0 10px; }
.plan .btn { margin-top: 10px; }
.plans-note { margin-top: 20px; color: var(--muted); font-size: 14px; }

/* ── install ── */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-lg); padding: 26px; }
.num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.steps h3 { font-size: 16px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14px; }
.steps p b { color: var(--text); font-weight: 700; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; }
.steps.four li { flex-direction: column; gap: 14px; padding: 22px; }
@media (max-width: 1100px) { .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dev-tabs { margin-top: 32px; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--outline); border-radius: var(--r-pill); background: var(--surface); }
.dev-tabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: var(--r-pill); cursor: pointer; }
.dev-tabs button:hover { color: var(--text); }
.dev-tabs button.on { background: var(--accent); color: #fff; }
.dev-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.trouble-title { margin-top: 48px; font-size: 20px; }
.dl-code { margin-top: 12px; display: inline-block; font-size: 30px; font-weight: 700; letter-spacing: .08em; color: var(--text); background: var(--surface-high); border: 1px solid var(--accent); border-radius: 12px; padding: 6px 16px; font-variant-numeric: tabular-nums; }
.dl-or { margin-top: 10px; }
.dl-or .url { margin-top: 0; margin-left: 4px; }
.trouble-title + .faq { margin-top: 16px; }
.url { display: inline-block; margin-top: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--surface-high); border: 1px solid var(--outline); border-radius: 8px; padding: 6px 10px; word-break: break-all; }
.notice { margin-top: 24px; padding: 14px 18px; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid rgba(79, 142, 255, .3); font-size: 14px; }
.notice strong { margin-right: 6px; }

/* ── faq ── */
.faq { margin-top: 36px; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-md); padding: 0 18px; }
summary { cursor: pointer; padding: 18px 0; font-size: 15px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 20px; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); font-size: 15px; padding-bottom: 18px; }

/* ── closing band ── */
.band { max-width: var(--max); margin: var(--gap-section) auto 0; padding: 56px 24px; text-align: center; border-radius: var(--r-lg); background: radial-gradient(80% 120% at 50% 0%, rgba(79, 142, 255, .28), rgba(20, 20, 27, .6) 70%); border: 1px solid rgba(79, 142, 255, .25); }
.band h2 { font-size: clamp(26px, 3.2vw, 38px); }
.band p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ── footer ── */
.footer { max-width: var(--max); margin: 40px auto 0; padding: 24px 24px 44px; border-top: 1px solid var(--outline); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 13px; }
.contact { display: flex; gap: 12px; color: var(--muted); }
.contact a { color: var(--accent); font-weight: 600; }
.footer .muted { margin-left: auto; }

/* free code */
.free-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px; border-radius: var(--r-lg); background: radial-gradient(70% 120% at 0% 0%, rgba(83, 145, 255, .2), transparent 60%), radial-gradient(60% 120% at 100% 100%, rgba(102, 85, 255, .18), transparent 60%), var(--surface); border: 1px solid rgba(110, 130, 255, .28); }
.free-card h2 { font-size: clamp(26px, 3.2vw, 38px); }
.free-card .checks { margin-top: 22px; }
.free-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 32px 24px; border-radius: var(--r-lg); background: rgba(11, 11, 15, .55); border: 1px solid var(--outline); min-height: 220px; justify-content: center; }
.free-result { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.free-codes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; }
.free-codes li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 14px; border: 1px solid var(--outline); background: var(--surface-high); }
.free-codes li.newest { border-color: var(--accent); }
.free-codes .free-code { padding: 0; border: 0; background: none; font-size: clamp(20px, 5vw, 28px); }
.free-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.free-code { white-space: nowrap; font-size: clamp(22px, 6.4vw, 40px); font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; padding: 10px 22px; border-radius: 14px; border: 1px solid var(--accent); background: var(--surface-high); user-select: all; }
.free-note { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 36ch; }
.free-link { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 14px; }
.free-link:hover { text-decoration: underline; }
.free-error { margin: 0; color: #ff9a9e; font-size: 14px; max-width: 36ch; }
button.btn { font-family: inherit; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }

@media (max-width: 960px) {
  .free-card { grid-template-columns: 1fr; padding: 32px 22px; gap: 28px; }
  .devices, .feature { grid-template-columns: 1fr; }
  .feature.flip .shot { order: 0; }
  .steps, .steps.four { grid-template-columns: 1fr; }
  .steps.four li { flex-direction: row; gap: 16px; }
  .dev-tabs { display: flex; border-radius: var(--r-md); }
  .dev-tabs button { flex: 1 1 auto; border-radius: 10px; }
  .links { display: none; }
  .wall { grid-template-columns: repeat(7, minmax(0, 1fr)); top: -10%; bottom: -10%; left: -30%; right: -30%; inset: -10% -30%; }
}
@media (max-width: 600px) {
  .nav { padding: 14px 16px; gap: 12px; }
  .section, .band { padding-left: 16px; padding-right: 16px; }
  .stats { gap: 22px; }
  .phone { min-width: 160px; }
  .dev-tabs { flex-direction: column; }
  .footer .muted { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall .col { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .plan { transition: none; }
}
