/* =========================================================
   Comparison page — additional styles (uses shared tokens)
   ========================================================= */

/* ---------- hero ---------- */
.compare-hero {
  padding: 150px 0 80px; position: relative;
  background:
    radial-gradient(760px 340px at 12% -12%, rgba(124, 108, 255, .18), transparent 62%),
    radial-gradient(620px 300px at 88% 2%, rgba(34, 211, 238, .12), transparent 60%),
    radial-gradient(560px 260px at 62% 12%, rgba(255, 114, 166, .08), transparent 62%);
}
html[data-theme="light"] .compare-hero {
  background:
    radial-gradient(760px 340px at 12% -12%, rgba(139, 124, 255, .2), transparent 62%),
    radial-gradient(620px 300px at 88% 2%, rgba(34, 211, 238, .18), transparent 60%),
    radial-gradient(560px 260px at 62% 12%, rgba(255, 114, 166, .12), transparent 62%);
}
.compare-hero h1 { font-size: clamp(36px, 4.4vw, 62px); font-weight: 800; margin: 22px 0 18px; line-height: 1.16; }
html[lang="en"] .compare-hero h1 { font-size: clamp(34px, 4vw, 54px); }
.compare-lead { color: var(--muted); font-size: 16px; max-width: 850px; margin: 0 0 28px; }
.compare-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.compare-pills span {
  padding: 6px 13px; border-radius: 99px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 11.5px; font-weight: 500;
}
.compare-pills span:nth-child(5n+1) { background: rgba(124, 108, 255, .12); border-color: rgba(124, 108, 255, .3); color: #c9c4ff; }
.compare-pills span:nth-child(5n+2) { background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .28); color: #9ef0ff; }
.compare-pills span:nth-child(5n+3) { background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .26); color: #b7f3c8; }
.compare-pills span:nth-child(5n+4) { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .26); color: #ffe1a3; }
.compare-pills span:nth-child(5n) { background: rgba(255, 114, 166, .1); border-color: rgba(255, 114, 166, .26); color: #ffc3d9; }
html[data-theme="light"] .compare-pills span:nth-child(5n+1) { background: rgba(91, 75, 255, .08); border-color: rgba(91, 75, 255, .24); color: #4f46e5; }
html[data-theme="light"] .compare-pills span:nth-child(5n+2) { background: rgba(8, 145, 165, .08); border-color: rgba(8, 145, 165, .24); color: #0e7490; }
html[data-theme="light"] .compare-pills span:nth-child(5n+3) { background: rgba(22, 163, 74, .08); border-color: rgba(22, 163, 74, .24); color: #15803d; }
html[data-theme="light"] .compare-pills span:nth-child(5n+4) { background: rgba(217, 119, 6, .08); border-color: rgba(217, 119, 6, .24); color: #b45309; }
html[data-theme="light"] .compare-pills span:nth-child(5n) { background: rgba(225, 29, 72, .07); border-color: rgba(225, 29, 72, .22); color: #be123c; }

/* ---------- verdict ---------- */
.verdict-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.verdict-card {
  position: relative; padding: 28px 26px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.verdict-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.v-num {
  display: block; font-size: 38px; font-weight: 800; line-height: 1; margin-bottom: 14px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.verdict-card h3 { font-size: 17px; margin-bottom: 9px; }
.verdict-card p { color: var(--muted); font-size: 13px; margin: 0; }
.verdict-card:nth-child(3n+1) { background: linear-gradient(165deg, rgba(124, 108, 255, .16), var(--surface) 68%); border-color: rgba(124, 108, 255, .3); }
.verdict-card:nth-child(3n+2) { background: linear-gradient(165deg, rgba(34, 211, 238, .14), var(--surface) 68%); border-color: rgba(34, 211, 238, .28); }
.verdict-card:nth-child(3n) { background: linear-gradient(165deg, rgba(255, 114, 166, .14), var(--surface) 68%); border-color: rgba(255, 114, 166, .28); }
.verdict-card:nth-child(3n+1) .v-num { background: linear-gradient(120deg, #a78bfa, #7c6cff); -webkit-background-clip: text; background-clip: text; }
.verdict-card:nth-child(3n+2) .v-num { background: linear-gradient(120deg, #67e8f9, #22d3ee); -webkit-background-clip: text; background-clip: text; }
.verdict-card:nth-child(3n) .v-num { background: linear-gradient(120deg, #f9a8d4, #ff72a6); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .verdict-card:nth-child(3n+1) { background: linear-gradient(165deg, rgba(91, 75, 255, .12), rgba(255, 255, 255, .74) 68%); }
html[data-theme="light"] .verdict-card:nth-child(3n+2) { background: linear-gradient(165deg, rgba(8, 145, 165, .12), rgba(255, 255, 255, .74) 68%); }
html[data-theme="light"] .verdict-card:nth-child(3n) { background: linear-gradient(165deg, rgba(225, 29, 72, .1), rgba(255, 255, 255, .74) 68%); }
html[data-theme="light"] .verdict-card:nth-child(3n+1) .v-num { background: linear-gradient(120deg, #7c3aed, #5b4bff); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .verdict-card:nth-child(3n+2) .v-num { background: linear-gradient(120deg, #0891a5, #0e7490); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .verdict-card:nth-child(3n) .v-num { background: linear-gradient(120deg, #e04f7b, #be123c); -webkit-background-clip: text; background-clip: text; }

/* ---------- matrix ---------- */
.matrix-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow);
}
.matrix { width: 100%; min-width: 1120px; border-collapse: collapse; font-size: 12.5px; line-height: 1.6; }
.matrix th, .matrix td { padding: 13px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.matrix thead th {
  background: var(--surface-2); font-weight: 700; white-space: nowrap; font-size: 12px;
  border-bottom: 1px solid var(--border-strong);
}
.matrix .col-feature { position: sticky; left: 0; z-index: 2; min-width: 178px; background: var(--surface-solid); font-weight: 600; }
.matrix thead .col-feature { z-index: 3; }
.matrix .col-hero { color: var(--accent-2); background: rgba(124, 108, 255, .09); white-space: nowrap; }
.matrix .col-hero img { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; margin-right: 5px; }
.matrix tbody tr:hover td { background: var(--surface-2); }
.matrix tbody tr:hover .col-feature { background: var(--surface-2); }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix td small { color: var(--faint); font-size: 10.5px; }
.group-row td {
  background: var(--surface-2) !important; color: var(--accent-2); font-size: 10.5px;
  letter-spacing: .15em; text-transform: uppercase; font-weight: 800; padding-top: 12px; padding-bottom: 12px;
}
.matrix td.yes { color: #4ade80; }
.matrix td.partial { color: #fbbf24; }
.matrix td.none { color: var(--faint); }
.matrix td.no { color: #fb7185; }
html[data-theme="light"] .matrix td.yes { color: #15803d; }
html[data-theme="light"] .matrix td.partial { color: #b45309; }
html[data-theme="light"] .matrix td.no { color: #be123c; }
.matrix-note { color: var(--faint); font-size: 11.5px; margin: 16px 0 0; }

/* ---------- advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.adv-card {
  padding: 24px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.adv-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.adv-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-2);
  font-size: 19px; font-weight: 700; margin-bottom: 15px;
}
.adv-card h3 { font-size: 15px; margin-bottom: 8px; }
.adv-card p { color: var(--muted); font-size: 12.5px; margin: 0; }
.adv-card:nth-child(5n+1) .adv-icon { color: #a78bfa; background: rgba(124, 108, 255, .13); border-color: rgba(124, 108, 255, .3); }
.adv-card:nth-child(5n+2) .adv-icon { color: #22d3ee; background: rgba(34, 211, 238, .12); border-color: rgba(34, 211, 238, .28); }
.adv-card:nth-child(5n+3) .adv-icon { color: #4ade80; background: rgba(74, 222, 128, .12); border-color: rgba(74, 222, 128, .26); }
.adv-card:nth-child(5n+4) .adv-icon { color: #fbbf24; background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .26); }
.adv-card:nth-child(5n) .adv-icon { color: #fb7185; background: rgba(255, 114, 166, .12); border-color: rgba(255, 114, 166, .26); }
html[data-theme="light"] .adv-card:nth-child(5n+1) .adv-icon { color: #6d28d9; }
html[data-theme="light"] .adv-card:nth-child(5n+2) .adv-icon { color: #0e7490; }
html[data-theme="light"] .adv-card:nth-child(5n+3) .adv-icon { color: #15803d; }
html[data-theme="light"] .adv-card:nth-child(5n+4) .adv-icon { color: #b45309; }
html[data-theme="light"] .adv-card:nth-child(5n) .adv-icon { color: #be123c; }

/* ---------- picking ---------- */
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pick-card {
  padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s, border-color .3s;
}
.pick-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.pick-card--hero {
  background: linear-gradient(135deg, rgba(124,108,255,.15), rgba(34,211,238,.06));
  border-color: var(--border-strong);
}
.pick-tag {
  display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 10.5px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-2); margin-bottom: 14px;
}
.pick-card--hero .pick-tag { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick-card h3 { font-size: 17px; margin-bottom: 9px; }
.pick-card p { color: var(--muted); font-size: 13px; margin: 0; }
.pick-grid > .pick-card:nth-child(2) { background: linear-gradient(160deg, rgba(34, 211, 238, .11), var(--surface) 70%); border-color: rgba(34, 211, 238, .26); }
.pick-grid > .pick-card:nth-child(3) { background: linear-gradient(160deg, rgba(74, 222, 128, .1), var(--surface) 70%); border-color: rgba(74, 222, 128, .24); }
.pick-grid > .pick-card:nth-child(4) { background: linear-gradient(160deg, rgba(251, 191, 36, .1), var(--surface) 70%); border-color: rgba(251, 191, 36, .24); }
.pick-grid > .pick-card:nth-child(2) .pick-tag { background: rgba(34, 211, 238, .14); border-color: rgba(34, 211, 238, .34); color: #9ef0ff; }
.pick-grid > .pick-card:nth-child(3) .pick-tag { background: rgba(74, 222, 128, .13); border-color: rgba(74, 222, 128, .32); color: #b7f3c8; }
.pick-grid > .pick-card:nth-child(4) .pick-tag { background: rgba(251, 191, 36, .13); border-color: rgba(251, 191, 36, .32); color: #ffe1a3; }
html[data-theme="light"] .pick-grid > .pick-card:nth-child(2) { background: linear-gradient(160deg, rgba(8, 145, 165, .1), rgba(255, 255, 255, .72) 70%); }
html[data-theme="light"] .pick-grid > .pick-card:nth-child(3) { background: linear-gradient(160deg, rgba(22, 163, 74, .09), rgba(255, 255, 255, .72) 70%); }
html[data-theme="light"] .pick-grid > .pick-card:nth-child(4) { background: linear-gradient(160deg, rgba(217, 119, 6, .09), rgba(255, 255, 255, .72) 70%); }
html[data-theme="light"] .pick-grid > .pick-card:nth-child(2) .pick-tag { color: #0e7490; }
html[data-theme="light"] .pick-grid > .pick-card:nth-child(3) .pick-tag { color: #15803d; }
html[data-theme="light"] .pick-grid > .pick-card:nth-child(4) .pick-tag { color: #b45309; }
.pick-grid + .cta-band { margin-top: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .verdict-grid, .adv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .compare-hero { padding: 100px 0 60px; }
  .compare-lead { font-size: 14.5px; }
  .verdict-grid, .adv-grid, .pick-grid { grid-template-columns: 1fr; }
  .matrix { font-size: 12px; }
}
