/* LAN Share website: one stylesheet for every page. No build step. */

@font-face {
  font-family: "Doto";
  src: url("fonts/Doto.ttf") format("truetype");
  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);
  --red: #d71921;
  --on-ink: #ffffff;
  --code-bg: #0b0b0b;
  --code-ink: #ececec;
  --radius: 22px;
  --radius-s: 14px;
  --max: 1160px;
  --gutter: 24px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Ubuntu, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains 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);
    --on-ink: #000000;
    --code-bg: #161616;
    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); --on-ink: #000000; --code-bg: #161616;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

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

/* Doto with round dots everywhere it's used */
.dotf, .brand span, .head h2, .hero h1, .strip b, .gallery figcaption b, .card .n,
.plan .price, .zero b, .faq summary::after, .doc h1 { font-variation-settings: "ROND" 100; }

/* Type helpers */
.cap {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.dotf { font-family: var(--dotfont); font-weight: 700; letter-spacing: 0.02em; }
.red { color: var(--red); }
.muted { color: var(--muted); }

/* Dot grid background */
.dots {
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.6px);
  background-size: 14px 14px;
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font: 700 20px/1 var(--dotfont); letter-spacing: 0.06em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.lang {
  font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px;
}
.lang:hover { border-color: var(--ink); }
@media (max-width: 860px) { .nav { display: none; } .lang { margin-left: auto; } }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: 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, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.action { background: var(--red); border-color: var(--red); color: #fff; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn small { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
@media (max-width: 480px) { .btns .btn { flex: 1 1 100%; justify-content: center; } }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 18px 6px 14px;
  border-radius: 12px; border: 1px dashed var(--muted); text-decoration: none; color: var(--ink);
}
.store-badge svg { width: 22px; height: 22px; }
.store-badge b { display: block; font: 600 15px/1.1 var(--sans); }
.store-badge i { display: block; font: 500 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--muted); }

/* Sections */
section { padding: 120px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; }
@media (max-width: 600px) { section { padding: 72px 0; } }
.head { max-width: 760px; margin-bottom: 52px; }
.head h2, .bigh { font: 900 clamp(34px, 5.4vw, 60px)/1.06 var(--dotfont); letter-spacing: 0.01em; margin: 14px 0 18px; text-wrap: balance; }
.head p, .sub { margin: 0; color: var(--muted); font-size: 18px; max-width: 60ch; }

/* Hero */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 {
  font: 800 clamp(56px, 10vw, 128px)/0.92 var(--dotfont);
  letter-spacing: 0.02em; margin: 18px 0 22px;
}
.hero h1 .pt { display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--red); margin-left: .06em; }
.hero .lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; margin: 0 0 30px; max-width: 34ch; }
.hero .note { margin-top: 18px; font: 500 12px/1.6 var(--mono); letter-spacing: .06em; color: var(--muted); }
.hero .shot {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.45);
  aspect-ratio: 16 / 10; background: #000;
}
.hero .backdrop { position: absolute; inset: 0; z-index: -1; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 25%, transparent); }
@media (max-width: 960px) {
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
}

