/*
  Comparison pages: /compare and every "<tool> alternative" page.

  Loaded after stage_pages.css and built on its tokens (--st-*), buttons,
  headings, FAQ, quotes and CTA, so these pages look like the rest of the
  current marketing site. Everything here is comparison specific and scoped
  under .cmp. House rules kept: brand blues only, flat backgrounds (no blobs,
  dot grids or glows), tight neutral shadows, .dark overrides, no horizontal
  page scroll at 375px (the hub matrix scrolls inside its own frame).
*/
.cmp { --cmp-nav-h: 73px; --cmp-jump-h: 3.25rem; --cmp-mono-bg: #eef1f6; --cmp-mono-fg: #334155;
  --cmp-us-bg: #f3f6ff; --cmp-them-bar: #a3b1c6; --cmp-row-hover: #f8faff; }
.dark .cmp { --cmp-mono-bg: #1e293b; --cmp-mono-fg: #e2e8f0; --cmp-us-bg: rgba(53,109,255,.09); --cmp-them-bar: #475569; --cmp-row-hover: rgba(255,255,255,.025); }
.cmp section[id] { scroll-margin-top: calc(var(--cmp-nav-h) + var(--cmp-jump-h) + 1rem); }
.cmp-h3 { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 780; letter-spacing: -.015em; color: var(--st-ink); }

/* ------------------------------------------------------------------ marks */
.cmp-mono { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: .5rem;
  background: var(--cmp-mono-bg); color: var(--cmp-mono-fg); font-weight: 800; font-size: .85rem; letter-spacing: -.02em; }
.cmp-mono--sm { width: 1.25rem; height: 1.25rem; border-radius: .35rem; font-size: .66rem; }
.cmp-dot { width: 3px; height: 3px; border-radius: 9px; background: currentColor; opacity: .45; }

/* ------------------------------------------------------------------- hero */
.cmp-hero { background: linear-gradient(180deg, #eef3ff 0%, #f7f9ff 55%, var(--st-bg) 100%); }
.dark .cmp-hero { background: linear-gradient(180deg, #0d1730 0%, #0b1220 70%); }
.cmp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.75rem; align-items: center; padding-block: 6.5rem 3.75rem; }
@media (min-width: 1024px) { .cmp-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3.5rem; padding-block: 7.5rem 4.75rem; } }
.cmp-crumbs { justify-content: flex-start; }
.cmp-h1 { margin: 0; font-size: clamp(2.25rem, 4.7vw, 3.85rem); font-weight: 820; letter-spacing: -.038em; line-height: 1.04; color: var(--st-ink); text-wrap: balance; }
.cmp-h1 em { font-style: normal; color: var(--st-accent); background: linear-gradient(currentColor, currentColor) 0 94% / 100% .075em no-repeat; }
.cmp-answer { margin: 1.35rem 0 0; max-width: 38rem; font-size: 1.12rem; line-height: 1.68; color: var(--st-body); text-wrap: pretty; }
.cmp-ctas { justify-content: flex-start; margin-top: 1.9rem; }
.cmp-stamp { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin: 1.6rem 0 0; font-size: .85rem; color: var(--st-muted); }
.cmp-stamp i { color: var(--st-blue); }
.cmp-stamp a { color: var(--st-link); font-weight: 650; }
.cmp-stamp a:hover { color: var(--st-link-hover); }
@media (max-width: 640px) { .cmp-stamp .cmp-dot { display: none; } .cmp-stamp { gap: .35rem .9rem; } }

/* scorecard */
.cmp-score { padding: 1.5rem; border-radius: 1.5rem; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line), 0 18px 36px -22px rgba(15,23,42,.28); }
@media (min-width: 640px) { .cmp-score { padding: 1.85rem; } }
.cmp-score-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--st-line); }
.cmp-brand { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; font-weight: 780; font-size: 1.02rem; color: var(--st-ink); }
.cmp-brand img { width: 1.75rem; height: 1.75rem; }
.cmp-brand--them { justify-content: flex-end; text-align: end; }
.cmp-vs { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 99px; background: var(--st-tint); color: var(--st-link); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cmp-score-price { padding: 1.15rem 0 .35rem; }
.cmp-score-label { margin: 0 0 .85rem; font-size: .9rem; font-weight: 700; color: var(--st-ink); }
.cmp-score-label span { font-weight: 500; color: var(--st-muted); }
.cmp-score-rows { margin: 0; padding: .4rem 0 0; }
.cmp-score-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .35rem 1rem; padding: .85rem 0; border-top: 1px solid var(--st-line); }
.cmp-score-row dt { grid-column: 1 / -1; font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--st-muted); }
.cmp-score-row dd { display: flex; align-items: flex-start; gap: .45rem; margin: 0; font-size: .93rem; line-height: 1.4; color: var(--st-body); }
.cmp-score-row dd i { margin-top: .18rem; }
.cmp-score-us { font-weight: 650; color: var(--st-ink) !important; }
.cmp-score-foot { margin-top: .6rem; font-size: .92rem; }

