/* MolAgent website styles.
   Plain CSS, no build step. Fonts are self-hosted (IBM Plex, SIL OFL 1.1, see fonts/OFL.txt).
   The 3D viewer brings its own stylesheet (viewer/viewer.css), loaded only when it is opened. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --paper: #ffffff;
  --mist: #f3f6f8;
  --ink: #13202c;
  --ink-2: #3e4c59;
  --ink-3: #5f6c78;
  --rule: #dce3e9;
  --rule-strong: #c3ced7;
  --teal: #0a7c74;
  --teal-deep: #075e58;
  --teal-soft: #e4f3f1;
  --teal-bright: #2dd4bf;
  --night: #0e151d;
  --night-2: #18222d;
  --night-rule: #2a3643;
  --night-ink: #d5dde4;
  --night-ink-2: #9aa8b5;
  --amber-ink: #7a5000;
  --amber-soft: #fff1d1;

  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter: 24px;
  --sec-y: 104px;
  --radius: 8px;
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.6rem); line-height: 1.07; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.3rem); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.18rem; line-height: 1.3; letter-spacing: -0.005em; }
h4 { font-size: 1rem; line-height: 1.35; }
code, kbd, samp, pre { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code { background: var(--mist); border: 1px solid var(--rule); border-radius: 4px; padding: 0.05em 0.35em; white-space: nowrap; }
strong { font-weight: 600; }
sub, sup { line-height: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec-y) 0; }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec--mist { background: var(--mist); }
.sec--mist + .sec, .sec + .sec--mist { border-top: 0; }
.sec--tight { padding: 64px 0; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head p { color: var(--ink-2); font-size: 1.06rem; margin-top: 16px; margin-bottom: 0; }
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin-bottom: 16px; }
.prose h3 { margin: 32px 0 8px; }
.more { margin-top: 32px; font-weight: 500; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 48px; row-gap: 40px; align-items: start; }
.split > .col-text { grid-column: span 5; }
.split > .col-media { grid-column: span 7; }
.split--rev > .col-text { order: 2; }
.split--rev > .col-media { order: 1; }
.split > .col-half { grid-column: span 6; }
.split--center { align-items: center; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { height: var(--head-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 28px; margin-left: 8px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.96rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--teal); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav .nav-cta { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule-strong); border-radius: 6px; padding: 7px 12px; font: inherit; font-size: 0.92rem; color: var(--ink); cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 6px; font: inherit; font-size: 0.98rem; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); color: #fff; }
.btn--secondary { background: var(--paper); color: var(--ink); border-color: var(--rule-strong); }
.btn--secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn--small { min-height: 38px; padding: 0 14px; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 56px; }
.hero h1 { max-width: 840px; }
.hero .lede { max-width: 60ch; margin: 24px 0 32px; font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); }
.hero .note { margin-top: 20px; font-size: 0.92rem; color: var(--ink-3); }
.page-hero { padding: 80px 0 56px; border-bottom: 1px solid var(--rule); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { max-width: 64ch; margin: 20px 0 0; font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); }

/* ---------- product figures ---------- */
.band { background: var(--night); padding: 56px 0 40px; }
.band + .sec { border-top: 0; }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: var(--radius); border: 1px solid var(--night-rule); background: var(--night-2); }
.shot--light img { border-color: var(--rule); }
.band .shot figcaption { color: var(--night-ink-2); }
figcaption { margin-top: 14px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-3); max-width: 80ch; }
figcaption strong { color: var(--ink-2); font-weight: 600; }
.band figcaption strong { color: var(--night-ink); }
.plate { margin: 0; }
.plate img { width: 100%; border-radius: var(--radius); border: 1px solid var(--rule); background: #fff; }

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); counter-reset: step; }
.steps li { padding: 24px 24px 8px 0; counter-increment: step; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.steps li::before { content: counter(step); display: block; font-family: var(--mono); font-size: 0.85rem; color: var(--teal); margin-bottom: 10px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }
.callout { margin-top: 40px; padding: 20px 24px; border-left: 3px solid var(--teal); background: var(--teal-soft); color: var(--ink); max-width: 72ch; border-radius: 0 6px 6px 0; }
.callout p:last-child { margin: 0; }

/* ---------- lists ---------- */
.list { list-style: none; }
.list li { padding: 10px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list li strong { color: var(--ink); }
.list--compact li { padding: 7px 0; font-size: 0.97rem; }
.rules { list-style: none; margin-top: 24px; }
.rules li { position: relative; padding: 8px 0 8px 22px; color: var(--ink-2); }
.rules li::before { content: ""; position: absolute; left: 2px; top: 0.95em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--teal); }

/* ---------- architecture diagram ---------- */
.arch { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 0.9fr) 72px minmax(0, 1.5fr); align-items: center; margin-top: 8px; }
.node { border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper); padding: 18px 20px; }
.node h3 { font-size: 1rem; margin-bottom: 6px; }
.node p { margin: 0; font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
.node--optional { border-style: dashed; background: transparent; }
.node--host { border: 2px solid var(--ink); padding: 18px 20px 20px; }
.node--host > h3 { margin-bottom: 14px; }
.node .sub { border: 1px solid var(--rule); border-radius: 6px; padding: 12px 14px; background: var(--mist); }
.node .sub + .sub { margin-top: 10px; }
.node .sub h4 { font-size: 0.95rem; margin-bottom: 2px; }
.node .sub p { font-size: 0.88rem; }
.link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: relative; }
.link::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 2px solid var(--ink-3); }
.link span { position: relative; background: var(--paper); font-size: 0.72rem; line-height: 1.3; color: var(--ink-3); text-align: center; padding: 2px 4px; max-width: 70px; }
.sec--mist .link span { background: var(--mist); }
.arch-model { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 0.9fr) 72px minmax(0, 1.5fr); }
.arch-model .node { grid-column: 5; }
.arch-model .vlink { grid-column: 5; height: 28px; border-left: 2px solid var(--ink-3); margin-left: 50%; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
thead th { background: var(--mist); font-weight: 600; color: var(--ink); font-size: 0.9rem; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--ink); }
td { color: var(--ink-2); }
td code, th code { white-space: nowrap; }
.table-caption { font-size: 0.9rem; color: var(--ink-3); margin-top: 10px; }

