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

:root {
  --bg: #fafaf8;
  --bg-card: #f0ede8;
  --text: #1d1d1f;
  --text-muted: #6b6b6b;
  --accent: #c0392b;
  --border: #e0ddd8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --bg-card: #1e1d1b;
    --text: #f0ede8;
    --text-muted: #8a8a84;
    --border: #2a2927;
  }
}

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

/* ── Site nav (legal pages) ── */
.site-nav {
  padding: 20px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 72px 24px 56px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,.14);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ── App Store button ── */
.app-store-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 14px;
  margin-top: 32px;
  transition: opacity 0.15s;
}

.app-store-btn:hover { opacity: 0.82; }

.app-store-btn .btn-sub {
  font-size: 0.65rem;
  opacity: 0.8;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 3px;
}

.app-store-btn .btn-main {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

@media (prefers-color-scheme: dark) {
  .app-store-btn { background: #f5f5f7; color: #000; }
}

/* ── Section shared ── */
.section-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-divider { border-top: 1px solid var(--border); }

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
  text-align: center;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}

.step h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
}

.feature-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

/* ── Privacy callout ── */
.privacy-callout {
  text-align: center;
  border-top: 1px solid var(--border);
}

.privacy-callout .section-inner { padding: 40px 24px; }

.privacy-callout p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.privacy-callout a { color: var(--accent); text-decoration: none; }
.privacy-callout a:hover { text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.site-footer a { color: var(--text-muted); text-decoration: none; margin: 0 8px; }
.site-footer a:hover { color: var(--text); }
.site-footer .footer-links { margin-bottom: 8px; }

/* ── Legal pages ── */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.legal h1 { font-size: 2rem; font-weight: 700; margin-bottom: 4px; }
.legal h2 { font-size: 1.1rem; font-weight: 600; margin-top: 2rem; }
.legal .meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.legal a { color: var(--accent); }
.legal p { margin-top: 0.75rem; }

.legal footer {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ── FAQ ── */
.faq dt { font-weight: 600; margin-top: 1.2rem; }
.faq dd { margin-left: 0; margin-top: 0.25rem; color: var(--text-muted); }

/* ── 404 ── */
.not-found {
  text-align: center;
  padding: 120px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.not-found .big { font-size: 5rem; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 16px; }
.not-found h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; }
.not-found p { color: var(--text-muted); margin-bottom: 28px; }
.not-found a { color: var(--accent); text-decoration: none; font-weight: 600; }
.not-found a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .feature-grid { grid-template-columns: 1fr; }
}
