:root {
  --bg: #fbfbfd;
  --bg-band: #f2f3f6;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5b5d63;
  --line: #dcdee3;
  --accent: #1a62e6;
  --accent-text: #ffffff;
  --code-bg: #f0f1f4;
  --titlebar: #e8e8ea;
  --titlebar-line: #d2d2d6;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 40px rgb(0 0 0 / 0.14);
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --bg-band: #1d1e21;
    --surface: #232427;
    --text: #f2f2f4;
    --muted: #a4a6ad;
    --line: #36383d;
    --accent: #5b9bff;
    --accent-text: #0b1220;
    --code-bg: #26282c;
    --titlebar: #2c2d31;
    --titlebar-line: #111214;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 48px rgb(0 0 0 / 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

code, pre { font-family: var(--mono); font-size: 0.88em; }
p code, li code {
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--surface);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* Header and footer */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header { padding-block: 18px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.site-header nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}
.site-header nav a:hover { color: var(--text); }

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
  color: var(--muted);
  font-size: 0.94rem;
}
.site-footer p { margin: 0; }

/* Hero */

.hero {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 40px;
}
.hero-icon { margin: 0 auto 18px; width: 88px; height: 88px; filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.18)); }
h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 0.3em;
}
.pitch {
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 auto 0.6em;
  max-width: 40ch;
}
.lede {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.command {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  text-align: left;
}
.command code {
  font-size: 0.92rem;
  overflow-x: auto;
  white-space: nowrap;
  min-width: 0;
}
.command code::before { content: "$ "; color: var(--muted); user-select: none; -webkit-user-select: none; }

.copy {
  flex: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.3rem 0.75rem;
  min-width: 4.8rem;
  cursor: pointer;
}
.copy:hover { border-color: var(--muted); }

.actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0 0.9rem;
}
.button {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
}
.button:hover { border-color: var(--muted); }
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.button.primary:hover { filter: brightness(1.08); }

.meta { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Window chrome around screenshots */

.shot { margin: 0; }
.shot-hero { max-width: 900px; margin-inline: auto; padding-bottom: 32px; }
.window {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--titlebar-line);
}
.titlebar {
  position: relative;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--titlebar);
  border-bottom: 1px solid var(--titlebar-line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.lights {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}
.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.2);
}
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.window img { width: 100%; }

.shot figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin: 1.1rem auto 0;
  max-width: 40rem;
}

/* Sections */

.section { padding-block: 72px; }
h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 1.6rem;
}
h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem 2.25rem;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid li { border-top: 1px solid var(--line); padding-top: 1rem; }
.grid p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.band {
  background: var(--bg-band);
  border-block: 1px solid var(--line);
  padding-block: 80px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.5rem;
  align-items: center;
}
.prose p { margin: 0 0 1rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.checks li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.65rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.note { color: var(--muted); font-size: 0.94rem; }

.install {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  max-width: 42rem;
}
.install h3 { margin-bottom: 0.7rem; }
.install p { color: var(--muted); font-size: 0.97rem; margin: 0 0 0.9rem; }
.install .command { width: 100%; justify-content: space-between; }
.install .meta { margin-top: 0.9rem; }

pre.code {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { padding-block: 56px; }
  .band { padding-block: 56px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .site-header nav a:not(:last-child) { display: none; }
  .hero { padding-top: 32px; }
  .hero .command { width: 100%; }
  .command code { font-size: 0.8rem; white-space: normal; overflow-wrap: anywhere; }
  .titlebar { height: 30px; }
  .lights { left: 10px; gap: 6px; }
  .lights i { width: 10px; height: 10px; }
}
