:root { --smc-muted: #6b7280; --smc-text: #111827; --smc-border: #e5e7eb; --smc-primary: #003049; --smc-primary-600: #004d73; --smc-success: #10b981; --smc-error: #ef4444; }

.sm-comparison-page { margin: 24px 0; padding: 0; }
.sm-comparison-page.sm-full-width { width: 100%; max-width: 100%; position: relative; left: 0; right: 0; margin: 0; padding: 0; box-sizing: border-box; }
.sm-comparison-page.sm-full-width .sm-compare-header,
.sm-comparison-page.sm-full-width .sm-compare-table-wrap,
.sm-comparison-page.sm-full-width .sm-compare-table { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }

.sm-compare-header h1 { font-size: 28px; font-weight: 800; color: var(--smc-text); margin: 0 0 18px 0; }
.sm-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.sm-kpi { display: flex; align-items: center; gap: 10px; background: #ffffff; border: 1px solid var(--smc-border); border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.sm-kpi .sm-kpi-icon { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #f3f4f6; color: var(--smc-primary); font-size: 18px; }
.sm-kpi .sm-kpi-text { display: flex; flex-direction: column; }
.sm-kpi .sm-kpi-title { font-weight: 700; color: var(--smc-text); font-size: 13px; }
.sm-kpi .sm-kpi-value { color: var(--smc-muted); font-size: 13px; }

.sm-compare-table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; background: transparent; }
.sm-compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #ffffff; border: 0; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); table-layout: fixed; }
.sm-compare-table thead th { position: sticky; top: 0; z-index: 100; background: #ffffff; font-weight: 700; font-size: 13px; letter-spacing: .02em; color: var(--smc-text); padding: 14px 16px; border-bottom: 1px solid var(--smc-border); text-align: left; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.sm-compare-table thead th:not(:first-child) { text-align: center; }
.sm-compare-table thead th, .sm-compare-table tbody td { min-width: 220px; }
.sm-compare-table thead th:first-child, .sm-compare-table tbody td:first-child { min-width: 160px; width: 160px; }
.sm-compare-table tbody td { padding: 16px; border-bottom: 1px solid var(--smc-border); vertical-align: top; }
.sm-compare-table tbody tr:last-child td { border-bottom: 0; }
.sm-compare-table thead th:first-child, .sm-compare-table tbody td:first-child { position: sticky; left: 0; background: #f9fafb; z-index: 101; box-shadow: 8px 0 12px rgba(0,0,0,0.04); }
.sm-compare-table thead th:nth-child(2n), .sm-compare-table tbody td:nth-child(2n) { background: #fcfcfd; }
.sm-compare-table thead th:nth-child(2n+1), .sm-compare-table tbody td:nth-child(2n+1) { background: #ffffff; }

.sm-compare-logo { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--smc-border); border-radius: 10px; background: #fff; display: block; margin: 0 auto; }
.sm-compare-name { margin-top: 10px; font-weight: 700; color: var(--smc-text); font-size: 15px; text-align: center; }
.sm-compare-actions { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.sm-compare-visit { display: inline-block; margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: var(--smc-primary); color: #fff; text-decoration: none; border: 2px solid var(--smc-primary); font-weight: 600; font-size: 13px; }
.sm-compare-visit:hover { background: var(--smc-primary-600); border-color: var(--smc-primary-600); }
.sm-compare-details { display: inline-block; margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: #f3f4f6; color: var(--smc-primary); text-decoration: none; border: 2px solid var(--smc-primary); font-weight: 600; font-size: 13px; }
.sm-compare-details:hover { background: #e5e7eb; }

.sm-compare-rating { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--smc-text); }
.sm-compare-price { font-weight: 700; color: var(--smc-text); font-size: 14px; }

.sm-compare-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sm-compare-pros ul, .sm-compare-cons ul { margin: 0; padding-left: 18px; }
.sm-compare-pros ul li { color: var(--smc-text); }
.sm-compare-cons ul li { color: var(--smc-text); }
.sm-compare-pros, .sm-compare-cons { padding: 8px; border: 1px solid var(--smc-border); border-radius: 8px; background: #ffffff; }
.sm-pc-title { font-weight: 800; margin-bottom: 6px; font-size: 13px; }
.sm-compare-pros .sm-pc-title { color: var(--smc-success); }
.sm-compare-cons .sm-pc-title { color: var(--smc-error); }
.sm-pc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sm-pc-text { flex: 1 1 auto; }
.sm-pc-count { display: inline-block; min-width: 18px; padding: 2px 6px; border-radius: 12px; background: #f3f4f6; color: var(--smc-muted); font-size: 12px; font-weight: 700; text-align: center; flex: 0 0 auto; }

.sm-compare-features ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.sm-compare-features li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px dashed var(--smc-border); border-radius: 8px; background: #fafafa; }
.sm-compare-features li .mark { font-weight: 800; }
.sm-compare-features li.has .mark { color: var(--smc-success); }
.sm-compare-features li.has-not .mark { color: var(--smc-error); }
.sm-compare-features li .text { color: var(--smc-text); font-size: 13px; }
.sm-feature-count { font-weight: 700; color: var(--smc-text); margin-bottom: 8px; font-size: 13px; }
.sm-corefeats { min-height: 24px; }
.sm-corefeats-list { margin: 0; padding-left: 18px; }
.sm-corefeats .sm-empty { color: var(--smc-muted); }
.sm-integrations { min-height: 24px; }
.sm-integrations-list { margin: 0; padding-left: 18px; }
.sm-integrations .sm-empty { color: var(--smc-muted); }
.sm-keyfeats { min-height: 24px; }
.sm-keyfeats-list { margin: 0; padding-left: 18px; }
.sm-keyfeats .sm-empty { color: var(--smc-muted); }

.sm-winner { background: #e6fffa !important; font-weight: 700; }
.sm-winner { border-left: 3px solid var(--smc-success); }
.sm-compare-verdict { margin: 12px 0 16px; padding: 12px 16px; background: #f0fdf4; border: 1px solid #dcfce7; border-radius: 10px; color: #064e3b; font-weight: 600; }
.sm-compare-faqs { margin: 24px 0; padding: 18px; border: 1px solid var(--smc-border); border-radius: 12px; background: #ffffff; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.sm-compare-faqs h2 { font-size: 20px; font-weight: 800; margin: 0 0 14px 0; color: var(--smc-text); }
.sm-faq-item { display: block; padding: 12px 14px; border: 1px solid var(--smc-border); border-radius: 10px; background: #f9fafb; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.sm-faq-item + .sm-faq-item { margin-top: 12px; }
.sm-faq-q { position: relative; font-weight: 800; color: var(--smc-text); padding-left: 30px; margin-bottom: 6px; }
.sm-faq-q::before { content: "?"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 6px; background: #e7f3ff; color: var(--smc-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.sm-faq-a { position: relative; color: #374151; line-height: 1.6; padding-left: 55px; display: block; }
.sm-faq-a::before { content: "Ans"; position: absolute; left: 0; top: 0; min-width: 28px; height: 22px; padding: 0 6px; border-radius: 6px; background: #ecfdf5; color: #065f46; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }

@media (max-width: 768px) {
  .sm-comparison-page { margin: 12px 0; padding: 0 12px; }
  .sm-compare-header h1 { font-size: 20px; margin: 0 0 12px 0; }
  .sm-kpi-grid { grid-template-columns: 1fr; gap: 8px; margin: 8px 0 12px; }
  .sm-kpi { padding: 10px 12px; gap: 8px; }
  .sm-kpi .sm-kpi-icon { width: 32px; height: 32px; font-size: 16px; }
  .sm-kpi .sm-kpi-title { font-size: 12px; }
  .sm-kpi .sm-kpi-value { font-size: 12px; }
  .sm-compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sm-compare-table { min-width: 600px; table-layout: auto; }
  .sm-compare-table thead th, .sm-compare-table tbody td { min-width: 150px; padding: 12px 10px; font-size: 12px; }
  .sm-compare-table thead th:first-child, .sm-compare-table tbody td:first-child { min-width: 120px; width: auto; }
  .sm-compare-logo { width: 56px; height: 56px; }
  .sm-compare-name { font-size: 13px; margin-top: 8px; }
  .sm-compare-actions { gap: 6px; margin-top: 6px; }
  .sm-compare-visit, .sm-compare-details { padding: 6px 10px; font-size: 12px; }
  .sm-compare-pros-cons { grid-template-columns: 1fr; gap: 12px; }
  .sm-compare-pros ul, .sm-compare-cons ul { padding-left: 16px; }
  .sm-pc-title { font-size: 12px; margin-bottom: 4px; }
  .sm-pc-count { font-size: 11px; padding: 1px 4px; }
  .sm-feature-count { font-size: 12px; }
  .sm-compare-features li { gap: 8px; padding: 4px 6px; }
  .sm-compare-features li .text { font-size: 12px; }
  .sm-corefeats-list, .sm-integrations-list, .sm-keyfeats-list { padding-left: 16px; font-size: 12px; }
  .sm-compare-faqs { margin: 16px 0; padding: 14px; }
  .sm-compare-faqs h2 { font-size: 16px; margin: 0 0 10px 0; }
  .sm-faq-item { padding: 10px 12px; }
  .sm-faq-q, .sm-faq-a { font-size: 13px; padding-left: 28px; }
  .sm-faq-q::before, .sm-faq-a::before { width: 20px; height: 20px; font-size: 11px; }
  .sm-compare-verdict { margin: 12px 0 14px; padding: 10px 12px; font-size: 13px; }
}

@media (max-width: 480px) {
  .sm-comparison-page { margin: 8px 0; padding: 0 8px; }
  .sm-compare-header h1 { font-size: 18px; margin: 0 0 10px 0; }
  .sm-kpi-grid { grid-template-columns: 1fr; gap: 6px; margin: 6px 0 10px; }
  .sm-kpi { padding: 8px 10px; gap: 6px; }
  .sm-kpi .sm-kpi-icon { width: 28px; height: 28px; font-size: 14px; }
  .sm-kpi .sm-kpi-title { font-size: 11px; }
  .sm-kpi .sm-kpi-value { font-size: 11px; }
  .sm-compare-table { min-width: 500px; }
  .sm-compare-table thead th, .sm-compare-table tbody td { min-width: 130px; padding: 10px 8px; font-size: 11px; }
  .sm-compare-table thead th:first-child, .sm-compare-table tbody td:first-child { min-width: 100px; }
  .sm-compare-logo { width: 48px; height: 48px; }
  .sm-compare-name { font-size: 12px; margin-top: 6px; }
  .sm-compare-actions { gap: 4px; margin-top: 4px; flex-wrap: wrap; }
  .sm-compare-visit, .sm-compare-details { padding: 5px 8px; font-size: 11px; }
  .sm-compare-pros-cons { grid-template-columns: 1fr; gap: 8px; }
  .sm-compare-pros ul, .sm-compare-cons ul { padding-left: 14px; }
  .sm-pc-title { font-size: 11px; }
  .sm-pc-count { font-size: 10px; }
  .sm-feature-count { font-size: 11px; }
  .sm-compare-features li { gap: 6px; padding: 3px 5px; }
  .sm-compare-features li .text { font-size: 11px; }
  .sm-corefeats-list, .sm-integrations-list, .sm-keyfeats-list { padding-left: 14px; font-size: 11px; }
  .sm-compare-faqs { margin: 12px 0; padding: 10px; }
  .sm-compare-faqs h2 { font-size: 14px; margin: 0 0 8px 0; }
  .sm-faq-item { padding: 8px 10px; border-radius: 8px; }
  .sm-faq-q, .sm-faq-a { font-size: 12px; padding-left: 35px; }
  .sm-faq-q::before, .sm-faq-a::before { width: 18px; height: 18px; font-size: 10px; }
  .sm-compare-verdict { margin: 10px 0 12px; padding: 8px 10px; font-size: 12px; }
}

@media (min-width: 768px) {
  .sm-compare-features ul { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sm-kpi-grid { grid-template-columns: 1fr; }
}
