/* The style of the server's pages (pages.py puts it into every page). */
@font-face { font-family: "Geist"; src: url("/static/geist.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  color-scheme: light dark;
  --bg: #ffffff; --bg-2: #fafafa; --surface: #ffffff; --hover: #f2f2f2; --active: #ebebeb;
  --border: #ebebeb; --border-strong: #d6d6d6;
  --fg: #171717; --fg-2: #4d4d4d; --muted: #666666; --subtle: #8f8f8f;
  --primary: #171717; --primary-fg: #ffffff; --primary-hover: #383838;
  --blue: #0068d6; --blue-bg: #ebf5ff; --blue-line: #b8dcff; --blue-solid: #006bff;
  --green: #297a3a; --green-bg: #ebfaeb; --green-line: #b4e6bc; --green-solid: #45a557;
  --amber: #a35200; --amber-bg: #fff6e5; --amber-line: #ffd38a; --amber-solid: #f5a524;
  --red: #cb2a2f; --red-bg: #ffebec; --red-line: #ffc6c8; --red-solid: #e5484d;
  --purple: #7820bc; --purple-bg: #f9f0ff; --purple-line: #e3c8f7; --purple-solid: #8e4ec6;
  --ring: #47a8ff; --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 2px 2px rgba(0, 0, 0, .04), 0 8px 16px -4px rgba(0, 0, 0, .04);
  --shadow-lg: 0 2px 2px rgba(0, 0, 0, .04), 0 8px 24px -8px rgba(0, 0, 0, .1);
  --shadow-xl: 0 0 0 1px rgba(0, 0, 0, .02), 0 2px 4px rgba(0, 0, 0, .04),
    0 28px 72px -20px rgba(0, 0, 0, .2);
  --grid: rgba(0, 0, 0, .05);
  /* the colours of the avatar: its blue, its navy eyes and its amber dot */
  --brand: #2f5d9e; --brand-solid: #2f5d9e; --brand-deep: #1f3f70;
  --brand-bg: #f3f6fb; --brand-line: #dbe4f2; --accent: #f2a541;
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
  --mono: ui-monospace, "Geist Mono", "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg-2: #0a0a0a; --surface: #0a0a0a; --hover: #1a1a1a; --active: #1f1f1f;
    --border: #262626; --border-strong: #3d3d3d;
    --fg: #ededed; --fg-2: #c7c7c7; --muted: #a1a1a1; --subtle: #7c7c7c;
    --primary: #ededed; --primary-fg: #0a0a0a; --primary-hover: #cccccc;
    --blue: #52a8ff; --blue-bg: #06193a; --blue-line: #0f3e7a; --blue-solid: #0070f3;
    --green: #62c073; --green-bg: #0c2311; --green-line: #1b4a24; --green-solid: #45a557;
    --amber: #f2a03a; --amber-bg: #291800; --amber-line: #573500; --amber-solid: #f5a524;
    --red: #ff6166; --red-bg: #2e0b0d; --red-line: #5c1a1d; --red-solid: #e5484d;
    --purple: #bf7af0; --purple-bg: #1f0c2e; --purple-line: #432066; --purple-solid: #8e4ec6;
    --ring: #3291ff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 0 0 1px rgba(255, 255, 255, .02), 0 8px 16px -4px rgba(0, 0, 0, .6);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .03), 0 12px 32px -8px rgba(0, 0, 0, .8);
    --shadow-xl: 0 0 0 1px rgba(255, 255, 255, .04), 0 28px 72px -20px rgba(0, 0, 0, .9);
    --grid: rgba(255, 255, 255, .065);
    --brand: #8fb3e8; --brand-deep: #193563;
    --brand-bg: #0a1220; --brand-line: #1b2a42;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--fg);
  font: 400 14px/1.5 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "liga", "calt"; }
body.soft { background: var(--bg-2); }
::selection { background: color-mix(in srgb, var(--brand) 26%, transparent); }
a { color: inherit; }
p, h1, h2, h3, figure { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
a:focus-visible, button:focus-visible, label:focus-visible { outline: 2px solid var(--ring);
  outline-offset: 2px; }
svg.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center -1px; }

/* ------------------------------------------------------------ buttons and small parts */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px;
  padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent; font: inherit;
  font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(.5px); }
