/* klipo.lol — landing page. Same B/W system as the app (see ../DESIGN.md). Follows the OS theme. */

:root {
  --bg: #fafafa;
  --bg-2: #f2f2f2;
  --surface: #ffffff;
  --fg: #0a0a0a;
  --fg-2: #525252;
  --fg-3: #8a8a8a;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --invert-bg: #0a0a0a;
  --invert-fg: #fafafa;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-solid: #ffffff;
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 50%);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 18px 40px -20px rgba(0, 0, 0, 0.25);
  --thumb-a: #d6d6d6;
  --thumb-b: #9a9a9a;
  --win: #fafafa;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-2: #111111;
    --surface: #141414;
    --fg: #f5f5f5;
    --fg-2: #a3a3a3;
    --fg-3: #6b6b6b;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --invert-bg: #f5f5f5;
    --invert-fg: #0a0a0a;
    --glass-bg: rgba(24, 24, 24, 0.66);
    --glass-solid: #161616;
    --glass-border: rgba(255, 255, 255, 0.13);
    --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 45%);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
    --thumb-a: #2a2a2a;
    --thumb-b: #0d0d0d;
    --win: #0a0a0a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Brand mark (single-path SVG as a mask → follows text color) ---------- */
.mark {
  display: inline-block; flex: none;
  width: 26px; height: 17px;
  background-color: currentColor;
  -webkit-mask: url("assets/klipo-mark.svg") center / contain no-repeat;
  mask: url("assets/klipo-mark.svg") center / contain no-repeat;
}
.wordmark { font-weight: 650; letter-spacing: -0.035em; }

/* ---------- Floating glass pill nav ---------- */
.nav {
  position: fixed; z-index: 10;
  top: max(12px, env(safe-area-inset-top));
  left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100% - 2 * 12px));
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: var(--glass-sheen), var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow);
}
.nav .brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 16px; margin-right: auto; padding: 4px 0; }
.nav a.link { text-decoration: none; color: var(--fg-2); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .15s, background-color .15s; }
.nav a.link:hover { color: var(--fg); background: rgba(127, 127, 127, 0.1); }
.nav a.cta { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--invert-bg); color: var(--invert-fg); white-space: nowrap; }
.nav a.cta:active, .btn:active { transform: scale(.97); }
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav { background: var(--glass-solid); } }
@media (max-width: 380px) { .nav a.link.hide-xs { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: calc(110px + env(safe-area-inset-top)) 0 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); padding: 5px 12px; border: 1px solid var(--border-strong); border-radius: 999px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }
.hero h1 { font-size: clamp(40px, 10.5vw, 84px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 650; margin: 22px auto 18px; max-width: 12ch; text-wrap: balance; }
.hero h1 span { color: var(--fg-3); }
.lede { font-size: clamp(16px, 4.2vw, 19px); color: var(--fg-2); max-width: 36ch; margin: 0 auto 28px; text-wrap: balance; }
.actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 999px;
  background: var(--invert-bg); color: var(--invert-fg);
  font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -0.01em;
  transition: opacity .15s, transform .15s var(--ease);
  width: 100%; max-width: 340px;
  position: relative; white-space: nowrap;
}
.btn:hover { opacity: .9; }
.btn svg { width: 20px; height: 20px; }
/* "Coming soon" sits as a small badge on the button's corner, so the label never wraps on phones */
.btn .soon { display: none; position: absolute; top: -10px; right: 18px; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--fg); border: 1px solid var(--border-strong); }
.btn[aria-disabled="true"] { cursor: default; opacity: .9; }
.btn[aria-disabled="true"] .soon { display: inline-block; }
.meta { font-size: 13px; color: var(--fg-3); margin: 0; }
.meta b { color: var(--fg-2); font-weight: 500; }

