/* Crewly marketing site. No build step. Tokens first, then layout, then components. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.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: "Martian Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/martian-mono-latin.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;
}

/* Dark is the default look; light applies for system light (auto) or an explicit choice. */
:root {
  color-scheme: dark;
  --bg: #080c18;
  --bg-2: #0b1121;
  --panel: #0f1628;
  --panel-2: #131b30;
  --line: #1c2641;
  --line-2: #2a3658;
  --ink: #e7ecf6;
  --ink-2: #a6b0c6;
  --ink-3: #7c87a2;
  --accent: #7b98ff;
  --accent-bg: #3b6cff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(91, 134, 255, 0.14);
  --amber: #ffb547;
  --green: #45d39a;
  --grid: rgba(123, 152, 255, 0.07);
  --shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65);
  --focus: #9db3ff;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, "PingFang SC", monospace;
  --wrap: 1180px;
  --gutter: 24px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f5f7fb;
    --bg-2: #edf0f7;
    --panel: #ffffff;
    --panel-2: #f4f6fb;
    --line: #dce1ec;
    --line-2: #c3cbdc;
    --ink: #0f1526;
    --ink-2: #47516b;
    --ink-3: #5a647e;
    --accent: #2752e0;
    --accent-bg: #2c5bf0;
    --accent-ink: #ffffff;
    --accent-soft: rgba(44, 91, 240, 0.09);
    --amber: #a85f00;
    --green: #0b7a50;
    --grid: rgba(44, 91, 240, 0.07);
    --shadow: 0 40px 80px -36px rgba(20, 32, 70, 0.28);
    --focus: #2c5bf0;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-2: #edf0f7;
  --panel: #ffffff;
  --panel-2: #f4f6fb;
  --line: #dce1ec;
  --line-2: #c3cbdc;
  --ink: #0f1526;
  --ink-2: #47516b;
  --ink-3: #5a647e;
  --accent: #2752e0;
  --accent-bg: #2c5bf0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(44, 91, 240, 0.09);
  --amber: #a85f00;
  --green: #0b7a50;
  --grid: rgba(44, 91, 240, 0.07);
  --shadow: 0 40px 80px -36px rgba(20, 32, 70, 0.28);
  --focus: #2c5bf0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.022em; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent-bg); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 22px; list-style: none; font-size: 15px; }
.nav-links a { color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  color: var(--ink-2); font-family: var(--mono); font-size: 11.5px;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .i { display: none; }
.theme-toggle[data-mode="auto"] .i-auto,
.theme-toggle[data-mode="light"] .i-light,
.theme-toggle[data-mode="dark"] .i-dark { display: block; }

.lang { color: var(--ink-2); font-size: 14px; text-decoration: none; padding: 6px 4px; }
.lang:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent-bg); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent-bg) 86%, #fff); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; border-radius: 10px; }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.h-soft { color: var(--ink-3); display: block; }
.section { padding: 112px 0; }
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); line-height: 1.08; }
.section-head p { margin-top: 18px; color: var(--ink-2); max-width: 56ch; }
.soon {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
  padding: 2px 8px; border-radius: 999px; vertical-align: middle; white-space: nowrap;
}
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--accent); transform: rotate(45deg) scale(.8);
}
code, .mono { font-family: var(--mono); font-size: 0.86em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; isolation: isolate; }
/* Faint isometric grid behind the hero: the office floor the crew works on. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    repeating-linear-gradient(30deg, var(--grid) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(150deg, var(--grid) 0 1px, transparent 1px 40px);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.35rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero-copy p { color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.hero-note a { color: var(--ink-2); }

/* ---------- Demo (interactive product preview) ---------- */
.demo { margin-top: 56px; }
.demo-tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer;
  padding: 12px 14px 14px; margin-bottom: -1px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-3);
  border-bottom: 2px solid transparent;
}
.demo-tab .n { color: var(--ink-3); opacity: .7; }
.demo-tab:hover { color: var(--ink); }
.demo-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.demo-tab[aria-selected="true"] .n { color: var(--accent); opacity: 1; }
.demo-tab:focus-visible { outline-offset: -2px; }

.window {
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
}
.window-bar {
  display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); display: block; }