.btn.primary { background: var(--primary); color: var(--primary-fg); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.secondary { background: var(--surface); color: var(--fg); border-color: var(--border);
  box-shadow: var(--shadow-sm); }
.btn.secondary:hover { background: var(--hover); border-color: var(--border-strong); }
.btn.ghost { background: transparent; color: var(--fg-2); }
.btn.ghost:hover { background: var(--hover); color: var(--fg); }
.btn.danger { background: var(--red-solid); color: #ffffff; }
.btn.danger:hover { background: color-mix(in srgb, var(--red-solid) 86%, #000000); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: var(--r-md); }
.btn.block { width: 100%; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }
.icon-btn { flex: none; width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface);
  color: var(--fg-2); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.icon-btn:hover { background: var(--hover); color: var(--fg); border-color: var(--border-strong); }
.icon-btn .i-done { display: none; color: var(--green); }
.icon-btn.done .i-copy { display: none; }
.icon-btn.done .i-done { display: block; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  letter-spacing: -0.02em; text-decoration: none; color: var(--fg); border-radius: var(--r-sm); }
.mark { display: inline-grid; place-items: center; flex: none; overflow: hidden; }
.mark svg { display: block; width: 100%; height: 100%; }
.mark.vb { width: 26px; height: 26px; border-radius: 7px; }
.mark.vb.lg { width: 48px; height: 48px; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); }
.lang svg.icon { width: 14px; height: 14px; color: var(--subtle); margin: 0 2px 0 6px; }
.lang a { display: inline-grid; place-items: center; height: 24px; min-width: 32px; padding: 0 8px;
  border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .03em; color: var(--muted);
  text-decoration: none; transition: color .15s, background-color .15s; }
.lang a:hover { color: var(--fg); }
.lang a[aria-current] { background: var(--hover); color: var(--fg); box-shadow: inset 0 0 0 1px var(--border); }
.tone-blue { --tone: var(--blue); --tone-bg: var(--blue-bg); --tone-line: var(--blue-line); --tone-solid: var(--blue-solid); }
.tone-green { --tone: var(--green); --tone-bg: var(--green-bg); --tone-line: var(--green-line); --tone-solid: var(--green-solid); }
.tone-amber { --tone: var(--amber); --tone-bg: var(--amber-bg); --tone-line: var(--amber-line); --tone-solid: var(--amber-solid); }
.tone-red { --tone: var(--red); --tone-bg: var(--red-bg); --tone-line: var(--red-line); --tone-solid: var(--red-solid); }
.tone-purple { --tone: var(--purple); --tone-bg: var(--purple-bg); --tone-line: var(--purple-line); --tone-solid: var(--purple-solid); }
.tone-neutral { --tone: var(--fg-2); --tone-bg: var(--surface); --tone-line: var(--border); --tone-solid: var(--fg); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--hover); color: var(--fg-2);
  border: 1px solid transparent; }
.badge.outline { background: transparent; border-color: var(--border); }
.badge[class*="tone-"] { background: var(--tone-bg); color: var(--tone); }
.badge svg.icon { width: 12px; height: 12px; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 999px;
  background: var(--dot, var(--subtle)); }
.dot.en { --dot: var(--blue-solid); } .dot.de { --dot: var(--amber-solid); }
.dot.es { --dot: var(--red-solid); } .dot.fr { --dot: var(--purple-solid); }
.dot.it { --dot: var(--green-solid); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow svg.icon { width: 13px; height: 13px; }
.eyebrow .pip { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.steps code, .doc code { font-size: .9em; padding: 1px 5px; border-radius: 5px; background: var(--hover);
  border: 1px solid var(--border); color: var(--fg); white-space: nowrap; }
.link { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--border-strong); }
.link:hover { color: var(--fg); text-decoration-color: currentColor; }

/* ------------------------------------------------------------ the site's frame */
.top { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
.top .bar { display: flex; align-items: center; gap: 12px; height: 64px; }
.top .links { display: flex; gap: 2px; margin-left: 16px; }
.top .links a { padding: 6px 10px; border-radius: var(--r-sm); color: var(--muted); text-decoration: none;
  font-size: 14px; transition: color .15s, background-color .15s; }
.top .links a:hover { color: var(--fg); background: var(--hover); }
.top .links a[aria-current="page"] { color: var(--fg); font-weight: 500; }
.top .end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top form { margin: 0; }
.top .slash { color: var(--border-strong); font-weight: 300; font-size: 22px; margin: 0 -2px; }
.top .who { font-weight: 500; color: var(--fg-2); min-width: 0; max-width: 30vw; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) {
  .top .links, .wide-only { display: none; }
  .top .bar { height: 56px; gap: 10px; }
  .top.app .logo span:last-child { display: none; }
}
.tabs-nav { display: flex; gap: 4px; margin: 0 -10px; overflow-x: auto; scrollbar-width: none; }
.tabs-nav::-webkit-scrollbar { display: none; }
.tabs-nav a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px 12px;
  color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; border-radius: var(--r-sm);
  transition: color .15s; }
.tabs-nav a:hover { color: var(--fg); }
.tabs-nav a[aria-current="page"] { color: var(--fg); font-weight: 500; }
.tabs-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px;
  bottom: -1px; height: 2px; border-radius: 2px; background: var(--fg); }
.site-foot { border-top: 1px solid var(--border); padding: 40px 0 28px; color: var(--muted); }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.foot-brand p { margin-top: 12px; font-size: 13.5px; max-width: 320px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; transition: color .15s; }
.foot-links a:hover { color: var(--fg); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font: 12px var(--mono);
  color: var(--subtle); }
.mini-foot { padding: 8px 16px 40px; text-align: center; color: var(--subtle); font-size: 12.5px; }
.mini-foot a { color: var(--muted); text-underline-offset: 3px; }

/* ------------------------------------------------------------ the start page */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 88px 0 80px; }
.hero .grid-bg { -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 35%, transparent 100%); }
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column;
  align-items: center; }
