/* ─── COMPARE PAGE STYLES ─────────────────────────── */

/* Hero variant */
.hero--compare {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2a2a2a 100%);
  padding: 120px 20px 80px;
}
.hero--compare .hero__inner {
  display: block;
  text-align: center;
}
.hero--compare .hero__content {
  max-width: 720px;
  margin: 0 auto;
}
.hero--compare .hero__title {
  color: #fff;
  font-size: clamp(32px, 5vw, 48px);
}
.hero--compare .hero__sub {
  color: rgba(255,255,255,.7);
}
.hero--compare .hero__tag {
  color: var(--orange);
}
.hero--compare .hero__tag::before {
  display: none;
}

/* Section inner max-width */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Compare note */
.compare-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(255,127,0,.08);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-size: 15px;
  color: var(--text-sec);
}

/* Card title */
.card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ─── COMPARISON TABLE / TABS ─────────────────────── */

/* Tabs (mobile only) */
.compare-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
@media (min-width: 900px) {
  .compare-tabs { display: none; }
}

.compare-tab {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.compare-tab:hover {
  border-color: var(--orange);
}
.compare-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* Desktop table */
.compare-table {
  display: none;
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
@media (min-width: 900px) {
  .compare-table { display: table; }
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table th {
  background: var(--charcoal);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.compare-table th:first-child {
  border-radius: var(--radius-card) 0 0 0;
  width: 25%;
}
.compare-table th:last-child {
  border-radius: 0 var(--radius-card) 0 0;
}
.compare-table tbody tr:nth-child(odd) {
  background: #fff;
}
.compare-table tbody tr:nth-child(even) {
  background: var(--surface);
}
.compare-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius-card);
}
.compare-table tbody tr:last-child td:last-child {
  border-radius: 0 0 var(--radius-card) 0;
}
.compare-table td:first-child {
  font-weight: 600;
  color: var(--text);
}
.compare-table sup {
  font-size: 10px;
  color: var(--orange);
  font-weight: 700;
}

/* Mobile cards */
.compare-cards {
  display: block;
}
@media (min-width: 900px) {
  .compare-cards { display: none; }
}

.compare-card {
  display: none;
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-cards[data-active="oak"] .compare-card[data-vendor="oak"],
.compare-cards[data-active="cvent"] .compare-card[data-vendor="cvent"] {
  display: block;
}

.compare-card__row {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.compare-card__row:last-child {
  border-bottom: none;
}
.compare-card__row:nth-child(odd) {
  background: #fff;
}
.compare-card__row:nth-child(even) {
  background: var(--surface);
}
.compare-card__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-sec);
  margin-bottom: 4px;
}
.compare-card__value {
  font-size: 15px;
  color: var(--text);
}

/* ─── DEEP DIVE GRID ──────────────────────────────── */
.deepdive-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .deepdive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .deepdive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .deepdive-grid .deepdive-card:nth-child(4),
  .deepdive-grid .deepdive-card:nth-child(5) {
    grid-column: span 1;
  }
}

.deepdive-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px;
}
.deepdive-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.deepdive-card p {
  font-size: 15px;
  color: var(--text-sec);
  margin-bottom: 12px;
  line-height: 1.6;
}
.deepdive-card p:last-child {
  margin-bottom: 0;
}
.deepdive-card strong {
  color: var(--text);
}

/* ─── METHODOLOGY ─────────────────────────────────── */
.methodology {
  max-width: 720px;
}
.methodology h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.methodology p {
  font-size: 15px;
  color: var(--text-sec);
  margin-bottom: 16px;
}
.methodology__update {
  margin-top: 24px;
  font-size: 14px;
}

.sources-details {
  margin-top: 24px;
}
.sources-details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  padding: 8px 0;
}
.sources-details summary:hover {
  text-decoration: underline;
}
.sources-list {
  margin-top: 16px;
  padding-left: 24px;
  list-style: decimal;
}
.sources-list li {
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 8px;
}
.sources-list a {
  color: var(--text);
  text-decoration: underline;
}
.sources-list a:hover {
  color: var(--orange);
}

/* ─── CTA BLOCK (charcoal bg override) ────────────── */
#cta .cta-block {
  background: var(--charcoal);
}

/* ─── SECTION VARIANTS ────────────────────────────── */
.section--charcoal {
  background: var(--charcoal);
}
.section--charcoal .section-label {
  background: rgba(255,127,0,.2);
}
