/* Compare — nexvork.ai (prefix cp-) */

.cp-hero { overflow: hidden; }
.cp-hero .container { z-index: 1; }
.cp-hero-copy { max-width: 880px; }
.cp-hero-title { max-width: 20ch; }
.cp-hero-copy .nx-hero-lead { max-width: 74ch; }
.cp-hero-actions { margin-top: 32px; }
.cp-orb-1 { width: 540px; height: 540px; top: -180px; left: -160px; }
.cp-orb-2 { width: 620px; height: 620px; top: 4%; right: -240px; }

.cp-hero-visual { margin-top: clamp(40px, 5vw, 64px); }
.cp-scorecard { max-width: 100%; }
.cp-score-cap { font-size: 0.86rem; color: var(--muted); line-height: 1.55; margin-bottom: 18px; max-width: 78ch; }
.cp-score { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cp-score-col { min-width: 0; padding: 18px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background-color: var(--bg-3); }
.cp-score-col.is-nx { border-color: rgba(65, 143, 228, 0.34); background-image: var(--grad-soft); }
.cp-score-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cp-score-badge { flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; color: #fff; background: var(--grad); }
.cp-score-name { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--text); min-width: 0; }
.cp-score-for { font-size: 0.78rem; line-height: 1.5; color: var(--muted); margin-bottom: 16px; min-height: 2.3em; }
.cp-meters { display: grid; gap: 9px; }
.cp-meter { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cp-meter-label { font-size: 0.72rem; color: var(--text-2); min-width: 0; }
.cp-dots { display: inline-flex; gap: 4px; flex-shrink: 0; }
.cp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-3); }
.cp-dot.is-on { background: var(--nx-blue-2); box-shadow: 0 0 8px rgba(65, 143, 228, 0.55); }
.cp-score-col.is-nx .cp-dot.is-on { background: var(--nx-cyan); box-shadow: 0 0 8px rgba(34, 211, 238, 0.55); }
html[data-theme="light"] .cp-score-col { background-color: var(--bg-2); }
html[data-theme="light"] .cp-dot { background: var(--bg-4); }
html[data-theme="light"] .cp-dot.is-on { background: var(--nx-purple); box-shadow: none; }
html[data-theme="light"] .cp-score-col.is-nx .cp-dot.is-on { background: var(--nx-blue); box-shadow: none; }

.cp-inline-link { color: var(--nx-blue-2); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="light"] .cp-inline-link { color: var(--nx-purple); }

.cp-opt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cp-opt { display: flex; flex-direction: column; padding: 26px 24px; }
.cp-opt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.cp-opt h3 { font-size: 1.02rem; margin-bottom: 10px; }
.cp-opt > p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.cp-opt-nx { border-color: rgba(65, 143, 228, 0.3); }
.cp-opt-line { margin-top: 14px; font-size: 0.82rem; line-height: 1.55; color: var(--text-2); }
.cp-opt-line span { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.cp-opt-good { margin-top: auto; padding-top: 14px; }
.cp-opt-good span { color: var(--nx-emerald); }
.cp-opt-cost span { color: var(--nx-amber); }
.cp-opt-note { margin-top: 24px; font-size: 0.92rem; max-width: 760px; }

.cp-table-hint { display: none; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); margin-bottom: 12px; }
.cp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
html[data-theme="light"] .cp-table-wrap { background: var(--surface-2); box-shadow: var(--shadow-sm); }
.cp-table { width: 100%; min-width: 1020px; border-collapse: separate; border-spacing: 0; font-size: 0.88rem; }
.cp-table th, .cp-table td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.55; }
.cp-table thead th { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); background: var(--bg-3); white-space: nowrap; }
.cp-table thead th:first-child { color: var(--subtle); position: sticky; left: 0; z-index: 2; }
.cp-table thead th.cp-th-nx { color: var(--nx-blue-2); }
html[data-theme="light"] .cp-table thead th.cp-th-nx { color: var(--nx-purple); }
.cp-th-badge { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; margin-right: 6px; font-size: 0.6rem; font-weight: 700; color: #fff; background: var(--grad); vertical-align: -3px; }
.cp-table tbody th { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--text); width: 190px; background: var(--bg-3); position: sticky; left: 0; z-index: 1; }
.cp-table td { color: var(--text-2); min-width: 210px; }
.cp-table td.cp-td-nx { background-image: var(--grad-soft); }
.cp-table tbody tr:last-child th, .cp-table tbody tr:last-child td { border-bottom: 0; }
.cp-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; margin-bottom: 8px; border: 1px solid transparent; }
.cp-mark-yes { background: rgba(16, 185, 129, 0.14); color: var(--nx-emerald); border-color: rgba(16, 185, 129, 0.32); }
.cp-mark-part { background: rgba(245, 158, 11, 0.14); color: var(--nx-amber); border-color: rgba(245, 158, 11, 0.32); }
.cp-mark-no { background: rgba(244, 63, 94, 0.14); color: var(--nx-rose); border-color: rgba(244, 63, 94, 0.32); }
.cp-mark-info { background: var(--surface-3); color: var(--muted); border-color: var(--line-2); }
.cp-cell-note { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.cp-cell-note .cp-inline-link { font-size: inherit; }

.cp-fair { margin-top: 26px; padding: 22px 24px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); background: var(--surface); max-width: 900px; }
.cp-fair-k { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nx-cyan); margin-bottom: 8px; }
html[data-theme="light"] .cp-fair-k { color: var(--nx-blue-3); }
.cp-fair p { font-size: 0.9rem; line-height: 1.65; color: var(--text-2); }
.cp-fair-inline { margin-top: 26px; padding: 18px 20px; max-width: none; }
.cp-fair-inline p { font-size: 0.88rem; }

