/* Comparison pages (views/site/compare.php) and their hub (views/site/pages/compare.php) */
.cp section.block { padding-block: 96px 0; }
.cp .sec-head { gap: 14px; max-width: 760px; margin-bottom: 36px; }

.cp-hero { padding-block: 56px 0; display: grid; gap: 18px; justify-items: start; }
.cp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.cp-crumbs a { color: inherit; text-decoration: none; }
.cp-crumbs a:hover { color: var(--ink); }
.cp-hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; max-width: 18ch; text-wrap: balance; }
.cp-hero .lead { max-width: 68ch; }
.cp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cp-checked { color: var(--ink-muted); font-size: 14px; max-width: 68ch; }

.cp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cp-cards > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; display: grid; gap: 10px; align-content: start; }
.cp-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.cp-ic svg { width: 22px; height: 22px; }
.cp-cards b { font: 700 20px/1.2 var(--display); letter-spacing: -.015em; }
.cp-cards > div > span:last-child { color: var(--ink-muted); font-size: 15px; }
@media (max-width: 900px) { .cp-cards { grid-template-columns: 1fr; } }

.cp-cost { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cp-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: grid; gap: 16px; }
.cp-box h3 { font-size: 22px; }
.cp-box table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cp-box th, .cp-box td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: start; }
.cp-box th { font-weight: 500; color: var(--ink-muted); padding-inline-end: 16px; }
.cp-box th small { display: block; color: var(--ink-faint); font-size: 13px; margin-top: 2px; }
.cp-box td { font-weight: 600; white-space: nowrap; text-align: end; font-variant-numeric: tabular-nums; }
.cp-box .cp-total th, .cp-box .cp-total td { border-bottom: 0; color: var(--ink); font-weight: 700; padding-top: 16px; }
.cp-box .cp-total td { white-space: normal; }
.cp-us { border-color: var(--accent); box-shadow: var(--shadow-md); }
.cp-note { color: var(--ink-muted); font-size: 14px; }
.cp-ref { font-size: 12px; color: var(--accent); text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) { .cp-cost { grid-template-columns: 1fr; } }

