/* ─────────────────────────────────────────────────────────────────────────
 * Comparison-page styles — layered on top of styles.css + page.css.
 *
 * Only loaded by /compare/* pages. Adds: the TL;DR verdict box, the
 * feature/pricing comparison table (horizontally scrollable on mobile),
 * the two-column "where each wins" layout, and the FAQ accordion list.
 * Reuses the existing dark tokens, purple/cyan accents, and .article /
 * .subhero / .cta primitives — nothing here overrides the home bundle.
 * ─────────────────────────────────────────────────────────────── */

/* ── TL;DR verdict box ──────────────────────────────────────────── */
.cmp-verdict {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 24px 28px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(33, 212, 253, 0.08)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cmp-verdict__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #21d4fd;
  margin-bottom: 10px;
}
.cmp-verdict p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}
.cmp-verdict strong { color: #fff; }

/* ── Section wrapper (wider than .article for tables) ───────────── */
.cmp-section {
  padding: 56px 0;
}
.cmp-section__inner {
  max-width: 980px;
  margin: 0 auto;
}
.cmp-section h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 8px;
}
.cmp-section__lede {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.66);
  margin: 0 0 28px;
  max-width: 680px;
}

/* ── Comparison table ───────────────────────────────────────────── */
.cmp-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 14.5px;
}
.cmp-table th,
.cmp-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
}
.cmp-table thead th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.03);
}
.cmp-table thead th:nth-child(2) { color: #a98bff; }
.cmp-table tbody th {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  width: 34%;
}
.cmp-table td {
  color: rgba(255, 255, 255, 0.74);
}
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table col.is-us { background: rgba(124, 92, 255, 0.06); }
.cmp-yes { color: #34d399; font-weight: 600; }
.cmp-no  { color: rgba(255, 255, 255, 0.4); }
.cmp-mid { color: #fbbf24; }

/* ── Two-column "where each wins" ───────────────────────────────── */
.cmp-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.cmp-card {
  padding: 24px 26px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}
.cmp-card--us { border-color: rgba(124, 92, 255, 0.35); }
.cmp-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #fff;
}
.cmp-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cmp-card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);
}
.cmp-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.cmp-card--us li::before {
  background: linear-gradient(135deg, #7c5cff, #21d4fd);
}

/* ── Bundle-math strip ──────────────────────────────────────────── */
.cmp-math {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.cmp-math__cell {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.cmp-math__cell--total {
  border-color: rgba(124, 92, 255, 0.4);
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(33, 212, 253, 0.1)),
    rgba(255, 255, 255, 0.02);
}
.cmp-math__price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.cmp-math__cell--total .cmp-math__price { color: #21d4fd; }
.cmp-math__label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ── FAQ list ───────────────────────────────────────────────────── */
.cmp-faq {
  max-width: 820px;
  margin: 0 auto;
}
.cmp-faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}
.cmp-faq summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.cmp-faq summary::-webkit-details-marker { display: none; }
.cmp-faq summary::after {
  content: '+';
  color: #7c5cff;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}
.cmp-faq details[open] summary::after { content: '−'; }
.cmp-faq p {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* ── Hub grid (compare/index.html) ──────────────────────────────── */
.cmp-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.cmp-hub__card {
  display: block;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.cmp-hub__card:hover {
  border-color: rgba(124, 92, 255, 0.5);
  transform: translateY(-2px);
}
.cmp-hub__card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.cmp-hub__card p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
  margin: 0;
}
.cmp-hub__card span {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #7c5cff;
}
