@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --muted: #f4f4f5;
  --fg: #09090b;
  --fg-muted: #6b6b74;
  --primary: #18181b;
  --primary-fg: #ffffff;
  --primary-hover: #3f3f46;
  --border: rgb(0 0 0 / 0.1);
  --input: #d4d4d8;
  --ring: #71717a;
  --add: #15803d;
  --del: #b91c1c;
  --lotus: #e9729f;
  --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.28);
  --shot-glow: rgb(0 0 0 / 0);

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-2xl: 16px;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --gutter: 24px;
  --section: 112px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --card: #0f0f10;
    --muted: #171717;
    --fg: #fafafa;
    --fg-muted: #8a8a8a;
    --primary: #fafafa;
    --primary-fg: #18181b;
    --primary-hover: #d4d4d8;
    --border: rgb(255 255 255 / 0.1);
    --input: #3f3f46;
    --ring: #a1a1aa;
    --add: #4ade80;
    --del: #f87171;
    --lotus: #f29bbd;
    --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --card: #0f0f10;
  --muted: #171717;
  --fg: #fafafa;
  --fg-muted: #8a8a8a;
  --primary: #fafafa;
  --primary-fg: #18181b;
  --primary-hover: #d4d4d8;
  --border: rgb(255 255 255 / 0.1);
  --input: #3f3f46;
  --ring: #a1a1aa;
  --add: #4ade80;
  --del: #f87171;
  --lotus: #f29bbd;
  --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code, pre { font-family: var(--font-mono); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1, h2 { font-family: var(--font-display); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--r-md); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 8px 14px; background: var(--primary); color: var(--primary-fg); border-radius: var(--r-lg); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--r-lg);
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 16px; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border-color: var(--input); background: var(--card); }
.btn-outline:hover { background: var(--muted); }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: var(--r-lg); border: 0; background: none; cursor: pointer; color: var(--fg-muted);
}
.icon-btn:hover { background: var(--muted); color: var(--fg); }
.link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--input); text-underline-offset: 4px; font-weight: 500; }
.link:hover { text-decoration-color: var(--fg); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 6px 10px; border-radius: var(--r-md); color: var(--fg-muted); font-size: 15px; text-decoration: none; }
.nav-links a:hover { color: var(--fg); background: var(--muted); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
#theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #theme-toggle .i-sun { display: block; } :root:not([data-theme="light"]) #theme-toggle .i-moon { display: none; } }
:root[data-theme="dark"] #theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] #theme-toggle .i-moon { display: none; }

/* Hero */
.hero { padding-top: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-muted); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lotus); }
h1 { font-size: 64px; line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; }
.lede { margin-top: 24px; max-width: 60ch; font-size: 19px; color: var(--fg-muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--fg-muted); }
.shot-hero { margin-top: 56px; }
.shot-hero img { width: 100%; }

/* Models */
.models { padding: 56px 0 0; }
.kicker { font-family: var(--font-text); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.model-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.model-list li { display: flex; flex-direction: column; padding: 16px 18px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.model-list b { font-weight: 600; font-size: 16px; }
.model-list span { font-size: 14px; color: var(--fg-muted); }

/* Sections */
.section { padding-top: var(--section); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2, .lotus h2 { font-size: 44px; line-height: 1.08; margin-top: 10px; }
.sub { margin-top: 16px; color: var(--fg-muted); font-size: 18px; max-width: 62ch; }

/* Demo */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 16px; }
.demo-hint { font-size: 14px; color: var(--fg-muted); }
.demo-hint code { font-size: 13px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--r-lg); background: var(--muted); }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 7px; font-size: 14px; color: var(--fg-muted); cursor: pointer; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 0 0 1px var(--border); }
.demo-caption { margin-top: 14px; font-size: 14px; color: var(--fg-muted); }