.cp-table-wrap { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cp-table th, .cp-table td { padding: 16px 22px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.cp-table thead th { font: 700 17px/1.2 var(--display); background: var(--panel); }
.cp-table thead th:last-child { color: var(--accent); }
.cp-table tbody th { font-weight: 600; width: 22%; }
.cp-table td { color: var(--ink-muted); width: 39%; }
.cp-table td:last-child { color: var(--ink); }
.cp-table tr:last-child th, .cp-table tr:last-child td { border-bottom: 0; }
.cp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .cp-table thead { display: none; }
  .cp-table, .cp-table tbody, .cp-table tr, .cp-table th, .cp-table td { display: block; width: auto; }
  .cp-table tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .cp-table tr:last-child { border-bottom: 0; }
  .cp-table th, .cp-table td { padding: 0; border: 0; }
  .cp-table tbody th { font-size: 16px; margin-bottom: 10px; width: auto; }
  .cp-table td { width: auto; }
  .cp-table td { margin-top: 8px; }
  .cp-table td::before { content: attr(data-label); display: block; font: 600 12px/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 2px; }
  .cp-table td:last-child::before { color: var(--accent); }
}

.cp-incl { margin-top: 32px; background: var(--panel); border-radius: var(--r-xl); padding: 28px; display: grid; gap: 16px; }
.cp-incl h3 { font-size: 20px; }
.cp-incl ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
.cp-incl li { position: relative; padding-inline-start: 20px; font-size: 15px; line-height: 1.5; }
.cp-incl li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cp-incl a { color: var(--accent); text-decoration: none; font-weight: 600; }
@media (max-width: 760px) { .cp-incl ul { grid-template-columns: 1fr; } }

.cp-design { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.cp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cp-list li { position: relative; padding-inline-start: 20px; font-size: 15px; line-height: 1.5; }
.cp-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cp-note a { color: var(--accent); }
.cp-design .cp-box td { white-space: normal; min-width: 7em; }
@media (max-width: 900px) { .cp-design { grid-template-columns: 1fr; } }

.cp-move { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.cp-move .h-sec { margin-top: 14px; }
.cp-move .lead { margin-top: 16px; }
.cp-steps { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.cp-steps li { counter-increment: s; position: relative; padding-inline-start: 48px; min-height: 34px; padding-top: 5px; }
.cp-steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 15px/34px var(--body); text-align: center; }
@media (max-width: 900px) { .cp-move { grid-template-columns: 1fr; gap: 24px; } }

.cp-better { display: grid; gap: 20px; }
.cp-better > *, .cp-sources > * { max-width: 860px; }
.cp-better ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cp-better li { position: relative; padding-inline-start: 22px; font-size: 17px; }
.cp-better li::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); }
.cp-better a, .cp-sources a { color: var(--accent); }

.cp-others { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cp-others .chip { text-decoration: none; }
.cp-others .chip:hover { color: var(--ink); }

.cp-sources { display: grid; gap: 14px; }
.cp-sources h2 { font-size: 24px; }
.cp-sources ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; font-size: 15px; }
.cp-sources li { scroll-margin-top: 96px; }
.cp-names { font-size: 13px; }

.cp-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.cp-hub a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.cp-hub a:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.cp-hub b { font: 700 24px/1.15 var(--display); letter-spacing: -.02em; }
.cp-hub span { color: var(--ink-muted); }
.cp-hub em { font-style: normal; font-weight: 600; color: var(--accent); }
.cp-hub small { color: var(--ink-faint); font-size: 13px; }
@media (max-width: 900px) { .cp-hub { grid-template-columns: 1fr; } }

.cp-final { margin-block: 104px 120px; border-radius: 32px; background: var(--hero); color: var(--on-hero); padding: 64px 48px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.cp-final h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.04em; max-width: 18ch; text-wrap: balance; }
.cp-final p { color: var(--on-hero-muted); font-size: 18px; }
.cp-final .btn { background: #fff; color: #0E1116; }
@media (max-width: 600px) { .cp-final { padding: 48px 24px; } .cp section.block { padding-block: 72px 0; } .cp-box { padding: 22px; } .cp-box td { white-space: normal; } }

/* hero: value line and headline advantages */
.cp-value { font: 600 20px/1.4 var(--body); color: var(--ink); max-width: 60ch; }
.cp-wins { margin: 4px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; }
.cp-wins li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.cp-wins b { font: 700 17px/1.25 var(--display); letter-spacing: -.01em; }
.cp-wins span { color: var(--ink-muted); font-size: 14px; }
@media (max-width: 1000px) { .cp-wins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cp-wins { grid-template-columns: 1fr; } }

/* feature comparison */
.cp-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cp-st { display: inline-block; font: 600 12px/1.2 var(--body); padding: 3px 8px; border-radius: var(--r-pill); white-space: nowrap; vertical-align: 1px; }
.cp-st-no, .cp-st-dev { background: #FDECEC; color: #A1262B; }
.cp-st-addon { background: var(--warning-soft); color: var(--warning); }
.cp-st-part { background: var(--panel); color: var(--ink-muted); }
.cp-st-yes, .cp-st-free { background: var(--success-soft); color: var(--success); }
.cp-ft tbody th { width: 24%; }
.cp-ft td { width: 38%; }
.cp-ft td:nth-child(2) { color: var(--ink); }
.cp-ft td:last-child { color: var(--ink-muted); }
.cp-ft .cp-group th { background: var(--panel); font: 600 12px/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: 12px 22px; }
.cp-ft tr.cp-f-no th[scope="row"], .cp-ft tr.cp-f-dev th[scope="row"] { box-shadow: inset 3px 0 0 var(--accent); }
.cp-ck { color: var(--success); font-weight: 700; }
.cp-ft thead th:last-child { color: var(--ink); }
.cp-ft thead th:nth-child(2) { color: var(--accent); }
.cp-ft tbody:last-child tr:last-child th, .cp-ft tbody:last-child tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .cp-ft tbody { display: block; }
  .cp-ft tbody th, .cp-ft td { width: auto; }
  .cp-ft tr.cp-f-no th[scope="row"], .cp-ft tr.cp-f-dev th[scope="row"] { box-shadow: none; }
  .cp-ft tr.cp-f-no, .cp-ft tr.cp-f-dev { box-shadow: inset 3px 0 0 var(--accent); }
  .cp-ft .cp-group { padding: 0; }
  .cp-ft .cp-group th { display: block; padding: 12px 18px; margin: 0; }
  .cp-ft td:last-child::before { color: var(--ink-faint); }
  .cp-ft td:nth-child(2)::before { color: var(--accent); }
}

.cp-hub-count { font-weight: 600; font-size: 14px; color: var(--ink); }

/* AI built in: one card per AI feature, with the competitor's status underneath */
.cp-ai { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cp-ai-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; display: grid; gap: 10px; grid-template-rows: auto 1fr auto; }
.cp-ai-card:first-child { grid-column: span 2; border-color: var(--accent); box-shadow: var(--shadow-md); }
.cp-ai-card b { font: 700 19px/1.25 var(--display); letter-spacing: -.015em; }
.cp-ai-card b::before { content: "✦"; color: var(--accent); margin-inline-end: 8px; }
.cp-ai-card p { margin: 0; font-size: 15px; line-height: 1.5; }
.cp-ai-them { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
.cp-ai-name { font: 600 12px/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-inline-end: 4px; }
@media (min-width: 1001px) { .cp-ai-card:last-child:nth-child(7) { grid-column: span 2; } }
@media (max-width: 1000px) { .cp-ai { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cp-ai { grid-template-columns: 1fr; } .cp-ai-card:first-child { grid-column: auto; } }

/* the "to match Yclas" total under the feature table */
.cp-match { margin-top: 16px; background: var(--accent-soft); border-radius: var(--r-xl); padding: 22px 26px; display: grid; gap: 6px; }
.cp-match b { font: 700 18px/1.35 var(--display); letter-spacing: -.01em; }
.cp-match span { color: var(--ink-muted); font-size: 15px; }
