:root {
  --bg: #ffffff;
  --ink: #171717;
  --muted: #6b7280;
  --line: #e8eaee;
  --line-strong: #d3d7de;
  --soft: #f4f6fa;
  --blue: #2f6bff;
  --blue-hover: #1f56e5;
  --lime: #d6f26a;
  --lime-ink: #16300a;
  --max: 1180px;
  --display: "Sora", "Segoe UI", sans-serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --nav-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--blue);
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  background: var(--bg);
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
  padding-top: 14px;
  pointer-events: none;
}

.masthead .wrap,
.masthead .nav,
.masthead .brand,
.masthead .btn.pill,
.nav-toggle {
  pointer-events: auto;
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 64px;
  padding: 8px 8px 8px 22px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(20, 40, 90, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.masthead .brand {
  position: relative;
  z-index: 34;
  align-self: stretch;
  min-width: 44px;
  min-height: 44px;
  margin: -8px 0 -8px -22px;
  padding: 8px 12px 8px 22px;
  pointer-events: auto;
}

.brand img {
  width: 30px;
  height: 30px;
}

.brand-name {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 18px;
  color: var(--blue);
}

.nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  gap: 8px 4px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav a {
  text-decoration: none;
  color: #4b5563;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--blue);
  background: #f3f6ff;
}

.nav a[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
  background: #eef3ff;
}

.masthead .btn.pill {
  flex: 0 0 auto;
  margin-left: auto;
  height: 44px;
  padding: 0 20px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
}

.masthead a.btn.pill:hover {
  background: #c8e54e;
  border-color: #c8e54e;
  color: var(--lime-ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #eef3ff;
  cursor: pointer;
  pointer-events: auto;
  z-index: 33;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 28;
  background: rgba(17, 17, 17, 0.35);
}

.em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.em.u {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  margin-top: 0;
  padding: 118px 0 72px;
  --orb-x: 0px;
  --orb-y: 0px;
}


.hero::before,
.page-hero::before,
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 90px solid rgba(255, 255, 255, 0.1);
  will-change: transform;
}

.hero::before,
.page-hero::before {
  width: 70vmax;
  height: 70vmax;
  right: -22%;
  top: -48%;
  transform: translate(var(--orb-x), var(--orb-y));
}

.hero::after,
.page-hero::after {
  width: 46vmax;
  height: 46vmax;
  border-width: 70px;
  left: -16%;
  bottom: -38%;
  transform: translate(calc(var(--orb-x) * -0.5), calc(var(--orb-y) * 1.15));
}

.hero .wrap,
.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero .kicker {
  color: #fff;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.12;
  max-width: 16ch;
  letter-spacing: -0.045em;
  color: #fff;
}

.hero-lead {
  max-width: 42ch;
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero a.btn.lg:not(.ghost) {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
}

.hero a.btn.lg:not(.ghost):hover {
  background: #c8e54e;
  border-color: #c8e54e;
  color: var(--lime-ink);
}

.hero a.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero a.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.hero-visual {
  position: relative;
}

.hero-photo {
  margin: 0 0 0 auto;
  width: 88%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-card {
  position: absolute;
  left: 0;
  bottom: 32px;
  z-index: 2;
  width: min(280px, 72%);
  background: #fff;
  color: var(--ink);
  padding: 20px 22px 18px;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(23, 23, 23, 0.14);
}

.quote-mark {
  display: block;
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 0.55;
  margin-bottom: 10px;
}

.quote-card p {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.quote-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  text-align: center;
  padding: 118px 0 64px;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: #fff;
}

.page-hero p {
  margin: 14px auto 0;
  max-width: 54ch;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.84);
}

.ranking-section {
  padding: 40px 0 56px;
  overflow-x: hidden;
  scroll-margin-top: 96px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.filter-bar select {
  height: 44px;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
}

.filter-btn {
  height: 44px;
  gap: 8px;
}

.clear-all {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.clear-all:hover {
  color: var(--blue);
}

.page-rankings .compare-toggle {
  display: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.page-hero .chips,
.page-hero .legal-toc {
  justify-content: center;
}

.page-hero .chips button,
.page-hero .legal-toc a {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.page-hero .chips button[aria-current="true"],
.page-hero .legal-toc a:hover {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.chips button {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.chips button[aria-current="true"] {
  border-color: var(--blue);
  color: var(--blue);
}

.resource-section {
  padding: 40px 0 24px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 24px;
}

.resource-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(20, 40, 90, 0.1);
}

.resource-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.thumb {
  position: relative;
}

.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  padding-left: 3px;
}

.resource-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tag {
  align-self: start;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}

.section .resource-body h2,
.resource-body h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.resource-body p {
  margin: 0;
  color: #3f4a5a;
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
}

.resource-body a,
.resource-body .read-more {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.page-hero.center {
  text-align: center;
}

.page-hero.center p {
  margin-inline: auto;
}

.steps-section {
  padding: 48px 0 40px;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.steps-draw {
  position: absolute;
  top: 32px;
  left: 12%;
  width: 76%;
  height: 8px;
  overflow: visible;
  z-index: 0;
  pointer-events: none;
}

.steps-draw path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 18px;
}

.step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -6px;
  top: 22px;
  color: #c5d4f5;
  font-size: 22px;
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eef3ff;
  display: grid;
  place-items: center;
}

.step h2 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.how-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.method-page {
  padding: 48px 0 24px;
}

.method-layout {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 36px;
  align-items: center;
}

.donut-wrap.lg {
  width: 240px;
  height: 240px;
}

.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.pillar-list li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.p-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef3ff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.p-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.pillar-list strong {
  display: block;
  font-size: 15px;
}

.pillar-list span:not(.p-icon) {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.pillar-list b {
  font-size: 16px;
}

.why-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 10px 40px rgba(23, 23, 23, 0.04);
}

.why-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.why-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.section.tight {
  padding-top: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  min-width: 0;
}

.about-grid h2,
.prose h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.about-grid p {
  color: var(--muted);
}

.firms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stack {
  display: grid;
  gap: 12px;
}

.stack label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.stack input,
.stack textarea {
  height: auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.page-hero .kicker {
  color: #fff;
}

.post-cover {
  margin: 0;
  width: 100%;
  height: min(58vh, 560px);
  overflow: hidden;
  background: #0f1a33;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-head {
  text-align: center;
  padding: 40px 0 0;
}

.post-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 1.12;
}

.post-head #post-dek {
  margin: 16px auto 0;
  max-width: 54ch;
  font-size: 18px;
  line-height: 1.55;
  color: #3f4a5a;
}

.post-meta {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.post-meta a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.page-post .section.tight {
  border-top: 0;
  padding-top: 28px;
}

.section .post-body {
  max-width: 72ch;
}

.section .post-body h2 {
  margin: 36px 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section .post-body p,
.section .post-body li {
  font-size: 18px;
  line-height: 1.7;
}

.resource-card .card-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.prose article {
  margin-bottom: 48px;
  scroll-margin-top: 88px;
}

.prose h3 {
  margin: 24px 0 8px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 6px;
}

.cats.three {
  grid-template-columns: repeat(3, 1fr);
}

.cats.two {
  grid-template-columns: 1fr 1fr;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
  min-width: 0;
}

.stat {
  min-width: 0;
  background: #fff;
  padding: 22px 20px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(20, 40, 90, 0.05);
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.04em;
  color: var(--blue);
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.legal-toc a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
}

.legal-toc a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.guide {
  scroll-margin-top: 88px;
  padding-top: 8px;
}

.guide h2 {
  margin-bottom: 8px;
}

.section .prose > h2,
.section .guide h2,
.section .prose article > h2 {
  font-size: clamp(26px, 3vw, 32px);
}

.cta-inner.simple {
  grid-template-columns: 1fr auto;
}

.panel h2 {
  scroll-margin-top: 88px;
}

.score-cell b {
  color: var(--blue);
}

.controls {
  margin-bottom: 16px;
}

.controls-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

label.field {
  display: grid;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.reset {
  height: 42px;
  border: 1px solid var(--line);
  padding: 0 12px;
  border-radius: 10px;
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.reset {
  cursor: pointer;
  border-radius: 10px;
}

.reset:hover {
  background: var(--soft);
}

.board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(23, 23, 23, 0.04);
  overflow: hidden;
}

.board-head,
.board-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.board-head {
  padding: 22px 24px 8px;
}

.board-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.board-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.board-foot {
  padding: 14px 24px 18px;
  font-size: 13px;
  color: var(--muted);
}

.board-foot a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.board-foot a:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.rank-table th,
.rank-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.rank-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa1ad;
  background: #fff;
}

.rank-table tbody tr {
  cursor: pointer;
}

.rank-table tbody tr:hover {
  background: #f8f9fc;
}

.rank-table tbody tr:last-child td {
  border-bottom: 0;
}

.rank-table.compact {
  min-width: 0;
}

.rank-table.compact th,
.rank-table.compact td {
  white-space: normal;
}

.rank-table.compact th:last-child,
.rank-table.compact td.col-score {
  text-align: right;
}

.rank-table.compact .col-score {
  width: 96px;
  font-variant-numeric: tabular-nums;
}

.rank-table.compact .col-score b {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--blue);
}

.col-rank {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  width: 56px;
}

.info {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border: 1px solid #cfd4dc;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  color: #9aa1ad;
  vertical-align: 1px;
  cursor: help;
}

.firm-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.firm-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.firm-name {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  cursor: pointer;
  text-align: left;
}

.compare-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.score-cell {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 150px;
}

.score-cell b {
  font-variant-numeric: tabular-nums;
}

.bar {
  display: block;
  height: 8px;
  background: #e8edf7;
  border-radius: 999px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  transform-origin: left center;
}

.time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.time i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.time.ok {
  color: #16a34a;
}

.time.mid {
  color: #d97706;
}

.time.slow {
  color: #dc2626;
}

.time.ok,
.time.mid,
.time.slow {
  color: var(--ink);
}

.time.ok i { background: #22c55e; }
.time.mid i { background: #f59e0b; }
.time.slow i { background: #ef4444; }

.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
  white-space: normal;
}

.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
}

.btn:hover,
a.btn:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.btn.ghost,
a.btn.ghost {
  background: #fff;
  color: var(--ink);
  border-color: #d8dbe2;
}

.btn.ghost:hover,
a.btn.ghost:hover {
  background: var(--soft);
  border-color: #c9ced8;
}

.btn.pill {
  border-radius: 999px;
  height: 40px;
  padding: 0 18px;
}

.btn.outline,
a.btn.outline {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}

.btn.outline:hover,
a.btn.outline:hover {
  background: #eff4ff;
}

.kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  line-height: 1.2;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.section:has(.cats),
.section:has(.stats-row) {
  background: var(--soft);
  border-top: 0;
  padding-top: 72px;
}

.section:has(.cats) > .wrap > .kicker,
.section:has(.cats) > .wrap > h2,
.section:has(.cats) > .wrap > .section-lead,
.section:has(.stats-row) > .wrap > .kicker,
.section:has(.stats-row) > .wrap > h2,
.section:has(.stats-row) > .wrap > .section-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section:has(.cats) > .wrap > h2,
.section:has(.stats-row) > .wrap > h2 {
  margin-bottom: 16px;
}

.section:has(.cats) > .wrap > .section-lead,
.section:has(.stats-row) > .wrap > .section-lead {
  margin-bottom: 36px;
}

.steps-section + .section {
  padding-top: 40px;
}

.section h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
}

.section h2 + .cats,
.section h2 + .resource-grid,
.section h2 + .method-grid,
.section h2 + .stats-row,
.section h2 + .about-grid {
  margin-top: 24px;
}

.section-lead {
  max-width: 62ch;
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--muted);
}

.method-grid,
.cats {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.method-grid {
  grid-template-columns: repeat(5, 1fr);
}

.method-card,
.cat {
  padding: 32px 28px 28px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(20, 40, 90, 0.06);
}

.method-card b {
  display: block;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.method-card h3,
.cat h3 {
  margin: 8px 0 8px;
  font-size: 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.method-card p,
.cat p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.cats {
  grid-template-columns: repeat(4, 1fr);
}

#how .cats {
  grid-template-columns: repeat(3, 1fr);
}

.cat {
  min-width: 0;
  max-width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
}

.cat::before {
  content: "";
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #8eb8ff;
  margin-bottom: 12px;
}

.cat:nth-child(2)::before {
  background: #7a93c4;
}

.cat:nth-child(3)::before {
  background: var(--blue);
}

.cat:nth-child(4)::before {
  background: #1e4ec8;
}

.cat > :last-child {
  margin-top: auto;
  padding-top: 12px;
}

.cat span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.cat h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}

.cat a {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  text-underline-offset: 3px;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.page-faq .section {
  scroll-margin-top: 88px;
}

.page-faq .faq-block {
  max-width: 76ch;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 72ch;
}

.disclaimer {
  font-size: 13px;
  color: var(--muted);
}

.score-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.panel {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 10px 40px rgba(23, 23, 23, 0.04);
}

.panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.panel .section-lead {
  margin: 10px 0 22px;
  font-size: 15px;
}

.score-build {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}

.donut-wrap {
  position: relative;
  width: 200px;
  height: 200px;
}

.donut {
  width: 100%;
  height: 100%;
}

.donut circle {
  fill: none;
  stroke-width: 24;
}

.donut-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut-label b {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.donut-label span {
  font-size: 12px;
  color: var(--muted);
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pillars li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: start;
}

.pillars i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
}

.pillars strong,
.checks strong {
  display: block;
  font-size: 14px;
}

.pillars span,
.checks span:not(.check) {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.checks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.checks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.cta-band {
  padding: 36px 0;
  background: #f6f8fc;
}

.cta-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.cta-inner h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.03em;
}

.cta-inner p {
  margin: 8px 0 0;
  color: var(--muted);
}

.cta-mark {
  width: 112px;
  height: 112px;
}

.cta-mark svg {
  width: 112px;
  height: 112px;
  display: block;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

footer {
  background: #fff;
  color: var(--muted);
  padding: 48px 0 24px;
  font-size: 14px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.footer-brand p {
  margin: 14px 0 16px;
  max-width: 34ch;
  line-height: 1.55;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 8px 0;
}

.footer-grid a:hover {
  color: var(--blue);
}

.footer-brand .brand {
  display: flex;
  margin: 0 0 4px;
}

.social {
  display: flex;
  gap: 8px;
}

.social a {
  width: 34px;
  height: 34px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.stay-card {
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.stay-card h3 {
  color: var(--blue);
  font-size: 18px;
}

.stay-card p {
  margin: 0 0 12px;
  font-size: 13px;
}

.stay {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.stay input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  padding: 0 12px;
}

.stay button {
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.copy {
  margin: 32px 0 0;
  text-align: center;
  font-size: 12px;
  color: #9aa1ad;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.35);
  display: none;
  z-index: 80;
}

.overlay.open,
.modal.open {
  display: block;
}

.modal {
  position: fixed;
  inset: 24px 24px auto;
  max-width: 800px;
  margin: 0 auto;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  z-index: 81;
  display: none;
  padding: 28px;
}

.modal h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}

.modal ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.close {
  float: right;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.2s ease;
  z-index: 15;
  padding: 14px 0;
}

.tray.open {
  transform: none;
}

.tray-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

body.comparing {
  padding-bottom: 88px;
}

.tray-firms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  padding: 7px 10px;
  font-size: 13px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.compare-table td:first-child,
.compare-table th:first-child {
  color: var(--muted);
  width: 28%;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: flex;
    order: 3;
  }

  .masthead .btn.pill {
    order: 2;
  }

  .masthead-inner {
    flex-wrap: nowrap;
    border-radius: 999px;
    padding: 8px 8px 8px 16px;
    gap: 10px;
    overflow: visible;
    transform: none !important;
  }

  .nav,
  .masthead > .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    z-index: 90;
    flex: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(20, 40, 90, 0.16);
    max-height: calc(100dvh - 110px);
    overflow: auto;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav,
  body.nav-open .masthead > .nav {
    display: flex;
  }

  body.nav-open .nav-scrim {
    display: block;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-photo {
    width: 100%;
    height: 260px;
  }

  .quote-card {
    position: relative;
    left: 12px;
    bottom: auto;
    margin-top: -40px;
    width: calc(100% - 40px);
  }

  .resource-grid,
  .steps,
  .cats {
    grid-template-columns: 1fr 1fr;
  }

  #how .cats {
    grid-template-columns: 1fr;
  }

  .method-layout {
    grid-template-columns: 1fr;
  }

  .firms-grid,
  .stats-row,
  .cats.three {
    grid-template-columns: 1fr;
  }

  .method-layout .donut-wrap {
    margin-inline: auto;
  }

  .pillar-list,
  .why-card {
    width: min(560px, 100%);
  }

  .step:nth-child(2)::after {
    display: none;
  }

  .score-layout,
  .score-build,
  .cta-inner,
  .cta-inner.simple {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .cta-mark {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .controls-grid,
  .method-grid,
  .cats,
  .footer-grid,
  .modal-grid,
  .board-head,
  .board-foot {
    grid-template-columns: 1fr 1fr;
  }

  .board-head,
  .board-foot {
    display: grid;
  }
}

@media (max-width: 680px) {
  .filter-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-bar select,
  .filter-btn,
  .clear-all {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .wrap,
  .tray-inner {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero,
  .page-hero {
    padding: 100px 0 48px;
  }

  .page-hero h1,
  .hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .post-cover {
    height: 220px;
  }

  .post-head {
    padding-top: 24px;
  }

  .masthead {
    padding-top: 10px;
  }

  .masthead-inner {
    padding: 6px 6px 6px 14px;
    gap: 8px;
  }

  .masthead .brand {
    margin: -6px 0 -6px -14px;
    padding: 6px 12px 6px 14px;
  }

  .brand-name {
    font-size: 16px;
  }

  .masthead .btn.pill {
    height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .nav {
    top: 72px;
    left: 12px;
    right: 12px;
  }

  .section,
  .section:has(.cats),
  .section:has(.stats-row),
  .steps-section + .section {
    padding: 104px 0 48px;
  }

  .ranking-section {
    padding: 32px 0 40px;
    scroll-margin-top: 96px;
  }

  #how .cats,
  .cats.two,
  .cats.three {
    grid-template-columns: 1fr;
  }

  .cat {
    min-height: 0;
    padding: 24px 20px 20px;
  }

  .faq summary {
    min-width: 0;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .controls {
    top: 0;
  }

  .controls-grid,
  .method-grid,
  .cats,
  .footer-grid,
  .metrics,
  .modal-grid,
  .board-head,
  .board-foot,
  .about-grid,
  .firms-grid,
  .stats-row,
  .cats.three,
  .cats.two,
  .cta-inner.simple,
  .resource-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 0;
    text-align: left;
  }

  .step-icon {
    margin-left: 0;
  }

  .step::after {
    display: none;
  }

  .steps-draw {
    display: none;
  }

  .modal {
    inset: 12px;
    padding: 18px;
  }

  .modal h2 {
    font-size: 24px;
    padding-right: 48px;
  }

  .tray-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .faq summary {
    font-size: 16px;
    gap: 12px;
  }

  .rank-table th,
  .rank-table td {
    padding: 12px 12px;
  }

  .how-cta .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .masthead .btn.pill {
    padding: 0 10px;
    font-size: 11px;
  }
}

@media (hover: none) {
  .resource-card:hover {
    transform: none;
    box-shadow: none;
  }
}

.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.word-inner {
  display: inline-block;
  will-change: transform;
}

.resource-card .thumb,
.resource-card > img {
  overflow: hidden;
}

.cta-band {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.is-scrolled .masthead {
  padding-top: 8px;
}

.is-scrolled .masthead-inner {
  min-height: 56px;
  box-shadow: 0 14px 40px rgba(20, 40, 90, 0.16);
}

.masthead,
.masthead-inner {
  transition: padding 0.25s ease, min-height 0.25s ease, box-shadow 0.25s ease;
}

.js-motion .masthead-inner,
.js-motion .hero-copy,
.js-motion .hero-visual,
.js-motion .page-hero .wrap,
.js-motion .post-head {
  opacity: 0;
}
