:root {
  color-scheme: light;
  --ink: #172025;
  --muted: #627076;
  --line: #dce5e0;
  --paper: #fbfcf7;
  --wash: #eef5f0;
  --cobalt: #315eea;
  --teal: #0e8f88;
  --coral: #ff725c;
  --lime: #b7ee55;
  --sun: #ffd05a;
  --violet: #6f55d8;
  --shadow: 0 24px 60px rgba(23, 32, 37, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(23, 32, 37, 0.08);
  background: rgba(251, 252, 247, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 900;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-links a,
.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  color: #36464d;
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #edf2ef;
  outline: none;
}

.nav-cta {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 78vh, 660px);
  display: flex;
  align-items: center;
  padding: 74px 32px 58px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("./assets/startup-partners-hero.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 252, 247, 0.97) 0%, rgba(251, 252, 247, 0.9) 34%, rgba(251, 252, 247, 0.18) 72%),
    linear-gradient(0deg, rgba(23, 32, 37, 0.22), rgba(23, 32, 37, 0.04));
}

.hero-content {
  width: min(660px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cobalt);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  max-width: 600px;
  font-size: 4.8rem;
}

.hero-lede {
  max-width: 600px;
  margin: 24px 0 0;
  color: #34434a;
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  font-weight: 900;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.7);
}

.button.compact {
  min-width: 170px;
}

.button-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 590px;
  margin: 34px 0 0;
}

