/* lmux site. Nord, one loud color, hairlines. Values follow design/TOKENS.md where they apply.
   No frameworks, no web fonts: the system stack is the app's own typeface. */

:root {
  --bg: #F5F7FA;
  --bg-2: #ECEFF4;          /* nord6: tinted sections */
  --surface: #FFFFFF;
  --surface-2: #F5F7FA;
  --line: rgba(46, 52, 64, .10);
  --line-strong: rgba(46, 52, 64, .17);
  --text: #2E3440;          /* nord0 */
  --text-2: #434C5E;        /* nord2 */
  --text-3: #535D72;        /* textTertiary, AA on bg */
  --accent: #4C6E99;        /* derived nord10, AA on white */
  --on-accent: #F5F7FA;
  --accent-hover: #3F5E86;
  --done: #5A7F43;
  --frost-a: #88C0D0;
  --frost-b: #5E81AC;
  --bar-cmux: #C9D0DB;
  --bar-lmux: linear-gradient(90deg, #88C0D0, #5E81AC);
  --shadow: 0 1px 2px rgba(46, 52, 64, .05), 0 10px 28px -10px rgba(46, 52, 64, .16);
  --shadow-xl: 0 1px 2px rgba(46, 52, 64, .06), 0 40px 90px -30px rgba(46, 52, 64, .38), 0 0 0 1px rgba(46, 52, 64, .09);
  --glow: rgba(136, 192, 208, .34);
  --ws-teal: #3F8584;
  --ws-orange: #B8673F;
  --ws-purple: #8E5F87;
  --logo-body: #2E3440;
  --logo-chev: #ECEFF4;
  --term-bg: #2E3440;
  --term-fg: #ECEFF4;
  --kbd-bg: #FFFFFF;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Apple SD Gothic Neo", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Apple SD Gothic Neo", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, "D2Coding", monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --gutter: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #20242C;
    --bg-2: #242932;
    --surface: #2B303B;
    --surface-2: #323845;
    --line: rgba(236, 239, 244, .085);
    --line-strong: rgba(236, 239, 244, .15);
    --text: #ECEFF4;
    --text-2: #C4CBD7;
    --text-3: #A7B0BF;
    --accent: #88C0D0;
    --on-accent: #20242C;
    --accent-hover: #A3D0DD;
    --done: #A3BE8C;
    --bar-cmux: #4C566A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -10px rgba(0, 0, 0, .5);
    --shadow-xl: 0 1px 2px rgba(0, 0, 0, .3), 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(236, 239, 244, .09);
    --glow: rgba(136, 192, 208, .15);
    --ws-teal: #8FBCBB;
    --ws-orange: #D08770;
    --ws-purple: #B48EAD;
    --logo-body: #ECEFF4;
    --logo-chev: #3B4252;
    --term-bg: #1A1E25;
    --kbd-bg: #363C49;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #20242C;
  --bg-2: #242932;
  --surface: #2B303B;
  --surface-2: #323845;
  --line: rgba(236, 239, 244, .085);
  --line-strong: rgba(236, 239, 244, .15);
  --text: #ECEFF4;
  --text-2: #C4CBD7;
  --text-3: #A7B0BF;
  --accent: #88C0D0;
  --on-accent: #20242C;
  --accent-hover: #A3D0DD;
  --done: #A3BE8C;
  --bar-cmux: #4C566A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -10px rgba(0, 0, 0, .5);
  --shadow-xl: 0 1px 2px rgba(0, 0, 0, .3), 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(236, 239, 244, .09);
  --glow: rgba(136, 192, 208, .15);
  --ws-teal: #8FBCBB;
  --ws-orange: #D08770;
  --ws-purple: #B48EAD;
  --logo-body: #ECEFF4;
  --logo-chev: #3B4252;
  --term-bg: #1A1E25;
  --kbd-bg: #363C49;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
code, kbd, pre { font-family: var(--mono); font-size: .88em; }
:not(pre) > code {
  padding: .1em .38em;
  border-radius: 6px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}
kbd {
  display: inline-grid; place-items: center;
  min-width: 1.75em; height: 1.75em;
  padding: 0 .38em;
  border-radius: 6px;
  background: var(--kbd-bg);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 1.5px 0 var(--line-strong);
  color: var(--text);
  font: 500 .8em/1 var(--sans);
  vertical-align: .05em;
}
kbd + kbd { margin-left: 3px; }
.chord { white-space: nowrap; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--text); }
h2 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 700; letter-spacing: -.028em; line-height: 1.08; text-wrap: balance; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -.012em; line-height: 1.3; }
p { margin: 0; }
b { font-weight: 650; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: 1248px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border-radius: 12px;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease-out, box-shadow .15s ease-out, color .15s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 18px -10px var(--accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--ghost { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text-3); }
.btn--small { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 10px; box-shadow: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand__mark { width: 26px; height: 26px; }
.brand__body { fill: var(--logo-body); }
.brand__chev { stroke: var(--logo-chev); }
.brand__word { font: 700 19px/1 var(--display); letter-spacing: -.02em; }
.nav__links { display: flex; gap: 2px; margin-left: 8px; }
.nav__links a { padding: 6px 10px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.nav__links a:hover { color: var(--text); background: var(--line); }
.nav__end { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 9px; background: none; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { color: var(--text); background: var(--line); }
.icon-btn svg { width: 19px; height: 19px; }
.nav .btn { margin-left: 8px; }
/* Docs in the bar only once .nav__links is hidden (under 1000px) */
.nav__docs { display: none; padding: 6px 8px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.nav__docs:hover { color: var(--text); background: var(--line); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 0; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1100px; z-index: -1;
  background:
    radial-gradient(42% 32% at 50% 62%, var(--glow), transparent 72%),
    radial-gradient(30% 22% at 50% 8%, color-mix(in srgb, var(--frost-a) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px 6px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2); font: 500 13px/1.2 var(--sans);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 3px color-mix(in srgb, var(--done) 22%, transparent); }
.hero__title {
  margin-top: 26px;
  font-size: clamp(64px, 11.5vw, 136px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .92;
  display: inline-flex; align-items: baseline;
}
.hero__title .dot { color: var(--frost-b); }
.cursor {
  display: inline-block;
  width: .085em; height: .72em;
  margin-left: .09em;
  border-radius: .04em;
  background: linear-gradient(var(--frost-a), var(--frost-b));
  transform: translateY(.04em);
  animation: blink 1.1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero__lede { max-width: 640px; margin-top: 26px; color: var(--text-2); font-size: clamp(18px, 2vw, 21px); line-height: 1.5; text-wrap: balance; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; }
.hero__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero__req { margin-top: 16px; color: var(--text-3); font-size: 13.5px; }

/* command line with copy */
.cmd {
  display: flex; align-items: center; gap: 4px;
  height: 46px; padding: 0 5px 0 16px;
  border-radius: 12px;
  background: var(--term-bg);
  color: var(--term-fg);
  box-shadow: inset 0 0 0 1px rgba(236, 239, 244, .08), 0 8px 20px -12px rgba(46, 52, 64, .5);
}
.cmd pre { margin: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; font-size: 14px; line-height: 46px; }
.cmd pre::-webkit-scrollbar { display: none; }
.cmd .pr { color: var(--frost-a); user-select: none; }
.copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 11px;
  border: 0; border-radius: 8px; background: rgba(236, 239, 244, .09); color: #ECEFF4;
  font: 600 13px/1 var(--sans); cursor: pointer; transition: background-color .12s;
}
.copy svg { width: 15px; height: 15px; }
.copy:hover { background: rgba(236, 239, 244, .17); }
.copy.is-done { background: #88C0D0; color: #2E3440; }
.copy:focus-visible { outline-color: #88C0D0; outline-offset: 1px; }
.cmd--block { height: 56px; padding-left: 20px; }
.cmd--block pre { flex: 1; font-size: 15px; line-height: 56px; }

/* stage: the app, front and center */
.stage { position: relative; margin: 64px 0 0; }
.stage__frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 10;
}
.stage__frame img, .stage__frame video { width: 100%; height: 100%; object-fit: cover; }
.stage__frame video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease-out; }
.stage__frame video.is-playing { opacity: 1; }

/* pause / play over the hero video and the tour clips (added by site.js, never under reduced motion) */
.media-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 10px;
  background: rgba(46, 52, 64, .66); color: #ECEFF4;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: pointer; opacity: .8; transition: opacity .15s ease-out, background-color .15s ease-out;
}
.media-btn:hover, .media-btn:focus-visible { opacity: 1; background: rgba(46, 52, 64, .85); }
.media-btn:focus-visible { outline: 2.5px solid #88C0D0; outline-offset: 2px; }
.media-btn svg { width: 16px; height: 16px; }
/* the hero's sits just under the frame's bottom-right corner, in the gap above the specs */
.stage > .media-btn {
  top: calc(100% + 2px); right: 0;
  background: var(--surface); color: var(--text-2); opacity: 1;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.stage > .media-btn:hover, .stage > .media-btn:focus-visible { background: var(--surface); color: var(--text); }
.stage > .media-btn:focus-visible { outline-color: var(--accent); }

/* specs strip under the stage */
.specs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 40px auto 0; max-width: 1000px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}
.specs > div { padding: 20px 24px; }
.specs > div + div { border-left: 1px solid var(--line); }
.specs dt { color: var(--text-3); font-size: 13px; font-weight: 500; }
.specs dd { margin: 4px 0 0; display: flex; flex-direction: column; }
.specs b { font: 700 28px/1.15 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.specs span { color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.section--tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--note { padding: 112px 0 40px; }
#faq { padding-bottom: 56px; } /* the install CTA below closes it */
.section--end { padding: 0 0 96px; }
.end { display: flex; flex-direction: column; align-items: center; text-align: center; }
.end .hero__ctas { margin-top: 0; }
.head { max-width: 720px; margin-bottom: 52px; }
.eyebrow { margin-bottom: 14px; color: var(--accent); font: 600 13px/1.2 var(--mono); letter-spacing: .01em; }
.head__lede { margin-top: 18px; color: var(--text-2); font-size: 18.5px; line-height: 1.55; }
.head__lede b { color: var(--text); }

/* personal note */
.note { max-width: 800px; }
.note__lead { font: 500 clamp(21px, 2.4vw, 26px)/1.5 var(--display); letter-spacing: -.012em; color: var(--text); text-wrap: pretty; }
.note__lead + p { margin-top: 22px; color: var(--text-2); font-size: 18px; max-width: 680px; }
.note__lead ~ p:not(.note__less) { margin-top: 14px; color: var(--text-2); font-size: 18px; max-width: 680px; }
.note__lead + p { margin-top: 22px; }

/* highlights: hairline grid */
.hl {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.hl__item { padding: 32px 30px 34px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.hl__item h3 { margin-top: 20px; }
.hl__item p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.hl__icon {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--accent);
}
.hl__icon svg { width: 22px; height: 22px; }
.hl__icon--ko { font: 600 18px/1 "Apple SD Gothic Neo", var(--sans); }
.hl__item--lead .hl__icon { background: linear-gradient(160deg, var(--frost-a), var(--frost-b)); color: #fff; box-shadow: none; }
.hl__item--more { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; background: var(--surface-2); }
.hl__item--more p { margin: 0; }
.hl__more { margin: 22px 4px 0; color: var(--text-2); font-size: 15.5px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.arrow-link { align-self: flex-start; font-weight: 600; text-decoration: none; }
.arrow-link span { display: inline-block; transition: transform .15s var(--ease); }
.arrow-link:hover span { transform: translateX(3px); }

/* tour */
.tour { display: grid; grid-template-columns: 1fr; gap: 28px; }
.tour__clips { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.js .tour { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); align-items: start; }
.js .tour__clips { grid-template-columns: 1fr; }
.tour__list { display: flex; flex-direction: column; gap: 6px; }
.tour__list [role="tab"] {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  padding: 16px 18px; border: 0; border-radius: var(--r);
  background: none; color: var(--text-2); text-align: left; cursor: pointer;
  font: inherit;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color .15s ease-out, box-shadow .15s ease-out;
}
.tour__list [role="tab"] b { color: var(--text); font-size: 16px; }
.tour__list [role="tab"] span { font-size: 14px; color: var(--text-3); }
.tour__list [role="tab"]:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.tour__list [role="tab"][aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.tour__list [role="tab"][aria-selected="true"] b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--accent); }
.clip { margin: 0; }
.js .tour:not(.is-ready) .clip:not(:first-child) { display: none; } /* before site.js runs, so hidden clips never start loading */
.clip:focus-visible { outline-offset: 6px; border-radius: var(--r); }
.clip__media {
  position: relative;
  border-radius: 12px; overflow: hidden;
  background: #2E3440;
  aspect-ratio: 1200 / 750;
  box-shadow: var(--shadow-xl);
}
.clip__media img { width: 100%; height: 100%; object-fit: cover; }
.clip figcaption { margin-top: 16px; color: var(--text-2); font-size: 15.5px; max-width: 640px; }
.clip figcaption b { color: var(--text); }

/* cmux import */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-2); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.ticks li::after { content: ""; position: absolute; left: 7.5px; top: 6.5px; width: 4px; height: 8.5px; border: solid var(--accent); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.ticks li:last-child::after { left: 6px; top: 12px; width: 8px; height: 0; border-width: 0 0 1.8px; transform: none; }
.sheet-fig { margin: 0; }
.sheet-fig figcaption { margin-top: 16px; color: var(--text-3); font-size: 13px; text-align: center; }
.sheet {
  max-width: 440px; margin: 0 auto;
  padding: 24px 24px 20px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  font-size: 14px;
}
.sheet__title { font: 650 16.5px/1.3 var(--sans); }
.sheet__sub { margin-top: 4px; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.sheet__ws { display: flex; align-items: center; gap: 5px; margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: 500 12px/1 var(--mono); }
.sheet__ws span { margin-left: 6px; color: var(--text-3); }
.ws i { display: inline-block; width: 8px; height: 8px; border-radius: 2.5px; background: var(--c); }
.ws i:not(:first-child) { margin-left: 6px; }
.check { flex: none; width: 17px; height: 17px; margin-top: 1px; border-radius: 5px; background: var(--accent); position: relative; }
.check::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 4px; height: 8px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sheet__foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--text-2); font-size: 13px; }
.chev { width: 6px; height: 6px; margin: 0 2px; border: solid var(--text-3); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.sheet__btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.sheet__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.sheet__link { color: var(--accent); font-size: 12.5px; }
.sheet__spacer { flex: 1; }
.sheet__done { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; font-weight: 600; line-height: 19px; }
.sheet--after { margin-top: 18px; padding: 18px 24px 16px; }
.mbtn { padding: 6px 14px; border-radius: 7px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13px; font-weight: 500; }
.mbtn--primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.mbtn--wide { display: block; margin-top: 16px; padding: 9px 14px; text-align: center; font-size: 13.5px; font-weight: 600; }

/* shortcuts */
.keys {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 0;
}
.keys > div {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 10px 0;
  border-top: 1px solid var(--line);
}
.keys dt { color: var(--text-2); font-size: 15.5px; }
.keys dd { margin: 0; flex: none; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 0; font-size: 15px; }
.keys dd i { margin: 0 8px; color: var(--text-3); font: 400 13.5px/1 var(--sans); }
.keys dd i:first-child { margin-left: 0; }
.keys dd i:last-child { margin-right: 0; }
.keys__hot dt { color: var(--text); font-weight: 600; }
.keys__more { margin-top: 24px; }
.keys__hot kbd { background: color-mix(in srgb, var(--accent) 12%, var(--kbd-bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 1.5px 0 color-mix(in srgb, var(--accent) 45%, transparent); }

/* bench */
.bench { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.legend span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sw { width: 12px; height: 12px; border-radius: 4px; }
.sw--cmux { background: var(--bar-cmux); }
.sw--lmux { background: var(--bar-lmux); }
.sw--bg, .bar.bar--bg i { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, transparent) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1.5px var(--accent); }
.chart {
  margin: 0;
  padding: 28px 28px 26px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.chart__title { margin-bottom: 18px; font: 650 18px/1.2 var(--display); letter-spacing: -.01em; }
.chart__title span { margin-left: 6px; color: var(--text-3); font: 400 14px/1 var(--sans); letter-spacing: 0; }
.chart table, .chart tbody, .chart tr, .chart th, .chart td { display: block; }
.chart table { width: 100%; border-collapse: collapse; }
.chart tbody tr { padding: 14px 0; border-top: 1px solid var(--line); }
.chart tbody tr:first-child { border-top: 0; padding-top: 0; }
.chart tbody tr:last-child { padding-bottom: 0; }
.chart th[scope="row"] { margin-bottom: 8px; color: var(--text-2); font-size: 14px; font-weight: 600; text-align: left; }
.chart td.bar { display: flex; align-items: center; gap: 10px; height: 22px; padding: 0; }
.bar + .bar { margin-top: 6px; }
.bar i {
  flex: none;
  width: max(4px, calc(var(--v) / var(--max) * (100% - 80px)));
  height: 100%;
  border-radius: 6px;
  transform-origin: left center;
  transition: transform .9s var(--ease);
}
.bar--cmux i { background: var(--bar-cmux); }
.bar--lmux i { background: var(--bar-lmux); }
.bar--bg i { transition-delay: .04s; }
.bar span { color: var(--text-2); font: 500 13.5px/1 var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar--lmux span { color: var(--text); font-weight: 700; }
.bench.is-pending .bar i { transform: scaleX(0); }
.bar--cmux i { transition-delay: .08s; }

.bench__cond { grid-column: 1 / -1; margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.5; }

.bench__note { margin-top: 28px; color: var(--text-2); font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.fit { max-width: 720px; margin-top: 64px; }
.fit__col { padding: 30px 32px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fit__col ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fit__col li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 15.5px; }
.fit__col li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.fit__col--not li::before { background: none; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.fit__col p { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 15px; }

/* install */
.install { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "a then" "b then"; gap: 20px; }
.way--a { grid-area: a; }
.way--b { grid-area: b; }
.way--then { grid-area: then; }
.way { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.way h3 { display: flex; align-items: center; gap: 10px; }
.way p { color: var(--text-2); font-size: 15.5px; }
.way .btn { align-self: flex-start; }
.way__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--accent); font: 700 12px/1 var(--mono); }
.way--then { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 34px; color: var(--text-2); font-size: 15px; }
.steps li:last-child { padding-bottom: 0; }
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--accent); font: 700 11.5px/1 var(--mono);
}

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin: 0; }
.faq > div { padding: 26px 0; border-top: 1px solid var(--line); }
.faq dt { font: 650 17.5px/1.35 var(--display); letter-spacing: -.01em; }
.faq dd { margin: 8px 0 0; color: var(--text-2); font-size: 16px; }

/* footer */
.footer { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--display); }
.footer__brand span { color: var(--text-3); font: 400 14px/1 var(--sans); }
.footer__links { display: flex; gap: 20px; margin-left: auto; }
.footer__links a, .footer__meta a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer__links a:hover, .footer__meta a:hover { color: var(--text); text-decoration: underline; }
.footer__meta { width: 100%; color: var(--text-3); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__docs { display: inline-flex; align-items: center; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .hl { grid-template-columns: 1fr 1fr; }
  .js .tour { grid-template-columns: 1fr; }
  .tour__list { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter); }
  .tour__list::-webkit-scrollbar { display: none; }
  .tour__list [role="tab"] { flex: none; padding: 12px 16px; }
  .tour__list [role="tab"] span { display: none; }
  .keys { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 84px 0; }
  .section--note { padding: 80px 0 16px; }
  #faq { padding-bottom: 44px; }
  .section--end { padding: 0 0 72px; }
  .head { margin-bottom: 36px; }
  .head__lede { font-size: 17px; }
  .hero { padding-top: 48px; }
  .hero__kicker { font-size: 12px; }
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__btns > .btn { flex: 1; }
  .cmd { justify-content: space-between; }
  .cmd pre { font-size: 13px; }
  .stage { margin-top: 44px; }
  .stage__frame { border-radius: 10px; }
  .specs { grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .specs > div { padding: 16px 18px; }
  .specs > div + div { border-left: 0; }
  .specs > div:nth-child(even) { border-left: 1px solid var(--line); }
  .specs > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .specs b { font-size: 24px; }
  .hl { grid-template-columns: 1fr; }
  .hl__item { padding: 26px 22px 28px; }
  .tour__clips { grid-template-columns: 1fr; }
  .bench { grid-template-columns: 1fr; gap: 14px; }
  .chart { padding: 22px 20px 22px; }
  .fit { margin-top: 48px; }
  .fit__col { padding: 24px 22px; }
  .install { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "then"; gap: 14px; }
  .way { padding: 22px; }
  .cmd--block { padding-left: 14px; }
  .cmd--block pre { font-size: 13px; }
  .keys > div { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 0; }
  .keys dd { justify-content: flex-start; }
  .faq { grid-template-columns: 1fr; }
  .footer__links { margin-left: 0; width: 100%; }
  /* 44px tap targets */
  .icon-btn { width: 44px; height: 44px; }
  .btn--small { height: 44px; }
  .cmd { height: 54px; }
  .cmd pre { line-height: 54px; }
  .copy { height: 44px; min-width: 44px; }
  .media-btn { width: 44px; height: 44px; top: 8px; right: 8px; }
  .brand { min-height: 44px; }
  .nav__docs { min-height: 44px; }
  .hl__more .arrow-link, .keys__more .arrow-link { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__links a { display: inline-block; padding: 12px 0; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 420px) {
  .cmd pre { font-size: 12.5px; }
  .cmd .copy { width: 44px; padding: 0; justify-content: center; }
  .cmd .copy [data-copy-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.note__less { margin-top: 18px; color: var(--text-2); }
.note__less strong { color: var(--text); }
