:root {
  --ink: #17181c;
  --dim: #5d6270;
  --faint: #8a8f9c;
  --line: #e4e5ea;
  --page: #ffffff;
  --panel: #f6f6f8;
  --band: #f7f7fc;
  --accent: #5457e8;
  --accent-ink: #3d40c7;
  --accent-soft: rgba(84, 87, 232, .1);
  --code-bg: #fbfbfc;
  --shadow: 0 1px 2px rgba(20, 22, 30, .06), 0 12px 40px rgba(20, 22, 30, .12);

  --t-comment: #8a8f9c;
  --t-separator: #17181c;
  --t-method: #1f9d55;
  --t-directive: #9b3fc7;
  --t-keyword: #d6336c;
  --t-interp: #d9730d;
  --t-string: #c2371b;
  --t-number: #2563eb;
  --t-header: #0f8b8d;
  --t-pass: #1f9d55;
  --t-fail: #d63031;

  --max: 72rem;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceef3;
    --dim: #a3a9b7;
    --faint: #767c8a;
    --line: #272a32;
    --page: #101114;
    --panel: #17191e;
    --band: #13141a;
    --accent: #8587ff;
    --accent-ink: #a6a8ff;
    --accent-soft: rgba(133, 135, 255, .15);
    --code-bg: #15171b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 48px rgba(0, 0, 0, .45);

    --t-comment: #767c8a;
    --t-separator: #eceef3;
    --t-method: #4ad07f;
    --t-directive: #c98cf0;
    --t-keyword: #ff6b9a;
    --t-interp: #ffab5e;
    --t-string: #ff7b63;
    --t-number: #7aa7ff;
    --t-header: #48c9c4;
    --t-pass: #4ad07f;
    --t-fail: #ff6b6b;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
code, pre { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }
:not(pre) > code {
  font-size: .86em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .08em .35em;
  white-space: nowrap;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; max-width: 22em; }
h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.wrap.wide { max-width: 82rem; }

/* Navigation */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top nav { display: flex; align-items: center; gap: 1.5rem; height: 3.5rem; font-size: .92rem; overflow-x: auto; }
.top nav a { color: var(--dim); white-space: nowrap; }
.top nav a:hover { color: var(--ink); text-decoration: none; }
.top .brand { display: inline-flex; align-items: center; gap: .5rem; margin-right: auto; color: var(--ink); font-weight: 650; font-size: 1rem; }
.top .github { color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; }

/* Hero */
.hero { padding: 4.5rem 0 3rem; background: radial-gradient(60rem 30rem at 50% -8rem, var(--accent-soft), transparent 70%); }
.hero-grid { text-align: center; }
.hero-text { max-width: 46rem; margin: 0 auto; }
.app-icon { margin: 0 auto 1.5rem; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .18)); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 750; letter-spacing: -.035em; margin-bottom: 1.2rem; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--dim); line-height: 1.55; }
.actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 1rem; }
.button {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.3rem;
  border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; background: var(--page);
}
.button:hover { text-decoration: none; border-color: var(--faint); color: var(--ink); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.fine { font-size: .88rem; color: var(--faint); }
.actions.left { justify-content: flex-start; margin-top: 0; }
.button.disabled { opacity: .85; cursor: default; }
.button.primary.disabled:hover { background: var(--accent); border-color: var(--accent); }
.hero .window { margin-top: 3rem; }

/* Screenshots */
figure { margin: 0; }
.window img, .shot.framed {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
}
.panel { display: flex; align-items: flex-start; }

/* Sections */
section { padding: 5.5rem 0; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lede { color: var(--dim); font-size: 1.1rem; max-width: 44rem; margin-bottom: 2.5rem; }
.label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0 0 .5rem; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.showcase .copy { max-width: 44rem; margin-bottom: 2.5rem; }
.showcase .two .copy { margin-bottom: 0; }
.showcase .copy p { color: var(--dim); font-size: 1.05rem; }
.window.below { margin-top: 3rem; }
.showcase .two { align-items: center; }
.alt { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Features */
.features h2 { margin-bottom: 2.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.1rem; }
.feature p { color: var(--dim); font-size: .95rem; margin: 0; }
.glyph {
  width: 2.2rem; height: 2.2rem; border-radius: 10px; display: grid; place-items: center; margin-bottom: .9rem;
  background: var(--accent-soft); color: var(--accent); font: 600 .95rem ui-monospace, "SF Mono", Menlo, monospace;
}

/* Code */
pre.code {
  margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto;
  background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .82rem; line-height: 1.6; tab-size: 2;
}
pre.code.shell { font-size: .78rem; background: #16171b; border-color: #16171b; color: #e6e8ee; }
pre.code.shell .t-dim { color: #7c8190; }
pre.code.shell .t-command { color: #a6a8ff; font-weight: 600; }
pre.code.shell .t-pass { color: #4ad07f; }
pre.code.shell .t-fail { color: #ff6b6b; }
pre.code.shell .t-strong { color: #ffffff; font-weight: 600; }
.t-comment { color: var(--t-comment); font-style: italic; }
.t-separator { color: var(--t-separator); font-weight: 700; }
.t-method { color: var(--t-method); font-weight: 700; }
.t-directive { color: var(--t-directive); }
.t-keyword { color: var(--t-keyword); font-weight: 600; }
.t-interp { color: var(--t-interp); }
.t-string { color: var(--t-string); }
.t-number { color: var(--t-number); }
.t-header { color: var(--t-header); }
.t-dim { color: var(--faint); }

/* Tables */
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 600; background: var(--panel); }
td:first-child { white-space: nowrap; }
td :not(pre) > code { white-space: nowrap; }

/* Get it */
.get pre.code { max-width: 46rem; margin-bottom: 1.5rem; }

/* Footer */
.bottom { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--faint); font-size: .9rem; }
.bottom p { margin: 0; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  section { padding: 3.5rem 0; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .toc nav { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
  .top nav { gap: 1rem; }
  .top nav a:not(.brand):not(.github) { display: none; }
  .hero { padding-top: 3rem; }
}

/* Brand mark */
.top .brand svg { width: 28px; height: 28px; }
.app-icon-svg { width: 128px; height: 128px; margin: 0 auto 1.5rem; display: block; filter: drop-shadow(0 12px 26px rgba(60, 62, 180, .28)); }

/* Browser window mock */
.browser {
  --b-bg: #ffffff; --b-chrome: #eceef3; --b-line: #dcdfe6; --b-skel: #eef0f4; --b-skel-2: #e3e6ec;
  --p-bg: #fbfbfe; --p-card: #ffffff; --p-ink: #1b1c24; --p-dim: #6b7080; --p-line: #e6e7ef;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--b-bg);
  text-align: left; font-size: 14px; line-height: 1.4;
}
@media (prefers-color-scheme: dark) {
  .browser {
    --b-bg: #15161b; --b-chrome: #1d1f26; --b-line: #2a2d36; --b-skel: #1f2128; --b-skel-2: #262932;
    --p-bg: #17181f; --p-card: #1e2029; --p-ink: #eceef3; --p-dim: #9aa0ae; --p-line: #2b2e39;
  }
}
.b-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .6rem .9rem; background: var(--b-chrome); border-bottom: 1px solid var(--b-line); }
.b-lights { display: flex; gap: .45rem; }
.b-lights i { width: .72rem; height: .72rem; border-radius: 50%; background: #ff5f57; }
.b-lights i:nth-child(2) { background: #febc2e; }
.b-lights i:nth-child(3) { background: #28c840; }
.b-url { justify-self: center; width: min(28rem, 100%); display: flex; align-items: center; gap: .5rem; padding: .3rem .8rem; border-radius: 8px; background: var(--b-bg); color: var(--p-dim); font: 12.5px/1.2 ui-monospace, "SF Mono", Menlo, monospace; overflow: hidden; white-space: nowrap; }
.b-url svg { width: 11px; flex: none; opacity: .7; }
.b-tools { display: flex; align-items: center; gap: .5rem; }
.b-ext { width: 1.7rem; height: 1.7rem; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.b-ext svg { width: 14px; height: 14px; }
.b-avatar { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: linear-gradient(135deg, #c7cbe0, #9aa0ba); }

.b-view { display: grid; grid-template-columns: minmax(0, 1fr) 19.5rem; min-height: 27rem; }
.b-page { padding: 1.6rem 1.8rem; display: grid; align-content: start; gap: 1rem; }
.sk { background: var(--b-skel); border-radius: 6px; height: .7rem; }
.sk-row { display: flex; gap: .8rem; align-items: center; }
.sk-logo { width: 1.8rem; height: 1.8rem; border-radius: 8px; background: var(--b-skel-2); flex: none; }
.sk-title { height: 1.1rem; width: 38%; background: var(--b-skel-2); }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: .4rem 0; }
.sk-card { border: 1px solid var(--b-line); border-radius: 10px; padding: .9rem; display: grid; gap: .55rem; }
.sk-card .big { height: 1.4rem; width: 55%; background: var(--b-skel-2); }
.sk-chart { height: 7.5rem; border: 1px solid var(--b-line); border-radius: 10px; position: relative; overflow: hidden; }
.sk-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-20 { width: 20%; } .w-35 { width: 35%; } .w-50 { width: 50%; } .w-65 { width: 65%; } .w-80 { width: 80%; } .w-90 { width: 90%; }

.probe { border-left: 1px solid var(--p-line); background: var(--p-bg); color: var(--p-ink); display: flex; flex-direction: column; box-shadow: -18px 0 40px -28px rgba(20, 22, 60, .35); }
.probe-head { display: flex; align-items: center; gap: .5rem; padding: .75rem .9rem; border-bottom: 1px solid var(--p-line); font-weight: 650; font-size: 13.5px; }
.probe-head svg { width: 18px; height: 18px; }
.probe-head .sp { flex: 1; }
.probe-head .icon-btn { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 6px; color: var(--p-dim); border: 1px solid var(--p-line); font-size: 15px; line-height: 1; }
.probe-head .icon-btn.add { color: #fff; background: var(--accent); border-color: var(--accent); }
.probe-list { padding: .7rem; display: grid; gap: .6rem; }
.wdg { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 10px; padding: .6rem .7rem .7rem; }
.wdg.lifted { box-shadow: 0 10px 24px -12px rgba(20, 22, 60, .35); border-color: color-mix(in srgb, var(--accent) 40%, var(--p-line)); }
.wdg-head { display: flex; align-items: center; gap: .45rem; margin-bottom: .55rem; }
.grip { color: var(--p-dim); opacity: .55; font-size: 11px; letter-spacing: -1px; cursor: grab; }
.wdg-name { font-weight: 600; font-size: 13px; flex: 1; }
.tag { font: 600 10px/1 ui-monospace, "SF Mono", Menlo, monospace; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .4rem; border-radius: 5px; }
.tag.clip { color: #0f8f5a; background: rgba(15, 143, 90, .1); }
.tag.act { color: var(--accent-ink); background: var(--accent-soft); }
.tag.txt { color: #b76e00; background: rgba(217, 119, 6, .12); }
@media (prefers-color-scheme: dark) { .tag.clip { color: #4ad07f; background: rgba(74, 208, 127, .12); } .tag.txt { color: #ffb44d; background: rgba(255, 180, 77, .12); } }
.run { display: inline-flex; align-items: center; gap: .35rem; font: 600 12px/1 -apple-system, BlinkMacSystemFont, sans-serif; padding: .45rem .65rem; border-radius: 7px; border: 1px solid var(--p-line); color: var(--p-ink); background: var(--p-bg); }
.run.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.wdg-row { display: flex; align-items: center; gap: .5rem; }
.toast { font-size: 11.5px; color: #0f8f5a; display: inline-flex; align-items: center; gap: .25rem; }
@media (prefers-color-scheme: dark) { .toast { color: #4ad07f; } }
.out { font: 11.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; background: var(--p-bg); border: 1px solid var(--p-line); border-radius: 7px; padding: .45rem .55rem; margin-bottom: .5rem; white-space: pre; overflow: hidden; color: var(--p-ink); }
.out .k { color: var(--t-directive); } .out .s { color: var(--t-string); } .out .n { color: var(--t-number); }
.probe-foot { margin-top: auto; display: flex; justify-content: space-between; padding: .6rem .9rem; border-top: 1px solid var(--p-line); font-size: 12px; color: var(--p-dim); }

/* Widget kinds */
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.kind { background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; }
.kind p { color: var(--dim); font-size: .95rem; }
.kind pre.code { margin-top: auto; font-size: .78rem; }
.kind .tag { display: inline-block; margin-bottom: .8rem; align-self: flex-start; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.steps li { border-top: 2px solid var(--line); padding-top: 1rem; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font: 600 .8rem ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent); margin-bottom: .5rem; }
.steps li:first-child { border-top-color: var(--accent); }
.steps p { color: var(--dim); font-size: .95rem; }

@media (max-width: 960px) {
  .b-view { grid-template-columns: minmax(0, 1fr); }
  .b-page { display: none; }
  .probe { border-left: 0; box-shadow: none; }
  .kinds, .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 600px) and (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