/* ---------- tags ---------- */
.tag { display: inline-block; font-size: 0.78rem; font-weight: 500; line-height: 1; padding: 5px 8px; border-radius: 4px; white-space: nowrap; }
.tag--avail { background: var(--teal-soft); color: var(--teal-deep); }
.tag--dev { background: var(--amber-soft); color: var(--amber-ink); }
.tag--opt { background: var(--mist); color: var(--ink-2); border: 1px solid var(--rule); }

/* ---------- command blocks ---------- */
.cmd { position: relative; background: var(--night); color: var(--night-ink); border-radius: var(--radius); padding: 16px 18px; margin: 0; overflow-x: auto; font-size: 0.86rem; line-height: 1.6; }
.cmd .c { color: var(--night-ink-2); }
.cmd-copy { position: absolute; top: 10px; right: 10px; font: inherit; font-family: var(--sans); font-size: 0.78rem; color: var(--night-ink); background: var(--night-2); border: 1px solid var(--night-rule); border-radius: 4px; padding: 4px 8px; cursor: pointer; }
.cmd-copy:hover { border-color: var(--night-ink-2); }

/* ---------- open source ---------- */
.oss { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.oss > div { padding: 22px 24px 4px 0; }
.oss > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.oss h3 { margin-bottom: 4px; }
.oss .meta { font-size: 0.88rem; color: var(--ink-3); margin-bottom: 10px; }
.oss p { color: var(--ink-2); font-size: 0.97rem; }

/* ---------- pricing ---------- */
.plans th[scope="col"] { font-size: 1rem; }
.plans td, .plans th { min-width: 200px; }
.plans tbody th { min-width: 140px; color: var(--ink-3); font-weight: 500; font-size: 0.9rem; }
.plans .price { font-size: 1.15rem; font-weight: 600; color: var(--ink); display: block; }
.plans ul { list-style: none; }
.plans ul li { padding: 2px 0; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.person { display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: start; }
.person img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--mist); }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--ink-3); font-size: 0.95rem; margin-bottom: 12px; }
.person ul { list-style: none; }
.person li { color: var(--ink-2); font-size: 0.97rem; padding: 2px 0; }
.person .links { margin-top: 12px; font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta { background: var(--night); color: var(--night-ink); }
.cta h2 { color: #fff; }
.cta p { color: var(--night-ink-2); max-width: 60ch; margin: 16px 0 28px; font-size: 1.06rem; }
.cta a:not(.btn) { color: var(--teal-bright); }
.cta .btn--secondary { background: transparent; color: #fff; border-color: var(--night-rule); }
.cta .btn--secondary:hover { border-color: var(--night-ink-2); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 56px 0 40px; font-size: 0.93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.foot-grid ul { list-style: none; }
.foot-grid li { padding: 3px 0; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--teal); text-decoration: underline; }
.foot-about p { color: var(--ink-3); max-width: 34ch; margin-top: 12px; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.86rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .arch, .arch-model { grid-template-columns: minmax(0, 1fr); }
  .arch .link { height: 56px; }
  .arch .link::before { left: 50%; right: auto; top: 4px; bottom: 4px; border-top: 0; border-left: 2px solid var(--ink-3); }
  .arch .link span { max-width: none; }
  .arch-model .node, .arch-model .vlink { grid-column: 1; }
  .arch-model .vlink { height: 32px; }
}
@media (max-width: 960px) {
  :root { --sec-y: 80px; }
  .nav, .head-actions { display: none; }
  .nav-toggle { display: inline-block; }
  .site-head.open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: var(--head-h); left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; margin: 0; }
  .site-head.open .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .site-head.open .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--teal); }
  .site-head.open .nav .nav-cta { display: block; border-bottom: 0; color: var(--teal); font-weight: 600; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > .col-text, .split > .col-media, .split > .col-half { grid-column: 1 / -1; }
  .split--rev > .col-text, .split--rev > .col-media { order: initial; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .people { grid-template-columns: minmax(0, 1fr); }
  .oss { grid-template-columns: minmax(0, 1fr); }
  .oss > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --sec-y: 64px; }
  body { font-size: 16px; }
  .hero { padding: 56px 0 40px; }
  .hero .lede { font-size: 1.08rem; }
  .page-hero { padding: 56px 0 40px; }
  .band { padding: 32px 0 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--rule); }
  .person { grid-template-columns: 80px 1fr; gap: 16px; }
  .person img { width: 80px; height: 80px; }
  .actions .btn { flex: 1 1 auto; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .site-head, .cta, .site-foot { display: none; }
  .band { background: none; }
}

.follow { margin-top: 32px; }
.sub-h { margin: 48px 0 16px; }
.sub-h--first { margin: 0 0 16px; }
.split--spaced { margin-top: 56px; }
.foot-grid .brand, .foot-grid .brand:hover { color: var(--ink); text-decoration: none; }
.shot-link { display: block; border-radius: var(--radius); }
.shot-link:hover img { border-color: var(--teal-bright); }
.shot--light .shot-link:hover img { border-color: var(--teal); }
@media (max-width: 600px) {
  .table-wrap table { min-width: 620px; }
  .table-wrap table.plans, .table-wrap table.table--kv { min-width: 0; }
}

/* ---------- branches (home) ---------- */
.branches { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 2px solid var(--ink); }
.branches li { padding: 14px 0 13px; border-bottom: 1px solid var(--rule); }
.branches h3 { font-size: 1rem; margin-bottom: 3px; }
.branches p { margin: 0; font-size: 0.9rem; color: var(--ink-3); }

/* ---------- 3D viewer ---------- */
.viewer { border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.viewer-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--rule); scrollbar-width: none; }
.viewer-tabs::-webkit-scrollbar { display: none; }
.viewer-tabs button { flex: 0 0 auto; font: inherit; font-size: 0.94rem; font-weight: 500; color: var(--ink-2); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px 18px 12px; cursor: pointer; white-space: nowrap; }
.viewer-tabs button:hover { color: var(--ink); }
.viewer-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--teal); }
.viewer-tabs button:focus-visible { outline-offset: -3px; }
.viewer-stage { position: relative; height: clamp(320px, 54vw, 600px); background: #fcfbf9; }
.viewer-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; transition: opacity 0.35s; }
.viewer-canvas { position: absolute; inset: 0; z-index: 1; }
.viewer-load { position: absolute; z-index: 3; right: 16px; bottom: 16px; box-shadow: 0 2px 10px rgba(19, 32, 44, 0.18); }
.viewer-guard { position: absolute; inset: 0; z-index: 4; cursor: pointer; }
.viewer-guard[hidden] { display: none; }
.viewer-guard span { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); background: rgba(19, 32, 44, 0.8); color: #fff; font-size: 0.86rem; padding: 7px 12px; border-radius: 6px; white-space: nowrap; }
.viewer-status { position: absolute; z-index: 5; left: 16px; top: 12px; margin: 0; font-size: 0.86rem; color: var(--ink-3); }
.viewer-stage.is-live .viewer-poster { opacity: 0; pointer-events: none; }
.viewer-stage.is-live .viewer-load { display: none; }
.viewer-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding: 14px 18px; border-top: 1px solid var(--rule); font-size: 0.92rem; }
.viewer-caption { margin: 0; color: var(--ink-2); }
.viewer-caption[hidden] { display: none; }
.viewer-hint { margin: 0; color: var(--ink-3); flex: 0 1 auto; text-align: right; }

