/* site.css — the Asimov website. Tokens shared with the pitch deck. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #0a1424; --bg2: #122039; --bg3: #1b2e4d; --bg-card: #14253f;
  --border: #2b4a73; --border-2: #3b5e8f;
  --text: #fff; --text-dim: #a8b8d0; --text-mute: #6b7a93;
  --cyan: #4fc3f7; --teal: #26c6da; --green: #66bb6a; --amber: #ffb74d; --gold: #ffd54f; --violet: #ab47bc; --coral: #ef5350;
  --l2: var(--cyan); --l3: #c06be0;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
code { overflow-wrap: anywhere; }
svg { display: block; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(10,20,36,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav .in { max-width: var(--w); margin: 0 auto; padding: 0.7rem 1.5rem; display: flex; gap: 1.05rem; align-items: center; flex-wrap: wrap; }
.nav .brand { font-family: var(--mono); font-weight: 700; color: var(--cyan); letter-spacing: 0.04em; margin-right: auto; }
.nav a { color: var(--text-dim); font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.nav a.on { color: #fff; border-bottom: 2px solid var(--cyan); }
.nav .grp { font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); margin-right: -0.4rem; white-space: nowrap; }
.nav .sep { width: 1px; height: 1.1rem; background: var(--border-2); }
.nav a.cta { padding: 0.35rem 0.9rem; border: 1px solid var(--cyan); border-radius: 8px; color: var(--cyan); font-weight: 600; }
.nav a.cta:hover, .nav a.cta.on { background: var(--cyan); color: var(--bg); border-bottom: none; text-decoration: none; }
@media (max-width: 760px) { .nav .sep { display: none; } }

/* Page */
:root { --w: 1240px; }
.page { max-width: var(--w); margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.kicker { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.8rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.08; max-width: 26ch; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; margin: 3rem 0 0.8rem; }
h2[id], section[id] { scroll-margin-top: 4.5rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 1.6rem 0 0.4rem; }
p, li { color: var(--text-dim); max-width: 68ch; }
p strong, li strong { color: #fff; font-weight: 600; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin-top: 1.2rem; }
ul { padding-left: 1.2rem; margin: 0.6rem 0; }
ol { padding-left: 1.4rem; margin: 0.6rem 0; }
li { margin: 0.3rem 0; }
.figure { margin: 2rem 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; overflow-x: auto; }
.figure svg { width: 100%; height: auto; }
.figure img { max-width: 100%; border-radius: 8px; display: block; }
/* The four-column phase figure is wider than the text column; on a wide screen it takes the viewport instead of scrolling. */
@media (min-width: 1300px) { .figure.wide { width: calc(100vw - 3rem); max-width: 1640px; margin-left: 50%; transform: translateX(-50%); } }

/* Key — the one legend component. Colour is local to a figure, so every figure that uses
   colour as meaning carries a key, placed below it. Swatch colour comes from --sw. */
.key { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.2rem; margin: 0.9rem 0.2rem 0.2rem; font-size: 0.82rem; color: var(--text-dim); }
.key > b { font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); }
.key > span { display: inline-flex; align-items: center; gap: 0.45rem; }
.key i { position: relative; flex: none; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--sw, var(--border-2)); }
.key i::before { content: ''; position: absolute; inset: 0; border-radius: 2px; background: var(--sw, var(--border-2)); opacity: 0.22; }
.key i.dia { transform: rotate(45deg) scale(0.82); }
.key i.solid::before { opacity: 1; }
.key .hint { color: var(--text-mute); }

