:root {
  color-scheme: dark;
  --background: #080f18;
  --panel: #0d1723;
  --surface: #111e2b;
  --line: #263547;
  --text: #eef3f9;
  --muted: #a0b0c3;
  --dim: #8295aa;
  --accent: #ffad66;
  --green: #78dcb4;
  --red: #ff9a9d;
  --blue: #96c2f6;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 300px; background: var(--background); color: var(--text); font: 1rem/1.55 var(--sans); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: #ffd1a6; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.container, .header-inner { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 5; top: 10px; left: 10px; padding: 8px 12px; background: var(--panel); }
.site-header { position: sticky; top: 0; z-index: 3; background: #0a121c; border-bottom: 1px solid #202d3c; }
.header-inner { min-height: 67px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; text-decoration: none; color: var(--text); font-size: 1.17rem; font-weight: 700; letter-spacing: -.035em; }
.brand > span:last-child > span { color: var(--accent); }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #6b492e; background: #2a211d; color: var(--accent); border-radius: 8px; flex: none; }
.brand-mark i { display: block; position: relative; width: 16px; height: 13px; border: 2px solid currentColor; border-top-width: 0; border-bottom-width: 0; border-radius: 2px; transform: rotate(-33deg); }
.brand-mark i::before { content: ""; position: absolute; inset: 4px -1px auto; border-top: 2px solid currentColor; }
.brand-mark i::after { content: ""; position: absolute; width: 4px; height: 5px; border: 1px solid currentColor; background: #2a211d; left: 4px; top: 2px; }
.header-inner nav { display: flex; gap: 8px; align-items: center; }
.header-inner nav a, .header-end, .footer-inner a:not(.brand) { color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 500; }
.header-inner nav a { padding: 8px 13px; border-radius: 7px; }
.header-inner nav a:hover, .header-inner nav a[aria-current], .header-end:hover, .footer-inner a:hover { color: var(--text); }
.header-inner nav a[aria-current] { background: #182332; }
.header-end { justify-self: end; display: flex; align-items: center; gap: 7px; }
.deployment-note { width: min(1200px, calc(100% - 30px)); margin: 12px auto -15px; padding: 7px 10px; background: #142131; border: 1px solid #33465c; border-radius: 7px; color: var(--muted); font-size: .85rem; }
.deployment-note strong { color: var(--blue); margin-right: 6px; }
.icon-help { display: inline-grid; place-content: center; width: 17px; height: 17px; border: 1px solid #64768c; border-radius: 50%; font: .73rem var(--mono); }
.hero { min-height: 348px; border: 1px solid #29384a; border-radius: 15px; margin: 34px 0 34px; isolation: isolate; position: relative; overflow: hidden; background: #0c1825; }
.hero-image { position: absolute; z-index: -2; inset: 0 0 0 32%; background: #07121e url("/assets/caliper.webp") 55% 52% / cover no-repeat; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0c1825 0%, #0c1825aa 13%, transparent 46%), linear-gradient(0deg, #0c182565, transparent 47%); }
.hero-rule { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(#54779519 1px, transparent 1px), linear-gradient(90deg, #54779519 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(105deg, #000, #0004 47%, transparent 61%); }
.hero-content { padding: 35px 42px 38px; position: relative; }
.overline { display: flex; gap: 10px; align-items: center; color: var(--accent); font: 600 .75rem/1.2 var(--mono); letter-spacing: .17em; }
.overline > span { display: block; width: 18px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(3.25rem, 6vw, 5.05rem); line-height: .99; letter-spacing: -.062em; font-weight: 720; margin: 15px 0 17px; }
.hero h1 span { color: var(--accent); }
.hero p { max-width: 415px; color: #b6c5d6; font-size: 1.04rem; line-height: 1.56; }
.hero-link { display: inline-flex; gap: 9px; align-items: center; margin-top: 19px; padding: 8px 12px; border: 1px solid #40546b; border-radius: 7px; color: var(--text); background: #101d2bcc; font-size: .875rem; font-weight: 600; text-decoration: none; }
.hero-link:hover { border-color: var(--accent); color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; column-gap: 9px; }
.hero-primary { background: var(--accent); border-color: var(--accent); color: #20150e; }
.hero-primary .icon-terminal { color: #20150e; }
.hero-primary:hover { color: #20150e; background: #ffc494; }
.icon-terminal { color: var(--accent); font: 600 1rem var(--mono); }
.section-heading { display: flex; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.section-heading h2 { font-size: clamp(1.55rem, 2.4vw, 1.95rem); letter-spacing: -.036em; line-height: 1.2; }
.section-heading p { color: var(--muted); margin-top: 5px; }
.local-state { white-space: nowrap; color: var(--green); display: flex; gap: 8px; align-items: center; font-size: .875rem; }
.local-state span, .registry-source span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px #78dcb41a; }
.protocol-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; }
.protocol-picker button { display: flex; gap: 12px; align-items: center; padding: 10px 14px; text-align: left; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--panel); min-height: 61px; }
.protocol-picker button:hover { border-color: #667d97; background: #142131; }
.protocol-picker button[aria-pressed="true"] { border-color: #a77751; background: #211c1a; box-shadow: inset 0 0 0 1px #ffad6617; }
.protocol-picker b, .protocol-picker small { display: block; line-height: 1.25; }
.protocol-picker b { font-size: .94rem; }
.protocol-picker small { color: var(--muted); margin-top: 3px; font-size: .82rem; }
.protocol-icon { width: 33px; height: 33px; flex: none; display: grid; place-items: center; border: 1px solid #33465a; border-radius: 7px; color: #a8c9f5; background: #172639; font-size: 1.16rem; line-height: 1; }
.a2a-icon { color: #97ddcc; background: #142928; border-color: #2d4b48; }
.x402-icon { color: #c1afff; background: #252142; border-color: #423869; }
button[aria-pressed="true"] .protocol-icon { color: var(--accent); background: #34241a; border-color: #704e34; }
.bench-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; min-width: 0; }
.evidence-panel, .report-panel { display: flex; flex-direction: column; }
.panel-heading { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; min-height: 59px; gap: 10px; border-bottom: 1px solid var(--line); }
.panel-title { display: flex; gap: 9px; align-items: center; min-width: 0; }
.evidence-toolbar { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
.panel-title h3, .cost-control-heading h3, .automation-panel h3, .method-grid h3 { font-size: 1rem; font-weight: 650; }
.pane-icon { width: 28px; height: 26px; display: grid; place-content: center; border: 1px solid #35465a; border-radius: 5px; color: #a5b7cd; background: #142131; font: .71rem var(--mono); flex: none; }
.report-icon { font: .95rem var(--sans); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-align: center; border: 1px solid #3b4b5e; border-radius: 7px; color: var(--text); background: #142131; padding: 7px 11px; min-height: 35px; font-size: .875rem; font-weight: 600; line-height: 1.3; }
.button:not(:disabled):hover { background: #1c3043; border-color: #678099; }
.button-small { min-height: 31px; padding: 5px 9px; }
.button-primary { background: var(--accent); border-color: var(--accent); color: #1a120d; padding-inline: 15px; font-weight: 700; }
.button-primary:not(:disabled):hover { background: #ffc494; border-color: #ffc494; }
.button-flat { background: transparent; border-color: transparent; color: #bdcadd; }
.evidence-body { padding: 13px 15px 0; }
.editor { border: 1px solid #293a4d; border-radius: 8px; overflow: hidden; background: #08121d; }
.editor-bar { height: 38px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #293a4d; background: #111c2a; font: .78rem var(--mono); }
.editor-name { color: #b9cce2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#capture { display: block; width: 100%; min-height: 207px; height: 207px; resize: vertical; background: #09131f; color: #bad9fb; border: 0; padding: 10px 12px; outline-offset: -2px; font: .86rem/1.62 var(--mono); tab-size: 2; }
.tag { display: inline-block; padding: 3px 6px; border-radius: 4px; border: 1px solid #425277; background: #202844; color: #c0bbec; font: 600 .67rem/1.25 var(--mono); letter-spacing: .06em; white-space: nowrap; }
.report-tag { background: #182c2b; color: #9ce4c5; border-color: #31534c; }
.report-tag[data-tone="error"] { background: #302129; color: var(--red); border-color: #653f4a; }
.report-tag[data-tone="muted"] { background: #192635; color: #acbdd1; border-color: #3a4b61; }
.caption { color: var(--muted); font-size: .83rem; line-height: 1.5; }
.evidence-body > .caption { margin-top: 8px; }
.error-text { color: var(--red); font-size: .87rem; margin-top: 6px; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding: 12px 15px 13px; }
.report-actions { border-top: 1px solid var(--line); }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 13px 15px 11px; }
.metric-grid > div { border: 1px solid #293a4c; border-radius: 7px; padding: 7px 9px 8px; background: #101d2b; }
.metric-grid span { display: block; font: 600 clamp(1.05rem, 2.5vw, 1.65rem)/1.24 var(--mono); letter-spacing: -.045em; overflow-wrap: anywhere; }
.metric-grid > div:first-child span { color: var(--accent); }
.metric-grid small { display: block; color: var(--muted); font-size: .79rem; margin-top: 3px; }
.report-tabs { display: flex; padding-inline: 15px; gap: 13px; border-bottom: 1px solid var(--line); }
.report-tabs button { color: var(--muted); font-size: .875rem; font-weight: 600; padding: 9px 2px 7px; border: 0; border-bottom: 2px solid transparent; background: none; }
.report-tabs button:hover, .report-tabs button[aria-pressed="true"] { color: var(--text); }
.report-tabs button[aria-pressed="true"] { border-color: var(--accent); }
.report-content { min-height: 141px; padding: 8px 15px 11px; max-height: 340px; overflow-y: auto; }
.report-content p + p { margin-top: 8px; }
.report-content > .caption { margin-block: 6px; }
.finding-list, .breakdown-list, .registry-list { margin: 0; padding: 0; list-style: none; }
.finding-list li { display: flex; gap: 9px; padding: 8px 0; align-items: flex-start; }
.finding-list li + li, .breakdown-list li + li { border-top: 1px solid #243344; }
.finding-icon { flex: none; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; font: bold .78rem var(--mono); border: 1px solid #466079; color: var(--blue); background: #1a2b41; margin-top: 1px; }
.finding-icon.pass { color: var(--green); background: #19322e; border-color: #2c5650; }
.finding-icon.warning { color: var(--accent); background: #35271c; border-color: #654629; }
.finding-icon.error { color: var(--red); background: #362229; border-color: #633d48; }
.finding-copy, .breakdown-copy { min-width: 0; overflow-wrap: anywhere; }
.finding-copy strong, .breakdown-copy strong { font-size: .875rem; font-weight: 650; display: block; line-height: 1.35; }
.finding-copy p, .breakdown-copy p { color: var(--muted); font-size: .82rem; line-height: 1.45; margin-top: 3px; }
.breakdown-list li { display: flex; justify-content: space-between; gap: 7px 14px; padding: 8px 0; }
.line-value { color: var(--accent); font: 600 .85rem var(--mono); overflow-wrap: anywhere; min-width: 0; text-align: right; }
.drift-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-block: 4px 6px; }
.section-block { margin-top: 34px; }
.cost-panel { display: grid; grid-template-columns: 1.6fr 1fr; }
.cost-controls, .cost-result { padding: 17px; }
.cost-controls { border-right: 1px solid var(--line); }
.cost-control-heading { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.form-grid label { font-size: .875rem; color: var(--muted); }
.form-grid input { display: block; width: 100%; margin: 4px 0 0; height: 39px; padding-inline: 8px; color: var(--text); font: .91rem var(--mono); background: #0a1320; border: 1px solid #36475a; border-radius: 5px; }
.advanced { margin: 11px 0 9px; }
.advanced summary { cursor: pointer; font-size: .875rem; color: var(--blue); width: fit-content; }
.advanced .form-grid { margin-top: 8px; }
.cost-result { display: grid; align-content: center; gap: 7px; background: #101c29; border-radius: 0 10px 10px 0; }
.cost-result > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 14px; font-size: .875rem; color: var(--muted); padding: 5px; }
.cost-result strong { color: var(--text); font: 600 1rem var(--mono); overflow-wrap: anywhere; }
.cost-result > .cost-accent { background: #2c241d; border: 1px solid #5f4935; border-radius: 6px; padding: 8px; color: #f6c798; }
.cost-accent strong { color: var(--accent); }
.registry-bar, .registry-footer { display: flex; justify-content: space-between; gap: 8px 18px; align-items: center; padding: 12px 16px; flex-wrap: wrap; }
.registry-bar { border-bottom: 1px solid var(--line); }
.registry-footer { border-top: 1px solid var(--line); }
.registry-source { display: flex; gap: 10px; align-items: center; font-size: .89rem; font-weight: 650; }
.registry-source span { color: var(--blue); box-shadow: none; }
#registry-state, .registry-footer a { color: var(--muted); font-size: .85rem; }
.registry-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 5px 14px; align-items: center; padding: 9px 16px; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.registry-list li + li { border-top: 1px solid #203043; }
.registry-list strong { font: 600 .85rem var(--mono); color: var(--text); }
.automation-panel { display: grid; grid-template-columns: 1fr 1.35fr; gap: 16px; padding: 17px; align-items: start; }
.automation-panel p { color: var(--muted); margin: 5px 0 9px; }
.automation-panel a { font-size: .875rem; }
.automation-links { display: flex; flex-wrap: wrap; gap: 7px 14px; }
.product-panel, .agent-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.product-copy, .product-price, .agent-panel > div { padding: 18px 20px; }
.product-copy h3, .agent-panel h3 { font-size: 1.04rem; }
.product-copy ul { margin: 8px 0 11px; padding-left: 20px; color: var(--muted); }
.product-copy li + li { margin-top: 3px; }
.product-copy a, .agent-commands a { font-size: .875rem; }
.product-price, .agent-commands { border-left: 1px solid var(--line); background: #101c29; border-radius: 0 10px 10px 0; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; margin-bottom: 9px; }
.price-line strong { color: var(--accent); font: 650 1.4rem/1.2 var(--mono); }
.price-line span { color: var(--muted); font-size: .875rem; }
.product-price > .caption { margin-top: 7px; }
.product-status { margin-top: 9px; border-top: 1px solid var(--line); padding-top: 8px; }
.product-status p { color: var(--muted); margin-bottom: 6px; font-size: .875rem; }
#download-kit { text-decoration: none; }
.agent-panel h3 + p { color: var(--muted); margin-top: 4px; }
.agent-commands pre { padding: 7px 9px; margin: 8px 0; background: #09131e; border: 1px solid var(--line); border-radius: 6px; white-space: pre-wrap; color: #bdd9fa; font: .85rem/1.6 var(--mono); }
.agent-commands button { margin-top: 8px; }
.agent-commands .caption { margin-top: 7px; }
.brief-list { list-style: none; padding: 0; margin: 6px 0; }
.brief-list li { padding: 4px 0; overflow-wrap: anywhere; font-size: .875rem; }
.brief-list strong { font-family: var(--mono); }
.brief-list span { color: var(--muted); margin-left: 7px; }
.code-sample { background: #09131e; border: 1px solid var(--line); border-radius: 7px; min-width: 0; padding: 11px; }
.code-sample pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: .83rem/1.55 var(--mono); color: #bcd7f7; }
.code-sample p { margin-bottom: 0; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.method-grid article { padding: 14px 16px; }
.method-grid p { margin-top: 4px; color: var(--muted); font-size: .93rem; }
.site-footer { margin-top: 42px; border-top: 1px solid var(--line); padding: 18px 0; }
.footer-inner, .footer-inner > div { display: flex; gap: 10px 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.no-script { color: var(--accent); padding: 15px; }

@media (max-width: 900px) {
  .container, .header-inner { width: calc(100% - 48px); }
  .hero { min-height: 324px; }
  .hero-content { padding-inline: 32px; }
}
@media (max-width: 695px) {
  html { scroll-padding-top: 104px; }
  .container, .header-inner { width: calc(100% - 30px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 5px 10px; padding: 9px 0 6px; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; gap: 4px; overflow-x: auto; }
  .header-inner nav a { padding: 5px 9px; }
  .header-end { grid-row: 1; grid-column: 2; }
  .hero { margin: 18px 0 25px; min-height: 315px; }
  .deployment-note { margin-bottom: -6px; }
  .hero-image { inset: 0 0 0 10%; opacity: .64; background-position: 60% 45%; }
  .hero-image::after { background: linear-gradient(90deg, #0c1825, #0c182588 62%, #0c182522); }
  .hero-content { padding: 26px 19px; }
  .hero h1 { font-size: clamp(2.9rem, 9vw, 3.85rem); }
  .hero p { max-width: 345px; }
  .bench-grid, .cost-panel, .automation-panel { grid-template-columns: 1fr; }
  .product-panel, .agent-panel { grid-template-columns: 1fr; }
  .product-price, .agent-commands { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
  .method-grid { grid-template-columns: 1fr; gap: 8px; }
  .cost-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .cost-result { border-radius: 0 0 10px 10px; }
  .bench-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .protocol-picker { gap: 6px; }
  .protocol-picker button { padding: 7px 6px; gap: 5px; min-height: 55px; }
  .protocol-icon { width: 24px; height: 26px; font-size: .95rem; }
  .protocol-picker small { font-size: .69rem; }
  .registry-list li { grid-template-columns: 1fr auto; }
  .registry-list li span:nth-child(2) { grid-row: 2; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
