/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  color: #fff;
  background:
    radial-gradient(60% 46% at 78% 74%, rgba(52, 88, 252, .9) 0%, rgba(44, 75, 246, .45) 40%, rgba(44, 75, 246, 0) 72%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink) 40%, #0b1564 62%, #2441ed 78%, var(--sky) 91%, var(--paper) 100%);
}
.hero__inner { width: min(var(--container), 100% - 2 * var(--gutter)); margin: 0 auto; padding: var(--s5) 0 200px; }
.hero__badges { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__title {
  color: #fff; font-weight: 400; font-size: clamp(2.45rem, 1.3rem + 4.6vw, 5.1rem);
  line-height: .99; letter-spacing: -.05em; max-width: 15.5ch; margin: 0 0 var(--s5);
}
.hero__title .tt-a { color: var(--hero-grey); }
.hero__grid { display: grid; gap: var(--s5); }
.hero__lead { color: var(--on-dark); font-size: 1.0625rem; max-width: 36em; margin-bottom: var(--s4); }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-bottom: var(--s4); font-size: .9375rem; }
.hero__method { color: var(--mist); text-decoration-color: rgba(198, 220, 255, .4); }
.hero__method:hover { color: #fff; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { max-width: 640px; }
@media (min-width: 1100px) {
  .hero__inner { padding: var(--s6) 0 240px; }
  .hero__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--s6); align-items: start; }
  .hero__art { margin-top: -24px; }
}

