/* Pages for AI companies (feature.html, pay.html). Loaded after home.css. */
.vend { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.vend-info { display: grid; gap: 14px; }
.card-lite { background: #fff; border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow); }
.card-lite b { font: 700 17px/1.3 var(--display); }
.card-lite ol, .card-lite ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); }
.card-lite li { margin: 6px 0; }
.price { font: 700 30px/1 var(--display); color: var(--violet-deep); margin: 10px 0 6px; }
.small { font-size: 13.5px; color: var(--soft); margin: 6px 0 0; }
.vend-form { background: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.vend-form h2 { margin: 0 0 4px; font: 700 24px/1.2 var(--display); letter-spacing: -0.03em; }
.f2 { display: grid; gap: 5px; }
.f2.r { grid-template-columns: 1fr 1fr; gap: 10px; }
.f2.r > div { display: grid; gap: 5px; }
.f2 label { font-size: 13px; font-weight: 700; color: var(--soft); }
.f2 input, .f2 textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 15.5px; color: var(--ink); }
.f2 textarea { min-height: 80px; resize: vertical; }
.f2 input:focus, .f2 textarea:focus { outline: none; border-color: var(--violet); }
.vend-form .err { color: #c0392b; margin: 0; min-height: 1em; font-size: 14px; }
@media (max-width: 760px) { .vend { grid-template-columns: 1fr; } .f2.r { grid-template-columns: 1fr; } }

/* ---------- tool pages and comparisons (also loaded on every portal page) ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.facts > div { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.facts .lbl { display: block; font: 700 11px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); margin-bottom: 8px; }
.facts b { font: 700 16px/1.35 var(--display); letter-spacing: -0.01em; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.alts { padding-left: 20px; }
.alts a { color: var(--violet-deep); text-decoration: none; }
.tag.bfz { background: #fff1d2; color: #8a5300; }
.cmp-wrap { overflow-x: auto; border-radius: var(--r); }
table.cmp td:first-child { width: auto; }
table.cmp a { color: var(--violet-deep); text-decoration: none; }
.cmp-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; font-size: 14px; }
.cmp-links span { color: var(--soft); font-weight: 600; }
.cmp-links a { text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.trow .tname a { text-decoration: none; }
.page-head .crumb, .article .crumb { display: table; text-decoration: none; color: var(--soft); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } table.cmp { min-width: 680px; } }
table.cmp .chk { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 999px; background: #fff1d2; color: #8a5300; font-size: 11.5px; font-weight: 700; white-space: nowrap; }

/* the live glow bot in the corner of portal pages (desktop only) */
.page-bot-wrap { position: relative; height: 0; }
.page-bot { position: absolute; right: 10px; top: 14px; --size: 210px; z-index: 1; }
@media (max-width: 999px) { .page-bot-wrap { display: none; } }

/* ---------- live benchmarks, cost calculator, model compare (tools/build-labs.mjs) ---------- */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1fbf75; margin-right: 6px; vertical-align: 1px; }
.bench-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 6px 0 18px; }
.seg { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 1.5px var(--line); }
.seg button { border: 0; background: none; cursor: pointer; font: 700 14px/1 var(--text, system-ui); padding: 10px 14px; border-radius: 999px; color: var(--ink-2, #333); }
.seg button[aria-pressed='true'] { background: var(--violet); color: var(--on-accent, #fff); }
.bench-bar input[type=search] { flex: 1; min-width: 180px; padding: 11px 14px; border-radius: 999px; border: 1.5px solid var(--line); font: inherit; background: #fff; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.bench-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.pod { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 2px; position: relative; overflow: hidden; }
.pod .n { position: absolute; right: 12px; top: 4px; font: 800 44px/1 var(--display); color: var(--violet-2); }
.pod b { font: 700 18px/1.2 var(--display); position: relative; }
.pod span { color: var(--soft); font-size: 13.5px; position: relative; }
.pod .s { color: var(--violet); font-weight: 700; }
.pod.p1 { box-shadow: var(--shadow), inset 0 0 0 2px var(--violet); }
table.bench td, table.bench th { white-space: nowrap; }
table.bench th { cursor: pointer; user-select: none; }
table.bench th[aria-sort='descending']::after { content: ' ↓'; } table.bench th[aria-sort='ascending']::after { content: ' ↑'; }
table.dir td.num { font-variant-numeric: tabular-nums; }
table.dir td small { color: var(--soft); font-weight: 500; }
table.dir .org { display: block; color: var(--soft); font-size: 12.5px; font-weight: 500; }
.pbar { display: inline-block; width: 46px; height: 6px; border-radius: 6px; background: var(--violet-2); margin-right: 7px; vertical-align: 2px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--violet); border-radius: 6px; }
.more-row { text-align: center; margin: 14px 0 0; }
.bench-explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.bench-explain p { margin: 6px 0 0; color: var(--soft); font-size: 14.5px; }
.credit { color: var(--soft); font-size: 13px; margin: 16px 0 0; }
.credit a { color: inherit; }
.calc { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 30px; }
.calc-in { display: grid; gap: 16px; position: sticky; top: 16px; }
.calc-in label { display: grid; gap: 8px; font-weight: 700; font-size: 14.5px; }
.calc-in label.chk { display: flex; }
.calc-in output { float: right; color: var(--violet); }
.calc-in select { padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; background: #fff; }
.calc-in input[type=range] { accent-color: var(--violet); }
.calc-out { display: grid; gap: 14px; }
.big-num b { display: block; font: 700 40px/1.1 var(--display); letter-spacing: -0.03em; }
.big-num .lbl { font-size: 13px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: 0.08em; }
td.good { color: #11804d; font-weight: 700; } td.bad { color: #b3261e; font-weight: 700; }
.vs-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 6px 0 18px; }
.vs-pick select { padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); font: 700 15px var(--text, system-ui); background: #fff; min-width: 0; }
.vs { font: 800 20px var(--display); color: var(--soft); }
.vs-grid { display: grid; grid-template-columns: minmax(120px, 1fr) 1fr 1fr; background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.vs-grid > div { padding: 13px 16px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.vs-h { border-top: 0 !important; background: var(--violet-2); } .vs-h b { display: block; font: 700 17px/1.2 var(--display); } .vs-h span { color: var(--soft); font-size: 13px; }
.vs-l { color: var(--soft); font-weight: 600; font-size: 14px; }
.vs-c { font-weight: 700; }
.vs-c.win { color: var(--violet); } .vs-c.win::after { content: ' ✓'; }
.verdict { margin-top: 16px; font-size: 16px; }
@media (max-width: 760px) {
  .bench-top { grid-template-columns: 1fr; } .pod:not(.p1) { display: none; }
  .calc { grid-template-columns: 1fr; } .calc-in { position: static; }
  .vs-pick { grid-template-columns: 1fr; } .vs { text-align: center; }
  .vs-grid { grid-template-columns: 1fr 1fr; } .vs-grid .vs-l { grid-column: 1 / -1; padding-bottom: 0; border-top: 1px solid var(--line); } .vs-grid .vs-l + .vs-c, .vs-grid .vs-c + .vs-c { border-top: 0; } .vs-grid > .vs-h:first-child { display: none; }
}

/* ---------- long guides and tool pages (Markdown from the content API) ---------- */
.prose { font-size: 17px; line-height: 1.65; }
.prose h2 { scroll-margin-top: 20px; } .prose h3 { font: 700 19px/1.3 var(--display); margin: 24px 0 6px; }
.prose ul, .prose ol { padding-left: 22px; } .prose li { margin: 6px 0; }
.prose code { background: var(--violet-2); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.prose pre { background: #17151f; color: #f3f0ff; padding: 14px 16px; border-radius: 14px; overflow: auto; } .prose pre code { background: none; padding: 0; }
.tbl { overflow-x: auto; margin: 16px 0; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; } .tbl th { text-align: left; background: var(--violet-2); padding: 10px 12px; font-size: 13.5px; } .tbl td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.note { margin: 16px 0; padding: 14px 16px; border-radius: 14px; background: var(--violet-2); font-size: 15.5px; } .note b { color: var(--violet-deep, var(--violet)); margin-right: 4px; }
.note.warning, .note.heads-up { background: #fff1e6; }
.toc { margin: 18px 0 6px; padding: 14px 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; } .toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 26px; } .toc li { margin: 3px 0; break-inside: avoid; } .toc a { color: var(--ink-2); }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.sources { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); } .sources ol { padding-left: 20px; } .sources a { color: var(--soft); word-break: break-word; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; } .proscons > div { background: #fff; border-radius: 16px; padding: 4px 18px 10px; box-shadow: inset 0 0 0 1.5px var(--line); } .proscons h3 { font: 700 16px var(--display); }
@media (max-width: 600px) { .proscons { grid-template-columns: 1fr; } }
.best { font-size: 17px; }
table.bench th:first-child, table.bench td:first-child { width: 44px; padding-right: 0; } table.bench td:nth-child(2) { white-space: normal; min-width: 180px; }

/* ---------- benchmarks, visual (round 18) ---------- */
.bx-head { padding: 34px 0 8px; max-width: 860px; }
.bx-head h1 { font: 700 clamp(36px, 5vw, 62px)/1.02 var(--display); letter-spacing: -0.045em; margin: 16px 0 12px; }
.bx-head h1 em { font-style: normal; color: var(--violet); display: block; }
.bx-head .lede { font-size: 18px; color: var(--soft); max-width: 40em; margin: 0; }
.bx-lenses { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 22px 0 18px; }
.bx-lenses button { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; cursor: pointer; padding: 8px 12px 8px 8px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 14px/1.2 var(--text, system-ui); color: var(--ink); transition: transform .15s, box-shadow .15s, background .15s; }
.bx-lenses button img { width: 40px; height: 40px; flex: none; object-fit: contain; border-radius: 12px; background: var(--violet-2); padding: 2px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.bx-lenses button:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--violet), 0 10px 22px -16px var(--violet-glow); }
.bx-lenses button:hover img { transform: rotate(-6deg) scale(1.08); }
.bx-lenses button[aria-selected='true'] { background: var(--violet); color: var(--on-accent, #fff); box-shadow: 0 14px 28px -16px var(--violet-glow); }
.bx-lenses button[aria-selected='true'] img { background: rgba(255, 255, 255, 0.9); }
.bx-verdict { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.bx-v { position: relative; overflow: hidden; background: #fff; border-radius: 22px; padding: 18px 20px 16px; box-shadow: var(--shadow); animation: bxIn .45s cubic-bezier(.2,.9,.3,1.2) both; }
.bx-v::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--oc, var(--violet)); }
.bx-v .k { font: 700 11.5px/1 var(--text, system-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.bx-v b { display: block; font: 700 22px/1.15 var(--display); letter-spacing: -0.03em; margin: 8px 0 4px; }
.bx-v.first b { font-size: clamp(26px, 3vw, 36px); }
.bx-v .org { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.bx-v .org i { width: 10px; height: 10px; border-radius: 50%; background: var(--oc); }
.bx-v p { margin: 8px 0 0; font-size: 14.5px; color: var(--soft); }
.bx-v.first { background: linear-gradient(135deg, #fff 55%, color-mix(in srgb, var(--oc) 14%, #fff)); }
.bx-v.wide { grid-column: 1 / -1; }
.bx-v:nth-child(2) { animation-delay: .06s; } .bx-v:nth-child(3) { animation-delay: .12s; }
@keyframes bxIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.bx-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 14px; align-items: start; }
.bx-card { background: #fff; border-radius: 24px; padding: 18px 20px 16px; box-shadow: var(--shadow); }
.bx-card-h h2 { font: 700 20px/1.2 var(--display); letter-spacing: -0.02em; margin: 0; }
.bx-hint { display: block; color: var(--soft); font-size: 13px; margin: 4px 0 12px; }
.bx-race { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.bx-race li { display: grid; grid-template-columns: 24px minmax(120px, 190px) 1fr 58px; gap: 10px; align-items: center; padding: 6px 0; animation: bxIn .4s both; animation-delay: var(--d); }
.bx-race .r { font: 700 14px var(--display); color: var(--soft); text-align: right; }
.bx-race li:first-child .r { color: var(--oc); font-size: 18px; }
.bx-race .nm { min-width: 0; } .bx-race .nm b { display: block; font-size: 14.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-race .nm small { color: var(--soft); font-size: 12px; }
.bx-race .track { position: relative; height: 14px; border-radius: 999px; background: color-mix(in srgb, var(--violet-2) 60%, #f4f3f0); }
.bx-race .bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--oc); animation: bxGrow .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); transform-origin: left; }
.bx-race .ci { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--ink); opacity: .55; }
.bx-race .ci::before, .bx-race .ci::after { content: ''; position: absolute; top: -4px; width: 2px; height: 10px; background: inherit; } .bx-race .ci::before { left: 0; } .bx-race .ci::after { right: 0; }
@keyframes bxGrow { from { transform: scaleX(0); } }
.bx-race .v { font: 700 15px var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.bx-race .v em { display: block; font: 700 10px var(--text, system-ui); font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }
.bx-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.bx-map .gl { stroke: var(--line); stroke-width: 1; }
.bx-map .ax { fill: var(--soft); font: 600 11px var(--text, system-ui); } .bx-map .ax.t { font-size: 12px; }
.bx-map .sw { fill: var(--violet); font: 700 11px var(--text, system-ui); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.bx-map .pt circle { fill: var(--oc); stroke: #fff; stroke-width: 2; transition: r .15s; animation: bxPop .5s cubic-bezier(.3,1.6,.5,1) both; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
.bx-map .pt:hover circle, .bx-map .pt:focus circle { r: 11; }
.bx-map .pt { cursor: pointer; outline: none; }
.bx-map .lb { font: 700 12px var(--text, system-ui); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
@keyframes bxPop { from { transform: scale(0); } }
.bx-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--soft); font-weight: 600; }
.bx-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
@media (max-width: 900px) {
  .bx-verdict { grid-template-columns: 1fr; } .bx-grid { grid-template-columns: 1fr; }
  .bx-lenses { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-right: -16px; }
  .bx-lenses button { flex: none; scroll-snap-align: start; }
  .bx-race li { grid-template-columns: 20px minmax(0, 1fr) 52px; } .bx-race .track { grid-column: 2 / 4; grid-row: 2; height: 10px; }
}
@media (prefers-reduced-motion: reduce) { .bx-v, .bx-race li, .bx-race .bar, .bx-map .pt circle { animation: none; } }
.bx-stack { display: flex; gap: 3px; height: 22px; border-radius: 999px; overflow: hidden; margin: 4px 0 14px; }
.bx-stack i { display: block; min-width: 6px; animation: bxGrow .7s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
.bx-org { display: grid; grid-template-columns: 14px 1fr auto; gap: 2px 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.bx-org .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--oc); }
.bx-org .n { font: 700 22px/1 var(--display); color: var(--oc); }
.bx-org small { grid-column: 2 / 4; color: var(--soft); font-size: 12.5px; }
.bx-grid[hidden], .bx-card[hidden] { display: none !important; }

/* benchmarks: speed lens */
.bx-speed { display: grid; gap: 18px; margin-top: 18px; }
.bx-type { display: grid; gap: 10px; margin-bottom: 12px; }
.bx-type .lane { border-radius: 16px; padding: 12px 14px; background: color-mix(in srgb, var(--oc) 7%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--oc) 25%, transparent); }
.bx-type .lane.done { box-shadow: inset 0 0 0 2px var(--oc); }
.bx-type .who { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.bx-type .who b { font-size: 14.5px; } .bx-type .who small { color: var(--soft); font-size: 12px; }
.bx-type .who .t { margin-left: auto; font: 700 13px var(--display); color: var(--oc); font-variant-numeric: tabular-nums; }
.bx-type p { margin: 0; min-height: 4.2em; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.bx-type .lane:not(.done) p::after { content: ''; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--oc); animation: bxBlink .8s steps(2) infinite; }
@keyframes bxBlink { 50% { opacity: 0; } }
.bx-lanes li { grid-template-columns: 24px minmax(120px, 190px) 1fr 92px; }
.bx-lanes .track { overflow: hidden; }
.bx-lanes .bar { opacity: .3; }
.bx-lanes .dot { position: absolute; top: 1px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--oc); box-shadow: 0 0 10px var(--oc); animation: bxLap var(--lap) linear infinite; }
@keyframes bxLap { from { left: -12px; } to { left: 100%; } }
.bx-lanes .v { display: grid; justify-items: end; line-height: 1.1; font: 700 15px var(--display); }
.bx-lanes .v small { font: 600 11px var(--text); color: var(--soft); }
.bx-lanes .m { white-space: nowrap; font: 600 10.5px var(--text); text-decoration: none; padding: 2px 6px; margin-top: 3px; border-radius: 999px; color: var(--soft); background: #f1f0ee; }
.bx-lanes .m-measured { color: #0b6b47; background: #dff5ea; }
.bx-lanes .m-inferred { color: #8a5a00; background: #fff1cf; }
@media (prefers-reduced-motion: reduce) { .bx-lanes .dot { animation: none; left: auto; right: 0; } }
@media (max-width: 560px) { .bx-lanes li { grid-template-columns: 20px 1fr 74px; } .bx-lanes .track { grid-column: 2 / 4; grid-row: 2; } }
.bx-speed { position: relative; }
.bx-close { justify-self: end; margin-bottom: -6px; font: 700 13.5px var(--text); padding: 9px 14px; border-radius: 999px; border: 0; cursor: pointer; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.bx-close:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bx-lenses button[aria-selected='true'] { cursor: pointer; }
.bx-speed[hidden] { display: none; }
