/* ==============================
   Compare Pages — Shared Styles
   ============================== */

/* Breadcrumb */
.breadcrumb {
  padding: calc(var(--nav-height) + 24px) 0 0;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  list-style: none;
}

.breadcrumb__list li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--color-border);
}

.breadcrumb__list a {
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.breadcrumb__list a:hover {
  color: var(--color-teal);
}

.breadcrumb__list [aria-current="page"] {
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ==============================
   Compare Hero
   ============================== */
.compare-hero {
  padding: 32px 0 48px;
  text-align: center;
}

.compare-hero__title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-heading);
  margin-bottom: 16px;
}

.compare-hero__subtitle {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}

.compare-hero__date {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 12px;
  opacity: 0.7;
}

.compare-hero__meta {
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

/* ==============================
   Comparison Table
   ============================== */
.compare-table__wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -24px;
  padding: 0 24px;
  position: relative;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.compare-table thead th {
  background-color: var(--color-dark);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

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

.compare-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.compare-table tbody tr:hover {
  background-color: rgba(42, 93, 106, 0.03);
}

.compare-table__highlight {
  background-color: rgba(200, 91, 26, 0.04);
}

.compare-table__highlight:hover {
  background-color: rgba(200, 91, 26, 0.08) !important;
}

.compare-table .check {
  color: var(--color-teal);
  font-weight: 700;
  font-size: 1.1rem;
}

.compare-table .dash {
  color: var(--color-border);
  font-size: 1.1rem;
}

.compare-table__footer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 8px;
  text-align: right;
}

/* Key Differentiator Box */
.key-diff {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-teal);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.key-diff strong {
  color: var(--color-heading);
}

/* ==============================
   Inline CTA Banner
   ============================== */
.compare-cta-inline {
  background-color: rgba(200, 91, 26, 0.06);
  border: 1px solid rgba(200, 91, 26, 0.15);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

.compare-cta-inline__text {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.compare-cta-inline__text strong {
  color: var(--color-heading);
}

/* ==============================
   Prose Content
   ============================== */
.compare-prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 0 48px;
}

.compare-prose h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 56px 0 16px;
  line-height: 1.3;
}

.compare-prose h2:first-child {
  margin-top: 0;
}

.compare-prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-teal);
  margin: 32px 0 8px;
}

.compare-prose p {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.compare-prose ul,
.compare-prose ol {
  margin: 12px 0 20px 24px;
  list-style: disc;
}

.compare-prose ol {
  list-style: decimal;
}

.compare-prose li {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 6px;
}

.compare-prose li strong {
  color: var(--color-heading);
}

.compare-prose a {
  color: var(--color-teal);
  text-decoration: underline;
  text-decoration-color: rgba(42, 93, 106, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s ease;
}

.compare-prose a:hover {
  text-decoration-color: var(--color-teal);
}

/* Verdict callout within prose */
.verdict {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-left: 3px solid var(--color-teal);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 12px 0 24px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.verdict strong {
  color: var(--color-heading);
}

/* When-to-choose boxes */
.when-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 16px 0 24px;
}

.when-box ul {
  margin: 0;
  list-style: none;
  padding: 0;
}

.when-box li {
  padding: 6px 0 6px 28px;
  position: relative;
}

.when-box li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-teal);
  font-weight: 700;
}

/* ==============================
   Tool Cards (Alternatives Pages)
   ============================== */
.tool-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 32px;
  margin: 24px 0;
  transition: border-color 0.2s ease;
}

.tool-card:hover {
  border-color: var(--color-border);
}

.tool-card--featured {
  border-color: var(--color-brand);
  border-width: 2px;
  position: relative;
}

.tool-card__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-teal);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: middle;
}

.tool-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: rgba(42, 93, 106, 0.08);
  color: var(--color-teal);
  margin-left: 8px;
  vertical-align: middle;
}

.tool-card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.tool-card__detail-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.tool-card__pros,
.tool-card__cons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tool-card__pros li,
.tool-card__cons li {
  padding: 4px 0 4px 20px;
  position: relative;
  font-size: 0.95rem;
}

.tool-card__pros li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--color-teal);
  font-weight: 700;
}

.tool-card__cons li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
  font-weight: 700;
}

/* ==============================
   Hub Page Grid
   ============================== */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.hub-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}

.hub-card:hover {
  border-color: var(--color-brand);
  transform: translateY(-2px);
}

.hub-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.hub-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
}

.hub-card__arrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brand);
  margin-top: 12px;
}

.hub-section__title {
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 48px 0 16px;
}

.hub-section__title:first-of-type {
  margin-top: 0;
}

/* ==============================
   Fairness Disclaimer
   ============================== */
.compare-disclaimer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border-light);
}

.compare-disclaimer p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* ==============================
   Internal Links Section
   ============================== */
.compare-links {
  padding: 32px 0;
  max-width: 780px;
  margin: 0 auto;
}

.compare-links__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 12px;
}

.compare-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.compare-links a {
  font-size: 0.9rem;
  color: var(--color-teal);
  transition: color 0.15s ease;
}

.compare-links a:hover {
  color: var(--color-brand);
}

/* ==============================
   Decision Tree
   ============================== */
.decision-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.decision-tree li {
  padding: 12px 16px;
  border-left: 2px solid var(--color-border);
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.6;
}

.decision-tree li strong {
  color: var(--color-heading);
}

.decision-tree li a {
  color: var(--color-teal);
  font-weight: 600;
}

/* ==============================
   Responsive — Tablet
   ============================== */
@media (max-width: 1023px) and (min-width: 769px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare-hero__title {
    font-size: 2.1rem;
  }

  .tool-card__details {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   Responsive — Mobile
   ============================== */
@media (max-width: 768px) {
  .breadcrumb {
    padding-top: calc(var(--nav-height) + 16px);
  }

  .compare-hero {
    padding: 24px 0 32px;
  }

  .compare-hero__title {
    font-size: 1.8rem;
  }

  .compare-hero__subtitle {
    font-size: 1.05rem;
  }

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

  .compare-prose h2 {
    font-size: 1.35rem;
    margin-top: 40px;
  }

  .compare-prose h3 {
    font-size: 1.1rem;
  }

  .compare-table {
    font-size: 0.85rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
  }

  .compare-cta-inline {
    padding: 24px;
    margin: 32px 0;
  }

  .tool-card {
    padding: 24px;
  }

  .tool-card__details {
    grid-template-columns: 1fr;
  }

  .when-box {
    padding: 20px 24px;
  }

  .compare-links ul {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==============================
   Responsive — Small Mobile
   ============================== */
@media (max-width: 480px) {
  .compare-hero__title {
    font-size: 1.5rem;
  }

  .compare-prose h2 {
    font-size: 1.2rem;
  }

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