:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #57565b;
  --line: #e3e5ea;
  --accent: #0a84ff;
  --accent-ink: #0a63e0;
  --doc-text: #2a2a2d;
  --pill-bg: #e6f2ff;
  --pill-line: #bfdcff;
  --mark-fg: #0a84ff;
  --mark-bg: #ffffff;
  --max: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.015em;
}
.brand svg { width: 26px; height: 26px; display: block; }
.header-nav a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
}
.header-nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero p.lede {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 60ch;
}
.req {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-store {
  background: var(--ink);
  color: #fff;
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.btn-store small {
  font-weight: 500;
  opacity: 0.85;
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--pill-bg);
  border: 1px solid var(--pill-line);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 4px;
}

/* Feature list */
.features { padding: 8px 0 64px; }
.features ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}
.features li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}
.features li strong { color: var(--ink); font-weight: 600; }
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

/* Legal document */
.doc { padding: 56px 0 72px; }
.doc h1 {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  font-weight: 800;
}
.doc .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 40px;
}
.doc h2 {
  font-size: 21px;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.doc h3 { font-size: 17px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--doc-text); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 15px;
}
.back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  text-decoration: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer nav a { margin-left: 18px; }

@media (max-width: 560px) {
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 34px; }
  .hero p.lede { font-size: 18px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .site-footer nav a { margin-left: 0; margin-right: 18px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18191c;
    --surface: #232326;
    --ink: #f3f3f4;
    --muted: #a8a9ad;
    --line: #35363a99;
    --accent: #0a84ff;
    --accent-ink: #4aa8ff;
    --doc-text: #d7d7d9;
    --pill-bg: #10305c;
    --pill-line: #1b3f78;
    --mark-fg: #ffffff;
    --mark-bg: #1d1d1f;
  }
  .btn-store { background: #000; }
  .callout { background: #201f21; }
}