/* status colours (shared by the scorecard, table and matrix) */
.cmp .fa-circle-check { color: var(--st-ok); }
.cmp .fa-circle-half-stroke, .cmp .fa-circle-dollar-to-slot { color: var(--st-warn); }
.cmp .fa-circle-xmark { color: var(--st-no); }
.cmp .fa-circle-info { color: var(--st-faint); }

/* price bars */
.cmp-bar { display: grid; grid-template-columns: minmax(5.5rem, .8fr) minmax(0, 1.6fr) 11.5rem; align-items: center; gap: .75rem; padding: .4rem 0; }
.cmp-score .cmp-bar { grid-template-columns: minmax(5.5rem, .8fr) minmax(0, 1.4fr) 6.5rem; }
.cmp-bar-who { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; font-size: .92rem; font-weight: 650; color: var(--st-ink); overflow-wrap: anywhere; }
.cmp-bar-who a { color: inherit; }
.cmp-bar-who a:hover { color: var(--st-link); }
.cmp-bar-track { position: relative; height: .7rem; border-radius: 99px; background: var(--st-soft); box-shadow: inset 0 0 0 1px var(--st-line); overflow: hidden; }
.cmp-bar-fill { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: inherit; background: var(--cmp-them-bar); transition: width .6s var(--st-ease); }
.cmp-bar--us .cmp-bar-fill { background: linear-gradient(90deg, #2a57d6, #356dff); }
.cmp-bar-amt { display: flex; flex-direction: column; align-items: flex-end; text-align: end; line-height: 1.2; }
.cmp-bar-amt b { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--st-ink); font-variant-numeric: tabular-nums; }
.cmp-bar--us .cmp-bar-amt b { color: var(--st-accent); }
.cmp-bar-amt small { font-size: .74rem; line-height: 1.35; color: var(--st-muted); }
@media (max-width: 520px) {
  .cmp-bar { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; }
  .cmp-bar-track { grid-column: 1 / -1; grid-row: 2; }
}

/* --------------------------------------------------------------- jump nav */
.cmp-jump { position: sticky; top: var(--cmp-nav-h); z-index: 20; background: var(--st-bg); background: color-mix(in srgb, var(--st-bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-block: 1px solid var(--st-line); }
.cmp-jump-inner { display: flex; align-items: center; gap: 1.25rem; height: var(--cmp-jump-h); }
.cmp-jump-title { flex: none; font-weight: 750; font-size: .9rem; color: var(--st-ink); }
.cmp-jump-links { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.cmp-jump-links::-webkit-scrollbar { display: none; }
.cmp-jump-links a { padding: .45rem .75rem; border-radius: .6rem; font-size: .88rem; font-weight: 600; color: var(--st-muted); white-space: nowrap; transition: color .2s, background .2s; }
.cmp-jump-links a:hover, .cmp-jump-links a[aria-current] { color: var(--st-link); background: var(--st-tint); }
@media (max-width: 860px) { .cmp-jump-title { display: none; } }

/* ---------------------------------------------------------------- verdict */
.cmp-verdict { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); max-width: 66rem; margin: 0 auto; }
@media (min-width: 860px) { .cmp-verdict { grid-template-columns: 1.08fr .92fr; } }
.cmp-verdict-card { padding: 1.9rem; border-radius: 1.5rem; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line); }
.cmp-verdict-card h3 { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.2rem; font-size: 1.2rem; font-weight: 780; color: var(--st-ink); }
.cmp-verdict-card ul { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.cmp-verdict-card li { display: flex; gap: .7rem; font-size: 1rem; line-height: 1.55; color: var(--st-body); }
.cmp-verdict-card li i { margin-top: .32rem; font-size: .8rem; color: var(--st-muted); }
.cmp-verdict-card--us { background: linear-gradient(160deg, #1e3ea8, #2a57d6 55%, #356dff); box-shadow: 0 18px 36px -22px rgba(30,62,168,.6); }
.cmp-verdict-card--us h3, .cmp-verdict-card--us li { color: #fff; }
.cmp-verdict-card--us li { color: #e6edff; }
.cmp-verdict-card--us li i { color: #b9ccff; }
.cmp-verdict-card--us img { width: 1.6rem; height: 1.6rem; border-radius: .45rem; background: #fff; padding: .15rem; }

/* ---------------------------------------------------------------- reasons */
.cmp-reasons { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .cmp-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .cmp-reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cmp-reason { padding: 1.7rem; border-radius: 1.35rem; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line), var(--st-shadow); transition: transform .35s var(--st-ease), box-shadow .35s; }
.cmp-reason:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--st-tint-3), var(--st-lift); }
.cmp-reason h3 { margin: 1.1rem 0 .5rem; font-size: 1.12rem; font-weight: 760; letter-spacing: -.012em; color: var(--st-ink); }
.cmp-reason p { margin: 0; font-size: .98rem; line-height: 1.62; color: var(--st-body); }

/* ------------------------------------------------------------------ table */
.cmp-table-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin: 0 0 1rem; }
.cmp-diff-toggle[aria-pressed="true"] { background: var(--st-blue); color: #fff; box-shadow: none; }
.cmp-diff-toggle[hidden], .cmp [hidden] { display: none !important; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--st-muted); }
.cmp-legend span { display: inline-flex; align-items: center; gap: .35rem; }
/* No overflow:hidden on the frame: it would trap the sticky header inside it. */
.cmp-table-wrap { border-radius: 1.4rem; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line), var(--st-shadow); }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.cmp-table thead th { position: sticky; top: calc(var(--cmp-nav-h) + var(--cmp-jump-h) + 2px); z-index: 4; padding: 1rem 1.25rem; text-align: start; vertical-align: bottom;
  background: var(--st-card); border-bottom: 1px solid var(--st-line-2); }
.cmp-table thead th:first-child { border-top-left-radius: 1.4rem; }
.cmp-table thead th:last-child { border-top-right-radius: 1.4rem; }
.cmp-table thead th.cmp-col-us { background-image: linear-gradient(var(--cmp-us-bg), var(--cmp-us-bg)); box-shadow: inset 0 3px 0 var(--st-blue); }
.cmp-col-feat { width: 34%; font-size: .74rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--st-muted); }
.cmp-th { display: inline-flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 780; color: var(--st-ink); }
.cmp-th img { width: 1.25rem; height: 1.25rem; }
.cmp-group th { padding: .8rem 1.25rem; background: var(--st-soft); border-block: 1px solid var(--st-line); text-align: start;
  font-size: .72rem; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; color: var(--st-muted); }
.cmp-table tbody tr:not(.cmp-group) > * { padding: 1rem 1.25rem; vertical-align: top; border-bottom: 1px solid var(--st-line); }
.cmp-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.cmp-table tbody:last-child tr:last-child > :first-child { border-bottom-left-radius: 1.4rem; }
.cmp-table tbody:last-child tr:last-child > :last-child { border-bottom-right-radius: 1.4rem; }
.cmp-table td.cmp-col-us { background: var(--cmp-us-bg); }
.cmp-table tbody tr:not(.cmp-group):hover > * { background-color: var(--cmp-row-hover); }
.cmp-table tbody tr:not(.cmp-group):hover > td.cmp-col-us { background-color: color-mix(in srgb, var(--st-blue) 9%, var(--st-card)); }
.cmp-feat { text-align: start; font-weight: 650; color: var(--st-ink); }
.cmp-feat small { display: block; margin-top: .3rem; font-size: .82rem; font-weight: 400; line-height: 1.5; color: var(--st-muted); }
.cmp-val { display: inline-flex; align-items: flex-start; gap: .55rem; line-height: 1.45; }
.cmp-val > i { margin-top: .2rem; font-size: 1rem; }
.cmp-val-txt { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cmp-val-txt b { font-weight: 650; color: var(--st-ink); }
.cmp-col-them .cmp-val-txt b { font-weight: 600; color: var(--st-body); }
.cmp-val-txt small { font-size: .82rem; line-height: 1.5; color: var(--st-muted); }
.cmp-cite { font-size: .7rem; line-height: 1; }
.cmp-cite a { color: var(--st-link); font-weight: 700; }
.cmp-table tr[data-same][hidden] { display: none; }
@media (max-width: 760px) {
  .cmp-table thead { display: none; }
  .cmp-table, .cmp-table tbody { display: block; }
  .cmp-table tbody tr:not(.cmp-group) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--st-line); }
  .cmp-table tbody tr:not(.cmp-group) > * { border-bottom: 0; padding: .8rem 1rem; }
  .cmp-table tbody tr:not(.cmp-group) > th { grid-column: 1 / -1; padding-bottom: .2rem; }
  .cmp-table tbody tr:not(.cmp-group) > td::before { content: attr(data-who); display: block; margin-bottom: .35rem; font-size: .68rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; color: var(--st-muted); }
  .cmp-table td.cmp-col-us::before { color: var(--st-link) !important; }
  .cmp-group, .cmp-group th { display: block; }
  .cmp-table tbody:first-child .cmp-group th { border-radius: 1.4rem 1.4rem 0 0; border-top: 0; }
  .cmp-val { gap: .4rem; }
}

/* ------------------------------------------------------------- calculator */
.cmp-calc { max-width: 60rem; margin: 0 auto; padding: 1.5rem; border-radius: 1.5rem; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line), var(--st-shadow); }
@media (min-width: 640px) { .cmp-calc { padding: 2rem; } }
.cmp-calc-inputs { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 1.5rem; border-bottom: 1px solid var(--st-line); }
@media (min-width: 860px) { .cmp-calc-inputs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cmp-step label, .cmp-step-label { display: block; margin-bottom: .45rem; font-size: .8rem; font-weight: 700; color: var(--st-muted); }
.cmp-step-ctl { display: flex; align-items: stretch; height: 2.75rem; border-radius: .8rem; background: var(--st-soft); box-shadow: inset 0 0 0 1px var(--st-line-2); overflow: hidden; }
.cmp-step-ctl button { flex: none; width: 2.6rem; border: 0; background: transparent; color: var(--st-link); cursor: pointer; font-size: .8rem; transition: background .2s; }
.cmp-step-ctl button:hover { background: var(--st-tint); }
.cmp-step-ctl input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; text-align: center; font: inherit; font-size: 1.05rem; font-weight: 750; color: var(--st-ink); -moz-appearance: textfield; }
.cmp-step-ctl input::-webkit-outer-spin-button, .cmp-step-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cmp-step-ctl input:focus { outline: none; }
.cmp-step-ctl:focus-within { box-shadow: inset 0 0 0 2px var(--st-blue); }
.cmp-seg { display: flex; height: 2.75rem; padding: .25rem; border-radius: .8rem; background: var(--st-soft); box-shadow: inset 0 0 0 1px var(--st-line-2); }
.cmp-seg button { flex: 1; border: 0; border-radius: .6rem; background: transparent; color: var(--st-muted); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.cmp-seg button[aria-pressed="true"] { background: var(--st-card); color: var(--st-ink); box-shadow: 0 1px 2px rgba(15,23,42,.12), 0 0 0 1px var(--st-line); }
.cmp-calc-sum { margin: 1.25rem 0 .5rem; font-size: .92rem; color: var(--st-muted); }
.cmp-calc-out { margin: 0; padding: 0; list-style: none; }
.cmp-calc-out .cmp-bar { padding: .55rem 0; border-bottom: 1px dashed var(--st-line); }
.cmp-calc-out .cmp-bar:last-child { border-bottom: 0; }
.cmp-calc-out .cmp-bar--us { margin: 0 -.75rem; padding-inline: .75rem; border-radius: .8rem; background: var(--cmp-us-bg); border-bottom-color: transparent; }
.cmp-calc-verdict { margin: 1.1rem 0 0; padding: .9rem 1.1rem; border-radius: .9rem; background: var(--st-tint); color: var(--st-ink); font-weight: 650; font-size: .98rem; }
.cmp-calc-verdict:empty { display: none; }
.cmp-calc-note { max-width: 52rem; margin-inline: auto; line-height: 1.6; }
.cmp-calc-note a { color: var(--st-link); font-weight: 650; }

/* scenario table */
.cmp-scen-wrap { max-width: 60rem; margin: 1.5rem auto 0; border-radius: 1.3rem; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line); overflow: hidden; }
.cmp-scen { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cmp-scen caption { padding: 1rem 1.25rem .25rem; text-align: start; font-size: .85rem; font-weight: 700; color: var(--st-muted); }
.cmp-scen th, .cmp-scen td { padding: .9rem 1.25rem; text-align: start; vertical-align: top; border-top: 1px solid var(--st-line); }
.cmp-scen thead th { font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--st-muted); }
.cmp-scen b { display: block; font-weight: 750; color: var(--st-ink); }
.cmp-scen small { display: block; margin-top: .15rem; font-size: .8rem; color: var(--st-muted); }
.cmp-scen td:nth-child(2) b { color: var(--st-accent); }
@media (max-width: 640px) {
  .cmp-scen thead { display: none; }
  .cmp-scen tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--st-line); }
  .cmp-scen th, .cmp-scen td { border: 0; padding: .7rem 1rem; }
  .cmp-scen tbody th { grid-column: 1 / -1; padding-bottom: 0; }
  .cmp-scen td::before { content: attr(data-who); display: block; font-size: .66rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; color: var(--st-muted); }
}