.announce { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; height: 32px; padding: 0 10px 0 4px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm);
  color: var(--fg-2); font-size: 13px; text-decoration: none; transition: border-color .15s; }
.announce:hover { border-color: var(--border-strong); }
.announce .tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px;
  background: var(--brand-solid); color: #ffffff; font-size: 12px; font-weight: 500; }
.announce .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce svg.icon { width: 14px; height: 14px; color: var(--subtle); }
.display { margin-top: 28px; font-size: clamp(38px, 5.4vw + 14px, 72px); line-height: 1.04; font-weight: 600;
  letter-spacing: -0.05em; text-wrap: balance; }
.display .line { display: block; }
.display .accent { color: var(--brand); }
.hero .lead { margin-top: 24px; max-width: 660px; font-size: clamp(16px, .6vw + 13px, 18.5px); line-height: 1.6;
  color: var(--muted); text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.works { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px;
  margin-top: 28px; color: var(--subtle); font-size: 13px; }
.works span { display: inline-flex; align-items: center; gap: 6px; }
.works .label { color: var(--muted); }
.showcase { max-width: 1000px; margin: 72px auto 0; }
/* a tinted stage in the avatar's blue; the window stands on its lower edge */
.stage-panel { padding: 44px 48px 0; border: 1px solid var(--brand-line); border-radius: 24px; overflow: hidden;
  background-color: var(--brand-bg);
  background-image: radial-gradient(var(--brand-line) 1px, transparent 1px); background-size: 20px 20px; }
.window { max-width: 860px; margin: 0 auto; border: 1px solid var(--border); border-bottom: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--surface); box-shadow: var(--shadow-xl);
  overflow: hidden; text-align: left; }
