:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --ink: #17211b;
  --muted: #5e6a62;
  --line: #d9dfd7;
  --brand: #0f766e;
  --brand-2: #7a3f28;
  --accent: #e2b84b;
  --soft: #edf3ef;
  --danger: #7b2e2e;
  --shadow: 0 16px 38px rgba(23, 33, 27, .08);
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 245, .94);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
  font-size: 1.05rem;
  line-height: 1;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .12);
}

.brand-mark.small {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .1);
}

.brand-word {
  white-space: nowrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .94rem;
}

.navlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 6px;
}

.navlinks a[aria-current="page"] {
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
}

.hero {
  padding: 64px 0 34px;
  background:
    linear-gradient(110deg, rgba(24, 106, 92, .14), rgba(226, 184, 75, .12)),
    radial-gradient(circle at 80% 20%, rgba(122, 63, 40, .11), transparent 34%);
  border-bottom: 1px solid var(--line);
}

.home-hero {
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(247, 248, 245, .99) 0%, rgba(247, 248, 245, .98) 42%, rgba(247, 248, 245, .72) 62%, rgba(247, 248, 245, .18) 82%),
    url("/assets/images/hero-ai-tool-comparison.jpg") 62% center / cover no-repeat;
}

.home-hero .hero-copy {
  width: min(650px, 100%);
  padding: 26px 0 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 34px;
  align-items: start;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 4vw, 4.7rem);
  max-width: 980px;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

p {
  margin: 0 0 14px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--muted);
  max-width: 760px;
}

.section-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
}

.section {
  padding: 44px 0;
}

.section[id] {
  scroll-margin-top: 92px;
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.page-nav-band {
  background: rgba(247, 248, 245, .96);
  border-bottom: 1px solid var(--line);
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  overflow-x: auto;
  padding: 9px 0;
  white-space: nowrap;
}

.page-nav span {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
  margin-right: 2px;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-weight: 700;
}

.finder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.finder-band {
  padding-top: 24px;
}

.finder label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.finder input,
.finder select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.finder-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.result {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

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

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

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

.card.soft {
  background: var(--soft);
}

.home-primary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.path-card,
.link-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.path-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
}

.path-card p {
  color: var(--muted);
}

.path-card .cta {
  margin-top: auto;
}

.home-hubs {
  margin-top: 34px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.link-panel {
  background: var(--soft);
}

.link-panel p {
  color: var(--muted);
}

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

.link-list a {
  display: inline-flex;
  color: var(--brand);
  font-weight: 700;
}

.link-grid + .note {
  margin-top: 18px;
}

.eyebrow {
  color: var(--brand-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
  margin-bottom: 10px;
}

.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: .9rem;
}

.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.cta.secondary {
  background: var(--ink);
}

.cta.ghost {
  background: rgba(255, 255, 255, .78);
  color: var(--brand);
  border: 1px solid var(--line);
}

.cta:hover {
  color: #fff;
  text-decoration: none;
}

.cta.ghost:hover {
  color: var(--brand);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  background: var(--soft);
  font-size: .9rem;
}

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

.breadcrumbs,
.note,
.small {
  color: var(--muted);
  font-size: .92rem;
}

.note {
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
  background: #fffaf0;
  border-radius: 6px;
}

.warning {
  border-left-color: var(--danger);
  background: #fff6f4;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.list {
  margin: 0;
  padding-left: 20px;
}

.list li {
  margin: 7px 0;
}

@media (max-width: 860px) {
  .hero-grid,
  .grid,
  .grid.two,
  .home-primary,
  .link-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .finder-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .home-hero {
    min-height: auto;
    align-items: center;
    background:
      linear-gradient(180deg, rgba(247, 248, 245, .96) 0%, rgba(247, 248, 245, .93) 100%),
      url("/assets/images/hero-ai-tool-comparison.jpg") 70% center / cover no-repeat;
  }

  .home-hero .hero-copy {
    padding: 40px 0 30px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 260px);
  }
}
