/* Kineskop site — one stylesheet for the studio page, app landings and docs. */
:root {
  --bg: #f4ecda;
  --bg2: #efe3ca;
  --card: #fbf6ea;
  --line: #e2d5b8;
  --ink: #2f2a28;
  --muted: rgba(47, 42, 40, .64);
  --accent: #c98a2b;
  --mustard: #d8a03a;
  --mustard-dark: #b9852a;
  --teal: #3e6a6a;
  --night: #1f1a24;
  --night2: #2a2430;
  --cream: #f2e8d4;
  --radius: 28px;
  --shadow: 0 24px 60px rgba(47, 30, 16, .18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1820; --bg2: #241e28; --card: #2a2430; --line: #3a3340; --ink: #f2e8d4; --muted: rgba(242, 232, 212, .66);
    --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55; font-size: 17px; -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 8px; }

/* ---------- header ---------- */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.sticky { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.sticky.scrolled { border-bottom-color: var(--line); }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .2px; text-decoration: none; color: var(--ink); font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; image-rendering: pixelated; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a.link { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; opacity: .75; }
.nav a.link:hover { opacity: 1; }
.lang a, .lang-link { text-decoration: none; font-weight: 800; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--mustard); color: #2f2a28; font: inherit; font-weight: 800; text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer; box-shadow: 0 3px 0 var(--mustard-dark); transition: transform .12s ease, box-shadow .12s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--mustard-dark); }
.btn.small { padding: 9px 16px; font-size: 15px; }
.btn.ghost { background: transparent; border: 2px solid var(--line); color: var(--ink); box-shadow: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 40px 0 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; letter-spacing: .3px; color: var(--accent); background: color-mix(in srgb, var(--mustard) 16%, transparent); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 72px); line-height: 1.02; margin: 0 0 18px; font-weight: 900; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: 15px; font-weight: 700; }
.trust span::before { content: "✓ "; color: var(--teal); }

.stage { position: relative; }
.window { position: relative; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); border: 10px solid #3a2a20; background: #3a2a20; aspect-ratio: 720 / 776; }
.window video, .window img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.chip { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--card); color: var(--ink); font-weight: 800; font-size: 15px; padding: 10px 14px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); border: 1px solid var(--line); animation: float 6s ease-in-out infinite; white-space: nowrap; }
.chip b { color: var(--accent); }
.chip.c1 { left: -26px; top: 14%; }
.chip.c2 { right: -22px; top: 46%; animation-delay: -2s; }
.chip.c3 { left: 8%; bottom: -20px; animation-delay: -4s; font-family: ui-monospace, Menlo, monospace; background: var(--night); color: #f4b04a; border-color: transparent; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- signup pill ---------- */
.signup { position: relative; max-width: 480px; }
.pill { display: flex; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 5px; transition: border-color .15s, box-shadow .15s; }
.pill:focus-within { border-color: var(--mustard); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mustard) 25%, transparent); }
.pill input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); padding: 10px 16px; outline: none; }
.pill input::placeholder { color: var(--muted); }
.signup .note { display: block; margin: 10px 0 0 18px; color: var(--muted); font-size: 14px; }
.signup .note.err { color: #c0503c; }
.signup button.busy { opacity: .6; pointer-events: none; }
.done { display: none; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--mustard); border-radius: 22px; padding: 14px 18px; max-width: 480px; animation: pop .45s cubic-bezier(.3,1.6,.5,1); text-align: left; }
.done img { width: 48px; height: 48px; border-radius: 12px; image-rendering: pixelated; }
.done b { display: block; }
.done span { color: var(--muted); font-size: 15px; }
.joined .signup { display: none; }
.joined .done { display: flex; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- sections ---------- */
section.block { padding: 70px 0; }
.kicker { font-weight: 800; color: var(--accent); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; margin: 0 0 14px; font-weight: 900; letter-spacing: -.5px; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 58ch; font-size: 18px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* fact strip */
.fact { background: var(--night); color: var(--cream); border-radius: var(--radius); padding: 44px; display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; }
.fact .big { font-size: clamp(64px, 10vw, 120px); font-weight: 900; line-height: .9; color: #f08a6a; letter-spacing: -2px; }
.fact .big small { display: block; font-size: 20px; letter-spacing: 0; color: rgba(242,232,212,.7); font-weight: 700; margin-top: 8px; }
.fact p { margin: 0; font-size: 20px; color: rgba(242,232,212,.85); }
.fact p b { color: #f4b04a; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; right: 24px; font-weight: 900; font-size: 40px; color: color-mix(in srgb, var(--mustard) 45%, transparent); }
.step .ic { font-size: 30px; display: block; margin-bottom: 12px; }
.step b { display: block; font-size: 20px; margin-bottom: 6px; }
.step span { color: var(--muted); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tile .txt { padding: 26px 26px 18px; }
.tile .txt b { display: block; font-size: 22px; margin-bottom: 6px; line-height: 1.2; }
.tile .txt span { color: var(--muted); }
.tile .pic { margin-top: auto; padding: 0 22px; }
.tile .pic img { display: block; margin: 0 auto; width: auto; height: auto; max-width: min(100%, 380px); max-height: 320px; border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.t-wide { flex-direction: row; }
.t-wide .txt { flex: 1; align-self: center; padding-bottom: 26px; }
.t-wide .pic { flex: 0 0 48%; padding: 26px 26px 0 0; margin-top: 0; display: flex; align-items: flex-end; }
.t-wide { grid-column: span 4; }
.t-narrow { grid-column: span 2; }
.t-half { grid-column: span 3; }
.tile.dark { background: var(--night); color: var(--cream); border-color: transparent; }
.tile.dark .txt span { color: rgba(242,232,212,.7); }
.tile.dark .pic { display: grid; place-items: center; padding: 10px 22px 26px; }
.tile.dark .pic img { width: 170px; height: 170px; border: 0; border-radius: 0; image-rendering: pixelated; object-fit: contain; }
.lock-chip { display: inline-block; margin-top: 14px; background: rgba(242,232,212,.08); border: 1px solid rgba(242,232,212,.15); border-radius: 14px; padding: 8px 12px; font-size: 15px; }
.lock-chip b { color: #f4b04a; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pills span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; }

/* feature rows: one idea per row, visuals in identical frames */
.frows { display: flex; flex-direction: column; gap: 90px; margin-top: 56px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.frow.flip .ftext { order: 2; }
.ftext { max-width: 440px; }
.frow.flip .ftext { justify-self: end; }
.ficon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--mustard) 18%, transparent); font-size: 26px; margin-bottom: 18px; }
.ftext h3 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; margin: 0 0 12px; font-weight: 900; letter-spacing: -.3px; }
.ftext p { margin: 0; color: var(--muted); font-size: 19px; }
.visual { aspect-ratio: 1 / 1; border-radius: 36px; background: var(--bg2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; position: relative; }
.visual img { width: auto; height: auto; max-width: 74%; max-height: 82%; border-radius: 22px; box-shadow: 0 24px 50px rgba(47, 30, 16, .18); border: 1px solid var(--line); }
.visual.dark { background: var(--night); border-color: transparent; align-content: center; gap: 22px; }
.visual img.pix { width: 46%; max-width: 46%; border: 0; border-radius: 0; box-shadow: none; image-rendering: pixelated; }
.visual .quote { color: var(--cream); background: rgba(242,232,212,.08); border: 1px solid rgba(242,232,212,.16); border-radius: 16px; padding: 10px 16px; font-weight: 700; font-size: 16px; }
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 90px; }
.extra { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.extra .ficon { width: 44px; height: 44px; font-size: 22px; margin-bottom: 12px; border-radius: 13px; }
.extra b { display: block; font-size: 17px; margin-bottom: 4px; }
.extra span:last-child { color: var(--muted); font-size: 15px; }

/* gallery */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 6px 20px 26px; margin: 0 -20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img { width: 232px; flex: 0 0 auto; border-radius: 30px; border: 8px solid #2f2a28; scroll-snap-align: center; box-shadow: 0 14px 30px rgba(0,0,0,.15); }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.plan.pro { border: 2px solid var(--mustard); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 26px; background: var(--mustard); color: #2f2a28; font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 24px; }
.plan .price { font-size: 34px; font-weight: 900; margin: 6px 0 2px; }
.plan .price small { font-size: 16px; font-weight: 700; color: var(--muted); }
.plan .per { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 7px 0 7px 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--teal); font-weight: 900; }
.plan.pro li::before { color: var(--accent); }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; padding: 18px 30px 18px 0; position: relative; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 26px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* final cta */
.final { background: var(--night); color: var(--cream); border-radius: 36px; padding: 50px; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.final::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(216,160,58,.28), transparent 70%); pointer-events: none; }
.final h2 { color: var(--cream); }
.final p { color: rgba(242,232,212,.75); margin: 0 0 22px; font-size: 18px; }
.cat-says { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 210px; }
.cat-says img { width: 130px; height: 130px; border-radius: 30px; image-rendering: pixelated; box-shadow: 0 12px 28px rgba(0,0,0,.4); transition: transform .3s ease; }
.joined .cat-says img { transform: rotate(-7deg) scale(1.06); }
.bubble { position: relative; background: var(--cream); color: #2f2a28; font-weight: 800; font-size: 15px; line-height: 1.35; padding: 10px 14px; border-radius: 16px; text-align: center; order: -1; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-top-color: var(--cream); border-bottom: 0; }
.final .pill { background: var(--cream); border-color: transparent; }
.final .pill input { color: #2f2a28; }
.final .pill input::placeholder { color: rgba(47,42,40,.5); }
.final .signup .note { color: rgba(242,232,212,.6); }
.final .done { background: rgba(242,232,212,.08); color: var(--cream); }
.final .done span { color: rgba(242,232,212,.7); }

.final > *, .hero > * { min-width: 0; }

/* reveal on scroll (only when JS runs, so content never stays hidden) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .chip { animation: none; } html { scroll-behavior: auto; } }

/* ---------- footer, docs, studio ---------- */
footer { padding: 40px 0 60px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 40px; }
footer a { color: var(--muted); }
.doc { max-width: 720px; padding: 20px 0 60px; }
.doc h1 { font-size: 40px; margin: 10px 0 6px; font-weight: 900; }
.doc .date { color: var(--muted); margin: 0 0 24px; }
.doc li { margin: 6px 0; }
.studio { padding: 70px 0 40px; max-width: 720px; }
.studio h1 { font-size: clamp(44px, 7vw, 76px); margin: 0 0 12px; font-weight: 900; letter-spacing: -.5px; }
.studio p { font-size: 20px; color: var(--muted); margin: 0; }
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 20px 0 60px; }
.app { display: flex; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 22px; text-decoration: none; color: var(--ink); transition: transform .15s ease; }
a.app:hover { transform: translateY(-3px); }
.app img { width: 84px; height: 84px; border-radius: 20px; image-rendering: pixelated; flex: 0 0 auto; }
.app b { display: block; font-size: 22px; }
.app span { color: var(--muted); display: block; }
.app .tag { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 800; color: #2f2a28; background: var(--mustard); padding: 3px 10px; border-radius: 999px; }
.app.soon { border-style: dashed; opacity: .75; }
.apps.three { grid-template-columns: repeat(3, 1fr); }
.apps.three .app { flex-direction: column; align-items: flex-start; }
.app.soon .ph { width: 84px; height: 84px; border-radius: 20px; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 30px; flex: 0 0 auto; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav a.link { display: none; }
  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 16px; }
  .stage { max-width: 440px; margin: 0 auto; width: 100%; }
  .bento { grid-template-columns: 1fr; }
  .frows { gap: 56px; margin-top: 36px; }
  .frow { grid-template-columns: 1fr; gap: 26px; }
  .frow.flip .ftext { order: 0; justify-self: start; }
  .extras { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .t-wide, .t-narrow, .t-half { grid-column: auto; }
  .t-wide { flex-direction: column; }
  .t-wide .txt { padding-bottom: 18px; }
  .t-wide .pic { flex: none; padding: 0 22px; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; padding: 32px; gap: 18px; }
  .final { grid-template-columns: 1fr; padding: 32px 22px; text-align: center; }
  .final .signup, .final .done { margin: 0 auto; }
  .cat-says { width: auto; }
  .apps, .apps.three { grid-template-columns: 1fr; }
  .apps.three .app { flex-direction: row; align-items: center; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { gap: 8px; }
  .nav .btn.small { padding: 8px 12px; font-size: 14px; }
  .lang a { padding: 6px 10px; font-size: 13px; }
  .bubble { max-width: 250px; }
  .final .pill { width: 100%; }
  .lead { font-size: 18px; }
  .chip.c1 { left: -8px; } .chip.c2 { right: -8px; }
  .chip { font-size: 13px; padding: 8px 10px; }
  .pill input { padding: 10px 10px; font-size: 16px; }
  .pill .btn { padding: 11px 14px; }
  .signup .note { margin-left: 4px; }
  .shots img { width: 200px; }
}
