/* Shared by the landing page and every other page (src/layouts/Page.astro). */
/* Poppins, self-hosted (latin subset, SIL OFL: assets/fonts/OFL.txt) */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/poppins-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/poppins-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/poppins-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f6f7f7;
  --surface: #ffffff;
  --panel: #edf0f0;
  --ink: #121a1d;
  --ink-2: #56636a;
  --line: #dde3e4;
  --accent: #2563c9;
  --accent-soft: #e4ecfa;
  --on: #1f9d63;
  --off: #c5cdcf;
  --jack: #ffffff;
  --jack-ring: #9aa7ac;
  --hole: #1c2427;
  --avatar: #eef2f2;
  --tint-before: #f8eeeb; --tint-now: #e8f4ec;
  --red: #e0533d; --amber: #dc9a22; --blue: #2b8fd6; --green: #2f9e6a; --slate: #7f8f97;
  --shadow: 0 1px 2px rgba(18,26,29,.06), 0 4px 14px rgba(18,26,29,.06);
  /* Telegram (light) */
  --tg-head: #ffffff; --tg-wall: #c8dbb4; --tg-wall-2: #a9c9a6; --tg-in: #ffffff; --tg-out: #effdde; --tg-text: #000000;
  --tg-time: #66727b; --tg-time-out: #447d41; --tg-link: #1377b0; --tg-svc: rgba(60, 80, 60, .38); --tg-btn: rgba(60, 80, 60, .32);
  --tg-sub: #66727b; --tg-bar: #ffffff; --tg-icon: #6f767b;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Poppins", system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1416; --surface: #172024; --panel: #141c1f; --ink: #e8eef0; --ink-2: #9db0b6; --line: #263236;
    --accent: #7aaeff; --accent-soft: #1b2a40; --on: #3ccf8e; --off: #33434a; --jack: #1d282c; --jack-ring: #5c6e75; --hole: #070b0c; --avatar: #e3e9ea; --tint-before: #1c1414; --tint-now: #0f1d16;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
    --tg-head: #17212b; --tg-wall: #0e1621; --tg-wall-2: #0e1621; --tg-in: #182533; --tg-out: #2b5278; --tg-text: #f5f5f5;
    --tg-time: #7b8fa0; --tg-time-out: #aac6e2; --tg-link: #71baf2; --tg-svc: rgba(0,0,0,.35); --tg-btn: rgba(255,255,255,.08);
    --tg-sub: #7b8fa0; --tg-bar: #17212b; --tg-icon: #7b8fa0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1416; --surface: #172024; --panel: #141c1f; --ink: #e8eef0; --ink-2: #9db0b6; --line: #263236;
  --accent: #7aaeff; --accent-soft: #1b2a40; --on: #3ccf8e; --off: #33434a; --jack: #1d282c; --jack-ring: #5c6e75; --hole: #070b0c; --avatar: #e3e9ea; --tint-before: #1c1414; --tint-now: #0f1d16;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
  --tg-head: #17212b; --tg-wall: #0e1621; --tg-wall-2: #0e1621; --tg-in: #182533; --tg-out: #2b5278; --tg-text: #f5f5f5;
  --tg-time: #7b8fa0; --tg-time-out: #aac6e2; --tg-link: #71baf2; --tg-svc: rgba(0,0,0,.35); --tg-btn: rgba(255,255,255,.08);
  --tg-sub: #7b8fa0; --tg-bar: #17212b; --tg-icon: #7b8fa0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-soft); color: var(--ink); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

h2 { font: 600 clamp(30px, 3.4vw, 42px)/1.15 var(--sans); letter-spacing: -0.02em; margin: 0 0 14px; }
h3 { font: 600 18px/1.35 var(--sans); margin: 0 0 4px; }
.sub { color: var(--ink-2); margin: 0; max-width: 32em; }

/* nav */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.top nav { display: flex; margin-right: -12px; }
.top nav a { color: var(--ink-2); text-decoration: none; padding: 10px 12px; font-size: 16px; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 600px) { .top nav .opt { display: none; } }

/* hero */
.hero { padding: 56px 0 40px; }
h1 { font: 600 clamp(38px, 6vw, 78px)/1.12 var(--sans); letter-spacing: -0.03em; margin: 0; }
/* rotating headline: "Add <bot> to <group> group", both slots flip to new values each time */
.slot { display: inline-block; position: relative; height: 1.2em; vertical-align: -0.25em; overflow: hidden; white-space: nowrap;
  transition: width .55s cubic-bezier(.3,.8,.2,1); }
.slot .it { position: absolute; left: 0; top: 0; line-height: 1.2em; display: inline-flex; align-items: center; gap: .2em; white-space: nowrap;
  transition: transform .55s cubic-bezier(.3,.8,.2,1), opacity .4s ease; }
