/* ClashFree site, design system v2 (2026-10-25).
   Look: an engineering product with an AI brain. Light pages on warm paper, night bands with a faint drafting grid and an aurora glow,
   trade colours from the model (duct blue, pipe green, tray amber, sprinkler red, drainage brown), clash orange, verified green, AI violet.
   Type: Inter (UI and body), Instrument Serif italic for one accent word per headline, JetBrains Mono for technical labels.
   Every colour is a token; dark mode redefines the tokens (prefers-color-scheme, or data-theme on <html>). No build step. */

:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #f1f2ee;
  --surface-3: #e9ebe6;
  --ink: #0b1626;
  --ink-2: #45536a;
  --ink-3: #78869a;
  --line: #e3e5df;
  --line-2: #cfd4cc;
  --focus: #2f6bff;

  --brand: #2f6bff;
  --brand-ink: #1d4fd6;
  --brand-soft: rgba(47, 107, 255, 0.1);
  --ai: #6e56ff;
  --ai-2: #2f8cff;
  --ai-3: #1fc2b0;
  --ai-soft: rgba(110, 86, 255, 0.1);
  --grad-ai: linear-gradient(120deg, #6e56ff 0%, #2f8cff 52%, #1fc2b0 100%);

  --duct: #3b82f6;
  --pipe: #0ea371;
  --tray: #e8930c;
  --sprinkler: #e5484d;
  --drain: #9a6b3f;
  --conduit: #8e6cf0;
  --structure: #9aa3ad;
  --structure-2: #c9ced4;
  --clash: #ff5a36;
  --clash-soft: rgba(255, 90, 54, 0.12);
  --ok: #12a150;
  --ok-soft: rgba(18, 161, 80, 0.11);
  --warn: #c97a06;
  --warn-soft: rgba(232, 147, 12, 0.13);
  --bad: #d92d20;
  --bad-soft: rgba(217, 45, 32, 0.1);

  --night: #070d18;
  --night-2: #0d1626;
  --night-3: #142035;
  --night-ink: #e9eef7;
  --night-ink-2: #9fb0c8;
  --night-line: rgba(233, 238, 247, 0.1);

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-0: 1rem;
  --fs-1: 1.125rem;
  --fs-2: 1.375rem;
  --fs-3: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
  --fs-4: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
  --fs-5: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --wrap: 1200px;
  --shadow-1: 0 1px 2px rgba(11, 22, 38, 0.06), 0 1px 1px rgba(11, 22, 38, 0.04);
  --shadow-2: 0 12px 32px -12px rgba(11, 22, 38, 0.18), 0 2px 6px rgba(11, 22, 38, 0.06);
  --shadow-3: 0 30px 80px -24px rgba(11, 22, 38, 0.35), 0 8px 20px -8px rgba(11, 22, 38, 0.14);
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #090f1a;
    --surface: #0f1726;
    --surface-2: #121c2d;
    --surface-3: #18243a;
    --ink: #e9eef7;
    --ink-2: #a3b2c7;
    --ink-3: #7385a0;
    --line: #1d2a40;
    --line-2: #2a3a55;
    --brand: #6f97ff;
    --brand-ink: #9ab6ff;
    --brand-soft: rgba(111, 151, 255, 0.14);
    --ai: #9a87ff;
    --ai-soft: rgba(154, 135, 255, 0.14);
    --duct: #62a0ff;
    --pipe: #2fcf93;
    --tray: #f5ab3c;
    --sprinkler: #ff6b6f;
    --drain: #c49366;
    --conduit: #ad93ff;
    --structure: #5d6a7b;
    --structure-2: #3a4658;
    --clash: #ff7a5c;
    --clash-soft: rgba(255, 122, 92, 0.15);
    --ok: #34c77b;
    --ok-soft: rgba(52, 199, 123, 0.14);
    --warn: #f0a640;
    --warn-soft: rgba(240, 166, 64, 0.15);
    --bad: #ff6a5c;
    --bad-soft: rgba(255, 106, 92, 0.14);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 12px 32px -12px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-3: 0 30px 80px -24px rgba(0, 0, 0, 0.75), 0 8px 20px -8px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #090f1a;
  --surface: #0f1726;
  --surface-2: #121c2d;
  --surface-3: #18243a;
  --ink: #e9eef7;
  --ink-2: #a3b2c7;
  --ink-3: #7385a0;
  --line: #1d2a40;
  --line-2: #2a3a55;
  --brand: #6f97ff;
  --brand-ink: #9ab6ff;
  --brand-soft: rgba(111, 151, 255, 0.14);
  --ai: #9a87ff;
  --ai-soft: rgba(154, 135, 255, 0.14);
  --duct: #62a0ff;
  --pipe: #2fcf93;
  --tray: #f5ab3c;
  --sprinkler: #ff6b6f;
  --drain: #c49366;
  --conduit: #ad93ff;
  --structure: #5d6a7b;
  --structure-2: #3a4658;
  --clash: #ff7a5c;
  --clash-soft: rgba(255, 122, 92, 0.15);
  --ok: #34c77b;
  --ok-soft: rgba(52, 199, 123, 0.14);
  --warn: #f0a640;
  --warn-soft: rgba(240, 166, 64, 0.15);
  --bad: #ff6a5c;
  --bad-soft: rgba(255, 106, 92, 0.14);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 32px -12px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-3: 0 30px 80px -24px rgba(0, 0, 0, 0.75), 0 8px 20px -8px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-0)/1.6 var(--sans);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; color: var(--ink); }
h1 { font-size: var(--fs-5); letter-spacing: -0.04em; font-weight: 750; }
h2 { font-size: var(--fs-4); letter-spacing: -0.035em; }
h3 { font-size: var(--fs-2); letter-spacing: -0.02em; font-weight: 650; }
h4 { font-size: var(--fs-1); letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0 0 1em; }
code, kbd, samp { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--surface-3); padding: 0.1em 0.38em; border-radius: 5px; }
kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; padding: 0.05em 0.4em; border-radius: 5px; background: var(--surface); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--brand-soft); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.grad { background: var(--grad-ai); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.fine { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }
.center { text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section.tight { padding-block: clamp(40px, 6vw, 72px); }
.section.alt { background: var(--surface-2); }
.section + .section:not(.alt):not(.night) { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 var(--fs-xs)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
  margin: 0 0 18px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grad-ai); box-shadow: 0 0 0 4px var(--ai-soft); }
.lede { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-2); line-height: 1.6; max-width: 64ch; }
.section-head.center .lede { margin-inline: auto; }

