:root {
  /* Matched to the app's Theme.swift (shipped v0.6.2). NOTE: the #23 design
     overhaul (Orchid/Daybreak) will replace this palette — revisit at v1. */
  --bg: #07090D;          /* Theme.bg */
  --bg-soft: #0D1117;     /* Theme.card */
  --text: #EDF2F7;        /* Theme.white */
  --muted: #7A90A8;       /* Theme.mutedLight */
  --accent: #E8C81B;      /* Theme.yellow — the clock/time color */
  --blue: #1B7FE8;        /* Theme.blue — principle bullets + term names */
  --line: #161C26;        /* Theme.cardBorder */
  --max: 720px;
}

* { box-sizing: border-box; }

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

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

/* ---------- Landing hero ---------- */
.hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
}

.icon-link {
  display: inline-block;
  transition: transform 0.12s ease;
}
.icon-link:hover { transform: translateY(-2px); }
.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 22.37%;   /* iOS squircle approximation */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: block;
}

.wordmark {
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 1.4rem 0 0;
}

.tagline {
  color: var(--muted);
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  margin: 0.6rem 0 2.2rem;
}

/* ---------- App Store badge (official asset) ---------- */
.appstore {
  display: inline-block;
  transition: transform 0.12s ease;
}
.appstore:hover { transform: translateY(-1px); }
.appstore img {
  height: 52px;
  width: auto;
  display: block;
}

/* ---------- Footer ---------- */
.foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.5rem 1rem 2.5rem;
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot .bar { margin: 0 0.6rem; opacity: 0.4; }

/* ---------- Privacy page ---------- */
.doc {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.doc .back { font-size: 0.9rem; color: var(--muted); }
.doc h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); letter-spacing: -0.01em; margin: 1.2rem 0 0.3rem; }
.doc h2 { font-size: 1.25rem; margin: 2.2rem 0 0.5rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.doc .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.5rem; }
.doc .lede {
  font-size: 1.08rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.3rem 0; }
.doc code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
}

/* ---------- Manifesto page ---------- */
.eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.doc h1.why { margin-top: 0.4rem; }

.principles {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.principles li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0.7rem 0;
  color: var(--text);
  font-weight: 600;
  font-size: 1.02rem;
}
.principles li::before {
  content: "•";
  color: var(--blue);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.rule { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }

.terms { margin-top: 0.5rem; }
.term { padding: 0.55rem 0; }
.term-name { color: var(--blue); font-weight: 700; }
.term-def { color: var(--muted); margin: 0.2rem 0 0; }
