:root {
  --ink: #25221E;
  --muted: #687068;
  --paper: #F7F5EF;
  --white: #FFFFFF;
  --honey: #F1BA5B;
  --leaf: #61594A;
  --coral: #E36F55;
  --border: #E6E4DC;
  --soft: #F0EADF;
  --card: #FFFFFF;
  --body-on-card: #3A362F;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F2EEE6;
    --muted: #A7A196;
    --paper: #171613;
    --white: #201E1A;
    --leaf: #E7B778;
    --border: #302D28;
    --soft: #262320;
    --card: #201E1A;
    --body-on-card: #C9C4BA;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--leaf); }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ---- Brand lockup (ink circle + honey dot = the app mark) ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.2px;
  margin-bottom: 22px;
}

.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}

.brand .mark::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--honey);
  border: 2px solid var(--paper);
}

header.page-header { margin-bottom: 32px; }

h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
}

.updated { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.intro { color: var(--muted); font-size: 15px; margin-top: 16px; }

section.doc-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px;
  margin-top: 14px;
}

section.doc-section h2 { font-size: 15px; font-weight: 800; margin: 0 0 8px; }
section.doc-section p { margin: 0; color: var(--body-on-card); font-size: 14px; }

.placeholder {
  background: var(--soft);
  border: 1px solid var(--honey);
  color: var(--leaf);
  border-radius: 10px;
  padding: 2px 6px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.nav-links a { color: var(--leaf); font-weight: 800; text-decoration: none; }

.review-note {
  margin-top: 28px;
  background: var(--soft);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 12px;
  color: var(--leaf);
}

/* ---- Landing page ---- */
.hero {
  padding: 24px 0 8px;
}
.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}
.hero-mark .mark { width: 34px; height: 34px; border-radius: 17px; }
.hero-mark .mark::after { width: 21px; height: 21px; border-radius: 11px; right: -8px; bottom: -3px; }
.hero-mark .word { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }

.hero h1 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -1.4px;
  margin: 0 0 16px;
  max-width: 12ch;
}
.hero .lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 28px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.cta-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 48px 0 8px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.feature .dot {
  width: 34px; height: 34px; border-radius: 12px;
  background: var(--soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 12px;
}
.feature h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

.site-footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.site-footer a { color: var(--leaf); font-weight: 700; text-decoration: none; }
.site-footer .spacer { flex: 1; }

@media (max-width: 520px) {
  .hero h1 { font-size: 34px; }
  .btn { width: 100%; justify-content: center; }
}
.lang-switch { display:flex; gap:10px; font-size:13px; font-weight:700; margin:0 0 18px; }
.lang-switch a { color:var(--leaf); text-decoration:none; }
.lang-switch [aria-current] { color:var(--muted); }
