/* ============================================================
   Why NEXERA — comparison table
============================================================ */
.vs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.vs-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-width: 760px;
}
.vs-h,
.vs-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1.2fr 1.2fr;
}
.vs-h {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-2);
}
.vs-row + .vs-row {
  border-top: 1px solid var(--line);
}
.vs-cell {
  padding: 22px 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-mid);
  border-right: 1px solid var(--line);
}
.vs-cell:last-child { border-right: none; }
.vs-h .vs-cell {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 18px 24px;
}
.vs-feat {
  background: var(--bg-soft);
  font-weight: 500;
  color: var(--ink);
  font-size: 13.5px;
}
.vs-nex {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--ink);
  font-weight: 500;
}
.vs-h .vs-nex {
  background: var(--ink);
  color: var(--bg);
}
.vs-cell small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.vs-h .vs-nex small { color: rgba(30, 30, 42, 0.65); }
.vs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: -3px;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.vs-icon.ok { background: var(--ok); color: #fff; }

@media (max-width: 980px) {
  .vs-h, .vs-row {
    grid-template-columns: 1fr 1.4fr 1fr 1fr;
  }
  .vs-cell { padding: 16px 14px; font-size: 13px; }
}

/* ── Mobile: collapse comparison table to stacked cards ──────────────
   Under 640px the four-column grid is unreadable. Each .vs-row becomes
   a vertical card: row label on top, then three labelled cells stacked.
   No horizontal scrolling, no squished text. */
@media (max-width: 640px) {
  .vs-wrap { overflow-x: visible; }
  .vs-table { min-width: 0; border-radius: var(--radius, 12px); }
  .vs-h { display: none; }
  .vs-row {
    display: block;
    padding: 18px 18px 12px;
    border-right: none;
  }
  .vs-row + .vs-row { border-top: 1px solid var(--line); }
  .vs-cell {
    display: block;
    padding: 10px 0;
    border-right: none;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
  }
  .vs-cell:last-child { border-bottom: none; }
  .vs-cell:first-child {
    padding: 0 0 12px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 500;
    border-bottom: 1px solid var(--line-2);
    margin-bottom: 8px;
  }
  /* Inject column labels via ::before since the header row is hidden */
  .vs-cell:nth-child(2)::before { content: "NEXERA"; }
  .vs-cell:nth-child(3)::before { content: "Traditional PIM"; }
  .vs-cell:nth-child(4)::before { content: "DIY / spreadsheets"; }
  .vs-cell:nth-child(n+2)::before {
    display: block;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted, rgba(255,255,255,.55));
    margin-bottom: 4px;
    font-weight: 500;
  }
  .vs-cell:first-child::before { content: none; }
}

/* ── White mode (html[data-theme="light"]) overrides ── */
/* .vs-h .vs-nex header cell is background: var(--ink) — near-black in light
   mode — so the dark rgba(30,30,42,.65) subtitle would disappear. */
html[data-theme="light"] .vs-h .vs-nex small { color: rgba(255, 255, 255, 0.6); }
