/* KneeClap web — flat, same palette as the app (DESIGN_TOKENS): lime #C6F432, ink #111318. */
:root {
  --lime: #c6f432;
  --lime-soft: #eefbc4;
  --ink: #111318;
  --bg: #f5f4f0;
  --card: #ffffff;
  --text: #111318;
  --muted: #5b606b;
  --line: #e4e3de;
  --link: #3f6b00;
  --radius: 22px;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --lime-soft: #25300a;
    --bg: #0b0c0f;
    --card: #17191e;
    --text: #f3f4f1;
    --muted: #a0a5ae;
    --line: #262930;
    --link: #c6f432;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a[aria-current="page"] { color: var(--link); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
}
.btn-lime { background: var(--lime); color: var(--ink); }

/* Official store badges (Apple/Google artwork, unmodified; same height, clear space from the gap) */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.store img { height: 52px; width: auto; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 40px 0 64px; }
.badge { display: inline-block; background: var(--lime-soft); color: var(--text); font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.art { background: var(--lime); border-radius: 32px; aspect-ratio: 1; display: grid; place-items: center; }
.art img { width: 78%; }
/* Hero: the App Preview video in a flat phone frame on the lime card */
.art-phone { aspect-ratio: auto; padding: 40px 0; }
.phone { width: min(300px, 66%); background: #000; border-radius: 44px; padding: 10px; }
.phone video { display: block; width: 100%; height: auto; border-radius: 34px; background: #000; }

/* Sections */
section { padding: 56px 0; }
.center { text-align: center; max-width: 40em; margin: 0 auto 32px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.card p:last-child { margin-bottom: 0; }
.step .pic { background: var(--lime-soft); border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; aspect-ratio: 4 / 3; }
.step .pic img { width: 56%; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: .9rem; margin-right: 8px; }
@media (prefers-color-scheme: dark) { .num { background: var(--lime); color: var(--ink); } }
.dot { width: 12px; height: 12px; border-radius: 3px; background: var(--lime); display: inline-block; margin-right: 10px; }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.split .art { max-width: 380px; }
.dark { background: var(--ink); color: #f3f4f1; border-radius: 32px; padding: 48px; }
.dark .muted { color: #a0a5ae; }

/* Doc pages (support, privacy) */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 20px 64px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: .8em 0 0; color: var(--muted); }
.contact { background: var(--lime); color: var(--ink); border-radius: var(--radius); padding: 24px; margin-top: 32px; }
.contact a { color: var(--ink); font-weight: 800; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }

@media (max-width: 820px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero .art { max-width: 420px; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .dark { padding: 32px 24px; }
  .nav { gap: 16px; }
}
