/* Visual layer for the index pages: cards, tiles, mini bars. Loaded on every static page; only does anything inside .wide pages. */
body.wide .top, body.wide .foot { max-width: 1080px; }
body.wide main { max-width: 1080px; }
body.wide h1 { font-size: clamp(40px, 6vw, 64px); }
body.wide .lede { max-width: 62ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.jump { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--border); background: var(--raised); border-radius: 100px; color: var(--soft); text-decoration: none; font-size: 13.5px; font-weight: 700; transition: border-color .15s, color .15s, transform .15s; }
.jump:hover { border-color: var(--c, var(--accent)); color: var(--ink); transform: translateY(-1px); }
.jump i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); display: inline-block; }
.jump em { font-style: normal; color: var(--faint); font-weight: 600; }

.vh { display: flex; align-items: baseline; gap: 10px; margin: 44px 0 14px; }
.vh h2 { margin: 0; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.vh h2 i { width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, var(--accent)) 20%, transparent); }
.vh .count { color: var(--faint); font-size: 14px; font-weight: 700; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid.big { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--raised); color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color .15s; }
.card:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--border)); color: var(--ink); }
.card h3 { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 800; }
.card .meta { display: flex; align-items: center; gap: 7px; color: var(--soft); font-size: 13px; }
.card .meta .lg { width: 20px; height: 20px; }
.card .score { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--faint); }
.card .score b { font-size: 16px; color: var(--ink); font-weight: 800; }
.card .sub { color: var(--soft); font-size: 13.5px; line-height: 1.45; }
.card .new { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* lab tiles */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 8px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--raised); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--ink); }
.tile .lg { width: 44px; height: 44px; border-radius: 12px; }
.tile .lg img { width: 28px; height: 28px; }
.tile b { font-size: 17px; font-weight: 800; }
.tile small { color: var(--soft); font-size: 13px; line-height: 1.4; }
.tile .strip { display: flex; gap: 3px; margin-top: auto; }
.tile .strip i { height: 5px; border-radius: 3px; background: var(--c); }

/* mini bar rows */
.mini { display: grid; gap: 7px; margin-top: 6px; }
.mini .r { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; }
.mini .r span { color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .r b { color: var(--ink); font-weight: 800; }
.mini .r i { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--border); position: relative; overflow: hidden; }
.mini .r i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 99px; background: var(--c, var(--accent)); }
.mini .r:first-child span { color: var(--ink); font-weight: 700; }