/* ---------- Night band ---------- */
.night {
  --ink: var(--night-ink); --ink-2: var(--night-ink-2); --ink-3: #6f819c; --line: var(--night-line); --line-2: rgba(233, 238, 247, 0.18);
  --surface: var(--night-2); --surface-2: var(--night-3); --surface-3: #1b2a44; --brand-ink: #9ab6ff;
  background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; isolation: isolate;
  color-scheme: dark;
}
.night::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(233, 238, 247, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(233, 238, 247, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.night::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; width: 900px; height: 600px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(110, 86, 255, 0.32), rgba(47, 140, 255, 0.14) 55%, transparent 100%);
  filter: blur(10px);
}
.night .eyebrow { color: var(--night-ink-2); }
.night code { background: rgba(233, 238, 247, 0.08); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--night); color: var(--night-ink); font-size: var(--fs-sm); }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; flex-wrap: wrap; padding-block: 6px; text-align: center; }
.announce b { font-weight: 600; }
.announce a { color: #fff; font-weight: 600; }
.announce .tag-new { font: 600 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: var(--grad-ai); color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, background 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--shadow-1); }
.brand .beta { font: 600 10px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ai); background: var(--ai-soft); padding: 4px 6px; border-radius: 6px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link, .nav-drop > button {
  appearance: none; background: none; border: 0; cursor: pointer; font: 500 var(--fs-sm)/1 var(--sans); color: var(--ink-2);
  padding: 10px 12px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover, .nav-drop > button:hover, .nav-drop.open > button { color: var(--ink); background: var(--surface-3); text-decoration: none; }
.nav-link[aria-current='page'] { color: var(--ink); }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 10px; height: 10px; transition: transform 0.2s; }
.nav-drop.open > button svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 330px; padding: 8px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}
.nav-drop.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; align-items: center; padding: 10px; border-radius: 10px; color: var(--ink); }
.nav-menu a:hover { background: var(--surface-2); text-decoration: none; }
.nav-menu a .ni { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.nav-menu a .ni svg { width: 18px; height: 18px; }
.nav-menu a b { font-weight: 600; font-size: var(--fs-sm); }
.nav-menu a span { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.35; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; appearance: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }
.theme-btn { appearance: none; border: 0; background: none; width: 38px; height: 38px; border-radius: 9px; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.theme-btn:hover { background: var(--surface-3); color: var(--ink); }
.theme-btn svg { width: 18px; height: 18px; }
@media (max-width: 1020px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100dvh - var(--header-h)); overflow: auto;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 24px; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  }
  .site-header.menu-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-link, .nav-drop > button { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: var(--fs-0); }
  .nav-menu { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .nav-drop.open .nav-menu { display: block; }
  .nav-actions { margin: 12px 0 0; justify-content: space-between; }
  .nav-actions .btn { flex: 1; }
}

/* ---------- Buttons, pills ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--bg);
  appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 var(--fs-sm)/1 var(--sans); letter-spacing: -0.005em; padding: 13px 20px; border-radius: 11px;
  background: var(--b-bg); color: var(--b-fg); box-shadow: var(--shadow-1); transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }
.btn-ai { --b-fg: #fff; background: var(--grad-ai); background-size: 160% 100%; transition: background-position 0.4s, transform 0.12s, box-shadow 0.2s; box-shadow: 0 8px 24px -10px rgba(110, 86, 255, 0.7); }
.btn-ai:hover { background-position: 100% 0; }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.night .btn:not(.btn-ai):not(.btn-ghost) { --b-bg: #fff; --b-fg: #0b1626; }
.btn-sm { padding: 9px 14px; font-size: 0.8125rem; border-radius: 9px; }
.btn-lg { padding: 16px 26px; font-size: var(--fs-0); border-radius: 13px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); }
.link-arrow::after { content: '→'; transition: transform 0.15s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--fs-xs)/1 var(--sans); padding: 6px 10px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill.ai { background: var(--ai-soft); color: var(--ai); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.clash { background: var(--clash-soft); color: var(--clash); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag { font: 500 11px/1 var(--mono); padding: 5px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); white-space: nowrap; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow-1); }
.card h3 { font-size: var(--fs-1); margin-bottom: 0.4em; }
.card p { color: var(--ink-2); font-size: var(--fs-sm); margin-bottom: 0; }
a.card { color: inherit; display: block; transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink); margin-bottom: 18px; }
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.ai { background: var(--ai-soft); color: var(--ai); }
.icon-tile.ok { background: var(--ok-soft); color: var(--ok); }
.icon-tile.clash { background: var(--clash-soft); color: var(--clash); }
.icon-tile.brand { background: var(--brand-soft); color: var(--brand); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.55;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
}
.hero::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; width: 760px; height: 760px; right: -200px; top: -260px;
  background: radial-gradient(closest-side, rgba(110, 86, 255, 0.18), rgba(47, 140, 255, 0.1) 50%, transparent 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 0.32em; font-size: clamp(2.5rem, 1.3rem + 4vw, 4.3rem); }
.hero h1 .serif { font-size: 1.06em; }
.hero .lede { margin-bottom: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: var(--fs-sm); color: var(--ink-2); list-style: none; padding: 0; }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--ok); }
@media (max-width: 1020px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Hero video: the poster and a play button until the visitor starts it ---------- */
.hero-video { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #070d18; border: 1px solid var(--line); box-shadow: var(--shadow-3); }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.hv-play, .hv-time { display: none; }
.js .hv-play { display: grid; place-items: center; position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.hv-play svg { box-sizing: content-box; width: 34px; height: 34px; padding: 22px; border-radius: 50%; background: linear-gradient(135deg, #5b8cff, #3fa8ff 55%, #2fd6c0); box-shadow: 0 10px 34px rgba(47, 140, 255, 0.5), 0 0 0 8px rgba(255, 255, 255, 0.12); transition: transform 0.18s, box-shadow 0.18s; }
.hv-play:hover svg, .hv-play:focus-visible svg { transform: scale(1.09); box-shadow: 0 12px 42px rgba(47, 140, 255, 0.65), 0 0 0 11px rgba(255, 255, 255, 0.16); }
.hv-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: var(--r-lg); }
.js .hv-time { display: block; position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.72); color: #fff; font: 600 12px/1.3 var(--mono); pointer-events: none; }
.hero-video.playing .hv-play, .hero-video.playing .hv-time { display: none; }
@media (max-width: 560px) { .hv-play svg { width: 24px; height: 24px; padding: 16px; } }

/* ---------- Decision board (home infographic) ---------- */
#decision .board { max-width: 780px; margin-inline: auto; }
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); overflow: hidden; position: relative; }
.board-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-2); }
.board-bar .lights { display: flex; gap: 6px; }
.board-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.board-bar .title { font-family: var(--mono); font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-phase { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--mono); color: var(--ai); background: var(--ai-soft); padding: 5px 8px; border-radius: 999px; }
.board-phase.ok { color: var(--ok); background: var(--ok-soft); }
.board-phase .spin { width: 8px; height: 8px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.board-phase.ok .spin { animation: none; border-color: currentColor; background: currentColor; }
.board-canvas { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.board-canvas svg { width: 100%; }
.board-options { list-style: none; margin: 0; padding: 10px; display: grid; gap: 6px; }
.bopt { display: grid; grid-template-columns: 26px minmax(0, 1fr) 120px 64px; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; font-size: 0.8125rem; transition: background 0.3s, opacity 0.3s, transform 0.3s; }
.bopt .id { font: 600 11px/1 var(--mono); color: var(--ink-3); }
.bopt .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bopt .what small { display: block; color: var(--ink-3); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.bopt .bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; display: flex; }
.bopt .bar i { display: block; height: 100%; width: 0; transition: width 0.8s cubic-bezier(.2,.8,.2,1); }
.bopt .score { font: 600 12px/1 var(--mono); text-align: right; color: var(--ink-2); }
.bopt.pending { opacity: 0; transform: translateY(6px); }
.bopt.removed .what { text-decoration: line-through; text-decoration-color: var(--bad); color: var(--ink-3); }
.bopt.removed .score { color: var(--bad); font-size: 10px; }
.bopt.best { background: var(--ok-soft); }
.bopt.best .id { color: var(--ok); }
.bopt.best .score { color: var(--ok); }
.board-why { margin: 0 10px 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); font-size: 0.8125rem; color: var(--ink-2); min-height: 62px; }
.board-why b { color: var(--ink); }
.board-why .who { font: 600 10px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ai); display: block; margin-bottom: 6px; }
@media (max-width: 560px) { .bopt { grid-template-columns: 22px minmax(0, 1fr) 54px; } .bopt .bar { display: none; } }

/* bar segment colours: one per score term, shared by every scoreboard */
.t-fit { background: var(--duct); }
.t-len { background: var(--pipe); }
.t-move { background: var(--tray); }
.t-class { background: var(--ai); }
.t-wall { background: var(--sprinkler); }
.t-zone { background: var(--drain); }
.t-prec { background: repeating-linear-gradient(45deg, var(--ok), var(--ok) 3px, transparent 3px, transparent 6px); }

