:root {
  --brand: #2F7D4F;
  --brand-strong: #276842;
  --accent-text: #2F7D4F;
  --on-brand: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f4f7f5;
  --text: #1c1f1d;
  --muted: #5a625d;
  --border: #e1e6e3;
  --card: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent-text: #6fcf97;
    --bg: #111412;
    --bg-soft: #181c1a;
    --text: #eef2ef;
    --muted: #a7b0aa;
    --border: #2a302c;
    --card: #1a1f1c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
a { color: var(--accent-text); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--brand); display: inline-block; flex: none; }
.site-header nav { display: flex; gap: 18px; font-size: 0.95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }

main { padding: 40px 0 56px; }
h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.01em; margin: 36px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 1.25em; }
li { margin-bottom: 6px; }
.muted { color: var(--muted); }

/* Landing */
.hero { text-align: center; padding: 24px 0 8px; }
.hero .app-icon { width: 88px; height: 88px; border-radius: 22px; background: var(--brand); margin: 0 auto 20px; display: grid; place-items: center; }
.hero .app-icon svg { width: 48px; height: 48px; }
.pitch { font-size: clamp(1.15rem, 3.5vw, 1.4rem); color: var(--muted); margin: 0 auto 28px; max-width: 32ch; }
.badge { display: inline-block; background: var(--brand); color: var(--on-brand); padding: 12px 22px; border-radius: 999px; font-weight: 600; }
.features { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.features li { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin: 0; }
.features h2 { font-size: 1.05rem; margin: 0 0 6px; }
.features p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Docs pages */
.doc .updated { color: var(--muted); margin-bottom: 28px; }
.faq h3 { margin-top: 28px; }
.contact-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin: 20px 0 8px; }
.contact-card p:last-child { margin-bottom: 0; }

.site-footer { border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 28px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
