:root {
  color-scheme: light;
  --background: #f7f8f6;
  --paper: #fff;
  --ink: #151d1c;
  --muted: #505d5a;
  --line: #dce4df;
  --green: #075b4c;
  --mint: #8bf4cb;
  --lavender: #c6b6ff;
  --display: 'Avenir Next', 'Segoe UI', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--background); font: 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #4777de; outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.08; letter-spacing: -.046em; }
h2 { font-size: clamp(1.65rem, 4vw, 2.45rem); }
h3 { font-size: 1.35rem; letter-spacing: -.035em; }
p { margin: 0; }
.wrap { width: min(100% - 64px, 1192px); margin: 0 auto; }
.skip { position: fixed; top: .6rem; left: .6rem; z-index: 5; padding: .45rem .8rem; transform: translateY(-180%); background: var(--paper); }
.skip:focus { transform: none; }
.site-header { background: var(--background); border-bottom: 1px solid var(--line); }
.nav-bar { min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 .99rem/1.2 var(--display); color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { display: inline-flex; gap: 3px; align-items: end; justify-content: center; width: 29px; height: 29px; padding: 7px; border-radius: 8px; background: #10242a; }
.brand-mark i { display: block; width: 3px; height: 7px; border-radius: 1px; background: var(--mint); }
.brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:nth-child(3) { height: 15px; background: var(--lavender); }
.nav-bar nav { display: flex; align-items: center; gap: 25px; }
.nav-bar nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .91rem; }
.nav-bar nav a:hover { color: var(--green); }
.nav-bar .nav-calc { padding: .46em .95em; color: var(--ink); border: 1px solid #c9d5ce; border-radius: 7px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; font-size: .88rem; color: var(--muted); padding-top: 31px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 1.31fr) minmax(0, 1fr); align-items: center; gap: 44px; padding: 36px 0 64px; }
.hero h1 { font-size: clamp(2.45rem, 5.3vw, 4.25rem); font-weight: 750; }
.hero h1 > span { display: block; }
.versus-line { color: #25343e; }
.vs { color: #667770; font-weight: 500; font-size: .60em; letter-spacing: -.085em; vertical-align: .13em; margin-right: .14em; }
.lead { max-width: 58ch; margin-top: 23px; color: var(--muted); font-size: clamp(1.05rem, 1.45vw, 1.18rem); }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; font-size: .92rem; text-align: center; font-weight: 680; line-height: 1.28; text-decoration: none; transition: background-color .16s ease, border-color .16s ease; }
.button.primary { background: var(--green); color: #fff; }
.button.primary:hover { background: #064b40; }
.button.quiet { border-color: #c9d5ce; color: var(--ink); background: #ffffff80; }
.button.quiet:hover { background: #edf3ef; border-color: #9bb5a9; }
.hero-panel { position: relative; isolation: isolate; overflow: hidden; color: #eff7f2; background: #101f27; border: 1px solid #192e34; border-radius: 21px; padding: 23px; box-shadow: 0 16px 38px #12302318; }
.panel-grid { position: absolute; z-index: -1; inset: 0; opacity: .9; background: linear-gradient(115deg, #13282b, #182432 65%, #232637), repeating-linear-gradient(90deg, transparent 0 31px, #b8ffe211 32px 33px), repeating-linear-gradient(0deg, transparent 0 31px, #b8ffe211 32px 33px); background-blend-mode: soft-light; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; font-size: .88rem; font-weight: 650; }
.panel-heading span:last-child { color: #ccd9d8; font: .81rem var(--mono); }
.quote-card { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr 1fr; align-items: center; gap: 10px; padding: 18px 14px; border: 1px solid #43585c; border-radius: 10px; background: #192d34; }
.quote-opus { margin-top: 11px; background: #262c3c; border-color: #4b4d68; }
.quote-model { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; line-height: 1.3; font-weight: 670; }
.dot { display: inline-block; flex: 0 0 auto; width: .57rem; height: .57rem; margin-right: .23rem; border-radius: 50%; background: #188365; vertical-align: .08em; }
.dot.opus { background: #7b63d4; }
.quote-card .dot { margin: 0; background: var(--mint); }
.quote-card .dot.opus { background: var(--lavender); }
.quote-card strong { display: block; font: 600 clamp(1rem, 1.9vw, 1.42rem)/1.2 var(--mono); color: #f0fbf7; letter-spacing: -.04em; }
.quote-card small { display: block; margin-top: 5px; color: #c2d0d4; font-size: .82rem; }
.panel-note { margin-top: 16px; color: #c7d4d6; font-size: .83rem; }
.page-section { margin-bottom: 64px; scroll-margin-top: 22px; }
.section-heading { margin-bottom: 19px; }
.section-heading p { margin-top: 9px; color: var(--muted); }
.table-shell { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--paper); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
thead { background: #eef3ef; }
thead th { font: 700 .96rem/1.35 var(--display); }
thead th:first-child { width: 35%; }
th, td { padding: 14px 18px; vertical-align: top; line-height: 1.4; overflow-wrap: anywhere; }
tbody tr { border-top: 1px solid #e7ece8; }
tbody th { font-weight: 650; }
th small { display: block; margin-top: 3px; color: var(--muted); font-size: .84rem; font-weight: 450; }
.metric, .scores b { font-variant-numeric: tabular-nums; font-weight: 670; }
.scores { display: inline-block; color: #404b49; }
.scores b { color: var(--ink); }
.scores b:not(:first-child) { margin-left: .38rem; }
.source-note { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.calc { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #cadbd1; border-radius: 14px; overflow: hidden; background: #fff; }
.calc-fields, .calc-results { min-width: 0; padding: clamp(16px, 2.65vw, 32px); }
.calc-fields { border-right: 1px solid #dce7df; }
.field-row, .results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field label { display: block; font-size: .92rem; font-weight: 650; margin-bottom: 7px; }
.input-box { display: flex; border: 1px solid #afc3b8; border-radius: 8px; background: #fbfdfb; }
.input-box:focus-within { outline: 2px solid #136f61; outline-offset: 2px; }
.input-box input { min-width: 0; width: 100%; padding: 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 1.16rem var(--mono); }
.input-box input[aria-invalid="true"] { color: #8a172b; }
.input-box span { color: var(--muted); padding: 11px 12px 11px 0; font: 500 .91rem/1.65 var(--mono); }
.help-text, .error { font-size: .88rem; margin-top: 9px; color: var(--muted); }
.error { color: #901d32; }
.presets { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 19px; align-items: center; }
.presets span { margin-right: 4px; font-size: .88rem; color: var(--muted); }
.presets button { min-height: 36px; padding: 5px 10px; border: 1px solid #cbd9d2; border-radius: 6px; background: #fcfdfc; color: var(--ink); cursor: pointer; font: 600 .82rem var(--body); }
.presets button:hover, .presets button[aria-pressed="true"] { border-color: #247c63; background: #e3f3eb; color: #075b4c; }
.calc-results { background: #f0f5f1; display: grid; align-content: center; }
.result { min-width: 0; padding: 14px 12px; border: 1px solid #bdd8c9; border-radius: 8px; background: #f8fffb; }
.result.opus-result { border-color: #d6cee8; background: #fcfaff; }
.result span { font-size: .88rem; font-weight: 680; line-height: 1.3; }
.result p { margin-top: 6px; line-height: 1.15; overflow-wrap: anywhere; }
.result output { font: 650 clamp(1.22rem, 2vw, 1.75rem)/1.2 var(--mono); letter-spacing: -.065em; }
.result small { color: var(--muted); white-space: nowrap; }
.delta { margin-top: 13px; color: #204e3e; font-size: .93rem; font-weight: 660; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.test-card, .community-case { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.kicker { margin-bottom: 8px; color: #286554; font: 680 .82rem var(--body); }
.test-card h3 + p, .community-case h3 + p, .home-comparison h2 + p { margin-top: 10px; color: var(--muted); }
.case-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 19px 0 13px; }
.case-results > div { background: #f3f6f3; border-radius: 7px; padding: 11px; }
.case-results dt { font-size: .88rem; font-weight: 650; }
.case-results dd { margin: 4px 0 0; font: 650 1.13rem/1.35 var(--mono); }
.case-results small { color: var(--muted); font: .88rem var(--body); white-space: nowrap; }
.case-note { color: var(--muted); font-size: .91rem; }
.community-case { margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: #f0eef9; border-color: #dcd7ef; }
.community-case > div:last-child { display: grid; gap: 8px; justify-items: center; }
.text-link { font-size: .87rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 660; padding: 15px 17px; }
.faq details p { color: var(--muted); margin: 0 17px 17px; max-width: 75ch; }
.sources h2 { font-size: 1.36rem; }
.sources ul { display: flex; gap: 10px 23px; flex-wrap: wrap; padding: 0; list-style: none; }
.sources li { font-size: .91rem; }
.site-footer { background: #eef3ef; border-top: 1px solid var(--line); }
.footer-inner { min-height: 84px; display: flex; gap: 20px; align-items: center; justify-content: space-between; font-size: .9rem; color: var(--muted); }
.home { min-height: 68vh; padding: 76px 0; }
.home-hero { max-width: 800px; }
.home h1 { font-size: clamp(2.55rem, 6vw, 5rem); }
.home-comparison { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 28px; border: 1px solid var(--line); border-radius: 13px; margin-top: 42px; background: #fff; }
.home-comparison .button { flex: 0 0 auto; }

@media (max-width: 990px) {
  .hero { gap: 25px; }
  .hero-panel { padding: 17px; }
  .quote-card { grid-template-columns: minmax(0, 1.3fr) .8fr .9fr; padding: 15px 10px; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .nav-bar { min-height: 62px; gap: 12px; }
  .nav-bar nav { gap: 12px; }
  .nav-bar nav a:not(.nav-calc) { display: none; }
  .breadcrumbs { padding-top: 21px; }
  .hero { grid-template-columns: 1fr; padding: 25px 0 43px; gap: 25px; }
  .hero h1 { font-size: clamp(2.34rem, 8.3vw, 4.2rem); }
  .lead { margin-top: 15px; }
  .hero-actions { margin-top: 19px; }
  .hero-panel { width: min(100%, 530px); }
  .quote-card strong { font-size: 1.2rem; }
  .page-section { margin-bottom: 43px; }
  th, td { padding: 11px 9px; font-size: .9rem; }
  thead th { font-size: .88rem; }
  th small { font-size: .76rem; }
  .calc, .community-case { grid-template-columns: 1fr; }
  .calc-fields { border-right: 0; border-bottom: 1px solid #dce7df; }
  .community-case > div:last-child { justify-items: start; }
  .footer-inner { align-items: start; flex-wrap: wrap; padding: 19px 0; }
  .footer-inner p { order: 3; flex-basis: 100%; }
  .home { padding: 53px 0; }
  .home-comparison { display: grid; justify-items: start; }
}

@media (max-width: 480px) {
  .case-grid { grid-template-columns: 1fr; }
  .test-card, .community-case { padding: 17px; }
  .hero-actions .button { padding-inline: 12px; }
  .result output { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