.slot .it.below { transform: translateY(110%); } /* slide only (no fade): the slot clips it, and the text never dips below contrast mid-swap */
.slot .it.above { transform: translateY(-110%); }
.slot .ic { width: .82em; height: .82em; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--avatar); border: 1px solid var(--line); }
.slot .ic img { width: .5em; height: .5em; }
.slot .ic.g { border: 0; font: .48em/1 var(--emoji); width: 1.7em; height: 1.7em; }
#s-bot .nm-b { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .slot, .slot .it { transition: none; } }
.m-br { display: none; }
/* phones: two lines, sized so the longest bot name (Game Dev Agent) still fits on the first */
@media (max-width: 600px) { h1.rot { font-size: min(34px, calc((100vw - 32px) / 11.9)); white-space: nowrap; } }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 34em; margin: 28px 0 72px; }
.lede { font-size: 22px; line-height: 1.6; }
.lede .tg-chip:hover { text-decoration: none; filter: brightness(1.06); }
.lede .tg-chip { text-decoration: none; transition: filter .15s; display: inline-block; vertical-align: baseline !important; white-space: nowrap; padding: 2px 12px 2px 4px; margin: 0 2px; border-radius: 999px; line-height: 1.5;
  color: #fff; font-weight: 600; background: linear-gradient(180deg, #37aef0, #1e8fd6); box-shadow: 0 4px 14px rgba(30,143,214,.3); }
.lede .tg-chip img { width: 1.15em; height: 1.15em; border-radius: 50%; background: #fff; vertical-align: -0.28em; margin-right: 6px; }
.lede .em { font-family: var(--emoji); }
.lede .ln { display: block; }
.lede .ln + .ln { margin-top: 2px; }
.lede .was { color: var(--ink-2); }
.lede .now { color: var(--ink); font-weight: 500; margin-top: 20px !important; }
.lede .ln { line-height: 2.5; }
.lede.short { color: var(--ink-2); font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; max-width: none; }
.lede.short .l1 { display: flex; align-items: center; gap: .4em; flex-wrap: wrap; }
.lede.short .l1 + .l1 { margin-top: .3em; }
.lede.short .key { color: var(--ink); font-weight: 600; }
.lede.short .l3 { color: var(--ink); font-weight: 600; margin-top: .45em !important; }
.lede.short .mini { display: inline-flex; }
.lede.short .sav { flex: none; width: 1.3em; height: 1.3em; border-radius: 50%; display: grid; place-items: center; background: var(--avatar); border: .08em solid var(--bg); margin-left: -.32em; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.lede.short .sav:first-child { margin-left: 0; }
.lede.short .sav img { width: .72em; height: .72em; }
.lede.short .sav.full img { width: 100%; height: 100%; }
.lede.short .sav i { font: normal .7em/1 var(--emoji); }
.lede.short .tg-chip { font-size: 1em; }
@media (prefers-reduced-motion: no-preference) {
  .lede.short .l1 { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
  .lede.short .l1:nth-child(2) { animation-delay: .12s; } .lede.short .l1:nth-child(3) { animation-delay: .24s; }
}
.lede .chip, .lede .tg-chip { display: inline-flex !important; align-items: center; gap: 7px; height: 1.75em; padding: 0 12px 0 4px !important; margin: 0 5px !important;
  border-radius: 999px; line-height: 1 !important; white-space: nowrap; vertical-align: middle !important; position: relative; top: -0.08em; font-weight: 600; }
.lede .chip { --c: #7f8f97; color: color-mix(in srgb, var(--c) 72%, var(--ink)); background: color-mix(in srgb, var(--c) 16%, var(--bg)); border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); }
.lede .chip i, .lede .chip img, .lede .tg-chip img { flex: none; width: 1.35em !important; height: 1.35em !important; margin: 0 !important; vertical-align: 0 !important; border-radius: 50%; }
.lede .chip i { font: normal .8em/1 var(--emoji); display: grid; place-items: center; width: 1.7em !important; height: 1.7em !important; background: color-mix(in srgb, var(--c) 30%, var(--bg)); }
.lede .chip.sb img { border-radius: 5px; }
.lede .chip.sb { background: var(--ink); color: var(--bg); border-color: transparent; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.lede .tg-chip { border: 1px solid transparent; }
/* tiles lift and their emoji wiggles when you point at them */
.lede .chip, .lede .tg-chip { transition: transform .35s cubic-bezier(.3,1.6,.5,1), box-shadow .2s; }
.lede .chip { box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 30%, transparent), 0 6px 14px rgba(0,0,0,.08); }
.lede .chip:hover, .lede .tg-chip:hover { transform: scale(1.06) translateY(-2px); }
@media (prefers-reduced-motion: no-preference) { .lede .chip:hover i { animation: wig .5s ease-in-out; } }
@keyframes wig { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.lede .punch .hl { background: linear-gradient(transparent 62%, rgba(43,143,214,.35) 62%); padding: 0 2px; }
.lede .punch { margin-top: 26px; font-size: 1.15em; }
.lede .punch { display: block; margin-top: 6px; color: var(--ink); font-weight: 600; }
@media (max-width: 600px) { .lede { font-size: 19px; } .lede .tg-chip img { width: 22px; height: 22px; } }
.cmd-block { max-width: 760px; margin: 0 auto; text-align: center; }
.cmd-label { font-size: 16px; color: var(--ink-2); margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; }
.cmd-label .app-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; text-decoration: none; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); transition: background-color .15s, transform .1s; }
.cmd-label .app-link:hover { background: var(--panel); }
.cmd-help { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); text-align: center; }
.cmd-help a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cmd-label .app-link:active { transform: scale(.97); }
.cmd-label .app-link img { width: 20px; height: 20px; border-radius: 50%; }
.cmd code { text-align: left; }
.cmd { display: flex; align-items: center; gap: 10px; max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow); }
.cmd code { flex: 1; min-width: 0; font: 400 14px/1.5 var(--mono); color: var(--ink); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
/* the setup command always stays on one line; on narrow screens it scrolls sideways */
.btn-primary {
  flex: none; position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px 0 16px;
  border: 0; border-radius: 10px; cursor: pointer; font: 600 15px var(--sans); color: var(--bg);
  /* neutral ink, so it isn't mistaken for the Telegram pill above it; it turns green once copied */
  background: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 4px 14px rgba(0,0,0,.22);
  transition: transform .15s cubic-bezier(.3,1.4,.5,1), box-shadow .2s, background .3s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 22px rgba(0,0,0,.3); }
.btn-primary:active { transform: translateY(0) scale(.96); }
.btn-primary .bi { width: 18px; height: 18px; position: relative; flex: none; }
.btn-primary .bi > span { position: absolute; inset: 0; display: grid; place-items: center; font: 17px/1 var(--emoji); transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .2s; }
.btn-primary .bi .ok { transform: scale(0) rotate(-45deg); opacity: 0; }
.btn-primary[data-on] { color: #fff; background: linear-gradient(180deg, #34c27a, #1f9d63); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 4px 14px rgba(31,157,99,.4); }
.btn-primary[data-on] .bi .cp { transform: scale(0) rotate(45deg); opacity: 0; }
.btn-primary[data-on] .bi .ok { transform: none; opacity: 1; }
/* a soft shine that sweeps across now and then, to invite a click */
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--bg) 30%, transparent), transparent); transform: skewX(-20deg); }
@media (prefers-reduced-motion: no-preference) { .btn-primary:not([data-on])::after { animation: shine 4.5s ease-in-out 1.5s infinite; } }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.cmd-note { font-size: 15px; color: var(--ink-2); margin: 10px 0 0; }