.review {
  --ed-bg: #1a1b26; --ed-panel: #16161e; --ed-fg: #a9b1d6; --ed-dim: #565f89; --ed-line: #3b4261; --ed-border: #292e42;
  --ed-k: #bb9af7; --ed-t: #2ac3de; --ed-s: #9ece6a; --ed-c: #565f89; --ed-f: #7aa2f7; --ed-n: #ff9e64;
  --ed-accent: #7aa2f7; --ed-add: rgb(158 206 106 / .13); --ed-del: rgb(247 118 142 / .15);
  --ed-add-strong: rgb(158 206 106 / .30); --ed-del-strong: rgb(247 118 142 / .32);
  --ed-add-fg: #9ece6a; --ed-del-fg: #f7768e; --ed-hunk: rgb(122 162 247 / .10);
  position: relative;
  background: var(--ed-bg); color: var(--ed-fg);
  border: 1px solid var(--ed-border); border-radius: var(--r-2xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 13px;
  font-family: var(--font-text);
  transition: background-color .25s, color .25s, border-color .25s;
}
.review[data-ed="dracula"] {
  --ed-bg: #282a36; --ed-panel: #21222c; --ed-fg: #f8f8f2; --ed-dim: #6272a4; --ed-line: #6272a4; --ed-border: #44475a;
  --ed-k: #ff79c6; --ed-t: #8be9fd; --ed-s: #f1fa8c; --ed-c: #6272a4; --ed-f: #50fa7b; --ed-n: #bd93f9;
  --ed-accent: #bd93f9; --ed-add: rgb(80 250 123 / .10); --ed-del: rgb(255 85 85 / .14);
  --ed-add-strong: rgb(80 250 123 / .24); --ed-del-strong: rgb(255 85 85 / .30);
  --ed-add-fg: #50fa7b; --ed-del-fg: #ff5555; --ed-hunk: rgb(189 147 249 / .10);
}
.review[data-ed="dark"] {
  --ed-bg: #1f1f1f; --ed-panel: #181818; --ed-fg: #cccccc; --ed-dim: #9d9d9d; --ed-line: #6e7681; --ed-border: #2b2b2b;
  --ed-k: #569cd6; --ed-t: #4ec9b0; --ed-s: #ce9178; --ed-c: #6a9955; --ed-f: #dcdcaa; --ed-n: #b5cea8;
  --ed-accent: #0078d4; --ed-add: rgb(46 160 67 / .15); --ed-del: rgb(248 81 73 / .15);
  --ed-add-strong: rgb(46 160 67 / .32); --ed-del-strong: rgb(248 81 73 / .32);
  --ed-add-fg: #3fb950; --ed-del-fg: #f85149; --ed-hunk: rgb(0 120 212 / .12);
}
.review[data-ed="light"] {
  --ed-bg: #ffffff; --ed-panel: #f8f8f8; --ed-fg: #3b3b3b; --ed-dim: #616161; --ed-line: #6e7681; --ed-border: #e5e5e5;
  --ed-k: #0000ff; --ed-t: #267f99; --ed-s: #a31515; --ed-c: #008000; --ed-f: #795e26; --ed-n: #098658;
  --ed-accent: #005fb8; --ed-add: rgb(46 160 67 / .10); --ed-del: rgb(248 81 73 / .10);
  --ed-add-strong: rgb(46 160 67 / .25); --ed-del-strong: rgb(248 81 73 / .25);
  --ed-add-fg: #116329; --ed-del-fg: #b31d28; --ed-hunk: rgb(0 95 184 / .07);
}
.review svg { width: 16px; height: 16px; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; background: var(--ed-panel); border-bottom: 1px solid var(--ed-border); }
.review-icon { color: var(--ed-dim); }
.review-title { display: flex; flex-direction: column; line-height: 1.35; margin-right: auto; }
.review-title strong { font-weight: 600; font-size: 14px; }
.review-title span { font-size: 12px; color: var(--ed-dim); }
.seg-ed { background: transparent; border: 1px solid var(--ed-border); padding: 2px; }
.seg-ed button { color: var(--ed-dim); font-size: 12px; padding: 3px 10px; border-radius: 5px; }
.seg-ed button:hover { color: var(--ed-fg); }
.seg-ed button[aria-pressed="true"] { background: var(--ed-border); color: var(--ed-fg); box-shadow: none; }
.review-count { font-size: 12px; color: var(--ed-dim); font-variant-numeric: tabular-nums; }
.review-count .add { color: var(--ed-add-fg); }
.review-count .del { color: var(--ed-del-fg); }
.review-file { display: flex; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--ed-border); font-weight: 500; }
.file-name { display: inline-flex; align-items: center; gap: 8px; }
.file-name svg { color: var(--ed-del-fg); }

