:root {
  --alt-ink: #101820;
  --alt-paper: #f7f5ef;
  --alt-paper-2: #ebe7dc;
  --alt-white: #ffffff;
  --alt-muted: #5d6975;
  --alt-line: #d9d3c6;
  --alt-green: #168a4a;
  --alt-green-2: #0f6f3a;
  --alt-gold: #a26718;
  --alt-shadow: 0 24px 70px rgba(16, 24, 32, 0.14);
}

body.alternatives-page {
  color: var(--alt-ink);
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, var(--alt-paper) 0%, #f1eee6 100%);
  background-size: 56px 56px, auto;
}

body.alternatives-page::before,
body.alternatives-page::after {
  display: none;
}

.alternatives-page .alternatives-topbar {
  padding: 0;
  background: rgba(247, 245, 239, 0.93);
  border-bottom: 1px solid rgba(16, 24, 32, 0.12);
  backdrop-filter: blur(16px);
}

.alternatives-page .topbar-inner {
  min-height: 76px;
}

.alternatives-page .brand {
  color: var(--alt-ink);
  font-weight: 900;
}

.alternatives-page .brand-mark {
  border-radius: 8px;
  color: var(--alt-white);
  background: var(--alt-ink);
  box-shadow: none;
}

.alternatives-page .brand-mark-image {
  border-radius: 0;
  background: transparent;
}

.alternatives-page .status-pill {
  min-height: 38px;
  border-radius: 8px;
  color: #344250;
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--alt-line);
  font-weight: 850;
  backdrop-filter: none;
}

.alternatives-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(38px, 6vw, 72px) 0 76px;
}

.alternatives-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 56px);
  align-items: end;
  margin-bottom: 26px;
}

.page-kicker {
  color: var(--alt-green-2);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alternatives-hero h1 {
  max-width: 820px;
  margin-top: 14px;
  color: var(--alt-ink);
  font-size: clamp(2.55rem, 6.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.alternatives-hero p {
  max-width: 700px;
  margin-top: 20px;
  color: #344250;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

.hero-panel {
  padding: 22px;
  border-radius: 8px;
  color: var(--alt-white);
  background: var(--alt-ink);
  box-shadow: var(--alt-shadow);
}

.hero-panel span,
.hero-panel p {
  color: #b9c7d3;
  font-weight: 800;
}

.hero-panel strong {
  display: block;
  margin-top: 10px;
  color: #f5d49a;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-panel p {
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.45;
}

.alternative-nav {
  position: sticky;
  top: 88px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--alt-line);
  box-shadow: 0 14px 34px rgba(16, 24, 32, 0.08);
  backdrop-filter: blur(16px);
}

.alternative-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 6px;
  color: #344250;
  background: #f3f0e8;
  font-size: 0.92rem;
  font-weight: 900;
}

.alternative-nav a:hover {
  color: var(--alt-white);
  background: var(--alt-ink);
}

.alternative-category {
  scroll-margin-top: 160px;
  margin-top: 18px;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 8px;
  background: var(--alt-white);
  border: 1px solid var(--alt-line);
  box-shadow: 0 18px 50px rgba(16, 24, 32, 0.08);
}

.category-heading {
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  gap: 14px 24px;
  align-items: end;
  margin-bottom: 18px;
}

.category-heading span {
  display: block;
  color: var(--alt-green-2);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-heading h2 {
  grid-column: 1;
  margin-top: 4px;
  color: var(--alt-ink);
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.category-heading p {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--alt-muted);
  font-size: 1rem;
  line-height: 1.55;
}

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

.alternative-card {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 8px;
  color: var(--alt-ink);
  background: #f7f5ef;
  border: 1px solid var(--alt-line);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.alternative-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(22, 138, 74, 0.32);
  box-shadow: 0 16px 34px rgba(16, 24, 32, 0.1);
}

.alternative-card span {
  width: fit-content;
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--alt-green-2);
  background: #dff4e7;
  font-size: 0.76rem;
  font-weight: 950;
}

.alternative-card-bbn span {
  color: #8a3905;
  background: #ffe0c2;
}

.alternative-card strong {
  display: block;
  margin-top: 14px;
  color: var(--alt-ink);
  font-size: 1.14rem;
  letter-spacing: -0.02em;
}

.alternative-card p {
  margin-top: 9px;
  color: var(--alt-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.alternatives-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 22px;
  border-radius: 8px;
  color: var(--alt-white);
  background: var(--alt-ink);
}

.alternatives-cta span,
.alternatives-cta strong {
  display: block;
}

.alternatives-cta span {
  color: #f5d49a;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.alternatives-cta strong {
  margin-top: 5px;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.alternatives-page .btn {
  border-radius: 8px;
}

.alternatives-page .btn-primary {
  color: var(--alt-white);
  background: var(--alt-green);
  box-shadow: 0 14px 30px rgba(22, 138, 74, 0.22);
}

.alternatives-page .btn-primary:hover {
  background: var(--alt-green-2);
}

@media (max-width: 980px) {
  .alternatives-hero,
  .category-heading {
    grid-template-columns: 1fr;
  }

  .category-heading p {
    grid-column: auto;
    grid-row: auto;
  }

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

@media (max-width: 720px) {
  .alternatives-page .topbar-inner {
    min-height: 0;
    padding: 12px 0;
  }

  .alternatives-page .topbar-actions {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .alternatives-shell {
    width: min(var(--max-width), calc(100% - 24px));
    padding-top: 34px;
    padding-bottom: 52px;
  }

  .alternatives-hero {
    gap: 18px;
    margin-bottom: 20px;
  }

  .alternatives-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.45rem);
    line-height: 1;
  }

  .alternative-nav {
    top: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -4px;
    padding: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .alternative-nav::-webkit-scrollbar {
    display: none;
  }

  .alternative-nav a {
    flex: 0 0 auto;
    min-height: 40px;
    text-align: center;
  }

  .alternative-category {
    scroll-margin-top: 82px;
  }

  .alternative-grid {
    grid-template-columns: 1fr;
  }

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

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

  .alternatives-cta .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .alternative-nav a {
    font-size: 0.84rem;
    padding-inline: 12px;
  }

  .category-heading h2 {
    font-size: 1.85rem;
  }
}