/* ---------- App mockup ---------- */
.shot { margin: 48px auto 0; max-width: 980px; }
.window {
  text-align: left;
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--win); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}
.win-top { height: 7%; min-height: 22px; display: flex; align-items: center; gap: 8px; padding: 0 3%; border-bottom: 1px solid var(--border); font-size: clamp(9px, 1.3vw, 13px); font-weight: 600; }
.win-top .mark { width: 1.6em; height: 1em; }
.win-top .status { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--fg-3); font-weight: 400; font-family: var(--mono); font-size: .85em; }
.win-top .status i { width: 5px; height: 5px; border-radius: 50%; background: var(--fg); }
.win-body { padding: 3.2% 4%; }
.win-body h3 { margin: 0 0 2.4%; font-size: clamp(13px, 2.4vw, 24px); letter-spacing: -0.03em; }
.chips { display: flex; gap: 1.2%; margin-bottom: 2.6%; }
.chips span { font-size: clamp(7px, 1.05vw, 11px); padding: .35em .9em; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--fg-2); white-space: nowrap; }
.chips span:first-child { background: var(--invert-bg); color: var(--invert-fg); border-color: var(--invert-bg); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2% 1.8%; }
.thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--thumb-a), var(--thumb-b));
}
.thumb::before { content: ""; position: absolute; inset: 0; background: var(--art); filter: grayscale(1); z-index: -1; }
.thumb b { position: absolute; right: 5%; bottom: 7%; font-family: var(--mono); font-size: clamp(6px, .9vw, 10px); font-weight: 500; padding: .15em .45em; border-radius: 3px; background: #0a0a0a; color: #fff; }
.a1 { --art: radial-gradient(120% 90% at 80% 110%, #fff 0 8%, #777 22%, #1a1a1a 55%, #050505 100%); }
.a2 { --art: linear-gradient(170deg, #cfcfcf 0%, #555 38%, #111 39%, #2c2c2c 70%, #080808 100%); }
.a3 { --art: conic-gradient(from 210deg at 30% 60%, #0b0b0b, #6f6f6f, #e5e5e5 18%, #222 40%, #0a0a0a); }
.a4 { --art: radial-gradient(60% 60% at 25% 30%, #9a9a9a, transparent 60%), linear-gradient(0deg, #050505, #3a3a3a); }
.a5 { --art: radial-gradient(30% 45% at 50% 55%, #fafafa, #666 40%, #0e0e0e 75%); }
.a6 { --art: linear-gradient(200deg, #f0f0f0 0%, #8a8a8a 25%, #2a2a2a 26%, #111 60%, #444 61%, #0a0a0a 100%); }
.a7 { --art: radial-gradient(100% 60% at 50% 0%, #bdbdbd, #2a2a2a 55%, #050505); }
.a8 { --art: conic-gradient(at 70% 30%, #151515, #4a4a4a, #c8c8c8, #151515 60%); }
.dock {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  display: flex; gap: 2px; padding: .45%; border-radius: 999px;
  background: var(--glass-sheen), var(--glass-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-highlight), var(--shadow);
  font-size: clamp(6px, .95vw, 10.5px); color: var(--fg-3);
}
.dock span { display: grid; place-items: center; gap: .25em; width: 6.4em; padding: .55em 0; border-radius: 999px; }
.dock span::before { content: ""; width: 1.7em; height: 1.7em; border-radius: 6px; border: 1.5px solid currentColor; opacity: .8; }
.dock span.on { background: rgba(127, 127, 127, 0.16); color: var(--fg); font-weight: 600; }
.dock i { width: 1px; margin: .6em .4em; background: var(--border-strong); }
@media (max-width: 640px) {
  .shot { margin-top: 36px; }
  .window { aspect-ratio: 4 / 5; border-radius: 16px; }
  .thumbs { grid-template-columns: repeat(2, 1fr); gap: 3% 3%; }
  .win-body { padding: 5% 5%; }
  .win-body h3 { font-size: 18px; margin-bottom: 4%; }
  .chips { margin-bottom: 5%; gap: 2%; }
  .chips span { font-size: 10px; }
  .chips span:nth-child(n+4) { display: none; }
  .thumbs .thumb:nth-child(n+7) { display: none; }
  .thumb b { font-size: 9px; }
  .win-top { font-size: 12px; }
  .win-top .status { font-size: 10px; }
  .dock { font-size: 8.5px; }
  .dock span { width: 5.6em; }
  .dock span.x-sm { display: none; }
}
@media (prefers-reduced-transparency: reduce) { .dock { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- Features ---------- */
.section { padding: 88px 0 24px; scroll-margin-top: 80px; }
.section h2 { font-size: clamp(28px, 6.5vw, 44px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 650; margin: 0 0 12px; text-align: center; text-wrap: balance; }
.section .sub { color: var(--fg-2); text-align: center; margin: 0 auto 40px; max-width: 40ch; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.feature .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border-strong); margin-bottom: 16px; }
.feature .ic svg { width: 20px; height: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.02em; font-weight: 600; }
.feature p { margin: 0; color: var(--fg-2); font-size: 15px; }
.feature .stat { display: block; margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--fg-3); }

/* ---------- Download ---------- */
.download { text-align: center; padding-bottom: 64px; }
.download .card { padding: 44px var(--gutter); border-radius: 28px; background: var(--surface); border: 1px solid var(--border); }
.download .card .mark { width: 72px; height: 46px; margin: 0 auto 20px; display: block; }
.download .actions { margin-top: 8px; }
.reqs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.reqs li { font-size: 12.5px; color: var(--fg-2); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--border); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--fg-3); font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.foot .brand { display: flex; align-items: center; gap: 8px; color: var(--fg); text-decoration: none; }
.foot .brand .mark { width: 22px; height: 14px; }
.foot nav { margin-left: auto; display: flex; gap: 18px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--fg); }
@media (max-width: 560px) { .foot nav { margin-left: 0; width: 100%; } }

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