.diff { --row: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: var(--row); }
.diff:focus-visible { outline-offset: -2px; border-radius: 0; }

/* Split layout: each side in its own column, bands across the gutter between */
.split { min-width: 860px; padding-bottom: 6px; }
.split-labels, .srow, .hunk-cols { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); }
.hunk-cols { align-items: start; }
.split-labels span { padding: 4px 16px; font: 500 12px var(--font-text); color: var(--ed-dim); }
.col { min-width: 0; }
.gutter { position: relative; min-height: var(--row); }
.gutter svg { display: block; fill: none; stroke: none; overflow: visible; }
.band { stroke: none; }
.band.add { fill: var(--ed-add-strong); }
.band.del { fill: var(--ed-del-strong); }
.band.chg { fill: color-mix(in srgb, var(--ed-dim) 22%, transparent); }
.edge { fill: none; stroke-width: 1; }
.edge.add { stroke: var(--ed-add-fg); }
.edge.del { stroke: var(--ed-del-fg); }
.edge.chg { stroke: var(--ed-dim); }
.gutter-acts { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; pointer-events: none; }
.hunk-act { pointer-events: auto; display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ed-dim); cursor: pointer; }
.hunk-act svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hunk-act:hover { background: var(--ed-border); color: var(--ed-fg); }
.hunk-act[aria-pressed="true"] { color: var(--ed-accent); }
.hunk-head .hunk-act { width: 22px; height: 22px; }
.fold { display: flex; align-items: center; gap: 6px; padding: 0 14px 0 10px; min-height: 26px; background: color-mix(in srgb, var(--ed-hunk) 60%, transparent); color: var(--ed-dim); font: 12px var(--font-text); }
.fold-btn { display: inline-grid; place-items: center; width: 24px; height: 22px; border-radius: 5px; border: 0; background: transparent; color: var(--ed-dim); cursor: pointer; }
.fold-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fold-btn:hover, .fold-all:hover { background: var(--ed-border); color: var(--ed-fg); }
.fold-all { margin-left: auto; height: 22px; padding: 0 8px; border-radius: 5px; border: 0; background: transparent; color: var(--ed-fg); font: 500 12px var(--font-text); cursor: pointer; }
.row { display: grid; grid-template-columns: 44px 18px minmax(0, 1fr); white-space: pre; cursor: pointer; position: relative; }
.row:hover { background: rgb(127 127 127 / .08); }
.row .ln { color: var(--ed-line); text-align: right; padding-right: 10px; user-select: none; }
.row .mk { color: var(--ed-dim); user-select: none; }
.row .tx { overflow: hidden; text-overflow: ellipsis; padding-right: 14px; }
.row.del { background: var(--ed-del); }
.row.add { background: var(--ed-add); }
.row.del .mk { color: var(--ed-del-fg); }
.row.add .mk { color: var(--ed-add-fg); }
.row .w-del { background: var(--ed-del-strong); border-radius: 3px; }
.row .w-add { background: var(--ed-add-strong); border-radius: 3px; }
.row.commented .ln::before { content: ""; position: absolute; left: 4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--ed-accent); }

.hunk-head { display: flex; align-items: center; gap: 10px; padding: 0 14px 0 16px; background: var(--ed-hunk); color: var(--ed-dim); white-space: pre; min-height: 26px; }
.hunk-head .grow { margin-left: auto; }
.unified { min-width: 520px; padding-bottom: 6px; }
.unified .row { grid-template-columns: 44px 44px 18px minmax(0, 1fr); }

.k { color: var(--ed-k); } .t { color: var(--ed-t); } .s { color: var(--ed-s); } .c { color: var(--ed-c); font-style: italic; } .f { color: var(--ed-f); } .n { color: var(--ed-n); }