/* ---------- Drawing primitives (inline SVG) ---------- */
.dw text { font: 500 11px var(--mono); fill: var(--ink-2); }
.dw .lbl-strong { fill: var(--ink); font-weight: 600; }
.dw .concrete { fill: var(--structure-2); stroke: var(--structure); stroke-width: 1.2; }
.dw .hatch line { stroke: var(--structure); stroke-width: 1; }
.dw .gridline { stroke: var(--line-2); stroke-dasharray: 10 4 2 4; }
.dw .dim { stroke: var(--ink-3); stroke-width: 1; fill: none; }
.dw .ceiling { stroke: var(--warn); stroke-width: 1.4; stroke-dasharray: 7 5; }
.dw .duct { fill: color-mix(in srgb, var(--duct) 16%, transparent); stroke: var(--duct); stroke-width: 2; }
.dw .pipe { fill: none; stroke: var(--pipe); stroke-linecap: round; stroke-linejoin: round; }
.dw .tray { fill: none; stroke: var(--tray); stroke-linecap: square; stroke-linejoin: miter; }
.dw .drain { fill: none; stroke: var(--drain); stroke-linecap: round; }
.dw .sprinkler { fill: none; stroke: var(--sprinkler); stroke-linecap: round; stroke-linejoin: round; }
.dw .conduit { fill: none; stroke: var(--conduit); stroke-linecap: round; stroke-linejoin: round; }
.dw .ghost { fill: none; stroke: var(--ink-3); stroke-dasharray: 5 5; opacity: 0.7; }
.dw .cand { fill: none; stroke-width: 2; stroke-dasharray: 6 5; opacity: 0; transition: opacity 0.4s; }
.dw .cand.show { opacity: 0.85; }
.dw .cand.bad { stroke: var(--bad); }
.dw .cand.mid { stroke: var(--ink-3); }
.dw .cand.win { stroke: var(--ok); stroke-dasharray: none; stroke-width: 3; }
.dw .clash-ring { fill: var(--clash-soft); stroke: var(--clash); stroke-width: 2; }
.dw .clash-pulse { fill: none; stroke: var(--clash); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-out infinite; }
.dw .ok-ring { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 2; }
.dw .x { stroke: var(--bad); stroke-width: 2.2; stroke-linecap: round; }
.dw .tick { stroke: var(--ok); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dw .zone { fill: color-mix(in srgb, var(--warn) 10%, transparent); stroke: var(--warn); stroke-dasharray: 3 3; }
.dw .wall { fill: var(--surface-3); stroke: var(--ink-3); }
.dw .wall-rated { fill: var(--bad-soft); stroke: var(--bad); }
.dw .slab { fill: var(--structure-2); stroke: var(--structure); }
.dw .neighbour { fill: none; stroke: var(--ink-3); stroke-width: 3; opacity: 0.45; stroke-linecap: round; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: 0; } }

