.hero {
  background: linear-gradient(135deg, rgba(53, 201, 205, 0.12), rgba(37, 194, 160, 0.08));
  padding: 4rem 0 3rem;
}

.heroTitle {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.heroSubtitle {
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.heroChecklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--ifm-font-color-secondary);
}

.heroChecklist li::before {
  content: '✔';
  margin-right: 0.4rem;
  color: var(--ifm-color-primary);
}

.filters {
  background: var(--ifm-card-background-color);
  border-bottom: 1px solid var(--ifm-toc-border-color);
  padding: 2.5rem 0;
}

.filterHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filterHeader h2 {
  margin-bottom: 0;
}

.resetButton {
  background: transparent;
  border: 1px solid var(--ifm-color-primary);
  border-radius: 999px;
  color: var(--ifm-color-primary);
  font-weight: 600;
  padding: 0.4rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.resetButton:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.resetButton:not(:disabled):hover {
  background: var(--ifm-color-primary);
  color: #fff;
}

.filterGrid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.filterGroup h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ifm-font-color-secondary);
  margin-bottom: 0.5rem;
}

.pillGroup {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  background: transparent;
  border: 1px solid var(--ifm-toc-border-color);
  border-radius: 999px;
  color: var(--ifm-font-color-base);
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pill:hover {
  border-color: var(--ifm-color-primary);
}

.pillActive {
  background: rgba(37, 194, 160, 0.15);
  border-color: var(--ifm-color-primary);
  color: var(--ifm-color-primary);
}

.searchGroup {
  grid-column: 1 / -1;
}

.searchInput {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--ifm-toc-border-color);
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.searchInput:focus {
  border-color: var(--ifm-color-primary);
  box-shadow: 0 0 0 3px rgba(37, 194, 160, 0.15);
  outline: none;
}

.activeFilters {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.activeFiltersLabel {
  font-weight: 600;
}

.activeFilterChips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.activeFilter {
  border: none;
  background: rgba(37, 194, 160, 0.18);
  color: var(--ifm-color-primary);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.resultsSection {
  padding: 3rem 0;
}

.resultsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.resultsSummary {
  margin-bottom: 0;
  color: var(--ifm-font-color-secondary);
}

.comparisonCounter {
  font-weight: 600;
  color: var(--ifm-color-primary);
}

.cardGrid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--ifm-card-background-color);
  border: 1px solid var(--ifm-toc-border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--ifm-global-shadow-lw);
}

.cardHeader {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cardTitle {
  margin-bottom: 0.35rem;
}

.cardSummary {
  margin-bottom: 0;
  color: var(--ifm-font-color-secondary);
}

.fitBadge {
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fitHigh {
  background: rgba(37, 194, 160, 0.18);
  color: var(--ifm-color-primary);
}

.fitMedium {
  background: rgba(255, 180, 0, 0.18);
  color: #b37500;
}

.fitLow {
  background: rgba(255, 99, 99, 0.18);
  color: #b13434;
}

.fitNeutral {
  background: rgba(99, 110, 114, 0.12);
  color: var(--ifm-font-color-secondary);
}

.cardMeta {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(99, 110, 114, 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: var(--ifm-font-color-secondary);
}

.tagActive {
  background: rgba(37, 194, 160, 0.18);
  color: var(--ifm-color-primary);
  font-weight: 600;
}

.cardBody {
  display: grid;
  gap: 1.25rem;
}

.cardListGroup h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.cardList {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ifm-font-color-secondary);
  display: grid;
  gap: 0.4rem;
}

.cardFooter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cardFooterMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 600;
}

.cardActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.compareActive {
  background: rgba(37, 194, 160, 0.18) !important;
  color: var(--ifm-color-primary) !important;
  border-color: var(--ifm-color-primary) !important;
}

.emptyState {
  background: var(--ifm-card-background-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--ifm-toc-border-color);
}

.comparisonSection {
  background: rgba(37, 194, 160, 0.05);
  padding: 3rem 0;
  border-top: 1px solid var(--ifm-toc-border-color);
}

.comparisonHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.comparisonTable {
  overflow-x: auto;
}

.comparisonGrid {
  display: grid;
  gap: 0.75rem;
}

.comparisonCell {
  padding: 0.75rem;
  background: var(--ifm-card-background-color);
  border-radius: 12px;
  border: 1px solid rgba(99, 110, 114, 0.1);
}

.comparisonHeading {
  background: rgba(37, 194, 160, 0.15);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.comparisonHeadingInner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.removeComparison {
  background: none;
  border: none;
  color: var(--ifm-color-primary);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}

.comparisonLabel {
  font-weight: 600;
}

.comparisonList {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  color: var(--ifm-font-color-secondary);
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .heroChecklist {
    justify-content: flex-start;
  }

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

  .resetButton {
    align-self: flex-start;
  }

  .cardHeader {
    flex-direction: column;
  }
}
