/* ChatShift website: one stylesheet for every page. No build step.
   Sibling of lanshare.io (KV CACHE SIA): monochrome, dot-matrix type, one accent colour. */

/* Doto (SIL OFL 1.1), self-hosted: pinned to round dots (ROND=100), weight axis kept,
   subset to Latin + Latin Extended-A (all Latvian letters). 6 KB. */
@font-face {
  font-family: "Doto";
  src: url("fonts/doto.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f3f3f1;
  --surface: #ffffff;
  --surface-2: #ebebe8;
  --ink: #0b0b0b;
  --muted: #66665f;
  --line: #d9d9d4;
  --dot: rgba(0, 0, 0, 0.13);
  --accent: #e0312b;     /* the one red dot */
  --on-accent: #ffffff;
  --on-ink: #ffffff;
  --radius: 22px;
  --radius-s: 14px;
  --max: 1200px;
  --gutter: 24px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --dotfont: "Doto", var(--mono);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #111111;
    --surface-2: #1a1a1a;
    --ink: #f2f2f2;
    --muted: #8e8e88;
    --line: #262626;
    --dot: rgba(255, 255, 255, 0.13);
    --accent: #ff5a4e;
    --on-accent: #000000;
    --on-ink: #000000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --ink: #f2f2f2;
  --muted: #8e8e88;
  --line: #262626;
  --dot: rgba(255, 255, 255, 0.13);
  --accent: #ff5a4e;
  --on-accent: #000000;
  --on-ink: #000000;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 16px; } }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 999px;
  font: 600 14px/1 var(--sans); text-decoration: none;
}
.skip:focus { top: 12px; }

/* Type helpers */
.cap {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.dots {
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.6px);
  background-size: 14px 14px;
}
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font: 700 16px/1 var(--dotfont); letter-spacing: 0.06em; }
.beta {
  font: 500 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 999px; padding: 4px 7px 3px; white-space: nowrap;
}
.hero .beta-note { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 34em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a, .lang, footer nav a {
  font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
}
.nav a:hover, footer nav a:hover { color: var(--ink); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; color: var(--ink); }
.lang:hover { border-color: var(--ink); }
.brand + .lang { margin-left: auto; }
.nav a { white-space: nowrap; }
@media (max-width: 1100px) { .nav { gap: 16px; } }
@media (max-width: 940px) { .nav { display: none; } .lang { margin-left: auto; } }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink);
  transition: transform .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.action { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 480px) { .btns .btn { flex: 1 1 100%; } .top .btn.sm { display: none; } }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; }
@media (max-width: 600px) { section { padding: 48px 0; } }
.head { max-width: 760px; margin-bottom: 48px; }
.head h2 {
  font: 900 clamp(26px, 3.6vw, 40px)/1.06 var(--dotfont); letter-spacing: 0.01em;
  margin: 14px 0 14px; text-wrap: balance;
}
.head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 56ch; }

/* Hero */
.hero { padding: 36px 0 32px; position: relative; overflow: hidden; isolation: isolate; }
.hero .backdrop {
  position: absolute; inset: 0; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.hero-text { max-width: 860px; margin: 0 auto 48px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  font: 900 clamp(30px, 5vw, 60px)/0.98 var(--dotfont);
  letter-spacing: 0.01em; margin: 20px 0 22px; text-wrap: balance;
}
.hero h1 .soft { color: var(--muted); }
.hero h1 .pt {
  display: inline-block; width: .16em; height: .16em; border-radius: 50%;
  background: var(--accent); margin-left: .05em;
}
.hero .lead { font-size: clamp(15px, 1.5vw, 17px); line-height: 1.45; margin: 0 0 20px; max-width: 40ch; text-wrap: pretty; }
.hero .btns { justify-content: center; }
.hero .note { margin: 16px 0 0; font: 500 12px/1.6 var(--mono); letter-spacing: .06em; color: var(--muted); }
.hero .note a { color: var(--ink); }
.honest {
  margin: 14px 0 0; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  font: 13px/1.5 var(--sans); color: var(--muted);
}
.beta {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent);
  font: 600 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
}
.top .beta { margin-left: -10px; }

/* Video players (recorded from the app's Demo mode) */
.player { margin: 0; }
.player .screen {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); aspect-ratio: 1280 / 800;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 40px 90px -50px rgba(0, 0, 0, .55);
}
.player .screen { position: relative; background: var(--surface) center / cover no-repeat; }
/* main.js puts the poster on .screen too; the video stays transparent until its first frame is decoded,
   so neither an empty box nor a blank frame shows while scrolling or while a clip starts. */
