/* ==========================================================================
   Comparison Pages - Shared Styles
   Beautiful, conversion-optimized competitor comparison pages for Cust.co
   ========================================================================== */

/* Hero */
.cmp-hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--bg-cream) 100%);
  position: relative;
  overflow: hidden;
}
.cmp-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253,126,20,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cmp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(253,126,20,0.08);
  border: 1px solid rgba(253,126,20,0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.cmp-hero__badge svg {
  width: 16px;
  height: 16px;
}
.cmp-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  max-width: 750px;
  margin: 0 auto 20px;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.cmp-hero__sub {
  font-size: 19px;
  color: var(--gray-text);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.cmp-hero__cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Stats Strip */
.cmp-stats {
  background: var(--dark);
  padding: 0;
}
.cmp-stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max-width);
  margin: 0 auto;
}
.cmp-stat {
  padding: 40px 32px;
  text-align: center;
  position: relative;
}
.cmp-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
.cmp-stat__number {
  font-size: 44px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}
.cmp-stat__label {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

/* Section Base */
.cmp-section {
  padding: 96px 0;
}
.cmp-section--cream { background: var(--bg-cream); }
.cmp-section--white { background: #fff; }
.cmp-section--dark { background: var(--dark); color: white; }
.cmp-section__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 12px;
}
.cmp-section__header {
  text-align: center;
  margin-bottom: 56px;
}
.cmp-section__header h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.cmp-section__header p {
  font-size: 17px;
  color: var(--gray-text);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Side-by-Side Reasoning */
.cmp-versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.cmp-versus__col {
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.cmp-versus__col--them {
  background: #f8f9fa;
  border: 1px solid var(--border);
}
.cmp-versus__col--cust {
  background: linear-gradient(135deg, #FFFAF5 0%, #FFF5EB 100%);
  border: 1px solid rgba(253,126,20,0.25);
}
.cmp-versus__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  padding: 5px 12px;
  border-radius: 6px;
}
.cmp-versus__col--them .cmp-versus__label {
  color: var(--gray-text);
  background: rgba(0,0,0,0.05);
}
.cmp-versus__col--cust .cmp-versus__label {
  color: var(--orange);
  background: rgba(253,126,20,0.1);
}
.cmp-versus__step {
  font-size: 14px;
  line-height: 1.65;
  padding: 10px 0;
  color: var(--dark-text);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  gap: 10px;
}
.cmp-versus__step:last-of-type { border-bottom: none; }
.cmp-versus__step-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.cmp-versus__verdict {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.cmp-versus__col--them .cmp-versus__verdict {
  background: #fef2f2;
  color: #b91c1c;
}
.cmp-versus__col--cust .cmp-versus__verdict {
  background: #f0fdf4;
  color: #15803d;
}

/* Comparison Table */
.cmp-table-wrap {
  max-width: 940px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cmp-table__row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.cmp-table__row:last-child { border-bottom: none; }
.cmp-table__row--head {
  background: #f8f9fb;
}
.cmp-table__row--head .cmp-table__cell {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 24px;
  color: var(--gray-text);
}
.cmp-table__row--head .cmp-table__cell:last-child {
  color: var(--orange);
}
.cmp-table__cell {
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark-text);
}
.cmp-table__cell:first-child {
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-text);
  background: #fafbfc;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  padding-top: 22px;
}
.cmp-table__cell:nth-child(2) {
  border-right: 1px solid #f0f1f3;
}
.cmp-table__cell:last-child {
  background: #FFFDF9;
}
.cmp-table__cell .check {
  color: #16a34a;
  font-weight: 700;
  margin-right: 4px;
}
.cmp-table__cell .cross {
  color: #dc2626;
  font-weight: 700;
  margin-right: 4px;
}

/* Cost Cards */
.cmp-cost {
  max-width: 700px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cmp-cost__card {
  border-radius: 20px;
  padding: 36px;
  text-align: center;
}
.cmp-cost__card--them {
  background: #f8f9fa;
  border: 1px solid var(--border);
}
.cmp-cost__card--cust {
  background: var(--orange);
  color: white;
  box-shadow: 0 8px 32px rgba(253,126,20,0.25);
}
.cmp-cost__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  opacity: 0.7;
}
.cmp-cost__price {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1;
}
.cmp-cost__price span {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.7;
}
.cmp-cost__detail {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.5;
}
.cmp-cost__card--cust .cmp-cost__label { opacity: 0.9; }

/* Reasons Grid */
.cmp-reasons {
  max-width: 840px;
  margin: 0 auto;
}
.cmp-reason {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  align-items: start;
}
.cmp-reason:last-child { border-bottom: none; }
.cmp-reason__num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--orange);
  flex-shrink: 0;
}
.cmp-reason h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}
.cmp-reason p {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.7;
}

