/* tokens */
:root {
  --rs-shell: 1120px;
  --rs-display: var(--sans);
  --rs-body: var(--sans);
  --rs-ink: var(--fg);
  --rs-ink-2: var(--dim);
  --rs-dim: #8f8f96;
  --rs-line: var(--line);
  --rs-haiku: var(--accent);
  --rs-luna: #9bd8c1;
  --rs-deepseek: #93b9f2;
  --rs-warm: #e9cf9a;
  --rs-name-col: 190px;
}
[data-model="Haiku"] { --model: var(--rs-haiku); }
[data-model="Luna"] { --model: var(--rs-luna); }
[data-model="DeepSeek"] { --model: var(--rs-deepseek); }

/* shared styles kept out of the report */
:where(.rs-page) :where(#content *) { margin: revert; }
:where(.rs-page #content) :is(h1, h2, h3) { font-weight: revert; line-height: revert; }
:where(.rs-page #content) h1 span { color: inherit; }
.rs-page #content :is(h1, h2, h3, p, li, q, summary, time, dt, dd) { text-shadow: none; }
:where(.rs-page #content) details { border-top: 0; padding: 0; }
:where(.rs-page #content) summary { display: revert; font-weight: revert; }
:where(.rs-page #content) summary::after { content: none; }
.rs-page #content details[open] summary::after { transform: none; }
:where(.rs-page #content) details > :is(p, dl) { color: inherit; max-width: none; line-height: inherit; }
:where(.rs-page #content) :is(.hero, .meta, .note, .ok, .pick, .row, .rows, .sub, .tag) { all: revert; box-sizing: border-box; }
:where(.rs-page #content) :is(.row :is(h3, p), .meta b, .note b) { color: inherit; font-size: inherit; font-weight: revert; }

/* shell */
.rs-page h1, .rs-page h2, .rs-page h3, .rs-page h4 { letter-spacing: -0.02em; }
.rs-shell { width: min(var(--rs-shell), calc(100% - 48px)); margin: 0 auto; }
.rs-jump { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 18px 0; border-bottom: 1px solid var(--rs-line); font-size: 15px; font-weight: 600; }
.rs-jump a { color: var(--rs-ink-2); text-decoration: none; transition: color 160ms ease; }
.rs-jump a:hover { color: var(--rs-ink); }
.rs-jump .rs-up { margin-right: auto; color: var(--rs-ink); }
@keyframes rs-rise { from { opacity: 0; translate: 0 14px; } }
main { color: var(--rs-ink-2); font-size: 17px; line-height: 1.6; }
main a { color: var(--rs-ink); text-underline-offset: 4px; text-decoration-color: var(--rs-line); }
main a:hover { text-decoration-color: currentColor; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.loading { padding: 120px 0; color: var(--rs-dim); }
section { scroll-margin-top: 84px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px 48px; align-items: end; padding: 72px 0 0; }
.hero h1 { margin: 0; color: var(--rs-ink); font-size: clamp(50px, 7.4vw, 94px); font-weight: 600; line-height: 0.9; letter-spacing: -0.045em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: block; animation: rs-line-up 900ms var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
.hero h1 .thin { font-weight: 300; color: var(--rs-ink-2); }
.hero h1.is-static .line > span { animation: none; }
@keyframes rs-line-up { from { translate: 0 105%; } }
.hero-side { display: grid; gap: 18px; padding-bottom: 8px; }
.hero-lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--rs-ink-2); text-wrap: pretty; }
.hero-lede strong { color: var(--rs-ink); font-weight: 600; }
.hero-note { margin: 0; font-size: 14px; color: var(--rs-dim); }
.sample-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 16px; }
.sample-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--rs-line); border-radius: 0; background: rgba(20, 19, 28, 0.7); }
.sample-switch .seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 0; background: var(--rs-ink); transition: translate 520ms cubic-bezier(.5, 1.6, .4, 1); }
.sample-switch[data-active="2"] .seg-pill { translate: 100% 0; }
.sample-switch button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 18px; border-radius: 0; color: var(--rs-ink-2); font: 500 15px/1.2 var(--rs-body); cursor: pointer; transition: color 300ms ease; white-space: nowrap; }
.sample-switch button[aria-pressed="true"] { color: #0b0a10; }
.sample-switch button span { opacity: 0.7; font-weight: 400; }
.sample-caption { margin: 0; font-size: 14px; color: var(--rs-dim); max-width: 62ch; }

/* sections */
.section h2 { margin: 120px 0 8px; color: var(--rs-ink); font-size: clamp(30px, 4.4vw, 44px); font-weight: 500; line-height: 1.05; text-wrap: balance; }
.section .sub { margin: 0 0 30px; color: var(--rs-dim); max-width: 64ch; }
.note { margin: 14px 0 0; font-size: 14px; color: var(--rs-dim); max-width: 80ch; }

/* lanes */
.lanes { --cols: var(--rs-name-col) repeat(var(--n, 4), minmax(0, 1fr)); }
.lanes-head, .lane { display: grid; grid-template-columns: var(--cols); column-gap: 12px; }
.lanes-head span { text-align: center; font-size: 15px; color: var(--rs-ink-2); padding-bottom: 10px; }
.lanes-head span.is-medium { color: var(--rs-ink); font-weight: 600; }
.lanes-head small { display: block; font-size: 13px; color: var(--rs-dim); font-weight: 400; }
.lane { position: relative; color: var(--model); border-top: 1px solid var(--rs-line); }
.lane::before { content: ""; position: absolute; left: calc(var(--rs-name-col) + 12px + (100% - var(--rs-name-col) - 12px * var(--n, 4)) / (2 * var(--n, 4))); right: calc((100% - var(--rs-name-col) - 12px * var(--n, 4)) / (2 * var(--n, 4))); top: 41px; height: 2px; background: linear-gradient(90deg, currentColor, transparent 150%); opacity: 0.4; transform-origin: left; transition: transform 1.2s cubic-bezier(.4, 0, .2, 1); }
.lane.is-armed::before { transform: scaleX(0); }
.lane-name { padding: 26px 0 20px; }
.lane-name h3 { margin: 0; font-size: 26px; font-weight: 500; line-height: 1.05; color: var(--model); }
.lane-name p { margin: 5px 0 0; font-size: 14px; color: var(--rs-dim); line-height: 1.35; }
.lane-name img { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; opacity: 0.85; }
.stop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 0 20px; text-align: center; }
.stop.is-medium { background: rgba(236, 235, 242, 0.035); }
.stop .dot { width: var(--d); height: var(--d); margin: calc(13px - var(--d) / 2) 0; border-radius: 50%; background: currentColor; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--bg); transition: transform 250ms cubic-bezier(.3, 1.6, .5, 1); }
.stop:hover .dot { transform: scale(1.25); }
.stop.is-best .dot::after { content: ""; position: absolute; inset: -8px; border: 1px solid currentColor; border-radius: 50%; opacity: 0.6; animation: rs-ring 2.6s ease-out infinite; }
@keyframes rs-ring { from { transform: scale(0.7); opacity: 0.8; } to { transform: scale(1.5); opacity: 0; } }
.stop .score { font-size: 20px; color: var(--rs-ink); line-height: 1; }
.stop .score small { font-size: 13px; color: var(--rs-dim); }
.stop .price { font-size: 14px; color: var(--rs-ink-2); }
.stop .wait { font-size: 13px; color: var(--rs-dim); }
.stop .flag { font-size: 12px; color: var(--rs-warm); }
.stop.is-empty { color: var(--rs-dim); font-size: 13px; justify-content: center; }
.lane-notes { grid-column: 2 / -1; display: grid; gap: 6px; padding: 0 0 24px; font-size: 15px; color: var(--rs-ink-2); }
.lane-notes p { margin: 0; padding-left: 18px; position: relative; }
.lane-notes p::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--model); }
.lane-notes p.is-caution::before { background: transparent; border: 1.5px solid var(--rs-warm); }
.lane-notes .footnote { font-size: 13px; color: var(--rs-dim); padding-left: 18px; }
.lane-notes .footnote::before { display: none; }
.model-assessment { margin-top: 4px; }
.model-assessment summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--model); font-weight: 500; list-style: none; padding: 4px 0; }
.model-assessment summary::-webkit-details-marker { display: none; }
.model-assessment summary::after { content: "+"; font-family: var(--mono); transition: rotate 300ms var(--ease); }
.model-assessment[open] summary::after { rotate: 45deg; }
.model-assessment[open] > :not(summary) { animation: rs-rise 500ms var(--ease) both; }
.model-assessment .assessment-scope { color: var(--rs-dim); font-size: 14px; margin: 8px 0 14px; }
.model-assessment h4 { margin: 18px 0 4px; color: var(--rs-ink); font-size: 17px; font-weight: 500; }
.model-assessment p { margin: 0; max-width: 72ch; }
.model-assessment a { display: inline-block; margin-top: 14px; font-size: 15px; }

