/* The palette is the app's own — Holos/DesignSystem.swift — so the site and
   the thing you download look like one product. */
:root {
  --paper:        #F7F4EF;
  --paper-raised: #FDFCFA;
  --ink:          #221B18;   /* manganese, the colour of the mark */
  --ink-soft:     #6B615B;
  --rule:         #E2DCD2;
  --accent:       #6E40E0;
  --confirm:      #0D7A33;
  --bone:         #EDE3D2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161514; --paper-raised: #211F1D; --ink: #EDE7DE;
    --ink-soft: #9A9089; --rule: #322E2A; --accent: #A88CFF;
    --confirm: #30D158;
  }
}
:root[data-theme="dark"] {
  --paper: #161514; --paper-raised: #211F1D; --ink: #EDE7DE;
  --ink-soft: #9A9089; --rule: #322E2A; --accent: #A88CFF;
  --confirm: #30D158;
}
:root[data-theme="light"] {
  --paper: #F7F4EF; --paper-raised: #FDFCFA; --ink: #221B18;
  --ink-soft: #6B615B; --rule: #E2DCD2; --accent: #6E40E0;
  --confirm: #0D7A33;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 ui-serif, "New York", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 40rem; margin: 0 auto; padding: 0 1.5rem; }

/* ── masthead ─────────────────────────────────────────────── */
header { padding: 5rem 0 3.5rem; text-align: center; }
.mark { width: 84px; height: 84px; border-radius: 19px; background: var(--bone); display: block; margin: 0 auto 1.75rem; }
h1 {
  font-size: 2.6rem; line-height: 1.1; margin: 0 0 .75rem;
  font-weight: 600; letter-spacing: -0.02em; text-wrap: balance;
}
.standfirst {
  font-size: 1.2rem; color: var(--ink-soft); margin: 0 auto 2.25rem;
  max-width: 30rem; text-wrap: balance;
}

/* ── buy ──────────────────────────────────────────────────── */
.buy { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.button {
  display: inline-block; background: var(--accent); color: #fff;
  font: 600 1rem/1 ui-sans-serif, -apple-system, system-ui, sans-serif;
  padding: .95rem 2rem; border-radius: 10px; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.terms { font: 400 .85rem/1.5 ui-sans-serif, -apple-system, system-ui, sans-serif; color: var(--ink-soft); }

/* ── sections ─────────────────────────────────────────────── */
section { padding: 3rem 0; border-top: 1px solid var(--rule); }
h2 { font-size: 1.45rem; margin: 0 0 1rem; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: 1.05rem; margin: 2rem 0 .4rem; font-weight: 600; }
p { margin: 0 0 1.1rem; }
a { color: var(--accent); }

/* A claim and the way to check it. The point of the whole page. */
.claims { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.claims li { display: grid; gap: .3rem; }
.claims strong { font-weight: 600; }
.claims code, .mono {
  font: .82rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.check {
  background: var(--paper-raised); border: 1px solid var(--rule);
  border-radius: 12px; padding: 1.25rem 1.4rem; margin: 1.5rem 0;
}
.check p:last-child { margin-bottom: 0; }
.check pre {
  margin: .5rem 0 0; padding: .8rem 1rem; background: var(--paper);
  border-radius: 8px; overflow-x: auto;
  font: .82rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec th, .spec td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec th { font-weight: 600; width: 11rem; }
.scroller { overflow-x: auto; }

footer {
  border-top: 1px solid var(--rule); padding: 2.5rem 0 4rem;
  font: .88rem/1.7 ui-sans-serif, -apple-system, system-ui, sans-serif;
  color: var(--ink-soft);
}
footer a { color: var(--ink-soft); }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1rem; }

/* ── legal documents ──────────────────────────────────────────
   Same paper, narrower measure. These get read carefully by exactly
   the sort of person who buys a privacy-first app, so they are set
   to be readable rather than to be skipped. */
.doc { padding-bottom: 3rem; }
.doc h1 { font-size: 2rem; margin: 2.5rem 0 .4rem; }
.doc .standfirst {
  font: .88rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink-soft); margin: 0 0 2.5rem; max-width: none;
}
.doc h2 {
  font-size: 1.3rem; margin: 2.75rem 0 .9rem;
  padding-top: 1.5rem; border-top: 1px solid var(--rule);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc h3 { font-size: 1.02rem; margin: 1.75rem 0 .4rem; }
.doc ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.doc li { margin-bottom: .5rem; }
.back {
  font: .88rem/1.6 ui-sans-serif, -apple-system, system-ui, sans-serif;
  margin: 2rem 0 0;
}
.back a { text-decoration: none; }