/* ---------- "Works with" strip ---------- */
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 36px; padding: 28px 0; color: var(--ink-3); font-size: var(--fs-sm); }
.strip b { color: var(--ink-2); font-weight: 600; }
.strip .label { font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.strip span { display: inline-flex; align-items: center; gap: 8px; }
.strip svg { width: 18px; height: 18px; }

/* ---------- Workflow (numbered steps with mini panes) ---------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: flow; position: relative; }
.flow::before { content: ''; position: absolute; top: 19px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--line-2), var(--ai), var(--line-2)); opacity: 0.6; }
.flow > li { counter-increment: flow; position: relative; }
.flow-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); font: 700 14px/1 var(--mono); color: var(--ink); position: relative; z-index: 1; margin-bottom: 18px; transition: border-color 0.3s, background 0.3s, color 0.3s; }
.flow > li.on .flow-num { border-color: var(--ai); background: var(--ai); color: #fff; box-shadow: 0 0 0 6px var(--ai-soft); }
.flow h3 { font-size: var(--fs-1); margin-bottom: 6px; }
.flow p { font-size: var(--fs-sm); color: var(--ink-2); }
.flow .mini { margin-top: 14px; }
@media (max-width: 960px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .flow::before { display: none; }
}
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* ---------- Pane mock (mirrors the ClashFree pane's look) ---------- */
.pane {
  --p-bg: #ffffff; --p-bg2: #f3f5f8; --p-ink: #111827; --p-ink2: #4b5563; --p-ink3: #9ca3af; --p-line: #e5e7eb; --p-blue: #2563eb; --p-blue-soft: #e8f0fe; --p-green: #15803d; --p-green-soft: #e9f7ee;
  font: 400 12.5px/1.4 var(--sans); color: var(--p-ink); background: var(--p-bg2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-2);
  color-scheme: light; text-align: left;
}
.pane-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--p-bg); border-bottom: 1px solid var(--p-line); }
.pane-top .logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.pane-top .logo svg { width: 18px; height: 18px; border-radius: 5px; }
.pane-top .trial { font-size: 11px; font-weight: 600; color: var(--p-blue); background: var(--p-blue-soft); border-radius: 999px; padding: 3px 8px; }
.pane-top .claude { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--p-ink2); }
.pane-top .claude i { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.pane-body { padding: 10px; display: grid; gap: 8px; }
.pane-row-1 { display: flex; gap: 8px; align-items: center; }
.pane-trade { display: inline-flex; align-items: center; gap: 6px; background: var(--p-bg); border: 1px solid var(--p-line); border-radius: 999px; padding: 5px 10px; font-weight: 600; }
.pane-search { flex: 1; background: var(--p-bg); border: 1px solid var(--p-line); border-radius: 8px; padding: 6px 9px; color: var(--p-ink3); white-space: nowrap; overflow: hidden; }
.pane-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #e9ecf1; border-radius: 9px; padding: 3px; gap: 2px; }
.pane-tabs span { text-align: center; padding: 6px 2px; border-radius: 7px; color: var(--p-ink2); font-size: 11.5px; white-space: nowrap; }
.pane-tabs span.on { background: var(--p-bg); color: var(--p-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pane-tabs span b { font-weight: 600; color: var(--p-ink3); margin-left: 3px; }
.pane-report { display: flex; align-items: center; gap: 8px; background: var(--p-bg); border: 1px solid var(--p-line); border-radius: 9px; padding: 8px 10px; font-weight: 500; }
.pane-report small { margin-left: auto; color: var(--p-ink2); }
.prow { display: grid; grid-template-columns: 14px 44px minmax(0, 1fr) auto; gap: 8px; align-items: center; background: var(--p-bg); border: 1px solid var(--p-line); border-left: 4px solid var(--p-ink3); border-radius: 9px; padding: 8px 10px 8px 8px; transition: background 0.3s, border-color 0.3s; }
.prow.p1 { border-left-color: #dc2626; }
.prow.p2 { border-left-color: #d97706; }
.prow.p3 { border-left-color: #cbd5e1; }
.prow.sel { background: #eef4ff; border-color: #bfd3fb; }
.prow .cb { width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid #9ca3af; display: grid; place-items: center; }
.prow.sel .cb { background: var(--p-blue); border-color: var(--p-blue); }
.prow.sel .cb::after { content: ''; width: 6px; height: 3px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.prow .gid { font: 600 11px/1 var(--mono); color: var(--p-ink2); }
.prow .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .chip { font-size: 10.5px; font-weight: 500; color: var(--p-blue); background: var(--p-blue-soft); border-radius: 6px; padding: 3px 6px; white-space: nowrap; }
.prow .chip.ok { color: var(--p-green); background: var(--p-green-soft); }
.prow .chip.run { color: #6d28d9; background: #f1ecff; }
.prow .chip.flag { color: #b45309; background: #fff4e0; }
.pane-bar { display: flex; align-items: center; gap: 8px; background: #111827; color: #fff; border-radius: 10px; padding: 8px 10px; font-weight: 500; }
.pane-bar .go { margin-left: auto; background: linear-gradient(120deg, #6e56ff, #2f8cff); color: #fff; border-radius: 7px; padding: 5px 10px; font-weight: 600; font-size: 11.5px; }
.pane-toast { display: flex; gap: 8px; align-items: center; background: var(--p-bg); border: 1px solid var(--p-line); border-radius: 10px; padding: 9px 10px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.2); }
.pane-toast i { width: 8px; height: 8px; border-radius: 50%; background: #0ea5e9; flex: none; }
.pane-verified { background: var(--p-green-soft); border: 1px solid #bfe5cc; color: var(--p-green); border-radius: 10px; padding: 8px 10px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.pane-checks { list-style: none; margin: 0; padding: 0 2px; display: grid; gap: 4px; color: var(--p-ink2); }
.pane-checks li::before { content: '✓'; color: var(--p-green); font-weight: 700; margin-right: 6px; }
.pane-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pane-actions span { text-align: center; padding: 9px; border-radius: 9px; font-weight: 600; }
.pane-actions .keep { background: #15803d; color: #fff; }
.pane-actions .reject { background: var(--p-bg); border: 1px solid var(--p-line); }
.pane-ask { background: var(--p-bg); border: 1.5px solid var(--p-blue); border-radius: 9px; padding: 8px 10px; color: var(--p-ink3); }
.pane-queue { display: grid; gap: 6px; }
.pane-queue .q { display: flex; align-items: center; gap: 8px; background: var(--p-bg); border: 1px solid var(--p-line); border-radius: 9px; padding: 7px 10px; }
.pane-queue .q small { margin-left: auto; color: var(--p-ink2); font-family: var(--mono); font-size: 10.5px; }
.pane-wait { width: 56px; margin: 8px auto; }
.pane.mini { font-size: 11px; border-radius: 12px; }
.pane.mini .pane-top { padding: 7px 9px; }
.pane.mini .pane-body { padding: 8px; gap: 6px; }
.pane.mini .prow { padding: 6px 8px 6px 6px; grid-template-columns: 12px 38px minmax(0, 1fr) auto; }
[data-theme='dark'] .pane, .night .pane { border-color: rgba(255,255,255,.08); }

/* ---------- Scoreboard (option comparison) ---------- */
.scoreboard { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.sb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.sb-tab { appearance: none; cursor: pointer; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: 600 var(--fs-sm)/1 var(--sans); padding: 10px 14px; border-radius: 999px; transition: all 0.2s; }
.sb-tab:hover { color: var(--ink); border-color: var(--ink-3); }
.sb-tab[aria-selected='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sb-scene { background: var(--surface-2); border-right: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.sb-scene svg { width: 100%; }
.sb-scene .facts { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-list { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.sb-opt { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.sb-opt .oid { font: 600 12px/1 var(--mono); color: var(--ink-3); grid-row: span 2; }
.sb-opt .name { font-weight: 600; font-size: var(--fs-sm); }
.sb-opt .name small { font-weight: 400; color: var(--ink-3); }
.sb-opt .val { font: 600 13px/1 var(--mono); color: var(--ink-2); text-align: right; }
.sb-opt .stack { grid-column: 2 / 4; height: 10px; border-radius: 99px; background: var(--surface-3); display: flex; overflow: hidden; }
.sb-opt .stack i { height: 100%; transition: width 0.7s cubic-bezier(.2,.8,.2,1); }
.sb-opt.best { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: var(--ok-soft); }
.sb-opt.best .oid, .sb-opt.best .val { color: var(--ok); }
.sb-opt.out { opacity: 0.8; background: var(--surface-2); border-style: dashed; }
.sb-opt.out .name { text-decoration: line-through; text-decoration-color: var(--bad); color: var(--ink-3); }
.sb-opt.out .val { color: var(--bad); font-size: 11px; font-family: var(--sans); }
.sb-opt.out .stack { display: none; }
.sb-opt .why-out { grid-column: 2 / 4; font-size: var(--fs-xs); color: var(--bad); }
.sb-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.sb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sb-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ai-say { border-radius: 14px; padding: 14px 16px; background: var(--ai-soft); border: 1px solid color-mix(in srgb, var(--ai) 25%, transparent); font-size: var(--fs-sm); color: var(--ink); }
.ai-say .who { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ai); margin-bottom: 8px; }
.ai-say .who svg { width: 14px; height: 14px; }
.ai-say p { margin: 0; }
.ai-say p + p { margin-top: 8px; }
@media (max-width: 900px) { .scoreboard { grid-template-columns: 1fr; } .sb-scene { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- Judgement case cards ---------- */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.case-art { background: var(--surface-2); border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; display: grid; place-items: center; }
.case-art svg { width: 100%; height: 100%; }
.case-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-kind { font: 600 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.case h3 { font-size: 1.05rem; margin: 0; }
.case p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.case .verdict { margin-top: auto; padding-top: 10px; font-size: var(--fs-xs); display: flex; gap: 6px; flex-wrap: wrap; }
.case .rule { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.case-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* ---------- Verification loop ---------- */
.loop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; position: relative; }
.loop-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: relative; }
.loop-step .n { font: 600 11px/1 var(--mono); color: var(--ink-3); margin-bottom: 10px; display: block; }
.loop-step h4 { font-size: var(--fs-0); margin-bottom: 6px; }
.loop-step p { font-size: var(--fs-xs); color: var(--ink-2); margin: 0; line-height: 1.5; }
.loop-step:not(:last-child)::after { content: ''; position: absolute; right: -10px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: translateY(-50%) rotate(45deg); }
.loop-step.ai { border-color: color-mix(in srgb, var(--ai) 35%, transparent); }
.loop-step.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.loop-retry { margin-top: 14px; font-size: var(--fs-sm); color: var(--ink-2); display: flex; align-items: center; gap: 10px; justify-content: center; }
.loop-retry svg { width: 40px; height: 20px; color: var(--ai); }
@media (max-width: 960px) { .loop { grid-template-columns: 1fr 1fr; } .loop-step::after { display: none; } }
@media (max-width: 520px) { .loop { grid-template-columns: 1fr; } }

/* ---------- Funnel ---------- */
.funnel { display: grid; gap: 10px; }
.fn-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 80px; gap: 14px; align-items: center; font-size: var(--fs-sm); }
.fn-row .lab { color: var(--ink-2); }
.fn-row .lab b { color: var(--ink); display: block; font-size: var(--fs-sm); }
.fn-row .bar { height: 34px; border-radius: 10px; background: var(--surface-3); position: relative; overflow: hidden; }
.fn-row .bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 10px; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.fn-row .num { font: 700 1.05rem/1 var(--mono); text-align: right; }
.in .fn-row .bar i { width: var(--w); }
@media (max-width: 600px) { .fn-row { grid-template-columns: 1fr 64px; } .fn-row .bar { grid-column: 1 / -1; grid-row: 2; height: 22px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--surface); padding: 26px 24px; }
.stat strong { display: block; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; }
.stat span { font-size: var(--fs-sm); color: var(--ink-2); }
.night .stats { background: var(--night-line); border-color: var(--night-line); }
.night .stat { background: rgba(13, 22, 38, 0.7); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Time lanes + calculator ---------- */
.lanes { display: grid; gap: 22px; }
.lane h4 { display: flex; justify-content: space-between; font-size: var(--fs-sm); margin-bottom: 10px; }
.lane h4 small { font-weight: 500; color: var(--ink-3); }
.track { display: flex; gap: 4px; height: 44px; }
.track span { flex: var(--m, 1); border-radius: 8px; background: var(--surface-3); position: relative; overflow: hidden; display: flex; align-items: center; padding: 0 8px; font-size: 10.5px; color: var(--ink-2); white-space: nowrap; min-width: 6px; }
.track span.hand { background: color-mix(in srgb, var(--clash) 14%, var(--surface)); color: var(--ink-2); }
.track span.auto { background: color-mix(in srgb, var(--ai) 16%, var(--surface)); color: var(--ai); }
.track span.you { background: color-mix(in srgb, var(--ok) 18%, var(--surface)); color: var(--ok); font-weight: 600; }
.lane.cf .track { width: 22%; min-width: 220px; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-2); }
.calc h3 { font-size: var(--fs-1); }
.calc label { display: block; margin: 18px 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.calc .row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.calc output { font: 600 var(--fs-sm)/1 var(--mono); color: var(--ink); }
.calc input[type='range'] { width: 100%; accent-color: var(--ai); }
.calc .result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.calc .result strong { display: block; font-size: 1.6rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.calc .result span { font-size: var(--fs-xs); color: var(--ink-3); }
@media (max-width: 520px) { .calc .result { grid-template-columns: 1fr 1fr; } }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; color: var(--ink); width: 30%; }
.compare .hl { background: color-mix(in srgb, var(--ai) 6%, transparent); }
.compare thead .hl { color: var(--ai); }
.y { color: var(--ok); font-weight: 600; }
.n { color: var(--ink-3); }
.p { color: var(--warn); }

/* ---------- Data flow ---------- */
.dataflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.df-node { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.df-node h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.df-node ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: var(--fs-sm); color: var(--ink-2); }
.df-node li { display: flex; gap: 8px; }
.df-node li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--ink-3); }
.df-node.home { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.df-node.home li::before { background: var(--ok); }
.df-node.ai li::before { background: var(--ai); }
.df-arrow { display: grid; place-items: center; color: var(--ink-3); font: 500 11px/1.3 var(--mono); text-align: center; width: 90px; }
.df-arrow svg { width: 60px; height: 14px; margin: 6px auto; }
@media (max-width: 960px) { .dataflow { grid-template-columns: 1fr; } .df-arrow { width: auto; transform: none; } .df-arrow svg { transform: rotate(90deg); } }

/* ---------- Claude transcript ---------- */
.term { background: #0a0f1a; color: #d7e0ee; border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-3); overflow: hidden; font: 400 12.5px/1.65 var(--mono); }
.term-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.07); color: #7d8aa0; font-size: 11px; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3448; }
.term-bar span { margin-left: 8px; }
.term pre { margin: 0; padding: 16px 18px; white-space: pre-wrap; word-break: break-word; }
.term .u { color: #fff; }
.term .c { color: #9a87ff; }
.term .t { color: #5ad1c0; }
.term .o { color: #7d8aa0; }
.term .k { color: #34c77b; }
.term .w { color: #f5ab3c; }

/* ---------- Quote / testimonial placeholder ---------- */
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.quote-by { margin-top: 18px; font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > :not(summary) { color: var(--ink-2); font-size: var(--fs-sm); }
.faq details > p:last-child { padding-bottom: 18px; margin: 0; }
.faq-groups { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.faq-groups nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.faq-groups nav a { padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-size: var(--fs-sm); }
.faq-groups nav a:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.faq-groups h2 { font-size: var(--fs-2); margin: 40px 0 16px; }
.faq-groups h2:first-child { margin-top: 0; }
@media (max-width: 860px) { .faq-groups { grid-template-columns: 1fr; } .faq-groups nav { position: static; display: flex; flex-wrap: wrap; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lede { margin: 0 auto 32px; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
input[type='text'], input[type='email'], input[type='search'], input[type='date'], input[type='number'], select, textarea {
  width: 100%; font: 400 var(--fs-0)/1.4 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; transition: border-color 0.15s, box-shadow 0.15s; min-height: 46px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px var(--brand-soft); }
[aria-invalid='true'] { border-color: var(--bad) !important; box-shadow: 0 0 0 4px var(--bad-soft) !important; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--ai); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-size: var(--fs-sm); margin: 0; color: var(--ink-2); }
.form-msg.err { color: var(--bad); }
.done { text-align: center; padding: 24px 8px; }
.done svg { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--ok); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-3); position: relative; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-sm); color: var(--ink-2); background: var(--surface); transition: all 0.15s; }
.chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Timeline (what happens next / changelog) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; position: relative; }
.timeline .tn { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); display: grid; place-items: center; font: 700 12px/1 var(--mono); position: relative; z-index: 1; }
.timeline li.ai .tn { border-color: var(--ai); color: var(--ai); }
.timeline li.ok .tn { border-color: var(--ok); color: var(--ok); }
.timeline h4 { margin: 4px 0 4px; font-size: var(--fs-0); }
.timeline p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- Page head + breadcrumbs ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: 0.5; mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000, transparent 75%); }
.page-head h1 { font-size: var(--fs-4); max-width: 22ch; }
.page-head.center h1, .page-head.center .lede { margin-inline: auto; text-align: center; }
.page-head.center { text-align: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: 22px; list-style: none; padding: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); }

/* ---------- Article / blog / prose ---------- */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol { margin: 0; }
.prose > * + p, .prose > * + ul, .prose > * + ol { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-3); margin: 2.2em 0 0.6em; }
.prose h3 { font-size: var(--fs-2); margin: 1.8em 0 0.5em; }
.prose h4 { margin: 1.6em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--ink-3); }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ai); font-family: var(--serif); font-style: italic; font-size: 1.35em; line-height: 1.4; color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 10px; text-align: center; }
.prose table { font-size: var(--fs-sm); }
.prose .table-wrap { margin: 1.6em 0; }
.prose strong { font-weight: 650; }
.prose hr { margin: 3em 0; }
.callout { border-radius: var(--r); padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-sm); }
.callout.ai { background: var(--ai-soft); border-color: color-mix(in srgb, var(--ai) 25%, transparent); }
.callout.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.callout.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.callout b:first-child { display: block; margin-bottom: 4px; }
.fig { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(14px, 2vw, 24px); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; align-items: start; }
.article-layout aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.toc { font-size: var(--fs-sm); }
.toc b { display: block; font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--ai); text-decoration: none; }
@media (max-width: 1020px) { .article-layout { grid-template-columns: 1fr; } .article-layout aside { position: static; } }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: var(--fs-sm); color: var(--ink-3); margin-top: 18px; }
.article-meta .av { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-ai); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-2); }
.post-card .art { aspect-ratio: 16 / 9; background: var(--surface-2); border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.post-card .art svg { width: 100%; height: 100%; }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 1.15rem; margin: 0; }
.post-card p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.post-card .meta { margin-top: auto; font-size: var(--fs-xs); color: var(--ink-3); display: flex; gap: 10px; }
.post-card.feature { grid-column: 1 / -1; flex-direction: row; }
.post-card.feature .art { aspect-ratio: auto; flex: 1.2; border-bottom: 0; border-right: 1px solid var(--line); min-height: 300px; }
.post-card.feature .body { flex: 1; padding: 32px; justify-content: center; }
.post-card.feature h3 { font-size: var(--fs-3); }
@media (max-width: 860px) { .post-card.feature { flex-direction: column; } .post-card.feature .art { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; aspect-ratio: 16 / 9; } }
.share { display: flex; gap: 8px; }
.share a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-2); }
.share a:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.share svg { width: 16px; height: 16px; }

/* ---------- Legal pages ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal aside { position: sticky; top: calc(var(--header-h) + 24px); }
.legal .prose { font-size: 1rem; }
.legal .prose h2 { font-size: var(--fs-2); margin-top: 2em; }
.legal .prose h2:first-child { margin-top: 0; }
.legal-note { font-size: var(--fs-sm); background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); border-radius: var(--r); padding: 12px 16px; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal aside { position: static; } }

/* ---------- Help center ---------- */
.help-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.help-layout > nav { position: sticky; top: calc(var(--header-h) + 24px); }
.help-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); align-items: start; }
.help-sec:first-child { border-top: 0; padding-top: 0; }
.help-sec .step { font: 700 12px/1 var(--mono); color: var(--ai); margin-bottom: 10px; letter-spacing: 0.06em; }
.help-sec h2 { font-size: var(--fs-3); }
.help-sec .prose { font-size: 1rem; }
@media (max-width: 1100px) { .help-sec { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .help-layout { grid-template-columns: 1fr; } .help-layout > nav { position: static; } }
.media-slot {
  position: relative; border-radius: var(--r-lg); border: 2px dashed var(--line-2); background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 12px, var(--surface) 12px, var(--surface) 24px);
  display: grid; place-items: center; text-align: center; padding: 22px; color: var(--ink-3); font-size: var(--fs-xs); gap: 8px; align-content: center;
}
.media-slot.clip { aspect-ratio: 3 / 4; }
.media-slot.wide { aspect-ratio: 16 / 10; }
.media-slot.shot { aspect-ratio: 16 / 9; }
.media-slot .kind { font: 700 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--ink); padding: 5px 8px; border-radius: 6px; }
.media-slot.clip .kind { background: var(--ai); }
.media-slot code { background: var(--surface); }
.media-slot b { color: var(--ink-2); font-size: var(--fs-sm); }
.media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); background: var(--surface); }
.media video, .media img { width: 100%; display: block; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.plan.hl { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-ai) border-box; box-shadow: var(--shadow-3); }
.plan .price { font-size: 2.6rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1; }
.plan .price small { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: '✓'; color: var(--ok); font-weight: 700; }
.plan .btn { margin-top: auto; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-ink-2); padding: 72px 0 32px; font-size: var(--fs-sm); color-scheme: dark; }
.site-footer a { color: var(--night-ink-2); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-grid h4 { font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; margin-bottom: 18px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: var(--fs-xs); color: #6f819c; }
.footer-bottom p { margin: 0; max-width: 80ch; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Workflow stage (steps on the left, the pane on the right) ---------- */
.wf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(24px, 5vw, 64px); align-items: center; }
.wf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wf-steps button {
  appearance: none; width: 100%; text-align: left; cursor: pointer; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 16px 18px; border-radius: 16px; border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.wf-steps button:hover { background: var(--surface); }
.wf-steps button[aria-selected='true'] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-2); }
.wf-steps .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 700 13px/1 var(--mono); background: var(--surface-3); color: var(--ink-2); transition: all 0.2s; }
.wf-steps button[aria-selected='true'] .n { background: var(--grad-ai); color: #fff; box-shadow: 0 8px 20px -8px rgba(110, 86, 255, 0.7); }
.wf-steps b { display: block; font-size: var(--fs-1); font-weight: 650; letter-spacing: -0.015em; margin: 8px 0 2px; }
.wf-steps small { display: block; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.35s, opacity 0.35s, margin 0.35s; }
.wf-steps button[aria-selected='true'] small { max-height: 120px; opacity: 1; margin-top: 4px; }
.wf-stage { position: relative; }
.wf-stage::before { content: ''; position: absolute; inset: -30px; z-index: 0; border-radius: 40px; background: radial-gradient(closest-side, rgba(110, 86, 255, 0.18), transparent); pointer-events: none; }
.wf-stage .pane { position: relative; z-index: 1; min-height: 460px; }
.pane-body.swap > * { animation: swapIn 0.45s cubic-bezier(.2,.8,.2,1) both; }
.pane-body.swap > *:nth-child(2) { animation-delay: 0.05s; } .pane-body.swap > *:nth-child(3) { animation-delay: 0.1s; }
.pane-body.swap > *:nth-child(4) { animation-delay: 0.15s; } .pane-body.swap > *:nth-child(5) { animation-delay: 0.2s; }
.pane-body.swap > *:nth-child(6) { animation-delay: 0.25s; } .pane-body.swap > *:nth-child(7) { animation-delay: 0.3s; }
@keyframes swapIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .wf { grid-template-columns: 1fr; } .wf-stage .pane { min-height: 0; } }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: var(--fs-sm); }
.checklist li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft); }
.checklist li::after { content: ''; position: absolute; left: 5px; top: 7px; width: 8px; height: 4px; border: 2px solid var(--ok); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.checklist b { color: var(--ink); font-weight: 600; }

/* ---------- Navigation: the current page ---------- */
.nav-drop[data-current] > button, .nav-link[aria-current='page'] { color: var(--ink); }
.nav-drop[data-current] > button::after, .nav-link[aria-current='page']::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--ai); margin-left: 2px; }
.nav-menu a[aria-current='page'] { background: var(--surface-2); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .announce, .site-footer, .nav-toggle, .cta-band, .share { display: none !important; }
  body { background: #fff; color: #000; }
  .night { background: #fff; color: #000; }
}

/* ======================================================================================================================
   Page-area sections. Each area appends only below its own marker (parallel authors; keep the markers).
   ====================================================================================================================== */
/* [area:product] features, ai, how-it-works, trust */
/* Pipeline: context → options → limits → score → AI → verify → you */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; counter-reset: pl; }
.pipeline li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 14px 18px; }
.pipeline li:not(:last-child)::after { content: ''; position: absolute; right: -8px; top: 34px; width: 6px; height: 6px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: rotate(45deg); z-index: 1; }
.pipeline .who { display: inline-block; font: 700 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); margin-bottom: 12px; }
.pipeline .who.ai { background: var(--ai-soft); color: var(--ai); }
.pipeline .who.revit { background: var(--brand-soft); color: var(--brand-ink); }
.pipeline .who.you { background: var(--ok-soft); color: var(--ok); }
.pipeline h4 { font-size: var(--fs-0); margin-bottom: 6px; }
.pipeline p { font-size: var(--fs-xs); color: var(--ink-2); margin: 0; line-height: 1.5; }
.pipeline li.ai { border-color: color-mix(in srgb, var(--ai) 40%, transparent); box-shadow: 0 10px 30px -18px rgba(110, 86, 255, 0.8); }
@media (max-width: 1100px) { .pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pipeline li::after { display: none; } }
@media (max-width: 640px) { .pipeline { grid-template-columns: 1fr 1fr; } }

/* System class table with disruption bars */
.classes { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cls { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 1.6fr) minmax(0, 1.3fr); gap: 16px; align-items: center; padding: 12px 18px; background: var(--surface); font-size: var(--fs-sm); }
.cls.head { background: var(--surface-2); font: 600 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-block: 12px; }
.cls .nm b { display: block; font-weight: 600; }
.cls .nm small { color: var(--ink-3); font-size: var(--fs-xs); }
.cls .meter { display: flex; align-items: center; gap: 10px; }
.cls .meter .tr { flex: 1; height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.cls .meter .tr i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.in .cls .meter .tr i { width: var(--w); }
.cls .meter span { font: 600 12px/1 var(--mono); min-width: 56px; text-align: right; }
.cls .tgs { display: flex; flex-wrap: wrap; gap: 5px; }
.cls .tgs .tag { font-size: 10.5px; }
.cls.hands .meter span { color: var(--bad); }
@media (max-width: 760px) { .cls { grid-template-columns: 1fr; gap: 8px; } .cls.head { display: none; } }

/* Score terms */
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.term-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: relative; overflow: hidden; }
.term-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--ink-3)); }
.term-card .w { font: 700 1.5rem/1 var(--mono); letter-spacing: -0.02em; display: block; margin-bottom: 4px; }
.term-card .w small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.term-card code { font-size: 11px; }
.term-card h4 { font-size: var(--fs-sm); margin: 10px 0 4px; }
.term-card p { font-size: var(--fs-xs); color: var(--ink-2); margin: 0; line-height: 1.5; }