/* ---------- capabilities ---------- */
.caps { border-top: 2px solid var(--ink); }
.cap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.cap-head h3 { margin-bottom: 6px; }
.cap-head p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.cap-list { list-style: none; columns: 2; column-gap: 32px; margin-bottom: 16px; }
.cap-list li { break-inside: avoid; position: relative; padding: 3px 0 3px 16px; color: var(--ink-2); font-size: 0.96rem; }
.cap-list li::before { content: ""; position: absolute; left: 1px; top: 0.82em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-family: var(--mono); font-size: 0.8rem; line-height: 1.4; color: var(--ink); background: var(--mist); border: 1px solid var(--rule); border-radius: 4px; padding: 3px 8px; }
.sec--mist .chips li { background: var(--paper); }
.chips--follow { margin-top: 18px; }
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.areas > div { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; }
.areas h3 { font-size: 1.05rem; margin-bottom: 6px; }
.areas p { margin: 0 0 10px; color: var(--ink-2); font-size: 0.95rem; }
.areas .ex { margin: 0; font-size: 0.92rem; font-weight: 500; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 2px solid var(--ink); }
.checks > div { padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.checks h3 { font-size: 1.02rem; margin-bottom: 6px; }
.checks p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
.formats { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 24px; margin: 0; border-top: 1px solid var(--rule); }
.formats dt, .formats dd { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.formats dt { font-weight: 600; color: var(--ink); }
.formats dd { margin: 0; color: var(--ink-2); }

/* ---------- examples ---------- */
.eyebrow { margin: 0 0 12px; font-size: 0.86rem; font-weight: 600; color: var(--teal-deep); }
.question { margin: 18px 0 0; color: var(--ink-2); font-size: 1.06rem; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 24px 0 28px; font-size: 0.95rem; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); }
.plan-h { font-size: 0.9rem; color: var(--ink-3); margin-bottom: 8px; }
.plan { list-style: none; counter-reset: plan; border-top: 1px solid var(--rule); }
.plan li { counter-increment: plan; position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: 0.97rem; }
.plan li::before { content: counter(plan); position: absolute; left: 2px; top: 11px; font-family: var(--mono); font-size: 0.82rem; color: var(--teal); }
figure.code { margin: 28px 0 0; }
figure.code figcaption { margin: 0 0 8px; }
.credit { margin-top: 20px; }
.nowrap { white-space: nowrap; }
@media (min-width: 961px) {
  .ex-text { position: sticky; top: calc(var(--head-h) + 40px); }
}

/* ---------- get started ---------- */
.setup { list-style: none; counter-reset: setup; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 2px solid var(--ink); }
.setup li { counter-increment: setup; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.setup li::before { content: counter(setup); display: block; font-family: var(--mono); font-size: 0.85rem; color: var(--teal); margin-bottom: 8px; }
.setup h3 { margin-bottom: 6px; }
.setup p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.table-wrap tbody th { white-space: nowrap; }

@media (max-width: 960px) {
  .cap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .areas, .setup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer-meta { flex-direction: column; }
  .viewer-hint { text-align: left; }
}
@media (max-width: 600px) {
  .branches, .areas, .setup, .checks { grid-template-columns: minmax(0, 1fr); }
  .cap-list { columns: 1; }
  .formats { grid-template-columns: minmax(0, 1fr); }
  .formats dt { padding-bottom: 2px; border-bottom: 0; }
  .formats dd { padding-top: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd { margin-bottom: 10px; }
  .viewer-tabs button { padding: 12px 14px 10px; font-size: 0.9rem; }
  .viewer-poster { object-fit: cover; }
  .viewer-stage { height: 340px; }
  .viewer-meta { padding: 12px 14px; }
  .table-wrap tbody th { white-space: normal; }
}

/* ---------- hero with video (home) ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 610px); column-gap: 40px; row-gap: 40px; align-items: start; }
.hero--media h1 { font-size: clamp(2.1rem, 1.2rem + 2vw, 2.6rem); }
.hero--media .lede { font-size: 1.05rem; margin: 22px 0 28px; }
.hero-video { margin: 8px 0 0; }
.hero-video-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night); border: 1px solid var(--night-rule); box-shadow: 0 24px 48px -24px rgba(14, 21, 29, 0.45); }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--night); }
.video-controls { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.video-toggle, .video-full { font: inherit; font-size: 0.78rem; line-height: 1; color: #fff; background: rgba(14, 21, 29, 0.72); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 4px; padding: 6px 10px; cursor: pointer; }
.video-toggle:hover, .video-full:hover { background: rgba(14, 21, 29, 0.9); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
