*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:       #0E0E0F;
  --surface:  #1A1A1C;
  --surface2: #242427;
  --border:   #2C2C2F;
  --text:     #F5F5F5;
  --muted:    #888888;
  --green:    #4ADE80;
  --red:      #F87171;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ─────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

header .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wordmark {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark span {
  color: var(--green);
}

nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

main {
  flex: 1;
  padding: 56px 0 80px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.8rem;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* ── Typography ──────────────────────────────────── */

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 40px 0 12px;
}

p {
  color: var(--muted);
  margin-bottom: 16px;
}

p strong {
  color: var(--text);
  font-weight: 500;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 0;
}

.meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ── Cards ───────────────────────────────────────── */

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

.card + .card {
  margin-top: 0;
}

/* ── Hero (index only) ───────────────────────────── */

.hero {
  text-align: center;
  padding: 48px 0 56px;
}

.hero h1 {
  font-size: 2.6rem;
}

.hero .lead {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.hero-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.8;
}

.btn-primary {
  background: var(--green);
  color: #0E0E0F;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ── FAQ ─────────────────────────────────────────── */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 10px;
}

.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ── Gestures (support page) ─────────────────────── */

.gesture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}

.gesture-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
}

.gesture-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.gesture-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.gesture-card p {
  font-size: 0.78rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.tag-delete { color: var(--red); }
.tag-keep   { color: var(--green); }

/* ── Policy list ─────────────────────────────────── */

.policy-section {
  margin-bottom: 32px;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 2rem; }
  .gesture-grid { grid-template-columns: 1fr; }
  nav { gap: 16px; }
}
