/* Shared by the home page and the content pages. The legal pages keep their own inline styles and only use the
   .topbar and .site-footer parts of this file. */
:root {
  --paper: #faf9f6;
  --ink: #22261f;
  --ink-dim: #5f645b;
  --accent: #c2502a;
  --accent-bright: #ff6f3d;
  --line: #e4e2da;
  --card: #fffefb;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

/* ---------- Top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}
.topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  margin-right: auto;
}
.topbar .brand img { width: 30px; height: auto; }
.topbar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.topbar nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.topbar nav a:hover { color: var(--accent); }
.topbar nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent-bright);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.topbar .open-app {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.topbar .open-app:hover { background: #000; }

@media (max-width: 720px) {
  .topbar nav { order: 3; width: 100%; }
}

/* ---------- Page body ---------- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}
.page h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 8px 0 6px;
}
.page .meta {
  color: var(--ink-dim);
  font-size: 17px;
  margin: 0 0 28px;
}
.prose h2 {
  font-size: 22px;
  margin: 36px 0 10px;
  letter-spacing: -0.005em;
}
.prose h3 {
  font-size: 17px;
  margin: 24px 0 6px;
}
.prose p, .prose li { font-size: 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- Home ---------- */
.hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 16px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero .lede {
  font-size: 19px;
  color: var(--ink-dim);
  margin: 0 0 24px;
  max-width: 34em;
}
.hero img { width: 100%; max-width: 300px; height: auto; justify-self: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { background: #000; }
.text-link { font-weight: 600; }

.band {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 16px;
  border-top: 1px solid var(--line);
}
.band h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.band > p { color: var(--ink-dim); max-width: 44em; margin: 0 0 20px; font-size: 17px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px 32px;
}
.grid h3 { font-size: 17px; margin: 0 0 4px; }
.grid p { margin: 0; color: var(--ink-dim); font-size: 15.5px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.steps li::before {
  content: counter(step);
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--ink); display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.steps strong { display: block; }
.steps span { color: var(--ink-dim); }
.quote {
  font-size: 24px;
  line-height: 1.35;
  max-width: 30em;
  margin: 0 0 12px;
}
.ad {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 16px 24px;
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero h1 { font-size: 34px; }
  .hero img { max-width: 200px; order: -1; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.site-footer .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-dim);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--ink-dim); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .links { display: grid; gap: 8px; }