/* I1: attack-path animation (finite, transform/opacity/dashoffset only) */
.i1 .probe { animation: i1-probe 10s ease-in-out 3 both; }
.i1 .node { animation: i1-node 10s cubic-bezier(.3, 1.5, .5, 1) 3 both; }
.i1 .n1 { animation-delay: .8s; }
.i1 .n2 { animation-delay: 2.15s; }
.i1 .n3 { animation-delay: 3.5s; }
.i1 .n4 { animation-delay: 4.85s; }
.i1 .n5 { animation-delay: 6.2s; }
.i1 .tag { animation: i1-tag 10s ease-out 3 both; }
.i1 .tag + .tag { animation-delay: .5s; }
@keyframes i1-probe { 0%, 8% { stroke-dashoffset: 1; } 62%, 100% { stroke-dashoffset: 0; } }
@keyframes i1-node { 0% { opacity: .3; transform: scale(.94); } 4% { opacity: 1; transform: scale(1.06); } 10%, 100% { opacity: 1; transform: scale(1); } }
@keyframes i1-tag { 0%, 66% { opacity: 0; transform: translateY(8px); } 74%, 100% { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.home-body { width: min(var(--container), 100% - 2 * var(--gutter)); margin: 0 auto; padding-bottom: var(--s7); }
.sec { padding: clamp(56px, 7vw, 104px) 0 0; }
.sec > :where(p, .list, .ticks, .steps, .sources, .faq, .checklist, .print-hint) { max-width: var(--prose); }
.sec > h2 { max-width: 22ch; }
.sec--quick-answer { padding-top: 0; margin-top: -136px; position: relative; z-index: 2; }
.sec--quick-answer .qa { max-width: 880px; }

/* B5 comparison-points strip (I2) */
.points { list-style: none; margin: var(--s5) 0 var(--s4); padding: 0; display: grid; border-top: 1px solid var(--rule-strong); }
.points li { padding: var(--s4) 0; border-bottom: 1px solid var(--rule-strong); display: grid; grid-template-columns: 48px 1fr; gap: var(--s3); }
.points .ic { color: var(--cobalt); width: 36px; height: 36px; }
.points strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.0625rem; letter-spacing: -.015em; margin-bottom: 4px; }
.points span { color: var(--muted); font-size: .9375rem; line-height: 1.6; }
@media (min-width: 768px) {
  .points { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .points li { display: block; padding: var(--s4) var(--s4) var(--s5); border-bottom: 0; border-left: 1px solid var(--rule-strong); }
  .points li:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .points li:nth-child(n + 4) { border-top: 1px solid var(--rule-strong); }
  .points .ic { margin-bottom: var(--s4); }
}
@media (min-width: 1100px) {
  .points { grid-template-columns: repeat(6, 1fr); }
  .points li:nth-child(n) { border-top: 0; border-left: 1px solid var(--rule-strong); padding-left: var(--s3); padding-right: var(--s3); }
  .points li:first-child { border-left: 0; padding-left: 0; }
}

/* ==========================================================================
   Filter (CSS only)
   ========================================================================== */
.filter { border: 0; margin: var(--s4) 0 var(--s3); padding: 0; min-width: 0; }
.filter__legend { font-family: var(--f-display); font-weight: 500; font-size: .9375rem; margin-bottom: var(--s2); padding: 0; }
.filter__chips { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.filter__in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip--filter {
  min-height: 44px; padding: 0 16px; cursor: pointer; background: var(--panel); border-color: var(--rule-strong); font-size: .875rem;
  transition: transform .2s var(--ease);
}
.chip--filter:hover { border-color: var(--cobalt); color: var(--cobalt-deep); }
.chip--filter:active { transform: scale(.97); }
.filter__in:checked + .chip--filter { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter__in:focus-visible + .chip--filter { outline: 2px solid var(--cobalt); outline-offset: 2px; }
@media (min-width: 1100px) { .filter__chips { flex-wrap: wrap; overflow: visible; } }
@supports not selector(:has(*)) { .filter { display: none; } }

:is(.ranking tbody tr, .card, .map tbody tr) { transition: opacity .3s ease; }
body:has(#fit-gov:checked) :is(.ranking tbody tr, .card, .map tbody tr):not([data-fit~="gov"]),
body:has(#fit-fin:checked) :is(.ranking tbody tr, .card, .map tbody tr):not([data-fit~="fin"]),
body:has(#fit-red:checked) :is(.ranking tbody tr, .card, .map tbody tr):not([data-fit~="red"]),
body:has(#fit-comp:checked) :is(.ranking tbody tr, .card, .map tbody tr):not([data-fit~="comp"]),
body:has(#fit-app:checked) :is(.ranking tbody tr, .card, .map tbody tr):not([data-fit~="app"]),
body:has(#fit-sme:checked) :is(.ranking tbody tr, .card, .map tbody tr):not([data-fit~="sme"]),
body:has(#fit-ot:checked) :is(.ranking tbody tr, .card, .map tbody tr):not([data-fit~="ot"]),
body:has(#fit-soc:checked) :is(.ranking tbody tr, .card, .map tbody tr):not([data-fit~="soc"]) { opacity: .3; filter: grayscale(1); }

/* ==========================================================================
   Ranking table
   ========================================================================== */
.rank {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font: 500 .9375rem var(--f-display);
}
.rank--sm { width: 24px; height: 24px; font-size: .75rem; border-radius: 6px; margin-right: 10px; vertical-align: -6px; }
.ranking { min-width: 980px; }
.ranking td, .ranking th { vertical-align: middle; }
.ranking .rk { width: 64px; min-width: 64px; }
.table-wrap--ranking .rk { position: sticky; left: 0; background: #fff; z-index: 1; }
.table-wrap--ranking thead .rk { background: var(--panel-2); z-index: 3; }
.table-wrap--ranking tbody th.co { left: 64px; min-width: 170px; }
.table-wrap--ranking thead th.co { position: sticky; left: 64px; z-index: 3; background: var(--panel-2); }
.ranking .co a { color: var(--text); text-decoration: none; font-family: var(--f-display); font-weight: 500; font-size: 1rem; letter-spacing: -.01em; }
.ranking .co a:hover { color: var(--cobalt-deep); text-decoration: underline; }
.ranking .bf .chips { max-width: 260px; }
.svc { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; max-width: 280px; }
.svc li { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--rule); color: var(--cobalt-deep); }
.ranking .pr { min-width: 220px; max-width: 300px; font-size: .875rem; color: var(--muted); }
.ranking .ws { white-space: nowrap; }
.visit { font-size: .875rem; }

/* ==========================================================================
   Company cards
   ========================================================================== */
.cards { display: grid; gap: var(--s4); margin-top: var(--s5); }
.card {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 22px; box-shadow: var(--sh-1);
  padding: var(--s4); display: grid; gap: var(--s4); scroll-margin-top: 88px;
  grid-template-areas: "head" "shot" "main" "foot";
}
.card__head { grid-area: head; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; }
.card__head .chips { grid-column: 1 / -1; }
.card__rank {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r);
  background: var(--ink); color: #fff; font: 400 1.5rem var(--f-display); letter-spacing: -.04em;
}
.card__name { margin: 0; font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem); letter-spacing: -.04em; line-height: 1.05; }
.card__shot { grid-area: shot; margin: 0; }
.card__shot img, .card__shot .mono { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-radius: var(--r); border: 1px solid var(--rule); background: var(--panel-2); }
.card__shot figcaption { margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.mono { display: block; height: auto; background: var(--ink); }
.mono rect { fill: var(--ink); }
.mono__grid { stroke: rgba(110, 139, 255, .18); stroke-width: 1; }
.mono text { fill: #fff; font: 300 64px var(--f-display); letter-spacing: -.04em; }
.card__main { grid-area: main; display: grid; gap: var(--s4); align-content: start; }
.card__facts { margin: 0; border-top: 1px solid var(--rule); }
.card__facts > div { padding: 10px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.card__facts dt { font-family: var(--f-display); font-size: .8125rem; font-weight: 500; color: var(--muted); }
.card__facts dd { margin: 0; font-size: .9375rem; line-height: 1.55; }
.card__why p { margin: 0; font-size: .9688rem; }
.card__strengths .ticks { margin: 0; gap: 6px; font-size: .9375rem; }
.card__foot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: center; gap: 12px var(--s4); padding-top: var(--s3); border-top: 1px solid var(--rule); }
.card__foot .visit {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--cobalt); color: var(--cobalt-deep); text-decoration: none; font: 500 .9375rem var(--f-display);
  transition: transform .2s var(--ease);
}
.card__foot .visit:hover { background: var(--cobalt); color: #fff; }
.card__foot .visit:active { transform: translateY(1px); }
.card__how { font-size: .875rem; color: var(--muted); }
@media (min-width: 768px) {
  .card { padding: var(--s5); grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-areas: "head head" "shot main" "foot foot"; column-gap: var(--s5); }
  .card__head { grid-template-columns: auto auto 1fr; }
  .card__head .chips { grid-column: auto; justify-content: flex-end; }
  .card__facts > div { grid-template-columns: 150px 1fr; gap: var(--s3); }
}
@media (min-width: 1100px) { .card { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } }

/* ==========================================================================
   Best-for map (I3)
   ========================================================================== */
.map { min-width: 900px; table-layout: fixed; }
.map thead th { white-space: normal; vertical-align: bottom; line-height: 1.3; font-size: .75rem; width: 96px; }
.map thead th.co, .map tbody th { width: 230px; }
.map td { text-align: center; vertical-align: middle; border-left: 1px solid var(--rule); }
.map .mark { color: var(--cobalt); }
.map tbody th { font-family: var(--f-display); font-weight: 500; white-space: nowrap; }
.map__legend { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }
.map__legend .mark { color: var(--cobalt); }
