/* TummyTally marketing/legal site — shared styles (#228).
   Plain CSS, no build step. Brand colours mirror the app (app.json). */

:root {
  --bg: #110c0e;
  --bg-soft: #1b1416;
  --card: #221a1d;
  --border: #34282c;
  --text: #f7eef0;
  --muted: #b8a9ad;
  --brand: #e23e6b;
  --brand-light: #ff6f93;
  --radius: 16px;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--brand-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}

header.site .logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  display: grid; place-items: center;
  font-size: 22px;
}

header.site .name { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }

h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 22px 0 6px; }

p, li { color: var(--text); }
.muted { color: var(--muted); }
small, .small { font-size: 14px; color: var(--muted); }

.hero {
  text-align: center;
  padding: 24px 0 8px;
}
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 auto 24px; }

.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
}
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 18px 0;
}

.features { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 28px; }
.features .card { margin: 0; }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.legal h2 { border-top: 1px solid var(--border); padding-top: 22px; }
.legal h2:first-of-type { border-top: none; padding-top: 0; }

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 28px 20px;
  text-align: center;
}
footer.site nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
footer.site a { color: var(--muted); }

.backlink { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