/* 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: 56px; }
.strip div { background: var(--surface); padding: 28px 26px 24px; }
.strip b { display: block; font: 800 clamp(44px, 6vw, 64px)/1 var(--dotfont); margin-bottom: 12px; }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, 1fr); } }

/* Screenshots */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 880px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px;
  margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: thin;
}
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery img { border-radius: var(--radius-s); border: 1px solid var(--line); aspect-ratio: 16 / 10; width: 100%; height: auto; background: #000; }
.gallery figcaption { margin-top: 12px; display: flex; gap: 12px; align-items: baseline; }
.gallery figcaption b { font: 700 18px/1 var(--dotfont); color: var(--red); }
@media (max-width: 600px) { .gallery { grid-auto-columns: 88%; } }
.hint { margin-top: 6px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 24px; position: relative;
}
.card h3 { margin: 18px 0 8px; font: 600 19px/1.3 var(--sans); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .n { font: 700 22px/1 var(--dotfont); }
.tag {
  position: absolute; top: 24px; right: 22px;
  font: 600 10px/1 var(--mono); letter-spacing: .16em; padding: 5px 8px; border-radius: 6px;
  border: 1px solid var(--ink);
}
.tag.solid { background: var(--ink); color: var(--on-ink); }
.platnote { margin-top: 22px; font-size: 14px; }

/* MCP */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.bubble { border-radius: 18px; padding: 14px 16px; max-width: 92%; font-size: 15.5px; }
.bubble.me { justify-self: end; background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 6px; }
.bubble.ai { background: var(--surface-2); border-bottom-left-radius: 6px; }
.bubble .tool { display: block; font: 500 12px/1.6 var(--mono); color: var(--muted); margin-bottom: 6px; }
.term { background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.term .bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.term .bar .cap { color: #8e8e88; }
.term pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.6 var(--mono); }
.term pre .p { color: var(--red); user-select: none; }
.copy {
  font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  background: transparent; color: #ececec; border: 1px solid #3a3a3a; border-radius: 999px; padding: 7px 12px; cursor: pointer;
}
.copy:hover { border-color: #ececec; }
.term + .term { margin-top: 16px; }
.small { font-size: 14px; }
.bullets { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bullets li { padding-left: 22px; position: relative; color: var(--muted); font-size: 15.5px; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font: 600 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.cmp thead th.us { color: var(--ink); }
.cmp tbody th { font-weight: 600; width: 26%; }
.cmp td.us { font-weight: 600; }
.cmp .q { color: var(--muted); }
.footnote { margin-top: 14px; font-size: 13.5px; color: var(--muted); max-width: 820px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--ink); border-width: 2px; }
.plan .price { font: 800 clamp(44px, 11vw, 64px)/1 var(--dotfont); margin: 16px 0 6px; white-space: nowrap; }
.plan .price small { font: 500 14px/1 var(--mono); letter-spacing: .1em; color: var(--muted); margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { padding-left: 26px; position: relative; font-size: 15.5px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.plan.pro li::before { background: var(--ink); }
.plan .btns { margin-top: auto; }
.plan .fine { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* Privacy */
.zeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 760px) { .zeros { grid-template-columns: 1fr; } }
.zero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.zero b { display: block; font: 800 clamp(64px, 9vw, 96px)/1 var(--dotfont); margin: 14px 0 12px; }
.zero p { margin: 0; color: var(--muted); }
.warn {
  border: 1px solid var(--red); border-radius: var(--radius); padding: 22px 26px; background: color-mix(in srgb, var(--red) 6%, var(--surface));
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
}
.warn .cap { color: var(--red); }
.warn p { margin: 6px 0 0; }
.warn svg { width: 26px; height: 26px; color: var(--red); margin-top: 2px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.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; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 20px/1 var(--dotfont); color: var(--muted); }
.faq details[open] summary::after { content: "–"; color: var(--red); }
.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: 10px 22px; }
footer nav a { text-decoration: none; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
footer nav a:hover { color: var(--ink); }
footer .fine { font-size: 13px; color: var(--muted); max-width: 520px; }

/* Text pages (privacy, support) */
.doc { padding: 64px 0 80px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font: 800 clamp(40px, 7vw, 72px)/1 var(--dotfont); margin: 14px 0 18px; }
.doc h2 { font: 600 22px/1.3 var(--sans); margin: 44px 0 10px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .lead { font-size: 19px; color: var(--muted); }
.doc code { font: 14px/1.5 var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 6px; word-break: break-word; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; }
.doc .box p { margin: 0; }
.doc .box .cap { margin-bottom: 8px; }

/* Placeholder marker: visible only while a link still points to "#" */
[data-todo]:not([data-ready])::after {
  content: "TODO"; font: 600 9px/1 var(--mono); letter-spacing: .14em; margin-left: 8px;
  padding: 3px 5px; border-radius: 4px; background: var(--red); color: #fff; vertical-align: middle;
}

code { font: .88em/1.4 var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.term pre, .term code { background: none; padding: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 960px) { .platforms { grid-template-columns: 1fr; } }
.platform { border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); }
.platform header h3 { font: 700 32px/1 var(--dotfont); margin: 0 0 8px; letter-spacing: .02em; }
.platform ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.platform code { font: 500 12.5px var(--mono); }
.platform .btn { align-self: flex-start; margin-top: auto; }
.platform ul { flex: 1 0 auto; align-content: start; }
.platform .pshot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line, rgba(127,127,127,.25)); }
.platform .pshot img { display: block; width: 100%; height: auto; }
a.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }

/* Download page */
.release { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px 24px; margin: 22px 0; }
.release header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.release h2 { font: 700 26px/1 var(--mono); margin: 0; display: flex; align-items: center; gap: 12px; }
.release .tag { position: static; }
.release table.files { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.release th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 8px 0; }
.release td { padding: 10px 10px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.release td.num { white-space: nowrap; font-family: var(--mono); }
.release code.sha { font: 12.5px/1.5 var(--mono); word-break: break-all; color: var(--ink); user-select: all; }
.tablewrap { overflow-x: auto; }
/* Download page: the newest version per platform, with its checksum. */
.latestgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 28px 0 8px; }
.latestgrid .platform { scroll-margin-top: 90px; gap: 12px; }
.latestgrid .platform:target { border-color: var(--ink); }
.latestgrid .platform h3 { font: 700 28px/1 var(--dotfont); margin: 0 0 6px; }
.latestgrid .meta { font: 12px/1.4 var(--mono); color: var(--muted); }
/* The checksum in full, easy to read and to select, with a copy button beside it. */
.latestgrid .shabox { display: flex; gap: 8px; align-items: stretch; margin-top: 4px; }
.latestgrid code.sha { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: 13px/1.6 var(--mono); word-break: break-all; color: var(--ink); background: var(--bg); user-select: all; }
.latestgrid .copy { flex: none; align-self: stretch; color: var(--ink); border-color: var(--line); border-radius: 10px; }
.latestgrid .copy:hover { border-color: var(--ink); }
.latestgrid .verify { font: 11.5px/1.45 var(--mono); background: var(--code-bg); color: var(--code-ink); border-radius: 10px; padding: 10px 12px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.latestgrid .btn { align-self: flex-start; margin-top: 0; }
.installnotes { margin-top: 40px; }
.installnotes h2 { font: 700 26px/1 var(--dotfont); }


/* ===== Additions: header CTA, hero stage, steps, phone band, motion, accessibility ===== */

/* Accessibility helpers */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 10px; font: 600 14px/1 var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn:focus-visible, .copy:focus-visible { outline-offset: 3px; }
.faq summary:focus-visible { outline-offset: 6px; border-radius: 6px; }
.gallery:focus-visible { outline-offset: -2px; border-radius: var(--radius-s); }

/* Header: a compact download button, always visible */
.btn.sm { min-height: 36px; padding: 0 16px; font-size: 13.5px; }
.top .nav { margin-left: auto; }
.navcta { flex: none; }
@media (max-width: 860px) { .navcta { margin-left: auto; } }
.top .btns .btn, .top .btn.sm { flex: none; }

/* Buttons: smoother hover */
.btn { transition: transform .18s cubic-bezier(.2,.7,.2,1), background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.btn:not(.ghost):hover { box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--ink) 60%, transparent); }
.btn:active { transform: translateY(0); }

/* Hero buttons: one row on desktop; the visitor's system is the filled one */
.hero-btns { flex-wrap: nowrap; }
.hero-btns .btn { padding: 0 20px; }
.hero-btns .btn.ghost .pre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1080px) and (min-width: 961px) { .hero-btns { flex-wrap: wrap; } }
@media (max-width: 560px) { .hero-btns { flex-wrap: wrap; } .hero-btns .btn { flex: 1 1 auto; justify-content: center; } .hero-btns .btn.primary { flex-basis: 100%; } }

/* Hero stage: the animated dot-matrix transfer */
.stage {
  margin: 0; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 20px; box-shadow: 0 40px 90px -50px rgba(0,0,0,.5);
}
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.stage-bar .cap { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-bar .arrow { color: var(--ink); }
.stage-bar .chip { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; font-size: 10px; }
.stage canvas { display: block; width: 100%; aspect-ratio: 56 / 27; }
.stage-read { display: flex; align-items: flex-end; gap: 18px; margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.stage-read .pct { font: 800 54px/0.9 var(--dotfont); font-variant-numeric: tabular-nums; min-width: 3.3ch; text-align: right; display: flex; align-items: baseline; justify-content: flex-end; }
.stage-read .pct i { font-style: normal; font-family: var(--mono); font-weight: 500; font-size: .36em; color: var(--muted); margin-left: 2px; }
.stage-read .facts { display: grid; gap: 6px; min-width: 0; }
.stage-read .facts .cap { color: var(--ink); font-size: 11px; }
.stage-read .row { font: 13px/1.4 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .stage { padding: 14px 14px 16px; } .stage-read .pct { font-size: 42px; } .stage-read .row { font-size: 12px; } }

/* Big real screenshot under the hero */
.showcase { margin: 72px 0 0; }
.showcase img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 10;
  box-shadow: 0 50px 120px -60px rgba(0,0,0,.6);
}
.showcase figcaption { margin-top: 14px; text-align: center; }
.strip { margin-top: 40px; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 26px; position: relative; }
.step .glyph { width: 88px; height: 72px; margin-bottom: 22px; }
.step .n { font: 700 22px/1 var(--dotfont); color: var(--muted); }
.step h3 { margin: 10px 0 8px; font: 600 21px/1.3 var(--sans); }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 64px; 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; } }

/* Dot glyphs */
.dotglyph { display: block; width: 100%; height: 100%; overflow: visible; }
.dotglyph .off { fill: var(--dot); }
.dotglyph .on { fill: var(--ink); transform-box: fill-box; transform-origin: center; }
.step:last-child .dotglyph .on:last-child { fill: var(--red); }

/* Phone band: always dark, the page's change of pace */
.band {
  --ink: #f2f2f2; --muted: #9a9a93; --line: #2a2a2a; --dot: rgba(255,255,255,.14); --surface: #151515; --surface-2: #1d1d1d; --on-ink: #000;
  background: #0b0b0b; color: var(--ink); border-top: 0;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: #0d0d0d; border-top: 1px solid #1f1f1f; border-bottom: 1px solid #1f1f1f; } }
.band .tag.inline { position: static; display: inline-block; margin-right: 10px; vertical-align: 1px; }
.band .bullets li::before { background: var(--ink); }
.phone-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .phone-split { grid-template-columns: 1fr; gap: 48px; } }
.phone-vis { display: flex; justify-content: center; }
.phone { position: relative; width: min(250px, 70vw); aspect-ratio: 19 / 35; }
.phone-dots { position: absolute; inset: 0; }
.qr { position: absolute; left: 15.8%; width: 68.4%; top: 17%; aspect-ratio: 1; overflow: hidden; }
.qr .off { display: none; }
.qr .scan { position: absolute; inset: 0; pointer-events: none; }
.qr .scan::before {
  content: ""; position: absolute; left: -2%; right: -2%; top: 0; height: 3px; border-radius: 2px;
  background: var(--red); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--red) 55%, transparent); opacity: .85;
}
.motion .qr .scan { animation: scan 3.4s cubic-bezier(.45,0,.55,1) infinite alternate; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(calc(100% - 3px)); } }
.phone-cap { position: absolute; left: 0; right: 0; top: 72%; text-align: center; display: grid; gap: 6px; }
.phone-cap .cap { font-size: 10px; }
.phone-cap b { font: 800 34px/1 var(--dotfont); font-variant-numeric: tabular-nums; }

