/* Adorable — public site styles
 *
 * Matches the in-app warm-cream theme (see frontend/lib/core/theme/app_colors.dart).
 * Single stylesheet shared by index/privacy/terms/community pages.
 * No frameworks, no JS, no external fonts — single HTTP request gets the
 * whole page including type, since Alegreya is pulled via system-stack
 * fallback and the cream palette is hex-literal. Critical for Lagos
 * users on flaky 3G/4G where every blocked request is a perceived
 * "app is broken" moment.
 */

:root {
  --bg: #F5EBDC;
  --surface: #FAF3E8;
  --surface-strong: #EFE3CF;
  --ink: #2B1F12;
  --ink-soft: #6B5B47;
  --brand: #4C321C;
  --accent: #A67849;
  --line: rgba(75, 50, 28, 0.12);
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Alegreya', 'Georgia', 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(166, 120, 73, 0.4);
}
a:hover {
  border-bottom-color: var(--accent);
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

header.site {
  padding: 32px 24px 0;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

header.site .logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  display: inline-block;
  background: url('icon.png') center/cover no-repeat;
  box-shadow: 0 12px 32px rgba(76, 50, 28, 0.18);
}

header.site h1.brand {
  font-size: 28px;
  font-weight: 700;
  margin: 16px 0 4px;
  letter-spacing: -0.3px;
}

header.site .tagline {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 8px;
}

/* ─────────── Document type ─────────── */

.doc h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 24px 0 8px;
  line-height: 1.1;
}

.doc h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 12px;
  letter-spacing: -0.3px;
}

.doc h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.doc p, .doc li {
  font-size: 17px;
}

.doc .effective {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 16px;
  margin-bottom: 32px;
}

.doc ul {
  padding-left: 24px;
}
.doc li + li {
  margin-top: 4px;
}

.doc strong {
  color: var(--brand);
  font-weight: 700;
}

/* ─────────── Landing page ─────────── */

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

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.05;
  margin: 32px 0 12px;
  color: var(--brand);
}

.hero p.lede {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero-logo {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  display: inline-block;
  background: url('icon.png') center/cover no-repeat;
  box-shadow: 0 24px 48px rgba(76, 50, 28, 0.22);
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  text-decoration: none;
}
.store-badge.disabled {
  background: var(--surface-strong);
  color: var(--ink-soft);
  cursor: default;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 48px 0;
}
.feature {
  background: var(--surface);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--brand);
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ─────────── Footer ─────────── */

footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 24px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: var(--max-width);
  margin: 64px auto 0;
}
footer.site .links a {
  margin: 0 12px;
}
footer.site .copyright {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: rgba(75, 50, 28, 0.55);
}

/* ─────────── Mobile ─────────── */

@media (max-width: 540px) {
  .hero h1 { font-size: 42px; }
  .doc h1 { font-size: 32px; }
  .doc h2 { font-size: 20px; }
  body { font-size: 17px; }
  main { padding: 32px 20px 64px; }
}
