/* Koomo Pip website: dark theme only. Shared by index.html and changelog.html (generated). */

/* =========================================================
   TOKENS
   ========================================================= */
:root {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #0a0a0b;
  --card: #0e0e10;
  --card-hi: #141417;
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.16);
  --fg: #ededef;
  --muted: #8b8b93;
  --dim: #5c5c64;
  --purple: #b26bff;
  --pink: #ff6fb5;
  --peach: #ff8a5c;
  --ok: #3ccf7a;
  --brand: linear-gradient(90deg, var(--purple), var(--pink) 70%, var(--peach));
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', system-ui, sans-serif;
}

/* =========================================================
   BASE
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(32px, 4.8vw, 54px); }
h3 { font-size: 17px; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: var(--purple); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 18px; }
kbd { font: 600 11.5px var(--font); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-hi); background: var(--card-hi); color: var(--fg); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 8px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
section { padding: 96px 0; }
.head { margin-bottom: 44px; max-width: 720px; }
.head.center { text-align: center; margin-inline: auto; }

/* =========================================================
   PIP LOGO: real mark: gentle bob, blink, eyes follow the cursor, happy squint on hover
   ========================================================= */
.pip { width: 26px; height: 28px; overflow: visible; flex: none; }
.pip-bob { animation: bob 4s ease-in-out infinite; }
.pip-blink { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 6s infinite; transition: transform 0.3s var(--ease); }
.pip-eyes { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform 0.4s var(--ease); }
.logo:hover .pip-blink, .final:hover .pip-blink { animation: none; transform: scaleY(0.45); }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }

.chip-beta { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; color: #e9d8ff; border: 1px solid rgba(178, 107, 255, 0.45); background: rgba(178, 107, 255, 0.12); }

/* =========================================================
   NAV: gains a blurred background once you scroll
   ========================================================= */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.nav.scrolled { background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom-color: var(--line); }
.nav-in, .topnav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; text-decoration: none; }
.links { display: flex; gap: 26px; font-size: 14px; }
.links a { position: relative; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
.links a:hover, .links a[aria-current='page'] { color: var(--fg); }
.links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* =========================================================
   BUTTONS: magnetic pull (--tx/--ty from site.js), arrow nudge, press
   ========================================================= */
.btn { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line-hi); background: transparent; color: var(--fg); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transform: translate(var(--tx, 0px), var(--ty, 0px)); transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn.white { background: var(--fg); color: #000; border-color: transparent; }
.btn.white:hover { background: #fff; }
.btn.ghost:hover { background: var(--card-hi); border-color: rgba(255, 255, 255, 0.24); }
.btn:active { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.97); }
.btn em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.1); }
.arr { display: inline-block; transition: transform 0.25s var(--ease); }
a:hover .arr, .btn:hover .arr { transform: translateX(3px); }
/* "Coming soon": a small tooltip pops up instead of a download */
.soon { cursor: help; }
.soon::after { content: 'Downloads open soon'; position: absolute; left: 50%; bottom: calc(100% + 10px); white-space: nowrap; pointer-events: none; font-size: 12px; font-weight: 500; color: var(--fg);
  padding: 6px 10px; border-radius: 8px; background: #1b1b1f; border: 1px solid var(--line-hi); opacity: 0; transform: translate(-50%, 4px); transition: opacity 0.2s, transform 0.25s var(--ease); }
.nav .soon::after { bottom: auto; top: calc(100% + 10px); transform: translate(-50%, -4px); }
.soon.tip::after { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   HERO
   ========================================================= */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; padding: 56px 0 72px; position: relative; }
.hero::before { content: ''; position: absolute; z-index: -1; right: 0; top: -10%; width: 60%; height: 90%; background: radial-gradient(closest-side, rgba(178, 107, 255, 0.16), transparent); pointer-events: none; }
.pill-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); text-decoration: none; padding: 5px 12px 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); transition: border-color 0.2s, color 0.2s; }
.pill-link:hover { border-color: var(--line-hi); color: var(--fg); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(60, 207, 122, 0.6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(60, 207, 122, 0.5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(60, 207, 122, 0); } }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); letter-spacing: -0.045em; margin: 22px 0 22px; font-weight: 800; }
.hero .lead { max-width: 33em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { color: var(--dim); font-size: 13px; margin-top: 18px; }
.fade { animation: fadeUp 0.8s var(--ease) backwards; }
.hero-text .fade:nth-child(2) { animation-delay: 0.06s; } .hero-text .fade:nth-child(3) { animation-delay: 0.12s; }
.hero-text .fade:nth-child(4) { animation-delay: 0.18s; } .hero-text .fade:nth-child(5) { animation-delay: 0.24s; } .film.fade { animation-delay: 0.2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* the 30 s film (portrait 1080×1920) */
.film { justify-self: center; width: min(360px, 100%); }
.film-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #000; border: 1px solid var(--line-hi); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 6px #0b0b0d, 0 0 0 7px var(--line); }
.film-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-ui { position: absolute; right: 12px; bottom: 18px; display: flex; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.3s var(--ease); }
.film-frame:hover .film-ui, .film-frame:focus-within .film-ui { opacity: 1; transform: none; }
.vbtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s; }
.vbtn:hover { background: rgba(0, 0, 0, 0.8); transform: scale(1.08); }
.vbtn svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vbtn .i-pause, .vbtn .i-play { fill: #fff; stroke: none; transition: opacity 0.2s, transform 0.25s var(--ease); transform-origin: center; transform-box: fill-box; }
.vbtn .i-play, .paused .i-pause { opacity: 0; transform: scale(0.6); }
.paused .i-play { opacity: 1; transform: none; }
.vbtn .i-on { opacity: 0; } .unmuted .i-on { opacity: 1; } .unmuted .i-off { opacity: 0; }
.vbtn path { transition: opacity 0.2s; }
.film-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.1); }
.film-bar span { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left; transform: scaleX(0); }

