/* =============================================
   COMPARISON PAGE
   ============================================= */

.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;
}

/* ---------- HERO ---------- */
.cmp-hero {
  padding: 9.5rem 0 3.5rem;
  background:
    linear-gradient(165deg, rgba(30,16,5,0.94) 0%, rgba(22,11,3,0.97) 100%),
    url('../images/reviews-bg.jpg') center center / cover no-repeat;
  border-bottom: 1px solid rgba(212,165,0,0.22);
}
.cmp-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #FBF4E4;
  margin: 0.6rem 0 1.1rem;
}
.cmp-lede {
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.85;
  color: #D7BC85;
}

/* ---------- PICKER ---------- */
.cmp-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.cmp-chip {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #E8D5AA;
  background: rgba(255,235,190,0.06);
  border: 1px solid rgba(212,165,0,0.32);
  border-radius: 100px;
  padding: 0.72rem 1.25rem;
  cursor: pointer;
  transition: transform 0.35s var(--ease-lux), background 0.3s ease,
              border-color 0.3s ease, color 0.3s ease;
}
.cmp-chip:hover {
  background: rgba(255,235,190,0.12);
  border-color: var(--gold2);
  color: #FFD100;
  transform: translateY(-2px);
}
.cmp-chip.active {
  background: linear-gradient(150deg, #F7CE2A, #D4A500);
  border-color: #F7CE2A;
  color: #1A0D02;
  box-shadow: 0 8px 22px rgba(212,165,0,0.32);
}
.cmp-chip:focus-visible { outline: 2px solid #FFD100; outline-offset: 3px; }

/* Verdict banner that appears once a priority is chosen */
.cmp-verdict {
  max-width: 44rem;
  margin: 2rem auto 0;
  padding: 1.4rem 1.6rem;
  text-align: center;
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(150deg, rgba(34,19,5,0.9), rgba(20,11,3,0.94)) padding-box,
    linear-gradient(135deg, rgba(255,233,163,0.75), rgba(212,165,0,0.35)) border-box;
  animation: cmpVerdictIn 0.5s var(--ease-lux) both;
}
@keyframes cmpVerdictIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.cmp-verdict-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B9975A;
  margin-bottom: 0.5rem;
}
.cmp-verdict-text {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  color: #FBF4E4;
}
.cmp-verdict-text strong { color: #FFD84A; }

.cmp-picker-hint {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.83rem;
  color: #B9975A;
}

/* ---------- TABLE ---------- */
.cmp-scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #6B4A12;
  margin-bottom: 0.9rem;
}

.cmp-table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-radius: 16px;
  border: 1px solid rgba(212,165,0,0.30);
  background: linear-gradient(150deg, rgba(255,253,247,0.96), rgba(253,244,227,0.92));
  box-shadow: 0 10px 34px rgba(60,30,5,0.10);
}

.cmp-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 0.87rem;
}

/* The label column stays put while the six scroll past it — without this a
   six-way comparison is unreadable the moment you scroll right. */
.cmp-rowhead {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
  width: 168px;
  min-width: 168px;
  padding: 0.95rem 1.1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B4A12;
  background: #FBF2DE;
  border-right: 1px solid rgba(120,70,0,0.16);
}

.cmp-table thead th {
  padding: 1.1rem 1rem;
  text-align: left;
  vertical-align: bottom;
  border-bottom: 2px solid rgba(180,124,0,0.35);
  background: #FBF2DE;
}
.cmp-table thead th a {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1B0E03;
  transition: color var(--t);
}
.cmp-table thead th a:hover { color: #8A5A0A; }
.cmp-table thead th a span {
  display: block;
  margin-top: 0.22rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8A6A2A;
}
.cmp-table thead .cmp-rowhead { z-index: 3; }

.cmp-table td {
  padding: 0.95rem 1rem;
  color: #3A2408;
  border-bottom: 1px solid rgba(120,70,0,0.10);
  vertical-align: middle;
}
.cmp-table td strong { color: #1B0E03; font-weight: 700; }

/* Group divider rows */
.cmp-group td {
  padding: 1.15rem 1.1rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A07A24;
  background: rgba(180,124,0,0.05);
  border-bottom: 1px solid rgba(120,70,0,0.14);
}

.cmp-table tbody tr:not(.cmp-group):hover td,
.cmp-table tbody tr:not(.cmp-group):hover .cmp-rowhead {
  background: rgba(255,209,0,0.07);
}

.cmp-cta-row td { padding-top: 1.1rem; padding-bottom: 1.3rem; }
.cmp-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: #8A5A0A;
  border-bottom: 1px solid rgba(138,90,10,0.35);
  padding-bottom: 2px;
  transition: color var(--t), border-color var(--t);
}
.cmp-more:hover { color: #5C3A02; border-color: #5C3A02; }

/* ---------- Picker → table highlighting ---------- */
.cmp-table [data-prop].is-match {
  background: rgba(255,209,0,0.16);
  box-shadow: inset 3px 0 0 var(--gold), inset -3px 0 0 var(--gold);
}
.cmp-table thead th[data-prop].is-match {
  background: rgba(255,209,0,0.26);
}
.cmp-table [data-prop].is-dim { opacity: 0.42; }
.cmp-table [data-prop] {
  transition: background 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
}

/* ---------- "Each wins at something" ---------- */
.cmp-wins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 1.15rem;
}
.cmp-win {
  display: block;
  padding: 1.75rem 1.6rem;
  border-radius: 16px;
  background: rgba(255,235,190,0.06);
  border: 1px solid rgba(212,165,0,0.28);
  transition: transform 0.5s var(--ease-lux), border-color 0.4s ease, background 0.4s ease;
}
.cmp-win:hover {
  transform: translateY(-5px);
  border-color: var(--gold2);
  background: rgba(255,235,190,0.11);
}
.cmp-win-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  background: rgba(255,209,0,0.14);
  border: 1px solid rgba(212,165,0,0.45);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #FFD100;
}
.cmp-win h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: #FBF4E4;
  margin-bottom: 0.55rem;
}
.cmp-win p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #D7BC85;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .cmp-hero { padding: 8rem 0 2.75rem; }
  .cmp-scroll-hint { display: block; }
  .cmp-picker { justify-content: flex-start; }
  .cmp-chip { font-size: 0.82rem; padding: 0.62rem 1rem; }
  .cmp-rowhead { width: 132px; min-width: 132px; font-size: 0.68rem; padding: 0.85rem 0.8rem; }
  .cmp-table { min-width: 860px; font-size: 0.83rem; }
  .cmp-table td { padding: 0.85rem 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cmp-verdict { animation: none; }
  .cmp-chip, .cmp-win, .cmp-table [data-prop] { transition: none; }
}

/* Group labels ride along with the sticky label column — otherwise they
   scroll out of sight and the divider bands read as empty gaps. */
.cmp-group td { padding-left: 0; padding-right: 0; }
.cmp-group td span {
  position: sticky;
  left: 0;
  display: inline-block;
  padding: 0 1.1rem;
}
@media (max-width: 900px) {
  .cmp-group td span { padding: 0 0.8rem; }
}
