/* ---------- theme ---------- */

:root {
  --bg: #0c1819;
  --bg-2: #101f21;
  --panel: #132426;
  --panel-2: #16292b;
  --line: #1d3437;
  --line-soft: #192d30;
  --text: #e7efec;
  --mute: #8ba4a3;
  --dim: #627e7e;
  --teal: #3bbdae;
  --teal-btn: #15807a;
  --teal-btn-h: #1a948d;
  --on-teal: #f1fbf9;
  --red: #e37a66;
  --amber: #d6a85c;
  --dot-r: #d9655b;
  --dot-y: #d6a85c;
  --dot-g: #58b37b;
  --glow: radial-gradient(60% 55% at 70% 18%, rgba(59, 189, 174, 0.10), transparent 70%);
  --shadow: 0 26px 64px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
}

:root[data-theme="light"] {
  --bg: #f3f7f5;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f6faf8;
  --line: #dde8e4;
  --line-soft: #e8f0ed;
  --text: #0f2123;
  --mute: #556c6c;
  --dim: #7b9292;
  --teal: #0f6d68;
  --teal-btn: #15807a;
  --teal-btn-h: #0f6d68;
  --on-teal: #ffffff;
  --red: #c2503d;
  --amber: #a3761f;
  --glow: radial-gradient(60% 55% at 70% 18%, rgba(15, 109, 104, 0.07), transparent 70%);
  --shadow: 0 22px 54px rgba(15, 42, 44, 0.12);
  --shadow-sm: 0 1px 4px rgba(15, 42, 44, 0.08);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f7f5;
    --bg-2: #ffffff;
    --panel: #ffffff;
    --panel-2: #f6faf8;
    --line: #dde8e4;
    --line-soft: #e8f0ed;
    --text: #0f2123;
    --mute: #556c6c;
    --dim: #7b9292;
    --teal: #0f6d68;
    --teal-btn: #15807a;
    --teal-btn-h: #0f6d68;
    --on-teal: #ffffff;
    --red: #c2503d;
    --amber: #a3761f;
    --glow: radial-gradient(60% 55% at 70% 18%, rgba(15, 109, 104, 0.07), transparent 70%);
    --shadow: 0 22px 54px rgba(15, 42, 44, 0.12);
    --shadow-sm: 0 1px 4px rgba(15, 42, 44, 0.08);
  }
}

/* ---------- base ---------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Archivo, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg.i { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -0.125em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 5px; }

/* ---------- top bar ---------- */

.top {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}
.top .wrap { display: flex; align-items: center; gap: 14px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 600; letter-spacing: -0.012em; text-decoration: none; font-size: 16px; white-space: nowrap; }
.brand img { width: 27px; height: 27px; border-radius: 7px; box-shadow: var(--shadow-sm); }

.links { display: flex; align-items: center; gap: 2px; }
.links .link { color: var(--mute); text-decoration: none; font-size: 14.5px; padding: 7px 11px; border-radius: 8px; white-space: nowrap; }
.links .link:hover { color: var(--text); background: var(--panel-2); }
.links .link[aria-current="page"] { color: var(--text); background: var(--panel-2); }

.tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--mute); cursor: pointer; font-size: 15px; padding: 0;
}
.icon-btn:hover { color: var(--text); border-color: var(--dim); }
.icon-btn .moon { display: none; }
:root[data-theme="light"] .icon-btn .moon { display: block; }
:root[data-theme="light"] .icon-btn .sun { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-btn .moon { display: block; }
  :root:not([data-theme="dark"]) .icon-btn .sun { display: none; }
}

.star {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  text-decoration: none; font-size: 14px; background: var(--panel);
}
.star span { display: flex; align-items: center; gap: 7px; padding: 0 11px; height: 34px; color: var(--mute); }
.star .num { border-left: 1px solid var(--line); font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--text); min-width: 40px; justify-content: center; }
.star:hover { border-color: var(--dim); }
.star:hover span { color: var(--text); }
.star:hover .i.sstar { color: var(--amber); }

/* the menu that takes over once the links no longer fit */

.menu { display: none; position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { color: var(--text); border-color: var(--dim); background: var(--panel-2); }
.sheet {
  position: absolute; right: 0; top: calc(100% + 11px);
  width: 232px; padding: 8px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 13px; box-shadow: var(--shadow);
}
.sheet a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 9px; color: var(--mute); text-decoration: none; font-size: 15px; }
.sheet a:hover { background: var(--panel-2); color: var(--text); }
.sheet a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.sheet .sep { height: 1px; background: var(--line-soft); margin: 8px 6px; }
.sheet .btn { justify-content: center; margin-top: 4px; color: var(--on-teal); }
.sheet .btn:hover { color: var(--on-teal); }