/* ------------------------------------------------------------- deep dives */
.cmp-dive { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
.cmp-dive + .cmp-dive { margin-top: 5.5rem; }
@media (min-width: 980px) {
  .cmp-dive { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; }
  .cmp-dive:nth-child(even) .cmp-dive-media { order: -1; }
}
.cmp-dive--wide, .cmp-dive--solo { grid-template-columns: minmax(0, 1fr) !important; }
.cmp-dive--wide .cmp-dive-copy, .cmp-dive--solo .cmp-dive-copy { max-width: 46rem; margin: 0 auto; }
.cmp-dive--wide .cmp-dive-media { order: 0 !important; }
.cmp-dive-media { min-width: 0; }
.cmp-dive-h { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cmp-dive-body { margin: 1rem 0 0; font-size: 1.06rem; line-height: 1.7; color: var(--st-body); }
.cmp-dive-list { display: grid; gap: .7rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.cmp-dive-list li { display: flex; gap: .65rem; font-size: .98rem; line-height: 1.55; color: var(--st-body); }
.cmp-dive-list i { margin-top: .32rem; font-size: .8rem; color: var(--st-blue); }
.cmp-dive-vs { margin: 1.4rem 0; padding: .95rem 1.15rem; border-radius: .9rem; background: var(--st-soft); box-shadow: inset 0 0 0 1px var(--st-line); font-size: .94rem; line-height: 1.6; color: var(--st-body); }
.cmp-dive-vs b { color: var(--st-ink); }

/* ------------------------------------------------------------------ steps */
.cmp-steps { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); max-width: 72rem; margin: 0 auto; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 760px) { .cmp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cmp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cmp-step-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: 1.3rem; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line); }
.cmp-step-n { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 99px; background: var(--st-blue); color: #fff; font-weight: 800; }
.cmp-step-card h3 { margin: 0 0 .4rem; font-size: 1.04rem; font-weight: 760; color: var(--st-ink); }
.cmp-step-card p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--st-body); }