/* Case gallery filter and source label */
.case-filter .sb-tab { font-size: 13px; padding: 9px 13px; }
.case[hidden] { display: none; }
.case .src { font: 500 10.5px/1 var(--mono); color: var(--ink-3); margin-left: auto; }
.case-kind { display: flex; align-items: center; gap: 8px; }
.case-count { font: 500 var(--fs-xs)/1 var(--mono); color: var(--ink-3); margin: 0 0 16px; }

/* Never / may-not lists */
.nolist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.nolist li { position: relative; padding-left: 32px; font-size: var(--fs-sm); color: var(--ink-2); }
.nolist li b { color: var(--ink); display: block; font-weight: 600; }
.nolist li::before { content: '✕'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--bad-soft); color: var(--bad); font: 700 12px/22px var(--sans); text-align: center; }
.nolist.ok li::before { content: '✓'; background: var(--ok-soft); color: var(--ok); }
@media (max-width: 700px) { .nolist { grid-template-columns: 1fr; } }

/* Feature grid and deep dives */
.fgroup { margin-top: 56px; }
.fgroup:first-child { margin-top: 0; }
.fgroup > h3 { display: flex; align-items: center; gap: 12px; font-size: var(--fs-2); margin-bottom: 18px; }
.fgroup > h3 .icon-tile { margin: 0; width: 38px; height: 38px; }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fgrid .card { padding: 20px 22px; }
.fgrid .card h4 { font-size: var(--fs-0); margin-bottom: 6px; }
.fgrid .card p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
@media (max-width: 960px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fgrid { grid-template-columns: 1fr; } }
.toc-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.toc-chips a { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-sm); color: var(--ink-2); background: var(--surface); }
.toc-chips a:hover { color: var(--ink); border-color: var(--ink-3); text-decoration: none; }
.verbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.verb { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.verb svg { width: 100%; height: 54px; margin-bottom: 8px; }
.verb code { background: none; padding: 0; font-weight: 600; color: var(--ink); font-size: 12px; }
.verb p { font-size: var(--fs-xs); color: var(--ink-2); margin: 4px 0 0; line-height: 1.45; }

/* Chat example (how it works) */
.chat-x { display: grid; gap: 10px; }
.chat-x .msg { max-width: 85%; padding: 11px 14px; border-radius: 14px; font-size: var(--fs-sm); line-height: 1.5; }
.chat-x .msg.you { justify-self: end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.chat-x .msg.cf { justify-self: start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-x .msg.cf b { color: var(--ok); }
.chat-x .msg small { display: block; font-size: 11px; opacity: 0.7; margin-top: 4px; font-family: var(--mono); }

/* Trust page */
.store-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.df-node h4 .icon-tile { width: 34px; height: 34px; margin: 0; }
.df-node h4 .icon-tile svg { width: 18px; height: 18px; }
.df-node.gw li::before { background: var(--brand); }
.df-node li { display: block; position: relative; padding-left: 14px; }
.df-node li::before { position: absolute; left: 0; top: 0; }
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.case-filter .sb-tab[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* Night bands: --bg is the band's own, so "ink on bg" controls (selected tabs, checked chips) keep their contrast in the light theme. */
.night { --bg: var(--night); }
.bill { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); font-size: var(--fs-sm); }
.bill .bh { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.bill .bh b { font-size: var(--fs-0); }
.bill .br { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 18px; border-bottom: 1px dashed var(--line); }
.bill .br span:last-child { font-family: var(--mono); font-weight: 600; }
.bill .br .plus { color: var(--clash); } .bill .br .minus { color: var(--ok); }
.bill .imp { padding: 14px 18px; background: var(--warn-soft); display: grid; gap: 6px; }
.bill .imp b { font: 700 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); }
.layers { display: grid; gap: 10px; }
.layer { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.layer .ln { font: 700 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 10px; border-radius: 8px; text-align: center; }
.layer p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.layer p b { color: var(--ink); }
.tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tools code { font-size: 11.5px; background: rgba(233, 238, 247, 0.08); border: 1px solid var(--line); padding: 5px 8px; border-radius: 7px; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr; } }

/* [area:blog] blog index and posts */
.post-head .pill { margin-bottom: 18px; }
.post-head h1 { max-width: 24ch; }
.post-head .lede { margin-bottom: 0; max-width: 70ch; }
.section.post-section { padding-top: 8px; }
.post-body > h2:first-child { margin-top: 0; }
.post-card .body > .pill { align-self: flex-start; }
.article-layout.post { grid-template-columns: minmax(0, 740px) 260px; justify-content: space-between; }
@media (max-width: 1020px) { .article-layout.post { grid-template-columns: minmax(0, 1fr); } }
.post-body { min-width: 0; }
.post-body > .fig, .post-body > figure { margin: 2.2em 0; }
.post-body .fig svg { width: 100%; height: auto; }
.post-body .fig figcaption { text-align: left; margin-top: 12px; }
.post-body .fig figcaption b { color: var(--ink-2); }
.post-body .callout { margin: 2em 0; }
.post-body .callout p, .post-body .callout ul { margin: 0; }
.post-body .callout p + p, .post-body .callout p + ul { margin-top: 0.6em; }
.post-body .callout li + li { margin-top: 0.3em; }
.post-body .table-wrap { margin: 1.8em 0; }
.post-body table td, .post-body table th { padding: 11px 14px; }
.post-body td.num, .post-body th.num { text-align: right; font-family: var(--mono); font-size: 0.8125rem; white-space: nowrap; }
.post-body tr.best td { background: var(--ok-soft); }
.post-body tr.best td:first-child { color: var(--ok); font-weight: 650; }
.post-body tr.out td { color: var(--ink-3); }
.post-body tr.out td:first-child { text-decoration: line-through; text-decoration-color: var(--bad); }
.post-body .formula { font-family: var(--mono); font-size: 0.9rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; overflow-x: auto; white-space: nowrap; }
.post-body .say { font-family: var(--mono); font-size: 0.85rem; background: var(--ai-soft); border-left: 3px solid var(--ai); border-radius: 0 10px 10px 0; padding: 12px 16px; color: var(--ink); }
.post-body .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2.4em; }
.aside-cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; font-size: var(--fs-sm); }
.aside-cta b { display: block; margin-bottom: 6px; font-size: var(--fs-0); }
.aside-cta p { color: var(--ink-2); margin: 0 0 14px; }
.share a[data-copied] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.blog-intro { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 24px; font-size: var(--fs-sm); color: var(--ink-2); }
.rss-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.rss-link svg { width: 16px; height: 16px; color: var(--warn); }
.post-card .meta time { white-space: nowrap; }
.post-card.feature .art svg { max-height: 360px; }
.keep-reading-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 20px; }
.keep-reading-head h2 { font-size: var(--fs-3); margin: 0; }

