:root {
  --bg: #0b0e12;
  --surface: #10141a;
  --surface-2: #141922;
  --border: #222a34;
  --fg: #e7ecf1;
  --muted: #94a1ad;
  --faint: #5c6873;
  --accent: #4cc38a;
  --accent-ink: #07130d;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
code, pre, .mono { font-family: var(--mono); }
.wrap { max-width: 1060px; width: 100%; margin: 0 auto; padding: 0 24px; min-width: 0; }

header {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,14,18,.86);
  backdrop-filter: blur(8px);
  width: 100%;
}
.nav {
  display: flex; align-items: flex-start; gap: 28px;
  min-height: 60px;
  width: 100%;
  min-width: 0;
  padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg); font-weight: 600; letter-spacing: -0.01em;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  font-family: var(--mono); color: var(--accent); font-weight: 700;
  line-height: 1;
  font-size: 1.05em;
}
.nav-links {
  display: flex; gap: 22px; margin-left: auto; font-size: .92rem;
  flex-wrap: wrap; min-width: 0; flex: 1 1 auto; justify-content: flex-end;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-links a.active { color: var(--fg); }

.hero { padding: 72px 0 64px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px; align-items: center;
}
.hero-grid > * { min-width: 0; }
h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 700;
  text-wrap: balance;
}
.hero .sub {
  color: var(--muted); font-size: 1.12rem; line-height: 1.55;
  margin: 18px 0 30px; max-width: 34em; text-wrap: pretty;
}
.hero .sub code { color: var(--fg); font-size: .95em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .95rem; font-weight: 600;
  padding: 10px 18px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #5cd49a; }
.btn-secondary { border-color: var(--border); color: var(--fg); }
.btn-secondary:hover { border-color: var(--faint); background: var(--surface); }

.compare {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 26px 26px 22px;
}
.compare .case {
  font-family: var(--mono); font-size: .8rem; color: var(--faint);
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
.compare .row { margin-bottom: 20px; }
.compare .row:last-of-type { margin-bottom: 14px; }
.compare .label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .85rem; margin-bottom: 8px;
}
.compare .label .name { color: var(--muted); }
.compare .label .val { font-family: var(--mono); color: var(--fg); }
.bar-track { height: 14px; border-radius: 4px; }
.bar {
  height: 100%; border-radius: 4px;
  transform-origin: left center;
  transition: transform 1s cubic-bezier(.16,1,.3,1);
}
.js .bar { transform: scaleX(0); }
.js .in .bar { transform: scaleX(1); }
.bar.raw {
  width: 100%;
  background: repeating-linear-gradient(
    -45deg, #333d49 0 6px, #2a323d 6px 12px);
  transition-delay: .1s;
}
.bar.ucp { width: 6.5%; min-width: 14px; background: var(--accent); transition-delay: .45s; }
.compare .note {
  font-size: .85rem; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 14px;
}
.compare .note strong { color: var(--fg); font-family: var(--mono); font-weight: 600; }

section { padding: 72px 0; border-top: 1px solid var(--border); }
h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px;
}
.section-sub { color: var(--muted); max-width: 62ch; margin-bottom: 34px; text-wrap: pretty; }
.section-sub code { color: var(--fg); font-size: .93em; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }

.tabs { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; max-width: 100%; }
.tablist { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab {
  appearance: none; background: none; border: none; cursor: pointer;
  font: 600 .9rem/1 var(--mono); color: var(--muted);
  padding: 14px 20px; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap;
  transition: color .15s ease;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.panel { padding: 22px 24px; }
.panel[hidden] { display: none; }
.panel .hint { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.cmd {
  position: relative;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 52px 14px 16px;
  font-size: .87rem; line-height: 1.65; overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.cmd code { display: block; white-space: pre; font-family: var(--mono); max-width: 100%; }
.cmd + .cmd { margin-top: 10px; }
.cmd .c { color: var(--faint); }
.copy {
  position: absolute; top: 8px; right: 8px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); border-radius: 6px; cursor: pointer;
  padding: 5px 8px; font: 500 .72rem/1 var(--mono);
  transition: color .15s ease, border-color .15s ease;
}
.copy:hover { color: var(--fg); border-color: var(--faint); }
.copy.done { color: var(--accent); border-color: var(--accent); }
.copy svg { width: 13px; height: 13px; }

.term {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #0d1117; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  max-width: 100%;
}
.term-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  font: 500 .75rem/1 var(--mono); color: var(--faint);
}
.term-body {
  padding: 18px 20px 20px; font-family: var(--mono);
  font-size: .86rem; line-height: 1.75; overflow-x: auto; white-space: pre;
}
.term-body .ln { display: block; }
.term-body .ok { color: var(--accent); }
.term-body .dim { color: var(--faint); }
.term-body .hl { color: var(--fg); }
.term-body .num { color: #9ecbff; }
@media (prefers-reduced-motion: no-preference) {
  .term.armed .ln { opacity: 0; animation: lineIn .3s ease forwards; }
  .term.armed .ln:nth-child(1)  { animation-delay: .1s; }
  .term.armed .ln:nth-child(2)  { animation-delay: .8s; }
  .term.armed .ln:nth-child(3)  { animation-delay: 1.25s; }
  .term.armed .ln:nth-child(4)  { animation-delay: 1.6s; }
  .term.armed .ln:nth-child(5)  { animation-delay: 1.85s; }
  .term.armed .ln:nth-child(6)  { animation-delay: 2.0s; }
  .term.armed .ln:nth-child(7)  { animation-delay: 2.12s; }
  .term.armed .ln:nth-child(8)  { animation-delay: 2.24s; }
  .term.armed .ln:nth-child(9)  { animation-delay: 2.36s; }
  .term.armed .ln:nth-child(10) { animation-delay: 2.48s; }
}
@keyframes lineIn { from { opacity: 0; } to { opacity: 1; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.two-col > * { min-width: 0; }
.col-note { font-size: .88rem; color: var(--muted); margin-top: 12px; max-width: 46ch; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.step {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 22px 24px;
}
.step h3 { font-size: 1rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.step .what { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.after-steps { margin-top: 22px; color: var(--muted); font-size: .95rem; max-width: 66ch; }
.after-steps code { color: var(--fg); font-size: .92em; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 11px 16px; vertical-align: top; }
thead th {
  font: 600 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em;
  color: var(--faint); border-bottom: 1px solid var(--border);
}
tbody td { border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
td.n, th.n { text-align: right; font-family: var(--mono); }
td .issue { font-family: var(--mono); font-size: .86rem; color: var(--fg); }
td.win { color: var(--accent); font-weight: 600; }
.bench-box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow-x: auto; }
.bench-note { font-size: .85rem; color: var(--muted); margin-top: 14px; max-width: 70ch; }

.llm-block {
  margin-top: 48px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px;
}
.llm-block h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.llm-block .lead { color: var(--muted); font-size: .95rem; text-wrap: pretty; }
.llm-block .lead code { color: var(--fg); font-size: .92em; }
.finding {
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 18px; margin-bottom: 20px;
}
.finding:last-child { margin-bottom: 0; }
.finding .kind {
  font: 600 .75rem/1 var(--mono); color: var(--accent);
  display: inline-block; margin-bottom: 6px;
}
.finding .kind .status { color: var(--muted); }
.finding p { font-size: .93rem; color: var(--muted); }
.finding p strong { color: var(--fg); font-weight: 600; }

.schema {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 24px 26px;
  font-family: var(--mono); font-size: .88rem; line-height: 2.05;
  overflow-x: auto; white-space: pre;
}
.schema .k { color: var(--accent); }
.schema .b { color: var(--faint); }
.schema .cm { color: var(--muted); font-size: .95em; }
.schema-note { font-size: .9rem; color: var(--muted); margin-top: 16px; max-width: 66ch; }
.schema-note code { color: var(--fg); font-size: .92em; }

/* receipt loop infographic */
.receipt-infographic {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(76,195,138,.08), transparent 70%),
    var(--surface);
  padding: 28px 28px 24px;
  overflow: hidden;
}
.receipt-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 28px;
  position: relative;
}
.receipt-flow::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent) 50%, var(--border));
  opacity: .55;
  z-index: 0;
}
.receipt-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}
.receipt-step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: border-color .2s ease, transform .2s ease;
}
.receipt-infographic.in .receipt-step:nth-child(1) .receipt-step-icon { transition-delay: .05s; }
.receipt-infographic.in .receipt-step:nth-child(2) .receipt-step-icon { transition-delay: .15s; }
.receipt-infographic.in .receipt-step:nth-child(3) .receipt-step-icon { transition-delay: .25s; }
.receipt-infographic.in .receipt-step:nth-child(4) .receipt-step-icon { transition-delay: .35s; }
.receipt-infographic.in .receipt-step:nth-child(5) .receipt-step-icon { transition-delay: .45s; }
.receipt-infographic.in .receipt-step-icon {
  border-color: rgba(76,195,138,.35);
}
.receipt-step-icon svg { width: 26px; height: 26px; stroke: var(--muted); }
.receipt-step-icon.accent svg { stroke: var(--accent); }
.receipt-step-icon.accent {
  background: linear-gradient(145deg, rgba(76,195,138,.18), rgba(76,195,138,.06));
  border-color: rgba(76,195,138,.45);
}
.receipt-step-num {
  font: 600 .68rem/1 var(--mono);
  color: var(--faint);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.receipt-step h3 {
  font-size: .92rem;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.25;
}
.receipt-step-desc {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 14em;
  margin: 0 auto;
}
.receipt-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.receipt-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 16px 18px;
  min-width: 0;
}
.receipt-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  font: 600 .72rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--faint);
}
.receipt-panel-head .tag {
  font-size: .68rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.receipt-claims { display: flex; flex-direction: column; gap: 10px; }
.receipt-claim {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: .8rem;
}
.receipt-claim-id {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--accent);
}
.receipt-claim-text { color: var(--muted); line-height: 1.35; }
.receipt-salience-track {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}
.receipt-salience-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transform-origin: left center;
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.js .receipt-infographic:not(.in) .receipt-salience-bar { transform: scaleX(0); }
.receipt-salience-val {
  font: 600 .7rem/1 var(--mono);
  color: var(--faint);
  min-width: 2.2em;
  text-align: right;
}
.receipt-salience-val.up { color: var(--accent); }
.receipt-salience-val.down { color: #e07a7a; }
.receipt-salience-val .dim { color: var(--faint); font-weight: 400; }
.receipt-json {
  font-family: var(--mono);
  font-size: .76rem;
  line-height: 1.65;
  color: var(--muted);
  overflow-x: auto;
}
.receipt-json .k { color: var(--accent); }
.receipt-json .s { color: #9ecbff; }
.receipt-json .n { color: #f0c674; }
.receipt-json .cm { color: var(--faint); }
.receipt-outcomes { display: flex; flex-direction: column; gap: 12px; }
.receipt-outcome-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
}
.receipt-outcome-row .pill {
  flex-shrink: 0;
  font: 600 .68rem/1 var(--mono);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.receipt-outcome-row .pill.cited {
  color: var(--accent);
  border-color: rgba(76,195,138,.35);
  background: rgba(76,195,138,.08);
}
.receipt-outcome-row .pill.ignored {
  color: #e07a7a;
  border-color: rgba(224,122,122,.35);
  background: rgba(224,122,122,.08);
}
.receipt-outcome-row span:last-child { color: var(--muted); }
.receipt-rank-delta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.receipt-rank-delta h4 {
  font-size: .72rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--faint);
  margin-bottom: 10px;
}
.receipt-rank-row {
  display: grid;
  grid-template-columns: 3.5em 1fr 2.5em;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: .78rem;
}
.receipt-rank-row:last-child { margin-bottom: 0; }
.receipt-rank-row .id { font-family: var(--mono); color: var(--accent); font-size: .72rem; }
.receipt-rank-row .arrow { text-align: center; font-family: var(--mono); font-size: .72rem; }
.receipt-rank-row .arrow.up { color: var(--accent); }
.receipt-rank-row .arrow.down { color: #e07a7a; }
.receipt-cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  font-size: .9rem;
  color: var(--muted);
}
.receipt-cta code { color: var(--fg); font-size: .9em; }
.receipt-cta a { font-family: var(--mono); font-size: .88rem; }

footer { border-top: 1px solid var(--border); padding: 40px 0 56px; }
.foot {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline;
  font-size: .88rem; color: var(--muted);
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--fg); }
.foot .lic { margin-left: auto; font-family: var(--mono); font-size: .8rem; color: var(--faint); }

/* doc pages */
.doc-page { padding: 48px 0 72px; }
.doc-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}
.doc-lead {
  color: var(--muted); font-size: 1.05rem; max-width: 62ch;
  margin-bottom: 40px; text-wrap: pretty;
}
.doc-page h2 {
  margin-top: 48px; margin-bottom: 12px;
  padding-top: 8px;
}
.doc-page h2:first-of-type { margin-top: 0; }
.doc-page h3 {
  font-size: 1.05rem; margin: 28px 0 10px; letter-spacing: -0.01em;
}
.doc-page p, .doc-page li {
  color: var(--muted); max-width: 72ch;
}
.doc-page p { margin-bottom: 14px; }
.doc-page p strong { color: var(--fg); }
.doc-page ul, .doc-page ol {
  margin: 0 0 16px 1.2em;
}
.doc-page li { margin-bottom: 8px; }
.doc-page li code { color: var(--fg); font-size: .92em; }
.doc-page .callout {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--surface);
  padding: 16px 18px; margin: 20px 0; max-width: 72ch;
}
.doc-page .callout p:last-child { margin-bottom: 0; }
.doc-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 20px 22px; margin-bottom: 16px;
}
.doc-card h3 { margin-top: 0; margin-bottom: 6px; }
.doc-card p { margin-bottom: 10px; font-size: .93rem; }
.doc-card .links { display: flex; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.doc-card .links a { font-family: var(--mono); font-size: .84rem; }
.json-preview {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #0d1117; padding: 16px 18px;
  font-family: var(--mono); font-size: .82rem; line-height: 1.6;
  overflow-x: auto; max-height: 320px; margin-top: 12px;
  color: var(--muted);
}
.doc-table { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow-x: auto; margin: 16px 0 24px; }
.doc-table td code { color: var(--fg); font-size: .86rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* /try demo */
.try-main { padding-bottom: 72px; }
.try-hero { padding: 56px 0 32px; }
.try-form {
  display: flex; gap: 12px; margin: 28px 0 20px; flex-wrap: wrap;
}
.try-form input {
  flex: 1 1 280px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--fg);
  font: .95rem/1.4 var(--mono); padding: 14px 16px;
}
.try-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.try-picks { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.try-picks-label { color: var(--muted); font-size: .9rem; margin-right: 4px; }
.try-pick {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; color: var(--fg); cursor: pointer;
  font: inherit; padding: 8px 14px; text-align: left;
}
.try-pick:hover { border-color: var(--accent); }
.try-pick strong { margin-right: 6px; }
.try-pick span { color: var(--muted); font-size: .88rem; }
.try-llm-toggle {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 12px; font-size: .92rem; cursor: pointer;
}
.try-llm-toggle input { accent-color: var(--accent); }
.try-llm-hint { color: var(--faint); font-size: .85rem; }
.try-mode-badge {
  display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; padding: 3px 8px; border-radius: 4px; margin-bottom: 8px;
}
.try-mode-structural { background: rgba(255,255,255,.06); color: var(--muted); }
.try-mode-llm { background: rgba(76,195,138,.15); color: var(--accent); }
.try-mode-degraded { background: rgba(240,113,120,.12); color: #f07178; }
.try-hint { color: var(--muted); font-size: .92rem; min-height: 1.4em; }
.try-hint-loading {
  background: linear-gradient(
    90deg,
    var(--faint) 0%,
    var(--muted) 35%,
    #c8cdd4 50%,
    var(--muted) 65%,
    var(--faint) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: try-shimmer 1.6s ease-in-out infinite;
}
@keyframes try-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}
.try-hint-ok { color: var(--accent); }
.try-hint-err { color: #f07178; }
.try-form .btn:disabled,
.try-pick:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.try-form input:disabled {
  opacity: 0.65;
  cursor: wait;
}
.try-results.hidden { display: none; }
.try-stats { margin: 24px 0 28px; }
.try-stat-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 22px 24px;
}
.try-stat-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.try-ref { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.try-bars { max-width: 420px; }
.try-bar-row { display: flex; justify-content: space-between; font-size: .88rem; margin: 10px 0 4px; }
.try-bar-row .n.win { color: var(--accent); }
.try-win { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.try-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.try-panel {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 20px 22px; min-width: 0;
}
.try-panel h2 { font-size: 1rem; margin-bottom: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.try-prose { line-height: 1.55; }
.try-claims { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.try-claims li {
  display: flex; gap: 12px; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.try-claims li:last-child { border-bottom: 0; padding-bottom: 0; }
.try-claim-text { flex: 1; min-width: 0; }
.try-salience { color: var(--accent); font-size: .82rem; white-space: nowrap; }
.try-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.try-list .muted { color: var(--faint); }
.try-foot {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
}
.try-foot-note { color: var(--muted); font-size: .88rem; }

@media (max-width: 1024px) {
  .receipt-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .receipt-flow::before { display: none; }
  .receipt-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
      "icon num"
      "icon title"
      "icon desc";
    column-gap: 14px;
    row-gap: 4px;
    text-align: left;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
  }
  .receipt-step:last-child { border-bottom: 0; }
  .receipt-step-icon {
    grid-area: icon;
    margin: 0;
    width: 52px;
    height: 52px;
    align-self: start;
  }
  .receipt-step-num {
    grid-area: num;
    margin: 2px 0 0;
    text-align: left;
    font-size: .62rem;
    line-height: 1.2;
  }
  .receipt-step h3 {
    grid-area: title;
    margin: 0;
    text-align: left;
    font-size: .95rem;
    line-height: 1.3;
  }
  .receipt-step-desc {
    grid-area: desc;
    margin: 0;
    max-width: none;
    text-align: left;
    font-size: .82rem;
    line-height: 1.5;
  }
  .receipt-infographic { padding: 20px 18px 18px; }
  .receipt-detail { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .try-grid { grid-template-columns: 1fr; }
  .try-form { flex-direction: column; }
  .try-form .btn { width: 100%; }
  .hero-grid, .two-col, .steps, .llm-block { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .hero-grid { gap: 32px; }
  section { padding: 56px 0; }
  .nav {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
  }
  .brand { padding-top: 0; }
  .nav-links {
    margin-left: auto;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding-bottom: 2px;
    mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; flex-shrink: 0; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; text-align: center; justify-content: center; }
  .foot .lic { margin-left: 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .panel { padding: 18px 16px; }
  .compare { padding: 20px 16px 18px; }
  .receipt-infographic { padding: 16px 14px 14px; }
  .receipt-step { padding: 14px 0; column-gap: 12px; }
  h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .section-sub { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .bar { opacity: 1 !important; transform: none !important; transition: none !important; }
}
