/* anticipy.app — shared styles for the static site (landing, /i, 404,
   legal pages). Colours from the brand kit (navy #01405F, gradient
   #20FCBC → #06A798 → #024A6C) and AppTheme (backgroundDark #0F1923,
   surfaceDark #1A2332). No JavaScript anywhere on the site. */

:root {
  --bg: #ffffff;
  --surface: #f2f8f7;
  --text: #1b2630;
  --heading: #01405F;
  --muted: #5b6b78;
  --line: #dde6e8;
  --link: #035F77;
  --button-text: #ffffff;
  --glow: rgba(32, 252, 188, 0.18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1923;
    --surface: #1A2332;
    --text: #e6edf1;
    --heading: #ffffff;
    --muted: #9aabb8;
    --line: #2a3747;
    --link: #6fd3cf;
    --glow: rgba(32, 252, 188, 0.10);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; }

/* Light / dark artwork: <img class="on-light"> + <img class="on-dark"> */
.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .on-light { display: none; }
  .on-dark { display: inline-block; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Centered pages: landing, /i, 404 ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 32px;
  background: radial-gradient(ellipse at 50% 30%, var(--glow), transparent 65%);
}
.hero-inner { width: 100%; max-width: 560px; }
.logo { width: 260px; height: 260px; }
.symbol { width: 112px; height: 112px; }
.hero h1, .hero h2 { color: var(--heading); line-height: 1.25; margin: 16px 0 8px; }
.hero h1 { font-size: 28px; }
.lead { font-size: 20px; color: var(--heading); font-weight: 600; margin: 8px 0 12px; }
.hero p { margin: 8px 0; }
.muted { color: var(--muted); }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 8px; }
.store {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  min-width: 170px; padding: 10px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  text-decoration: none; line-height: 1.3; text-align: left;
}
.store small { color: var(--muted); font-size: 12px; }
.store strong { font-size: 17px; }

.button {
  display: inline-block; margin-top: 24px; padding: 12px 28px; border-radius: 999px;
  background: linear-gradient(135deg, #15CFAE, #06A798 45%, #024A6C);
  color: var(--button-text); font-weight: 600; text-decoration: none;
}

/* 404 — an achievement unlocking, like the app's achievement message */
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 4px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; text-align: left;
}
.badge img { width: 32px; height: 32px; }
.badge strong { color: var(--heading); }
.muted strong { color: var(--heading); }

/* ---------- Header + footer (legal pages, landing footer) ---------- */
header.top { border-bottom: 1px solid var(--line); }
.bar, main.doc, footer.site > p { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px; color: var(--heading);
  text-decoration: none; font-weight: 700; font-size: 18px;
}
.brand img { width: 30px; height: 30px; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.langs span { font-weight: 600; }

footer.site {
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
  padding: 16px 0 32px; text-align: center;
}

/* ---------- Legal documents ---------- */
main.doc { flex: 1; width: 100%; padding-top: 8px; padding-bottom: 32px; overflow-wrap: anywhere; }
main.doc h1 { font-size: 28px; line-height: 1.25; margin: 24px 0 8px; color: var(--heading); }
main.doc h2 { font-size: 21px; line-height: 1.3; margin: 32px 0 8px; color: var(--heading); }
main.doc h3 { font-size: 17px; margin: 24px 0 4px; }
main.doc hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
main.doc ul { padding-left: 22px; }
main.doc li { margin: 4px 0; }
main.doc code { font-size: 0.92em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
main.doc table { display: block; overflow-x: auto; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
main.doc th, main.doc td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--line); }
main.doc th { background: var(--surface); }
