/*
 * One stylesheet for the whole site. The palette mirrors src/design/tokens.ts so
 * a Terms page opened from inside the app does not look like a different
 * product — the in-app browser hands the viewer straight from the launch screen
 * to here.
 *
 * If the app's palette changes, change it here too. Two files is the right
 * number for something this small; a build step to share one is not.
 */

:root {
  --ink: #16121f;
  --ink-raised: #1b1626;
  --border: #33294a;
  --text: #f3f0fa;
  --text-muted: #b3a9c9;
  --text-faint: #9188ab;
  --text-dim: #7c7196;
  --violet: #a96bff;
  --magenta: #ff5cc8;

  --measure: 34rem;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: clamp(2rem, 6vw, 4.5rem) 1.5rem 6rem;
  background: var(--ink);
  /* The faint dot grid from the app, same 16px pitch. */
  background-image: radial-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--text-muted);
  font:
    400 1rem/1.65 'Instrument Sans',
    system-ui,
    -apple-system,
    sans-serif;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
}

/* ── Masthead ─────────────────────────────────────────────────────────── */

.masthead {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 3rem;
  text-decoration: none;
}

/* The app's mark: a phone held to a forehead, reduced to a tilted outline. */
.mark {
  flex: none;
  width: 26px;
  height: 9px;
  border: 2px solid var(--violet);
  border-radius: 3px;
  transform: rotate(-6deg);
}

.masthead span {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* ── Type ─────────────────────────────────────────────────────────────── */

h1 {
  margin: 0 0 0.6rem;
  font-family: 'Anybody', system-ui, sans-serif;
  font-variation-settings: 'wdth' 130;
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}

h2 {
  margin: 2.75rem 0 0.75rem;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.16rem;
  line-height: 1.3;
  color: var(--text);
}

.updated {
  margin: 0 0 2.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

p,
li {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.15rem;
}

li::marker {
  color: var(--violet);
}

strong {
  color: var(--text);
  font-weight: 600;
}

a {
  color: var(--violet);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--magenta);
}

/*
 * Used for the things a reader should not be able to skim past — the
 * per-store purchase rule, and the fact that nothing here creates an account.
 */
.callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--ink-raised);
}

.callout :last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.87rem;
  color: var(--text-dim);
}

footer a {
  color: var(--text-muted);
}

/* ── Print ────────────────────────────────────────────────────────────── */

/*
 * Legal pages get printed and PDF'd — by reviewers, and by anyone keeping a
 * record of what they agreed to. The dark brand treatment is actively hostile
 * on paper, so print gets plain black on white.
 */
@media print {
  body {
    background: #fff;
    background-image: none;
    color: #000;
    padding: 0;
  }
  h1,
  h2,
  strong {
    color: #000;
  }
  a {
    color: #000;
  }
  .callout {
    background: none;
    border-color: #999;
  }
  .masthead,
  footer {
    color: #444;
  }
}
