/* Local Cognitive site: the landing page, the account page and the small pages around them. */

@font-face {
  font-family: Geist;
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --dots: #dde2ea;
  --ink: #10131a;
  --ink-2: #2b323d;
  --muted: #4a5361;
  --muted-2: #6b7482;
  --line: #e3e7ee;
  --line-2: #dfe3ea;
  --card: #ffffff;
  --accent: #2f55c8;
  --accent-ink: #1f3f9e;
  --ok: #337851;
  --ok-bg: #e3f1e8;
  --warn: #a06b16;
  --warn-bg: #fbf4e6;
  --danger: #b42318;
  /* The app's own light theme, for the windows in the motions. */
  --app-bg: #f5f7fa;
  --app-bar: #eef1f5;
  --app-line: #e3e8ee;
  --app-ink: #273140;
  --app-muted: #5f6c7d;
  --app-accent: #466896;
  --app-chip: #e7edf5;
  --font: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
code { font-family: var(--mono); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: #ffffff; font-weight: 500;
}
.skip-link:focus { top: 16px; color: #ffffff; }

/* Header and footer */

.site-header {
  max-width: 1200px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-email { font-size: 14px; color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.is-account { gap: 8px; max-width: 280px; padding: 0 14px 0 6px; border-color: var(--line-2); background: #ffffff; font-size: 14px; }
.btn.is-account:hover { border-color: #c5ccd7; }
.avatar-sm { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--app-chip); color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.account-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.site-footer {
  max-width: 1200px; margin: 0 auto; padding: 120px 24px calc(56px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.site-footer .brand { font-size: 16px; }
.site-footer .brand img { width: 24px; height: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.site-footer nav a, .linklike { color: var(--muted); }
.site-footer nav a:hover, .linklike:hover { color: var(--ink); }
.linklike { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.copyright { font-size: 14px; color: var(--muted-2); }

/* Buttons and links */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-dark { background: var(--ink); color: #ffffff; }
.btn-dark:hover { background: #272c37; color: #ffffff; }
.btn-light { background: #ffffff; color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { border-color: #c5ccd7; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(16, 19, 26, 0.05); color: var(--ink); }
.btn-danger { background: var(--danger); color: #ffffff; }
.btn-danger:hover { background: #962015; color: #ffffff; }
.btn-danger-text { color: var(--danger); }
.btn-lg { height: 52px; padding: 0 22px; border-radius: 12px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; cursor: default; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.link-arrow svg { width: 15px; height: 15px; flex: none; }
.links { display: flex; flex-wrap: wrap; gap: 10px 22px; }

/* Shared type */

.section { max-width: 1200px; margin: 0 auto; padding: 120px 24px 0; }
.eyebrow { margin: 0; font: 13px/1.4 var(--mono); color: var(--accent); }
.h2 { margin: 0; font-size: clamp(32px, 4.4vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; }
.h2-sm { margin: 0; font-size: clamp(28px, 3.6vw, 36px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.copy { display: flex; flex-direction: column; gap: 16px; }
.copy .link-arrow { align-self: flex-start; }
.note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted-2); }
.muted { color: var(--muted-2); }

/* Hero */

.hero {
  max-width: 1200px; margin: 0 auto; padding: 88px 24px 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.hero-kicker { margin: 0; font: 13px/1.4 var(--mono); color: #5a6472; letter-spacing: .02em; }
.hero h1 { margin: 0; max-width: 900px; font-size: clamp(44px, 7.4vw, 76px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
.hero-lead { margin: 0; max-width: 640px; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* App windows in the motions */

.window {
  position: relative; overflow: hidden; border-radius: 16px; background: var(--app-bg); border: 1px solid #dfe5ec;
  box-shadow: 0 40px 90px -50px rgba(39, 49, 64, 0.45), 0 2px 6px rgba(39, 49, 64, 0.06);
  transition: opacity .4s ease;
}
.window-light { background: #ffffff; }
.window-bar {
  height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 16px;
  border-bottom: 1px solid var(--app-line); background: var(--app-bar);
}
.window-bar strong { font-size: 14px; font-weight: 600; color: var(--app-ink); white-space: nowrap; }
.window-bar .sub { font-size: 14px; color: var(--app-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.traffic { display: flex; gap: 8px; flex: none; }
.traffic span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.traffic span:nth-child(2) { background: #febc2e; }
.traffic span:nth-child(3) { background: #28c840; }
.bar-action {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px;
  background: var(--app-accent); color: #ffffff; font-size: 13px; font-weight: 500;
  transition: background-color .25s ease, color .25s ease;
}
.bar-action.is-running { background: var(--app-chip); color: var(--app-accent); }
.bar-action.is-done { background: var(--ok-bg); color: var(--ok); }
.dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }

.cursor {
  position: absolute; left: 50%; top: 50%; z-index: 5; pointer-events: none;
  transition: left .65s cubic-bezier(.45, 0, .2, 1), top .65s cubic-bezier(.45, 0, .2, 1), opacity .25s ease;
}
.cursor svg { display: block; width: 22px; height: 22px; transform-origin: 3px 2px; transition: transform .12s ease; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.3)); }
.cursor.is-down svg { transform: scale(.82); }
.cursor.is-hidden { opacity: 0; }

/* The chat */

.chat-section { max-width: 1100px; margin: 0 auto; padding: 64px 24px 0; }
.target { margin-left: auto; position: relative; flex: none; }
.target-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: #ffffff; border: 1px solid #dde4ec; font-size: 13px; color: var(--app-ink);
}
.target-pill .dot { color: #8b97a8; }
.target-pill .dot.is-on { color: var(--ok); }
.target-pill svg { width: 12px; height: 12px; }
.target-menu {
  position: absolute; right: 0; top: 38px; z-index: 2; width: 230px; padding: 6px; border-radius: 12px;
  background: #ffffff; border: 1px solid #dde4ec; box-shadow: 0 16px 40px -20px rgba(39, 49, 64, 0.45);
}
.menu-row {
  display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 8px;
  font-size: 13px; color: var(--app-ink); transition: background-color .2s ease;
}
.menu-row.is-hot { background: var(--app-chip); }
.menu-row small { font-size: 12px; color: var(--app-muted); }
.menu-row .online { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok); }
.chat-body { display: flex; height: 520px; }
.chat-side {
  width: 190px; flex: none; padding: 14px 10px; border-right: 1px solid var(--app-line); background: var(--app-bar);
  display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: #3c4757;
}
.side-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; }
.side-item svg { width: 16px; height: 16px; flex: none; }
.side-item.is-active { background: #ffffff; border-color: #dde4ec; color: var(--app-ink); font-weight: 500; }
.chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-log { flex: 1; min-height: 0; padding: 28px 36px; display: flex; flex-direction: column; gap: 18px; text-align: left; }
.chat-empty { margin: auto; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.chat-empty strong { font-size: 28px; font-weight: 500; color: var(--app-ink); letter-spacing: -0.02em; }
.chat-empty span { font-size: 14px; color: var(--app-muted); }
.bubble-user {
  align-self: flex-end; max-width: 70%; padding: 12px 16px; border-radius: 14px 14px 4px 14px;
  background: var(--app-accent); color: #ffffff; font-size: 15px; line-height: 1.5;
}
.thinking { display: flex; gap: 6px; padding: 6px 2px; }
.thinking span { width: 7px; height: 7px; border-radius: 50%; background: #8b97a8; animation: lc-pulse 1s ease-in-out infinite; }
.thinking span:nth-child(2) { animation-delay: .2s; }
.thinking span:nth-child(3) { animation-delay: .4s; }
.reply { max-width: 78%; display: flex; flex-direction: column; gap: 10px; }
.reply-text { font-size: 15px; line-height: 1.6; color: var(--app-ink); white-space: pre-line; }
.meta-chip {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px;
  background: var(--app-chip); font: 12px/1.4 var(--mono); color: #3c4757; opacity: 0; transition: opacity .35s ease;
}
.meta-chip.is-shown { opacity: 1; }
.meta-chip .dot { color: var(--ok); }
.composer-wrap { padding: 0 28px 24px; }
.composer {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 10px 0 18px; border-radius: 16px;
  background: #ffffff; border: 1px solid #dde4ec;
}
.composer-text { flex: 1; min-width: 0; font-size: 15px; color: #8b97a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.composer.is-typing .composer-text { color: var(--app-ink); }
.caret { display: inline-block; width: 2px; height: 18px; margin-left: 1px; vertical-align: -3px; background: var(--app-accent); animation: lc-caret 1s step-end infinite; }
.send { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #c7d0dc; transition: background-color .2s ease; }
.send svg { width: 16px; height: 16px; }
.composer.is-typing .send { background: var(--app-accent); }

/* The feature trio */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 96px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card > svg { width: 26px; height: 26px; }
.card h2, .card h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Sections with a demo beside the copy */

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split.reverse { flex-wrap: wrap-reverse; }
.split > .copy { flex: 1 1 320px; min-width: 0; }
.split > .demo { flex: 2 1 640px; min-width: 0; }

/* The workflow */

.flow-canvas {
  padding: 34px 24px; display: flex; align-items: center;
  background-color: #fbfcfd; background-image: radial-gradient(#e3e8ee 1px, transparent 1px); background-size: 18px 18px;
}
.flow-step { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.node {
  flex: 1 1 0; min-width: 0; padding: 12px; border-radius: 12px; background: #ffffff; border: 1px solid var(--app-line);
  display: flex; flex-direction: column; gap: 6px; text-align: left; transition: border-color .25s ease, box-shadow .25s ease;
}
.node-kind { font: 10.5px/1.4 var(--mono); letter-spacing: .06em; color: #6b7685; }
.node-title { font-size: 14px; font-weight: 600; color: var(--app-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #8b97a8; }
.node-approve {
  align-self: flex-start; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px;
  background: var(--app-accent); color: #ffffff; font-size: 12px; font-weight: 500; transition: background-color .15s ease;
}
.node-approve.is-pressed { background: #2f4f7a; }
.node[data-state="working"] { border-color: var(--app-accent); box-shadow: 0 0 0 4px rgba(70, 104, 150, 0.12); }
.node[data-state="working"] .node-status { color: var(--app-accent); }
.node[data-state="waiting"] { border-color: var(--warn); box-shadow: 0 0 0 4px rgba(70, 104, 150, 0.12); }
.node[data-state="waiting"] .node-status { color: var(--warn); }
.node[data-state="done"] { border-color: var(--ok); }
.node[data-state="done"] .node-status { color: var(--ok); }
.node[data-state="working"] .dot, .node[data-state="waiting"] .dot { animation: lc-pulse 1s ease-in-out infinite; }
.link { position: relative; flex: 0 0 28px; height: 2px; background: var(--app-line); }
.link i { position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--app-accent); transition: width .45s ease; }
.link.is-filled i { width: 100%; }
.console {
  min-height: 178px; padding: 14px 18px; border-top: 1px solid var(--app-line); background: #ffffff;
  font: 12.5px/1.85 var(--mono); color: #3c4757; text-align: left;
}
.console-title { display: block; margin-bottom: 4px; font: 600 12px/1.5 var(--font); color: var(--app-muted); }
.console-line { display: flex; gap: 12px; }
.console-line .step { width: 84px; flex: none; color: #8b97a8; }
.console-line.ok span + span { color: var(--ok); }
.console-line.warn span + span { color: var(--warn); }

/* Synthesis */

.synth-body { display: flex; flex-wrap: wrap; min-height: 380px; }
.code {
  flex: 3 1 400px; min-width: 0; padding: 14px 0; border-right: 1px solid var(--app-line); background: #fbfcfd;
  font: 12.5px/1.75 var(--mono); text-align: left; overflow-x: auto;
}
.code-row { display: flex; gap: 14px; padding: 0 16px; white-space: pre; transition: background-color .25s ease; }
.code-row.is-active { background: var(--app-chip); }
.code-row .n { width: 18px; flex: none; text-align: right; color: #a3adbb; user-select: none; }
.code-row .t { color: var(--app-ink); }
.run-log { flex: 2 1 200px; min-width: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.run-log > span { font-size: 12px; font-weight: 600; color: var(--app-muted); }
.log-entry { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; background: #f3f5f8; }
.log-entry strong { font-size: 13px; font-weight: 600; color: var(--app-ink); }
.log-entry span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.log-entry.warn { background: var(--warn-bg); }
.log-entry.warn strong { color: var(--warn); }
.log-entry.ok { background: #e9f4ed; }
.log-entry.ok strong { color: var(--ok); }

/* Models */

.models { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.models > .copy { flex: 1 1 380px; min-width: 0; }
.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--ink-2); }
.bullets li { display: flex; gap: 10px; }
.bullets li::before { content: "—"; color: var(--accent); }
.table-card { flex: 1 1 460px; min-width: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.table-card table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: left; }
.table-card th { padding: 14px 20px; background: #f3f5f8; font-weight: 600; color: var(--muted); }
.table-card td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.table-card td:first-child { font-weight: 500; }
.table-card td + td { color: var(--muted); }
.table-foot { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); font: 12.5px/1.5 var(--mono); color: var(--muted-2); }

/* The GPU server */

.stack { display: flex; flex-direction: column; gap: 36px; }
.stack > .copy { max-width: 760px; }
.server-row { display: flex; flex-wrap: wrap; gap: 20px; }
.terminal {
  flex: 1 1 480px; min-width: 0; padding: 22px 24px; border-radius: 16px; background: #0f141b; color: #d8e2f2;
  font: 13.5px/1.85 var(--mono); overflow-x: auto;
}
.terminal div { white-space: nowrap; }
.terminal .c { color: #7d8ba1; }
.terminal .p { color: #7aa2ff; }
.terminal .gap { margin-top: 10px; }
.diagram-card { flex: 1 1 480px; min-width: 0; padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.diagram-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.diagram { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.box { flex: 1 1 120px; padding: 12px 14px; border: 1px solid #d7dde6; border-radius: 10px; display: flex; flex-direction: column; gap: 4px; }
.box.relay { border-style: dashed; border-color: #b9c3d1; background: #f7f9fc; }
.box strong { font-size: 15px; }
.box span { font-size: 13px; color: #6a737f; }
.wire { flex: 0 0 26px; height: 2px; background: var(--accent); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { padding-top: 16px; border-top: 2px solid var(--accent); display: flex; flex-direction: column; gap: 8px; }
.steps .num { font: 13px/1.4 var(--mono); color: var(--accent); }
.steps strong { font-size: 19px; font-weight: 600; }
.steps p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* Everything around it */

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { padding: 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.tile h3 { margin: 0; font-size: 17px; font-weight: 600; }
.tile p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.icon-tile { width: 44px; height: 44px; margin-bottom: 8px; border-radius: 12px; display: grid; place-items: center; }
.icon-tile svg { width: 24px; height: 24px; }
.i-blue { background: #e9eefc; }
.i-violet { background: #f0ebfd; }
.i-green { background: #e4f4eb; }
.i-amber { background: #fdf2df; }
.i-rose { background: #fdebef; }
.i-teal { background: #e2f3f3; }
.i-sky { background: #e5f0fb; }
.i-purple { background: #f5ebfb; }
.i-indigo { background: #ebedfd; }

/* Privacy */

.privacy-card { padding: 40px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 40px; }
.privacy-card > .copy { flex: 1 1 320px; min-width: 0; gap: 14px; }
.privacy-card p:not(.eyebrow) { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.privacy-list { flex: 1 1 240px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); }
.privacy-list li:first-child { font-weight: 600; color: var(--ink); }

/* Downloads */

.center-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.center-head p { margin: 0; font-size: 17px; color: var(--muted); }
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.download { padding: 26px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.download h3 { margin: 0; font-size: 20px; font-weight: 600; }
.download p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.download .btn { margin-top: auto; height: 46px; }
.command { display: block; padding: 12px 14px; border-radius: 10px; background: #f3f5f8; font: 12.5px/1.5 var(--mono); color: var(--app-ink); overflow-wrap: anywhere; }

/* Documentation */

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head .copy { gap: 10px; }
.doc-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.doc-link {
  padding: 20px 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink);
  display: flex; flex-direction: column; gap: 6px; transition: border-color .15s ease, box-shadow .15s ease;
}
.doc-link:hover { color: var(--ink); border-color: #c9d3e6; box-shadow: 0 12px 30px -24px rgba(39, 49, 64, 0.5); }
.doc-link strong { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 17px; font-weight: 600; }
.doc-link svg { width: 16px; height: 16px; flex: none; }
.doc-link span { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Questions */

.faq { max-width: 820px; display: flex; flex-direction: column; gap: 20px; }
.faq details { padding: 18px 22px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted-2); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* The cookie banner */

.consent {
  position: fixed; left: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 20; max-width: 400px;
  padding: 18px 20px; border-radius: 14px; background: #ffffff; border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -30px rgba(16, 19, 26, 0.45); display: flex; flex-direction: column; gap: 14px;
}
.consent p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.consent .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .btn { height: 40px; padding: 0 16px; border-radius: 9px; font-size: 14px; }

/* Plain pages: privacy and not found */

.page { max-width: 760px; margin: 0 auto; padding: 56px 24px 0; }
.page h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; }
.page h2 { margin: 40px 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.page p, .page li { font-size: 16px; line-height: 1.65; color: var(--muted); }
.page ul { padding-left: 20px; }
.page .updated { font-size: 14px; color: var(--muted-2); }

/* The account page */

.account-main { max-width: 1080px; margin: 0 auto; padding: 48px 24px 0; display: flex; flex-direction: column; gap: 24px; }
.account-main > .copy { gap: 10px; }
.account-main h1 { margin: 0; font-size: clamp(34px, 5vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; }
.account-main .intro { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.account-views { display: flex; flex-direction: column; gap: 24px; }
.small { font-size: 13px; }
.state-card { padding: 56px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.state-card h2 { margin: 0; font-size: 22px; font-weight: 600; }
.state-card p { margin: 0; max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.spinner { width: 24px; height: 24px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: lc-spin .8s linear infinite; }
.profile { padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--app-chip); color: var(--accent); display: grid; place-items: center; font-size: 22px; font-weight: 600; }
.who { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.who strong { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.who .email { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.who .since { font-size: 14px; color: var(--muted-2); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-off { background: #eef1f5; color: var(--muted-2); }
.account-id { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.account-id .label { font: 11.5px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted-2); }
.account-id .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-id code { font-size: 13px; color: var(--app-ink); overflow-wrap: anywhere; }
.account-id .hint { font-size: 13px; color: var(--muted-2); }
.notice { flex-basis: 100%; padding: 14px 16px; border-radius: 12px; background: var(--warn-bg); color: #5c3d06; font-size: 14.5px; line-height: 1.55; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head { padding: 22px 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.panel-head > div { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.panel-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.panel-head span { font-size: 14.5px; color: var(--muted-2); }
.hosts { padding-bottom: 14px; }
.hosts > .empty { margin: 0; padding: 22px 28px 8px; font-size: 15px; color: var(--muted); }
.server + .server { border-top: 1px solid var(--line); }
.server-head { padding: 18px 28px 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.server-head svg { width: 20px; height: 20px; flex: none; }
.server-head strong { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.server-head .muted { font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.status.is-online { background: var(--ok-bg); color: var(--ok); }
.status.is-offline { background: #eef1f5; color: var(--muted-2); }
.device { margin: 0 28px; padding: 12px 0 12px 32px; border-top: 1px solid #eef1f5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.device > div:first-child { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.device .name { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.device .meta { font-size: 13.5px; color: var(--muted-2); }
.device .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.device .question { font-size: 14px; color: var(--ink-2); }
.device .error { flex-basis: 100%; font-size: 13.5px; color: var(--danger); }
.device.is-empty { font-size: 14px; color: var(--muted-2); }
.usage { padding: 22px 28px 26px; display: flex; flex-direction: column; gap: 22px; }
.usage-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.usage-head > div:first-child { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.usage-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.usage-head span { font-size: 14.5px; color: var(--muted-2); }
.segmented { flex: none; display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: #f3f5f8; }
.segmented button { height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: #ffffff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 19, 26, 0.12); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat .label { font-size: 13px; color: var(--muted-2); }
.stat strong { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.stat .split-line { font-size: 13.5px; color: var(--muted); }
.stat .small { font-size: 13px; color: var(--muted-2); }
.sources { display: flex; flex-direction: column; gap: 10px; }
.source { display: flex; flex-direction: column; gap: 5px; }
.source > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.source > div span:first-child { font-weight: 500; overflow-wrap: anywhere; }
.source > div span + span { color: var(--muted); white-space: nowrap; }
.bar { height: 6px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.bar i { display: block; height: 6px; width: 0; background: var(--accent); }
.activity { display: flex; flex-direction: column; gap: 12px; }
.activity-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.activity-head strong { font-size: 15px; font-weight: 600; }
.legend { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted-2); }
.legend i { width: 11px; height: 11px; border-radius: 3px; }
.legend i:first-of-type { margin-left: 4px; }
.legend i:last-of-type { margin-right: 4px; }
.heatmap-scroll { overflow-x: auto; padding-bottom: 4px; }
.heatmap { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); grid-auto-columns: 13px; gap: 4px; width: max-content; }
.heatmap span { width: 13px; height: 13px; border-radius: 3px; }
.l0 { background: #eef1f5; }
.l1 { background: #c9d6ee; }
.l2 { background: #96afdf; }
.l3 { background: #5f84cf; }
.l4 { background: #2f55c8; }
.heatmap .future { background: transparent; }
.usage-error { margin: 0; font-size: 15px; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 25; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 10px; background: var(--ink); color: #ffffff; font-size: 14px;
}

@keyframes lc-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes lc-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes lc-spin { to { transform: rotate(360deg); } }

/* Narrower screens */

@media (max-width: 960px) {
  .features, .tiles, .downloads, .doc-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
}
@media (max-width: 760px) {
  .section { padding-top: 88px; }
  .features { padding-top: 64px; }
  .cursor { display: none; }
  .chat-side { display: none; }
  .chat-body { height: 460px; }
  .chat-log { padding: 22px 18px; }
  .composer-wrap { padding: 0 14px 14px; }
  .bubble-user, .reply { max-width: 92%; }
  .window-bar .sub { display: none; }
  .flow-canvas { flex-direction: column; align-items: stretch; padding: 20px; }
  .flow-step { flex-direction: column; align-items: stretch; flex: none; }
  .link { flex: 0 0 18px; width: 2px; height: 18px; align-self: center; }
  .link i { width: 2px; height: 0; transition: height .45s ease; }
  .link.is-filled i { width: 2px; height: 100%; }
  .steps { grid-template-columns: 1fr; }
  .terminal { font-size: 12.5px; }
  .terminal div { white-space: normal; overflow-wrap: anywhere; }
  .code { font-size: 11.5px; }
  .diagram { flex-direction: column; align-items: stretch; gap: 0; }
  .box { flex: none; }
  .wire { flex: 0 0 18px; width: 2px; height: 18px; align-self: center; }
  .privacy-card { padding: 28px; }
  .device { margin: 0 20px; padding-left: 0; }
  .server-head, .panel-head, .profile, .usage { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 640px) {
  .features, .tiles, .downloads, .doc-links, .stats { grid-template-columns: 1fr; }
  .site-header { padding: 16px; gap: 12px; }
  .header-email { display: none; }
  .hero { padding-top: 56px; }
  .consent { left: 16px; right: 16px; max-width: none; }
  .site-footer { padding-top: 88px; }
}
@media (max-width: 640px) {
  .btn.is-account { max-width: 170px; }
}
@media (max-width: 420px) {
  .brand { font-size: 16px; }
  .header-actions { gap: 4px; }
  .header-actions .btn { height: 40px; padding: 0 12px; font-size: 14px; }
  /* Only the initial on a phone: the email would crowd out the logo. */
  .header-actions .btn.is-account { padding: 0 4px; }
  .btn.is-account .account-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .thinking span, .node .dot, .spinner { animation: none !important; }
  .window, .cursor, .link i, .meta-chip { transition: none !important; }
}
