/* /harnesses: agent harness designs for New York workers' compensation firms and solo practitioners.
   Loaded after skins.css, attorneys-nyc.css and brain-hero.css; only what those do not have:
   the diagrams, the tables and the status chips. Dark only, like the other attorney pages.

   Colour rule for the diagrams: our parts in the brand blue/navy, Anthropic's parts neutral,
   the approval step alone in the accent. Status is always a word, never colour alone. */

body.hx {
  --hx-surface: rgba(22,36,63,0.62);
  --hx-surface-2: rgba(11,20,38,0.66);
  --hx-line: rgba(240,235,224,0.16);
  --hx-text: var(--skin-text);
  --hx-text-2: var(--skin-text-soft);
  --hx-text-3: var(--skin-text-muted);
  --hx-ours: #6E9BFF;          /* brand blue, lifted for ink on navy */
  --hx-ours-fill: rgba(58,123,255,0.14);
  --hx-anth: #A9B3C7;          /* neutral */
  --hx-anth-fill: rgba(169,179,199,0.08);
  --hx-gate: #F59A52;          /* the accent, as ink on navy */
  --hx-gate-fill: rgba(232,119,34,0.16);
  --hx-gate-edge: #E87722;
  --hx-live: #7BE0A6;
  --hx-preview: #9DBBFF;
  --hx-demo: #F2C27A;
  --hx-dev: #C9D1E0;
  --hx-design: #F59A52;
}

/* ── Hero ─────────────────────────────────────────────────────────────────────────────── */
.hx-hero { min-height: min(80vh, 820px); }
.nyc-hero h1#hx-h { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.05; }

.hx-mini { margin: 0; }
.hx-mini-card { border-radius: 14px; overflow: hidden; background: var(--hx-surface-2);
  box-shadow: inset 0 0 0 1px var(--hx-line), 0 40px 90px -40px rgba(0,0,0,0.6); }
.hx-mini-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--hx-line);
  font: 700 11px/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hx-text-3); }
.hx-mini-bar .tag { margin-left: auto; color: var(--hx-gate); }
.hx-mini-steps { list-style: none; margin: 0; padding: 16px; display: grid; gap: 22px; position: relative; }
.hx-mini-steps li { position: relative; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--hx-line);
  background: var(--hx-anth-fill); display: grid; gap: 4px; }
.hx-mini-steps li + li::before { content: ""; position: absolute; left: 26px; top: -22px; height: 22px; border-left: 2px solid var(--hx-text-3); }
.hx-mini-steps li + li::after { content: ""; position: absolute; left: 22px; top: -8px; border: 5px solid transparent; border-top: 6px solid var(--hx-text-3); }
.hx-mini-steps b { font: 800 15px/1.25 var(--font-display); color: var(--hx-text); }
.hx-mini-steps span { font-size: 13.5px; line-height: 1.45; color: var(--hx-text-2); }
.hx-mini-steps .ours { border-color: var(--hx-ours); background: var(--hx-ours-fill); }
.hx-mini-steps .gate { border: 2px solid var(--hx-gate-edge); background: var(--hx-gate-fill); }
.hx-mini-steps .gate b { color: var(--hx-gate); }

/* ── Status chips (always a word) ─────────────────────────────────────────────────────── */
.hx-chip { display: inline-block; padding: 5px 9px; border-radius: 6px; vertical-align: middle;
  font: 800 10.5px/1.1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: var(--hx-text-2); box-shadow: inset 0 0 0 1px currentColor; }
.nyc-head .hx-chip { margin: 0 0 4px 8px; }
.hx-chip.live { color: var(--hx-live); }
.hx-chip.preview { color: var(--hx-preview); }
.hx-chip.demo { color: var(--hx-demo); }
.hx-chip.dev { color: var(--hx-dev); }
.hx-chip.design { color: var(--hx-design); }
.hx-chip.beta { color: var(--hx-preview); font-size: .85em; padding: 2px 6px; margin-left: 4px; }