.window-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px;
  border-bottom: 1px solid var(--border); background: var(--bg-2); }
.window-bar .dots { display: flex; gap: 6px; width: 64px; }
.window-bar .dots i { width: 10px; height: 10px; border-radius: 999px; background: var(--active);
  box-shadow: inset 0 0 0 1px var(--border-strong); }
.window-title { flex: 1; text-align: center; font-size: 13px; font-weight: 500; color: var(--muted);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.connector { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 4px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 12px;
  color: var(--fg-2); }
.connector .mark.vb { width: 16px; height: 16px; border-radius: 5px; }
.connector .on { width: 6px; height: 6px; border-radius: 999px; background: var(--green-solid); }
.chat { max-width: 660px; margin: 0 auto; padding: 32px 24px 8px; display: grid; gap: 22px; }
.msg.user { justify-self: end; max-width: 80%; padding: 10px 16px; border-radius: 20px; background: var(--hover);
  font-size: 15px; }
.msg.bot { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.bot-avatar { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
  background: var(--hover); border: 1px solid var(--border); color: var(--fg-2); font-size: 12.5px;
  font-weight: 600; }
.bot-body { display: grid; gap: 12px; min-width: 0; font-size: 15px; line-height: 1.6; padding-top: 2px; }
.toolcall { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 30px;
  padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-2);
  color: var(--muted); font-size: 12.5px; }
.toolcall code { font-size: 12px; color: var(--fg-2); }
.toolcall .ok { color: var(--green); }
.toolcall svg.icon { width: 14px; height: 14px; }
.vcard { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--shadow-md); overflow: hidden; }
.vcard-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; font-size: 13px; }
.vcard-head .mark.vb { width: 20px; height: 20px; border-radius: 6px; }
.vcard-head b { font-weight: 600; }
.vcard-head .count { margin-left: auto; color: var(--muted); font: 500 12px var(--mono); }
.vcard-bar { height: 3px; margin: 0 14px; border-radius: 999px; background: var(--active); overflow: hidden; }
.vcard-bar i { display: block; width: 14%; height: 100%; border-radius: 999px; background: var(--purple-solid); }
.stages { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.stage { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.stage b { font-weight: 600; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.stage.on { background: var(--purple-bg); border-color: var(--purple-line); color: var(--purple); }
.stage.on b { color: var(--purple); }
.vcard-body { padding: 14px 14px 16px; }
.vcard-body .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.vcard .prompt { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.035em; }
.vcard .meta { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.composer { padding: 16px 24px 24px; }
.composer-box { max-width: 660px; margin: 0 auto; display: flex; align-items: center; gap: 10px; min-height: 54px;
  padding: 8px 8px 8px 12px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface);
  box-shadow: var(--shadow-md); font-size: 15px; }
.composer-box .plus { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px;
  color: var(--muted); }
.composer-box .typed { flex: 1; min-width: 0; white-space: nowrap; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em;
  background: var(--brand); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.send { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 999px;
  background: var(--fg); color: var(--bg); }
.send svg.icon { width: 18px; height: 18px; stroke-width: 2.2; }
.showcase figcaption { margin-top: 18px; text-align: center; color: var(--subtle); font-size: 13px; }
.section { padding: 104px 0; border-top: 1px solid var(--border); }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; display: flex; flex-direction: column;
  align-items: center; }
.section h2 { margin-top: 16px; font-size: clamp(30px, 2.2vw + 18px, 46px); line-height: 1.08; font-weight: 600;
  letter-spacing: -0.045em; text-wrap: balance; }
.sub { margin-top: 16px; max-width: 620px; color: var(--muted); font-size: 16.5px; line-height: 1.6;
  text-wrap: pretty; }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.cell { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.visual { position: relative; height: 156px; margin-bottom: 14px; border: 1px solid var(--border);
  border-radius: var(--r-lg); background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.visual .grid-bg { background-size: 24px 24px; opacity: .7; }
.cell h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.cell h3 svg.icon { color: var(--muted); }
.cell p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.curve { width: 100%; height: 100%; padding: 14px 10px; color: var(--brand); }
.curve .gl { stroke: var(--border-strong); stroke-dasharray: 3 4; fill: none; }
.curve .line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.curve .pt { fill: var(--surface); stroke: currentColor; stroke-width: 2; }
.langs { display: grid; gap: 16px; justify-items: center; padding: 16px; }
.lang-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lchip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--subtle);
  font: 500 12.5px var(--mono); letter-spacing: .04em; }
.lchip.on { color: var(--fg); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.lchip:not(.on) .dot { opacity: .35; }
.levels { display: grid; grid-template-columns: repeat(4, 52px); gap: 4px; }
.levels span { display: grid; place-items: center; height: 22px; border-radius: 5px; background: var(--active);
  color: var(--subtle); font: 500 11px var(--mono); }
.levels span.on { background: var(--brand-solid); color: #ffffff; }
.levels span.half { background: color-mix(in srgb, var(--brand-solid) 32%, var(--active)); color: var(--fg); }
.hub { position: absolute; inset: 0; }
.hub .wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub .wires path { fill: none; stroke: var(--border-strong); stroke-width: 1.25; stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.hub .node, .hub .core { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; }
.hub .node { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); color: var(--fg-2); }
.hub .n1 { left: 17.5%; top: 25.7%; } .hub .n2 { left: 17.5%; top: 74.3%; }
.hub .n3 { left: 82.5%; top: 25.7%; } .hub .n4 { left: 82.5%; top: 74.3%; }
.hub .core { left: 50%; top: 50%; width: 54px; height: 54px; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 6px color-mix(in srgb, var(--brand) 16%, transparent); }
.hub .core .mark.vb { width: 100%; height: 100%; border-radius: 0; }
.tool { width: min(290px, calc(100% - 32px)); border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; font-size: 12.5px; }
.tool-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.tool-ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--hover);
  color: var(--fg-2); }
.tool-ico svg.icon { width: 13px; height: 13px; }
.tool-head code { font-size: 12.5px; font-weight: 500; }
.tool-tag { margin-left: auto; padding: 1px 7px; border: 1px solid var(--border); border-radius: 999px;
  font: 500 10.5px var(--mono); color: var(--subtle); }
.tool-io { display: grid; gap: 6px; padding: 10px 12px; font-family: var(--mono); }
.io { display: flex; align-items: center; gap: 10px; }
.io .k { min-width: 56px; color: var(--subtle); }
.io .v { display: inline-flex; align-items: center; gap: 6px; }
.io .v.good { color: var(--green); }
.io .v.good svg.icon { width: 14px; height: 14px; stroke-width: 2.4; }
.address { max-width: 580px; margin: 0 auto 40px; }
.address-label { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 10px;
  color: var(--muted); font-size: 13px; font-weight: 500; }
.copybox { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 9px 0 18px;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.copybox code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 15px; }
.copybox code::-webkit-scrollbar { display: none; }
.connect-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.connect-card.wide { grid-column: 1 / -1; }
.connect-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s; }
.connect-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.cc-head { display: flex; align-items: center; gap: 12px; }
.tile { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--fg); }
.tile svg.icon { width: 18px; height: 18px; }
.cc-head h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.where { margin-top: 1px; color: var(--subtle); font-size: 13px; }
.steps { color: var(--muted); font-size: 14px; line-height: 1.65; }
.term { display: grid; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg-2); }
.term-line { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 4px 0 10px; border-radius: 6px; }
.term-line:hover { background: var(--hover); }
.term-line .ps { color: var(--subtle); font-family: var(--mono); user-select: none; }
.term-line code { flex: 1; min-width: 0; padding: 10px 0; font-size: 12.5px; line-height: 1.6;
  overflow-wrap: anywhere; }
