/* Adviser — support & privacy site.
   Palette mirrors SportSources/DESIGN.md so the pages read as the app. */

:root {
  --canvas: #f2f2f4;
  --surface: #ffffff;
  --surface-raised: #e8e8ec;
  --ink: #0a0a0c;
  --mute: #6c6c76;
  --line: #d8d8de;
  --line-strong: #b6b6be;
  --accent: #1151ff;
  --accent-pressed: #0a34c4;
  --accent-text: #0a34c4;
  --on-accent: #ffffff;
  --icon-ground: #0a0a0c;   /* the app icon's own canvas, behind its alpha */
  --display: "Unbounded", "Avenir Next", "Helvetica Neue", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0a0a0c;
    --surface: #16161b;
    --surface-raised: #1e1e24;
    --ink: #f4f4f6;
    --mute: #8b8b95;
    --line: #2a2a32;
    --line-strong: #3d3d47;
    --accent-text: #5b85ff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* One measure for header, body and footer, so every left edge lines up.
   Horizontal padding is a longhand: a `padding` shorthand on `main` would
   out-cascade it (`.wrap` is the more specific selector) and drop the gutter. */
.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ---- header ---- */

.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: var(--icon-ground);
  flex: none;
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-sub {
  display: block;
  margin-top: 0.1rem;
  color: var(--mute);
  font-size: 0.85rem;
  line-height: 1.2;
}

.site nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site nav a { text-decoration: none; color: var(--mute); }
.site nav a:hover { color: var(--ink); }
.site nav a[aria-current] { color: var(--ink); font-weight: 600; }

/* ---- type ---- */

main.wrap {
  padding-top: 2.75rem;
  padding-bottom: 4rem;
}

h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 1.75rem 0 0.4rem;
}

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.45rem; }
li:last-child { margin-bottom: 0; }

.lead { font-size: 1.08rem; color: var(--mute); margin-bottom: 1.5rem; }
.updated { color: var(--mute); font-size: 0.9rem; margin: -0.25rem 0 1.75rem; }

/* ---- cards ---- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 0 0 2.5rem;
}

.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.button:hover { background: var(--accent-pressed); color: var(--on-accent); }

/* ---- FAQ ---- */

.faq { border-top: 1px solid var(--line); padding-top: 0.5rem; }
.faq > h3:first-child { margin-top: 1.25rem; }
.faq > p:last-child { margin-bottom: 0; }

.note { color: var(--mute); font-size: 0.92rem; }

/* ---- footer ---- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.5rem;
  color: var(--mute);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.site-footer a { color: var(--mute); }
.site-footer a:hover { color: var(--ink); }