/* ── Agent cards ──────────────────────────────────────────────────────────────────────── */
.hx-agents { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hx-agents li { border-radius: 12px; padding: 18px 18px 20px; background: var(--hx-surface); box-shadow: inset 0 0 0 1px var(--hx-line);
  border-top: 3px solid var(--hx-ours); }
.hx-agents li.planned { border-top-style: dashed; border-top-color: var(--hx-text-3); }
.hx-agents h3 { margin: 0 0 6px !important; font: 800 17px/1.25 var(--font-display) !important; color: var(--hx-text); letter-spacing: -0.01em; }
.hx-agents p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--hx-text-2); }

/* ── Tables ───────────────────────────────────────────────────────────────────────────── */
.hx-table-wrap { max-width: 1040px; margin: 0 auto 28px; overflow-x: auto; border-radius: 12px;
  background: var(--hx-surface); box-shadow: inset 0 0 0 1px var(--hx-line); }
.hx-table-wrap:focus-visible { outline: 2px solid var(--hx-gate-edge); outline-offset: 2px; }
.hx-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; color: var(--hx-text-2); }
.hx-table caption { caption-side: top; text-align: left; padding: 16px 18px 10px; font: 700 14px/1.4 var(--font-body); color: var(--hx-text); }
.hx-table th, .hx-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--hx-line); }
.hx-table thead th { font: 800 11px/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hx-text-3); }
.hx-table tbody th { font-weight: 700; color: var(--hx-text); }
.hx-table a { color: var(--hx-text); text-underline-offset: 3px; }
.hx-table .hx-chip { margin-right: 6px; }
.hx-roles { min-width: 720px; }
.hx-roles td { white-space: normal; }
.hx-roles td span[aria-hidden] { display: inline-block; width: 1.1em; }
.hx-roles td.ok { color: var(--hx-text); font-weight: 700; }
.hx-roles td.ok span[aria-hidden] { color: var(--hx-gate); }
.hx-roles td.can span[aria-hidden] { color: var(--hx-ours); }
.hx-roles td.no { color: var(--hx-text-3); }
.hx-status { min-width: 620px; }
.hx-key { max-width: 1040px; margin: -14px auto 0; font-size: 13px; color: var(--hx-text-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── The seven parts ──────────────────────────────────────────────────────────────────── */
.hx-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: part; }
.hx-parts li { counter-increment: part; border-radius: 12px; padding: 18px; background: var(--hx-surface); box-shadow: inset 0 0 0 1px var(--hx-line); display: flex; flex-direction: column; }
.hx-parts li::before { content: counter(part, decimal-leading-zero); font: 800 12px/1 var(--font-numeric); letter-spacing: 0.12em; color: var(--hx-text-3); margin-bottom: 10px; }
.hx-parts h3 { margin: 0 0 6px !important; font: 800 17px/1.25 var(--font-display) !important; color: var(--hx-text); }
.hx-parts p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--hx-text-2); }
.hx-parts .prim { margin-top: auto; font: 700 11px/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hx-anth); }
.hx-rule { max-width: 760px; margin: 22px auto 40px; text-align: center; font: 700 17px/1.45 var(--font-display); color: var(--hx-text); }
.hx-rule::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 2px; background: var(--hx-gate-edge); vertical-align: 1px; }