.url { flex: 1; min-width: 0; color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-tag {
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  border: 1px dashed var(--line-2); padding: 1px 8px; border-radius: 6px; white-space: nowrap;
}
.window-body { display: grid; grid-template-columns: 168px minmax(0, 1fr) 360px; min-height: 470px; }
.side { border-right: 1px solid var(--line); padding: 16px 10px; background: var(--panel); }
.side-office { display: flex; align-items: center; gap: 8px; padding: 0 8px 14px; color: var(--ink); font-weight: 500; }
.side-office i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent-bg); display: block; }
.side ul { list-style: none; display: grid; gap: 2px; }
.side li { padding: 6px 8px; border-radius: 6px; color: var(--ink-3); display: flex; justify-content: space-between; }
.side li.on { background: var(--accent-soft); color: var(--ink); }
.side .count { color: var(--amber); }

.scene { padding: 20px 22px; min-width: 0; }
.scene[hidden] { display: none; }
.scene-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--ink); font-weight: 500; }
.scene-title span:last-child { color: var(--ink-3); font-weight: 400; }

.msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 500; color: #0b1020; }
.av-you { background: var(--line-2); color: var(--ink); }
.av-alfred { background: #3b5bff; color: #fff; }
.av-coder { background: #f5c518; }
.av-reviewer { background: #14b8a6; }
.av-ops { background: #64748b; color: #fff; }
.msg-who { color: var(--ink-3); font-size: 11.5px; }
.msg-who b { color: var(--ink); font-weight: 500; }
.msg-text { font-family: var(--sans); font-size: 14.5px; line-height: 1.5; color: var(--ink); margin-top: 2px; }
.mention { color: var(--accent); }

.task-card {
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; background: var(--panel-2);
  display: grid; gap: 6px; margin: 4px 0 14px 38px;
}
.task-card .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink-3); font-size: 11.5px; }
.task-card .t { color: var(--ink); font-size: 13px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2); font-size: 11px; white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-todo { color: var(--ink-3); }
.chip-progress { color: var(--accent); }
.chip-review { color: var(--amber); }
.chip-done { color: var(--green); }
.composer {
  margin-top: 6px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px;
  color: var(--ink-3); display: flex; justify-content: space-between; gap: 10px;
}
.composer kbd { font-family: var(--mono); font-size: 10.5px; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; }

.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.col { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 120px; }
.col h4 { margin: 0 0 8px; font-weight: 500; font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px; font-size: 11px; color: var(--ink-2); margin-bottom: 6px; }
.card b { display: block; font-weight: 500; color: var(--ink); }
.card.hot { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.log { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 5px; font-size: 11.5px; color: var(--ink-2); }
.log .who { display: inline-block; min-width: 72px; color: var(--ink); }
.log .ok { color: var(--green); }
.log .warn { color: var(--amber); }
.log .live::after { content: "_"; color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.review { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.review-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--panel-2); }
.review-head .t { color: var(--ink); }
.review-body { padding: 12px 14px; display: grid; gap: 12px; }
.review-body .summary { font-family: var(--sans); font-size: 14px; color: var(--ink); }
.files { display: grid; gap: 3px; font-size: 11.5px; color: var(--ink-2); }
.files .add { color: var(--green); }
.files .del { color: #ff7a8a; }
:root[data-theme="light"] .files .del { color: #c22a3e; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .files .del { color: #c22a3e; } }
.second { border-left: 2px solid #14b8a6; padding-left: 10px; font-size: 12px; color: var(--ink-2); }
.second b { color: var(--ink); font-weight: 500; }
.review-actions { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.mini-btn {
  font-family: var(--mono); font-size: 12px; height: 32px; padding: 0 12px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink);
}
.mini-btn.go { background: var(--accent-bg); color: var(--accent-ink); border-color: transparent; }
.mini-btn:disabled { opacity: .5; cursor: default; }
.review-status { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.review-status.ok { color: var(--green); }

.list { display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.list-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-2); }
.list-row:first-child { border-top: 0; }
.list-row b { color: var(--ink); font-weight: 500; display: block; font-size: 12.5px; }
.toggle { width: 28px; height: 16px; border-radius: 999px; background: var(--line-2); position: relative; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); }
.toggle.on { background: var(--accent-bg); }
.toggle.on::after { left: 14px; background: #fff; }
.meeting { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 8px; font-size: 11.5px; color: var(--ink-2); }
.meeting .head { display: flex; justify-content: space-between; color: var(--ink); }
.meeting .line b { color: var(--ink); font-weight: 500; }
.meeting .minutes { border-top: 1px dashed var(--line-2); padding-top: 8px; color: var(--ink); }

.org-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.office-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--panel-2); font-size: 11px; color: var(--ink-3); }
.office-tile b { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; font-size: 12px; margin-bottom: 4px; }
.office-tile b i { width: 8px; height: 8px; border-radius: 2px; display: block; }
.office-tile.add { border-style: dashed; display: grid; place-items: center; color: var(--ink-3); }
.invite { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; color: var(--ink-3); font-size: 11.5px; }
.invite code { color: var(--ink); font-size: 11.5px; }

/* Office panel: the isometric display. */
.office { border-left: 1px solid var(--line); background: var(--panel-2); padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.office-head { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 11px; }
.office-head b { color: var(--ink); font-weight: 500; }
.iso { width: 100%; height: auto; }
.iso .floor { fill: var(--panel); stroke: var(--line-2); }
.iso .tile { stroke: var(--line); fill: none; }
.iso .wall-l { fill: color-mix(in srgb, var(--panel-2) 70%, var(--line)); }
.iso .wall-r { fill: color-mix(in srgb, var(--panel-2) 85%, var(--line)); }
.iso .screen { fill: var(--bg); stroke: var(--line-2); }
.iso .screen-t { fill: var(--ink-3); font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.iso .screen-v { fill: var(--accent); font-family: var(--mono); font-size: 8.5px; }
.iso .desk-top { fill: color-mix(in srgb, var(--ink-3) 45%, var(--panel)); }
.iso .desk-l { fill: color-mix(in srgb, var(--ink-3) 28%, var(--panel)); }
.iso .desk-r { fill: color-mix(in srgb, var(--ink-3) 18%, var(--panel)); }
.iso .laptop { fill: var(--ink-2); opacity: .55; }
.iso .name { fill: var(--ink-2); font-family: var(--mono); font-size: 9px; text-anchor: end; }
.iso .lamp { transition: fill .3s ease; fill: var(--ink-3); }
.iso .halo { fill: transparent; transition: fill .3s ease; }
.iso [data-s="working"] .lamp { fill: var(--green); }
.iso [data-s="working"] .halo { fill: color-mix(in srgb, var(--green) 30%, transparent); }
.iso [data-s="review"] .lamp { fill: var(--amber); }
.iso [data-s="review"] .halo { fill: color-mix(in srgb, var(--amber) 28%, transparent); }
.iso [data-s="working"] .halo { animation: pulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .4; } }
.roster { list-style: none; display: grid; gap: 4px; font-size: 11px; }
.roster li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; color: var(--ink-3); }
.roster li b { color: var(--ink); font-weight: 500; }
.roster .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.roster [data-s="working"] .dot { background: var(--green); }
.roster [data-s="review"] .dot { background: var(--amber); }
.roster .st { text-align: right; }
.roster [data-s="working"] .st { color: var(--green); }
.roster [data-s="review"] .st { color: var(--amber); }
.demo-caption { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* ---------- Runtimes ---------- */
.runtimes { padding: 56px 0 0; }
.runtimes-row { display: flex; align-items: center; gap: 14px 36px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.runtimes-row .label { font-size: 14px; color: var(--ink-3); max-width: 24ch; }
.runtime { font-family: var(--mono); font-size: 17px; color: var(--ink); display: inline-flex; align-items: baseline; gap: 10px; }
.runtime small { font-size: 11.5px; color: var(--ink-3); }
.runtime.later { color: var(--ink-3); }

/* ---------- Concepts (a real sequence: set up roles, form a crew, hand off, review) ---------- */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.step { padding: 28px 28px 8px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step h3 { font-size: 21px; margin-top: 14px; }
.step p { color: var(--ink-2); font-size: 15.5px; margin-top: 10px; }
.step .ex { margin-top: 16px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); line-height: 1.75; }
.step .ex span { color: var(--ink-2); }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; padding: 96px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.1; }
.feature-copy > p { margin-top: 18px; color: var(--ink-2); max-width: 50ch; }
.visual {
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  padding: 24px; font-family: var(--mono); font-size: 12px; color: var(--ink-2);
}

/* State machine */
.states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; }
.state { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 8px; text-align: center; color: var(--ink); background: var(--panel-2); }
.state small { display: block; color: var(--ink-3); font-size: 10.5px; margin-top: 2px; }
.state.you { border-color: color-mix(in srgb, var(--amber) 60%, transparent); }
.state.you small { color: var(--amber); }
.state-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; color: var(--ink-3); font-size: 10.5px; text-align: center; }
.state-notes { margin-top: 20px; display: grid; gap: 8px; border-top: 1px dashed var(--line-2); padding-top: 16px; }
.state-notes div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; }
.state-notes span:first-child { color: var(--ink); }

/* Menu bar */
.menubar { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; max-width: 360px; margin-left: auto; }
.menubar-strip { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 6px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 11px; }
.menubar-strip svg { width: 16px; height: 16px; }
.menu { list-style: none; padding: 6px; display: grid; }
.menu li { padding: 6px 10px; border-radius: 6px; color: var(--ink); display: flex; justify-content: space-between; gap: 10px; }
.menu li.sep { padding: 0; height: 1px; background: var(--line); margin: 4px 6px; }
.menu li .k { color: var(--ink-3); }
.menu li.check::before { content: "\2713"; color: var(--accent); margin-right: 6px; }
.menu li.check { justify-content: flex-start; }
.menu li.dim { color: var(--ink-3); }

/* Teams */
.roles-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.roles-table th, .roles-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.roles-table th { color: var(--ink-3); font-weight: 400; }
.roles-table td { color: var(--ink); }
.roles-table td.y { color: var(--green); }
.roles-table td.n { color: var(--ink-3); }

/* ---------- Also in the box ---------- */
.box-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.box-item { padding: 22px 22px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.box-item h3 { font-size: 16px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.box-item h3 svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.box-item p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* ---------- Roadmap ---------- */
.roadmap { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.road { border: 1px dashed var(--line-2); border-radius: 12px; padding: 22px; }
.road h3 { font-size: 18px; margin-top: 14px; }
.road p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

/* ---------- Closing CTA ---------- */
.closing { padding: 120px 0; border-top: 1px solid var(--line); background: var(--bg-2); position: relative; isolation: isolate; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    repeating-linear-gradient(30deg, var(--grid) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(150deg, var(--grid) 0 1px, transparent 1px 40px);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 20%, transparent 70%);
}
.closing-inner { text-align: center; display: grid; justify-items: center; }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; }
.closing p { margin-top: 18px; color: var(--ink-2); max-width: 48ch; }
.closing .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14.5px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot p { color: var(--ink-3); margin-top: 12px; max-width: 32ch; }
.foot h4 { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .muted { color: var(--ink-3); }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; }

/* ---------- Legal and 404 ---------- */
.legal { max-width: 760px; padding: 64px var(--gutter) 96px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; }
.updated { display: inline-block; margin: 14px 0 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); border: 1px solid var(--line-2); padding: 3px 10px; border-radius: 6px; }
.legal .lead { color: var(--ink-2); margin-top: 18px; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; letter-spacing: -0.015em; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent); }
.legal .toc { margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.legal .toc a { color: var(--ink-2); text-decoration: none; }
.legal .toc a:hover { color: var(--ink); text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.legal th { color: var(--ink); font-weight: 600; }
.legal .table-wrap { overflow-x: auto; }
.legal .caps { text-transform: uppercase; font-size: 14.5px; letter-spacing: 0.01em; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.notfound .code { font-family: var(--mono); color: var(--accent); font-size: 13px; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 12px; }
.notfound p { color: var(--ink-2); margin-top: 12px; }
.notfound .hero-ctas { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .window-body { grid-template-columns: minmax(0, 1fr) 290px; }
  .side { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .box-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .hero-top { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .window-body { grid-template-columns: minmax(0, 1fr); }
  .office { border-left: 0; border-top: 1px solid var(--line); }
  .iso { max-width: 340px; margin: 0 auto; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 72px 0; }
  .feature.flip .feature-copy { order: 0; }
  .menubar { margin-left: 0; }
  .roadmap { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot > div:first-child { grid-column: 1 / -1; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav-end { gap: 6px; }
  .nav-end .btn-ghost { display: none; }
  .theme-toggle .label { display: none; }
  .hero { padding-top: 44px; }
  .hero-copy p { font-size: 16.5px; }
  .demo { margin-top: 36px; }
  .scene { padding: 16px 14px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-row { grid-template-columns: minmax(0, 1fr) auto; }
  .list-row > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 24px 0 8px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .box-grid { grid-template-columns: minmax(0, 1fr); }
  .states, .state-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .state-notes div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal .toc ol { columns: 1; }
  .task-card { margin-left: 0; }
}

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

/* Office swatches (agent/office colors from the product's templates) */
.sw-blue { background: #3b6cff; }
.sw-teal { background: #14b8a6; }
.sw-amber { background: #ffb547; }
.steps { list-style: none; padding: 0; }
.visual > :last-child { margin-bottom: 0; }
.menubar { margin: 0 auto; }
#features .feature:first-child { padding-top: 40px; }
.feature-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); max-width: 50ch; }
.runtime.later { font-family: var(--sans); font-size: 15px; }
.hero-top { align-items: start; }
@media (min-width: 881px) { .hero-copy { padding-top: 40px; } }
.composer kbd { align-self: flex-start; }
/* CJK headlines: no negative tracking. */
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; }
:lang(zh) .eyebrow { letter-spacing: 0.06em; }