@media (max-width: 1060px) { .links { display: none; } .menu { display: block; } }
@media (max-width: 900px) { .tools .star { display: none; } }
@media (max-width: 580px) { .tools .dl { display: none; } }
@media (max-width: 520px) { .panel-bar .what { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 19px; border-radius: 9px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.btn-main { background: var(--teal-btn); color: var(--on-teal); box-shadow: var(--shadow-sm); }
.btn-main:hover { background: var(--teal-btn-h); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--dim); }
.btn-lg { padding: 14px 25px; font-size: 16.5px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- hero ---------- */

.hero { padding: 96px 0 80px; background: var(--glow); }
.hero .wrap { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 64px; align-items: center; }
h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.03; letter-spacing: -0.034em; font-weight: 700; margin: 0 0 20px; }
.lede { font-size: 18.5px; color: var(--mute); margin: 0 0 32px; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.specs { margin-top: 26px; font-size: 13.5px; color: var(--dim); font-family: "IBM Plex Mono", monospace; line-height: 1.9; }
.specs b { color: var(--mute); font-weight: 500; }

/* ---------- page header (inner pages) ---------- */

.page-head { padding: 54px 0 40px; border-bottom: 1px solid var(--line); background: var(--glow); }
.crumbs { font-size: 13.5px; color: var(--dim); margin: 0 0 16px; display: flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.page-head h1 { font-size: clamp(31px, 4vw, 44px); margin-bottom: 14px; }
.page-head .lede { font-size: 18px; max-width: 62ch; margin-bottom: 0; }

/* ---------- app panel ---------- */

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.panel-bar { display: flex; align-items: center; gap: 13px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--dot-r); }
.dots i:nth-child(2) { background: var(--dot-y); }
.dots i:nth-child(3) { background: var(--dot-g); }
.panel-bar .what { font-size: 13px; color: var(--mute); font-family: "IBM Plex Mono", monospace; }
.panel-bar .count { margin-left: auto; font-size: 12.5px; color: var(--dim); font-family: "IBM Plex Mono", monospace; }

.rows { padding: 7px 0 5px; }
.row { display: grid; grid-template-columns: 15px 1fr auto; align-items: center; gap: 11px; padding: 6px 17px; font-family: "IBM Plex Mono", monospace; font-size: 13.5px; opacity: 0; transform: translateY(5px); }
.row.in { opacity: 1; transform: none; transition: opacity 0.34s ease, transform 0.34s ease; }
.row .i { color: var(--teal); font-size: 13px; }
.row .path { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .size { color: var(--dim); font-size: 12.5px; }
.row.asset .path { color: var(--mute); }
.row.fail .i, .row.fail .size { color: var(--red); }
.panel-foot { border-top: 1px solid var(--line); padding: 12px 17px; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--teal); opacity: 0; display: flex; align-items: center; gap: 9px; }
.panel-foot.in { opacity: 1; transition: opacity 0.4s ease; }
@media (prefers-reduced-motion: reduce) { .row, .panel-foot { opacity: 1; transform: none; transition: none; } }

/* ---------- sections ---------- */

section { border-top: 1px solid var(--line); padding: 72px 0; scroll-margin-top: 66px; }
.page-head + section { padding-top: 48px; }
section:first-of-type { border-top: none; }
h2 { font-size: clamp(25px, 3vw, 33px); letter-spacing: -0.024em; line-height: 1.14; font-weight: 600; margin: 0 0 14px; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.016em; margin: 0 0 8px; }
.section-lede { color: var(--mute); max-width: 56ch; margin: 0 0 44px; font-size: 17px; }

/* prose for text-heavy pages */

.prose { max-width: 70ch; }
/* pages put both classes on one div: keep the wrap's width, narrow the lines inside it */
.wrap.prose { max-width: 1120px; }
.wrap.prose > * { max-width: 70ch; }
.prose p { color: var(--mute); font-size: 16.5px; margin: 0 0 18px; }
.prose p strong { color: var(--text); font-weight: 500; }
.prose h2 { margin-top: 46px; }
.prose h3 { margin-top: 32px; }
.prose ul, .prose ol { color: var(--mute); font-size: 16.5px; padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose li strong { color: var(--text); font-weight: 500; }
.prose a:not(.btn) { color: var(--teal); text-decoration-color: color-mix(in srgb, var(--teal) 40%, transparent); text-underline-offset: 3px; }

/* jobs */

.job { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 52px; padding: 32px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.job:first-of-type { border-top: none; }
.job h3 { display: flex; align-items: center; gap: 10px; }
.job h3 .i { color: var(--teal); font-size: 17px; }
.job p { margin: 0; color: var(--mute); font-size: 15.5px; max-width: 38ch; }
.job .more { display: inline-block; margin-top: 12px; font-size: 14.5px; color: var(--teal); text-decoration: none; }
.job .more:hover { text-decoration: underline; text-underline-offset: 3px; }

.sample {
  font-family: "IBM Plex Mono", monospace; font-size: 13px; line-height: 1.95;
  color: var(--mute); background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 17px 19px; overflow-x: auto;
}
.sample b { color: var(--text); font-weight: 500; }
.sample .c { color: var(--teal); }
.sample .r { color: var(--red); }

/* cards */

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card h3 .i { color: var(--teal); font-size: 15px; }
.card p { margin: 0; color: var(--mute); font-size: 15px; }
.card a { color: var(--teal); text-decoration: none; }

/* compare */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.compare figure { margin: 0; }
.compare figcaption { font-size: 14px; color: var(--mute); margin-bottom: 11px; display: flex; align-items: center; gap: 8px; }
.compare figcaption .i { font-size: 14px; color: var(--red); }
.compare figure.good figcaption .i { color: var(--teal); }

/* tables */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 330px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-weight: 500; color: var(--dim); font-size: 13.5px; }
td.flag { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--teal); white-space: nowrap; }
td:first-child { color: var(--text); }
td.says { color: var(--mute); }
td.yes { color: var(--teal); }
td.no { color: var(--dim); }
@media (max-width: 760px) { td.says, th.says { display: none; } }

.command {
  margin-top: 26px; font-family: "IBM Plex Mono", monospace; font-size: 13px;
  color: var(--mute); background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 17px 19px; overflow-x: auto; white-space: pre;
}
.command .c { color: var(--teal); }

/* steps */

ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; max-width: 64ch; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 18px; padding: 19px 0; border-top: 1px solid var(--line-soft); }
ol.steps li:first-child { border-top: none; }
ol.steps li::before { content: counter(s); font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--teal); padding-top: 3px; }
ol.steps h3 { margin: 0 0 4px; font-size: 17px; }
ol.steps p { margin: 0; color: var(--mute); font-size: 15.5px; }

