.compare-page {
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 113, 227, 0.09), transparent 30rem),
    var(--bg);
}

.compare-nav {
  width: min(100% - 44px, 1136px);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.compare-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 750;
}

.compare-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.compare-back {
  color: var(--muted);
  font-size: 14px;
}

.compare-back:hover,
.breadcrumbs a:hover,
.source-section a:hover {
  color: var(--blue);
}

.compare-shell {
  width: min(100% - 44px, 1136px);
  margin: 0 auto;
  padding: 32px 0 88px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--subtle);
  font-size: 13px;
}

.compare-hero {
  max-width: 940px;
  padding: clamp(70px, 10vw, 128px) 0 clamp(66px, 8vw, 100px);
}

.compare-hero h1 {
  max-width: 920px;
  margin: 16px 0 0;
  font-size: clamp(38px, 6.1vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
  text-wrap: balance;
  white-space: normal;
}

.compare-hero > p {
  max-width: 800px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.72;
}

.compare-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  color: var(--subtle);
  font-size: 13px;
}

.compare-summary,
.comparison-section,
.decision-section,
.compare-faq,
.source-section {
  margin-top: 28px;
  padding: clamp(34px, 5vw, 60px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.compare-summary > div:first-child,
.section-heading {
  max-width: 760px;
}

.compare-summary h2,
.section-heading h2,
.source-section h2,
.compare-cta h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.section-heading > p,
.source-section > div > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.summary-grid,
.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.decision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-grid article,
.decision-grid article {
  min-height: 168px;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(0, 0, 0, 0.055);
}

.summary-grid strong {
  display: block;
  font-size: 17px;
  line-height: 1.4;
}

.summary-grid p,
.decision-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.comparison-table-wrap {
  margin-top: 34px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table tr > *:last-child {
  border-right: 0;
}

.comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5f5f7;
  font-size: 15px;
  line-height: 1.35;
}

.comparison-table thead th:first-child,
.comparison-table tbody th {
  width: 150px;
}

.comparison-table tbody th {
  color: var(--text);
  background: #fbfbfd;
  font-size: 14px;
  line-height: 1.5;
}

.comparison-table .reader-mode-col {
  background: #f2f7ff;
}

.comparison-table thead .reader-mode-col {
  color: #005bbd;
  background: #e8f2ff;
}

.comparison-table td strong,
.comparison-table td span {
  display: block;
}

.comparison-table td strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.comparison-table td span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.comparison-table small {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 500;
}

.decision-grid article > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.decision-grid h3 {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.4;
}

.compare-faq .faq-list {
  max-width: none;
}

.source-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 50px;
}

.source-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-section li + li {
  margin-top: 10px;
}

.source-section a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.source-section a::after {
  content: "↗";
  flex: 0 0 auto;
  color: var(--subtle);
}

.comparison-disclaimer {
  margin: 28px auto 0;
  padding: 0 20px;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.75;
  text-align: center;
}

.compare-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  margin-top: 48px;
  padding: clamp(38px, 6vw, 68px);
  border-radius: var(--radius-lg);
  color: #fff;
  background: #1d1d1f;
}

.compare-cta > div:first-child {
  max-width: 700px;
}

.compare-cta .kicker,
.compare-cta h2 {
  color: #fff;
}

.compare-cta p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
}

.compare-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  min-width: 176px;
}

.compare-actions .button {
  justify-content: center;
}

.compare-actions .button.primary {
  color: var(--text);
  background: #fff;
}

.compare-actions .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}

@media (max-width: 820px) {
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .source-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .compare-actions {
    width: 100%;
    flex-direction: row;
  }

  .compare-actions .button {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .compare-nav,
  .compare-shell {
    width: min(100% - 28px, 1136px);
  }

  .compare-nav {
    min-height: 62px;
  }

  .compare-shell {
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .compare-hero {
    padding: 54px 0 58px;
  }

  .compare-hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .compare-hero > p {
    margin-top: 22px;
    font-size: 17px;
  }

  .compare-summary,
  .comparison-section,
  .decision-section,
  .compare-faq,
  .source-section {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .summary-grid,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid article,
  .decision-grid article {
    min-height: auto;
    padding: 20px;
  }

  .comparison-table-wrap {
    margin-right: -20px;
    border-radius: 16px 0 0 16px;
    border-right: 0;
  }

  .compare-actions {
    flex-direction: column;
  }

  .compare-back {
    font-size: 13px;
  }
}
