/* Landing page. The hero "hoist" demo is the one loud element; everything else stays quiet. */

.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
/* Headline as a banner across the page, the proof (demo) full width under it */
.hero-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px clamp(28px, 5vw, 72px); align-items: end; }
.hero-copy h1 { grid-column: 1 / -1; }
.hero-actions { display: grid; gap: 12px; justify-items: start; }
.hero h1 {
  font-size: clamp(44px, 5.8vw, 96px); line-height: .94; letter-spacing: -.05em; font-weight: 760;
  font-variation-settings: "opsz" 96;
}
.hero-sub { font-size: clamp(18px, 1.5vw, 20.5px); line-height: 1.5; color: var(--ink-2); max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* the demo */
.hoist { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.hoist-meter { display: grid; gap: 8px; margin-bottom: 16px; }
.meter-row { display: grid; grid-template-columns: 56px 1fr 44px; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.meter-row b { font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); font-weight: 650; }
.meter { display: block; height: 10px; border-radius: 999px; background: var(--sunk); position: relative; overflow: hidden; }
.meter::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--line-2); transition: width 1s cubic-bezier(.2,.7,.2,1); }
.meter.jd::after { background: var(--mark); }
.hoist-panes { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.pane { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--code-bg); overflow: hidden; }
.pane-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.pane-head b { color: var(--ink); font-weight: 650; }
.pane pre, .specimen pre { margin: 0; padding: 12px; font-size: 12px; line-height: 1.7; overflow-x: auto; white-space: pre; }
.pane-json pre { color: var(--ink-2); }
.hk { color: var(--waste); border-radius: 2px; transition: background-color .25s ease, color .25s ease; }
.hoist.struck .hk { background: var(--waste-soft); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.hl { display: inline-block; transition: opacity .3s ease, transform .3s ease; }
.hdr { background: var(--mark-soft); color: var(--mark-ink); border-radius: 3px; box-shadow: 0 0 0 3px var(--mark-soft); font-weight: 600; }
.hoist.armed .hl { opacity: 0; transform: translateX(-6px); }
.hoist.armed .meter.jd::after { width: 100%; }
.hoist figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.replay { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font: 500 13.5px var(--sans); cursor: pointer; flex: none; }
.replay:hover { color: var(--ink); border-color: var(--line-2); }

.hoist-panes { grid-template-columns: 1.5fr 1fr; }
.pane pre { font-size: 12.5px; }
@media (max-width: 980px) {
  .hero-copy { grid-template-columns: 1fr; }
  .hero-actions { justify-items: stretch; }
  .hero-cta .btn { flex: 1; }
  .hero-sub { max-width: 46ch; }
}
@media (max-width: 640px) {
  .hoist { padding: 12px; }
  .hoist-panes { grid-template-columns: 1fr; }
  .install { width: 100%; flex-wrap: wrap; }
  .install-tabs { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .install-tabs button { flex: 1; padding: 10px 0; }
  .install code { flex: 1; }
}

/* sections */
.section { padding: clamp(64px, 9vw, 120px) 0 0; }
.section h2, .band h2, .closer h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.02; letter-spacing: -.035em; font-weight: 720; }
.lede { margin-top: 16px; font-size: 19px; color: var(--ink-2); max-width: 44ch; }
.text-link { display: inline-block; margin-top: 22px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--cobalt-soft); padding-bottom: 2px; }
.text-link:hover { border-bottom-color: var(--cobalt); text-decoration: none; }

/* proof band */
.band { margin-top: clamp(24px, 4vw, 48px); padding: clamp(48px, 7vw, 88px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.proof-copy p { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 38ch; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 108px 1fr 82px; gap: 14px; align-items: center; font-size: 15px; color: var(--ink-2); }
.bar i { display: block; height: 26px; border-radius: 0 6px 6px 0; background: var(--sunk); position: relative; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--line-2); border-radius: inherit; }
.bar b { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; color: var(--ink); }
.bar.jd span { color: var(--ink); font-weight: 650; }
.bar.jd i::after { background: var(--mark); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.facts div { display: grid; gap: 4px; border-top: 2px solid var(--ink); padding-top: 14px; }
.facts b { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.03em; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.facts span { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) {
  .proof-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .bar { grid-template-columns: 84px 1fr 70px; gap: 10px; font-size: 14px; } }

/* specimen */
.spec-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.spec-notes { margin: 28px 0 0; display: grid; gap: 12px; }
.spec-notes div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: baseline; }
.spec-notes dt code { background: var(--mark-soft); color: var(--mark-ink); }
.spec-notes dd { margin: 0; color: var(--ink-2); }
.specimen { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--code-bg); overflow: hidden; box-shadow: var(--shadow); }
.specimen pre { font-size: 15px; line-height: 1.85; padding: 20px 22px; }
.sp-h { font-weight: 600; }
.sp-a { background: var(--mark-soft); color: var(--mark-ink); border-radius: 3px; box-shadow: 0 0 0 2px var(--mark-soft); }
.spec-foot { padding: 12px 22px 16px; color: var(--ink-3); font-size: 14.5px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .spec-grid { grid-template-columns: 1fr; } .specimen pre { font-size: 13.5px; } }

/* compute */
.compute-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ticks, .dashes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li, .dashes li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.dashes li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 12px; height: 2px; background: var(--ink-3); }
.flow { display: grid; gap: 10px; }
.flow-step { display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.flow-step .who { color: var(--ink-3); font-size: 14.5px; }
.flow-step p { font-size: 17px; }
.flow-step .expr { background: none; padding: 0; font-size: 14.5px; color: var(--cobalt); }
.flow-step.done { border-color: var(--mark); box-shadow: 0 0 0 3px var(--mark-soft); }
.flow-step .answer { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.score { margin-top: 10px; display: grid; gap: 8px; }
.score-row { display: grid; grid-template-columns: 190px 1fr 64px; gap: 12px; align-items: center; font-size: 14.5px; color: var(--ink-2); }
.score-row i { display: block; height: 10px; border-radius: 999px; background: var(--sunk); position: relative; }
.score-row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--line-2); }
.score-row.jd i::after { background: var(--mark); }
.score-row b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.score-note { font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 900px) { .compute-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .flow-step { grid-template-columns: 1fr; gap: 4px; } .score-row { grid-template-columns: 1fr 52px; } .score-row i { grid-column: 1 / -1; grid-row: 2; } }