.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee div { display: flex; gap: 48px; width: max-content; animation: scroll 50s linear infinite; }
.marquee:hover div { animation-play-state: paused; }
.marquee span { color: var(--dim); font-weight: 600; white-space: nowrap; transition: color 0.2s; }
.marquee span:hover { color: var(--fg); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* =========================================================
   SPOTLIGHT BORDER: a soft light on the border follows the cursor (--mx/--my)
   ========================================================= */
.spot { position: relative; }
.spot::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(214, 170, 255, 0.7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.spot:hover::before { opacity: 1; }

/* =========================================================
   FEATURE TABS: real clips; progress bar advances, hover pauses
   ========================================================= */
.tabs { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.tab-list { display: grid; gap: 2px; }
.tab { position: relative; overflow: hidden; text-align: left; display: grid; gap: 2px; padding: 14px 18px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; transition: background 0.25s; }
.tab b { font-weight: 600; font-size: 16px; color: var(--muted); transition: color 0.25s; }
.tab span { color: var(--dim); font-size: 14px; overflow: hidden; max-height: 0; transition: max-height 0.4s var(--ease), color 0.25s; }
.tab:hover b { color: var(--fg); }
.tab.on { background: var(--card); }
.tab.on b { color: var(--fg); }
.tab.on span { max-height: 60px; color: var(--muted); }
.tab-bar { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.tab.on .tab-bar { animation: progress 4.5s linear forwards; }
.tab.on:hover .tab-bar, .tab.on:focus-visible .tab-bar, .tabs:not(.play) .tab.on .tab-bar { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.tab-view { border-radius: 22px; background: #040a2c; border: 1px solid var(--line-hi); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 6px #0b0b0d, 0 0 0 7px var(--line); }
.tab-view img { display: block; width: 100%; height: auto; transition: opacity 0.35s, transform 0.5s var(--ease); }
.tab-view img.swap { opacity: 0; transform: translateY(6px) scale(0.985); }

/* =========================================================
   CARDS + ICON MICRO-MOTIONS (each icon moves its own way on hover)
   ========================================================= */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { border-radius: var(--radius); padding: 26px; background: var(--card); border: 1px solid var(--line); transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s; }
.card:hover { transform: translateY(-3px); background: var(--card-hi); border-color: var(--line-hi); }
.card h3 { margin: 18px 0 6px; }
.card p { color: var(--muted); font-size: 15px; }
.ic { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: #17171b; border: 1px solid var(--line); fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transition: border-color 0.3s; }
.card:hover .ic { border-color: rgba(178, 107, 255, 0.5); }
.ic .m { transform-box: fill-box; transform-origin: center; transition: transform 0.5s var(--ease), stroke 0.3s, fill 0.3s; }
.card:hover .ic .m { stroke: var(--purple); }
.card:hover .ic-apps .m { transform: rotate(90deg) scale(0.8); fill: var(--purple); }
.card:hover .ic-shot .m { transform: scale(0.82); }
.card:hover .ic-lock .m { transform: translate(3px, -2px) rotate(18deg); transform-origin: 0% 100%; }
.card:hover .ic-widgets .m { transform: translate(6px, 0); }
.card:hover .ic-note .m { animation: write 0.8s var(--ease); }
.card:hover .ic-sun .m { transform: rotate(45deg); }
.card:hover .ic-globe .m { transform: rotateY(180deg); }
.card:hover .ic-update .m { transform: rotate(360deg); transition-duration: 0.8s; }
.card:hover .ic-key .m { transform: translateY(1.5px); }
@keyframes write { from { stroke-dasharray: 8; stroke-dashoffset: 8; } to { stroke-dasharray: 8; stroke-dashoffset: 0; } }

.soon-card .tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: var(--muted); border: 1px dashed var(--line-hi); }
.soon-card h3 { margin-top: 16px; }

/* =========================================================
   PANELS: privacy + beta
   ========================================================= */
.panel { border-radius: 28px; background: var(--card); border: 1px solid var(--line); padding: 56px; }
#privacy .panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; background: radial-gradient(70% 100% at 0% 0%, rgba(178, 107, 255, 0.1), transparent 60%), var(--card); }
.priv { display: grid; gap: 4px; }
.priv div { display: grid; gap: 2px; padding: 18px 20px; border-radius: 14px; transition: background 0.25s, transform 0.3s var(--ease); }
.priv div:hover { background: rgba(255, 255, 255, 0.03); transform: translateX(4px); }
.priv b { font-weight: 600; }
.priv b::before { content: '✓'; color: var(--ok); margin-right: 10px; }
.priv span { color: var(--muted); font-size: 15px; padding-left: 22px; }
.beta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.beta .lead { margin: 18px 0 28px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ticks li { padding: 12px 0 12px 32px; position: relative; border-bottom: 1px solid var(--line); color: #cfcfd4; }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 50%; width: 14px; height: 7px; margin-top: -6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* =========================================================
   FAQ: smooth open (grid rows 0fr → 1fr), plus turns into minus
   ========================================================= */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left; font-size: 17px; font-weight: 500; transition: color 0.2s; }
.qa button:hover { color: #fff; }
.qa i { position: relative; width: 14px; height: 14px; flex: none; }
.qa i::before, .qa i::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 1px; background: var(--muted); transition: transform 0.35s var(--ease); }
.qa i::after { transform: rotate(90deg); }
.qa.open i::after { transform: rotate(0deg); }
.ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.ans p { min-height: 0; overflow: hidden; color: var(--muted); padding: 0 4px; opacity: 0; transform: translateY(-6px);
  transition: padding 0.45s var(--ease), opacity 0.3s, transform 0.45s var(--ease); }
.qa.open .ans { grid-template-rows: 1fr; }
.qa.open .ans p { padding-bottom: 22px; opacity: 1; transform: none; transition-delay: 0s, 0.08s, 0s; }
.qa.open button { color: #fff; }

/* =========================================================
   FINAL CTA (end card of the film)
   ========================================================= */
.final { text-align: center; display: grid; justify-items: center; gap: 6px; border-radius: 32px; padding: 80px 24px; border: 1px solid var(--line);
  background: radial-gradient(60% 80% at 50% 0%, rgba(178, 107, 255, 0.22), transparent 70%), var(--card); overflow: hidden; }
.final h2 { font-size: clamp(40px, 7vw, 80px); letter-spacing: -0.045em; padding-bottom: 6px; }
.final .lead { margin: 6px 0 26px; }
.pip-xl { width: 80px; height: 86px; margin-bottom: 14px; filter: drop-shadow(0 16px 30px rgba(164, 61, 255, 0.4)); }

/* =========================================================
   DESKTOP WIDGETS DEMO: same cards as src/renderer/desk/desk.css, on a 1280x720 stage scaled to fit (--k from site.js)
   ========================================================= */
.desk-demo { border-radius: 24px; border: 1px solid var(--line-hi); background: var(--card); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.desk-box { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.desk-stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform: scale(var(--k, 1)); transform-origin: 0 0; font: 13px/1.35 var(--font); }
.desk-wall { position: absolute; inset: 0; background: #040a2c center / cover no-repeat; transition: opacity 0.45s, transform 0.8s var(--ease); }
.desk-wall.swap { opacity: 0; transform: scale(1.03); }
.dw { position: absolute; border-radius: 24px; padding: 16px; color: #f5f5f7; background: linear-gradient(160deg, rgba(56, 56, 104, 0.72), rgba(18, 18, 34, 0.78)); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 18px 40px -18px rgba(0, 0, 0, 0.7); overflow: hidden; cursor: grab; touch-action: none; transition: box-shadow 0.2s, transform 0.2s var(--ease); }
.dw:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 22px 46px -18px rgba(0, 0, 0, 0.8); }
.dw.drag { cursor: grabbing; transform: scale(1.04); z-index: 3; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 30px 60px -20px rgba(0, 0, 0, 0.9); transition: box-shadow 0.2s, transform 0.2s var(--ease); }
.dw.s { width: 170px; height: 170px; } .dw.m { width: 364px; height: 170px; }
.dw .muted { color: rgba(235, 235, 245, 0.7); } .dw .small { font-size: 11px; } .dw .caps { text-transform: uppercase; letter-spacing: 0.6px; font-size: 11px; }
.dw .red { color: #ff5a64; font-weight: 700; }
.k-clock { padding: 10px; display: grid; place-items: center; }
.clock { width: 150px; height: 150px; }
.clock .face { fill: rgba(10, 10, 30, 0.35); stroke: rgba(255, 255, 255, 0.12); }
.clock .tick { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; } .clock .tick.big { stroke: #fff; stroke-width: 2.2; }
.clock line { stroke-linecap: round; transform-origin: 75px 75px; }
.clock .h-hour { stroke: #fff; stroke-width: 4.5; } .clock .h-min { stroke: #fff; stroke-width: 3; } .clock .h-sec { stroke: #ff9f0a; stroke-width: 1.4; } .clock .pin { fill: #ff9f0a; }
.k-time { background: linear-gradient(180deg, rgba(64, 124, 220, 0.75), rgba(40, 70, 140, 0.65) 60%, rgba(40, 90, 70, 0.6)); }
.time { display: flex; justify-content: space-between; height: 100%; }
.big-time { font-size: 48px; font-weight: 600; letter-spacing: -1.5px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.wx { text-align: right; } .wx .temp { font-size: 28px; font-weight: 300; }
.day-num { font-size: 52px; font-weight: 300; line-height: 1; margin: 2px 0 10px; }
.evt { border-left: 3px solid #ffcc00; padding-left: 8px; display: grid; }
.evt b { font-size: 12px; }
.rings { display: flex; justify-content: space-around; align-items: center; height: 100%; }
.ring-wrap { display: grid; justify-items: center; gap: 6px; }
.ring-box { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.ring-box b { position: absolute; font-size: 17px; }
.ring { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 8; }
.ring .fill { fill: none; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 226.2; stroke-dashoffset: 226.2; transition: stroke-dashoffset 1.2s var(--ease); }
.k-media { background: linear-gradient(160deg, rgba(190, 70, 80, 0.7), rgba(90, 30, 60, 0.65)); }
.media { display: flex; gap: 14px; height: 100%; align-items: center; }
.media .art { width: 120px; height: 120px; border-radius: 16px; flex: none; background: radial-gradient(circle at 30% 30%, #ffb36b, #ff4f8b 45%, #5b2bd9 85%); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.8); }
.m-body { min-width: 0; flex: 1; display: grid; gap: 4px; }
.m-body b { font-size: 15px; }
.m-body .bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); margin-top: 8px; overflow: hidden; }
.m-body .bar span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; animation: song 30s linear infinite; }
@keyframes song { from { transform: scaleX(0.2); } to { transform: scaleX(1); } }
.desk-bar { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); overflow-x: auto; }
.swatches { display: flex; gap: 8px; }
.sw { padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; flex: none; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 0.2s, transform 0.25s var(--ease); }
.sw img { display: block; width: 64px; height: 36px; border-radius: 8px; object-fit: cover; }
.sw:hover { transform: translateY(-2px); }
.sw.on { outline-color: var(--fg); }

/* =========================================================
   4K WALLPAPER GALLERY: hover lifts the card and reveals the download line
   ========================================================= */
.walls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.head .lead { margin-top: 16px; }
.wall { position: relative; display: block; width: 100%; padding: 0; text-align: left; color: var(--fg); cursor: zoom-in; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.wall img { -webkit-user-drag: none; user-select: none; }
.wall:first-child { grid-column: 1 / -1; }
.wall img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.8s var(--ease); }
.wall:hover img { transform: scale(1.04); }
.wall-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); font-size: 14px; }
.wall-cap em { font-style: normal; color: rgba(255, 255, 255, 0.75); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.wall-cap i { font-style: normal; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 0.3s var(--ease), background 0.2s; }
.wall:hover .wall-cap i { transform: scale(1.12); background: #fff; color: #000; }
.js .wall.reveal.in:hover { transform: translateY(-3px); }
.wall.reveal { transition: opacity 0.7s var(--ease), transform 0.35s var(--ease); }

/* =========================================================
   WALLPAPER VIEWER: view only (CSS background), zooms in from the clicked card
   ========================================================= */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: 1fr auto; background: rgba(0, 0, 0, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity 0.3s; user-select: none; }
.lb[hidden] { display: none; }
.lb.open { opacity: 1; }
.lb-img { margin: 24px 24px 0; background: center / contain no-repeat; transform: scale(0.96); transition: transform 0.45s var(--ease), opacity 0.25s; -webkit-touch-callout: none; }
.lb.open .lb-img { transform: none; }
.lb-img.swap { opacity: 0; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px 22px; }
.lb-bar > div:first-child { display: grid; }
.lb-bar .muted { font-size: 13px; }
.lb-btns { display: flex; gap: 8px; }
.lb .vbtn svg { fill: none; }
body.locked { overflow: hidden; }

/* =========================================================
   REVEAL: simple fade-up
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in { transition: opacity 0.7s var(--ease), transform 0.35s var(--ease), border-color 0.3s, background 0.3s; transition-delay: var(--d, 0ms), 0ms, 0ms, 0ms; }
.js .card.reveal.in:hover { transform: translateY(-3px); }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { padding: 8px 0 40px; margin-top: 32px; color: var(--muted); font-size: 14px; }
.foot-top { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.foot-top > div { display: grid; gap: 12px; align-content: start; }
.foot-top nav { display: grid; gap: 8px; align-content: start; }
.foot-top b { color: var(--fg); font-weight: 600; }
.foot-top nav a { text-decoration: none; transition: color 0.2s; } .foot-top nav a:hover { color: var(--fg); }
.foot .logo { color: var(--fg); }
.off { color: var(--dim); }
.copy { font-size: 12px; color: var(--dim); }
.help { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; margin-bottom: 64px; padding: 36px 40px; border-radius: 22px;
  border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, rgba(178, 107, 255, 0.14), transparent 55%), var(--card); }
.help h3 { font-size: 24px; margin-bottom: 6px; color: var(--fg); }
.help .eyebrow { margin-bottom: 8px; }
.help-mail { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mail { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 12px; background: #fff; color: #000; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform 0.2s var(--ease); }
.mail:hover { transform: translateY(-2px); }
.mail svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.copy-mail.done { border-color: var(--ok); color: var(--ok); }
.status { display: inline-flex; align-items: center; gap: 8px; width: max-content; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; }
.foot-bot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.top-link { font-size: 13px; text-decoration: none; transition: color 0.2s; } .top-link:hover { color: var(--fg); }
.top-link .arr { display: inline-block; transition: transform 0.25s var(--ease); } .top-link:hover .arr { transform: translateY(-3px); }

/* =========================================================
   VERSION LOG (website/changelog.html is generated by scripts/make-changelog.mjs)
   ========================================================= */
.changelog { max-width: 760px; padding-block: 48px 64px; }
.changelog h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 8px; }
.release { margin-top: 44px; }
.release h2 { font-size: 24px; }
.release h2 small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.rel-title { margin: 6px 0 14px; color: var(--purple); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 44px; position: relative; color: #cfcfd4; }
.checks li::before { content: '✓'; position: absolute; left: 16px; top: 13px; color: var(--ok); font-weight: 700; }
.foot.simple { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 32px 0 48px; border-top: 1px solid var(--line); }

/* =========================================================
   HERO STATS, AT A GLANCE, COMPARISON
   ========================================================= */
.stats { list-style: none; margin: 34px 0 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 36px; border-top: 1px solid var(--line); }
.stats li { display: grid; gap: 2px; }
.stats b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.stats span { color: var(--dim); font-size: 13px; }
.glance { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.glance .lead { margin-top: 18px; }
.facts { margin: 0; display: grid; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--dim); font-size: 14px; }
.facts dd { margin: 0; color: #d6d6db; font-size: 15px; }
.facts a, .compare a { color: var(--fg); text-underline-offset: 3px; text-decoration-color: rgba(178, 107, 255, 0.6); }
.compare { max-width: 900px; margin: 0 auto; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--card); }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg-2); }
.compare tbody th { font-weight: 500; color: #d6d6db; }
.compare tbody tr { transition: background 0.2s; }
.compare tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.compare td { width: 24%; color: var(--dim); }
.compare td.y { color: var(--fg); font-weight: 600; }
.compare td.y::before { content: ''; display: inline-block; width: 10px; height: 5px; margin: 0 10px 3px 2px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.th-pip { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.th-pip .pip { width: 18px; height: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================
   TEXT PAGES (privacy) + 404
   ========================================================= */
.doc { max-width: 760px; padding-block: 48px 72px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 8px; }
.doc .lead { font-size: 15px; margin-bottom: 32px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: #cfcfd4; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.doc a { color: var(--fg); text-decoration-color: rgba(178, 107, 255, 0.6); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--purple); }
.lost { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 48px 0; }
.lost h1 { font-size: clamp(36px, 6vw, 60px); }
.lost .lead { margin-bottom: 20px; }
.pip-lost { width: 96px; height: 104px; margin-bottom: 12px; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 16px 30px rgba(164, 61, 255, 0.4)); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .walls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .tabs, #privacy .panel, .beta, .glance { grid-template-columns: 1fr; }
  .hero { gap: 48px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links { display: none; }
  /* feature tabs become a swipeable row of pills above the clip */
  .tabs { gap: 18px; }
  .tab-list { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); }
  .tab b { font-size: 14px; }
  .tab span, .tab.on span { display: none; }
  .tab.on { border-color: var(--line-hi); }
  .tab-bar { left: 14px; right: 14px; }
}
@media (max-width: 600px) {
  .walls { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 32px 22px; }
  .stats { grid-template-columns: repeat(2, auto); }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .compare th, .compare td { padding: 12px 12px; font-size: 13.5px; }
  .compare td.y::before { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > div:first-child { grid-column: 1 / -1; }
  .help { padding: 28px 22px; }
  .help-mail, .mail { width: 100%; } .mail { justify-content: center; } .copy-mail { flex: 1; justify-content: center; }
  .cta .btn { width: 100%; justify-content: center; }
  section { padding: 64px 0; }
  .film-ui { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
