/* TerminVox landing. A near-black page so the app (its real colors) is the lit object. Blue = action, amber = "waiting for you" only. */
/* Fonts are self-hosted (OFL, latin subset): no requests to Google. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
:root {
  --page: #0d0e10;
  --raise: #141518;
  --line: rgb(var(--tint) / 0.08);
  --line-2: rgb(var(--tint) / 0.14);
  --fg: #f2f3f5;
  --fg-2: #9a9da4;
  --fg-3: #7d8088;
  --blue: #3574f0;
  --blue-hi: #4d86f7;
  --link: #8fb4ff;
  --amber: #f2c55c;
  --tint: 255 255 255; /* what overlays and hairlines are mixed from */
  --shade: 0.85; /* shadow strength */
  --term-fg: #c9ccd1;
  --win: #17181b;
  --win-bar: #26282b;
  --scroll: #3a3c41;
  /* the app's own tokens (src/routes/+page.svelte) */
  --app-bg: #1e1f22;
  --app-panel: #2b2d30;
  --app-border: #393b40;
  --app-hover: #35373b;
  --app-selected: #2e436e;
  --app-fg: #dfe1e5;
  --app-muted: #8c8f94;
  --ok: #5fb865;
  --busy: #6aa0f7;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --w: min(1160px, 100% - 2 * clamp(16px, 4vw, 40px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
/* Light mode follows the visitor's system. The window in the hero switches too: it is the app's own light palette. */
/* light: the system setting, unless the visitor picked a theme with the header switch (theme.js) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --page: #f5f6f8;
    --raise: #ffffff;
    --fg: #16181d;
    --fg-2: #555a64;
    --fg-3: #6f7480;
    --link: #2a5fd0;
    --amber: #e0a100;
    --tint: 0 0 0;
    --shade: 0.28;
    --term-fg: #3b3f46;
    --win: #ffffff;
    --win-bar: #eceef1;
    --scroll: #c5c8ce;
    --app-bg: #ffffff;
    --app-panel: #f3f4f6;
    --app-border: #dfe1e5;
    --app-hover: #e6e8ec;
    --app-selected: #d4e2ff;
    --app-fg: #1f2329;
    --app-muted: #6c707e;
    --ok: #2f9e4a;
    --busy: #4a86f7;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --page: #f5f6f8;
  --raise: #ffffff;
  --fg: #16181d;
  --fg-2: #555a64;
  --fg-3: #6f7480;
  --link: #2a5fd0;
  --amber: #e0a100;
  --tint: 0 0 0;
  --shade: 0.28;
  --term-fg: #3b3f46;
  --win: #ffffff;
  --win-bar: #eceef1;
  --scroll: #c5c8ce;
  --app-bg: #ffffff;
  --app-panel: #f3f4f6;
  --app-border: #dfe1e5;
  --app-hover: #e6e8ec;
  --app-selected: #d4e2ff;
  --app-fg: #1f2329;
  --app-muted: #6c707e;
  --ok: #2f9e4a;
  --busy: #4a86f7;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  scrollbar-color: var(--scroll) var(--page);
}
body {
  margin: 0;
  background: var(--page);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection {
  background: var(--app-selected);
  color: var(--fg);
}
a {
  color: var(--link);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--fg);
}
:focus-visible {
  outline: 2px solid var(--blue-hi);
  outline-offset: 3px;
  border-radius: 4px;
}
code,
kbd,
pre {
  font-family: var(--mono);
  font-variant-ligatures: none;
}
code,
kbd {
  font-size: 0.84em;
}
code {
  background: rgb(var(--tint) / 0.07);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}
kbd.key {
  display: inline-block;
  padding: 0 0.45em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: rgb(var(--tint) / 0.05);
  color: var(--fg);
  line-height: 1.55;
  white-space: nowrap;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  line-height: 1.08;
}
h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
p {
  margin: 0;
  text-wrap: pretty;
}

.top,
main > section,
.foot {
  width: var(--w);
  margin-inline: auto;
}
main > section + section {
  margin-top: clamp(96px, 12vw, 168px);
}

/* ---- header ---- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.top nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 30px);
}
.top nav a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}
.top nav a:hover {
  color: var(--fg);
}
.top nav .gh {
  color: var(--fg);
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  transition: background-color 0.15s;
}
.top nav .gh:hover {
  background: rgb(var(--tint) / 0.06);
}
#theme {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--fg-2);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
#theme:hover {
  color: var(--fg);
  background: rgb(var(--tint) / 0.06);
}

/* ---- hero ---- */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 84px);
  text-align: center;
}
h1 {
  max-width: 13em;
  margin-inline: auto;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.lede {
  max-width: 38em;
  margin: 24px auto 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--fg-2);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.download,
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s var(--ease);
}
.download {
  background: var(--blue);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 1px 2px rgb(0 0 0 / 0.5), 0 10px 30px -10px rgb(53 116 240 / 0.7);
}
.download:hover {
  background: var(--blue-hi);
  color: #fff;
}
.ghost {
  color: var(--fg);
  border: 1px solid var(--line-2);
  background: rgb(var(--tint) / 0.03);
}
.ghost:hover {
  background: rgb(var(--tint) / 0.08);
}
.download:active,
.ghost:active {
  transform: translateY(1px);
}
.fine {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--fg-3);
}
.fine a {
  color: var(--fg-2);
}

