:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --text: #2a2420;
  --muted: #6b625b;
  --accent: #b4532a;
  --accent-soft: #f3e4da;
  --border: #e7ddd3;
  --radius: 14px;
  --max: 960px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --surface: #211b16;
    --text: #f1e9e1;
    --muted: #a99d92;
    --accent: #e48a5c;
    --accent-soft: #3a2619;
    --border: #3a3029;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand .logo { width: 34px; height: 34px; color: var(--accent); }
.site-nav { display: flex; gap: 20px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 48px; text-align: center; }
.hero .logo { width: 136px; height: 136px; color: var(--accent); }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
  margin: 16px 0 12px;
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
}

/* Sections */
section { padding: 32px 0; }
h2 { font-size: 1.5rem; margin: 0 0 16px; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }

/* App cards */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; }
.card.placeholder { border-style: dashed; background: transparent; }

.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.features li p { margin: 0; color: var(--muted); }

/* Long-form text (privacy policy) */
.prose { max-width: 44rem; padding: 48px 0; }
.prose h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 4px; }
.prose h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.prose .meta { color: var(--muted); margin: 0 0 24px; }
.prose h1:not(:first-child) { margin-top: 56px; }
.prose ul { padding-left: 1.2rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

@media (max-width: 520px) {
  .hero { padding: 48px 0 32px; }
  .site-nav { gap: 14px; }
  .site-footer .footer-legal { order: 3; flex-basis: 100%; text-align: center; }
}