.term .icon-btn { width: 30px; height: 30px; }
.connect-card .btn { align-self: flex-start; }
/* the closing block in the navy of the avatar's eyes */
.cta-box { --grid: rgba(255, 255, 255, .07); position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 72px 24px;
  border-radius: 20px; background: var(--brand-deep); color: #ffffff; }
.cta-box .grid-bg { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 15%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 15%, transparent 100%); }
.cta-box h2 { margin-top: 24px; }
.cta-box .sub { color: rgba(255, 255, 255, .78); }
.cta-box .mark.vb.lg { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 12px 32px -12px rgba(0, 0, 0, .6); }
.cta-box .btn.primary { background: #ffffff; color: #10264a; }
.cta-box .btn.primary:hover { background: #e6edf8; }
.cta-box .btn.secondary { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, .34);
  box-shadow: none; }
.cta-box .btn.secondary:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); }
.cta-box a:focus-visible { outline-color: #ffffff; }
@media (max-width: 767px) {
  .bento, .connect-grid { grid-template-columns: 1fr; }
  .cell { padding: 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 56px; }
  .showcase { margin-top: 48px; }
  .stage-panel { padding: 16px 10px 0; border-radius: 18px; }
  .chat { padding: 22px 14px 4px; gap: 18px; }
  .composer { padding: 12px 14px 16px; }
  .msg.user, .bot-body { font-size: 14px; }
  .msg.bot { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
  .bot-avatar { width: 24px; height: 24px; }
  .window-bar .connector { display: none; }
  .window-bar .dots { width: auto; }
  .connect-card { padding: 20px; }
  .cta-box { padding: 56px 18px; }
}
@media (max-width: 480px) {
  .ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .lang-chips { gap: 6px; }
  .lchip { gap: 6px; padding: 0 9px; }
}

/* ------------------------------------------------------------ privacy */
.doc { padding-top: 56px; padding-bottom: 88px; }
.doc-head { padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.doc-head h1 { margin-top: 16px; font-size: clamp(34px, 3vw + 20px, 50px); line-height: 1.08; font-weight: 600;
  letter-spacing: -0.045em; }
.doc-head .lead { margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.doc-sec { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 28px 0;
  border-bottom: 1px solid var(--border); }
.doc-sec .num { padding-top: 3px; font: 500 13px var(--mono); color: var(--subtle); }
.doc-sec h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.doc-sec p { margin-top: 8px; max-width: 660px; color: var(--fg-2); font-size: 15px; line-height: 1.7; }
@media (max-width: 640px) { .doc-sec { grid-template-columns: 1fr; gap: 6px; } .doc { padding-top: 40px; } }

/* ------------------------------------------------------------ sign-ins and messages */
.auth-bg { position: fixed; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 25%, transparent 100%); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1120px;
  height: 64px; margin: 0 auto; padding: 0 20px; }
.auth { width: 100%; max-width: 408px; margin: 0 auto; padding: 32px 16px 56px; }
@media (min-height: 760px) and (min-width: 641px) { .auth { padding-top: 56px; } }
.auth-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 24px; }
.auth-head h1 { margin-top: 20px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.03em;
  text-wrap: balance; }
.auth-head .lead { margin-top: 8px; color: var(--muted); line-height: 1.55; text-wrap: pretty; }
.host { padding: 1px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--hover);
  color: var(--fg-2); font: 12.5px var(--mono); }
.pair { display: flex; align-items: center; }
.tile-app { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: 19px; font-weight: 600; }
.link-line { position: relative; width: 64px; height: 1px; margin: 0 4px;
  background-image: linear-gradient(90deg, var(--border-strong) 50%, transparent 50%); background-size: 6px 1px; }
.link-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px;
  border-radius: 999px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border);
  color: var(--green); }
