/* One stylesheet for every page. Tokens first, so light and dark are defined
   in one place rather than scattered through the rules. */
:root {
  --brand: #1f5f8b;
  --brand-ink: #ffffff;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #12263a;
  --ink-soft: #4a5b6d;
  --line: #d8e2ec;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4a9ed1;
    --brand-ink: #06131d;
    --bg: #0e1621;
    --surface: #16212e;
    --ink: #e7eef7;
    --ink-soft: #a9bacb;
    --line: #27394c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.9rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  font-size: 1.05rem;
}

/* The real app icon, rounded the way the platforms round it, so the site and
   the thing people install look like the same product. */
.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
  flex: 0 0 auto;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

nav.site {
  margin-left: auto;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

nav.site a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

nav.site a:hover,
nav.site a[aria-current="page"] { color: var(--brand); }

/* ---- hero ---- */
.hero {
  padding-block: 3.25rem 2.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 0.75rem;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 34rem;
}

.note {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--surface);
}

/* ---- content ---- */
main { padding-bottom: 3rem; }

h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.6rem;
  letter-spacing: -0.2px;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
}

p, li { color: var(--ink); }

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

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-top: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.card h3 { margin-top: 0; }

.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.step {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.1rem;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps { counter-reset: step; margin-top: 1rem; }

.step h3 { margin: 0 0 0.15rem; }

.step p { margin: 0; color: var(--ink-soft); }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

th { color: var(--ink-soft); font-weight: 600; }

.scroll { overflow-x: auto; }

.updated {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ---- footer ---- */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 1.5rem;
  margin-top: 2rem;
}

footer.site .wrap {
  display: flex;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

footer.site nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-left: auto; }

footer.site a { color: var(--ink-soft); text-decoration: none; }

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