/* ── Chart: the architecture map ──────────────────────────────────────────────────────── */
.hx-map { max-width: 1120px; margin: 0 auto 32px; padding: 18px; border-radius: 16px; background: var(--hx-surface-2); box-shadow: inset 0 0 0 1px var(--hx-line); }
.hx-map-hub { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; border: 1.5px solid var(--hx-ours); background: var(--hx-ours-fill); text-align: center; }
.hx-map-hub b { display: block; font: 800 15px/1.3 var(--font-display); color: var(--hx-text); }
.hx-map-hub span { font-size: 13px; color: var(--hx-text-2); }
.hx-map-grid { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(120px, 0.7fr) 44px minmax(0, 1.35fr) 44px minmax(0, 1fr); align-items: center; }
.hx-col { border-radius: 12px; padding: 14px; height: 100%; }
.hx-col.firm { border: 1.5px solid var(--hx-ours); background: var(--hx-ours-fill); }
.hx-col.anth { border: 1.5px solid var(--hx-anth); background: var(--hx-anth-fill); }
.hx-col.env { border: 1.5px solid var(--hx-anth); background: var(--hx-anth-fill); }
.hx-col-h { margin: 0 0 10px !important; font: 800 12px/1.35 var(--font-body) !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hx-text); }
.hx-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hx-col li { padding: 7px 9px; border-radius: 7px; font-size: 13.5px; line-height: 1.4; color: var(--hx-text-2); background: var(--hx-surface); box-shadow: inset 0 0 0 1px var(--hx-line); }
.hx-col li b { color: var(--hx-text); }
.hx-col.env li:first-child { border: 1.5px solid var(--hx-anth); box-shadow: none; }
.hx-col li.dashed { box-shadow: none; border: 1.5px dashed var(--hx-ours); }
.hx-gate { align-self: center; padding: 14px 12px; border-radius: 12px; border: 2px solid var(--hx-gate-edge); background: var(--hx-gate-fill); text-align: center; }
.hx-gate b { display: block; font: 800 16px/1.2 var(--font-display); color: var(--hx-gate); margin-bottom: 4px; }
.hx-gate span { font-size: 12.5px; line-height: 1.4; color: var(--hx-text-2); }
.hx-arrow { display: grid; place-items: center; }
.hx-arrow svg { width: 40px; height: 16px; fill: none; stroke: var(--hx-text-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hx-map figcaption { margin-top: 14px; font-size: 13px; color: var(--hx-text-3); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.hx-map figcaption b { color: var(--hx-text-2); }
.hx-map .k { display: inline-flex; align-items: center; gap: 6px; }
.hx-map .k::before { content: ""; width: 12px; height: 12px; border-radius: 3px; border: 2px solid; }
.hx-map .k.ours::before { border-color: var(--hx-ours); background: var(--hx-ours-fill); }
.hx-map .k.anth::before { border-color: var(--hx-anth); background: var(--hx-anth-fill); }
.hx-map .k.gate::before { border-color: var(--hx-gate-edge); background: var(--hx-gate-fill); }
.hx-text { margin-top: 10px; }
.hx-text summary { cursor: pointer; font-size: 13.5px; color: var(--hx-text); text-decoration: underline; text-underline-offset: 3px; }
.hx-text summary:focus-visible { outline: 2px solid var(--hx-gate-edge); outline-offset: 3px; border-radius: 3px; }
.hx-text p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--hx-text-2); max-width: 80ch; }
.hx-note { max-width: 860px; margin: 0 auto; font-size: 13px; line-height: 1.6; color: var(--hx-text-3); text-align: center; }
.hx-note a { color: var(--hx-text-2); }

@media (max-width: 980px) {
  .hx-map-grid { grid-template-columns: 1fr; gap: 0; }
  .hx-arrow { height: 36px; }
  .hx-arrow svg { transform: rotate(90deg); }
  /* Stacked, the order reads top to bottom: environment, orchestration, approval, firm. */
  .hx-map-grid > :nth-child(1) { order: 7; }
  .hx-map-grid > :nth-child(2) { order: 6; }
  .hx-map-grid > :nth-child(3) { order: 5; }
  .hx-map-grid > :nth-child(4) { order: 4; }
  .hx-map-grid > :nth-child(5) { order: 3; }
  .hx-map-grid > :nth-child(6) { order: 2; }
  .hx-map-grid > :nth-child(7) { order: 1; }
  .hx-map-grid .hx-arrow:not(.both) svg { transform: rotate(-90deg); }
}

/* ── Chart: the life of a draft ───────────────────────────────────────────────────────── */
.hx-flow-fig { max-width: 820px; margin: 0 auto 20px; }
.hx-flow-fig figcaption { margin-bottom: 14px; font-size: 13px; color: var(--hx-text-3); }
.hx-flow-fig figcaption b { color: var(--hx-text-2); }
.hx-flow { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.hx-flow > li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.hx-flow > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font: 800 14px/1 var(--font-numeric); color: var(--hx-text); background: var(--hx-surface); box-shadow: inset 0 0 0 1.5px var(--hx-anth); }
.hx-flow > li::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; border-left: 2px solid var(--hx-line); }
.hx-flow > li:last-child::after { display: none; }
.hx-flow > li > b { display: block; padding-top: 6px; font: 800 16px/1.35 var(--font-display); color: var(--hx-text); }
.hx-flow > li > span { display: block; font-size: 14px; color: var(--hx-text-2); }
.hx-flow > li.ours::before { box-shadow: inset 0 0 0 1.5px var(--hx-ours); }
.hx-flow > li.gate::before { background: var(--hx-gate-fill); box-shadow: inset 0 0 0 2px var(--hx-gate-edge); color: var(--hx-gate); }
.hx-flow > li.gate > b { color: var(--hx-gate); }
.hx-flow .ends ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-flow .ends ul li { padding: 12px 14px; border-radius: 10px; background: var(--hx-surface); box-shadow: inset 0 0 0 1px var(--hx-line); }
.hx-flow .ends ul li.ok { box-shadow: inset 0 0 0 1.5px var(--hx-ours); }
.hx-flow .ends b { display: block; font: 800 15px/1.3 var(--font-display); color: var(--hx-text); }
.hx-flow .ends span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--hx-text-2); }
.hx-center { text-align: center; }
@media (max-width: 760px) { .hx-flow .ends ul { grid-template-columns: 1fr; } }