.link-dot svg.icon { width: 11px; height: 11px; stroke-width: 2.2; }
.status { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center;
  background: var(--tone-bg); color: var(--tone); border: 1px solid var(--tone-line); box-shadow: var(--shadow-md); }
.status svg.icon { width: 22px; height: 22px; stroke-width: 2; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 24px; }
.actions-col { display: grid; gap: 10px; }
.auth-foot { margin-top: 24px; text-align: center; color: var(--subtle); font-size: 12.5px; line-height: 1.7; }
.auth-foot a { color: var(--muted); text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.auth-foot a:hover { color: var(--fg); }
.tab-input { position: absolute; opacity: 0; pointer-events: none; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; margin-bottom: 22px;
  background: var(--hover); border: 1px solid var(--border); border-radius: var(--r-md); }
.tab { display: flex; align-items: center; justify-content: center; gap: 7px; height: 32px; border-radius: 6px;
  color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; user-select: none;
  transition: background-color .15s, color .15s, box-shadow .15s; }
.tab svg.icon { width: 14px; height: 14px; }
.tab:hover { color: var(--fg); }
#tab-login:checked ~ .tabs [for="tab-login"], #tab-signup:checked ~ .tabs [for="tab-signup"] {
  background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--border); }
#tab-login:focus-visible ~ .tabs [for="tab-login"],
#tab-signup:focus-visible ~ .tabs [for="tab-signup"] { box-shadow: var(--focus); }
.pane { display: none; }
#tab-login:checked ~ .pane-login, #tab-signup:checked ~ .pane-signup { display: block; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--fg-2); }
.hint { font-size: 12px; line-height: 1.5; color: var(--subtle); }
.input { width: 100%; height: 40px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--fg);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); outline: none;
  transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: var(--border-strong); }