/* Cards: hover polish */
.card, .step, .platform, .plan, .zero, .strip div {
  transition: translate .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .card:hover, .step:hover, .platforms .platform:hover, .zero:hover {
    translate: 0 -3px; border-color: color-mix(in srgb, var(--ink) 28%, var(--line));
    box-shadow: 0 22px 44px -30px rgba(0,0,0,.45);
  }
  .card:hover .n { color: var(--red); }
}
.card .n { transition: color .2s ease; }

/* Scroll reveal (only when JS adds .rv; never with reduced motion) */
.motion .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .rv.in:hover { transition-delay: 0ms; }
.motion .step.rv .dotglyph .on { opacity: 0; transform: scale(.3); transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0ms) + 250ms + var(--i) * 22ms); }
.motion .step.rv.in .dotglyph .on { opacity: 1; transform: none; }

/* Text pages */
.doc .wrap > h1 + .lead, .doc h1 + .lead { max-width: 62ch; }
.dl .wrap { max-width: var(--max); }
.dl .dlh { margin-top: 64px; font: 700 clamp(28px, 4vw, 40px)/1.1 var(--dotfont); }
.buy .wrap { max-width: 680px; }
.latestgrid .platform { position: relative; }
.latestgrid .platform.mine { border-color: var(--ink); }
.latestgrid .platform .tag { top: 22px; }
.doc .box { transition: none; }

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

