/* The AI Parity Trap. Builds on styles.css; only adds this litepaper's components. */

:root { --neon-cyan: #5FD3F3; --neon-magenta: #E25BD0; --amber: #A86400; --red: #BE3640; --green: #0B7F73; }

.caveat { color: var(--muted); font-size: 0.92rem; font-style: italic; }
.prose .caveat { margin-top: 0.4rem; }

/* capability vs advantage */
.define-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.define-vs { align-self: center; font: 800 2.4rem/1 var(--sans); color: var(--blue); }
.define-strong { border-color: var(--blue); box-shadow: inset 0 3px 0 var(--blue); }
@media (max-width: 760px) { .define-grid { grid-template-columns: 1fr; } .define-vs { justify-self: center; } }

/* animated bars */
.bars { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; display: grid; gap: 0.8rem; }
.bars-title { margin: 0; font: 500 0.72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(6rem, 1.2fr) 3.6rem; gap: 0.9rem; align-items: center; }
.bar-label { font-size: 0.95rem; color: var(--text); }
.bar-track { height: 10px; background: var(--line-soft); border-radius: 5px; overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--blue), #3D8FD9); transition: width 1100ms cubic-bezier(.2,.8,.2,1); }
.bars.in .bar-track i { width: var(--v); }
.bar-row:nth-of-type(2) i { transition-delay: 120ms; } .bar-row:nth-of-type(3) i { transition-delay: 240ms; } .bar-row:nth-of-type(4) i { transition-delay: 360ms; }
.bar-val { font: 800 1.15rem/1 var(--sans); color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
.bars-red .bar-track i { background: linear-gradient(90deg, #E06B73, var(--red)); }
.bar-row.is-low .bar-track i { background: #9AA8BA; }
.bars-source { margin: 0.3rem 0 0; font: 500 0.7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.bars-source a { color: var(--muted); }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr 3.4rem; } .bar-label { grid-column: 1 / -1; } }

/* parity cycle */
.cycle { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.cycle-controls, .hm-controls { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.cycle-controls button, .hm-controls button, .ab-controls button {
  font: 600 0.85rem/1 var(--sans); padding: 0.65rem 0.9rem; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
}
.cycle-controls button[aria-pressed="true"], .hm-controls button[aria-pressed="true"], .ab-controls button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.cycle-controls .cycle-evidence { border-color: var(--amber); color: var(--amber); }
.cycle-controls .cycle-evidence[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #fff; }
.cycle-stage { overflow-x: auto; }
#cycle-svg { display: block; width: 100%; min-width: 620px; height: auto; }
#cycle-svg .axis { stroke: var(--line); }
#cycle-svg .axis-label { font: 500 10.5px var(--mono); letter-spacing: 0.1em; fill: var(--muted); text-transform: uppercase; }
#cycle-svg .band { fill: rgba(11,92,173,0.06); transition: transform 900ms cubic-bezier(.3,.8,.3,1); }
#cycle-svg .brand-dot { transition: transform 900ms cubic-bezier(.3,.8,.3,1); }
#cycle-svg .brand-dot circle { fill: var(--blue); stroke: #fff; stroke-width: 2; }
#cycle-svg .brand-dot.is-b circle { fill: var(--amber); }
#cycle-svg .brand-dot text { font: 600 10px var(--sans); fill: var(--muted); }
#cycle-svg .ai-badge { font: 600 9px var(--mono); fill: var(--blue); opacity: 0; transition: opacity 400ms ease; }
#cycle-svg.show-ai .ai-badge { opacity: 0.8; }
#cycle-svg .stage-note { font: 700 14px var(--sans); fill: var(--navy); }
.cycle-copy { list-style: none; padding: 0; margin: 1rem 0 0.4rem; }
.cycle.is-enhanced .cycle-copy li { display: none; }
.cycle.is-enhanced .cycle-copy li.is-active { display: block; }
.cycle-copy li { margin-bottom: 0.4rem; max-width: 48rem; }
.cycle figcaption, .hivemind figcaption, .ab figcaption { font: 500 0.7rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { #cycle-svg .brand-dot, #cycle-svg .band, .bar-track i { transition: none; } }

/* hivemind */
.hivemind { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
#hm-svg { display: block; width: 100%; height: auto; }
#hm-svg .hm-dot { transition: transform 900ms cubic-bezier(.3,.8,.3,1), opacity 500ms ease; }
#hm-svg .hm-link { stroke: var(--blue); stroke-opacity: 0.18; transition: opacity 500ms ease; }
#hm-svg .hm-ring { fill: none; stroke: var(--line); stroke-dasharray: 3 4; }
#hm-svg .hm-label { font: 600 12px var(--sans); fill: var(--navy); }

/* pipeline */
.pipeline { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.pipeline li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: 0.35rem; opacity: 0.25; transform: translateY(8px); transition: opacity 500ms ease, transform 500ms ease; }
.pipeline.in li { opacity: 1; transform: none; }
.pipeline.in li:nth-child(2) { transition-delay: 180ms; } .pipeline.in li:nth-child(3) { transition-delay: 360ms; } .pipeline.in li:nth-child(4) { transition-delay: 540ms; }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; right: -0.85rem; top: 50%; width: 0.7rem; height: 2px; background: var(--blue); }
.pipeline strong { color: var(--navy); font-size: 1.05rem; }
.pipeline span:last-child { color: var(--muted); font-size: 0.95rem; }
.pipeline li:last-child { border-color: var(--red); }
@media (max-width: 860px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pipeline li::after { display: none; } }
@media (max-width: 480px) { .pipeline { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pipeline li { opacity: 1; transform: none; transition: none; } }

.engine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .engine-grid { grid-template-columns: 1fr; } }
.engine-grid .card > p:not(.card-num) { color: var(--text); }

.stat-hero { justify-content: center; }
.stat-hero .stat-figure { font-size: clamp(3rem, 2rem + 3vw, 4.4rem); }

/* brand A vs B */
.ab { margin: 0 0 1rem; }
.ab-controls { margin-bottom: 1rem; }
.ab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .ab-grid { grid-template-columns: 1fr; } }
.ab-card ol { margin: 0.8rem 0 1rem; padding-left: 1.2rem; color: var(--text); }
.ab-card li { margin-bottom: 0.5rem; padding: 0.2rem 0.4rem; border-radius: 3px; transition: background-color 300ms ease, color 300ms ease; }
.ab-sum { font-weight: 700; color: var(--navy) !important; margin: 0; }
.ab-strong { border-color: var(--blue); box-shadow: inset 0 3px 0 var(--blue); }
.ab.show-copy .copyable { background: #FDF1F1; color: #7A1F26; }
.ab.show-copy .copyable::after { content: "  · reproducible"; font: 500 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); }

.adds { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: add; }
.adds li { counter-increment: add; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: grid; gap: 0.3rem; }
.adds li::before { content: counter(add, decimal-leading-zero); font: 500 0.75rem/1 var(--mono); color: var(--blue); }
.adds strong { color: var(--navy); font-size: 1.05rem; }
.adds span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .adds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .adds { grid-template-columns: 1fr; } }

.pull { font-weight: 800; color: var(--navy); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.15; margin: 2.6rem 0 1rem; max-width: 40rem; }
.pull-sm { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }

/* parity check */
.pc-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .pc-grid { grid-template-columns: 1fr; } .pc-result { order: -1; } }
.pc-head, .pc-row { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem 7.5rem; gap: 0.6rem; align-items: center; }
.pc-head { font: 500 0.68rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding-bottom: 0.6rem; border-bottom: 1px solid var(--line-soft); }
.pc-head span:nth-child(2) { color: var(--red); text-align: center; } .pc-head span:nth-child(3) { color: var(--green); text-align: center; }
.pc-row { padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); }
.pc-row:last-child { border-bottom: 0; }
.pc-area { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.pc-area small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }
.pc-opt { display: block; cursor: pointer; }
.pc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pc-opt span { display: block; text-align: center; padding: 0.55rem 0.4rem; border: 1px solid var(--line); border-radius: 4px; font: 600 0.8rem/1.2 var(--sans); color: var(--muted); transition: all 160ms ease; }
.pc-opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.pc-opt.commodity input:checked + span { background: #FDF1F1; border-color: #E9A5AA; color: var(--red); }
.pc-opt.defensible input:checked + span { background: #E7F5F2; border-color: #8CCFC3; color: var(--green); }
@media (max-width: 520px) { .pc-head, .pc-row { grid-template-columns: 1fr 1fr; } .pc-area { grid-column: 1 / -1; } .pc-head span:first-child { display: none; } }
.pc-result { position: sticky; top: calc(var(--header-h) + 1rem); }
.card > p.pc-figure { font: 800 3rem/1 var(--sans); color: var(--navy); letter-spacing: -0.04em; margin: 0 0 0.8rem; }
.card > p.pc-figure small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pc-meter { height: 10px; border-radius: 5px; background: var(--line-soft); overflow: hidden; margin-bottom: 1rem; }
.pc-meter i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 5px; transition: width 500ms ease, background-color 500ms ease; }
.pc-verdict { font-weight: 700; color: var(--navy) !important; }
#pc-moves ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--text); font-size: 0.95rem; }
#pc-moves li { margin-bottom: 0.4rem; }
#pc-moves .card-num { margin: 1rem 0 0.4rem; }

/* operating model flow */
.steps-flow .step { opacity: 0.3; transition: opacity 500ms ease; }
.steps-flow.in .step { opacity: 1; }
.steps-flow.in .step:nth-child(2) { transition-delay: 200ms; } .steps-flow.in .step:nth-child(3) { transition-delay: 400ms; } .steps-flow.in .step:nth-child(4) { transition-delay: 600ms; }
@media (prefers-reduced-motion: reduce) { .steps-flow .step { opacity: 1; transition: none; } }

/* pilot */
.pilot { position: relative; margin: 1.4rem 0 1rem; }
.pilot-track { height: 4px; background: var(--line-soft); border-radius: 2px; overflow: hidden; margin-bottom: 1rem; }
.pilot-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--neon-cyan)); transition: width 1800ms cubic-bezier(.3,.8,.3,1); }
.pilot.in .pilot-track i { width: 100%; }
.pilot-phases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 860px) { .pilot-phases { grid-template-columns: 1fr; } }
.lanes p { display: flex; gap: 0.6rem; align-items: baseline; margin-bottom: 0.5rem; color: var(--text) !important; }
.lane { flex: none; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font: 700 0.75rem/1 var(--mono); color: #fff; }
.lane-a { background: #9AA8BA; } .lane-b { background: var(--blue); }

/* closing band */
.closing { padding-block: clamp(3.5rem, 8vw, 6rem); }
.closing-line { margin: 0; color: #fff; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; font-size: clamp(1.7rem, 1.2rem + 2.2vw, 3rem); max-width: 52rem; }
.closing-line span { color: var(--neon-cyan); }

.caveat-list { margin: 0; padding-left: 1.2rem; max-width: 46rem; }
.caveat-list li { margin-bottom: 0.5rem; }