/* compare cards */
.faces { display: flex; align-items: center; margin-bottom: 4px; }
.faces .lg { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--raised); margin-left: -8px; box-shadow: 0 0 0 1px var(--border); }
.faces .lg:first-child { margin-left: 0; }
.faces .lg img { width: 20px; height: 20px; }
.faces .vs { margin-left: 10px; font-size: 12px; color: var(--faint); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* guides */
.gcard { min-height: 160px; justify-content: space-between; }
.gcard .n { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 54px; line-height: 1; color: var(--c); opacity: .9; }
.gcard .go { color: var(--c); font-weight: 800; font-size: 14px; }

/* lab hero */
.hero { display: flex; gap: 18px; align-items: center; margin: 6px 0 4px; }
.hero .lg { width: 64px; height: 64px; border-radius: 18px; flex: none; }
.hero .lg img { width: 40px; height: 40px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 22px 0; }
.stat { border: 1px solid var(--border); background: var(--raised); border-radius: 14px; padding: 12px 14px; }
.stat small { display: block; color: var(--faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.stat b { display: block; font-size: 20px; margin-top: 3px; line-height: 1.2; }
.timeline { position: relative; margin: 8px 0 26px; padding: 26px 0 8px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: var(--border); }
.timeline .tl { position: relative; height: 54px; }
.timeline a.dotl { position: absolute; top: 0; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--c); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--c); transition: transform .15s; }
.timeline a.dotl:hover { transform: scale(1.5); z-index: 2; }
.timeline .yr { position: absolute; top: 28px; transform: translateX(-50%); font-size: 12px; color: var(--faint); font-weight: 700; }
details.plain { margin-top: 30px; }
details.plain > summary { cursor: pointer; color: var(--soft); font-weight: 700; padding: 8px 0; }

@media (max-width: 600px) {
  .grid, .grid.big { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .hero .lg { width: 48px; height: 48px; }
  .vh h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .card, .tile, .jump, .timeline a.dotl { transition: none; } }

.card h3 { color: var(--ink); }
.card .sub { font-weight: 500; line-height: 1.5; }
.card .score { flex-wrap: wrap; row-gap: 0; }
.facts div { border-radius: 14px; }

.card .meta .d { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }
.card.plain-card { min-height: 0; }
.tile:hover { transform: none; border-color: color-mix(in srgb, var(--ink) 35%, var(--border)); }
.gcard > span:nth-child(2) { display: block; line-height: 1.45; }
.gcard .sub { display: block; margin-top: 6px; }

/* benchmark hub cards */
.bcard { gap: 0; padding: 22px 20px 16px; text-align: center; align-items: stretch; }
.bcard .bhead h3 { font-size: 18px; }
.bcard .bhead .sub { display: block; margin: 4px auto 0; max-width: 34ch; color: var(--soft); font-size: 13.5px; }
.bcard .lead { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 20px 0 18px; }
.bcard .lead b { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px; }
.bcard .lead .nm { font-weight: 800; font-size: 15px; color: var(--ink); }
.bcard .lead small { color: var(--faint); font-size: 12px; font-weight: 600; }
.ring { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--border); stroke-width: 3.5; }
.ring circle.arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: calc(var(--p) * 1) 100; }
.ring .lg { width: 32px; height: 32px; border-radius: 50%; }
.ring .lg img { width: 20px; height: 20px; }
.bcard .rows { display: flex; flex-direction: column; gap: 9px; margin-top: auto; text-align: left; }
.bcard .row { display: grid; grid-template-columns: 14px 1fr auto; column-gap: 9px; row-gap: 4px; align-items: center; font-size: 13.5px; }
.bcard .row em { font-style: normal; color: var(--faint); font-weight: 800; font-size: 12px; text-align: center; }
.bcard .row .who2 { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--ink); font-weight: 600; }
.bcard .row .who2 span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard .row .who2 .lg { width: 18px; height: 18px; flex: none; }
.bcard .row .who2 .lg img { width: 12px; height: 12px; }
.bcard .row b { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13.5px; }
.bcard .row i { grid-column: 2 / -1; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 9%, transparent); position: relative; overflow: hidden; }
.bcard .row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 99px; background: color-mix(in srgb, var(--accent) 70%, var(--ink) 0%); opacity: .85; }
.bcard .bfoot { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); border-top: 1px solid var(--border); margin-top: 18px; padding-top: 12px; }
.bcard .bfoot span + span::before { content: "·"; margin-right: 14px; }

/* type: bold Sora for headings and numbers, same as the landing page */
h1 { font-family: 'Sora', sans-serif !important; font-style: normal !important; font-weight: 800 !important; letter-spacing: -0.035em; font-size: clamp(30px, 5vw, 50px) !important; line-height: 1.1 !important; }
body.wide h1 { font-size: clamp(32px, 5vw, 52px) !important; }
.card h3, .tile b, .vh h2, .stat b, .gcard .n { font-family: 'Sora', sans-serif; }
.card h3 { font-weight: 700; letter-spacing: -.01em; }
.gcard .n { font-style: normal; font-weight: 800; font-size: 40px; letter-spacing: -.04em; }
.card .score b { font-family: 'Sora', sans-serif; font-weight: 700; }
.bcard .bhead { min-height: 102px; display: flex; flex-direction: column; justify-content: flex-start; }
.bcard .bfoot span + span::before { display: none; }
.bcard .bfoot { gap: 6px 18px; }