.hero-stats div {
  min-height: 98px;
  border: 1px solid rgba(23, 32, 37, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats dt {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 950;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.signal-strip div {
  min-height: 112px;
  padding: 26px 32px;
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  font-size: 1.08rem;
}

.signal-strip span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.section-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.directory-section {
  padding: 78px 0;
  background:
    linear-gradient(180deg, var(--paper), #eef7fa 48%, #f8f6ea 100%);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2,
.method-grid h2,
.shortlist-wrap h2 {
  font-size: 2.6rem;
}

.section-heading p:not(.eyebrow),
.method-grid p,
.shortlist-wrap p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.tools-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-box input:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(49, 94, 234, 0.14);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: #fff;
  color: #3b4a51;
  cursor: pointer;
  font-weight: 850;
}

.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.directory-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: 22px;
  align-items: start;
}

.category-rail,
.rankings-panel {
  border: 1px solid rgba(23, 32, 37, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.category-rail {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.rail-header span {
  color: var(--muted);
  font-size: 0.9rem;
}

.category-grid {
  overflow: auto;
  padding: 12px;
}

.category-card {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 116px;
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.category-card:hover,
.category-card:focus-visible {
  border-color: var(--accent, var(--cobalt));
  outline: none;
}

.category-card.is-active {
  border-color: var(--ink);
  background: #f4fff0;
}

.category-index {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent, var(--cobalt));
  color: #fff;
  font-weight: 950;
}

.category-card h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.category-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.rankings-panel {
  min-height: 720px;
  padding: 24px;
}

.ranking-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 20px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.ranking-head h2 {
  font-size: 2.3rem;
}

.ranking-head p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.score-card {
  min-height: 120px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.score-card span {
  color: #c8d4d8;
  font-size: 0.8rem;
  font-weight: 800;
}

.score-card strong {
  font-size: 2.5rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.tag-row span,
.company-tags span {
  border-radius: 999px;
  padding: 7px 10px;
  background: #edf2ef;
  color: #33434a;
  font-size: 0.82rem;
  font-weight: 800;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.company-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  min-height: 172px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rank-badge {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent, var(--cobalt));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 950;
}

.company-main {
  display: grid;
  gap: 10px;
}

.company-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.company-topline h3 {
  font-size: 1.22rem;
  line-height: 1.2;
}

.company-score {
  min-width: 74px;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f5f7f1;
  color: var(--ink);
  text-align: center;
  font-weight: 950;
}

.company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.company-card p {
  margin: 0;
  color: #46565d;
  line-height: 1.58;
}

.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.methodology-section {
  padding: 82px 0;
  background: #fff;
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.method-list article {
  min-height: 200px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(145deg, #fff, #f4fbf8);
}

.method-list span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--sun);
  font-weight: 950;
}

.method-list h3 {
  margin-top: 18px;
  font-size: 1.2rem;
}

.method-list p {
  margin-bottom: 0;
}

.shortlist-section {
  padding: 70px 0;
  background: var(--ink);
  color: #fff;
}

.shortlist-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.shortlist-wrap p,
.shortlist-wrap .eyebrow {
  color: #d5e0e3;
}

.shortlist-wrap .button.primary {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  background: #0f171b;
  color: #d5e0e3;
  font-size: 0.92rem;
}

.site-footer span:first-child {
  color: #fff;
  font-weight: 900;
}

.static-category-index {
  display: grid;
  gap: 18px;
}

.category-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.category-group h3 {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 1.15rem;
}

.static-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.static-category-link {
  display: grid;
  gap: 9px;
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  text-decoration: none;
}

.static-category-link:hover,
.static-category-link:focus-visible {
  border-color: var(--accent, var(--cobalt));
  outline: none;
}

.static-category-link strong {
  font-size: 1.04rem;
  line-height: 1.3;
}

.static-category-link span,
.static-category-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.serp-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.toc-panel {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 32, 37, 0.08);
}

.toc-panel h2 {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}

.toc-panel nav,
.toc-panel .related-mini {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.toc-panel a {
  border-radius: 8px;
  padding: 10px 12px;
  color: #34434a;
  font-weight: 800;
}

.toc-panel a:hover,
.toc-panel a:focus-visible {
  background: #edf2ef;
  outline: none;
}

.serp-main {
  display: grid;
  gap: 18px;
}

.content-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 32, 37, 0.07);
}

.content-panel h2 {
  font-size: 1.75rem;
  line-height: 1.18;
}

.content-panel h3 {
  font-size: 1.16rem;
  line-height: 1.3;
}

.content-panel p,
.content-panel li,
.content-panel td,
.content-panel th,
.content-panel dd {
  color: #43545b;
  line-height: 1.62;
}

.content-panel p {
  margin: 12px 0 0;
}

.fact-grid,
.method-cards,
.budget-grid,
.faq-list,
.related-links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.fact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact-grid div,
.method-cards article,
.budget-grid article,
.faq-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f9fbf7;
}

.fact-grid dt {
  color: var(--ink);
  font-weight: 950;
}

.fact-grid dd {
  margin: 6px 0 0;
}

.comparison-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fff;
}

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

.comparison-table th {
  background: #f1f7f3;
  color: var(--ink);
  font-size: 0.88rem;
}

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

.company-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ranking-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.ranking-card header {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.ranking-card .rank-badge {
  width: 64px;
  height: 64px;
}

.ranking-card h3 {
  margin-top: 2px;
  font-size: 1.3rem;
}

.rating-pill {
  min-width: 86px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f5f7f1;
  color: var(--ink);
  text-align: center;
  font-weight: 950;
}

.company-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.company-facts div {
  border-radius: 8px;
  padding: 10px;
  background: #f4f7f5;
}

.company-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.company-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 850;
}

.extract-list,
.check-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.related-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f9fbf7;
  font-weight: 850;
}

.plain-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.category-page {
  background: #f6faf6;
}

.category-page .site-header .brand,
.category-page .nav-links a,
.category-page .nav-cta {
  scroll-margin-top: 90px;
}

.category-page-hero {
  padding: 64px 0 42px;
  background:
    linear-gradient(135deg, rgba(183, 238, 85, 0.24), rgba(49, 94, 234, 0.08) 42%, rgba(255, 114, 92, 0.14)),
    #fbfcf7;
  border-bottom: 1px solid var(--line);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.crumbs a {
  color: var(--ink);
}

.category-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 38px;
  align-items: end;
}

.category-page-hero h1 {
  max-width: 860px;
  font-size: 3.6rem;
}

.category-page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #3d4e55;
  font-size: 1.1rem;
  line-height: 1.7;
}

.category-hero-card {
  border: 1px solid rgba(23, 32, 37, 0.12);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 32, 37, 0.1);
}

.category-hero-card span,
.category-hero-card strong {
  display: block;
}

.category-hero-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.category-hero-card strong {
  margin-top: 8px;
  font-size: 3rem;
  line-height: 1;
}

.category-hero-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.category-page .directory-section {
  padding-top: 42px;
}

.category-page .rankings-panel {
  min-height: auto;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    padding: 12px 20px;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    padding: 60px 22px 46px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(251, 252, 247, 0.98), rgba(251, 252, 247, 0.72)),
      linear-gradient(0deg, rgba(23, 32, 37, 0.18), rgba(23, 32, 37, 0.02));
  }

  h1 {
    font-size: 3.45rem;
  }

  .section-heading,
  .tools-panel,
  .directory-layout,
  .method-grid,
  .category-hero-grid,
  .serp-layout,
  .static-category-grid {
    grid-template-columns: 1fr;
  }

  .toc-panel {
    position: static;
  }

  .fact-grid,
  .company-facts,
  .related-links {
    grid-template-columns: 1fr;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .category-rail {
    position: static;
    max-height: 520px;
  }

  .rankings-panel {
    min-height: auto;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 10px;
  }

  .brand-copy small {
    display: none;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 590px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    min-height: 76px;
  }

  .section-shell {
    width: min(100% - 28px, 1240px);
  }

  .section-heading h2,
  .method-grid h2,
  .shortlist-wrap h2,
  .ranking-head h2,
  .category-page-hero h1 {
    font-size: 2rem;
  }

  .ranking-head,
  .company-card,
  .company-topline,
  .ranking-card header {
    grid-template-columns: 1fr;
  }

  .company-card {
    min-height: auto;
  }

  .company-topline {
    display: grid;
  }

  .company-score {
    width: max-content;
  }

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

  .shortlist-wrap,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