/* code */
.code-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.stack-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack-list li { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: 14.5px; color: var(--ink-2); background: var(--surface); }
@media (max-width: 900px) { .code-grid { grid-template-columns: 1fr; } }

/* trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: 36px; }
.trust-grid > div { border-top: 1px solid var(--line-2); padding-top: 18px; }
.trust-grid h3 { font-size: 21px; letter-spacing: -.015em; font-weight: 650; }
.trust-grid p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 820px) { .trust-grid { grid-template-columns: 1fr; } }

/* fit */
.fit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.fit-grid h3 { font-size: 19px; font-weight: 650; }
.fit-grid .ticks, .fit-grid .dashes { margin-top: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .fit-grid { grid-template-columns: 1fr; } }

/* closer */
.closer { margin-top: clamp(72px, 10vw, 128px); }
.closer-inner { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: clamp(36px, 6vw, 72px); display: grid; justify-items: start; gap: 16px; }
.closer h2 { color: var(--paper); }
.closer p { color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: 18px; }
.closer .btn { margin-top: 8px; }
.closer + .footer { margin-top: 64px; }

/* savings calculator */
.calc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.calc label { display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.calc input { height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: 600 18px var(--sans); padding: 0 12px; font-variant-numeric: tabular-nums; width: 100%; }
.calc input:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 0; border-color: transparent; }
.calc-out { grid-column: 1 / -1; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.calc-out span { color: var(--ink-2); font-size: 15px; }
.calc-out b { font-size: clamp(40px, 5vw, 60px); letter-spacing: -.04em; line-height: 1.05; font-weight: 750; font-variant-numeric: tabular-nums; }
.calc-out b::after { content: ""; display: block; height: 6px; width: 72px; background: var(--mark); border-radius: 3px; margin-top: 8px; }
.calc-out small { color: var(--ink-3); font-size: 14.5px; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .calc { grid-template-columns: 1fr; } }

/* 404 */
.lost { padding: clamp(48px, 10vw, 120px) var(--gutter) 40px; display: grid; gap: 18px; justify-items: start; max-width: 760px; }
.lost .specimen { width: 100%; max-width: 460px; margin-bottom: 18px; }
.lost h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -.05em; line-height: .95; font-weight: 760; }
.lost .lede { margin-top: 0; }

/* proof band: independent check */
.proof-check { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); max-width: 40ch; }
.proof-check b { color: var(--ink); }

/* agents / MCP */
.agents-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.mcp-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--code-bg); box-shadow: var(--shadow); overflow: hidden; }
.mcp-card pre { margin: 0; padding: 16px 20px; font: 13px/1.65 var(--mono); overflow-x: auto; border-bottom: 1px solid var(--line); }
.mcp-tools { list-style: none; margin: 0; padding: 8px 20px 16px; display: grid; gap: 0; }
.mcp-tools li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.mcp-tools li:last-child { border-bottom: 0; }
.mcp-tools code { background: var(--mark-soft); color: var(--mark-ink); }
.mcp-tools span { color: var(--ink-2); margin-left: auto; }
@media (max-width: 900px) { .agents-grid { grid-template-columns: 1fr; } .mcp-tools span { margin-left: 0; width: 100%; } }

/* language matrix */
.matrix { margin-top: 24px; border-collapse: collapse; font-size: 15px; width: 100%; max-width: 460px; }
.matrix th, .matrix td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix thead th { font-weight: 500; color: var(--ink-3); font-size: 13.5px; }
.matrix tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.matrix td { color: var(--ok); font-weight: 700; font-size: 17px; }
.matrix-note { margin-top: 12px; font-size: 14.5px; color: var(--ink-3); max-width: 46ch; }

/* editable hero demo */
.hoist-edit { display: block; width: 100%; min-height: 168px; border: 0; resize: vertical; padding: 12px; background: var(--code-bg); color: var(--ink); font: 12.5px/1.7 var(--mono); white-space: pre; overflow: auto; outline: none; }
.hoist-edit:focus-visible { box-shadow: inset 0 0 0 2px var(--cobalt); }
.hoist-edit[hidden] { display: none; }
.hoist-actions { display: inline-flex; gap: 6px; flex: none; }
.replay[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