/* ---------------------------------------------------------------- sources */
.cmp-sources { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cmp-sources { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.cmp-source-list { margin: 0; -webkit-padding-start: 1.4rem; padding-inline-start: 1.4rem; display: grid; gap: .7rem; color: var(--st-muted); list-style: decimal; }
.cmp-source-list li { -webkit-padding-start: .3rem; padding-inline-start: .3rem; }
.cmp-source-list li:target { border-radius: .4rem; background: var(--st-tint); }
.cmp-source-list a { display: block; font-weight: 650; color: var(--st-link); }
.cmp-source-list span { display: block; font-size: .8rem; color: var(--st-faint); overflow-wrap: anywhere; }
.cmp-method p { margin: 0 0 .9rem; font-size: .98rem; line-height: 1.68; color: var(--st-body); }
.cmp-method a { color: var(--st-link); font-weight: 650; }
.cmp-method-meta { font-size: .86rem !important; color: var(--st-muted) !important; }

/* ------------------------------------------------------------------ cards */
.cmp-cards { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cmp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cmp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cmp-card { display: flex; flex-direction: column; gap: .55rem; padding: 1.5rem; border-radius: 1.3rem; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line), var(--st-shadow); color: var(--st-body); transition: transform .35s var(--st-ease), box-shadow .35s; }
.cmp-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--st-tint-3), var(--st-lift); }
.cmp-card h3 { margin: .35rem 0 0; font-size: 1.1rem; font-weight: 760; color: var(--st-ink); }
.cmp-card p { flex: 1; margin: 0; font-size: .94rem; line-height: 1.55; }
.cmp-card .st-link { margin-top: .4rem; font-size: .9rem; }
.cmp-card-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.cmp-tag { padding: .22rem .6rem; border-radius: 99px; background: var(--st-soft); box-shadow: inset 0 0 0 1px var(--st-line); font-size: .74rem; font-weight: 650; color: var(--st-muted); white-space: nowrap; }
.cmp-card--closed { opacity: .82; }
.cmp-card--hub { background: var(--st-tint); box-shadow: 0 0 0 1px var(--st-tint-3); }
.cmp-card[hidden] { display: none; }

