/* The homepage's presentation, the reference style; How it works (body.hiw) shares it. Shared header, pricing and public-data styles stay in styles.css. */
:is(body.home, body.hiw, body.ag) nav.top { margin-bottom: 16px; }
:is(body.home, body.hiw, body.ag) .home-showcase { padding-top: 4px; }
:is(body.home, body.hiw, body.ag) .home-showcase-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
/* The copy starts level with the session's tabs (the panel's 22px padding), not centred against it. */
:is(body.home, body.hiw, body.ag) .home-showcase-copy { padding-top: 22px; }
:is(body.home, body.hiw, body.ag) .home-showcase-copy h1 { font-size: clamp(46px, 4.7vw, 64px); }
:is(body.home, body.hiw, body.ag) .home-showcase-lede { font-family: var(--serif); font-size: 29px; line-height: 1.2; color: var(--ink); margin: 0 0 18px; }
:is(body.home, body.hiw, body.ag) .home-showcase-copy .sub { margin-bottom: 24px; }
:is(body.home, body.hiw, body.ag) .home-showcase-copy .ctas { gap: 12px 24px; }
:is(body.home, body.hiw, body.ag) .home-showcase-copy .ctas .link { font-family: var(--sans); font-size: 15px; }
:is(body.home, body.hiw, body.ag) .home-showcase-copy .fine { margin-bottom: 12px; }
:is(body.home, body.hiw, body.ag) .home-start { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 14px; }
:is(body.home, body.hiw, body.ag) .home-start-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
:is(body.home, body.hiw, body.ag) .home-start-chip { display: inline-flex; align-items: center; gap: 7px; font: 500 13px/1 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 10px; cursor: pointer; text-decoration: none; }
:is(body.home, body.hiw, body.ag) .home-start-chip:hover, :is(body.home, body.hiw, body.ag) .home-start-chip[aria-expanded="true"] { border-color: var(--ink); }
:is(body.home, body.hiw, body.ag) .home-start-chip img { width: 16px; height: 16px; }
:is(body.home, body.hiw, body.ag) .home-start-panel { margin: 0 0 16px; max-width: 520px; }
:is(body.home, body.hiw, body.ag) .home-start-panel > p:first-child { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; }
:is(body.home, body.hiw, body.ag) .home-start-panel pre { margin: 0; padding-right: 64px; white-space: pre-wrap; font: inherit; }
:is(body.home, body.hiw, body.ag) .home-start-panel .fine { margin: 8px 0 0; }
:is(body.home, body.hiw, body.ag) .home-browser-link { font-size: 14px; color: var(--accent-deep); border-bottom: 1px solid var(--rule); }
:is(body.home, body.hiw, body.ag) .home-demo { margin: 0; min-width: 0; background: var(--lake); border-radius: 14px; padding: 22px 22px 16px; }
:is(body.home, body.hiw, body.ag) .t-tabs { display: flex; }
:is(body.home, body.hiw, body.ag) .t-tabs button { display: flex; align-items: center; gap: 9px; font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 12px 18px; border: 2px solid #17181c; border-bottom: 0; margin-right: -2px; background: #f4efe8; color: #555; cursor: pointer; }
:is(body.home, body.hiw, body.ag) .t-tabs button[aria-selected="true"] { background: #2a2b31; color: #f4f1ec; }
:is(body.home, body.hiw, body.ag) .t-tabs img { width: 18px; height: 18px; }
:is(body.home, body.hiw, body.ag) .t-screen { position: relative; background: #17181c; color: #e8e4dc; border: 2px solid #17181c; font: 13.5px/1.6 var(--mono); }
:is(body.home, body.hiw, body.ag) .t-panel { display: flex; flex-direction: column; height: 520px; }
:is(body.home, body.hiw, body.ag) .t-panel[hidden] { display: none; }
:is(body.home, body.hiw, body.ag) .t-head { display: flex; gap: 18px; align-items: flex-start; padding: 18px 22px 16px; border-bottom: 1px solid #2c2e35; }
:is(body.home, body.hiw, body.ag) .t-head p { margin: 0; color: #9a9ca4; }
:is(body.home, body.hiw, body.ag) .t-head b { color: #fff; }
:is(body.home, body.hiw, body.ag) .t-clawd { flex: none; margin-top: 3px; }
:is(body.home, body.hiw, body.ag) .t-log { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 4px 0 6px; display: flex; flex-direction: column; }
:is(body.home, body.hiw, body.ag) .t-line { margin: 0; padding: 4px 22px 4px 52px; position: relative; }
:is(body.home, body.hiw, body.ag) .t-js .t-line:not(.on) { display: none; }
:is(body.home, body.hiw, body.ag) .t-js .t-spin.gone, :is(body.home, body.hiw, body.ag) #demo:not(.t-js) .t-spin { display: none; }
:is(body.home, body.hiw, body.ag) .t-you { background: #2a2b31; color: #fff; padding-top: 8px; padding-bottom: 8px; margin: 8px 0 6px; }
:is(body.home, body.hiw, body.ag) .t-you::before { content: "❯"; position: absolute; left: 24px; color: #8b8d95; }
:is(body.home, body.hiw, body.ag) .t-say::before, :is(body.home, body.hiw, body.ag) .t-tool::before { content: "●"; position: absolute; left: 24px; font-size: 11px; top: 5px; color: #fff; }
:is(body.home, body.hiw, body.ag) .t-tool::before { color: #8fd19e; }
:is(body.home, body.hiw, body.ag) .t-tool b { font-weight: 700; color: #fff; }
:is(body.home, body.hiw, body.ag) .t-out, :is(body.home, body.hiw, body.ag) .t-sub { color: #9a9ca4; }
:is(body.home, body.hiw, body.ag) .t-out::before { content: "⎿"; position: absolute; left: 36px; color: #6c6e76; }
:is(body.home, body.hiw, body.ag) .t-out { color: #8fd19e; }
:is(body.home, body.hiw, body.ag) .t-sub b { color: #e8e4dc; }
:is(body.home, body.hiw, body.ag) .t-list { padding-left: 52px; }
:is(body.home, body.hiw, body.ag) .t-say i, :is(body.home, body.hiw, body.ag) .t-list i { font-style: normal; color: #b4a7ff; }
:is(body.home, body.hiw, body.ag) .t-done { color: #8b8d95; }
:is(body.home, body.hiw, body.ag) .t-done::before { content: "✻"; position: absolute; left: 23px; }
:is(body.home, body.hiw, body.ag) .t-spin { color: #e5876a; }
:is(body.home, body.hiw, body.ag) .t-spin::before { content: attr(data-glyph); position: absolute; left: 23px; }
:is(body.home, body.hiw, body.ag) .t-spin .t-meta { color: #8b8d95; }
:is(body.home, body.hiw, body.ag) .t-compose { border-top: 1px solid #2c2e35; padding: 14px 22px 14px; }
:is(body.home, body.hiw, body.ag) .t-compose p { margin: 0; display: flex; align-items: center; min-height: 24px; }
:is(body.home, body.hiw, body.ag) .t-caret { color: #fff; margin-right: 18px; }
:is(body.home, body.hiw, body.ag) .t-input { white-space: pre; color: #fff; }
:is(body.home, body.hiw, body.ag) .t-cursor { display: inline-block; width: 9px; height: 19px; background: #c9c0ff; margin-left: 2px; animation: t-blink 1.1s steps(1) infinite; }
:is(body.home, body.hiw, body.ag) .t-mode { color: #8b8d95; padding-left: 30px; margin-top: 6px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block !important; }
:is(body.home, body.hiw, body.ag) .t-mode b { color: #e7b84a; font-weight: 600; }
@keyframes t-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { :is(body.home, body.hiw, body.ag) .t-cursor { animation: none; } }
/* ChatGPT's own look: dark chat, bubbles on the right, plain answers, a rounded composer. */
:is(body.home, body.hiw, body.ag) .t-gpt { background: #212121; font-family: var(--sans); font-size: 14.5px; line-height: 1.55; }
:is(body.home, body.hiw, body.ag) .t-gpt .t-head { border-bottom-color: #303030; }
:is(body.home, body.hiw, body.ag) .t-gpt .t-line { padding: 4px 24px; }
:is(body.home, body.hiw, body.ag) .t-gpt .t-you { align-self: flex-end; background: #303030; border-radius: 18px; padding: 9px 16px; margin: 12px 24px 10px auto; max-width: 80%; }
:is(body.home, body.hiw, body.ag) .t-gpt .t-you::before, :is(body.home, body.hiw, body.ag) .t-gpt .t-say::before, :is(body.home, body.hiw, body.ag) .t-gpt .t-spin::before { content: none; }
:is(body.home, body.hiw, body.ag) .t-gpt .t-sub { font-size: 13px; }
:is(body.home, body.hiw, body.ag) .t-gpt .t-spin { color: #9a9ca4; }
:is(body.home, body.hiw, body.ag) .t-gpt .t-compose { border: 0; padding: 10px 18px 18px; }
:is(body.home, body.hiw, body.ag) .t-gpt .t-compose p { background: #303030; border-radius: 26px; padding: 10px 10px 10px 16px; min-height: 46px; }
:is(body.home, body.hiw, body.ag) .t-plus { color: #b4b4b4; font-size: 20px; margin-right: 12px; }
:is(body.home, body.hiw, body.ag) .t-gpt .t-input:empty::before { content: attr(data-placeholder); color: #8e8e8e; }
:is(body.home, body.hiw, body.ag) .t-gpt .t-cursor { width: 2px; background: #fff; }
:is(body.home, body.hiw, body.ag) .t-send { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #212121; display: grid; place-items: center; font-weight: 700; }
:is(body.home, body.hiw, body.ag) .t-replay { position: absolute; right: 14px; top: 14px; font: 12px var(--mono); background: transparent; color: #8b8d95; border: 1px solid #34363d; border-radius: 6px; padding: 5px 10px; cursor: pointer; }
:is(body.home, body.hiw, body.ag) .home-demo figcaption { padding: 14px 2px 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
:is(body.home, body.hiw, body.ag) .home-demo figcaption span { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
:is(body.home, body.hiw, body.ag) .home-tool-logos { margin-top: 48px; }
:is(body.home, body.hiw, body.ag) .home-tool-logos .compat-row { justify-content: center; }
:is(body.home, body.hiw, body.ag) .home-tool-logos .logos { justify-content: center; }
:is(body.home, body.hiw, body.ag) .home-tool-logos .link { margin-left: 0; }
@media (max-width: 1100px) {
  :is(body.home, body.hiw, body.ag) .home-showcase-grid { gap: 32px; }
  :is(body.home, body.hiw, body.ag) .home-enterprise-grid { gap: 40px; }
  :is(body.home, body.hiw, body.ag) .home-tool-logos .logos { gap: 12px 20px; }
}
@media (max-width: 900px) {
  :is(body.home, body.hiw, body.ag) .home-showcase-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  :is(body.home, body.hiw, body.ag) .home-showcase-copy { max-width: 680px; }
  :is(body.home, body.hiw, body.ag) .home-showcase-copy h1 { font-size: clamp(46px, 7.5vw, 68px); }
  :is(body.home, body.hiw, body.ag) .home-showcase-copy .sub { max-width: 60ch; }
  :is(body.home, body.hiw, body.ag) .home-tool-logos { margin-top: 32px; }
  :is(body.home, body.hiw, body.ag) .home-enterprise-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  :is(body.home, body.hiw, body.ag) .home-showcase-lede { font-size: 25px; }
  :is(body.home, body.hiw, body.ag) .home-demo { padding: 12px 10px 12px; }
  :is(body.home, body.hiw, body.ag) .t-tabs button { padding: 10px 12px; font-size: 11px; }
  :is(body.home, body.hiw, body.ag) .t-screen { font-size: 12px; }
  :is(body.home, body.hiw, body.ag) .t-panel { height: 560px; }
  :is(body.home, body.hiw, body.ag) .t-line { padding-left: 40px; padding-right: 14px; }
  :is(body.home, body.hiw, body.ag) .t-you::before, :is(body.home, body.hiw, body.ag) .t-say::before, :is(body.home, body.hiw, body.ag) .t-tool::before, :is(body.home, body.hiw, body.ag) .t-done::before, :is(body.home, body.hiw, body.ag) .t-spin::before { left: 16px; }
  :is(body.home, body.hiw, body.ag) .t-out::before { left: 26px; }
  :is(body.home, body.hiw, body.ag) .t-head { padding: 14px; gap: 12px; }
  :is(body.home, body.hiw, body.ag) .t-mode { display: none; }
  :is(body.home, body.hiw, body.ag) .home-enterprise { padding: 48px 0; }
}

/* Reuse the approved workflow copy and the site's existing colour tokens. */
:is(body.home, body.hiw, body.ag) .home-showcase-copy .ctas .btn.ghost { font-size: 15px; }
:is(body.home, body.hiw, body.ag) #pricing .plan-ent { margin-top: 24px; padding: 18px 28px; }
@media (max-width: 1100px) {
  :is(body.home, body.hiw, body.ag) .home-benefit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :is(body.home, body.hiw, body.ag) .home-benefit-cards { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* Founder's visual design, 2026-10-19. */
/* The loop: four illustrated steps joined by arrows, a return line under them. */
:is(body.home, body.hiw, body.ag) .home-benefits h2 em { color: var(--accent); font-style: italic; }
:is(body.home, body.hiw, body.ag) .home-benefits > .inner > .sub { max-width: 64ch; }
:is(body.home, body.hiw, body.ag) .home-loop { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr); margin-top: 40px; }
:is(body.home, body.hiw, body.ag) .loop-step { display: contents; }
:is(body.home, body.hiw, body.ag) .loop-top { grid-row: 1; display: flex; flex-direction: column; }
:is(body.home, body.hiw, body.ag) .loop-copy { grid-row: 3; display: flex; flex-direction: column; }
:is(body.home, body.hiw, body.ag) .s1 > div { grid-column: 1; } :is(body.home, body.hiw, body.ag) .s2 > div { grid-column: 3; } :is(body.home, body.hiw, body.ag) .s3 > div { grid-column: 5; } :is(body.home, body.hiw, body.ag) .s4 > div { grid-column: 7; }
:is(body.home, body.hiw, body.ag) .r1 { grid-column: 2; } :is(body.home, body.hiw, body.ag) .r2 { grid-column: 4; } :is(body.home, body.hiw, body.ag) .r3 { grid-column: 6; }
:is(body.home, body.hiw, body.ag) .loop-arrow { grid-row: 1; align-self: center; justify-self: center; margin-top: 50px; color: var(--muted); font-size: 22px; }
:is(body.home, body.hiw, body.ag) .loop-n { font-family: var(--mono); font-size: 11px; color: var(--accent); margin: 0 0 4px; }
:is(body.home, body.hiw, body.ag) .loop-top h3 { font-size: 25px; margin: 0 0 14px; }
:is(body.home, body.hiw, body.ag) .loop-vis { flex: 1; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 14px; box-shadow: 0 10px 26px rgba(25, 30, 33, .06); font-size: 13px; min-height: 236px; }
:is(body.home, body.hiw, body.ag) .loop-sources { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 10px; }
:is(body.home, body.hiw, body.ag) .loop-sources li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; background: var(--bg); }
:is(body.home, body.hiw, body.ag) .loop-sources svg { width: 22px; height: 22px; flex: none; color: var(--ink-soft); fill: currentColor; }
:is(body.home, body.hiw, body.ag) .loop-sources li:nth-child(3) svg { fill: none; }
:is(body.home, body.hiw, body.ag) .loop-store ul { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
:is(body.home, body.hiw, body.ag) .loop-store li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-family: var(--mono); font-size: 12px; border-top: 1px solid var(--rule); color: var(--ink-soft); }
:is(body.home, body.hiw, body.ag) .loop-store li:first-child { border-top: 0; }
:is(body.home, body.hiw, body.ag) .loop-store li.on { background: var(--lake); color: var(--ink); }
:is(body.home, body.hiw, body.ag) .loop-store li.add { color: var(--muted); }
:is(body.home, body.hiw, body.ag) .loop-store li.add span { width: 14px; text-align: center; }
:is(body.home, body.hiw, body.ag) .loop-store svg { width: 14px; height: 14px; flex: none; }
:is(body.home, body.hiw, body.ag) .loop-badge { display: flex; align-items: center; gap: 12px; margin: 0; border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--ink-soft); }
:is(body.home, body.hiw, body.ag) .loop-badge b { display: block; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #2b6cb0; }
:is(body.home, body.hiw, body.ag) .loop-badge code { font-size: 12px; }
:is(body.home, body.hiw, body.ag) .loop-analyze { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
:is(body.home, body.hiw, body.ag) .loop-analyze pre { margin: 0; background: #17181c; color: #e6e1da; padding: 14px; font: 11.5px/1.6 var(--mono); white-space: pre; overflow: hidden; }
:is(body.home, body.hiw, body.ag) pre .k { color: #f0a36b; } :is(body.home, body.hiw, body.ag) pre .f { color: #8fd19e; } :is(body.home, body.hiw, body.ag) pre .s { color: #b4a7ff; }
:is(body.home, body.hiw, body.ag) .loop-vis table, :is(body.home, body.hiw, body.ag) .t-result table, :is(body.home, body.hiw, body.ag) .pub-tables table, :is(body.home, body.hiw, body.ag) .ent-app table { width: 100%; border-collapse: collapse; font: 12px/1.4 var(--mono); }
:is(body.home, body.hiw, body.ag) .loop-vis th, :is(body.home, body.hiw, body.ag) .pub-tables th { text-align: left; font-weight: 600; color: var(--ink); background: var(--bg-soft); padding: 6px 10px; }
:is(body.home, body.hiw, body.ag) .loop-vis td, :is(body.home, body.hiw, body.ag) .pub-tables td { padding: 6px 10px; border-top: 1px solid var(--rule); color: var(--ink-soft); white-space: nowrap; }
:is(body.home, body.hiw, body.ag) .loop-vis td + td, :is(body.home, body.hiw, body.ag) .loop-vis th + th { text-align: right; }
:is(body.home, body.hiw, body.ag) .loop-close { display: flex; flex-direction: column; }
:is(body.home, body.hiw, body.ag) .loop-cap { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--ink); }
:is(body.home, body.hiw, body.ag) .loop-close table { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
:is(body.home, body.hiw, body.ag) .loop-note { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--ink-soft); }
:is(body.home, body.hiw, body.ag) .loop-note svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
:is(body.home, body.hiw, body.ag) .loop-return { grid-row: 2; grid-column: 1 / -1; position: relative; height: 40px; }
:is(body.home, body.hiw, body.ag) .loop-return::before { content: ""; position: absolute; left: 11%; right: 11%; top: 0; height: 22px; border: 1.5px solid var(--accent); border-top: 0; border-radius: 0 0 14px 14px; }
:is(body.home, body.hiw, body.ag) .loop-return i { position: absolute; top: 15px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); }
:is(body.home, body.hiw, body.ag) .loop-return i:first-child { left: calc(37% - 6px); } :is(body.home, body.hiw, body.ag) .loop-return i:last-child { left: calc(63% - 6px); }
:is(body.home, body.hiw, body.ag) .loop-copy p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 16px; }
:is(body.home, body.hiw, body.ag) .loop-copy .link { margin-top: auto; align-self: flex-start; font-family: var(--sans); font-size: 14px; }

/* Enterprise: dark, with an access list. */
:is(body.home, body.hiw, body.ag) .home-enterprise { background: var(--night); color: #f3efe9; padding: 84px 0; }
:is(body.home, body.hiw, body.ag) .home-enterprise-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
:is(body.home, body.hiw, body.ag) .home-enterprise .eyebrow { color: #f2825a; }
:is(body.home, body.hiw, body.ag) .home-enterprise h2 { color: #fff; font-size: clamp(38px, 4.4vw, 60px); }
:is(body.home, body.hiw, body.ag) .home-enterprise-lede { color: #c9c4bc; line-height: 1.6; max-width: 48ch; margin: 0 0 28px; }
:is(body.home, body.hiw, body.ag) .home-enterprise .link { color: #fff; border-bottom-color: var(--accent); }
:is(body.home, body.hiw, body.ag) .home-enterprise .fine { color: #9fa5a9; font-size: 12.5px; }
:is(body.home, body.hiw, body.ag) .ent-app { background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; font-size: 13px; }
:is(body.home, body.hiw, body.ag) .ent-app-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
:is(body.home, body.hiw, body.ag) .ent-app-head b { font-weight: 600; }
:is(body.home, body.hiw, body.ag) .ent-tabs { margin-left: auto; display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); }
:is(body.home, body.hiw, body.ag) .ent-tabs .on { color: var(--accent-deep); font-weight: 600; box-shadow: 0 2px 0 var(--accent); padding-bottom: 3px; }
:is(body.home, body.hiw, body.ag) .ent-app-bar { display: flex; gap: 12px; padding: 12px 18px; }
:is(body.home, body.hiw, body.ag) .ent-search { flex: 1; border: 1px solid var(--rule); border-radius: 6px; padding: 7px 12px; color: var(--muted); font-size: 12.5px; }
:is(body.home, body.hiw, body.ag) .ent-add { border: 1px solid var(--accent); color: var(--accent-deep); border-radius: 6px; padding: 7px 12px; font-size: 12.5px; white-space: nowrap; }
:is(body.home, body.hiw, body.ag) .ent-app table { font-family: var(--sans); font-size: 12.5px; }
:is(body.home, body.hiw, body.ag) .ent-app th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 18px; background: var(--bg); border-block: 1px solid var(--rule); }
:is(body.home, body.hiw, body.ag) .ent-app td { padding: 10px 18px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); white-space: nowrap; }
:is(body.home, body.hiw, body.ag) .ent-app td:first-child { color: var(--ink); display: flex; align-items: center; gap: 10px; }
:is(body.home, body.hiw, body.ag) .ent-app td svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
:is(body.home, body.hiw, body.ag) .ent-app-foot { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px; font-size: 12px; color: var(--muted); }
:is(body.home, body.hiw, body.ag) .ent-app-foot i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
:is(body.home, body.hiw, body.ag) .ent-feats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
:is(body.home, body.hiw, body.ag) .ent-feats li { display: flex; gap: 12px; padding: 0 18px; border-left: 1px solid #3a3f44; }
:is(body.home, body.hiw, body.ag) .ent-feats li:first-child { border-left: 0; padding-left: 0; }
:is(body.home, body.hiw, body.ag) .ent-feats svg { width: 24px; height: 24px; flex: none; fill: none; stroke: #f2825a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:is(body.home, body.hiw, body.ag) .ent-feats h3 { font: 500 15px var(--sans); color: #fff; margin: 2px 0 6px; }
:is(body.home, body.hiw, body.ag) .ent-feats p { margin: 0; font-size: 12.5px; line-height: 1.55; color: #b8b3ab; }

/* Capabilities: the design's 3 x 2 grid with large icons, no numbers. */
:is(body.home, body.hiw, body.ag) .home-caps { gap: 0 48px; border-top: 0; }
:is(body.home, body.hiw, body.ag) .home-caps li { grid-template-columns: 44px minmax(0, 1fr); gap: 0 20px; padding: 22px 0; }
:is(body.home, body.hiw, body.ag) .home-caps .pi { width: 36px; height: 36px; stroke-width: 1.4; }
:is(body.home, body.hiw, body.ag) .home-caps h3 { font-size: 17px; }

/* Public data: real rows from three tables, over the map. */
:is(body.home, body.hiw, body.ag) .home-public { overflow: hidden; }
:is(body.home, body.hiw, body.ag) .pub-row { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
:is(body.home, body.hiw, body.ag) .pub-visual { position: relative; min-height: 300px; }
:is(body.home, body.hiw, body.ag) .pub-map { position: absolute; right: -6%; top: 50%; width: 82%; height: auto; transform: translateY(-50%); opacity: .55; pointer-events: none; }
:is(body.home, body.hiw, body.ag) .pub-tables { position: relative; list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; gap: 34px; }
:is(body.home, body.hiw, body.ag) .pub-tables li { position: relative; flex: 1; min-width: 0; background: #fff; border: 1px solid #c9dde6; border-radius: 9px; padding: 10px 0 4px; box-shadow: 0 14px 30px rgba(24, 60, 78, .14); }
:is(body.home, body.hiw, body.ag) .pub-tables li:nth-child(1) { margin-top: 26px; } :is(body.home, body.hiw, body.ag) .pub-tables li:nth-child(3) { margin-top: 14px; }
:is(body.home, body.hiw, body.ag) .pub-tables b { display: block; font: 600 12px var(--mono); color: #2b6cb0; padding: 0 12px 8px; overflow-wrap: anywhere; }
:is(body.home, body.hiw, body.ag) .pub-tables table { font-size: 11px; }
:is(body.home, body.hiw, body.ag) .pub-tables td { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
:is(body.home, body.hiw, body.ag) .pub-tables li + li::before { content: ""; position: absolute; left: -34px; top: 40px; width: 34px; border-top: 1.5px dashed var(--accent); }
:is(body.home, body.hiw, body.ag) .pub-tables li + li::after { content: ""; position: absolute; left: -4px; top: 36px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* The session's query and result. */
:is(body.home, body.hiw, body.ag) .t-code pre { margin: 4px 0; background: #202127; border: 1px solid #2c2e35; border-radius: 6px; padding: 10px 12px; font: 12px/1.6 var(--mono); color: #e6e1da; white-space: pre; overflow: hidden; }
:is(body.home, body.hiw, body.ag) .t-result table { max-width: 320px; background: #202127; border: 1px solid #2c2e35; }
:is(body.home, body.hiw, body.ag) .t-result th { text-align: left; color: #fff; font-weight: 600; padding: 4px 10px; border-bottom: 1px solid #2c2e35; }
:is(body.home, body.hiw, body.ag) .t-result td { padding: 3px 10px; color: #c9c4bc; }
:is(body.home, body.hiw, body.ag) .t-result td + td, :is(body.home, body.hiw, body.ag) .t-result th + th { text-align: right; }
:is(body.home, body.hiw, body.ag) .t-result p { margin: 4px 0 0; color: #8b8d95; font-size: 12px; }

@media (max-width: 1100px) {
  :is(body.home, body.hiw, body.ag) .home-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  :is(body.home, body.hiw, body.ag) .loop-step { display: flex; flex-direction: column; gap: 16px; }
  :is(body.home, body.hiw, body.ag) .loop-step > div { grid-column: auto !important; grid-row: auto; }
  :is(body.home, body.hiw, body.ag) .loop-arrow, :is(body.home, body.hiw, body.ag) .loop-return { display: none; }
  :is(body.home, body.hiw, body.ag) .home-enterprise-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  :is(body.home, body.hiw, body.ag) .pub-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  :is(body.home, body.hiw, body.ag) .home-loop { grid-template-columns: minmax(0, 1fr); }
  :is(body.home, body.hiw, body.ag) .ent-feats { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  :is(body.home, body.hiw, body.ag) .ent-feats li { border-left: 0; padding: 0; }
  :is(body.home, body.hiw, body.ag) .ent-app { overflow-x: auto; }
  :is(body.home, body.hiw, body.ag) .ent-tabs span:not(.on) { display: none; }
  :is(body.home, body.hiw, body.ag) .pub-tables { flex-direction: column; gap: 14px; }
  :is(body.home, body.hiw, body.ag) .pub-tables li { margin-top: 0 !important; width: 100%; }
  :is(body.home, body.hiw, body.ag) .pub-tables li + li::before, :is(body.home, body.hiw, body.ag) .pub-tables li + li::after { display: none; }
  :is(body.home, body.hiw, body.ag) .pub-map { width: 130%; opacity: .35; }
  :is(body.home, body.hiw, body.ag) .t-code pre { font-size: 10.5px; }
}

/* The heroes of How it works and Agents (2026-10-19): a diagram on the session's blue panel, not the session. */
:is(body.hiw, body.ag) .hv-card { background: #fff; border: 1px solid #c9dde6; border-radius: 12px; padding: 18px; box-shadow: 0 14px 30px rgba(24, 60, 78, .12); min-width: 0; }
:is(body.hiw, body.ag) .hv-label { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #2b6cb0; }
:is(body.hiw, body.ag) .hv-label code { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--ink); }
:is(body.hiw, body.ag) .hv-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
body.hiw .hv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1.1fr); gap: 0; align-items: stretch; }
body.hiw .hv-h { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
body.hiw .hv-chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
body.hiw .hv-chips li { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); border-radius: 999px; padding: 5px 10px; font-size: 12px; background: var(--bg); }
body.hiw .hv-chips img { width: 15px; height: 15px; }
body.hiw .hv-env .hv-foot { margin-top: auto; }
body.hiw .hv-env { display: flex; flex-direction: column; }
body.hiw .hv-flows { list-style: none; margin: 0; padding: 0 10px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
body.hiw .hv-flows li { position: relative; text-align: center; padding-bottom: 12px; }
body.hiw .hv-flows b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
body.hiw .hv-flows span { display: block; font-size: 11px; color: #3f4a50; }
body.hiw .hv-flows li::after { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-top: 1.5px solid; content: ""; }
body.hiw .hv-flows li::before { position: absolute; bottom: -6px; font-size: 13px; line-height: 1; }
body.hiw .hv-out::after { border-color: var(--accent); } body.hiw .hv-out::before { content: "▶"; right: -4px; color: var(--accent); }
body.hiw .hv-in::after { border-color: #2b6cb0; } body.hiw .hv-in::before { content: "◀"; left: -4px; color: #2b6cb0; }
body.hiw .hv-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body.hiw .hv-layers li { border: 1px solid var(--rule); border-radius: 8px; padding: 9px 12px; background: var(--bg); }
body.hiw .hv-layers li:first-child { background: var(--lake); border-color: #c9dde6; }
body.hiw .hv-layers b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
body.hiw .hv-layers span { font-size: 12px; color: var(--muted); }

body.ag .hv-share-grid { display: grid; grid-template-columns: minmax(0, .8fr) 70px minmax(0, 1.4fr); align-items: center; }
body.ag .hv-agents { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
body.ag .hv-agents li { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #c9dde6; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-weight: 500; color: var(--ink); box-shadow: 0 6px 16px rgba(24, 60, 78, .08); }
body.ag .hv-agents img, body.ag .hv-agents svg { width: 18px; height: 18px; flex: none; }
body.ag .hv-agents small { margin-left: auto; font: 600 9.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); }
body.ag .hv-wires { width: 100%; height: 100%; min-height: 300px; }
body.ag .hv-wires path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
body.ag .hv-tables { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
body.ag .hv-tables li { display: grid; grid-template-columns: 16px auto; column-gap: 10px; padding: 10px 12px; border-top: 1px solid var(--rule); align-items: center; }
body.ag .hv-tables li:first-child { border-top: 0; }
body.ag .hv-tables li.on { background: var(--lake); }
body.ag .hv-tables svg { width: 14px; height: 14px; color: var(--ink-soft); grid-row: span 2; }
body.ag .hv-tables b { font: 600 13px var(--mono); color: var(--ink); }
body.ag .hv-tables span { font-size: 11.5px; color: var(--muted); }
body.ag .hv-join { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 12.5px; color: var(--ink-soft); }
body.ag .hv-join code { font-size: 12px; }

@media (max-width: 760px) {
  body.hiw .hv-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.hiw .hv-flows { flex-direction: row; gap: 10px; padding: 0; }
  body.hiw .hv-flows li { flex: 1; }
  body.ag .hv-share-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.ag .hv-agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ag .hv-wires { display: none; }
}