/* [area:company] beta, verify, contact, about, pricing, support, faq, changelog, legal, 404 */
.h-sm { font-size: var(--fs-2); letter-spacing: -0.02em; margin-bottom: 0.5em; }
.h-md { font-size: var(--fs-3); letter-spacing: -0.03em; }
.req-mark { color: var(--clash); font-weight: 700; }

/* beta.html */
.beta-hero { padding-top: clamp(32px, 5vw, 64px); }
.beta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 5vw, 64px); align-items: start; }
.beta-copy h1 { font-size: var(--fs-5); }
.beta-copy .lede { margin-bottom: 28px; }
.get-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.get-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.get-list .icon-tile { margin: 0; }
.get-list b { display: block; font-weight: 650; }
.get-list span:not(.icon-tile) { font-size: var(--fs-sm); color: var(--ink-2); }
.req h2 { margin-bottom: 4px; }
.req .checklist { margin-top: 14px; }
.beta-grid .form-card { position: sticky; top: calc(var(--header-h) + 20px); }
.more-fields { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 12px 16px; }
.more-fields > summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); list-style: none; display: flex; align-items: center; gap: 8px; }
.more-fields > summary::-webkit-details-marker { display: none; }
.more-fields > summary::before { content: '+'; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--surface-3); font-family: var(--mono); }
.more-fields[open] > summary::before { content: '−'; }
.more-fields .opt { font-weight: 400; color: var(--ink-3); }
@media (max-width: 520px) { .more-fields > summary { flex-wrap: wrap; } .more-fields .opt { flex-basis: 100%; padding-left: 28px; } }
.done:focus { outline: none; }
@media (max-width: 1020px) { .beta-grid { grid-template-columns: 1fr; } .beta-grid .form-card { position: static; } }