/* board + chat */
.board-area { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; margin-top: 24px; align-items: stretch; }
@media (max-width: 600px) { .lede { margin-bottom: 48px; } .board-area { margin-top: 64px; } }
/* phones: the board and lock screen hold still for about a screen of scrolling, so people stop and watch */
.board-hold { display: none; }
@media (max-width: 600px) {
  .board-area { position: sticky; top: 64px; }
  .board-hold { display: block; height: 90svh; }
}
/* phones: each event shows as a notification on a lock screen under the board */
.lock { display: none; }
@media (max-width: 600px) {
  .board-area #chat { display: none; }
  .lock { display: flex; flex-direction: column; position: relative; overflow: hidden; border-radius: 22px; color: #fff;
    height: clamp(300px, calc(100svh - 64px - 200px - 26px), 640px); padding: 20px 10px 10px; isolation: isolate;
    background: radial-gradient(120% 70% at 15% 0%, #3d63d8 0%, transparent 62%), radial-gradient(110% 70% at 100% 100%, #c8503f 0%, transparent 58%), linear-gradient(165deg, #182746, #2b1a3c); }
  .lk-date { text-align: center; font: 600 15px var(--sans); opacity: .85; }
  .lk-time { text-align: center; font: 700 clamp(56px, 19vw, 78px)/1.05 var(--sans); letter-spacing: -.02em; }
  .lk-list { margin-top: auto; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
  .nt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px 11px 10px; border-radius: 18px; background: rgba(240,240,250,.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); transition: opacity .4s; }
  .nt:nth-child(n+4) { opacity: .55; }
  .nt-av { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 19px/1 var(--emoji); }
  .nt-av img { position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(30,30,40,.35); }
  .nt-main { flex: 1; min-width: 0; }
  .nt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.3; }
  .nt-top b { font-weight: 600; } .nt-top span { flex: none; font-size: 12.5px; opacity: .65; }
  .nt-txt { font-size: 14px; line-height: 1.32; opacity: .95; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .nt-txt .at { color: #a9dcff; }
  .nt-txt .who { font-weight: 700; } .nt-txt .who.ag { color: #ffd27a; } /* agents stand out from people */
  .lk-bar { flex: none; width: 120px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.8); margin: 12px auto 0; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .nt.new { animation: ntIn .6s cubic-bezier(.2,.9,.3,1.15) both; }
}
@keyframes ntIn { from { opacity: 0; transform: translateY(-16px) scale(.94); } }
/* phones: the board is a strip of eight across the top and the chat fills the rest, so both show on one screen */
@media (max-width: 600px) {
  .board-area { gap: 10px; }
  .board-card { padding: 8px 6px; border-radius: 18px; }
  .board-area #chat .tg-body { min-height: 0; height: clamp(170px, calc(100svh - 392px), 520px); }
}
@media (max-width: 980px) { .board-area { grid-template-columns: 1fr; } }
/* on wide screens the board breaks out of the text column so the illustration can be bigger */
@media (min-width: 1100px) { .board-area { width: min(1320px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); grid-template-columns: minmax(0, 1fr) 380px; } .board-card { padding: 22px 26px; } }
.board-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; align-items: center; }
.board { width: 100%; height: auto; display: block; user-select: none; -webkit-user-select: none; overflow: visible; }
.board .av-bg { fill: var(--avatar); stroke: var(--line); stroke-width: 1.5; }
.board .av-emoji { font: 24px var(--emoji); }
.board .nm, .board .role { stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; paint-order: stroke; }
.board .nm { fill: var(--ink); font: 600 13px var(--sans); }
.board .role { fill: var(--ink-2); font: 400 12px var(--sans); }
.board .role.agent { fill: var(--accent); font-weight: 500; }
.board.compact .nm { font-size: 15px; }
.board.compact .role { font-size: 13.5px; }
.board .badge { fill: var(--off); stroke: var(--surface); stroke-width: 3; transition: fill .3s ease-out; }
.board .badge.on { fill: var(--on); }
.board .ring { fill: var(--jack); stroke: var(--jack-ring); stroke-width: 1.5; transition: stroke .2s; }
.board .hole { fill: var(--hole); }
.board .jack.target .ring { stroke: var(--accent); stroke-width: 3; }
.board .cable path { fill: none; stroke-width: 5; stroke-linecap: round; }
.board .hub { cursor: pointer; outline: none; }
.board .hub .hub-bg { fill: var(--surface); stroke-width: 3.5; transition: r .2s; }
.board .hub .hub-emoji { font: 18px var(--emoji); pointer-events: none; }
.board .hub:hover .hub-bg, .board .hub.active .hub-bg { r: 22; }
.board .hub:focus-visible .hub-bg { stroke-width: 5; }
.board .plug { cursor: grab; touch-action: none; outline: none; }
.board .plug .grip { transition: transform .15s ease-out; transform-box: fill-box; transform-origin: center; }
.board .plug:hover .grip { transform: scale(1.08); }
.board .plug.held { cursor: grabbing; }
.board .plug.held .grip { transform: scale(1.14); filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.board .plug .halo { fill: none; stroke: var(--accent); stroke-width: 2.5; opacity: 0; }
.board .plug:focus-visible .halo { opacity: 1; }
.board .hit { fill: transparent; }
.btn-quiet { font: 500 14px var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; min-height: 40px; cursor: pointer; transition: background-color .15s, transform .1s; }
.btn-quiet:hover { background: var(--panel); }
.btn-quiet:active { transform: scale(.97); }

/* ---------- a Telegram chat window ---------- */
.tg { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; background: var(--tg-wall); }
.tg-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--tg-head); border-bottom: 1px solid var(--line); }
.tg-av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 21px var(--emoji); color: #fff; }
.tg-title { min-width: 0; flex: 1; }
.tg-title b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.25; color: var(--tg-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-title span { display: block; font-size: 13px; line-height: 1.3; color: var(--tg-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-icons { display: flex; gap: 14px; color: var(--tg-icon); }
.tg-icons svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tg-body {
  position: relative; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.22) 0 1.5px, transparent 2px) 0 0 / 34px 34px,
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.16) 0 1px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(160deg, var(--tg-wall), var(--tg-wall-2));
}
.board-area .tg-body { flex: 1; min-height: 380px; height: 0; justify-content: flex-end; }
@media (max-width: 980px) { .board-area .tg-body { height: 420px; flex: none; } }
.tm { display: flex; align-items: flex-end; gap: 6px; max-width: 92%; }
.tm .ava { width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--avatar); display: grid; place-items: center; font: 17px var(--emoji); overflow: hidden; }
.tm .ava img { width: 60%; height: 60%; }
.bub {
  position: relative; background: var(--tg-in); color: var(--tg-text); border-radius: 14px 14px 14px 4px;
  padding: 5px 10px 6px; font-size: 14.5px; line-height: 1.38; box-shadow: 0 1px 1px rgba(0,0,0,.12); min-width: 0;
}
.bub .from { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.35; color: color-mix(in srgb, var(--nc) 73%, #000); } /* Telegram's name colours, darkened to stay readable on white */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bub .from { color: var(--nc); } }
:root[data-theme="dark"] .bub .from { color: var(--nc); }
.bub .txt { overflow-wrap: anywhere; }
.bub .at { color: var(--tg-link); }
.bub .t { float: right; margin: 6px 0 -4px 10px; font-size: 11.5px; line-height: 1; color: var(--tg-time); white-space: nowrap; }
.tm.out { align-self: flex-end; flex-direction: row-reverse; }
.tm.out .bub { background: var(--tg-out); border-radius: 14px 14px 4px 14px; }
.tm.out .t { color: var(--tg-time-out); }
.tm.out .ava { display: none; }
.kb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 4px 0 0 38px; max-width: 82%; }
.kb span { background: var(--tg-btn); color: #fff; text-align: center; border-radius: 8px; padding: 6px 8px; font-size: 13.5px; font-weight: 500; }
.tsvc { align-self: center; background: var(--tg-svc); color: #fff; font-size: 13px; line-height: 1.3; padding: 3px 10px; border-radius: 12px; text-align: center; max-width: 90%; }
.tg-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--tg-bar); color: var(--tg-icon); font-size: 15px; border-top: 1px solid var(--line); }
.tg-bar span { flex: 1; }
.tg-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* sections */
section.band { padding: 112px 0; }
#faq { padding-bottom: 140px; }
@media (max-width: 600px) { section.band { padding: 80px 0; } }

/* story */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 40px; } }
.story .sub + .sub { margin-top: 12px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } }
.compare .tg-body { min-height: 300px; }
.compare .caption { margin: 12px 4px 0; font-size: 15px; font-weight: 500; }
.relay .bub { box-shadow: 0 0 0 2px #f0b429; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 40px; }
.features div { border-top: 1px solid var(--line); padding: 20px 0 28px; }
.features .e { display: block; font: 30px/1 var(--emoji); margin-bottom: 12px; }
.features p { margin: 0; color: var(--ink-2); font-size: 16px; }
.features kbd { font: 400 .92em var(--mono); background: var(--panel); padding: 1px 6px; border-radius: 5px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
/* scroll-in: the top line draws from the left, the emoji pops, the text rises */
.features div { position: relative; border-top-color: transparent; }
.features div::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform-origin: left; }
.features.scroll div::before { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.features.scroll div:not(.in)::before { transform: scaleX(0); }
.features.scroll .e { transition: transform .5s cubic-bezier(.3,1.6,.5,1) .15s, opacity .3s ease .15s; }
.features.scroll div:not(.in) .e { transform: scale(.3) rotate(-12deg); opacity: 0; }
.features.scroll h3, .features.scroll p { transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .55s ease; }
.features.scroll h3 { transition-delay: .25s; } .features.scroll p { transition-delay: .35s; }
.features.scroll div:not(.in) h3, .features.scroll div:not(.in) p { transform: translateY(12px); opacity: 0; }

/* setup */
.setup { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .setup { grid-template-columns: 1fr; gap: 36px; } }
.steps { list-style: none; margin: 0; padding: 0; position: relative; --p: 1; }
/* a track down the left that fills as you scroll; each step lights up when the fill reaches it */
.steps::before, .steps::after { content: ""; position: absolute; left: 21px; top: 26px; bottom: 30px; width: 2px; border-radius: 1px; background: var(--line); }
.steps::after { background: var(--on); transform-origin: top; transform: scaleY(var(--p)); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 14px 0; position: relative; z-index: 1; }
.steps li::before {
  content: attr(data-e); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 21px/1 var(--emoji);
  background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow);
  transition: border-color .35s, background-color .35s, transform .35s cubic-bezier(.3,1.5,.5,1), filter .35s, opacity .35s;
}
.steps li > div { padding-top: 2px; transition: color .35s, transform .35s ease-out; }
.steps.scroll li:not(.on)::before { filter: grayscale(1); opacity: .45; transform: scale(.85); }
.steps.scroll li:not(.on) > div { color: var(--ink-2); transform: translateX(-6px); }
.steps li.on::before { border-color: var(--on); }
.steps span { color: var(--ink-2); font-size: 16px; }
.e-inline { font-family: var(--emoji); font-weight: 400; margin-right: 6px; }
.mini-cmd { display: block; margin-top: 10px; }
.mini-cmd code { flex: 1; min-width: 0; background: none !important; padding: 0 !important; font: 400 13px/1.45 var(--mono); color: var(--ink); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.mini-cmd code::-webkit-scrollbar { display: none; }
.mini-cmd code a { color: inherit; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.mini-copy { flex: none; vertical-align: 2px; margin-left: 8px; border: 0; border-radius: 999px; min-height: 28px; padding: 0 11px; cursor: pointer; font: 600 12.5px var(--sans); color: #fff; background: linear-gradient(180deg, #37aef0, #1e8fd6); transition: transform .1s, background .3s; }
.mini-copy:active { transform: scale(.96); }
.mini-copy[data-on] { background: linear-gradient(180deg, #34c27a, #1f9d63); }
.steps code { font: 400 .92em var(--mono); background: var(--panel); padding: 1px 6px; border-radius: 5px; }
.platforms { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.plat { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; min-height: 44px; }
.plat:hover { text-decoration: underline; }
.plat img { width: 26px; height: 26px; }
.plat.soon { color: var(--ink-2); font-weight: 400; }
.plat.soon img { filter: grayscale(1); opacity: .55; }
.plat small { font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }

/* faq */
.faq { margin-top: 32px; max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 500; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 1.5px; background: var(--ink-2); transition: transform .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 38em; }
/* the links under the FAQ: the navbar's pill */
.faq-more { margin: 32px 0 0; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); }
.faq-more a { padding: 7px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .25s, background .25s; }
.faq-more a:hover { color: var(--bg); background: var(--ink); }
@media (max-width: 600px) { .faq-more a { padding: 7px 10px; font-size: 13.5px; } }

/* footer */
/* the footer pins to the bottom of the screen while a short stretch of extra scroll plays its reveal */
.foot-space { height: 90vh; }
/* the footer is a full-screen finale: it pins to the top, the tagline sits centred above the wordmark,
   and the extra scroll below plays the reveal */
.foot-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; }
.foot-pin .foot-top { flex: 1; align-items: center; padding-top: 72px; }
.foot-pin .foot-tag { font-size: clamp(30px, min(5.6vw, 9vh), 80px); }
@media (max-width: 600px) { .site-foot .foot-pin .foot-tag { font-size: 25px; } .foot-pin { position: relative; height: auto; } .foot-pin .foot-top { padding: 119px 16px 0; } #faq.band { padding-bottom: 0; } /* the FAQ's last line sits as far above the tagline as the tagline sits above the word */ .foot-space { display: none; } }
.foot-pin .foot-art, .foot-pin .foot-art-wrap { flex: none; }
/* the knobs can be turned by hand */
.mark .knob-glyph { touch-action: none; cursor: grab; pointer-events: auto; }
.mark .knob-glyph:active { cursor: grabbing; }
/* phones: the wordmark stands up, reading top to bottom from the S, its letters nearly as wide as the screen (the script sizes it);
   the cords hang off the left edge, and the knobs sit upright under the d */
@media (max-width: 600px) {
  .foot-art-wrap { position: relative; margin-top: 108px; }
  .foot-art-wrap .foot-art { position: absolute; top: 0; left: calc(50% + var(--fs) * .525); margin: 0; transform: rotate(90deg); transform-origin: 0 0; }
  .foot-art-wrap + .knob-glyph { display: block; width: min(62vw, 260px); height: auto; aspect-ratio: 1; margin: 12px auto 56px; }
  .foot-art-wrap + .knob-glyph svg { width: 100%; height: 100%; display: block; overflow: visible; }
}
.knob-glyph.powered .kv { filter: drop-shadow(0 0 6px currentColor) brightness(1.25); }
/* phones: the letters light up slowly as you scroll down the word (--lit runs 0 → 1), then the whole sign blinks on like neon */
@media (max-width: 600px) {
  .foot-art-wrap .mark { transition: none;
    -webkit-text-stroke-color: color-mix(in srgb, #5cc8ff calc(var(--lit, 0) * 100%), color-mix(in srgb, var(--ink) 20%, transparent));
    text-shadow: 0 0 calc(var(--lit, 0) * 22px) rgba(70,180,255, calc(var(--lit, 0) * .4)), 0 0 calc(var(--lit, 0) * 4px) rgba(92,200,255, calc(var(--lit, 0) * .5)); }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .foot-art-wrap .foot-art.powered .mark, .foot-art-wrap .foot-art.powered .foot-cords, .foot-art-wrap + .knob-glyph.powered { animation: neon 1.5s linear 1; }
}
@keyframes neon { 0% { opacity: 1; } 10% { opacity: .2; } 18% { opacity: 1; } 30% { opacity: .25; } 40% { opacity: 1; } 56% { opacity: .4; } 64%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .foot-pin { position: relative; height: auto; } }
@media (prefers-reduced-motion: reduce) { .foot-space { display: none; } }
/* footer: tagline and links, then a huge wordmark cut off at the bottom, with patch cords hanging behind it */
.site-foot { position: relative; margin-top: 0; overflow: clip; background-attachment: local; background: linear-gradient(180deg, var(--bg), var(--panel)); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; padding-top: 72px; position: relative; z-index: 2; }
.foot-tag .nw { white-space: nowrap; }
@media (max-width: 600px) { .site-foot .foot-tag, .site-foot .foot-pin .foot-tag { font-size: min(46px, calc((100vw - 32px) / 9.58)); line-height: 1.15; } .site-foot .foot-tag br { display: none; } } /* phones: big, flowing over three lines */
.foot-tag .stack { display: inline-flex; vertical-align: middle; margin: 0 .04em 0 0; }
.foot-tag .av { width: .9em; height: .9em; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--avatar); border: .05em solid var(--bg); margin-left: -.34em; box-shadow: 0 .04em .12em rgba(0,0,0,.18); }
.foot-tag .av:first-child { margin-left: 0; }
/* scroll-driven: each circle drops in and slides into the stack; hover fans the stack out */
.foot-tag .av { position: relative; left: 0; transform: translate(calc((1 - var(--q, 1)) * .9em), calc((1 - var(--q, 1)) * -.5em)) scale(calc(.4 + .6 * var(--q, 1))) rotate(calc((1 - var(--q, 1)) * -40deg)); opacity: var(--q, 1); transition: left .35s cubic-bezier(.3,1.4,.5,1); }
/* the fan uses relative offsets, not margins, so the line never re-wraps under the cursor (which made it jump and flicker) */
.foot-tag .stack { position: relative; }
.foot-tag .stack:hover::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: .9em; } /* keeps the hover over the fanned-out circles */
.foot-tag .stack:hover .av:nth-child(2) { left: .22em; }
.foot-tag .stack:hover .av:nth-child(3) { left: .44em; }
.foot-tag .stack:hover .av:nth-child(4) { left: .66em; }
.foot-tag .stack:hover .av:nth-child(5) { left: .88em; }
.foot-tag .after { position: relative; left: 0; transition: left .35s cubic-bezier(.3,1.4,.5,1); }
.foot-tag .stack:hover ~ .after, .foot-tag .nw:has(.stack:hover) + .after { left: .88em; }
.foot-tag .av i { font: normal .48em/1 var(--emoji); }
.foot-tag .av img { width: .5em; height: .5em; }
.foot-tag .av.tgl { background: #fff; }
.foot-tag .av.tgl img, .foot-tag .av.full img { width: 100%; height: 100%; }
.foot-tag { margin: 0; font: 600 clamp(30px, 5vw, 68px)/1.12 var(--sans); letter-spacing: -0.03em; letter-spacing: -0.02em; }
.foot-small { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-bottom: 4px; }
.foot-top > div { flex: 1 1 380px; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; padding: 6px 0; }
.foot-links a:hover { color: var(--ink); }
.foot-art { --fs: 160px; position: relative; height: calc(var(--fs) * 1.05); margin-top: 48px; }
/* the wordmark is the switchboard: each letter carries a jack, cords patch letter to letter */
.mark {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, var(--rise, 0px));
  font: 700 var(--fs)/1 var(--sans); letter-spacing: -0.035em; white-space: nowrap;
  color: var(--surface); -webkit-text-stroke: 1.5px color-mix(in srgb, var(--ink) 20%, transparent);
}
.mark span { display: inline-block; }
.mark .knob-glyph { width: .74em; height: .74em; margin-right: .08em; vertical-align: 0; }
.mark .knob-glyph svg { width: 100%; height: 100%; display: block; overflow: visible; }
.knob-glyph .kb, .knob-glyph .kc { fill: var(--surface); stroke: color-mix(in srgb, var(--ink) 20%, transparent); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.knob-glyph .kt { fill: none; stroke: color-mix(in srgb, var(--ink) 12%, transparent); stroke-width: 4; stroke-linecap: round; }
.knob-glyph .kv { fill: none; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 3px currentColor); }
.knob-glyph .kg { stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-width: 1.4; stroke-linecap: round; }
.knob-glyph .kcap { fill: color-mix(in srgb, var(--ink) 5%, var(--surface)); stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.knob-glyph .ki { stroke: color-mix(in srgb, var(--ink) 45%, transparent); stroke-width: 3; stroke-linecap: round; }
.knob-glyph .kp { filter: drop-shadow(0 0 2px currentColor); }
.foot-cords { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.foot-cords path { fill: none; stroke-width: 4; stroke-linecap: round; }
.foot-cords .ring { fill: var(--jack); stroke: var(--jack-ring); stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) { .foot-cords .ring.hit { animation: jackhit .6s ease-out; } }
/* powered: the moment everything is connected */
.foot-cords .spark { fill: none; stroke: #dff3ff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 90; opacity: 0; transition: opacity .4s; }
.foot-art.powered .foot-cords .spark { opacity: .9; filter: drop-shadow(0 0 4px #5cc8ff); }
.foot-art.powered .foot-cords path:not(.spark) { filter: drop-shadow(0 0 5px rgba(92,200,255,.5)); }
.foot-art .mark { transition: -webkit-text-stroke-color .8s, text-shadow .8s; }
.foot-art.powered .mark { -webkit-text-stroke-color: #5cc8ff; text-shadow: 0 0 22px rgba(70,180,255,.4), 0 0 4px rgba(92,200,255,.5); }
.foot-art.powered .knob-glyph .kv { filter: drop-shadow(0 0 6px currentColor) brightness(1.25); }
@media (prefers-reduced-motion: no-preference) {
  .foot-art.powered .foot-cords .spark { animation: current 1.6s linear infinite; }
  .foot-art.powered .mark { animation: flicker .9s steps(1, end) 1; }
}
@keyframes current { to { stroke-dashoffset: -96; } }
@keyframes flicker { 0% { opacity: .55; } 12% { opacity: 1; } 22% { opacity: .7; } 34% { opacity: 1; } 100% { opacity: 1; } }
@keyframes jackhit { 0% { stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 5; } 100% { stroke-width: 1.5; } } /* a neutral flash as the plug seats */
.foot-cords .hole { fill: var(--hole); }




/* ---------- use cases: phones ---------- */
.intro-story { padding-bottom: 24px; }
.uc-band { padding: 72px 0; }
.uc-band.scrub { padding: 0; height: calc(100vh + var(--scrub, 160vh)); }
.uc-band.scrub .uc-pin { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; padding: 40px 0; }
.uc-band.scrub .uc-pin > .wrap { width: 100%; }
@media (max-height: 640px) { .uc-band.scrub .uc-pin { position: static; } }
.uc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.uc.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.uc.flip .uc-text { order: 2; }
@media (max-width: 960px) { .uc, .uc.flip { grid-template-columns: 1fr; gap: 32px; } .uc.flip .uc-text { order: 0; } }
.phones { display: flex; justify-content: center; }
.pw { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phase { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px; gap: 4px; font-size: 17px; font-weight: 600; }
.phase span { padding: 8px 20px; border-radius: 999px; color: var(--ink-2); transition: background-color .3s, color .3s, box-shadow .3s; }
.pw[data-phase="before"] .ph-b { background: #c8452f; color: #fff; box-shadow: var(--shadow); }
.pw[data-phase="now"] .ph-n { background: var(--on); color: #fff; box-shadow: var(--shadow); }
.stage { position: relative; width: 270px; height: 560px; }
.stage .phone { position: absolute; inset: 0; transition: opacity .5s ease, transform .5s cubic-bezier(.3,.8,.2,1); }
.stage .phone.hidden { opacity: 0; pointer-events: none; }
/* wide screens: bigger phones, as big as the screen's height allows (the section is pinned, so it must fit) */
@media (min-width: 981px) and (min-height: 780px) { .stage { zoom: 1.1; } }
@media (min-width: 981px) and (min-height: 880px) { .stage { zoom: 1.3; } }
@media (min-width: 981px) and (min-height: 1000px) { .stage { zoom: 1.45; } }
.stage .phone[data-phone="before"].hidden { transform: translateX(-70px) rotate(-5deg) scale(.95); }
.stage .phone[data-phone="now"].hidden { transform: translateX(70px) rotate(5deg) scale(.95); }
.over { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 20px; text-align: center; color: #fff; font: 600 19px/1.35 var(--sans); background: rgba(14,14,17,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; pointer-events: none; }
.over.on { opacity: 1; }
.over.good { background: rgba(28,150,92,.92); font-size: 21px; }
.over .bill { width: 100%; max-width: 210px; display: flex; flex-direction: column; gap: 8px; text-align: left; font-size: 15px; }
.over .bh { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 4px; }
.over .be { font: 30px/1 var(--emoji); }
.over .row { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); }
.over .row i { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font: normal 16px/1 var(--emoji); background: rgba(255,255,255,.12); }
.over .row .lb { flex: 1; font-weight: 500; }
.over .row b { font-size: 18px; font-weight: 700; color: #ff9b7a; }
.over .tot { margin-top: 4px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.25); font-size: 14px; font-weight: 500; color: rgba(255,255,255,.7); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .over .row, .over .tot { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s cubic-bezier(.3,1.5,.5,1); }
  .over.on .row, .over.on .tot { opacity: 1; transform: none; }
  .over.on .row:nth-of-type(2) { transition-delay: .08s; } .over.on .row:nth-of-type(3) { transition-delay: .16s; }
  .over.on .row:nth-of-type(4) { transition-delay: .24s; } .over.on .row:nth-of-type(5) { transition-delay: .32s; } .over.on .tot { transition-delay: .4s; }
}
.over .big { display: block; font: 52px/1.2 var(--emoji); margin-bottom: 10px; }
.uc-band { transition: background-color .6s ease; }

.step-cap { min-height: 50px; max-width: 280px; margin: 0; text-align: center; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.phone {
  position: relative; width: 270px; height: 560px; border-radius: 46px; padding: 9px; background: #0c0c0e; flex: none;
  box-shadow: inset 0 0 0 1.5px #3a3a40, 0 24px 50px rgba(18,26,29,.22), 0 4px 12px rgba(18,26,29,.12);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2a2f; }
.phone::before { left: -3px; top: 110px; height: 56px; box-shadow: 0 70px 0 #2a2a2f; }
.phone::after { right: -3px; top: 140px; height: 80px; }
@media (max-width: 600px) {
  .stage { zoom: .72; }
  .uc-band.scrub .uc-pin { padding: 76px 0 16px; align-items: flex-start; }
  .uc-band.scrub .uc-text .sub { display: none; } /* keep the heading + phone on one screen */
  .uc-band.scrub .uc-text h2 { font-size: 26px; margin-bottom: 0; }
  .uc { gap: 14px; }
  .phase { font-size: 15px; } .phase span { padding: 6px 14px; }
}
/* phones: no drawn phone. The app fills the screen in a card, as if it were open on the visitor's own phone (like the Telegram demo above) */
@media (max-width: 600px) {
  .phones, .pw { width: 100%; }
  .stage { zoom: 1; width: 100%; height: clamp(360px, calc(100svh - 252px), 640px); }
  .stage .phone { width: 100%; height: 100%; padding: 0; background: none; border-radius: 20px;
    box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(18,26,29,.14); }
  .stage .phone::before, .stage .phone::after, .stage .island, .stage .sbar, .stage .hbar { display: none; }
  .stage .scr, .stage .app { border-radius: 20px; }
  .stage .app { padding-top: 4px; }
  .stage .phone[data-phone="before"].hidden { transform: translateX(-24px) scale(.97); }
  .stage .phone[data-phone="now"].hidden { transform: translateX(24px) scale(.97); }
  .uc-band { overflow-x: clip; } /* the card waiting off to the side must never widen the page (clip keeps the sticky pin working) */
  /* type sized for a real screen, not a miniature */
  .stage .app .tg-head { padding: 10px 12px; }
  .stage .app .tg-av { width: 40px; height: 40px; font-size: 20px; }
  .stage .app .tg-title b { font-size: 16px; } .stage .app .tg-title span { font-size: 13px; }
  .stage .app .tg-body { padding: 10px; gap: 6px; }
  .stage .app .tm .ava { width: 32px; height: 32px; font-size: 17px; }
  .stage .app .bub { font-size: 15px; padding: 6px 10px 7px; } .stage .app .bub .from { font-size: 14px; } .stage .app .bub .t { font-size: 11px; }
  .stage .app .tg-bar { padding: 10px 14px 14px; font-size: 15px; }
  .stage .ai-head { font-size: 16px; padding: 12px 0; } .stage .ai-head img { width: 26px; height: 26px; }
  .stage .ai-u, .stage .ai-b { font-size: 15px; } .stage .ai-b img.mk { width: 22px; height: 22px; }
  .stage .ai-in { font-size: 15px; margin: 6px 10px 12px; padding: 11px 16px; }
  .stage .bub .pic, .stage .ai-b .pic, .stage .ai-u .pic { max-width: 220px; width: 220px; }
  .stage .toast { font-size: 14px; }
  .stage .over { border-radius: 20px; }
}
.scr { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #000; }
.island { position: absolute; top: 9px; left: 50%; width: 76px; height: 24px; margin-left: -38px; border-radius: 14px; background: #000; z-index: 6; }
.sbar { position: absolute; top: 0; left: 0; right: 0; height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 2px 20px 0 28px; z-index: 5; font: 600 13px var(--sans); pointer-events: none; transition: color .5s; }
.sbar svg { height: 10px; fill: currentColor; }
.sbar .ic { display: flex; gap: 4px; align-items: center; }
.hbar { position: absolute; bottom: 7px; left: 50%; width: 104px; height: 4px; margin-left: -52px; border-radius: 2px; z-index: 6; opacity: .85; transition: background-color .3s; }
.app { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: 42px; border-radius: 37px; overflow: hidden;
  transition: transform .7s cubic-bezier(.32,.72,0,1), filter .7s ease; will-change: transform; }
/* apps sit side by side like iPhone's recent apps; switching glides both together, slightly shrunk */
.app.right { transform: translateX(108%) scale(.9); }
.app.left { transform: translateX(-108%) scale(.9); filter: brightness(.85); }
.app .tg-head { padding: 6px 10px; gap: 9px; border-bottom: 0; }
.app .tg-av { width: 34px; height: 34px; font-size: 17px; }
.app .tg-title b { font-size: 14px; }
.app .tg-title span { font-size: 11.5px; }
.app .back { color: var(--tg-link); font-size: 22px; line-height: 1; margin-right: -2px; }
.app .tg-body { flex: 1; justify-content: flex-end; padding: 8px 7px; gap: 5px; }
.app .tm .ava { width: 26px; height: 26px; font-size: 14px; }
.app .bub { font-size: 12.5px; padding: 4px 8px 5px; border-radius: 12px 12px 12px 4px; }
.app .tm.out .bub { border-radius: 12px 12px 4px 12px; }
.app .bub .from { font-size: 12px; }
.app .bub .t { font-size: 10px; }
.app .tsvc { font-size: 11px; }
.app .tg-bar { padding: 8px 12px 20px; font-size: 13px; gap: 10px; border-top: 0; }
.app .tg-bar svg { width: 19px; height: 19px; }
.bub .pic { display: block; width: 100%; max-width: 170px; border-radius: 8px; margin: 2px 0 4px; }
/* a generic AI chat app (dark for GrokBot, light for Claude) */
.ai { background: #0f0f11; color: #ececf1; }
.ai.light { background: #f6f5f1; color: #1d1c19; }
.ai-head { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 0 10px; font-weight: 600; font-size: 14px; }
.ai-head img { width: 22px; height: 22px; border-radius: 50%; background: var(--avatar); padding: 3px; }
.ai-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 8px 12px; overflow: hidden; }
.ai-u { align-self: flex-end; max-width: 82%; background: #2b2b30; border-radius: 16px; padding: 7px 11px; font-size: 12.5px; line-height: 1.4; }
.ai.light .ai-u { background: #e8e5dc; }
.ai-b { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.45; max-width: 95%; }
.ai-b > div { flex: 1; min-width: 0; }
.ai-b .pic, .ai-u .pic { width: 170px; max-width: 100%; }
.ai-b img.mk { width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--avatar); padding: 2px; }
.ai-in { margin: 6px 10px 22px; border-radius: 20px; padding: 9px 14px; font-size: 12.5px; background: #1e1e22; color: #8b8b93; }
.ai.light .ai-in { background: #fff; color: #78756c; border: 1px solid #e3dfd4; }
.toast { position: absolute; left: 50%; bottom: 46%; transform: translateX(-50%); background: rgba(20,20,22,.86); color: #fff; font-size: 12.5px; font-weight: 500; padding: 7px 14px; border-radius: 18px; z-index: 7; white-space: nowrap; opacity: 0; pointer-events: none; }
.toast.show { animation: toast 1.2s ease-out both; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.95); } 15%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .app { transition: none; } .toast.show { animation: none; } }


/* ---------- sticky nav ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 84px; }
.nav { position: sticky; top: 0; z-index: 50; padding: 12px 0; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, backdrop-filter .3s; }
.nav-in { position: relative; }
.nav.no-anim, .nav.no-anim *, .nav.no-anim *::before, .nav.no-anim::before { transition: none !important; animation: none !important; }
.nav-in > * { position: relative; z-index: 1; }
/* one background that starts as the links pill and stretches out to wrap the logo and GitHub as you scroll */
.nav-in > .bar-bg { position: absolute; z-index: 0; border-radius: 999px; pointer-events: none;
  background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
.nav-in { max-width: 1120px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav .brand { flex: none; }
.pill { position: relative; display: flex; gap: calc(2px + var(--w, 0) * 30px); padding: 5px calc(5px + var(--w, 0) * 14px); border-radius: 999px; border: 1px solid transparent; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.pill::-webkit-scrollbar { display: none; }
.pill a { position: relative; z-index: 1; padding: 7px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .25s; }
.pill a:hover { color: var(--ink); }
.pill a.on { color: var(--bg); }
.pill .ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--ink); opacity: 0;
  transition: transform .45s cubic-bezier(.3,.8,.2,1), width .45s cubic-bezier(.3,.8,.2,1), opacity .3s; }
.gh { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--ink); border: 1px solid transparent; color: var(--bg); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: background-color .3s, color .3s, opacity .15s, transform .1s; }
.gh:hover { opacity: .9; text-decoration: none; }
/* once the pill has grown into the full navbar, GitHub is just a plain item in it */
.nav.wide .gh { background: transparent; color: var(--ink); }
.nav.wide .gh:hover { background: var(--panel); opacity: 1; }
.gh:active { transform: scale(.97); }
.gh svg { width: 18px; height: 18px; fill: currentColor; opacity: .9; }
@media (max-width: 860px) { .nav .brand span, .gh span { display: none; } .gh { padding: 0 12px; } .pill { gap: 2px; padding: 5px; } }
@media (max-width: 600px) { .nav-in { margin: 0 6px; padding: 0 8px; gap: 4px; } .nav .gh { min-height: 36px; padding: 0 8px; } .pill a { padding: 7px 8px; font-size: 13px; } .nav .brand img { width: 24px; height: 24px; } }
/* phones: the links collapse to their emoji; the section you're reading shows its name too */
@media (max-width: 600px) {
  .nav .pill { flex: 1; justify-content: center; gap: 2px; }
  .pill a { display: inline-flex; align-items: center; padding: 7px 11px; font-size: 13.5px; }
  .pill .ne { font: 17px/1 var(--emoji); }
  .pill a .lb { display: none; }
  .pill a.on .lb { display: inline; margin-left: 5px; white-space: pre; }
}
@media (max-width: 380px) { .nav .pill { gap: 0; padding: 4px; } .pill a { padding: 7px 9px; font-size: 13px; } .pill .ne { font-size: 16px; } }
/* phones at the top of the page: only the logo and name, no frame. At the first section the bar grows out of
   the logo, the name slides away, the emojis pop in one by one and GitHub lands last; scrolling back reverses it. */
@media (max-width: 600px) {
  .nav .brand span { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; opacity: 0; }
  .nav.idle .brand span { max-width: 200px; opacity: 1; }
  .nav.idle .bar-bg { opacity: 0; clip-path: inset(0 calc(100% - 52px) 0 0 round 999px); }
  .nav-in > .bar-bg { clip-path: inset(0 0 0 0 round 999px); }
  .nav.idle .pill a, .nav.idle .gh { opacity: 0; transform: translateY(-6px) scale(.6); }
  .nav.idle .pill, .nav.idle .gh { visibility: hidden; pointer-events: none; }
  .nav.idle .brand img { width: 46px; height: 46px; border-radius: 10px; }
  .nav.idle .brand { gap: 14px; }
  .nav.idle .brand span { font-size: 27px; letter-spacing: -0.01em; }
  /* centred on the screen at the top; it slides back to the left as the bar opens */
  .nav.idle .brand { transform: translateX(calc(50vw - 14px - 50%)); }
  /* no frame, but a soft fade in the page colour behind the name so the content scrolling under it stays out of the way */
  .nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -18px; z-index: -1; pointer-events: none; opacity: 0;
    background: linear-gradient(180deg, var(--bg) 62%, color-mix(in srgb, var(--bg) 0%, transparent)); transition: opacity .3s; }
  .nav.idle.scrolled::before { opacity: 1; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .nav .brand span { transition: max-width .4s cubic-bezier(.3,.8,.2,1), opacity .25s, font-size .4s cubic-bezier(.3,.8,.2,1); }
  .nav .brand { transition: transform .5s cubic-bezier(.3,.8,.2,1), gap .4s; }
  .nav.idle .brand { transition: transform .5s cubic-bezier(.3,.8,.2,1) .1s; }
  .nav .brand img { transition: width .4s cubic-bezier(.3,.8,.2,1), height .4s cubic-bezier(.3,.8,.2,1); }
  .nav-in > .bar-bg { transition: clip-path .55s cubic-bezier(.3,.8,.2,1), opacity .3s; }
  .nav .pill a { transition: color .25s, opacity .3s, transform .45s cubic-bezier(.3,1.6,.5,1); }
  .nav .pill a:nth-of-type(1) { transition-delay: 0s, .15s, .15s; }
  .nav .pill a:nth-of-type(2) { transition-delay: 0s, .21s, .21s; }
  .nav .pill a:nth-of-type(3) { transition-delay: 0s, .27s, .27s; }
  .nav .pill a:nth-of-type(4) { transition-delay: 0s, .33s, .33s; }
  .nav .pill .ind { transition: transform .45s cubic-bezier(.3,.8,.2,1), width .45s cubic-bezier(.3,.8,.2,1), opacity .3s .2s; }
  .nav.idle .pill .ind { opacity: 0 !important; transition: opacity .12s; }
  .nav .gh { transition: opacity .3s .4s, transform .45s cubic-bezier(.3,1.6,.5,1) .4s, background-color .3s, color .3s; }
  .nav .pill { transition: visibility 0s; }
  .nav.idle .pill, .nav.idle .gh { transition: visibility 0s .35s; }
  /* going back to the top: everything leaves together, quickly */
  .nav.idle .pill a { transition: color .25s, opacity .15s, transform .2s; transition-delay: 0s; }
  .nav.idle .gh { transition: opacity .15s, transform .2s, visibility 0s .35s; }
  .nav.idle .brand span { transition: max-width .45s cubic-bezier(.3,.8,.2,1) .15s, opacity .3s .2s; }
  .nav.idle .bar-bg { transition: clip-path .4s cubic-bezier(.5,0,.7,.4) .05s, opacity .25s .25s; }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  .nav-in > .bar-bg, .nav .pill a, .nav .gh, .nav .brand span { transition: opacity .2s; }
}
@media (max-width: 340px) { .pill a { padding: 7px 7px; } .nav-in { gap: 2px; } }
.hero { padding-top: 0; }
/* the first screen is just the headline, intro and paste box; the board starts below the fold */
.hero-top { min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; padding: 40px 0 72px; }
.hero-top .lede { margin-bottom: 56px; }
@media (max-width: 600px) { .hero-top { min-height: 0; padding: 48px 0 32px; } }
@media (max-width: 600px) { .hero { padding-top: 48px; } }
.m-show { display: none; }
.scroll-cue { display: none; }
@media (max-width: 600px) { .scroll-cue { display: inline-flex; } }
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) { .scroll-cue svg { animation: cue 1.8s ease-in-out infinite; } }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (max-width: 600px) { .m-show { display: inline; } }
/* phones: tighter hero, avatar stacks stay on their line, a left-aligned paste box that wraps the link at its slashes */
@media (max-width: 600px) {
  .hero { padding-top: 0; }
  /* the first screen holds only the headline, intro and paste box; the board starts below the fold */
  .hero-top { min-height: calc(100svh - 64px); justify-content: center; padding: 16px 0 40px; }
  .hero-top .lede { margin: clamp(20px, 3.5svh, 36px) 0 clamp(36px, 7svh, 72px); }
  .hero-top { position: relative; isolation: isolate; padding-bottom: 96px; }
  /* a soft glow behind the headline so the first screen doesn't feel bare */
  .hero-top::before { content: ""; position: absolute; z-index: -1; left: -16px; right: -16px; top: 4%; height: 80%; pointer-events: none;
    background: radial-gradient(60% 45% at 20% 30%, color-mix(in srgb, #2b8fd6 22%, transparent), transparent 70%),
                radial-gradient(50% 40% at 85% 65%, color-mix(in srgb, #e0533d 16%, transparent), transparent 70%); filter: blur(8px); }
  .scroll-cue { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; padding: 6px 12px; }
  .scroll-cue svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .lede.short { font-size: clamp(17px, 5.3vw, 22px); }
  .lede.short .l1 { flex-wrap: nowrap; white-space: nowrap; }
  .cmd-block { text-align: left; width: 100%; min-width: 0; }
  .cmd-label { justify-content: flex-start; flex-wrap: wrap; font-size: 13.5px; gap: 6px 5px; }
  .cmd-label .app-link { white-space: nowrap; }
  .cmd-label .app-link { padding: 2px 8px 2px 3px; gap: 4px; }
  .cmd-label .app-link img { width: 17px; height: 17px; }
  .m-hide { display: none; }
  .cmd { gap: 8px; padding: 6px 6px 6px 14px; }
  .cmd code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
  .cmd .btn-primary { min-height: 42px; width: 46px; padding: 0; justify-content: center; } /* just the emoji on phones */
  .cmd .btn-primary .bt { display: none; }
  .cmd .btn-primary .bi { width: 20px; height: 20px; } .cmd .btn-primary .bi > span { font-size: 19px; }
  .board-area { margin-top: 36px; }
  section.band { padding: 64px 0; }
}
@media (max-width: 359px) {
  .cmd-label { flex-wrap: wrap; white-space: normal; }
}
.uc-band.scrub .uc-pin { padding: 84px 0 32px; }

/* ---------- motion (all of it skipped under reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { transform: translateY(14px); opacity: 0; } }
  /* the board builds itself as it scrolls into view (driven from JS) */
  .board .station { transition: transform .45s cubic-bezier(.3,1.4,.5,1), opacity .3s ease; transform-box: fill-box; transform-origin: center; }
  .board .station.off { transform: scale(.4); opacity: 0; }
  .board .plug, .board .hub { transition: opacity .3s ease; }
  .board .plug.off, .board .hub.off { opacity: 0; }
  .board .badge.flash { animation: pulse .6s ease-out; }
  @keyframes pulse { 0% { r: 11; } 100% { r: 6; } }
  .tm.new, .tsvc.new, .kb.new { animation: pop .7s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes pop { from { transform: translateY(10px) scale(.97); opacity: 0; } }
  @keyframes step { 40% { background: var(--ink); border-color: var(--ink); color: var(--bg); } }
  .faq details[open] p { animation: rise .3s ease-out; }
}