/* Timeline */
.cmp-timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.cmp-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), rgba(253,126,20,0.2));
}
.cmp-timeline__step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 24px 0;
  position: relative;
}
.cmp-timeline__dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--orange);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(253,126,20,0.15);
}
.cmp-timeline__step h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}
.cmp-timeline__step p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.65;
}

/* Guarantee */
.cmp-guarantee {
  max-width: 580px;
  margin: 48px auto 0;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
}
.cmp-guarantee h3 {
  font-size: 16px;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cmp-guarantee p {
  font-size: 14px;
  color: #166534;
  line-height: 1.6;
}

/* Differentiators */
.cmp-diff {
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cmp-diff__card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cmp-diff__card:hover {
  border-color: rgba(253,126,20,0.3);
  box-shadow: 0 4px 20px rgba(253,126,20,0.08);
}
.cmp-diff__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--orange);
}
.cmp-diff__card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.cmp-diff__card p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.65;
}

/* Who Should Choose (Fair Assessment) */
.cmp-fair {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.cmp-fair__col {
  border-radius: 20px;
  padding: 36px;
}
.cmp-fair__col--them {
  background: #f8f9fa;
  border: 1px solid var(--border);
}
.cmp-fair__col--cust {
  background: linear-gradient(135deg, #FFFAF5 0%, #FFF5EB 100%);
  border: 1px solid rgba(253,126,20,0.2);
}
.cmp-fair__col h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--dark);
}
.cmp-fair__item {
  font-size: 14px;
  line-height: 1.6;
  padding: 8px 0;
  color: var(--dark-text);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cmp-fair__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 2px;
}
.cmp-fair__col--them .cmp-fair__check {
  background: #f3f4f6;
  color: var(--gray-text);
}
.cmp-fair__col--cust .cmp-fair__check {
  background: rgba(253,126,20,0.12);
  color: var(--orange);
}

/* Bottom CTA */
.cmp-cta {
  padding: 100px 0;
  text-align: center;
  background: var(--dark);
  color: white;
  position: relative;
  overflow: hidden;
}
.cmp-cta::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(253,126,20,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cmp-cta h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  margin-bottom: 14px;
  color: white;
  position: relative;
  letter-spacing: -0.01em;
}
.cmp-cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 550px;
  margin: 0 auto 36px;
  line-height: 1.65;
  position: relative;
}
.cmp-cta .btn { position: relative; }
.cmp-cta__trust {
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  position: relative;
}

/* FAQ Schema Section */
.cmp-faq {
  max-width: 720px;
  margin: 0 auto;
}
.cmp-faq__item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.cmp-faq__item:last-child { border-bottom: none; }
.cmp-faq__q {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.cmp-faq__q::after {
  content: '+';
  font-size: 24px;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.cmp-faq__item.open .cmp-faq__q::after {
  transform: rotate(45deg);
}
.cmp-faq__a {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.cmp-faq__item.open .cmp-faq__a {
  max-height: 300px;
  padding-top: 12px;
}

/* Hub Page Cards */
.cmp-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 940px;
  margin: 0 auto;
}
.cmp-hub-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.cmp-hub-card:hover {
  border-color: rgba(253,126,20,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.cmp-hub-card__name {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.cmp-hub-card__desc {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.cmp-hub-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cmp-hub-card__link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .cmp-hero { padding: 72px 0 56px; }
  .cmp-hero h1 { font-size: 32px; }
  .cmp-stats__inner { grid-template-columns: 1fr; }
  .cmp-stat { padding: 24px 20px; }
  .cmp-stat:not(:last-child)::after { display: none; }
  .cmp-stat:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .cmp-section { padding: 64px 0; }
  .cmp-versus { grid-template-columns: 1fr; }
  .cmp-table__row { grid-template-columns: 1fr; }
  .cmp-table__row--head { display: none; }
  .cmp-table__cell:first-child {
    background: #f8f9fb;
    border-right: none;
    border-bottom: none;
    padding-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .cmp-table__cell:nth-child(2),
  .cmp-table__cell:nth-child(3) {
    padding-top: 6px;
    border-right: none;
  }
  .cmp-table__cell:nth-child(2)::before { content: attr(data-label) ": "; font-weight: 600; color: var(--gray-text); }
  .cmp-table__cell:nth-child(3)::before { content: "Cust: "; font-weight: 600; color: var(--orange); }
  .cmp-cost { grid-template-columns: 1fr; }
  .cmp-diff { grid-template-columns: 1fr; }
  .cmp-fair { grid-template-columns: 1fr; }
  .cmp-reason { grid-template-columns: 40px 1fr; gap: 16px; }
  .cmp-reason__num { width: 40px; height: 40px; font-size: 15px; border-radius: 10px; }
  .cmp-hub-grid { grid-template-columns: 1fr; }
}
