/* Palette matches apps/mobile/src/theme/colors.ts, so the marketing page
   and the app read as the same product. */
:root {
  --background: #f5f5f5;
  --text-primary: #111111;
  --text-secondary: #777777;
  --accent: #007AFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --text-primary: #f2f2f2;
    --text-secondary: #9a9a9e;
    --accent: #0A84FF;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 24px;
}

/* Homepage hero — short, centered content. */
body.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.hero main {
  max-width: 420px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 12px;
}

.logo {
  border-radius: 22%;
  flex-shrink: 0;
}

body.hero h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

body.hero p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

body.hero footer {
  position: absolute;
  bottom: 24px;
  font-size: 0.85rem;
}

body.hero footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

body.hero footer a:hover {
  text-decoration: underline;
}

/* Long-form pages (privacy, terms) — left-aligned, comfortable reading width. */
body.doc {
  display: flex;
  justify-content: center;
}

body.doc main {
  max-width: 640px;
  width: 100%;
  padding: 24px 0 80px;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

body.doc h1 {
  margin: 0 0 4px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

body.doc .updated {
  margin: 0 0 32px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

body.doc h2 {
  margin: 32px 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

body.doc p,
body.doc li {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

body.doc ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

body.doc a {
  color: var(--accent);
}