/* race */
.race { display: grid; }
.runner { display: grid; grid-template-columns: var(--rs-name-col) minmax(0, 1fr) 110px; gap: 24px; align-items: center; padding: 16px 0; color: var(--model); }
.runner .who { font-family: var(--rs-display); font-size: 22px; font-weight: 500; }
.runner .track { position: relative; height: 12px; border-radius: 6px; background: rgba(236, 235, 242, 0.06); overflow: hidden; }
.runner .fill { position: absolute; inset: 0; transform-origin: left; border-radius: 6px; background: currentColor; }
.runner .clock { text-align: right; color: var(--rs-ink); font-size: 20px; }
.runner .clock small { display: block; font-family: var(--rs-body); font-size: 13px; color: var(--rs-dim); }
.replay { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font: 500 15px var(--rs-body); color: var(--rs-ink); background: none; border: 1px solid var(--rs-line); border-radius: 0; padding: 9px 18px; cursor: pointer; transition: border-color 160ms ease; }
.replay:hover { border-color: var(--rs-ink-2); }
.replay svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* second opinion */
.verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.verdicts div { border-top: 2px solid var(--model); padding-top: 14px; }
.verdicts strong { display: block; font-family: var(--rs-display); font-size: 20px; font-weight: 500; color: var(--model); }
.verdicts .num { font-size: 26px; color: var(--rs-ink); }
.verdicts .num em { font-style: normal; color: var(--rs-dim); margin: 0 6px; }

