/* Public website — one stylesheet. Same world as the dashboard: quiet, hairlines, one accent. */

:root {
  color-scheme: light dark;
  --accent: #0a6cff;
  --accent-text: #0a6cff;
  --on-accent: #ffffff;
  --text: #1c1c1e;
  --text-2: #6c6c70;
  --bg: #ffffff;
  --bg-2: #f6f6f8;
  --surface: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --ok: #2fa84f;
  --warn: #e09500;
  --danger: #d93a40;
  --idle: #a3a3a8;
  --selection: rgba(10, 108, 255, 0.18);
  --shadow-ctl: 0 1px 1px rgba(0, 0, 0, 0.04);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1040px;
  --gutter: 24px;
  --section: 128px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #1f6fe8;
    --accent-text: #5f9bff;
    --text: #f2f2f4;
    --text-2: #9d9da3;
    --bg: #1f1f21;
    --bg-2: #19191b;
    --surface: #27272a;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --ok: #4cc26a;
    --warn: #e9a63a;
    --danger: #f47176;
    --idle: #8a8a90;
    --selection: rgba(95, 155, 255, 0.3);
    --shadow-ctl: none;
  }
}

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

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-family: var(--font);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, var(--accent-text) 45%, transparent); }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: 36px; line-height: 1.12; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
code, kbd, pre { font-family: var(--mono); font-size: 0.92em; }
code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.08em 0.4em; }
kbd {
  display: inline-block;
  padding: 0.1em 0.5em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  line-height: 1.5;
  white-space: nowrap;
}
pre { margin: 0; white-space: pre-wrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.lead { font-size: 21px; line-height: 1.45; color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.muted { color: var(--text-2); }
.small { font-size: 15px; line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-ctl);
  transition: background-color 140ms, border-color 140ms, color 140ms;
  cursor: pointer;
}
.btn:hover { border-color: var(--text-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); border-color: color-mix(in srgb, var(--accent) 86%, #000); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 15px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- status dot ---------- */

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--idle);
  vertical-align: middle;
  margin-right: 8px;
  position: relative;
  top: -1px;
}
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--danger); }
.dot.accent { background: var(--accent); }

/* ---------- header ---------- */

.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand svg { width: 22px; height: 22px; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--text); }
.site-nav .btn { margin-left: 4px; }

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

.hero { padding-top: 96px; padding-bottom: 32px; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 24px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero-actions .small { color: var(--text-2); }

/* ---------- ledger (the example session) ---------- */

.ledger { margin-top: 72px; }
.ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.ledger-head h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.ledger-head .small { color: var(--text-2); }
.ledger ol { list-style: none; }
.ledger li {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr) 11em;
  gap: 24px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}
.ledger time { font-family: var(--mono); font-size: 14px; color: var(--text-2); }
.ledger .ev { min-width: 0; overflow-wrap: anywhere; }
.ledger .ev code { font-size: 13.5px; }
.ledger .st { white-space: nowrap; color: var(--text-2); }
.ledger li.mark .ev { font-weight: 600; }
.ledger li.held .st { color: var(--text); }
.ledger-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 12px;
  font-size: 14px;
  color: var(--text-2);
}

/* the one authored motion moment: lines land one after another */
.js .ledger li { opacity: 0; transform: translateY(4px); }
.js .ledger li.in { opacity: 1; transform: none; transition: opacity 260ms var(--ease), transform 320ms var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js .ledger li { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

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

.section { padding-top: var(--section); }
.section + .section { border-top: 0; }
.section-head { max-width: 40em; }
.section-head .lead { margin-top: 16px; }
.section-head + * { margin-top: 48px; }

/* two-column prose: heading left, matter right */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 64px;
  align-items: start;
}
.cols .section-head { max-width: none; }
.cols > .section-head + * { margin-top: 0; }

/* grouped rows, like System Settings */
.group { border-top: 1px solid var(--line-strong); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 8px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.row h3 { font-size: 17px; }
.row p { color: var(--text-2); font-size: 16px; line-height: 1.5; }
.row .ctl { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 15px; color: var(--text-2); }

/* mode switch (drawn as the control it is) */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.mode {
  position: relative;
  padding: 20px 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  min-height: 100%;
}
.mode strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.mode p { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.mode.selected { border: 1.5px solid var(--accent); padding: 19.5px 19.5px 21.5px; }
.mode .check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: none;
  align-items: center;
  justify-content: center;
}
.mode.selected .check { display: inline-flex; }
.mode .check svg { width: 12px; height: 12px; }
.modes-note { margin-top: 20px; font-size: 15px; color: var(--text-2); line-height: 2; }
.modes-note .field {
  margin: 0 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

/* approvals: a pending item as it looks in the dashboard */
.after-approval { margin-top: 32px; }
.approval {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  padding: 20px;
}
.approval .what { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.approval .what strong { font-size: 17px; }
.approval .what .small { color: var(--text-2); }
.approval pre { margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--text); }
.approval .acts { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.approval .acts .btn { height: 36px; padding: 0 16px; font-size: 15px; border-radius: 8px; }
.approval .acts .btn { cursor: default; }
.approval .acts .btn.danger { color: var(--danger); }

.risky { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 20px; }
.risky li {
  font-size: 15px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}

/* kill switch */
.kill {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px 32px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
}
.kill .keycap kbd { border: 0; background: none; padding: 0; font-size: inherit; line-height: 1; }
.kill .keycap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 12px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 28px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.kill ul { list-style: none; display: grid; gap: 6px; margin-top: 12px; font-size: 16px; }
.kill li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); margin-right: 10px; position: relative; top: -1px; }

.never-title { margin-top: 40px; }
.never { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-strong); margin-top: 24px; }
.never li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; }
.never li svg { width: 14px; height: 14px; color: var(--text-2); position: relative; top: 1px; }