/* Chips + meta (artifact pages) */
.chip { display: inline-block; font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 4px; border: 1px solid; white-space: nowrap; }
.chip.planned { color: var(--text-dim); border-color: var(--border-2); border-style: dashed; }
.chip.assess  { color: var(--amber); border-color: #ffb74d55; background: #ffb74d12; }
.chip.trial   { color: var(--cyan);  border-color: #4fc3f755; background: #4fc3f712; }
.chip.adopt   { color: var(--green); border-color: #66bb6a55; background: #66bb6a12; }
.chip.hold    { color: var(--coral); border-color: #ef535055; background: #ef535012; }
.chip.phase       { color: var(--cyan);     border-color: #4fc3f744; background: #4fc3f715; }
.chip.status      { color: var(--gold);     border-color: #ffd54f44; background: #ffd54f15; }
.chip.cost        { color: var(--amber);    border-color: #ffb74d44; background: #ffb74d12; }
.chip.reality     { color: var(--teal);     border-color: #26c6da44; background: #26c6da12; }
.chip.feasibility { color: var(--violet);   border-color: #ab47bc44; background: #ab47bc12; }
.chip.builder     { color: var(--green);    border-color: #66bb6a44; background: #66bb6a12; }
.chip.tester      { color: var(--teal);     border-color: #26c6da44; background: #26c6da12; }
.chip.reviewer    { color: var(--violet);   border-color: #ab47bc44; background: #ab47bc12; }
.chip.yours       { color: var(--text-dim); border-color: var(--border-2); background: transparent; border-style: dashed; }
.chip.stage       { color: var(--cyan);     border-color: #4fc3f744; background: #4fc3f712; }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.2rem; margin: 1.4rem 0; font-size: 0.92rem; }
.meta dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); padding-top: 0.2rem; }
.meta dd { color: var(--text-dim); }
.meta dd code { color: #fff; }
.links { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.9rem; }
.links a { display: inline-block; margin-right: 1.4rem; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.6rem 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.6rem 0; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-top: 4px solid var(--border-2); border-radius: 12px; padding: 1.1rem 1.2rem; }
.card.c { border-top-color: var(--cyan); } .card.v { border-top-color: var(--violet); } .card.t { border-top-color: var(--teal); } .card.g { border-top-color: var(--green); }
.card b { color: #fff; display: block; font-size: 1.05rem; margin-bottom: 0.3rem; }
.card .num { font-size: 2.6rem; font-weight: 900; line-height: 1; color: #fff; }
.card p { font-size: 0.9rem; margin-top: 0.4rem; }
.card a.more { font-size: 0.85rem; display: inline-block; margin-top: 0.6rem; }

/* Tables */
table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-dim); }
th { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }
td:first-child { color: #fff; white-space: nowrap; }

/* Footer */
.foot { border-top: 1px solid var(--border); color: var(--text-mute); font-size: 0.82rem; }
.foot .in { max-width: var(--w); margin: 0 auto; padding: 1.4rem 1.5rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot a { color: var(--text-dim); }

@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr; } .meta { grid-template-columns: 1fr; } h1 { max-width: none; } }

/* Home: L2 → L3 */
.levels { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2rem; align-items: stretch; margin: 2rem 0; }
.lvl { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.lvl.goal { border-color: #4fc3f755; background: linear-gradient(165deg, #4fc3f712 0%, var(--bg-card) 60%); }
.lvl .lh { display: flex; align-items: baseline; gap: 0.7rem; }
.lvl .lh b { font-family: var(--mono); font-size: 1.4rem; font-weight: 800; color: var(--text-dim); }
.lvl.goal .lh b { color: var(--cyan); }
.lvl .lh span { font-size: 0.95rem; color: var(--text-dim); }
.lvl .scene { width: 100%; height: auto; }
.lvl .cap { font-size: 1rem; color: #fff; font-weight: 600; line-height: 1.35; }
.lvl .cap small { display: block; font-weight: 400; color: var(--text-dim); font-size: 0.88rem; margin-top: 0.2rem; }
.levels .mid { align-self: center; width: 44px; height: 24px; color: var(--cyan); }
.scene text { font-family: var(--mono); font-size: 10px; fill: var(--text-mute); letter-spacing: 0.06em; text-transform: uppercase; }
.band { display: flex; gap: 0.45rem; flex-wrap: wrap; margin: 1.4rem 0; }
.band span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mute); border: 1px solid var(--border); border-top: 3px solid var(--border); border-radius: 6px; padding: 0.4rem 0.7rem; flex: 1 1 auto; text-align: center; }
.band span.own { color: var(--cyan); border-top-color: var(--cyan); background: #4fc3f70e; }
.band span.soon { color: var(--amber); border-top-color: var(--amber); border-top-style: dashed; }
.band span.gate { color: var(--green); border-top-color: var(--green); }
@media (max-width: 760px) { .levels { grid-template-columns: 1fr; } .levels .mid { transform: rotate(90deg); margin: 0 auto; } }

/* AI transition: the framework */
/* --l2 and --l3 live at :root — the Why page labels its effort bars with the same two. */
.at { --l0: #8a96a3; --l1: #7a9bc0; --l4: #ff8a50; --l5: #ef5350;
      --z1: var(--l2); --z2: var(--l3); --z3: var(--l4); --ink: #0a1424; }
.at section { margin-top: 2.6rem; padding-top: 2.6rem; border-top: 1px solid var(--border); }
.at .kicker { margin-bottom: 0.5rem; }
.at .kicker + h2 { margin-top: 0; }
.at-tagline { font-size: 1.05rem; font-weight: 600; color: #fff; margin-top: 1rem; }
.at-desc { margin-top: 0.9rem; }

/* Level spectrum strip */
.at-spectrum { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 1.6rem 0; }
.at-spectrum span { padding: 0.75rem 0.5rem; text-align: center; font-family: var(--mono); font-weight: 700; font-size: 0.82rem; color: var(--ink); }
.at-spectrum span small { display: block; margin-top: 0.15rem; font-family: var(--sans); font-weight: 600; font-size: 0.68rem; opacity: 0.78; }
.at-spectrum .l0 { background: var(--l0); } .at-spectrum .l1 { background: var(--l1); }
.at-spectrum .l2 { background: var(--l2); } .at-spectrum .l3 { background: var(--l3); }
.at-spectrum .l4 { background: var(--l4); } .at-spectrum .l5 { background: var(--l5); }

/* Cards */
.at-cards { display: grid; gap: 1.1rem; margin: 1.4rem 0; }
.at-card { background: var(--bg-card); border: 1px solid var(--border); border-top: 4px solid var(--border-2); border-radius: 14px; padding: 1.4rem 1.6rem; }
.at-card.l0 { border-top-color: var(--l0); } .at-card.l1 { border-top-color: var(--l1); }
.at-card.l2 { border-top-color: var(--l2); } .at-card.l3 { border-top-color: var(--l3); }
.at-card.l4 { border-top-color: var(--l4); } .at-card.l5 { border-top-color: var(--l5); }
.at-card.z1 { border-top-color: var(--z1); } .at-card.z2 { border-top-color: var(--z2); } .at-card.z3 { border-top-color: var(--z3); }
.at-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 1rem; }
.at-chip { display: inline-block; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; padding: 0.18rem 0.6rem; border-radius: 5px; color: var(--ink); }
.at-chip.l0 { background: var(--l0); } .at-chip.l1 { background: var(--l1); }
.at-chip.l2 { background: var(--l2); } .at-chip.l3 { background: var(--l3); }
.at-chip.l4 { background: var(--l4); } .at-chip.l5 { background: var(--l5); }
.at-chip.z1 { background: var(--z1); } .at-chip.z2 { background: var(--z2); } .at-chip.z3 { background: var(--z3); }
.at-name { font-size: 1.15rem; font-weight: 700; color: #fff; }
.at-aka { font-size: 0.78rem; font-style: italic; color: var(--text-mute); }
.at-motto { margin-top: 0.55rem; font-size: 0.98rem; font-style: italic; font-weight: 500; color: var(--text); }
.at-body { margin-top: 0.3rem; font-size: 0.95rem; color: var(--text-dim); max-width: 82ch; }
.at-body strong { color: #fff; font-weight: 600; }
.at-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--border); font-size: 0.8rem; }
.at-meta span { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.28rem 0.6rem; border-radius: 5px; background: var(--bg3); color: var(--text); }
.at-meta i { font-family: var(--mono); font-style: normal; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }

/* Pipelines */
.at-pipeline { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; margin: 0.9rem 0 1rem; }
.at-step { padding: 0.3rem 0.55rem; border-radius: 6px; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; border: 1.5px solid var(--border-2); background: var(--bg2); color: var(--text-dim); }
.at-step.human { border-color: var(--green); background: #66bb6a1a; color: var(--green); }
.at-step.mixed { border-color: var(--cyan); background: #4fc3f71a; color: var(--cyan); }
.at-step.ai { border-color: var(--violet); background: #ab47bc22; color: #d69ae0; }
.at-step.new { border-color: var(--amber); background: #ffb74d1a; color: var(--amber); font-weight: 700; }
.at-arr { color: var(--text-mute); font-size: 0.9rem; }

/* Asimov's own note inside a card */
.at-note { max-width: none; margin: 0.2rem 0 0.9rem; padding: 0.55rem 0.8rem; border-left: 3px solid var(--cyan); border-radius: 0 6px 6px 0; background: #4fc3f70e; font-size: 0.88rem; color: var(--cyan); }
.at-note strong { color: #fff; }

/* The shift at L3 */
.at-shift { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2.4rem; margin: 1.6rem 0; padding: 1.6rem 1.8rem; background: var(--bg-card); border: 1px solid var(--border); border-left: 5px solid var(--cyan); border-radius: 12px; }
.at-shift h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--cyan); }
.at-shift p { font-size: 0.95rem; }

/* Zone extras */
.at-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.6rem; margin-top: 1rem; }
.at-tool { padding: 0.55rem 0.75rem; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; }
.at-tool b { display: block; font-size: 0.85rem; font-weight: 700; color: #fff; }
.at-tool span { font-size: 0.78rem; color: var(--text-dim); }
.at-sub { margin: 1.4rem 0 0.2rem; font-family: var(--mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); }
.at-needs { list-style: none; padding-left: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.4rem; margin: 0.6rem 0 0; }
.at-needs li { max-width: none; margin: 0; display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.5rem 0.75rem; background: var(--bg3); border-radius: 6px; font-size: 0.85rem; color: var(--text); }
.at-needs li::before { content: '!'; flex: 0 0 16px; height: 16px; margin-top: 2px; display: flex; align-items: center; justify-content: center; border-radius: 4px; border: 1px solid #ffb74d55; background: #ffb74d1a; color: var(--amber); font-family: var(--mono); font-size: 0.6rem; font-weight: 700; }

/* Levels x Zones matrix */
.at-matrix { overflow-x: auto; margin: 1.6rem 0; padding: 0.2rem 1.1rem 0.9rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
.at-matrix table { min-width: 480px; }
.at-matrix th, .at-matrix td { text-align: center; vertical-align: middle; }
.at-matrix thead th small { display: block; margin-top: 0.3rem; font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
.at-matrix tbody th { text-align: left; white-space: nowrap; }
.at-matrix tbody th small { margin-left: 0.5rem; font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
.at-mark { font-size: 1.05rem; line-height: 1; }
.at-mark.yes { color: var(--green); font-weight: 700; }
.at-mark.maybe { color: var(--amber); font-weight: 700; }
.at-mark.no { color: var(--text-mute); }
.at-legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 0.6rem; font-size: 0.85rem; color: var(--text-dim); }

/* At a glance */
.at-summary { margin: 1.4rem 0; padding: 1.3rem 1.6rem; background: var(--bg-card); border: 1px solid var(--border); border-top: 4px solid var(--cyan); border-radius: 14px; }
.at-summary ul { list-style: none; padding-left: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.at-summary li { max-width: none; margin: 0; position: relative; padding: 0.55rem 0 0.55rem 1.2rem; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.at-summary li::before { content: '\25B8'; position: absolute; left: 0; color: var(--cyan); }

@media (max-width: 760px) {
  .at-spectrum { grid-template-columns: repeat(3, 1fr); }
  .at-shift { grid-template-columns: 1fr; padding: 1.3rem 1.2rem; }
  .at-summary ul { grid-template-columns: 1fr; }
  .at-summary { padding: 1.1rem 1.2rem; }
  .at-card { padding: 1.2rem 1.1rem; }
}

/* What's inside: figures from the deck */
/* Ported from documentation/presentation/asimov-pitch-deck-v4.html (slides 3, 5, 6).
   The deck's .card is renamed .ins-card here (site.css already owns .card); the deck's own
   .chip/.tag bases are dropped — everything here uses the one .chip family (see above). */

.one-line { margin-top: 1.6rem; font-size: 1.1rem; color: var(--text-dim); max-width: 62ch; }
.one-line strong { color: #fff; font-weight: 600; }

/* Shared: marks */
.mk { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--bg); flex-shrink: 0; background: linear-gradient(135deg, var(--cyan), var(--teal)); }
.mk.g { background: linear-gradient(135deg, var(--green), var(--teal)); }
.mk.v { background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.mk.t { background: linear-gradient(135deg, var(--teal), var(--cyan)); }
.mk.a { background: linear-gradient(135deg, var(--amber), var(--gold)); }
.mk.o { background: var(--bg3); color: var(--text-dim); border: 1px dashed var(--border-2); }
.mk svg { width: 19px; height: 19px; }
.arrow { width: 44px; height: 24px; color: var(--border-2); }
.arrow svg { width: 100%; height: 100%; }

/* The flow: a document or a repo, through the AI workers, to what comes out */
.flow { display: grid; grid-template-columns: 0.95fr auto 1.35fr auto 1fr; gap: 1rem; align-items: center; margin: 2.4rem 0; }
.ins-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; }
.ins-card .h { font-family: var(--mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 0.6rem; }
.tree { font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); line-height: 1.7; white-space: pre; overflow-x: auto; }
.tree b { color: #fff; font-weight: 600; }
.tree .c { color: var(--cyan); }

/* The document under review */
.doc { background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 12px; padding: 0.9rem 1rem 1rem; display: grid; gap: 0.5rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); }
.doc .h { font-family: var(--mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }
.doc .dt { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; background: linear-gradient(135deg, #fff 0%, var(--cyan) 60%, var(--teal) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.doc .chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.doc .row { display: grid; grid-template-columns: 34px 1fr; gap: 0.5rem; align-items: center; padding: 0.35rem 0.5rem; border-radius: 6px; background: var(--bg2); border: 1px solid var(--border); }
.doc .row .n { font-family: var(--mono); font-size: 0.62rem; font-weight: 700; color: var(--text-mute); }
.doc .row .lines { display: grid; gap: 4px; }
.doc .row .lines i { display: block; height: 5px; border-radius: 3px; background: var(--bg3); }
.doc .row .lines i.w2 { width: 65%; }
.doc .row.open { border-style: dashed; border-color: var(--border-2); background: transparent; }
.doc .row.open .n { color: var(--amber); }
.doc .row.open .lines { font-size: 0.72rem; color: var(--text-dim); }

/* The AI workers */
.agents { display: grid; gap: 0.7rem; }
.agroup { border: 1px solid var(--border); border-radius: 12px; padding: 0.7rem 0.8rem 0.8rem; background: var(--bg-card); }
.agroup .gh { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; font-size: 0.86rem; color: var(--text-dim); flex-wrap: wrap; }
.agroup .list { display: grid; gap: 0.4rem; }
.agroup.yours { border-style: dashed; border-color: var(--border-2); }
.agroup.yours .gh { color: var(--text-mute); margin-bottom: 0; }
.ag { display: grid; grid-template-columns: 34px 1fr auto; gap: 0.7rem; align-items: center; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 0.45rem 0.7rem 0.45rem 0.5rem; }
.ag .mk { width: 34px; height: 34px; } .ag .mk svg { width: 17px; height: 17px; }
.ag b { color: #fff; font-weight: 800; font-size: 0.95rem; display: block; line-height: 1.2; }
.ag small { color: var(--text-dim); font-size: 0.78rem; }

/* What comes out */
.outs { display: grid; gap: 0.6rem; }
.out { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.88rem; color: var(--text-dim); line-height: 1.45; }
.out b { color: #fff; font-weight: 700; display: block; margin-bottom: 0.15rem; }
.out.flag { border-color: #ffb74d55; background: #ffb74d0a; } .out.flag b { color: var(--amber); }
.out.review { border-color: #ab47bc55; background: #ab47bc0a; } .out.review b { color: var(--violet); }
.out.read { border-color: #26c6da55; background: #26c6da0a; } .out.read b { color: var(--teal); }
.out.read q { display: block; margin-top: 0.4rem; padding-left: 0.7rem; border-left: 2px solid var(--teal); font-style: italic; color: #fff; font-size: 0.86rem; line-height: 1.4; }
.out.cut { border-color: #ffb74d55; background: #ffb74d0a; } .out.cut b { color: var(--amber); }
.out.hard { border-color: #ab47bc55; background: #ab47bc0a; } .out.hard b { color: var(--violet); }

@media (max-width: 1040px) {
  .chain { grid-template-columns: 1fr 1fr; } .chain .arrow { display: none; }
  .flow { grid-template-columns: 1fr; } .flow .arrow { transform: rotate(90deg); margin: 0 auto; }
}
@media (max-width: 760px) { .chain { grid-template-columns: 1fr; } }

/* Effort bars (the paradox) */
.paradox { margin: 1.6rem 0 2rem; padding: 1.6rem 1.6rem 1.4rem; background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid var(--cyan); border-radius: 14px; }
.paradox-quote { max-width: 30ch; margin: 0 0 0.9rem; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; color: #fff; }
.paradox-quote em { font-style: normal; color: var(--cyan); }
.effort-h { margin: 1.8rem 0 0.3rem; font-size: 1.05rem; color: #fff; }

.effort-bars { display: grid; grid-template-columns: 44px 1fr; gap: 0.6rem 0.9rem; align-items: center; margin: 1.2rem 0 0; }
.effort-label { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; }
.effort-bar { display: flex; height: 30px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); overflow: hidden; }
.effort-bar > div { display: flex; align-items: center; justify-content: center; font: 600 0.62rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; }
.effort-design    { background: #26c6da55; }
.effort-spec      { background: #ffd54f55; }
.effort-code      { background: #66bb6a55; }
.effort-test      { background: #4fc3f755; }
.effort-review    { background: #ab47bc55; }
.effort-intent    { background: #ef535055; }
.effort-oversight { background: #6b7a9355; }

@media (max-width: 700px) {
  .effort-bars { grid-template-columns: 34px 1fr; }
  .effort-bar > div { font-size: 0; }
  .paradox { padding: 1.2rem 1.1rem 1.1rem; }
}

/* Why: format table */
.fmt { max-width: 420px; }
.fmt th, .fmt td { text-align: center; }
.fmt th:first-child, .fmt td:first-child { text-align: left; }
.fmt td.ok { color: var(--green); font-weight: 700; }
.fmt td.no { color: var(--coral); font-weight: 700; }
.fmt tr.hi td { background: #4fc3f70e; }
.fmt tr.hi td:first-child { color: var(--cyan); }

/* Artifact page: thumbnail */
.thumb { margin: 1rem 0 0; max-width: 320px; }
.thumb img { display: block; width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.thumb figcaption { font-size: 0.82rem; color: var(--text-mute); margin-top: 0.5rem; }

/* Sub-nav */
.subnav { position: sticky; top: 3.6rem; z-index: 9; background: var(--bg2); border-bottom: 1px solid var(--border); }
.subnav .in { max-width: var(--w); margin: 0 auto; padding: 0.45rem 1.5rem; display: flex; gap: 1.1rem; align-items: center; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.subnav .in::-webkit-scrollbar { display: none; }
.subnav a { color: var(--text-dim); font-size: 0.82rem; font-weight: 500; flex: 0 0 auto; padding: 0.15rem 0; }
.subnav a.on { color: #fff; border-bottom: 2px solid var(--cyan); }
.has-subnav h2[id], .has-subnav section[id] { scroll-margin-top: 7rem; }
@media (max-width: 760px) { .subnav { position: static; } }

/* front page: worked examples, one drawing each */
.examples { display: grid; gap: 3rem; margin: 2rem 0 2.6rem; }
.ex { display: grid; gap: 0.9rem; }
.ex .draw { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.ex .cap p { font-size: 0.95rem; color: #fff; line-height: 1.5; max-width: 62ch; margin: 0; }
.ex .note { font-size: 0.9rem; color: var(--text-dim); margin: 0; }
.term { background: #0b1020; border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.9rem 0.8rem; font-family: var(--mono); font-size: 0.74rem; line-height: 1.75; color: #d7dee8; }
.term .bar { display: flex; align-items: center; gap: 6px; margin: 0 -0.9rem 0.6rem; padding: 0 0.8rem 0.5rem; border-bottom: 1px solid var(--border); }
.term .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--bg3); display: inline-block; }
.term .bar span { margin-left: auto; font-size: 0.62rem; color: var(--text-mute); letter-spacing: 0.08em; }
.term .ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term .ln.you { color: var(--text-mute); }
.term .ln.ai { color: #fff; }
.term .ln.ai::first-letter, .term .ln.tool::first-letter { color: #d97757; }
.term .ln.tool { color: var(--text-dim); margin-top: 0.15rem; }
.term .ln.res { color: var(--text-mute); padding-left: 1.1em; margin-bottom: 0.15rem; }
.term .ln.wrap { white-space: normal; overflow: visible; line-height: 1.5; margin: 0.3rem 0; }
.term .ln.sub { padding-left: 1.1em; color: var(--text-dim); }
.term .ln.sub b { color: var(--amber); font-weight: 700; }
.term .input { margin-top: 0.6rem; border: 1px solid var(--border-2); border-radius: 4px; padding: 0.15rem 0.6rem; color: var(--text-dim); }
.term .cur { display: inline-block; width: 0.55em; height: 1.05em; vertical-align: -0.2em; background: #d7dee8; animation: blink 1.1s steps(1) infinite; }
.term .hint { font-size: 0.62rem; color: var(--text-mute); margin-top: 0.2rem; }
@keyframes blink { 50% { opacity: 0; } }
.doc .row.hot { border-color: var(--teal); background: #26c6da0f; }
.doc .row.hot .n { color: var(--teal); }
.doc .row.hot .lines { font-size: 0.72rem; color: #fff; line-height: 1.35; }
@media (max-width: 720px) { .ex .draw { grid-template-columns: 1fr; } .ex .draw .arrow { transform: rotate(90deg); margin: 0 auto; } }
.cta-row { margin-top: 2.6rem; }
.btn { display: inline-block; padding: 0.7rem 1.5rem; border: 1px solid var(--cyan); border-radius: 10px; color: var(--cyan); font-weight: 600; font-size: 1rem; }
.btn:hover { background: var(--cyan); color: var(--bg); text-decoration: none; }