.vfreeze { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 1; transition: opacity .4s ease; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .vfreeze { transition: none; } }
.player video { display: block; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.js .player video { opacity: 0; transition: opacity .25s ease; }
.js .player video.ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .player video { transition: none; } }
.hero-player .screen { border-radius: 16px; box-shadow: 0 50px 120px -60px rgba(0, 0, 0, .6); }
.vbtn { z-index: 2; 
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0;
  opacity: 0; transition: opacity .2s ease, transform .12s ease;
}
.vbtn::before {
  content: ""; width: 12px; height: 13px;
  background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px);
}
.vbtn[data-state="paused"]::before {
  width: 0; height: 0; background: none; margin-left: 4px;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor;
}
.player:hover .vbtn, .vbtn:focus-visible, .vbtn[data-state="paused"] { opacity: 1; }
.vbtn:hover { transform: scale(1.06); }
.no-js .vbtn { display: none; }
/* Not started (reduced motion) or paused: a big play button in the middle */
.player.still .vbtn { right: 50%; bottom: 50%; transform: translate(50%, 50%); width: 72px; height: 72px; }
.player.still .vbtn::before { border-width: 13px 0 13px 21px; margin-left: 6px; }
.player.still .vbtn:hover { transform: translate(50%, 50%) scale(1.06); }
@media (hover: none) { .vbtn { opacity: 1; } }
@media (max-width: 600px) { .player .screen { border-radius: 10px; } .vbtn { right: 8px; bottom: 8px; width: 34px; height: 34px; } }

.chapters {
  list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.chapters button {
  display: inline-flex; align-items: baseline; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 8px 14px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  transition: border-color .15s ease, color .15s ease;
}
.chapters button b { font: 600 12px/1 var(--mono); color: var(--ink); letter-spacing: .04em; }
.chapters button:hover { border-color: var(--ink); color: var(--ink); }
.chapters button[aria-current="true"] { border-color: var(--accent); color: var(--ink); }
.chapters button[aria-current="true"] b { color: var(--accent); }
.no-js .chapters { display: none; }

/* Feature rows */
.features .head { margin-bottom: 16px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 56px; align-items: center;
  padding: 40px 0; border-bottom: 1px dashed var(--line);
}
.feature:last-child { border-bottom: 0; padding-bottom: 0; }
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.feature:nth-of-type(even) > .ftext { order: 2; }
.ftext .n { font: 800 34px/1 var(--dotfont); color: var(--accent); }
.ftext .cap { margin-top: 14px; }
.ftext h3 { font: 900 clamp(21px, 2.4vw, 28px)/1.08 var(--dotfont); margin: 10px 0 14px; text-wrap: balance; }
.ftext p { margin: 0 0 18px; color: var(--muted); font-size: 13px; max-width: 46ch; }
.ftext ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftext li { padding-left: 24px; position: relative; font-size: 15px; }
.ftext li::before {
  content: ""; position: absolute; left: 3px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
}
@media (max-width: 900px) {
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .feature:nth-of-type(even) > .ftext { order: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Requirements */
.reqs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.reqs div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 22px; }
.reqs dt { font: 600 13px/1.3 var(--sans); margin-bottom: 8px; }
.reqs dd { margin: 0; color: var(--muted); }
.reqs code {
  font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; color: var(--ink);
}

/* Stats strip */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: 72px;
}
.strip div { background: var(--surface); padding: 28px 26px 24px; }
.strip b { display: block; font: 800 clamp(32px, 4.4vw, 46px)/1 var(--dotfont); margin-bottom: 12px; }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, 1fr); } .strip div { padding: 22px 18px 18px; } }

/* Dot glyphs (drawn by main.js into [data-glyph]) */
.glyph svg { display: block; width: 100%; height: 100%; overflow: visible; }
.glyph .off { fill: var(--dot); }
.glyph .on { fill: var(--ink); }
.glyph .hi { fill: var(--accent); }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 26px; position: relative;
}
.step .glyph { width: 77px; height: 91px; margin-bottom: 26px; }
.step .n { font: 800 31px/1 var(--dotfont); }
.step h3 { margin: 12px 0 6px; font: 600 16px/1.3 var(--sans); }
.step p { margin: 0; color: var(--muted); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 72px; right: -17px; width: 18px; height: 2px; z-index: 1;
  background: radial-gradient(circle, var(--ink) 1px, transparent 1.5px) 0 50% / 6px 2px repeat-x;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step:not(:last-child)::after { display: none; } }

/* What moves */
.moves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.moves li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; display: flex; align-items: center; gap: 20px; position: relative;
}
.moves .glyph { width: 50px; height: 50px; flex: none; }
.moves b { font: 600 13px/1.3 var(--sans); }
.tag {
  position: absolute; top: 18px; right: 18px;
  font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; color: var(--muted);
}
.footnote { margin: 22px 0 0; font: 500 12px/1.6 var(--mono); letter-spacing: .04em; color: var(--muted); }
@media (max-width: 760px) {
  .moves { gap: 10px; }
  .moves li { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 14px 16px; }
  .moves .glyph { width: 38px; height: 38px; }
  .moves b { font-size: 14px; }
  .tag { top: 12px; right: 10px; font-size: 9px; padding: 4px 6px; }
}

