/* The page borrows the app's own surfaces and graph colours (src/theme.rs). */
:root {
  --content: #fafafa;
  --sidebar: #ebebed;
  --card: #ffffff;
  --ink: #1d1d1f;
  --dim: #5f5f66;
  --border: rgb(0 0 0 / 8%);
  --selected: rgb(0 0 0 / 8%);
  --bar: rgb(250 250 250 / 72%);
  --accent: #1c71d8;
  --on-accent: #ffffff;
  --cpu: #3584e4;
  --memory: #c52f90;
  --gpu: #ed333b;
  --drive: #ff7800;
  --network: #259aab;
  --battery: #33d17a;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --content: #222226;
    --sidebar: #2e2e32;
    --card: #36363a;
    --ink: #f2f2f4;
    --dim: #a4a4ab;
    --border: rgb(255 255 255 / 8%);
    --selected: rgb(255 255 255 / 9%);
    --bar: rgb(34 34 38 / 72%);
    --accent: #78aeed;
    --on-accent: #10233d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --content: #222226;
  --sidebar: #2e2e32;
  --card: #36363a;
  --ink: #f2f2f4;
  --dim: #a4a4ab;
  --border: rgb(255 255 255 / 8%);
  --selected: rgb(255 255 255 / 9%);
  --bar: rgb(34 34 38 / 72%);
  --accent: #78aeed;
  --on-accent: #10233d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--content);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cpu); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.sprite { display: none; }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

main, .foot { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }

/* Header as a macOS menu bar, with the app's live menu-bar stats. */
.menubar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 8px max(20px, calc((100% - 1040px) / 2));
  background: var(--bar);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 650; text-decoration: none; }
.stats { display: flex; gap: 14px; margin-left: auto; font: 13px/1 var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.stats > span { display: flex; align-items: center; gap: 5px; }
.stats > span:first-child .i { color: var(--cpu); }
.stats > span:last-child .i { color: var(--memory); }
.menubar nav { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.btn.quiet { color: var(--ink); }
.btn.quiet:hover { background: var(--selected); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }

.intro { max-width: 720px; padding-block: 64px 44px; }
h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 750;
  margin: 0 0 20px;
}
.lede { font-size: 1.2rem; color: var(--dim); margin: 0 0 28px; max-width: 34em; }
.get {
  display: flex; align-items: stretch;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 6%);
}
.cmd {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  padding: 13px 16px; font: 14px/1.4 var(--mono);
}
.copy {
  display: flex; align-items: center; gap: 6px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--selected); border: 0; border-left: 1px solid var(--border);
  border-radius: 0 11px 11px 0; padding: 0 16px; cursor: pointer;
}
.copy:hover { background: var(--border); }
.copy.done { color: var(--battery); }
.aside { font-size: 15px; color: var(--dim); margin: 14px 0 0; }

/* A Resources window: title bar, sidebar of pages, the chosen page on the right. */
.window {
  background: var(--content);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / 35%), 0 0 0 0.5px rgb(0 0 0 / 10%);
}
.titlebar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 44px; padding-inline: 14px;
  background: var(--sidebar); border-bottom: 1px solid var(--border);
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.title { font-size: 14px; font-weight: 650; }
.theme {
  justify-self: end; display: flex; padding: 2px; gap: 2px;
  background: var(--selected); border-radius: 8px;
}
.theme button {
  display: grid; place-items: center; width: 30px; height: 24px;
  color: var(--dim); background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.theme button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 15%); }

.panes { display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.side { background: var(--sidebar); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.side button {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  width: 100%; padding: 9px 10px;
  font: inherit; font-size: 15px; text-align: left; color: var(--ink);
  background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.side .row { display: flex; align-items: center; gap: 12px; }
.side .row .i { color: var(--dim); }
.side button:hover { background: var(--border); }
.side button[aria-selected="true"] { background: var(--selected); font-weight: 600; }
.side button[aria-selected="true"] .row .i { color: var(--ink); }
.side .graph { width: 100%; height: 30px; display: block; border-radius: 4px; }
.view { margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.view img { border-radius: 10px; border: 1px solid var(--border); transition: opacity 160ms ease; }
.view img.out { opacity: 0; }
.view figcaption { color: var(--dim); max-width: 40em; min-height: 4.8em; }

/* Demo recording, framed like the screenshots. */
.demo { margin: 0 0 44px; }
.demo video { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--border); }

/* Install: one card, methods separated by hairlines (the app's preferences-group look). */
.install { max-width: 760px; padding-block: 80px 24px; }
h2 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 16px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.methods { background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.method { display: flex; gap: 16px; padding: 20px; }
.method + .method { border-top: 1px solid var(--border); }
.method .body { flex: 1; min-width: 0; }
.method p { margin: 0; }
.method .get { box-shadow: none; background: var(--content); }
.badge {
  width: 40px; height: 40px; padding: 9px; border-radius: 10px;
  background: var(--selected); color: var(--accent);
}
.note { margin-top: 28px; color: var(--dim); }
.note h3 { color: var(--ink); }
.note p { margin: 0; }
pre {
  margin: 10px 0 0; background: var(--content); border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 16px; overflow-x: auto; font: 14px/1.5 var(--mono); color: var(--ink);
}
.note pre { background: var(--card); }

.foot { padding-block: 48px; font-size: 14px; color: var(--dim); border-top: 1px solid var(--border); margin-top: 64px; }
.foot p { margin: 0 0 8px; max-width: 60em; }
.private { display: flex; align-items: center; gap: 6px; }
.private .i { color: var(--battery); }

@media (max-width: 760px) {
  .stats { display: none; }
  .menubar nav { margin-left: auto; }
  .panes { grid-template-columns: minmax(0, 1fr); }
  .side { flex-direction: row; overflow-x: auto; }
  .side button { width: auto; flex: 0 0 auto; }
  .side .graph { display: none; }
  .view { padding: 14px; }
  .method { padding: 16px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view img { transition: none; }
}