/* ── Your data ────────────────────────────────────────────────────────────────────────── */
.hx-bullets { max-width: 860px; margin: 0 auto 32px; padding: 0; list-style: none; }
.hx-bullets li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--hx-line); font-size: 15.5px; line-height: 1.6; color: var(--hx-text-2); }
.hx-bullets li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 2px; background: var(--hx-ours); }
.hx-bullets a { color: var(--hx-text); text-underline-offset: 3px; }
.hx-data { max-width: 1040px; margin: 0 auto; }
.hx-data figcaption { margin-bottom: 12px; font-size: 13px; color: var(--hx-text-3); }
.hx-data figcaption b { color: var(--hx-text-2); }
.hx-data-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-data-col { border-radius: 12px; padding: 16px; background: var(--hx-surface); }
.hx-data-col.ours { box-shadow: inset 0 0 0 1.5px var(--hx-ours); }
.hx-data-col.anth { box-shadow: inset 0 0 0 1.5px var(--hx-anth); }
.hx-data-col.tcd { box-shadow: inset 0 0 0 1px var(--hx-line); }
.hx-data-col h3 { margin: 0 0 10px !important; font: 800 12px/1.35 var(--font-body) !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hx-text); }
.hx-data-col ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.6; color: var(--hx-text-2); }
.hx-none { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; border: 1.5px dashed var(--hx-gate-edge); font-size: 13.5px; font-weight: 700; color: var(--hx-text); }
.hx-none span { color: var(--hx-gate); margin-right: 4px; }
@media (max-width: 860px) { .hx-data-grid { grid-template-columns: 1fr; } }

/* ── Early access ─────────────────────────────────────────────────────────────────────── */
.hx-cta { max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 48px); border-radius: 18px; text-align: center;
  background: var(--hx-surface); box-shadow: inset 0 0 0 1px var(--hx-line); }
.hx-cta h2 { margin: 6px 0 12px; font: 800 clamp(28px, 3.4vw, 42px)/1.08 var(--font-display); letter-spacing: -0.03em; color: var(--hx-text); }
.hx-cta p { margin: 0 auto 22px; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--hx-text-2); }
.hx-cta .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hx-legal { margin-top: 18px; }
.hx-legal + .hx-legal { margin-top: 6px; }
.hx-legal { max-width: 860px; margin: 18px auto 0; font-size: 13px; line-height: 1.6; color: var(--hx-text-3); text-align: center; }
@media (min-width: 1000px) { .hx-parts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Visible focus on every link and CTA on this page, whatever the site defaults do. */
main a:focus-visible, main button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .hx-hero *, .hx-map * { transition: none !important; animation: none !important; } }