code {
  font-family: "IBM Plex Mono", monospace; font-size: 0.88em;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 6px; color: var(--text);
}

/* shot */

.shot { margin: 40px 0 0; }
.shot img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.shot figcaption { margin-top: 15px; color: var(--dim); font-size: 14px; }

/* faq */

details { border-top: 1px solid var(--line-soft); padding: 17px 0; max-width: 72ch; }
details:first-of-type { border-top: none; }
summary { cursor: pointer; font-size: 16.5px; font-weight: 500; list-style: none; display: flex; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary .i { color: var(--teal); font-size: 13px; transition: transform 0.2s ease; }
section details[open] summary .i { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { summary .i { transition: none; } }
.menu summary .i { transition: none; }
details p { color: var(--mute); margin: 11px 0 0 25px; font-size: 15.5px; max-width: 70ch; }
details p + p { margin-top: 12px; }

/* close */

.close { text-align: center; padding: 96px 0; border-top: 1px solid var(--line); background: var(--glow); }
.close img.mark { width: 62px; height: 62px; border-radius: 15px; box-shadow: var(--shadow); margin-bottom: 26px; }
.close h2 { margin-bottom: 10px; }
.close p { color: var(--mute); margin: 0 auto 32px; max-width: 46ch; }
.close .actions { justify-content: center; }

/* next links */

.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 10px; }
.next a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); text-decoration: none; }
.next a:hover { border-color: var(--dim); }
.next a b { display: block; font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.next a span { color: var(--mute); font-size: 14.5px; }

/* footer */

footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--dim); font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
footer h4 { font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 12px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 8px; }
footer a { color: var(--mute); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .about { color: var(--mute); max-width: 34ch; margin: 0; }
footer .about img { width: 30px; height: 30px; border-radius: 8px; margin-bottom: 12px; display: block; }
footer .bottom { border-top: 1px solid var(--line-soft); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer .bottom .right { margin-left: auto; display: flex; gap: 22px; align-items: center; }
footer .bottom .right a { display: inline-flex; align-items: center; gap: 7px; }

@media (max-width: 900px) {
  .hero { padding: 64px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .lede { max-width: none; }
  .job { grid-template-columns: 1fr; gap: 20px; }
  .compare { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
}