/* verify.html */
.verify-page { min-height: 60vh; }
.verify-card { margin-top: 8px; }
.code-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; padding: 18px 20px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.code-box .code-label { width: 100%; font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.code-box code { flex: 1; min-width: 0; font-size: clamp(1rem, 0.8rem + 1vw, 1.35rem); font-weight: 600; letter-spacing: 0.06em; background: none; padding: 0; word-break: break-all; color: var(--ink); }

/* contact.html */
.topic-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.card.topic { appearance: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s; }
.card.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card.topic[aria-pressed='true'] { border-color: var(--ai); box-shadow: 0 0 0 3px var(--ai-soft), var(--shadow-2); }
.card.topic .icon-tile { margin-bottom: 8px; }
.card.topic b { font-weight: 650; }
.card.topic span:not(.icon-tile) { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.contact-side { display: grid; gap: 14px; }
@media (max-width: 1100px) { .topic-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .topic-cards { grid-template-columns: 1fr 1fr; } }

/* about.html */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principles li { background: rgba(13, 22, 38, 0.7); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.principles .pn { display: inline-block; font: 700 12px/1 var(--mono); padding: 6px 8px; border-radius: 8px; background: var(--grad-ai); color: #fff; margin-bottom: 16px; }
.principles h3 { font-size: var(--fs-1); margin-bottom: 8px; }
.principles p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
@media (max-width: 960px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }

/* pricing.html */
.plan .h-sm { margin: 0; }
.plan .price { margin: 4px 0; }

/* support.html */
th[scope='row'] { width: 160px; color: var(--ink); font-weight: 600; background: var(--surface-2); }
.faq.trouble details { background: var(--surface); }
.faq .mono, .timeline .mono, .card .mono { font-size: 0.86em; background: var(--surface-3); padding: 0.1em 0.4em; border-radius: 5px; word-break: break-all; }

/* changelog.html */
.releases { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.release { position: relative; padding: 0 0 48px 32px; border-left: 2px solid var(--line); }
.release:last-child { padding-bottom: 0; }
.release::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ai); }
.release:first-child::before { background: var(--ai); box-shadow: 0 0 0 5px var(--ai-soft); }
.rel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.rel-head time { font: 600 var(--fs-sm)/1 var(--mono); color: var(--ink-2); }
.release h2 { font-size: var(--fs-3); margin-bottom: 8px; }
.release h3 { font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 10px; }
.release ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }
.release ul b { color: var(--ink); font-weight: 600; }

/* 404.html */
.nf-art { max-width: 420px; margin: 0 auto 24px; }
.notfound h1 { max-width: 18ch; }

/* legal TOC with two groups (terms.html) */
.legal .toc b a { color: inherit; }
.legal .toc ol + b { margin-top: 22px; }

/* [area:help] help center and guides */
.help-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.help-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.help-quick a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: var(--fs-sm); font-weight: 600; transition: border-color .2s, transform .15s; }
.help-quick a:hover { text-decoration: none; border-color: var(--line-2); transform: translateY(-2px); }
.help-quick a span { font: 700 11px/1 var(--mono); color: var(--ai); }
@media (max-width: 900px) { .help-hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .help-quick { grid-template-columns: 1fr; } }
.help-toc b { display: block; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.help-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-left: 1px solid var(--line); counter-reset: toc; }
.help-toc li { counter-increment: toc; }
.help-toc a { display: grid; grid-template-columns: 26px 1fr; padding: 6px 0 6px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); font-size: var(--fs-sm); }
.help-toc a::before { content: counter(toc, decimal-leading-zero); font: 600 11px/1.9 var(--mono); color: var(--ink-3); }
.help-toc a:hover, .help-toc a.on { color: var(--ink); border-left-color: var(--ai); text-decoration: none; }
@media (max-width: 900px) { .help-toc ol { grid-template-columns: 1fr 1fr; border-left: 0; } .help-toc a { border-left: 0; padding-left: 0; } }
.help-media { display: grid; gap: 14px; }
.help-media figure, .prose figure.media-slot { margin: 0; }
.help-sec .prose > .step + h2 { margin-top: 0.15em; }
.media-slot .kind { color: var(--bg); }
.media-slot.clip .kind { color: #fff; }
.help-sec .prose p, .help-sec .prose ul, .help-sec .prose ol { font-size: 0.975rem; }
.help-sec .prose h3 { font-size: var(--fs-1); margin-top: 1.4em; }
/* annotated mocks: numbered callouts inline in the mock, explained in the list below it */
.anno { display: grid; gap: 12px; }
.anno-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: var(--fs-xs); color: var(--ink-2); }
.anno-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; line-height: 1.45; }
.cn { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ai); color: #fff; font: 700 10px/1 var(--mono); font-style: normal; box-shadow: 0 0 0 3px rgba(110, 86, 255, 0.22); vertical-align: middle; }
.anno-list .cn { margin-top: 1px; }
.pane .cn, .win .cn { margin-left: 4px; }
/* installer window mock */
.win { font: 400 12px/1.45 "Segoe UI", var(--sans); color: #1f2937; background: #f3f4f6; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-2); color-scheme: light; }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border-bottom: 1px solid #e5e7eb; font-weight: 600; }
.win-bar svg { width: 16px; height: 16px; border-radius: 4px; }
.win-bar .x { margin-left: auto; color: #9ca3af; font-weight: 400; }
.win-body { padding: 12px 14px; display: grid; gap: 8px; background: #fff; }
.win-body h5 { margin: 0; font-size: 12.5px; font-weight: 600; }
.win-body .sub { color: #6b7280; margin: 0; }
.win-check { display: flex; align-items: center; gap: 8px; }
.win-check i { width: 13px; height: 13px; border: 1.5px solid #6b7280; border-radius: 2px; display: grid; place-items: center; font-style: normal; font-size: 10px; line-height: 1; color: #fff; }
.win-check.on i { background: #2563eb; border-color: #2563eb; }
.win-check.on i::after { content: "✓"; }
.win-check.off { color: #9ca3af; }
.win-check.off i { border-color: #d1d5db; }
.win-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; background: #f3f4f6; border-top: 1px solid #e5e7eb; }
.win-foot span { padding: 4px 14px; border: 1px solid #d1d5db; border-radius: 4px; background: #fff; }
.win-foot span.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
/* Revit view mock */
.rv { background: #dfe3e8; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-2); color-scheme: light; }
.rv-bar { background: #2b2f36; color: #e5e7eb; font: 500 11px/1 var(--sans); padding: 7px 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.rv-bar b { color: #fff; }
.rv svg { display: block; width: 100%; height: auto; }
.rv svg text { font: 500 10.5px var(--mono); fill: #374151; }
/* three-layer diagram (profile) */
.layers { display: grid; gap: 8px; }
.layer { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-xs); color: var(--ink-2); }
.layer b { font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.layer.project { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.layer.user { border-color: color-mix(in srgb, var(--ai) 45%, transparent); }
/* trial pill states */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tp { font: 600 11px/1 var(--sans); padding: 5px 9px; border-radius: 999px; }
.tp.brand { color: #2563eb; background: #e8f0fe; }
.tp.warn { color: #b45309; background: #fff4e0; }
.tp.bad { color: #b91c1c; background: #fdecec; }
/* toggles in the Settings mock */
.tg { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; background: #fff; border: 1px solid #e5e7eb; border-radius: 9px; padding: 8px 10px; }
.tg i { width: 28px; height: 16px; border-radius: 99px; background: #d1d5db; position: relative; margin-top: 1px; }
.tg i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tg.on i { background: #2563eb; }
.tg.on i::after { left: 14px; }
.tg small { display: block; color: #6b7280; }
.pane-field { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 7px 9px; color: #9ca3af; }
.pane-field.filled { color: #111827; }
.pane-btn { display: inline-block; background: #2563eb; color: #fff; border-radius: 7px; padding: 6px 10px; font-weight: 600; }
.pane-btn.ghost { background: #fff; color: #111827; border: 1px solid #e5e7eb; }
/* troubleshooting table */
.trouble td:first-child { font-weight: 600; width: 34%; color: var(--ink); }
.trouble code { overflow-wrap: anywhere; }
/* slots: the hint under a slot, filled slots */
.media-slot .meta { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.media-slot.rvw { aspect-ratio: 16 / 9; }
.media-slot[data-size="640×480"] { aspect-ratio: 4 / 3; }
.media-slot[data-size="960×1280"] { aspect-ratio: 3 / 4; max-height: 440px; }
.media-slot[data-size="1200×700"] { aspect-ratio: 12 / 7; }
.media-slot[data-size="1200×600"] { aspect-ratio: 2 / 1; }
.media-slot[data-size="1600×1000"] { aspect-ratio: 16 / 10; }
.help-layout > *, .help-body, .help-sec > *, .help-hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .help-layout { grid-template-columns: minmax(0, 1fr); } }
.media { margin: 0; }
.media figcaption { font-size: var(--fs-xs); color: var(--ink-3); padding: 10px 14px; border-top: 1px solid var(--line); margin: 0; text-align: left; }
.help-clip { width: 100%; display: block; background: var(--surface-2); }
/* guides */
.prose .guide-steps { list-style: none; padding: 0; counter-reset: gstep; display: grid; gap: 12px; }
.prose .guide-steps > li { counter-increment: gstep; position: relative; padding: 16px 20px 16px 62px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 1rem; line-height: 1.65; margin: 0; }
.prose .guide-steps > li::before { content: counter(gstep, decimal-leading-zero); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 12px/1 var(--mono); color: #fff; background: var(--grad-ai); }
.prose .guide-steps > li > b:first-child { display: block; font-size: 1.04rem; margin-bottom: 2px; }
.prose .guide-cf { background: var(--ai-soft); border: 1px solid color-mix(in srgb, var(--ai) 25%, transparent); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); margin-top: 2.4em; }
.prose .guide-cf h2 { margin-top: 0; font-size: var(--fs-2); display: flex; align-items: center; gap: 10px; }
.prose .guide-cf h2::before { content: ""; width: 22px; height: 22px; flex: none; background: var(--grad-ai); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 6.2L20 10l-5.8 2.2L12 18l-2.2-5.8L4 10l5.8-1.8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 6.2L20 10l-5.8 2.2L12 18l-2.2-5.8L4 10l5.8-1.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.prose .guide-cf p { font-size: 0.98rem; }
.prose section > * + * { margin-top: 1.05em; }
.prose section > h2:first-child { margin-top: 1.8em; }
.prose > section:first-child > h2:first-child { margin-top: 0; }
.side-cta { padding: 20px; }
.side-cta h3 { font-size: var(--fs-0); }
.side-cta p { margin-bottom: 14px; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; }
.guide-card .kind, .related-grid .kind { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.guide-card h3 { font-size: 1.12rem; margin: 0; }
.guide-card .art { aspect-ratio: 16 / 7; margin-bottom: 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.guide-card .art svg { width: 100%; height: 100%; }
.guide-card .link-arrow { margin-top: auto; font-size: var(--fs-sm); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-grid a.card { padding: 18px 20px; }
.related-grid a.card h3 { font-size: var(--fs-0); margin: 8px 0 0; }
.related-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 18px; }
.related-head h2 { font-size: var(--fs-2); margin: 0; }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }
