/* Shared stylesheet for the prose pages: privacy, terms, support and the
 * article pages. It carries the same tokens and the same two typefaces as
 * index.html so the site reads as one thing; only the layout is different,
 * being a single measured column rather than full-width sections. */
:root {
  /* Mirrors index.html, which mirrors DS.Colors in
     App/Sources/DesignSystem/DS.swift. */
  --brand: #4C6FFF;
  --brand-deep: #3A50E0;
  --brand-bright: #7189FF;
  --brand-soft: #E7ECFF;

  --ink: #14142B;
  --ink2: #3A3A55;
  --muted: #6B6B85;
  --rule: rgba(20, 20, 43, 0.1);
  --bg: #FFFFFF;
  --paper: #F4F6FF;
  --lav: #E9EDFC;
  --dark: #0A0A16;

  --note-bg: #FFF6E5;
  --note-ink: #7A4B00;

  /* Provider identity colours. Third copy of the same three values, kept in
     step with DS.Colors and index.html: they say which provider, and are
     never the route-line colours those apps draw. */
  --google: #1A73E8;
  --apple: #1D1D1F;
  --yandex: #FC3F1D;

  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 47rem; margin: 0 auto; padding: 0 22px 96px; }
a { color: var(--brand-deep); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }

/* ── Site bar, so a prose page is never a dead end ── */
.sitebar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--rule);
}
.sitebar .in {
  max-width: 47rem; margin: 0 auto; padding: 0 22px;
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.sitebar .home {
  display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.025em; white-space: nowrap;
}
.sitebar .home img { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--rule); }
.sitebar .get {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 8px 15px; border-radius: 100px; white-space: nowrap;
}
.sitebar .get:hover { background: #24243F; color: #fff; }

/* ── Header ── */
header.doc { border-bottom: 1px solid var(--rule); padding: 40px 0 22px; margin-bottom: 10px; }
.dots { display: flex; gap: 6px; margin-bottom: 16px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; }
.dots span:nth-child(1) { background: var(--google); }
.dots span:nth-child(2) { background: var(--apple); }
.dots span:nth-child(3) { background: var(--yandex); }
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 12.5px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--brand-deep);
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; color: var(--ink); line-height: 1.12; }
h1 { font-size: clamp(28px, 4.6vw, 40px); font-weight: 700; margin: 12px 0 8px; }
h2 { font-size: 1.4rem; font-weight: 700; margin: 44px 0 10px; }
h3 { font-size: 1.08rem; font-weight: 600; margin: 28px 0 6px; }
.updated { color: var(--muted); font-size: 0.9rem; margin: 0; }
.standfirst { font-size: 19px; color: var(--ink2); margin: 14px 0 0; text-wrap: pretty; }
p { margin: 12px 0; }
ul, ol { margin: 12px 0; padding-left: 22px; }
li { margin: 7px 0; }

/* ── Callouts ── */
.note {
  background: var(--note-bg); color: var(--note-ink);
  border-radius: 14px; padding: 15px 17px; margin: 26px 0; font-size: 0.94rem;
}
.note a { color: inherit; }
.pull {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 16px; padding: 20px 22px; margin: 28px 0;
}
.pull h3 { margin-top: 0; }
.pull p:last-child { margin-bottom: 0; }

/* ── Tables ── */
.wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--rule); }
thead th {
  color: var(--muted); font-family: var(--display); font-weight: 600;
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
}
tbody th { font-family: var(--display); font-weight: 600; color: var(--ink); }
.prov { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.prov i { width: 8px; height: 8px; border-radius: 50%; display: block; flex-shrink: 0; }
.p-google i, i.p-google { background: var(--google); }
.p-apple i,  i.p-apple  { background: var(--apple); }
.p-yandex i, i.p-yandex { background: var(--yandex); }

/* ── In-page CTA ── */
.cta {
  background: linear-gradient(180deg, var(--paper), var(--lav));
  border: 1px solid var(--rule); border-radius: 20px;
  padding: 30px 26px; margin: 46px 0 0; text-align: center;
}
.cta h2 { margin: 0 0 8px; font-size: 1.5rem; }
.cta p { color: var(--ink2); margin: 0 auto 20px; max-width: 34rem; }
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; border-radius: 15px;
  padding: 11px 20px 11px 17px; text-decoration: none;
}
.appstore:hover { color: #fff; transform: translateY(-2px); }
.appstore svg { width: 26px; height: 26px; flex-shrink: 0; }
.appstore > span { display: flex; flex-direction: column; }
.appstore .sm { font-size: 11px; font-family: var(--display); font-weight: 500; opacity: .8; line-height: 1.2; }
.appstore .lg { font-size: 18px; font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }

/* ── Footer ── */
footer {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 0.9rem;
}
footer .flinks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
footer .flinks a { font-family: var(--display); font-weight: 500; font-size: 0.92rem; text-decoration: none; }
footer .fine { font-size: 0.82rem; line-height: 1.6; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--lav); padding: 2px 6px; border-radius: 6px; }

@media (max-width: 560px) {
  .sitebar .get { display: none; }
  body { font-size: 16px; }
}