.comment-box { display: flex; gap: 8px; align-items: center; padding: 8px 12px 8px 62px; background: var(--ed-panel); border-block: 1px solid var(--ed-border); font-family: var(--font-text); white-space: normal; }
.comment-box input { flex: 1; min-width: 0; height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--ed-accent); background: var(--ed-bg); color: var(--ed-fg); font: 13px var(--font-text); }
.comment-box input:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ed-accent) 40%, transparent); }
.ed-btn { height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--ed-border); background: var(--ed-border); color: var(--ed-fg); font: 500 12.5px var(--font-text); cursor: pointer; white-space: nowrap; }
.ed-btn:hover:not(:disabled) { filter: brightness(1.15); }
.ed-btn:disabled { opacity: .5; cursor: default; }
.ed-btn.quiet { background: transparent; border-color: transparent; color: var(--ed-dim); }
.ed-btn:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 1px; }
.review-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--ed-border); background: var(--ed-panel); color: var(--ed-dim); font-size: 12.5px; }
.review-foot span { display: inline-flex; align-items: center; gap: 8px; }
.review-toast { position: absolute; right: 16px; bottom: 58px; padding: 8px 12px; border-radius: 8px; background: var(--ed-panel); border: 1px solid var(--ed-border); color: var(--ed-fg); font-size: 12.5px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.review-toast.show { opacity: 1; transform: none; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.points h3 { font-size: 17px; }
.points p { margin-top: 6px; color: var(--fg-muted); font-size: 16px; }

/* Sessions */
.crew { border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.crew-tabs { display: flex; gap: 2px; padding: 8px 8px 0; background: var(--muted); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.crew-tabs button { display: inline-flex; align-items: center; gap: 8px; flex: none; margin-bottom: -1px; padding: 8px 12px; border: 1px solid transparent; border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: none; color: var(--fg-muted); font-size: 14px; white-space: nowrap; cursor: pointer; }
.crew-tabs button:hover { color: var(--fg); }
.crew-tabs button[aria-selected="true"] { background: var(--card); border-color: var(--border); color: var(--fg); }
.crew-tabs button:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.crew-tab-bot { padding: 0 7px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; line-height: 18px; color: var(--fg-muted); }
.crew-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-muted); }
.crew-dot.is-working { background: var(--fg); animation: crew-pulse 1.6s ease-in-out infinite; }
.crew-dot.is-done { background: var(--add); }
@keyframes crew-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .crew-dot.is-working { animation: none; } }
.crew-pane { display: flex; flex-direction: column; gap: 14px; min-height: 470px; padding: 24px; font-size: 15px; }
.crew-pane[hidden] { display: none; }
.crew-pane > * { width: 100%; max-width: 720px; margin-inline: auto; }
.crew-pane:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.crew code { font-size: 13px; padding: 1px 5px; border-radius: var(--r-sm); background: var(--muted); }
.crew-you { width: auto; max-width: min(520px, 100%); margin-right: max(0px, (100% - 720px) / 2); align-self: flex-end; padding: 10px 14px; border-radius: var(--r-lg); background: var(--muted); }
.crew-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); }
.crew-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--fg-muted); }
.crew-card-head code { background: none; padding: 0; font-weight: 600; color: var(--fg); }
.crew-card p { grid-column: 1; }
.crew-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; height: 30px; padding: 0 12px; border: 1px solid var(--input); border-radius: var(--r-md); background: var(--card); color: var(--fg); font-size: 13px; cursor: pointer; }
.crew-link:hover { background: var(--muted); }
.crew-badge { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 20px; }
.crew-badge.is-done { color: var(--add); background: color-mix(in srgb, var(--add) 12%, transparent); }
.crew-badge.is-working { color: var(--fg); background: var(--muted); }
.crew-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--fg-muted); }
.crew-who b { color: var(--fg); font-weight: 600; }
.crew-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.crew-chips li { padding: 0 9px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; line-height: 22px; color: var(--fg); }
.crew-chips li:first-child { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.crew-brief { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--muted); }
.crew-brief code { background: var(--card); }
.crew-brief-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
.crew-steps { display: grid; gap: 6px; font-size: 14px; color: var(--fg-muted); }
.crew-steps li { position: relative; padding-left: 18px; }
.crew-steps li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--fg-muted); }
.crew-composer { margin-top: auto; padding: 12px 14px; border: 1px solid var(--input); border-radius: var(--r-lg); font-size: 14px; color: var(--fg-muted); }