/* examples */
.case-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.case-pick button, .model-pick button { font: 500 15px var(--rs-body); background: none; border: 1px solid var(--rs-line); color: var(--rs-ink-2); padding: 8px 16px; border-radius: 0; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.case-pick button:hover, .model-pick button:hover { border-color: var(--rs-ink-2); }
.case-pick button[aria-pressed="true"] { background: var(--rs-ink); color: #0b0a10; border-color: var(--rs-ink); }
.model-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.model-pick button { color: var(--model); }
.model-pick button[aria-pressed="true"] { background: var(--model); border-color: var(--model); color: #0b0a10; }
.ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: start; }
.ask-left { display: grid; gap: 14px; position: sticky; top: 24px; min-width: 0; }
.ask-left h3 { margin: 0; color: var(--rs-ink); font-size: 26px; font-weight: 500; }
.ask-left .kind { color: var(--rs-dim); font-size: 14px; }
.diff { margin: 0; font: 13px/1.75 var(--mono); background: #0c0b13; border: 1px solid var(--rs-line); border-radius: 0; padding: 14px 0; overflow-x: auto; }
.diff code { display: block; min-width: max-content; }
.diff-line { display: block; padding: 0 16px; white-space: pre; }
.diff-added { background: rgba(155, 216, 193, 0.1); color: #bfe9d8; }
.diff-removed { background: rgba(240, 150, 150, 0.09); color: #f0b7b7; }
.diff-context { color: var(--rs-dim); }
.context, .expected { margin: 0; font-size: 15px; }
.expected b { color: var(--rs-warm); font-weight: 500; }
.watch { margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--rs-line); font-size: 15px; color: var(--rs-ink-2); }
.watch span { color: var(--rs-ink); font-weight: 500; }
.reply { min-height: 260px; color: var(--model); border-left: 2px solid currentColor; padding-left: 22px; }
.reply .label { display: inline-block; font-size: 14px; padding: 3px 10px; border-radius: 0; border: 1px solid currentColor; margin-bottom: 12px; }
.reply .label.is-off { color: var(--rs-warm); }
.reply .say { margin: 0 0 14px; color: var(--rs-ink); font-family: var(--rs-display); font-size: 23px; font-weight: 400; line-height: 1.42; letter-spacing: -0.005em; }
.reply .why { margin: 0 0 14px; color: var(--rs-ink-2); }
.reply .meta { color: var(--rs-dim); font-size: 14px; }
.reply .w { display: inline-block; animation: rs-word 450ms var(--ease) both; animation-delay: calc(var(--i) * 26ms); }
@keyframes rs-word { from { opacity: 0; translate: 0 7px; filter: blur(3px); } }
.examples-note { margin-top: 26px; }

/* method */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 8px 0 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 7px; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--rs-haiku), var(--rs-luna), var(--rs-deepseek)); opacity: 0.45; transform-origin: left; transition: transform 1.4s cubic-bezier(.4, 0, .2, 1); }
.steps.is-armed::before { transform: scaleX(0); }
.steps li { position: relative; padding-top: 34px; font-size: 15px; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--rs-ink-2); }
.steps strong { display: block; margin-bottom: 4px; color: var(--rs-ink); font-family: var(--rs-display); font-size: 19px; font-weight: 500; }
.method-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 64px; }
.method-cols h3 { margin: 0 0 10px; color: var(--rs-ink); font-size: 24px; font-weight: 500; }
.method-cols p { margin: 0 0 12px; }
.more { margin-top: 40px; border-top: 1px solid var(--rs-line); }
.more details { border-bottom: 1px solid var(--rs-line); }
.more summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; color: var(--rs-ink); font-family: var(--rs-display); font-size: 20px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-family: var(--mono); color: var(--rs-dim); transition: rotate 300ms var(--ease); }
.more details[open] summary::after { rotate: 45deg; }
.more details > div { padding: 0 0 24px; }
.more .method-cols { margin-top: 0; }
.more h4 { margin: 0 0 6px; color: var(--rs-ink); font-size: 17px; font-weight: 500; }
.more pre { margin: 0 0 16px; max-height: 420px; overflow: auto; font: 13px/1.65 var(--mono); color: var(--rs-ink-2); background: #0c0b13; border: 1px solid var(--rs-line); border-radius: 0; padding: 16px; white-space: pre-wrap; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .ask { grid-template-columns: 1fr; }
  .ask-left { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .steps::before { display: none; }
}
@media (max-width: 760px) {
  .rs-shell { width: calc(100% - 32px); }
  main { font-size: 16px; }
  .lanes { --cols: repeat(var(--n, 4), minmax(0, 1fr)); }
  .lanes-head span:first-child { display: none; }
  .lanes-head, .lane { column-gap: 4px; }
  .lane-name { grid-column: 1 / -1; padding: 20px 0 0; }
  .lane::before { left: calc(50% / var(--n, 4)); right: calc(50% / var(--n, 4)); top: auto; bottom: var(--rail-bottom, 0); display: none; }
  .stop { padding: 16px 0; }
  .stop .score { font-size: 17px; }
  .stop .price { font-size: 12px; }
  .stop .wait { font-size: 12px; }
  .lane-notes { grid-column: 1 / -1; }
  .runner { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .runner .track { grid-column: 1 / -1; grid-row: 2; }
  .verdicts, .method-cols { grid-template-columns: 1fr; gap: 24px; }
  .section h2 { margin-top: 88px; }
  .reply .say { font-size: 20px; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .sample-switch button { padding: 9px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .line > span, .reply .w, .stop.is-best .dot::after, .model-assessment[open] > :not(summary) { animation: none; }
  .lane::before, .steps::before, .sample-switch .seg-pill { transition: none; }
  .lane.is-armed::before, .steps.is-armed::before { transform: none; }
}