/* Doto with round dots. Last, because the font shorthand above resets variation settings. */
.dotf, .brand span, .head h2, .bigh, .hero h1, .strip b, .gallery figcaption b, .card .n, .step .n,
.plan .price, .zero b, .faq summary::after, .doc h1, .stage-read .pct, .phone-cap b, .platform header h3,
.latestgrid .platform h3, .dl .dlh, .installnotes h2 { font-variation-settings: "ROND" 100; }

/* Grid children may shrink below their content (long mono lines ellipsize instead of widening the page) */
.hero .grid > *, .phone-split > *, .split > * { min-width: 0; }
@media (max-width: 600px) { .hero h1 { font-size: min(22vw, 96px); } .hero { padding-top: 48px; } }
.dl .installnotes { padding: 48px 0 0; margin-top: 56px; }
@media (max-width: 700px) { .release table.files { min-width: 620px; } .release code.sha { word-break: normal; white-space: nowrap; } }

/* ---- AI / MCP section ---- */
.mcp-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; margin-top: 8px; }
@media (max-width: 960px) { .mcp-grid { grid-template-columns: 1fr; } }
.agent { margin: 0; background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.agent-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); font: 500 12px/1 var(--mono); color: #9a9a94; }
.agent-bar .cap { margin-left: auto; color: #9a9a94; }
.agent-bar .dots { display: inline-flex; gap: 6px; }
.agent-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.agent-bar .dots i:first-child { background: var(--red); }
.agent-body { padding: 18px; display: grid; gap: 12px; font-size: 14.5px; line-height: 1.5; }
.msg b { display: block; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8e8e88; margin-bottom: 6px; }
.msg.you { color: #fff; }
.msg.ai { color: #d9d9d4; }
.call { border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.03); display: grid; gap: 10px; }
.call-head { display: flex; justify-content: space-between; gap: 10px; font: 500 12.5px/1.3 var(--mono); }
.call-head .fn { color: #fff; }
.call-head .ok { color: #8e8e88; white-space: nowrap; }
.call pre { margin: 0; font: 12.5px/1.6 var(--mono); color: #b9b9b3; white-space: pre-wrap; }
.hosts { display: flex; flex-wrap: wrap; gap: 8px; }
.hosts span { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 5px 10px; font: 500 12px/1 var(--mono); color: #d9d9d4; }
.hosts em { font-style: normal; color: #8e8e88; }
.hosts i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #6a6a64; }
.hosts i.on { background: #e9e9e4; border-color: #e9e9e4; }
.run { display: grid; gap: 8px; font: 12px/1.4 var(--mono); color: #b9b9b3; }
.run .bar { height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 6px, transparent 6px 9px); overflow: hidden; position: relative; }
.run .bar i { position: absolute; inset: 0; width: 100%; background: repeating-linear-gradient(90deg, #e9e9e4 0 6px, transparent 6px 9px); }
.run .bar i::after { content: ""; position: absolute; right: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.share { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: #b9b9b3; }
.share .qr { flex: none; width: 46px; height: 46px; border-radius: 6px; background:
  radial-gradient(circle, #e9e9e4 1.6px, transparent 1.9px) 0 0 / 6.5px 6.5px; outline: 1px solid rgba(255,255,255,.12); outline-offset: 3px; }
.mcp-side { display: grid; gap: 16px; }
.setup .tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.setup .tabs button { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.setup .tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.setup .tabs button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.setup .small { margin: 10px 0 0; }
.guard { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guard li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px 14px 40px; position: relative; font-size: 14.5px; color: var(--muted); }
.guard li::before { content: ""; position: absolute; left: 16px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.guard b { color: var(--ink); }
.toolset { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 960px) { .toolset { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .toolset { grid-template-columns: 1fr; } }
.tg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px; }
.tg dl { margin: 12px 0 0; display: grid; gap: 10px; }
.tg dt { font: 600 12.5px/1.3 var(--mono); color: var(--ink); }
.tg dd { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
/* The conversation plays in once when it comes into view (not with reduced motion). */
.motion .agent-body[data-play] > * { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.motion .agent-body.play > * { opacity: 1; transform: none; }
.motion .agent-body.play .run .bar i { animation: mcp-fill 2.4s ease-out both; animation-delay: var(--pd, 0ms); }
@keyframes mcp-fill { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .agent-body > * { opacity: 1 !important; transform: none !important; } .run .bar i { animation: none !important; } }
/* FAQ: the +/– sits in the middle of the row */
.faq summary { align-items: center; }
.faq summary::after { flex: none; display: grid; place-items: center; width: 24px; height: 24px; line-height: 24px; }
