:root {
  --bg: #0a0817;
  --surface: #120f22;
  --border: #262045;
  --text: #eae6f5;
  --text-secondary: #a29abf;
  --text-muted: #8880a6;
  --accent: #a996e0;
  --accent-soft: rgba(169, 150, 224, 0.12);
}

* { box-sizing: border-box; }

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

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

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

.nav {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.nav a { color: var(--text-muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }

h1 {
  font-size: 30px;
  margin: 0 0 8px;
}
.subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 36px;
}

h2 {
  font-size: 19px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin: 40px 0 16px;
}

p { color: var(--text-secondary); }

ol, ul {
  color: var(--text-secondary);
  padding-left: 22px;
}
li { margin-bottom: 10px; }
li strong { color: var(--text); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.note {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.app-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
}
.app-card:hover { border-color: var(--accent); }
.app-card .glyph { font-size: 22px; color: var(--accent); }
.app-card .name { font-weight: 600; margin-top: 6px; }
.app-card .desc { color: var(--text-muted); font-size: 12.5px; margin-top: 4px; }

footer {
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ── Additions (backward-compatible) ────────────────────────────────────── */

/* Hero: app emblem beside the title, matching the real app icon */
.hero { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.hero .emblem {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--emblem-bg, var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.hero .emblem svg { width: 38px; height: 38px; }
.hero h1 { margin: 0; }

/* Numbered walk-through steps */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 4px 44px;
  margin-bottom: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* Two-up feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.features .card { margin-bottom: 0; }
.card h3 { margin: 0 0 6px; font-size: 14.5px; color: var(--accent); }
.card p  { margin: 0; font-size: 13.5px; }

/* FAQ (no JS needed) */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}
details summary { cursor: pointer; color: var(--text); font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

/* Simple tables (privacy page) */
table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--text-secondary); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text); font-size: 13px; }