/* Pricing */
.center .head { margin-left: auto; margin-right: auto; text-align: center; }
.plan {
  max-width: 480px; margin: 0 auto; background: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 32px 30px 30px;
}
.plan .price { font: 800 clamp(42px, 8vw, 58px)/1 var(--dotfont); margin: 16px 0 6px; }
.plan .per { margin: 0; font: 500 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan .cap.live { gap: 10px; }
.plan .fine { margin-top: 20px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid var(--ink);
}

/* FAQ */
.faq { display: grid; gap: 10px; width: 100%; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 24px; text-align: center;
  font: 800 17px/1 var(--dotfont); color: var(--muted);
}
.faq details[open] summary::after { content: "–"; color: var(--accent); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 64px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.fine { font-size: 13px; color: var(--muted); max-width: 560px; margin: 12px 0 0; }

/* Text pages (privacy, terms) */
.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font: 800 clamp(28px, 4.4vw, 44px)/1 var(--dotfont); margin: 18px 0 14px; }
.doc h2 { font: 600 16px/1.3 var(--sans); margin: 40px 0 8px; }
.doc p { color: var(--muted); }
.draft {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
}

/* inline commands in FAQ */
details code, .doc code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.plan .price .cents { font: 700 .42em/1 var(--sans); letter-spacing: 0; vertical-align: .95em; margin-left: .08em; }

/* Why: two lanes (the official way vs ChatShift) */
:root { --no: #c8402c; --yes: #1d8f4e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --no: #ff6a55; --yes: #3ccf7d; } }
:root[data-theme="dark"] { --no: #ff6a55; --yes: #3ccf7d; }
.why .head h2 .pt, .lane .say .pt {
  display: inline-block; width: .16em; height: .16em; border-radius: 50%; margin-left: .06em;
  background: var(--accent); vertical-align: baseline;
}
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lane {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 24px; position: relative; overflow: hidden;
}
.lane-yes { border: 2px solid var(--ink); }
.lane .say { font: 900 clamp(26px, 3.6vw, 40px)/1 var(--dotfont); margin: 12px 0 22px; letter-spacing: .01em; }
.lane-no .say { color: var(--muted); }
.lane-no .say .pt { background: var(--no); }
.lane-yes .say .pt { background: var(--yes); }
.lane ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: step; }
.lane li {
  counter-increment: step; display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-top: 1px dashed var(--line); font-size: 16px;
}
.lane li::before {
  content: counter(step, decimal-leading-zero); font: 500 11px/1 var(--mono); color: var(--muted); width: 18px;
}
.lane .mk { flex: none; width: 22px; height: 22px; border-radius: 50%; position: relative; }
.lane-no .mk { border: 1.5px solid var(--no); }
.lane-no .mk::before, .lane-no .mk::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--no);
  transform: translate(-50%, -50%) rotate(45deg);
}
.lane-no .mk::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lane-yes .mk { background: var(--yes); }
.lane-yes .mk::after {
  content: ""; position: absolute; left: 7px; top: 5px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.lane-no s { color: var(--muted); text-decoration: none;
  background: linear-gradient(var(--no), var(--no)) no-repeat 0 55% / 100% 1.5px; }
.lane .foot { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.lane-yes .foot { color: var(--ink); }
@media (max-width: 760px) {
  .lanes { grid-template-columns: 1fr; }
  .lane { padding: 22px 18px 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .lane li { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
  .js .lane.in li { opacity: 1; transform: none; }
  .js .lane.in li:nth-child(2) { transition-delay: .12s; }
  .js .lane.in li:nth-child(3) { transition-delay: .24s; }
  .js .lane.in li:nth-child(4) { transition-delay: .36s; }
  .js .lane-no s { background-size: 0 1.5px; transition: background-size .6s ease .5s; }
  .js .lane-no.in s { background-size: 100% 1.5px; }
  .js .lane-yes.in .mk { animation: pop .4s ease both; }
  .js .lane-yes.in li:nth-child(2) .mk { animation-delay: .12s; }
  .js .lane-yes.in li:nth-child(3) .mk { animation-delay: .24s; }
  .js .lane-yes.in li:nth-child(4) .mk { animation-delay: .36s; }
  @keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Light/dark switch (same as lanshare.io): follows the system until the visitor picks one. */
.theme-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: border-color .18s ease, transform .18s ease; }
.theme-btn:hover { border-color: var(--ink); }
.theme-btn:active { transform: scale(.94); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
html.theme-fade, html.theme-fade * { transition: background-color .3s ease, color .3s ease, border-color .3s ease !important; }
@media (max-width: 600px) { .theme-btn { width: 36px; height: 36px; } }

/* Let AI do the transfer (MCP server): setup steps, a mock chat transcript, safety notes */
.ai .head h2 .pt {
  display: inline-block; width: .16em; height: .16em; border-radius: 50%; margin-left: .06em; background: var(--accent);
}
.ai-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.ai-setup { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; min-width: 0; }
.ai-setup li { min-width: 0; }
.ai-setup .n { font: 800 26px/1 var(--dotfont); color: var(--accent); }
.ai-setup h3 { font: 900 clamp(19px, 2vw, 23px)/1.1 var(--dotfont); margin: 8px 0 10px; }
.ai-setup p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.ai-setup p b { color: var(--ink); font-weight: 600; }
.ai-setup p.small { font-size: 13px; }
.ai-setup p > code {
  font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; color: var(--ink);
}
.cmd {
  position: relative; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); min-width: 0;
}
.cmd pre {
  margin: 0; padding: 14px 84px 14px 16px; overflow-x: auto;
  font: 12.5px/1.55 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere;
}
.cmd .copy {
  position: absolute; top: 9px; right: 9px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px;
  padding: 7px 11px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .15s ease;
}
.cmd .copy:hover { border-color: var(--ink); }
.cmd .copy.done { border-color: var(--accent); color: var(--accent); }
.no-js .cmd .copy { display: none; }
.no-js .cmd pre { padding-right: 16px; }

/* Transcript card */
.chat {
  margin: 0; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; min-width: 0;
}
.chat-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.chat-bar .cap { font-size: 11px; }
.chat-bar .cap.live { color: var(--ink); }
.chat-log { list-style: none; margin: 0; padding: 18px; display: grid; gap: 10px; }
.msg { min-width: 0; }
.msg p { margin: 0; font-size: 14px; line-height: 1.45; }
.msg .who {
  display: block; margin-bottom: 5px; color: var(--muted);
  font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
}
.msg.me { justify-self: end; max-width: 85%; }
.msg.me p { background: var(--ink); color: var(--on-ink); padding: 9px 13px; border-radius: 16px 16px 4px 16px; }
.msg.me .who { text-align: right; }
.msg.ai { max-width: 92%; }
.msg.ai p b { font-weight: 600; }
.msg.tool {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  border-left: 2px solid var(--accent); padding: 4px 0 4px 12px;
  font: 12px/1.45 var(--mono); color: var(--muted);
}
.msg.tool code { color: var(--accent); font: 600 12px/1.45 var(--mono); overflow-wrap: anywhere; }
.msg.tool code::before { content: "▸ "; }
.msg.tool .bar {
  flex: 1 1 100%; height: 6px; overflow: hidden;
  background: radial-gradient(var(--dot) 1.2px, transparent 1.6px) 0 50% / 6px 6px repeat-x;
}
.msg.tool .bar i {
  display: block; height: 100%; width: 100%;
  background: radial-gradient(var(--accent) 1.8px, transparent 2.2px) 0 50% / 6px 6px repeat-x;
}
.chat figcaption { padding: 0 18px 16px; font-size: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .js .chat .msg { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
  .js .chat.in .msg { opacity: 1; transform: none; }
  .js .chat.in .msg:nth-child(2) { transition-delay: .5s; }
  .js .chat.in .msg:nth-child(3) { transition-delay: 1s; }
  .js .chat.in .msg:nth-child(4) { transition-delay: 1.6s; }
  .js .chat.in .msg:nth-child(5) { transition-delay: 2.1s; }
  .js .chat.in .msg:nth-child(6) { transition-delay: 3.7s; }
  .js .chat.in .msg:nth-child(7) { transition-delay: 4.3s; }
  .js .chat.in .msg:nth-child(8) { transition-delay: 4.9s; }
  .js .chat.in .msg:nth-child(9) { transition-delay: 5.6s; }
  .js .chat.in .msg:nth-child(10) { transition-delay: 6.1s; }
  .js .chat.in .msg:nth-child(11) { transition-delay: 6.7s; }
  .js .chat .bar i { width: 0; transition: width 1.4s cubic-bezier(.3, .6, .3, 1) 2.3s; }
  .js .chat.in .bar i { width: 100%; }
  /* the card itself stays put; only the messages appear one by one */
  .js .chat.reveal { opacity: 1; transform: none; }
}

/* Safety notes */
.ai-safe {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px;
}
.ai-safe li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 16px 16px 15px; font-size: 13px; line-height: 1.5; color: var(--muted);
}
.ai-safe b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.ai-safe b::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  margin-right: 8px; vertical-align: .1em;
}
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) {
  .chat-log { padding: 14px; }
  .msg.me { max-width: 92%; }
  .ai-safe { margin-top: 28px; }
}