/* centred rows: label centred on the card axis, bar grows symmetrically from the middle */
.bcard .rows { gap: 12px; text-align: center; }
.bcard .row { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bcard .row .lab { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.bcard .row .lab em { font-style: normal; color: var(--faint); font-weight: 800; font-size: 12px; }
.bcard .row .lab .lg { width: 18px; height: 18px; flex: none; }
.bcard .row .lab .lg img { width: 12px; height: 12px; }
.bcard .row .nmx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard .row .lab b { font-family: 'Sora', sans-serif; font-weight: 700; padding-left: 4px; }
.bcard .row i { grid-column: auto; width: 100%; height: 8px; background: transparent; overflow: visible; display: flex; justify-content: center; }
.bcard .row i::after { position: static; width: var(--w); height: 100%; border-radius: 99px; background: var(--accent); opacity: .8; }

/* base .lg has margin-right:9px and a baseline offset: neutralise inside cards so logos sit dead centre */
.ring .lg, .card .lg, .tile .lg, .hero .lg, .faces .lg, .bcard .lg { margin-right: 0; vertical-align: middle; }
.ring .lg { position: relative; margin: 0; }
.faces .lg { margin-left: -8px; }
.faces .lg:first-child { margin-left: 0; }

/* ONE type system: Sora = headings, nav, buttons, labels, numbers. Nunito = reading text only. */
h1, h2, h3, h4, .nav a, .nav, button, input, select, textarea, th, dt, .count, .crumbs, .cta, .brand, .stat small, .stat b, .jump, .tile b, .small.label,
.bn-table caption, .bn-table thead th, .lede + .chips, .foot h4 { font-family: 'Sora', sans-serif; }
h2 { font-weight: 700; letter-spacing: -.02em; }
h3 { font-weight: 700; letter-spacing: -.01em; }
.nav a { font-weight: 600; }
button, input, select, textarea { font-size: inherit; }
.crumbs, .crumbs a { font-size: 13px; }
.bn-table thead th { font-weight: 600; }
.brand { font-weight: 700; letter-spacing: -.02em; }

/* ---- Free AI Model Cost Check: card + landing page (native to the existing theme) ---- */
.cc-card { margin: 38px 0; padding: 22px 22px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--raised); }
.cc-card h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
.cc-card .cc-sub { margin: 0 0 12px; color: var(--soft); font-size: 15.5px; }
.cc-card ul, .cc-hero ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink); font-size: 15.5px; }
.cc-card li, .cc-hero li { margin: 5px 0; }
.cc-btn { cursor: pointer; border: 0; font: inherit; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; transition: filter .15s; }
.cc-btn:hover { filter: brightness(1.08); color: #07080a; }
.cc-btn:focus-visible, .cc-opt:focus-within, .cc-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cc-btn:disabled { opacity: .55; cursor: not-allowed; }
.cc-hero { margin-bottom: 8px; }
.cc-form { margin: 14px 0 6px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--raised); display: grid; gap: 18px; }
.cc-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.cc-field label, .cc-field legend { display: block; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; padding: 0; }
.cc-field > label > span, .cc-field > legend > span { color: var(--accent); }
.cc-form input[type=email], .cc-form input[type=text] { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.cc-form input[aria-invalid=true] { border-color: #ff6b6b; }
.cc-opts { display: flex; flex-wrap: wrap; gap: 9px; }
.cc-field .cc-opt { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 15px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); cursor: pointer; min-height: 44px; }
.cc-opt span { color: var(--ink); white-space: nowrap; }
.cc-opt input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; }
.cc-field .cc-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.cc-err { margin: 6px 0 0; min-height: 0; color: #ff8a8a; font-size: 13.5px; }
:root[data-theme="light"] .cc-err, :root[data-theme="light"] .cc-status.is-err { color: #b3261e; }
.cc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cc-consent { margin: 0; color: var(--faint); font-size: 13.5px; }
.cc-submit { justify-self: start; padding: 13px 24px; }
.cc-status { margin: 0; min-height: 1.4em; color: var(--soft); font-size: 14.5px; }
.cc-status.is-err { color: #ff8a8a; font-weight: 600; }
.cc-done, .cc-fallback { margin: 14px 0; padding: 22px; border: 1px solid var(--accent); border-radius: 16px; background: var(--raised); }
.cc-fallback { border-color: var(--border); }
.cc-done h2 { margin-top: 0; }
.cc-disc { margin-top: 26px; }
@media (max-width: 600px) { .cc-card, .cc-form { padding: 18px 16px; } .cc-submit, .cc-card .cc-btn { width: 100%; text-align: center; } }
.cc-form[hidden], .cc-done[hidden], .cc-fallback[hidden] { display: none !important; }
.cc-hero h1 { font-size: clamp(28px, 4.2vw, 40px) !important; line-height: 1.15 !important; }

/* ---- cost-check landing v2: visual hero, step + benefit cards, two-column form, FAQ ---- */
.cc-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: center; margin: 4px 0 8px; }
.cc-eyebrow { margin: 6px 0 4px; font: 700 12px 'Sora', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cc-hero-copy h1 { margin-top: 0; }
.cc-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 4px 0 0; }
.cc-hero-cta span { color: var(--faint); font-size: 14px; }
/* pipeline diagram (decorative, no figures) */
.cc-viz { display: grid; grid-template-columns: 1fr 22px 1.15fr 22px 1.15fr; align-items: center; gap: 6px; padding: 20px 16px; border: 1px solid var(--border); border-radius: 18px; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--raised); }
.viz-col { display: grid; gap: 8px; align-content: center; }
.viz-lab { font: 700 10.5px 'Sora', sans-serif; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); text-align: center; margin-bottom: 2px; }
.viz-prompt { border: 1px solid var(--border); background: var(--bg); border-radius: 9px; padding: 9px 10px; display: grid; gap: 5px; }
.viz-prompt i { display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.viz-prompt i.s { width: 60%; }
.viz-arrow { height: 2px; background: linear-gradient(90deg, transparent, var(--accent)); position: relative; opacity: .85; }
.viz-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid var(--accent); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.viz-model { border: 1px solid var(--border); border-left-width: 3px; background: var(--bg); border-radius: 9px; padding: 9px 11px; }
.viz-model b { display: block; font: 700 13px 'Sora', sans-serif; }
.viz-model small { color: var(--soft); font-size: 12px; }
.viz-model.m1 { border-left-color: var(--accent); }
.viz-model.m2 { border-left-color: color-mix(in srgb, var(--accent) 55%, var(--ink) 25%); }
.viz-model.m3 { border-left-color: color-mix(in srgb, var(--ink) 55%, transparent); }
.viz-report { border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--bg); border-radius: 12px; padding: 6px 10px; box-shadow: 0 10px 28px -16px var(--accent); }
.viz-report div { display: flex; align-items: center; gap: 8px; padding: 9px 0; font: 600 12.5px 'Sora', sans-serif; }
.viz-report div + div { border-top: 1px solid var(--border); }
.viz-report span { width: 20px; height: 20px; color: var(--accent); flex: none; }
.viz-report svg { width: 100%; height: 100%; display: block; }
/* icons */
.cc-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); flex: none; }
.cc-ico svg { width: 22px; height: 22px; }
.cc-ico.sm { width: 28px; height: 28px; border-radius: 8px; } .cc-ico.sm svg { width: 16px; height: 16px; }
.cc-ico.big { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 12px; } .cc-ico.big svg { width: 28px; height: 28px; }
/* steps */
.cc-steps { list-style: none; padding: 0; margin: 14px 0 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; }
.cc-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--raised); }
.cc-steps b { font: 700 16px 'Sora', sans-serif; margin-top: 6px; }
.cc-steps li > span:last-child { color: var(--soft); font-size: 15px; }
.cc-steps li:not(:last-child)::before { content: ""; position: absolute; top: 39px; right: -14px; width: 14px; height: 2px; background: var(--accent); opacity: .7; z-index: 1; }
/* benefits */
.cc-get { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 14px 0 6px; }
.cc-get > div { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--raised); }
.cc-get p { margin: 2px 0 0; font-size: 15.5px; }
/* form + side panel */
.cc-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 22px; align-items: start; margin: 14px 0 6px; }
.cc-next { position: sticky; top: 18px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--raised); }
.cc-next h3 { margin: 0 0 12px; font-size: 16px; }
.cc-next ol { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; gap: 14px; }
.cc-next li { counter-increment: n; position: relative; padding-left: 38px; }
.cc-next li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font: 700 13px/26px 'Sora', sans-serif; text-align: center; }
.cc-next li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 30px; bottom: -12px; width: 2px; background: var(--border); }
.cc-next b { display: block; font: 700 14.5px 'Sora', sans-serif; }
.cc-next li span { color: var(--soft); font-size: 14px; }
.cc-note { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); color: var(--soft); font-size: 13.5px; }
.cc-formcol .cc-form { margin: 0; }
/* FAQ */
.cc-faq { display: grid; gap: 10px; margin: 12px 0 6px; }
.cc-faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--raised); padding: 0 18px; }
.cc-faq summary { cursor: pointer; list-style: none; padding: 15px 26px 15px 0; font: 700 15.5px 'Sora', sans-serif; position: relative; }
.cc-faq summary::-webkit-details-marker { display: none; }
.cc-faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); font-weight: 400; }
.cc-faq details[open] summary::after { content: "\2212"; }
.cc-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.cc-faq details p { margin: 0 0 16px; color: var(--soft); font-size: 15.5px; }
@media (max-width: 900px) {
  .cc-hero { grid-template-columns: 1fr; gap: 22px; }
  .cc-grid { grid-template-columns: 1fr; }
  .cc-next { position: static; order: 2; }
}
@media (max-width: 720px) {
  .cc-steps, .cc-get { grid-template-columns: 1fr; }
  .cc-steps li:not(:last-child)::before { display: none; }
  .cc-viz { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .viz-arrow { width: 2px; height: 22px; margin: 0 auto; background: linear-gradient(180deg, transparent, var(--accent)); }
  .viz-arrow::after { right: auto; left: -4px; top: auto; bottom: -1px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--accent); border-bottom: 0; }
  .viz-prompt { grid-template-columns: 1fr 1fr; align-items: center; }
}
@media (prefers-reduced-motion: no-preference) { .cc-faq details[open] p { animation: ccfade .2s ease; } @keyframes ccfade { from { opacity: 0; transform: translateY(-4px); } } }
.cc-hero-copy h1 { font-size: clamp(28px, 3.6vw, 40px) !important; }
.cc-grid { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.cc-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.cc-viz { grid-template-columns: .9fr 18px 1.25fr 18px 1.25fr; padding: 22px 14px; }
.viz-model b { font-size: 12.5px; line-height: 1.25; white-space: nowrap; }
.viz-model small { display: block; line-height: 1.3; margin-top: 2px; font-size: 11.5px; }
.viz-report div { line-height: 1.25; }
.viz-lab { line-height: 1.3; }

/* mobile rules LAST so they beat the desktop overrides above */
@media (max-width: 900px) {
  .cc-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cc-grid { grid-template-columns: minmax(0, 1fr); }
  .cc-next { position: static; order: 2; }
}
@media (max-width: 720px) {
  .cc-viz { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
  .viz-model b { white-space: normal; }
  .viz-col { min-width: 0; }
}

/* nav: quiet accent for the cost check link; stays readable when it is the current page */
.nav a.cc-nav { color: var(--accent); }
.nav a.cc-nav.on { color: #07080a; }

/* phones: six nav items do not fit on one line, so wrap them instead of hiding the last one */
@media (max-width: 560px) {
  .nav { flex-wrap: wrap; overflow: visible; max-width: 100%; border-radius: 22px; justify-content: center; }
  .nav a { padding: 7px 11px; }
  .top-right { flex-wrap: nowrap; width: 100%; align-items: flex-start; }
  .nav { flex: 1 1 auto; min-width: 0; }
  .theme-btn { flex: none; }
}

/* light theme: the accent is a deep orange, so filled orange controls get white text for contrast */
:root[data-theme="light"] .cta, :root[data-theme="light"] .nav a.on, :root[data-theme="light"] .nav a.cc-nav.on,
:root[data-theme="light"] .cc-btn, :root[data-theme="light"] .cc-btn:hover { color: #fff; }

/* ---- model pages: hero, score card, lineage strip, card grids ---- */
.mhero { padding: 22px 24px 16px; margin: 8px 0 16px; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 15%, var(--raised)), var(--raised) 68%); }
.mhero-top { display: flex; gap: 18px; align-items: center; }
.mhero .chip { margin: 0 0 8px; }
.mhero h1 { margin: 0 0 4px; }
.mhero .sub { margin: 0; }
.lg.lgxl { width: 76px; height: 76px; border-radius: 20px; margin: 0; flex: none; vertical-align: middle; }
.lgxl img { width: 46px; height: 46px; }
.mhero .answer { margin: 18px 0 8px; }
.mhero .lede { margin: 0 0 6px; }
.mhero .small { margin: 8px 0 0; }
.mgrid2 { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 14px; align-items: stretch; margin: 0 0 6px; }
.mgrid2:not(:has(.scorecard)) { grid-template-columns: minmax(0, 1fr); }
.mgrid2 .facts { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts .wide { grid-column: 1 / -1; }
.scorecard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--border)); border-radius: 14px; background: var(--raised); text-decoration: none; color: var(--ink); }
.scorecard:hover { border-color: var(--accent); color: var(--ink); }
.scorecard .ring { width: 62px; height: 62px; flex: none; }
.scorecard .ring b { position: relative; font: 700 14px 'Sora', sans-serif; }
.sc-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sc-t small { color: var(--faint); font: 700 10.5px 'Sora', sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.sc-t b { font: 800 26px 'Sora', sans-serif; letter-spacing: -.03em; }
.sc-t span { color: var(--soft); font-size: 13px; }
.path { flex-wrap: nowrap; overflow-x: auto; gap: 0; padding: 8px 2px 16px; margin: 10px 0; scrollbar-width: thin; }
.path li { flex: none; position: relative; margin-left: 28px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 99px; background: var(--raised); font-size: 14px; white-space: nowrap; }
.path li:first-child { margin-left: 0; }
.path li:not(:last-child)::after { content: none; }
.path li + li::before { content: ""; position: absolute; left: -29px; top: 50%; width: 28px; height: 2px; background: color-mix(in srgb, var(--ink) 25%, var(--border)); }
.path li a { color: var(--ink); text-decoration: none; }
.path li a:hover { color: var(--accent); }
.path .here { background: var(--accent); border-color: var(--accent); color: #07080a; font-weight: 800; }
:root[data-theme="light"] .path .here { color: #fff; }
.grid.sm { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin: 6px 0 10px; }
.grid.sm .card h3 { font-size: 15px; }
@media (max-width: 700px) {
  .mgrid2 { grid-template-columns: minmax(0, 1fr); }
  .mhero { padding: 18px 16px 12px; }
  .lg.lgxl { width: 56px; height: 56px; border-radius: 15px; } .lgxl img { width: 34px; height: 34px; }
  .mhero-top { gap: 14px; }
}

/* compare hub cards: same centred pattern as the benchmark cards */
.cmpcard .faces { justify-content: center; margin: 0 0 12px; }
.cmpcard .faces .lg { width: 38px; height: 38px; }
.cmpcard .faces .lg img { width: 22px; height: 22px; }
.cmpcard .bhead { min-height: 78px; }
.cmpcard .bhead h3 { font-size: 16.5px; }
.cmpcard .rows { margin-top: 14px; }
.cmpcard .row.lead1 .lab { font-weight: 800; }
.cmpcard .row.lead1 i::after { opacity: 1; }
.facts { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* phones: wide score tables must wrap inside the column instead of pushing the page sideways */
@media (max-width: 600px) {
  .bn-table { font-size: 13px; }
  .bn-table th, .bn-table td { padding: 8px 6px 8px 0; overflow-wrap: anywhere; word-break: normal; }
  .bn-table a { overflow-wrap: anywhere; }
}

/* long source URLs in answers must wrap instead of widening the page */
main p, main li, main dd { overflow-wrap: anywhere; }
.bn-rows { min-width: 0; }
.mhero-top > div { min-width: 0; }
h1 { overflow-wrap: anywhere; }
