:root {
  --bg: #fbfbf8;
  --surface: #f2f3ee;
  --text: #1c1f1b;
  --muted: #5d645b;
  --line: rgba(28, 31, 27, 0.1);
  --green: #2f7d36;
  --green-text: #fff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(20, 40, 20, 0.12);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121412;
    --surface: #1b1e1b;
    --text: #eceee9;
    --muted: #9ca49a;
    --line: rgba(236, 238, 233, 0.12);
    --green: #6fbf6b;
    --green-text: #0e1a0e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 48px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 20px;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-underline-offset: 0.18em; }
img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 7vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { margin: 0.6em 0 0; }

code, kbd, pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
}
code {
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 0.9em;
  white-space: nowrap;
}
pre {
  margin: 1.2em 0 0;
  padding: 1em 1.2em;
  background: var(--surface);
  border-radius: 12px;
  overflow-x: auto;
  line-height: 1.7;
}
.kr { white-space: nowrap; }
pre code { background: none; padding: 0; font-size: 1em; }
pre .c { color: var(--muted); }
.moment pre { text-align: left; }

.wrap { max-width: 1080px; margin: 0 auto; }
.text { max-width: 640px; margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Header and footer */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 20px; font-size: 0.94rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }

footer {
  margin-top: 120px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
footer p { margin: 0.4em 0 0; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .icon { width: 128px; height: 128px; margin: 0 auto 20px; }
.lede {
  max-width: 34ch;
  margin: 0.5em auto 0;
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  line-height: 1.4;
  color: var(--muted);
}
.cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-text);
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s;
}
.button:hover { filter: brightness(1.08); }
.button svg { width: 18px; height: 18px; fill: currentColor; }
.meta { font-size: 0.88rem; color: var(--muted); }

.film {
  margin: 48px auto 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.film video { width: 100%; height: 100%; object-fit: cover; }

/* Feature moments */
.moment { padding-top: 120px; }
.moment .text { text-align: center; }
.moment p { color: var(--muted); }
.moment p strong { color: var(--text); font-weight: 600; }
.shot { display: block; max-width: 960px; margin: 48px auto 0; }
.shot img { margin: 0 auto; filter: drop-shadow(0 12px 32px rgba(20, 40, 20, 0.16)); }
@media (prefers-color-scheme: dark) {
  .shot img { filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.55)); }
}

.keys {
  margin: 40px auto 0;
  max-width: 560px;
  padding: 0;
  list-style: none;
}
.keys li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.keys li span:last-child { display: flex; gap: 4px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px 40px;
  margin-top: 48px;
}
.grid p { font-size: 0.97rem; }

.panel {
  padding: 48px clamp(24px, 6vw, 64px);
  border-radius: 20px;
  background: var(--surface);
}
.panel .text { text-align: left; }

/* FAQ */
.faq { max-width: 680px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Long pages: install guide and privacy */
.doc { max-width: 680px; margin: 0 auto; padding-top: 48px; }
.doc h1 { font-size: clamp(2.2rem, 5.5vw, 3rem); }
.doc h2 { font-size: 1.45rem; margin-top: 56px; }
.doc h3 { margin-top: 28px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-top: 0.45em; }
.doc .lede { margin-left: 0; max-width: none; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.6em; margin-top: 1.1em; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.75em;
  height: 1.75em;
  border-radius: 50%;
  background: var(--surface);
  color: var(--green);
  font-weight: 650;
  font-size: 0.9em;
  display: grid;
  place-items: center;
}
.note {
  margin-top: 1.2em;
  padding: 14px 18px;
  border-left: 3px solid var(--green);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav { gap: 14px; }
  .top nav .wide { display: none; }
  .hero { padding-top: 40px; }
  .hero .icon { width: 104px; height: 104px; }
  .moment { padding-top: 88px; }
  .film { border-radius: 10px; }
}
code.sha { word-break: break-all; }