/* the stage: light behind the window, the window itself */
.stage {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
}
.stage::before {
  content: "";
  position: absolute;
  /* no wider than the window: a wider box scrolls the page sideways on phones, and clipping the hero cuts the window's shadow */
  inset: -14% 0 30%;
  background: radial-gradient(58% 60% at 50% 40%, rgb(53 116 240 / 0.3), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hint {
  margin: 18px auto 0;
  font-size: 0.9rem;
  color: var(--fg-3);
}

/* ---- the app, recreated from its own styles ---- */
.app {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--app-bg);
  color: var(--app-fg);
  font: 13px/1.45 var(--ui);
  text-align: left;
  box-shadow:
    0 0 0 1px rgb(var(--tint) / 0.1),
    0 2px 4px rgb(0 0 0 / calc(var(--shade) / 2)),
    0 40px 100px -30px rgb(0 0 0 / var(--shade));
}
.app button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.chrome {
  display: flex;
  align-items: center;
  height: 32px;
  padding-left: 12px;
  background: var(--app-panel);
  border-bottom: 1px solid var(--app-border);
  color: var(--app-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.lights {
  display: flex;
  gap: 8px;
  margin-right: 14px;
}
.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;
}
.body {
  display: grid;
  grid-template-columns: 232px 1fr;
  height: clamp(420px, 44vw, 540px);
}
.side {
  background: var(--app-panel);
  border-right: 1px solid var(--app-border);
}
.side .head {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px 6px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--app-muted);
}
.group,
.term {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 26px;
  padding: 0 8px 0 10px;
  white-space: nowrap;
}
.group {
  font-weight: 600;
  margin-top: 4px;
}
.chev {
  width: 12px;
  font-size: 10px;
  color: var(--app-muted);
}
.app .term,
.mini-side .term {
  padding-left: 28px;
}
.app .term {
  transition: background-color 0.12s;
}
.app .term:hover {
  background: var(--app-hover);
}
:is(.app, .mini-app) .term.active {
  background: var(--app-selected);
}
.term em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  line-height: 14px;
  color: var(--app-muted);
  border: 1px solid var(--app-border);
  border-radius: 3px;
  padding: 0 4px;
}
.badge {
  margin-left: auto;
  background: var(--amber);
  color: #1e1f22;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 6px;
}
.open {
  width: 15px;
  height: 15px;
  margin-left: auto;
  fill: none;
  stroke: var(--app-muted);
}
.badge:not([hidden]) + .open {
  margin-left: 4px;
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tabs {
  display: flex;
  height: 34px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--app-panel);
  border-bottom: 1px solid var(--app-border);
}
:is(.app, .mini-app) .tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px 0 12px;
  color: var(--app-muted);
  border-right: 1px solid var(--app-border);
  white-space: nowrap;
  transition: background-color 0.12s, color 0.12s;
}
:is(.app, .mini-app) .tab:hover {
  background: var(--app-hover);
}
:is(.app, .mini-app) .tab.shown {
  color: var(--app-fg);
  box-shadow: inset 0 -2px var(--app-muted);
}
:is(.app, .mini-app) .tab.active {
  color: var(--app-fg);
  background: var(--app-bg);
  box-shadow: inset 0 -2px var(--blue);
}
.plus {
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: var(--app-muted);
}
.panes {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.pane {
  min-width: 0;
  overflow: hidden;
}
.pane + .pane {
  border-left: 1px solid var(--app-border);
}
.screen {
  margin: 0;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--term-fg);
}
.screen:not([hidden]) {
  animation: show 0.25s var(--ease);
}
@keyframes show {
  from {
    opacity: 0;
  }
}
pre .c,
pre b {
  color: var(--app-fg);
}
pre .m {
  color: var(--app-muted);
}
pre .w {
  color: var(--amber);
}
pre .b,
pre .p {
  color: var(--busy);
}
pre .ok {
  color: var(--ok);
}
.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: text-bottom;
  background: var(--app-fg);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* status dots, as in the app */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--app-muted);
}
.dot.idle {
  background: var(--ok);
  border-color: var(--ok);
}
.dot.busy {
  background: var(--busy);
  border-color: var(--busy);
  animation: pulse 1s ease-in-out infinite;
}
.dot.attention {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}
.dot.exited {
  background: none;
  border-color: #c4314b;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

/* ---- the mess ---- */
.mess {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
/* the tilted windows reach past the screen edge on phones: clip them here,
   because overflow-x on body doesn't stop sideways scrolling on iOS */
.mess {
  overflow-x: clip;
}
.pile {
  position: relative;
  aspect-ratio: 5 / 4;
}
.win {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 40%;
  rotate: var(--r);
  border-radius: 8px;
  overflow: hidden;
  background: var(--win);
  box-shadow: 0 0 0 1px var(--line-2), 0 16px 40px -12px rgb(0 0 0 / var(--shade));
  font: 11px var(--ui);
}
.win b {
  display: block;
  padding: 5px 0;
  text-align: center;
  font-weight: 500;
  color: var(--fg-2);
  background: var(--win-bar);
}
.win pre {
  margin: 0;
  padding: 8px 10px 44px;
  font-size: 10.5px;
  color: var(--fg-3);
}
.mess-text p {
  margin-top: 18px;
  color: var(--fg-2);
  max-width: 30em;
}
.mess-text p + p {
  color: var(--fg);
}

/* ---- features ---- */
.features h2,
.agents h2,
.keys h2 {
  margin-bottom: 32px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.f {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  border-radius: 16px;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.f-wide {
  grid-column: span 3;
}
.f-full {
  grid-column: 1 / -1;
  gap: 10px;
}
.f p {
  margin-top: 8px;
  color: var(--fg-2);
  font-size: 1rem;
  max-width: 34em;
}
.f-full p {
  margin-top: 0;
  max-width: 52em;
}
.f-art {
  margin: auto -28px -28px 28px;
  border-radius: 10px 0 0 0;
  background: var(--app-bg);
  box-shadow: 0 0 0 1px var(--app-border);
  color: var(--app-fg);
  font: 13px/1.45 var(--ui);
}
.mini-app {
  display: grid;
  grid-template-columns: 210px 1fr;
  overflow: hidden;
}
.mini-side {
  background: var(--app-panel);
  padding: 8px 0 14px;
  border-right: 1px solid var(--app-border);
}
.mini-main {
  min-width: 0;
}
.mini-main pre {
  margin: 0;
  padding: 12px 14px;
  font: 12px/1.7 var(--mono);
  color: var(--term-fg);
  white-space: pre;
  overflow: hidden;
}
.mini-side .term em {
  margin-right: 20px;
}
.renaming span {
  padding: 1px 4px;
  margin-left: -5px;
  background: var(--app-bg);
  border: 1px solid var(--blue);
  border-radius: 3px;
  min-width: 150px;
}
.caret {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--app-fg);
  animation: blink 1.1s steps(1) infinite;
}
.mini-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.mini-split pre,
.mini-term {
  margin: 0;
  padding: 14px 16px 18px;
  font: 12px/1.7 var(--mono);
  color: var(--term-fg);
  white-space: pre;
  overflow: hidden;
}
.mini-split pre + pre {
  border-left: 1px solid var(--app-border);
}
pre.mini-term {
  margin: auto -28px -28px 28px;
}
/* a full-width card: text on the left, picture on the right */
.f-row {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}
.f-row .f-text {
  flex: 2;
}
.f-row .f-art {
  flex: 3;
  min-width: 0;
  margin: 0 -28px -28px 0;
}
.mini-diff {
  overflow: hidden;
  font: 12px/1.7 var(--mono);
  color: var(--term-fg);
}
.mini-diff .d-head,
.mini-diff .d-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  white-space: nowrap;
  background: var(--app-panel);
  border-bottom: 1px solid var(--app-border);
}
.mini-diff .d-head {
  font: 13px/1.45 var(--ui);
  color: var(--app-fg);
}
.mini-diff .d-file {
  border-top: 1px solid var(--app-border);
}
.mini-diff .pill {
  padding: 0 7px;
  border-radius: 999px;
  font: 11px/1.6 var(--ui);
  box-shadow: inset 0 0 0 1px var(--app-border);
}
.mini-diff .ok {
  color: var(--ok);
}
.mini-diff .bad {
  color: #e5534b;
}
.mini-diff .d-file .ok,
.mini-diff .d-head .ok {
  margin-left: auto;
}
.mini-diff .ok + .bad {
  margin-left: -2px;
}
.mini-diff pre {
  margin: 0;
  font: inherit;
  white-space: pre;
  overflow: hidden;
}
.mini-diff .l {
  display: block;
  padding: 0 14px 0 0;
}
.mini-diff .l i {
  display: inline-block;
  width: 3.2em;
  padding-right: 0.8em;
  text-align: right;
  font-style: normal;
  opacity: 0.55;
}
.mini-diff .add {
  background: rgb(95 184 101 / 0.18);
}
.mini-diff .del {
  background: rgb(229 83 75 / 0.18);
}
.legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: auto 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.95rem;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend .dot {
  width: 10px;
  height: 10px;
}

/* ---- agents ---- */
.agents > p,
.which {
  margin: -20px 0 28px;
  color: var(--fg-2);
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
th {
  font-weight: 500;
  color: var(--fg-3);
  font-size: 0.88rem;
  border-bottom-color: var(--line-2);
}
td:first-child {
  font-weight: 600;
}
td:last-child {
  color: var(--fg-2);
}

/* ---- shortcuts ---- */
.which button {
  font: inherit;
  color: var(--link);
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
#keylist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0 48px;
  margin: 0;
}
#keylist div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
#keylist dt {
  color: var(--fg-2);
}
#keylist dd {
  margin: 0;
  text-align: right;
}

/* ---- why + faq: heading left, content right ---- */
.why,
.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 24px 48px;
}
.why blockquote {
  margin: 0;
}
.why blockquote p {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.why footer {
  margin-top: 20px;
  color: var(--fg-2);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-weight: 400;
  color: var(--fg-3);
  transition: rotate 0.2s var(--ease);
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq details p {
  margin: -4px 0 20px;
  color: var(--fg-2);
  max-width: 38em;
}

/* ---- end ---- */
.end {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: clamp(48px, 8vw, 96px) 24px;
  border-radius: 24px;
  text-align: center;
  background: radial-gradient(60% 90% at 50% 110%, rgb(53 116 240 / 0.22), transparent 70%), var(--raise);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---- footer ---- */
.foot {
  display: flex;
  flex-wrap: wrap; /* one line when it fits: links left, copyright right; otherwise the copyright drops below */
  justify-content: space-between;
  gap: 6px 32px;
  margin-top: 64px;
  padding: 28px 0 40px;
  font-size: 0.9rem;
  color: var(--fg-3);
}
.foot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.foot a {
  color: var(--fg-2);
}
.foot button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--fg-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---- text pages (privacy) ---- */
.doc {
  width: min(42em, var(--w));
  margin: clamp(32px, 6vw, 72px) auto 0;
}
.doc h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}
.doc h2 {
  margin: 44px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.doc p,
.doc ul {
  margin: 12px 0 0;
  color: var(--fg-2);
}
.doc ul {
  padding-left: 1.2em;
}
.doc li + li {
  margin-top: 8px;
}
.doc b {
  color: var(--fg);
}
.doc .updated {
  color: var(--fg-3);
  font-size: 0.9rem;
}

/* ---- cookie choice: a corner box that never blocks the page; both buttons weigh the same ---- */
.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10;
  width: min(340px, 100vw - 32px);
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--raise);
  box-shadow: 0 12px 40px -12px rgb(0 0 0 / 0.4);
  font-size: 0.9rem;
  color: var(--fg-2);
}
.consent h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--fg);
}
.consent div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.consent button {
  padding: 9px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgb(var(--tint) / 0.06);
  font: inherit;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
}
.consent button:hover {
  background: rgb(var(--tint) / 0.12);
}