.input:focus { border-color: var(--fg-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--subtle) 24%, transparent); }
.input::placeholder { color: var(--subtle); }
.input.code { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.input.big { height: 54px; font-size: 21px; letter-spacing: .18em; text-align: center; }
@media (max-width: 640px) { .input { font-size: 16px; } .input.big { font-size: 21px; } }
.forgot { display: flex; justify-content: flex-end; margin: -6px 0 18px; font-size: 13px; }
.alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 12px 14px;
  border-radius: var(--r-md); border: 1px solid var(--tone-line); background: var(--tone-bg); color: var(--tone);
  font-size: 13.5px; line-height: 1.5; }
.alert svg.icon { margin-top: 2px; }

/* ------------------------------------------------------------ the account */
.settings { padding-top: 36px; padding-bottom: 32px; }
.page-head h1 { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -0.04em; }
.page-head p { margin-top: 6px; color: var(--muted); }
.settings .alert { margin: 24px 0 0; }
.set { display: block; margin: 24px 0 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.set-body { padding: 24px; }
.set-body h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.set-body .desc { margin-top: 8px; max-width: 620px; color: var(--muted); line-height: 1.55; }
.set-body .fields { max-width: 400px; margin-top: 20px; }
.set-body .fields .field:last-child { margin-bottom: 0; }
.set-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  min-height: 56px; padding: 10px 24px; border-top: 1px solid var(--border); background: var(--bg-2);
  color: var(--muted); font-size: 13px; }
.set-foot .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.set.danger { border-color: var(--red-line); }
.set.danger .set-foot { border-top-color: var(--red-line); background: var(--red-bg); color: var(--red); }
.devices { list-style: none; margin: 20px 0 0; padding: 0; border: 1px solid var(--border); border-radius: var(--r-md); }
.devices li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border); }
.devices li:first-child { border-top: 0; }
.dev-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--fg-2); }
.devices .what { flex: 1; min-width: 0; display: grid; }
.devices .what b { font-weight: 500; overflow-wrap: anywhere; }
.devices .what span { color: var(--muted); font-size: 12.5px; }
.devices form { margin: 0; }
.empty-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; padding: 22px;
  border: 1px dashed var(--border-strong); border-radius: var(--r-md); color: var(--muted); font-size: 13.5px;
  text-align: center; }
@media (max-width: 640px) {
  .set-body { padding: 20px 16px; }
  .set-foot { padding: 10px 16px; }
  .devices li { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