/* -------------------------------------------------------------------- hub */
.cmp-hub-hero .cmp-hero-grid { grid-template-columns: minmax(0, 1fr); -webkit-padding-after: 2.5rem; padding-block-end: 2.5rem; }
.cmp-hub-hero .cmp-hero-copy { max-width: 52rem; }
.cmp-hub-stats { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; margin-top: 2.25rem; }
@media (min-width: 760px) { .cmp-hub-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cmp-hub-stat { padding: 1rem 1.1rem; border-radius: 1rem; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line); }
.cmp-hub-stat b { display: block; font-size: 1.6rem; font-weight: 820; letter-spacing: -.03em; color: var(--st-accent); font-variant-numeric: tabular-nums; }
.cmp-hub-stat span { display: block; margin-top: .15rem; font-size: .8rem; line-height: 1.4; color: var(--st-muted); }
.cmp-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.1rem; }
.cmp-filters .st-fchip[aria-pressed="true"] { background: var(--st-blue); color: #fff; box-shadow: none; }
.cmp-search { flex: 1 1 14rem; display: flex; align-items: center; gap: .5rem; height: 2.6rem; padding: 0 .9rem; border-radius: 999px; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line); color: var(--st-muted); }
.cmp-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .92rem; color: var(--st-ink); }
.cmp-search input:focus { outline: none; }
.cmp-search:focus-within { box-shadow: 0 0 0 2px var(--st-blue); }
.cmp-matrix-wrap { position: relative; overflow-x: auto; border-radius: 1.3rem; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line), var(--st-shadow); -webkit-overflow-scrolling: touch; }
.cmp-matrix { width: 100%; min-width: 68rem; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.cmp-matrix th, .cmp-matrix td { padding: .8rem .9rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--st-line); }
.cmp-matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--st-soft); font-size: .7rem; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; color: var(--st-muted); }
.cmp-matrix tbody th { position: sticky; left: 0; z-index: 1; min-width: 10.5rem; background: var(--st-card); font-weight: 700; box-shadow: 1px 0 0 var(--st-line); }
.cmp-matrix thead th:first-child { left: 0; z-index: 3; }
.cmp-matrix tbody th a { display: inline-flex; align-items: center; gap: .5rem; color: var(--st-ink); }
.cmp-matrix tbody th a:hover { color: var(--st-link); }
.cmp-matrix tbody th small { display: block; margin-top: .2rem; font-size: .74rem; font-weight: 500; color: var(--st-muted); }
.cmp-matrix tr.cmp-us > * { background: var(--cmp-us-bg); }
.cmp-matrix tr.cmp-us th { background: #f3f6ff; }
.dark .cmp-matrix tr.cmp-us th { background: #15213d; }
.cmp-matrix tr:last-child > * { border-bottom: 0; }
.cmp-matrix tr[hidden] { display: none; }
.cmp-matrix .cmp-val { gap: .4rem; }
.cmp-matrix .cmp-val-txt b { font-weight: 600; }
.cmp-matrix-hint { margin: .75rem 0 0; font-size: .8rem; color: var(--st-faint); }
@media (min-width: 1180px) { .cmp-matrix-hint { display: none; } }
.cmp-empty { padding: 1.5rem; text-align: center; color: var(--st-muted); }
.cmp-hub-group + .cmp-hub-group { margin-top: 3rem; }
.cmp-checked { display: grid; gap: .7rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.cmp-checked a { display: block; font-weight: 650; color: var(--st-link); }
.cmp-checked span { display: block; font-size: .8rem; color: var(--st-faint); }
.cmp-hub-group > h3 { margin: 0 0 1rem; font-size: .8rem; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; color: var(--st-muted); }

@media (prefers-reduced-motion: reduce) {
  .cmp *, .cmp *::before, .cmp *::after { transition: none !important; }
}
