.comparison-hero {display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.72fr);align-items:end;gap:clamp(60px,9vw,160px);max-width:1500px;min-height:650px;margin:auto;padding:90px var(--page-padding) 120px}
.comparison-hero h1 {max-width:900px;margin:0;font-size:clamp(3.2rem,6vw,6.5rem);line-height:.94;letter-spacing:-.06em}
.comparison-hero h1 span {color:var(--purple)}
.research-stats {display:grid;grid-template-columns:1fr 1fr;margin:0;border-top:1px solid var(--line);border-left:1px solid var(--line)}
.research-stats div {padding:26px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.research-stats dt {color:var(--purple);font-size:clamp(2rem,4vw,3.8rem);font-weight:600;line-height:1}
.research-stats dd {margin:8px 0 0;color:var(--muted);font-size:.85rem}
.comparison-app,.methodology {max-width:1500px;margin:auto;padding:110px var(--page-padding)}
.comparison-app {border-top:1px solid var(--line)}
.app-heading {display:grid;grid-template-columns:1.2fr .7fr;align-items:end;gap:50px;margin-bottom:42px}
.app-heading h2,.methodology h2 {margin:0;font-size:clamp(2.3rem,4vw,4.3rem);line-height:1.02;letter-spacing:-.045em}
.app-heading>p {margin:0;color:var(--muted)}
.filter-panel {display:grid;grid-template-columns:1.2fr minmax(150px,.5fr) minmax(175px,.6fr) 1fr 1fr auto auto;align-items:end;gap:12px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:14px}
.filter-panel label:not(.check-field) {display:grid;gap:7px}
.filter-panel label>span {color:var(--muted);font-size:.76rem;font-weight:600;letter-spacing:.04em}
.filter-panel input[type="search"],.filter-panel input[type="number"],.filter-panel select {width:100%;height:46px;padding:0 13px;background:var(--bg);border:1px solid var(--line);border-radius:8px;color:var(--text);font:inherit}
.filter-panel input:focus,.filter-panel select:focus {border-color:var(--purple);outline:2px solid color-mix(in srgb,var(--purple) 25%,transparent)}
.check-field {display:flex;align-items:center;gap:9px;height:46px;padding:0 12px;border:1px solid var(--line);border-radius:8px;white-space:nowrap;cursor:pointer}
.check-field input {accent-color:var(--purple)}
.reset-button {height:46px;padding:0 14px;background:transparent;border:0;color:var(--purple-light);cursor:pointer}
.result-bar {display:flex;justify-content:space-between;align-items:center;margin:30px 0 18px;color:var(--muted);font-size:.84rem}
.result-bar p {margin:0}.legend-dot {display:inline-block;width:7px;height:7px;margin:0 6px 1px 16px;border-radius:50%}.legend-dot.known {background:var(--green)}.legend-dot.review {background:#e5a84b}
.result-actions {display:flex;align-items:center;gap:20px}.result-actions button {padding:7px 11px;background:transparent;border:1px solid var(--line);border-radius:7px;color:var(--purple-light);font:inherit;font-weight:600;cursor:pointer}.result-actions button:hover,.result-actions button:focus-visible {border-color:var(--purple);outline:0}.result-actions button[hidden] {display:none}
.product-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.product-card {position:relative;display:flex;flex-direction:column;min-height:315px;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:12px;cursor:pointer;transition:border-color .2s,transform .2s}
.product-card:hover {transform:translateY(-2px);border-color:#70557f}.product-card.selected {border-color:var(--purple);box-shadow:inset 0 0 0 1px var(--purple)}
.product-card:focus-visible {border-color:var(--purple);outline:2px solid var(--purple);outline-offset:3px}
.product-card a,.product-card button {cursor:pointer}
.card-top {display:flex;justify-content:space-between;gap:20px}.card-type {margin:0 0 8px;color:var(--purple);font-size:.7rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}.product-card h3 {margin:0;font-size:1.35rem;line-height:1.2}
.select-product {display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;background:transparent;border:1px solid var(--line);border-radius:50%;color:var(--text);cursor:pointer}.selected .select-product {background:var(--purple);border-color:var(--purple);color:var(--primary-text)}
.price-line {margin:30px 0 20px}.price-line strong {display:block;font-size:1.35rem}.price-line span {color:var(--muted);font-size:.76rem}
.feature-preview {display:flex;flex-wrap:wrap;gap:6px;margin:0 0 24px;padding:0;list-style:none}.feature-preview li {padding:5px 8px;background:var(--surface-2);border-radius:5px;color:var(--muted);font-size:.72rem}
.card-foot {display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:auto;padding-top:16px;border-top:1px solid var(--line);font-size:.78rem}.card-foot a {color:var(--purple-light)}.quality {color:#e5a84b}.paused {color:#e87575}
.empty-state {display:grid;place-items:center;gap:5px;padding:70px;border:1px dashed var(--line);color:var(--muted)}
.empty-state[hidden] {display:none}
.compare-dock {position:sticky;z-index:8;bottom:16px;display:flex;align-items:center;gap:20px;max-width:1100px;margin:0 auto 30px;padding:13px 15px 13px 20px;background:color-mix(in srgb,var(--surface) 92%,transparent);border:1px solid #654276;border-radius:14px;box-shadow:0 18px 60px var(--shadow);backdrop-filter:blur(12px)}
.compare-dock>div:first-child {display:grid;min-width:135px}.compare-dock span {color:var(--muted);font-size:.75rem}.selection-chips {display:flex;flex:1;flex-wrap:wrap;gap:6px}.selection-chips button {padding:5px 9px;background:var(--surface-2);border:1px solid var(--line);border-radius:20px;color:var(--text);font-size:.74rem;cursor:pointer}.compare-dock .button {cursor:pointer}.compare-dock .button:disabled {opacity:.45;cursor:not-allowed}
.clear-selection {flex:none;padding:10px 13px;background:transparent;border:1px solid var(--line);border-radius:8px;color:var(--muted);font:inherit;font-size:.78rem;font-weight:600;cursor:pointer}.clear-selection:hover,.clear-selection:focus-visible {border-color:var(--purple);color:var(--text);outline:0}
.compare-dialog {width:calc(100% - 24px);max-width:none;height:calc(100dvh - 24px);max-height:none;padding:0;overflow:hidden;background:var(--bg);border:1px solid var(--line);border-radius:16px;color:var(--text)}.compare-dialog[open] {display:flex;flex-direction:column}.compare-dialog::backdrop {background:#050506d9;backdrop-filter:blur(5px)}
body:has(.compare-dialog[open]) {overflow:hidden}
.dialog-head {z-index:2;display:flex;flex:none;justify-content:space-between;align-items:center;padding:20px 28px;background:var(--bg);border-bottom:1px solid var(--line)}.dialog-head h2 {margin:0;font-size:2rem}.dialog-head .eyebrow {margin-bottom:5px}.compare-summary {margin:5px 0 0;color:var(--muted);font-size:.78rem}.dialog-actions {display:flex;align-items:center;gap:10px}.dialog-head button {width:44px;height:44px;background:var(--surface);border:1px solid var(--line);border-radius:50%;color:var(--text);font-size:1.8rem;cursor:pointer;display: flex;align-items: center;justify-content: center;}.dialog-head .clear-requirements {width:auto;height:auto;padding:9px 13px;border-radius:7px;color:var(--purple-light);font-size:.78rem;font-weight:600}.dialog-head .clear-requirements[hidden] {display:none}
.table-scroll {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.compare-dialog table {width:max-content;min-width:100%;border-collapse:collapse;text-align:left}.compare-dialog th,.compare-dialog td {width:210px;min-width:210px;padding:15px 18px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:middle}.compare-dialog th:first-child,.compare-dialog td:first-child {position:sticky;left:0;z-index:1;width:210px;min-width:210px;background:var(--bg);color:var(--muted);font-size:.8rem}.compare-dialog thead th {position:sticky;top:0;z-index:1;background:var(--surface);color:var(--text)}.compare-dialog thead th:first-child {z-index:3}.compare-dialog td.yes,.compare-dialog td.no,.compare-dialog td.unknown {padding-block:11px;text-align:center}.status-icon {display:inline-grid;place-items:center;width:28px;height:28px;border:1px solid currentColor;border-radius:50%;font-size:.95rem;font-weight:700;line-height:1}.yes .status-icon {background:color-mix(in srgb,var(--green) 12%,transparent);color:var(--green)}.no .status-icon {background:color-mix(in srgb,#e87575 12%,transparent);color:#e87575}.unknown .status-icon {width:auto;height:auto;background:transparent;border:0;border-radius:0;color:var(--muted);font-size:1rem}
.compare-dialog tbody tr:nth-child(odd)>* {background:var(--bg)}
.compare-dialog tbody tr:nth-child(even)>* {background:color-mix(in srgb,var(--surface) 72%,var(--bg))}
.compare-dialog tbody tr>* {transition:background-color .12s ease}
.compare-dialog tbody tr:hover>* {background:color-mix(in srgb,var(--purple) 15%,var(--bg))}
.compare-dialog tbody tr:hover>th {color:var(--text)}
.requirement-toggle {display:flex;align-items:center;gap:9px;width:100%;padding:0;background:transparent;border:0;color:inherit;font:inherit;text-align:left;cursor:pointer}.requirement-toggle::before {content:'';display:grid;place-items:center;flex:0 0 18px;width:18px;height:18px;border:1px solid var(--line);border-radius:4px;color:var(--primary-text);font-size:.72rem}.requirement-toggle[aria-pressed="true"]::before {content:'✓';background:var(--purple);border-color:var(--purple)}.requirement-toggle:hover,.requirement-toggle:focus-visible {color:var(--purple-light);outline:0}
.compare-product-head {display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:180px;white-space:nowrap}.compare-product-head button {display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;padding:0;background:transparent;border:1px solid var(--line);border-radius:50%;color:var(--muted);font:inherit;font-size:1.1rem;line-height:1;cursor:pointer}.compare-product-head button:hover,.compare-product-head button:focus-visible {background:var(--purple);border-color:var(--purple);color:var(--primary-text);outline:0}.product-name-tooltip {position:relative;min-width:0;cursor:help}.product-name-text {display:block;overflow:hidden;text-overflow:ellipsis}
.compare-link a {font-weight: normal;color: var(--purple)}
.status-icon[data-tooltip] {position:relative;cursor:help}
.status-icon[data-tooltip]::after {content:attr(data-tooltip);position:absolute;z-index:5;bottom:calc(100% + 9px);left:50%;width:max-content;max-width:280px;padding:8px 10px;transform:translate(-50%,4px);background:var(--text);border-radius:6px;color:var(--bg);font-size:.72rem;font-weight:600;line-height:1.35;text-align:left;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s,transform .12s}
.status-icon[data-tooltip]:hover::after,.status-icon[data-tooltip]:focus-visible::after {transform:translate(-50%,0);opacity:1;visibility:visible}
.status-icon[data-tooltip]:focus-visible {outline:2px solid var(--purple);outline-offset:3px}
.product-name-tooltip::after {content:attr(data-tooltip);position:absolute;z-index:6;top:calc(100% + 9px);left:0;width:max-content;max-width:280px;padding:8px 10px;transform:translateY(-4px);background:var(--text);border-radius:6px;color:var(--bg);font-size:.72rem;font-weight:600;line-height:1.35;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s,transform .12s}
.product-name-tooltip:hover::after,.product-name-tooltip:focus-visible::after {transform:translateY(0);opacity:1;visibility:visible}.product-name-tooltip:focus-visible {outline:2px solid var(--purple);outline-offset:3px;border-radius:2px}
.methodology {display:grid;grid-template-columns:.8fr 1.2fr;gap:80px;border-top:1px solid var(--line)}.method-grid {display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line)}.method-grid article {padding:25px;border-right:1px solid var(--line)}.method-grid article:last-child {border-right:0}.method-grid span {color:var(--purple);font-size:.72rem}.method-grid h3 {margin:35px 0 10px}.method-grid p,.research-note {color:var(--muted);font-size:.9rem}.research-note {grid-column:2;margin:20px 0 0;padding:18px;border-left:3px solid var(--purple);background:var(--surface-2)}
.correction-note {grid-column:2;margin:0;color:var(--muted);font-size:.8rem}.correction-note a {color:var(--purple-light);text-decoration:underline;text-underline-offset:3px}.correction-note a:hover,.correction-note a:focus-visible {color:var(--purple)}
@media(max-width:1050px){.filter-panel {grid-template-columns:1fr 1fr}.search-field {grid-column:1/-1}.product-grid {grid-template-columns:repeat(2,1fr)}.methodology {grid-template-columns:1fr}.research-note,.correction-note {grid-column:1}.compare-dock {margin-inline:16px}}
@media(max-width:760px){.comparison-hero,.app-heading {grid-template-columns:1fr}.comparison-hero {min-height:0;padding-top:60px}.filter-panel {grid-template-columns:1fr}.search-field {grid-column:auto}.product-grid,.method-grid {grid-template-columns:1fr}.method-grid article {border-right:0;border-bottom:1px solid var(--line)}.compare-dock {align-items:stretch;flex-direction:column}.selection-chips {display:none}.compare-dock .button,.clear-selection {width:100%}}
@media(max-width:560px){.comparison-hero,.comparison-app,.methodology {padding:65px 16px}.comparison-hero h1 {font-size:3.45rem}.research-stats div {padding:20px 16px}.result-bar,.result-actions {align-items:flex-start;gap:12px;flex-direction:column}.product-grid {grid-template-columns:1fr}.dialog-head {padding:18px}}
@media(prefers-reduced-motion:reduce){.product-card {transition:none}}