/* ---- smaller screens ---- */
@media (max-width: 900px) {
  .panes {
    grid-template-columns: 1fr;
  }
  .pane + .pane {
    display: none;
  }
  .mess,
  .why,
  .faq,
  .grid {
    grid-template-columns: 1fr;
  }
  .f,
  .f-wide {
    grid-column: auto;
  }
  .f-row {
    flex-direction: column;
  }
  .f-row .f-art {
    margin: auto -28px -28px 28px;
  }
  .top nav a:not(.gh) {
    display: none;
  }
}
@media (max-width: 600px) {
  /* on a phone the whole window is drawn 560px wide and scaled to fit (app.js sets --z), so it still
     looks like the app: sidebar, tabs and one terminal */
  .app {
    width: 560px;
    zoom: var(--z, 0.61);
  }
  .body {
    grid-template-columns: 196px 1fr;
    height: 340px;
  }
  /* five tabs don't fit beside the sidebar; these two stay reachable from it */
  /* the card pictures are drawn at app size; scaled down they read as the app, not a close-up */
  .f-art {
    zoom: 0.78;
  }
  .tab[data-t="dev"],
  .tab[data-t="docs"] {
    display: none;
  }
  .hint {
    display: none;
  }
  #keylist {
    grid-template-columns: 1fr;
  }
  .win {
    width: 46%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* table on narrow screens: commands stay on one line, detection column drops under the agent name */
td code {
  white-space: nowrap;
}
@media (max-width: 600px) {
  th:last-child,
  td:last-child {
    display: none;
  }
}

/* pile positions (in CSS, not style attributes: the site's CSP forbids inline styles) */
.win:nth-child(1) {
  --x: 0%;
  --y: 6%;
  --r: -4deg;
}
.win:nth-child(2) {
  --x: 30%;
  --y: 0%;
  --r: 3deg;
}
.win:nth-child(3) {
  --x: 56%;
  --y: 12%;
  --r: -2deg;
}
.win:nth-child(4) {
  --x: 10%;
  --y: 34%;
  --r: 2deg;
}
.win:nth-child(5) {
  --x: 42%;
  --y: 30%;
  --r: -3deg;
}
.win:nth-child(6) {
  --x: 60%;
  --y: 48%;
  --r: 4deg;
}
.win:nth-child(7) {
  --x: 4%;
  --y: 58%;
  --r: -1deg;
}
.win:nth-child(8) {
  --x: 32%;
  --y: 62%;
  --r: 2deg;
}
.which b {
  color: var(--fg);
  font-weight: 500;
}
.sponsor {
  width: var(--w);
  margin: 72px auto 0;
  text-align: center;
  color: var(--fg-2);
}
/* the drawn app windows are pictures: their text should not select */
.app,
.f-art,
.pile {
  -webkit-user-select: none;
  user-select: none;
}