.cp-deep .split > *, .cp-switch-grid > *, .cp-nofit-grid > * { min-width: 0; }
.cp-visual { position: relative; }
.cp-win { max-width: min(100%, 560px); margin: 0 auto; }
.cp-phone { width: 320px; }
.cp-cols { margin-bottom: 14px; }

.cp-pairs { display: grid; gap: 12px; margin-top: 26px; list-style: none; }
.cp-pair { padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; }
html[data-theme="light"] .cp-pair { background: var(--bg-2); }
.cp-pair-side { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; }
.cp-pair-k { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.11em; text-transform: uppercase; padding-top: 4px; }
.cp-pair-pain .cp-pair-k { color: var(--nx-rose); }
.cp-pair-fix .cp-pair-k { color: var(--nx-emerald); }
.cp-pair-fix { border-top: 1px dashed var(--line-2); padding-top: 12px; }
.cp-pair p { font-size: 0.89rem; line-height: 1.6; color: var(--muted); }
.cp-pair-fix p { color: var(--text-2); }

.cp-fields { margin: 14px 0 12px; }
.cp-fields-head { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); margin-bottom: 10px; }
.cp-pills .nx-pill { font-size: 0.68rem; padding: 5px 10px; cursor: default; }
.cp-pills .nx-pill:hover { border-color: var(--line-2); background: var(--surface-2); color: var(--text-2); box-shadow: none; }

.cp-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 0.75rem; font-weight: 600; color: var(--text); box-shadow: var(--shadow-md); z-index: 3; }
.cp-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nx-amber); box-shadow: 0 0 10px var(--nx-amber); flex-shrink: 0; }
.cp-chip-b { bottom: 10px; left: 0; right: 0; width: max-content; max-width: calc(100% - 16px); margin: 0 auto; white-space: normal; text-align: center; }

.cp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cp-steps .nx-step h3 { font-size: 1.05rem; }
.cp-switch-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(20px, 3vw, 32px); margin-top: clamp(28px, 4vw, 44px); align-items: start; }
.cp-console { font-size: 0.74rem; }
.cp-console .nx-console-bar .nx-window-title { color: #6C7388; }
.cp-console .nx-console-body { padding: 16px 18px; }
.cp-needs { padding: 28px 26px; }
.cp-needs-head { margin-bottom: 18px; }
.cp-needs-head h3 { margin-top: 8px; }
.cp-needs .nx-checks li { font-size: 0.9rem; }
.cp-needs-note { margin-top: 18px; font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

.cp-nofit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cp-nofit-card { padding: 26px 24px; }
.cp-nofit-x { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(244, 63, 94, 0.12); color: var(--nx-rose); border: 1px solid rgba(244, 63, 94, 0.28); margin-bottom: 16px; }
.cp-nofit-card h3 { font-size: 1.02rem; margin-bottom: 10px; }
.cp-nofit-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.62; }
.cp-nofit-foot { margin-top: 26px; padding: 24px 26px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
html[data-theme="light"] .cp-nofit-foot { background: var(--surface-2); }
.cp-nofit-foot p { font-size: 0.95rem; line-height: 1.7; color: var(--text-2); max-width: 90ch; }

@media (max-width: 1100px) {
    .cp-score { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-switch-grid { grid-template-columns: 1fr; }
    .cp-console { max-width: min(100%, 620px); }
}
@media (max-width: 1024px) {
    .cp-nofit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-table { min-width: 940px; }
}
@media (max-width: 900px) {
    .cp-hero-title { max-width: none; }
    .cp-phone { width: 300px; margin: 0 auto; }
    .cp-table-hint { display: block; }
}
@media (max-width: 640px) {
    .cp-score { grid-template-columns: 1fr; }
    .cp-score-for { min-height: 0; }
    .cp-opt-grid { grid-template-columns: 1fr; }
    .cp-opt-good { margin-top: 14px; }
    .cp-steps { grid-template-columns: 1fr; }
    .cp-nofit-grid { grid-template-columns: 1fr; }
    .cp-table { min-width: 780px; font-size: 0.84rem; }
    .cp-table th, .cp-table td { padding: 13px 14px; }
    .cp-table tbody th { width: 140px; }
    .cp-table td { min-width: 180px; }
    .cp-fair { padding: 18px 18px; }
    .cp-needs { padding: 22px 20px; }
    .cp-nofit-foot { padding: 20px 18px; }
    .cp-console { font-size: 0.68rem; }
    .cp-console .nx-console-body { padding: 12px 14px; }
    .cp-chip { font-size: 0.68rem; padding: 7px 11px; }
    .cp-cols { grid-template-columns: 1fr 1fr; }
    .cp-win .nx-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
    .cp-phone { width: 100%; }
    .cp-pair-side { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .cp-pair-k { padding-top: 0; }
    .cp-score-col { padding: 16px 14px; }
    .cp-opt, .cp-nofit-card { padding: 22px 18px; }
    .cp-chip-b { font-size: 0.64rem; }
}
