:root {
  --ink: #17202a;
  --muted: #657184;
  --line: #dde4ee;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --soft: #eef6f4;
  --teal: #0b7a75;
  --coral: #d75d45;
  --amber: #b87908;
  --blue: #315d9a;
  --green: #16845c;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.09);
}

* {
  box-sizing: border-box;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a,
.site-footer a {
  padding: 9px 11px;
  color: #394555;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-footer a:hover {
  background: #edf2f7;
}

.directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.78fr);
  gap: 24px;
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 22px;
}

.hero-panel,
.hero-proof,
.methodology,
.monetization-strip,
.compare-zone {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: clamp(26px, 5vw, 54px);
}

.hero-panel h1,
.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-panel p,
.page-hero p {
  max-width: 720px;
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-box {
  margin-top: 28px;
}

.search-box label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.search-box div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px;
  background: #f2f6fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-box input,
.search-box button,
.button {
  min-height: 48px;
  border-radius: 8px;
  font: inherit;
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.search-box button,
.button.primary {
  padding: 0 18px;
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
  font-weight: 850;
}

.suggested-searches,
.filter-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.suggested-searches a,
.filter-strip span {
  padding: 8px 11px;
  color: #31505c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.hero-proof {
  overflow: hidden;
}

.hero-proof img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.proof-grid span {
  padding: 15px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-size: 13px;
}

.proof-grid span:first-child {
  border-left: 0;
}

.proof-grid strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
}

.category-band,
.section,
.page-main,
.text-page {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
}

.category-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0 34px;
}

.category-band a {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.category-band span,
.logo-chip,
.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.section {
  padding: 34px 0;
}

.split-heading,
.section-kicker {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: end;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

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

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tool-card.ranked {
  padding-top: 54px;
}

.rank-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: var(--ink);
}

.tool-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.tool-head p {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 750;
}

.logo-chip.coral {
  background: var(--coral);
}

.logo-chip.amber {
  background: var(--amber);
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 11px 12px;
  background: var(--soft);
  border-radius: 8px;
}

.score-row span {
  color: #48606a;
  font-size: 13px;
  font-weight: 800;
}

.score-row strong {
  color: var(--teal);
}

.tool-card ul {
  display: grid;
  gap: 6px;
  margin: 4px 0 18px;
  padding-left: 20px;
}

.card-cta,
.compare-table a {
  margin-top: auto;
  color: var(--teal);
  font-weight: 850;
}

.compare-zone {
  padding: clamp(20px, 4vw, 34px);
}

.compare-table {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.1fr 0.7fr;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
}

.table-head {
  color: #fff;
  background: var(--ink);
  font-weight: 850;
}

.compact .table-row {
  grid-template-columns: 1fr 1.3fr 1fr 0.7fr;
}

.methodology {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  padding: clamp(24px, 5vw, 40px);
}

.small-method {
  display: block;
}

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

.method-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.method-grid article {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.method-grid strong {
  display: block;
  margin-bottom: 6px;
}

.method-grid p {
  margin: 0;
  font-size: 14px;
}

.monetization-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 5vw, 40px);
  margin-bottom: 44px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  white-space: nowrap;
}

.page-main {
  padding: 44px 0;
}

.page-hero {
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--line);
}

.directory-page {
  display: grid;
  gap: 8px;
}

.product-card .price {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 36px clamp(18px, 4vw, 54px);
  color: #fff;
  background: #17202a;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.text-page {
  max-width: 780px;
  padding: 70px 0;
}

.text-page h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1;
}

@media (max-width: 980px) {
  .directory-hero,
  .split-heading,
  .section-kicker,
  .methodology,
  .monetization-strip {
    grid-template-columns: 1fr;
  }

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

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

  .table-row,
  .compact .table-row {
    grid-template-columns: 1fr 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .directory-hero {
    padding-top: 24px;
  }

  .hero-panel h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-panel p,
  .page-hero p {
    font-size: 16px;
  }

  .search-box div,
  .software-grid,
  .method-grid,
  .method-grid.four,
  .category-band,
  .table-row,
  .compact .table-row,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .proof-grid span:first-child {
    border-top: 0;
  }

  .tool-card {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}