/* capabilities */
.caps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line-strong); }
.caps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.caps li svg { width: 18px; height: 18px; color: var(--text-2); position: relative; top: 3px; }
.caps li code { font-size: 13.5px; }
.caps li.wide { grid-column: 1 / -1; }
.caps li .small { display: block; color: var(--text-2); margin-top: 2px; }

/* path diagram */
.path { margin-top: 48px; }
.path svg { width: 100%; height: auto; display: block; }
.path .path-tall { display: none; max-width: 350px; margin-inline: auto; }
.path .accent-stroke { stroke: var(--accent); stroke-width: 2; }
.sprite { position: absolute; }
.brand .hand { stroke: #fff; }
.path .cap { margin-top: 16px; font-size: 15px; color: var(--text-2); max-width: 60ch; }

/* install steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { padding-top: 16px; border-top: 1px solid var(--line-strong); }
.steps li strong { display: block; font-size: 17px; font-weight: 600; }
.steps li p { margin-top: 6px; font-size: 16px; color: var(--text-2); }
.steps li .n { display: block; font-family: var(--mono); font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.req { margin-top: 32px; font-size: 15px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* pricing */
.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 64px;
  align-items: start;
  padding: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
}
.price .amount { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.price .amount small { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-2); margin-left: 8px; }
.price .terms { margin-top: 12px; font-size: 17px; color: var(--text-2); max-width: 30em; }
.price .hero-actions { margin-top: 28px; }
.price ul { list-style: none; border-top: 1px solid var(--line-strong); }
.price ul li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.price ul li svg { width: 14px; height: 14px; color: var(--accent-text); position: relative; top: 1px; }
.price ul li .small { display: block; color: var(--text-2); }
.price-note { margin-top: 20px; font-size: 15px; color: var(--text-2); max-width: 60ch; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; color: var(--text-2); transition: transform 180ms var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 0 20px; color: var(--text-2); max-width: 62ch; font-size: 16px; }
.faq .a p + p { margin-top: 0.6em; }

/* closing */
.close { padding-top: var(--section); padding-bottom: 96px; }
.close h2 { max-width: 18ch; }
.close .hero-actions { margin-top: 28px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--text-2); }
.site-foot .wrap { display: grid; gap: 16px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--text-2); }
.site-foot a:hover { color: var(--text); }
.site-foot .legal { max-width: 80ch; }

/* ---------- legal pages ---------- */

.doc { padding-top: 72px; padding-bottom: 96px; }
.doc .wrap { max-width: 680px; }
.doc h1 { font-size: 40px; }
.doc .meta { margin-top: 12px; color: var(--text-2); font-size: 15px; }
.doc h2 { font-size: 21px; margin-top: 48px; }
.doc h2 + p, .doc h2 + ul, .doc h2 + ol { margin-top: 12px; }
.doc p { margin-top: 12px; font-size: 17px; }
.doc ul, .doc ol { margin-top: 12px; padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc .placeholder { background: color-mix(in srgb, var(--warn) 16%, transparent); border-radius: 4px; padding: 0 0.25em; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  :root { --section: 96px; }
  .cols { grid-template-columns: 1fr; gap: 32px; }
  .caps { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .price { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .modes { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; --section: 80px; }
  body { font-size: 16px; }
  h1 { font-size: 36px; letter-spacing: -0.02em; }
  h2 { font-size: 28px; }
  .lead { font-size: 18px; }
  .hero { padding-top: 56px; }
  .hero-actions .btn { width: 100%; }
  .site-head .wrap { height: 56px; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.btn) { display: none; }
  .ledger { margin-top: 48px; }
  .ledger-head { flex-direction: column; gap: 2px; }
  .ledger li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time st" "ev ev"; gap: 4px 16px; padding: 12px 0; }
  .ledger time { grid-area: time; }
  .ledger .st { grid-area: st; }
  .ledger .ev { grid-area: ev; }
  .ledger time { font-size: 13px; }
  .ledger .st { white-space: normal; }
  .ledger li.held .st, .ledger li .st { font-size: 14px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .kill { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .kill .keycap { font-size: 22px; padding: 10px 14px; }
  .path .path-wide { display: none; }
  .path .path-tall { display: block; }
  .price .amount { font-size: 48px; }
  .faq summary { font-size: 17px; padding: 16px 0; }
  .doc h1 { font-size: 32px; }
}

/* download page */
.dl-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 8px; }

/* ---------- app screens ---------- */
.shot.demo { margin: 0 0 40px; }
.shot.demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line-strong); border-radius: 12px; background: #eef1f7; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.shot { margin: 0; }
.shot.wide { grid-column: 1 / -1; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 12px; }
.shot figcaption { margin-top: 12px; color: var(--text-2); font-size: 16px; max-width: 60ch; }
.shot figcaption strong { color: var(--text); font-weight: 600; }
@media (max-width: 720px) { .shots { grid-template-columns: 1fr; } }
.doc figure { margin: 32px 0; }
.doc figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 12px; }
.doc figcaption { margin-top: 8px; color: var(--text-2); font-size: 15px; }