/* Features */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--border); }
.feature:first-of-type { border-top: 0; padding-top: 8px; }
.feature-flip .feature-text { order: 2; }
.feature h3 { font-family: var(--font-display); font-size: 28px; line-height: 1.15; }
.feature-text > p { margin-top: 14px; color: var(--fg-muted); }
.ticks { margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--fg-muted); border-bottom: 2px solid var(--fg-muted); transform: rotate(-45deg); }
.ticks code, .feature code { font-size: 14px; background: var(--muted); padding: 1px 6px; border-radius: var(--r-sm); }
.feature-shot { margin: 0; }
.feature-shot img { width: 100%; }
.feature-shot-crop img, .feature-shot-narrow img { border-radius: var(--r-2xl); box-shadow: var(--shadow); border: 1px solid var(--border); }
.feature-shot-crop img { margin-inline: auto; }
.feature-shot-narrow img { max-width: 420px; margin-inline: auto; }

/* Lotus */
.lotus-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 56px; border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--card); }
.facts { margin: 28px 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 15px; }
.facts dt { color: var(--fg-muted); }
.facts dd { margin: 0; }
.code {
  margin: 0; padding: 22px 24px; overflow-x: auto;
  background: #1a1b26; color: #a9b1d6; border-radius: var(--r-lg);
  font-size: 13px; line-height: 1.65;
  --ed-k: #bb9af7; --ed-t: #2ac3de; --ed-s: #9ece6a; --ed-f: #7aa2f7; --ed-n: #ff9e64;
}

/* Download */
.dl-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.dl-main { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--card); }
.dl-for { font-size: 14px; color: var(--fg-muted); margin-bottom: 14px; }
.dl-main .btn { width: 100%; }
.dl-meta { margin-top: 12px; font-size: 14px; color: var(--fg-muted); }
.dl-meta a { color: var(--fg); }
.dl-notice { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; }
.dl-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dl-table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--fg-muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--border); }
.dl-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dl-table code { font-size: 13px; }
.dl-table a { text-decoration: underline; text-decoration-color: var(--input); text-underline-offset: 3px; }
.dl-table a:hover { text-decoration-color: var(--fg); }
.dl-table tr.mine td:first-child { font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-foot { margin-top: 14px; font-size: 14px; }

.first-run { margin-top: 56px; max-width: 860px; }
.first-run h3 { font-size: 20px; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--fg-muted); cursor: pointer; font-size: 15px; white-space: nowrap; border-radius: var(--r-md) var(--r-md) 0 0; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.pane { padding: 20px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pane[hidden] { display: none; }
.pane > p { color: var(--fg-muted); font-size: 16px; }
.pane b { color: var(--fg); font-weight: 600; }
.pane .small { font-size: 14px; }
.pane code { font-size: 14px; }
.cmd { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: var(--r-lg); background: var(--muted); border: 1px solid var(--border); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 13.5px; }
.copy { height: 30px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--input); background: var(--card); font-size: 13px; cursor: pointer; }
.copy:hover { background: var(--bg); }

/* Footer */
.footer { margin-top: var(--section); padding: 32px 0 40px; border-top: 1px solid var(--border); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--fg-muted); font-size: 15px; text-decoration: none; }
.footer-links a:hover { color: var(--fg); }

/* Tablet */
@media (max-width: 1040px) {
  h1 { font-size: 54px; }
  .feature, .feature-flip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature-flip .feature-text { order: 0; }
  .lotus-grid { grid-template-columns: minmax(0, 1fr); padding: 36px; }
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .points { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
/* Phone */
@media (max-width: 720px) {
  :root { --gutter: 16px; --section: 72px; }
  body { font-size: 16px; }
  .nav-links { display: none; }
  .hero { padding-top: 56px; }
  h1 { font-size: 40px; }
  h1 br { display: none; }
  .lede { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; }
  .shot-hero { margin-top: 36px; width: 100%; overflow: hidden; }
  .shot-hero img { width: 160%; max-width: none; margin-left: 0; }
  .section-head h2, .lotus h2 { font-size: 32px; }
  .feature h3 { font-size: 23px; }
  .lotus-grid { padding: 22px; }
  .code { font-size: 12px; padding: 16px; }
  .facts div { grid-template-columns: 90px 1fr; }
  .dl-main { padding: 20px; }
  .model-list { grid-template-columns: minmax(0, 1fr); }
  .model-list li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; }
  .dl-table th:nth-child(2), .dl-table td:nth-child(2) { display: none; }
  .review-head { padding: 10px 12px; }
  .comment-box { padding-left: 12px; flex-wrap: wrap; }
  .crew-pane { min-height: 0; padding: 16px; }
  .crew-tab-bot { display: none; }
}
