/*
 * Competitor Comparison Pages
 */

/* =====================
   Page layout
===================== */

.compare-page {
  overflow: auto;
  background-color: #f6f5f3;
  font-family: var(--font-body);
  color: var(--color-text);
}

.compare-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* =====================
   Breadcrumb
===================== */

.compare-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #777;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.compare-breadcrumb a {
  color: var(--color-accent, #c05c2e);
  text-decoration: none;
}

.compare-breadcrumb a:hover {
  text-decoration: underline;
}

.compare-breadcrumb span {
  color: #aaa;
}

/* =====================
   Hero
===================== */

.compare-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}

.compare-badge {
  display: inline-block;
  background: #fff3ee;
  color: var(--color-accent, #c05c2e);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.compare-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #282828;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.compare-hero .subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: #555;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 2rem;
  font-weight: 300;
}

.compare-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent, #c05c2e);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: #a84d24;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #333;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.btn-secondary:hover {
  border-color: #999;
  transform: translateY(-1px);
}

/* =====================
   Section headings
===================== */

.compare-section {
  margin-bottom: 3rem;
}

.compare-section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: #282828;
  margin-bottom: 1rem;
}

.compare-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #282828;
  margin-bottom: 0.5rem;
}

.compare-section p {
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  line-height: 1.75;
  color: #4a4a4a;
  font-weight: 300;
  margin-bottom: 1rem;
}

.compare-section ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.compare-section li {
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  line-height: 1.75;
  color: #4a4a4a;
  font-weight: 300;
  margin-bottom: 0.4rem;
}

/* =====================
   Verdict card
===================== */

.verdict-card {
  background: #fff;
  border: 1px solid #e8e4df;
  border-left: 4px solid var(--color-accent, #c05c2e);
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 3rem;
}

.verdict-card .verdict-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent, #c05c2e);
  margin-bottom: 0.5rem;
}

.verdict-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  font-weight: 400;
  margin: 0;
}

/* =====================
   Comparison table
===================== */

.compare-table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.9375rem;
}

.compare-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  background: #282828;
  color: #fff;
}

.compare-table thead th:first-child {
  border-radius: 10px 0 0 0;
}

.compare-table thead th:last-child {
  border-radius: 0 10px 0 0;
  text-align: center;
}

.compare-table thead th.col-pt {
  background: var(--color-accent, #c05c2e);
  text-align: center;
}

.compare-table tbody tr {
  border-bottom: 1px solid #f0ede8;
  transition: background 0.15s ease;
}

.compare-table tbody tr:hover {
  background: #faf9f7;
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table tbody td {
  padding: 14px 20px;
  color: #333;
  vertical-align: middle;
}

.compare-table tbody td:not(:first-child) {
  text-align: center;
}

.compare-table .feature-name {
  font-weight: 500;
  color: #282828;
  font-size: 0.9375rem;
}

.compare-table .feature-note {
  display: block;
  font-size: 0.8rem;
  color: #777;
  font-weight: 300;
  margin-top: 2px;
}

.icon-yes {
  color: #22a06b;
  font-size: 1.15rem;
  font-weight: 700;
}

.icon-no {
  color: #d94040;
  font-size: 1.1rem;
}

.icon-partial {
  color: #e08c3a;
  font-size: 1rem;
}

/* =====================
   Feature highlight cards
===================== */

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 10px;
  padding: 24px;
}

.feature-card .feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #282828;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #555;
  font-weight: 300;
  margin: 0;
}

/* =====================
   FAQ
===================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 10px;
  padding: 24px;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #282828;
  margin-bottom: 0.625rem;
}

.faq-item p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4a4a4a;
  font-weight: 300;
  margin: 0;
}

/* =====================
   Download CTA section
===================== */

.compare-cta-section {
  background: linear-gradient(135deg, #282828 0%, #3d3d3d 100%);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  margin-top: 3rem;
}

.compare-cta-section h2 {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.875rem;
}

.compare-cta-section p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.compare-cta-section .btn-primary {
  background: var(--color-accent, #c05c2e);
  font-size: 1rem;
}

/* =====================
   Also compare / related links
===================== */

.also-compare {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0dbd4;
}

.also-compare h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #282828;
  margin-bottom: 1rem;
}

.also-compare-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.also-compare-links a {
  display: inline-block;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.also-compare-links a:hover {
  border-color: var(--color-accent, #c05c2e);
  color: var(--color-accent, #c05c2e);
}

/* =====================
   Hub index page
===================== */

.compare-hub-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.compare-hub-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #282828;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.compare-hub-hero .subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: #555;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
  font-weight: 300;
}

.compare-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.compare-card-link {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  padding: 28px;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.compare-card-link:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: var(--color-accent, #c05c2e);
}

.compare-card-link .card-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent, #c05c2e);
  margin-bottom: 0.5rem;
}

.compare-card-link h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #282828;
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

.compare-card-link p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  font-weight: 300;
  margin: 0 0 1rem;
}

.compare-card-link .card-arrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent, #c05c2e);
}

/* =====================
   Footer
===================== */

.compare-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0dbd4;
  text-align: center;
}

.compare-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.compare-footer a {
  font-size: 0.875rem;
  color: #555;
  text-decoration: none;
}

.compare-footer a:hover {
  color: #282828;
}

.compare-footer p {
  font-size: 0.8rem;
  color: #999;
  margin: 0;
}

.compare-footer .sep {
  color: #ccc;
}

/* =====================
   Mobile
===================== */

@media (max-width: 768px) {
  .compare-container {
    padding: 24px 16px 60px;
  }

  .compare-cta-section {
    padding: 36px 24px;
  }

  .verdict-card {
    padding: 24px;
  }

  .compare-table thead th,
  .compare-table tbody td {
    padding: 12px 14px;
    font-size: 0.875rem;
  }

  .feature-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .compare-hero h1 {
    font-size: 1.6rem;
  }

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

  .btn-primary,
  .btn-secondary {
    justify-content: center;
  }
}
