/* Jonesy's website. The product's tokens (docs/design/visual-language.md), so the site and the app look alike. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --side: #f7f7f8;
  --soft: #f5f5f5;
  --ink: #202123;
  --muted: #707078;
  --line: #e7e7e9;
  --accent: #3274bc;
  --signal: #c5a064;
  --shadow: 0 1px 2px #2021230d, 0 12px 40px #2021231a;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #202123;
    --side: #191a1c;
    --soft: #2b2c2f;
    --ink: #ececef;
    --muted: #a3a3ad;
    --line: #393a3d;
    --accent: #91b9ef;
    --shadow: 0 1px 2px #0000004d, 0 12px 40px #00000066;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Header and footer */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.3px; text-decoration: none; }
.brand img { border-radius: 7px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.top nav a:not(.btn):hover, .top nav a[aria-current] { color: var(--ink); }
.foot { border-top: 1px solid var(--line); margin-top: 96px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }
.foot-in span { display: flex; align-items: center; gap: 8px; }
.foot-in img { border-radius: 5px; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 11px 20px; font-size: 15px; font-weight: 500; text-decoration: none; transition: opacity .15s; }
.btn:hover { opacity: .85; }
.btn-small { padding: 6px 14px; font-size: 13px; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--soft); opacity: 1; }

/* Type */
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 600; }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 18px 0 0; }

/* Hero */
.hero { padding: 88px 0 0; text-align: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 64px); line-height: 1.05; letter-spacing: -2px; max-width: 13ch; margin: 0 auto; }
.hero .lede { max-width: 620px; margin: 22px auto 0; }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pilot { display: inline-flex; align-items: center; gap: 8px; }
.pilot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

/* Product screenshots, in a quiet window frame */
.shot { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--side); box-shadow: var(--shadow); }
.shot::before { content: ""; display: block; height: 28px; border-bottom: 1px solid var(--line); background:
  radial-gradient(circle at 16px 14px, var(--line) 5px, transparent 5.5px),
  radial-gradient(circle at 34px 14px, var(--line) 5px, transparent 5.5px),
  radial-gradient(circle at 52px 14px, var(--line) 5px, transparent 5.5px); }
.hero .shot { margin-top: 64px; }

/* Sections */
.section { padding: 112px 0 0; }
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -1px; }
.center { text-align: center; margin: 0 auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.steps h3, .grid h3 { font-size: 17px; margin-bottom: 6px; }
.steps p, .grid p { margin: 0; color: var(--muted); font-size: 15px; }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .feature-text { order: 2; }
.feature h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.9px; }
.feature p { color: var(--muted); font-size: 17px; margin: 16px 0 0; }
.feature .quiet { font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 40px; margin-top: 48px; }
.grid > div { border-top: 1px solid var(--line); padding-top: 20px; }
.grid q { quotes: "\201C" "\201D"; color: var(--ink); }

.lead-block { background: var(--soft); border-left: 2px solid var(--accent); border-radius: 12px; padding: 40px 44px; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; }
.lead-block h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.9px; }
.lead-block ul { margin: 0; padding: 0; list-style: none; }
.lead-block li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.lead-block li:first-child { padding-top: 0; }
.lead-block li strong { color: var(--ink); font-weight: 500; }
.lead-block a { color: var(--accent); text-decoration: none; }
.lead-block a:hover { text-decoration: underline; }

.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.needs > div { border-top: 1px solid var(--line); padding-top: 20px; }
.needs h3 { font-size: 17px; margin-bottom: 6px; }
.needs p { margin: 0; color: var(--muted); font-size: 15px; }

.invite { text-align: center; padding: 120px 0 0; }
.invite h2 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -1.2px; line-height: 1.1; }
.invite p { color: var(--muted); font-size: 17px; max-width: 540px; margin: 16px auto 0; }

/* Help */
.page-head { padding: 64px 0 24px; }
.page-head h1, .prose h1 { font-size: 40px; letter-spacing: -1.2px; line-height: 1.1; }
.rows { border-top: 1px solid var(--line); }
.row { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row-title { display: block; font-weight: 500; }
.row-sub { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.row:hover .row-title { color: var(--accent); }

.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; padding-top: 56px; }
.docs-nav { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.docs-nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.docs-nav a:hover { background: var(--soft); color: var(--ink); }
.docs-nav a[aria-current] { background: var(--soft); color: var(--ink); font-weight: 500; }
.docs-nav a:first-child { margin-bottom: 8px; }
.prose { max-width: 720px; font-size: 17px; line-height: 1.75; }
.prose h1 { margin-bottom: 28px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 0 0 10px; }
.prose code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); padding: 1px 5px; border-radius: 5px; }

/* Phones */
@media (max-width: 860px) {
  .feature, .lead-block { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-text { order: 0; }
  .steps, .grid, .needs { grid-template-columns: 1fr; gap: 28px; }
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .docs-nav a:first-child { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top nav { gap: 14px; }
  .top nav a[href="/#how"] { display: none; }
  .hero { padding-top: 56px; }
  .hero h1 { letter-spacing: -1.2px; }
  .hero .shot { margin-top: 44px; }
  .section { padding-top: 80px; }
  .feature + .feature { margin-top: 80px; }
  .lead-block { padding: 28px 22px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .page-head h1, .prose h1 { font-size: 32px; }
}

/* Releases (filled in by the Worker from releases.json) */
.releases { border-top: 1px solid var(--line); }
.release { padding: 28px 0; border-bottom: 1px solid var(--line); }
.release-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.release h2 { font-size: 20px; letter-spacing: -0.3px; }
.release time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.release ul { margin: 12px 0 0; padding-left: 22px; }
.release li { margin: 0 0 8px; font-size: 16px; }
