:root {
  --bg: #f7fbf8;
  --surface: #ffffff;
  --ink: #1f2a27;
  --muted: #5d6a66;
  --line: #d9e5df;
  --green: #2f7d64;
  --green-dark: #195845;
  --teal: #177c89;
  --coral: #c85f4c;
  --saffron: #d7a429;
  --shadow: 0 18px 40px rgba(25, 88, 69, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 251, 248, 0.9);
  border-bottom: 1px solid rgba(217, 229, 223, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  max-height: 760px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(36px, 7vw, 80px) clamp(18px, 5vw, 72px);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(247, 251, 248, 0.96) 0%, rgba(247, 251, 248, 0.8) 36%, rgba(247, 251, 248, 0.2) 68%, rgba(247, 251, 248, 0.08) 100%),
    linear-gradient(0deg, rgba(31, 42, 39, 0.2), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal);
}

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

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: #35433f;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: #0f4435;
}

.button.ghost {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(47, 125, 100, 0.28);
}

.affiliate-note {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.problem-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: -48px auto 0;
  padding: 0 clamp(18px, 4vw, 0px);
}

.problem-strip article {
  min-height: 190px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.problem-strip article:first-child {
  border-radius: 8px 0 0 8px;
}

.problem-strip article:last-child {
  border-radius: 0 8px 8px 0;
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
}

.problem-strip article:nth-child(2) .mini-icon {
  background: var(--green);
}

.problem-strip article:nth-child(3) .mini-icon {
  background: var(--coral);
}

.problem-strip article:nth-child(4) .mini-icon {
  background: var(--saffron);
  color: #302508;
}

.problem-strip h2 {
  font-size: 1.1rem;
}

.problem-strip p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) clamp(18px, 4vw, 28px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter.active,
.filter:hover,
.filter:focus-visible {
  color: #fff;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.category-card:hover,
.category-card:focus-visible {
  border-color: rgba(23, 124, 137, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

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

.card-cta {
  margin-top: auto;
  align-self: center;
  display: inline-flex;
  justify-content: center;
  width: min(100%, 220px);
  padding: 11px 16px;
  border: 1px solid rgba(23, 124, 137, 0.28);
  border-radius: 8px;
  background: rgba(240, 247, 245, 0.92);
  color: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-card.is-hidden {
  display: none;
}

.product-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-topline span {
  color: var(--teal);
}

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

.product-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding-left: 20px;
  color: #394944;
}

.product-link {
  margin-top: auto;
  color: var(--green-dark);
  border-color: rgba(47, 125, 100, 0.32);
  background: #f2faf6;
}

.product-link:hover,
.product-link:focus-visible {
  color: #fff;
  background: var(--green-dark);
}

.comparison-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 28px) clamp(34px, 5vw, 56px);
}

.comparison-hero h1 {
  width: 100%;
  max-width: none;
  font-size: 4.2rem;
  overflow-wrap: normal;
  word-break: normal;
}

.comparison-hero p {
  max-width: 790px;
  color: var(--muted);
  font-size: 1.12rem;
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 850;
}

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

.verdict-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto 1fr;
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.verdict-image-link {
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 3;
  align-self: center;
  justify-self: center;
  width: min(100%, 190px);
  aspect-ratio: 9 / 16;
  margin: 18px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.verdict-image {
  width: 88%;
  height: 88%;
  padding: 0;
  object-fit: contain;
  object-position: center;
  transition: transform 180ms ease;
}

.verdict-image-link:hover .verdict-image,
.verdict-image-link:focus-visible .verdict-image {
  transform: scale(1.04);
}

.verdict-card span {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #eaf4ef;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.verdict-card h3 {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.3;
}

.verdict-card p {
  grid-column: 1;
  grid-row: 4;
  margin-top: 0;
  margin-bottom: 18px;
}

.verdict-card .product-link {
  grid-column: 1;
  grid-row: 5;
  align-self: end;
  width: 100%;
  margin-top: auto;
}

.comparison-table td:first-child {
  font-weight: 850;
}

.buyer-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
}

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

.check-list li {
  padding: 18px;
  border-left: 4px solid var(--green);
  background: var(--surface);
}

.category-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 26px;
  padding: 3px 3px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-nav a {
  flex: 0 0 auto;
  min-width: max-content;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.category-nav a:hover,
.category-nav a:focus-visible {
  color: #fff;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.category-nav a.active,
.category-nav a[aria-current="page"] {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 124, 137, 0.14);
  cursor: default;
}

.compare-band {
  max-width: none;
  background: #eaf4ef;
}

.compare-band .section-heading,
.table-wrap {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

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

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

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

th {
  color: var(--green-dark);
  background: #f8fcfa;
  font-size: 0.86rem;
  text-transform: uppercase;
}

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

.guides {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
}

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

.guide-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.guide-row:hover,
.guide-row:focus-visible {
  border-color: rgba(23, 124, 137, 0.5);
  box-shadow: var(--shadow);
}

.guide-row span {
  color: var(--coral);
  font-weight: 900;
}

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

.criteria {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.criteria-copy p:last-child {
  color: var(--muted);
}

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

.criteria-grid article {
  min-height: 190px;
  padding: 22px;
  border-left: 4px solid var(--green);
  background: var(--surface);
}

.criteria-grid article:nth-child(2) {
  border-left-color: var(--teal);
}

.criteria-grid article:nth-child(3) {
  border-left-color: var(--coral);
}

.criteria-grid article:nth-child(4) {
  border-left-color: var(--saffron);
}

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

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
  border-radius: 8px;
  color: #fff;
  background: #174b3c;
}

.newsletter .eyebrow,
.newsletter p {
  color: #d6eee4;
}

.newsletter h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.signup {
  display: flex;
  gap: 10px;
  align-items: center;
}

.signup input {
  min-width: 0;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font: inherit;
}

.signup input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.signup .button.primary {
  flex: 0 0 auto;
  background: #f2fff8;
  color: #174b3c;
}

.faq {
  padding-top: 80px;
}

details {
  border-top: 1px solid var(--line);
  background: transparent;
}

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

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  font-weight: 850;
  cursor: pointer;
}

summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
}

details[open] summary::after {
  content: "-";
}

details p {
  max-width: 850px;
  margin: 0 0 24px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 42px clamp(18px, 5vw, 72px);
  color: #dce8e3;
  background: #162421;
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: start;
  font-weight: 800;
}

.footer-links a {
  text-decoration: none;
}

.legal {
  grid-column: 1 / -1;
  max-width: 980px;
  color: #aebeba;
  font-size: 0.88rem;
}

.legal code {
  color: #fff;
}

@media (max-width: 980px) {
  .comparison-hero h1 {
    font-size: 3.4rem;
  }

  .problem-strip,
  .category-grid,
  .product-grid,
  .criteria-grid,
  .verdict-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-strip article:first-child,
  .problem-strip article:last-child {
    border-radius: 8px;
  }

  .guides,
  .criteria,
  .buyer-guide,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .newsletter {
    margin-left: 18px;
    margin-right: 18px;
  }
}

@media (max-width: 720px) {
  .comparison-hero h1 {
    font-size: 2.6rem;
  }

  .site-header {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 66px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
    border-radius: 6px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: #eef8f3;
  }

  .hero {
    min-height: 650px;
    padding-top: 72px;
    align-items: start;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(247, 251, 248, 0.98) 0%, rgba(247, 251, 248, 0.9) 48%, rgba(247, 251, 248, 0.2) 100%),
      linear-gradient(0deg, rgba(31, 42, 39, 0.22), transparent 45%);
  }

  .problem-strip,
  .category-grid,
  .product-grid,
  .criteria-grid,
  .verdict-grid {
    grid-template-columns: 1fr;
  }

  .problem-strip {
    margin-top: -28px;
  }

  .problem-strip article {
    min-height: auto;
    border-radius: 8px;
  }

  .product-card,
  .category-card {
    min-height: auto;
  }

  .guide-row {
    grid-template-columns: 40px 1fr;
    padding: 18px;
  }

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

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

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .comparison-hero h1 {
    font-size: 1.8rem;
  }

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

  .button {
    width: 100%;
  }

  .filters {
    flex-direction: column;
  }

  .filter {
    width: 100%;
  }
}
