/* Comparison pages (/compare/), generated by compare/scripts/sync-compare.py.
   Builds on /local-pricing/prices.css (lpx-* hero, buttons, FAQ, CTA);
   cmp-* classes below are comparison-specific. */

.lpx-h2.cmp-first { margin-top: 0; }

/* "Why people choose Free VPN" list */
.cmp-wins,
.cmp-fair {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cmp-wins li,
.cmp-fair li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(20, 12, 46, 0.55);
  border: 1px solid rgba(199, 145, 255, 0.16);
  font-size: 0.97rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}
.cmp-wins li strong { color: #fff; }
.cmp-wins i {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  font-size: 0.72rem;
}
.cmp-fair li { background: rgba(255, 255, 255, 0.025); border-style: dashed; }
.cmp-fair i { margin-top: 4px; color: rgba(199, 145, 255, 0.8); }

/* Side-by-side table */
.cmp-table-wrap {
  border-radius: 18px;
  border: 1px solid rgba(199, 145, 255, 0.2);
  background: rgba(20, 12, 46, 0.5);
  overflow: hidden;
  position: relative;
}
.cmp-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp-table thead th {
  padding: 1rem 1.1rem;
  background: rgba(30, 16, 64, 0.95);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-align: left;
}
.cmp-table thead th:first-child { width: 30%; }
.cmp-table thead th img { margin-right: 0.5rem; vertical-align: -5px; }
.cmp-table thead th:nth-child(2) { background: linear-gradient(180deg, rgba(144, 65, 204, 0.45), rgba(70, 30, 120, 0.85)); }
.cmp-table tbody th,
.cmp-table td {
  padding: 0.9rem 1.1rem;
  border-top: 1px solid rgba(199, 145, 255, 0.1);
  text-align: left;
  vertical-align: top;
}
.cmp-table tbody th { font-size: 0.88rem; font-weight: 600; color: rgba(255, 255, 255, 0.65); }
.cmp-table td strong { display: block; font-size: 1rem; color: #fff; font-variant-numeric: tabular-nums; }
.cmp-table td small { display: block; margin-top: 0.2rem; font-size: 0.8rem; line-height: 1.45; color: rgba(255, 255, 255, 0.5); }
.cmp-table td:nth-child(2) { background: rgba(144, 65, 204, 0.08); }
.cmp-table tr.is-win td:nth-child(2) strong::after {
  content: "\f00c";
  margin-left: 0.45rem;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.75rem;
  color: #86efac;
}
@media (max-width: 640px) {
  .cmp-table thead th:first-child { width: 0; padding: 0; }
  .cmp-table thead th { font-size: 0.85rem; padding: 0.8rem; }
  .cmp-table tr { display: grid; grid-template-columns: 1fr 1fr; }
  .cmp-table thead tr { grid-template-columns: 0 1fr 1fr; }
  .cmp-table tbody th { grid-column: 1 / -1; padding: 0.8rem 0.8rem 0; border-top: 1px solid rgba(199, 145, 255, 0.1); }
  .cmp-table td { border-top: 0; padding: 0.35rem 0.8rem 0.85rem; }
}
.cmp-note,
.cmp-source,
.cmp-fine {
  margin: 0.9rem 0 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}
.cmp-source a { color: #c791ff; text-decoration: none; }
.cmp-source a:hover { color: #e9d5ff; }
.cmp-fine { margin-top: 2rem; font-size: 0.78rem; }

/* Evidence from the listing */
.cmp-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 767px) { .cmp-evidence { grid-template-columns: 1fr; } }
.cmp-evidence > div {
  padding: 1.2rem 1.25rem;
  border-radius: 16px;
  background: rgba(20, 12, 46, 0.55);
  border: 1px solid rgba(199, 145, 255, 0.16);
}
.cmp-evidence h3 {
  margin: 0 0 0.8rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c791ff;
}
.cmp-quotes,
.cmp-iap { margin: 0; padding: 0; list-style: none; }
.cmp-quotes li {
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
}
.cmp-quotes li span {
  display: block;
  margin-bottom: 0.15rem;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.cmp-iap li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(199, 145, 255, 0.08);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}
.cmp-iap li:first-child { border-top: 0; }
.cmp-iap strong { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Links to other comparisons */
.cmp-others {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.6rem;
}
.cmp-others a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(20, 12, 46, 0.55);
  border: 1px solid rgba(199, 145, 255, 0.14);
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: border-color 0.15s ease;
}
.cmp-others a:hover { border-color: rgba(199, 145, 255, 0.5); }
.cmp-others i { color: #c791ff; font-size: 0.8rem; }

/* Hub */
.cmp-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.cmp-stats li {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(20, 12, 46, 0.65);
  border: 1px solid rgba(199, 145, 255, 0.25);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}
.cmp-stats strong { color: #fff; }
.cmp-hub-wrap {
  border-radius: 18px;
  border: 1px solid rgba(199, 145, 255, 0.2);
  background: rgba(20, 12, 46, 0.5);
  overflow-x: auto;
  position: relative; /* keeps the cells' sr-only text inside the scroller */
  scrollbar-color: rgba(199, 145, 255, 0.35) transparent;
}
.cmp-hub { width: 100%; min-width: 760px; border-collapse: collapse; }
.cmp-hub thead th {
  padding: 0.85rem 1rem;
  background: rgba(30, 16, 64, 0.95);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c791ff;
  text-align: left;
  white-space: nowrap;
}
.cmp-hub tbody th,
.cmp-hub td {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(199, 145, 255, 0.1);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}
.cmp-hub tbody th { font-weight: 700; color: #fff; white-space: nowrap; }
.cmp-hub tbody th a { color: #fff; text-decoration: none; }
.cmp-hub tbody th a i { margin-left: 0.4rem; font-size: 0.7rem; color: #c791ff; }
.cmp-hub tbody th a:hover { color: #d8b4fe; }
.cmp-hub tbody th img { margin-right: 0.45rem; vertical-align: -4px; }
.cmp-hub tr.is-ours th,
.cmp-hub tr.is-ours td { background: rgba(144, 65, 204, 0.16); color: #fff; }
/* Keep the app name visible while the table scrolls sideways on phones.
   Opaque backgrounds so scrolled cells don't show through. */
.cmp-hub thead th:first-child,
.cmp-hub tbody th { position: sticky; left: 0; z-index: 1; }
.cmp-hub thead th:first-child { background: #1e1040; }
.cmp-hub tbody th { background: #150d30; box-shadow: 1px 0 0 rgba(199, 145, 255, 0.12); }
.cmp-hub tr.is-ours th { background: #28144a; }
@media (max-width: 575px) { .cmp-hub tbody th { white-space: normal; min-width: 8.5rem; } }
.cmp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.cmp-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.2rem 1.2rem 1.1rem;
  border-radius: 16px;
  background: rgba(20, 12, 46, 0.6);
  border: 1px solid rgba(199, 145, 255, 0.16);
  text-decoration: none !important;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.cmp-card:hover { border-color: rgba(199, 145, 255, 0.5); transform: translateY(-2px); }
.cmp-card-vs { font-family: "JetBrains Mono", monospace; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #c791ff; }
.cmp-card strong { font-size: 1.15rem; color: #fff; }
.cmp-card-meta { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
@media (prefers-reduced-motion: reduce) { .cmp-card, .cmp-others a { transition: none; } }
.cmp-hub td:nth-child(6) { white-space: nowrap; }

/* Quick answer: a short, self-contained summary near the top that
   search snippets and AI answer engines can lift as-is. */
.cmp-answer {
  margin: 0 0 2.75rem;
  padding: 1.4rem 1.5rem;
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(144, 65, 204, 0.22), transparent 55%),
    rgba(20, 12, 46, 0.7);
  border: 1px solid rgba(199, 145, 255, 0.28);
  border-left: 4px solid #a259e0;
}
.cmp-answer .cmp-answer-label {
  margin: 0 0 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c791ff;
}
.cmp-answer p { margin: 0; font-size: 1rem; line-height: 1.7; color: rgba(255, 255, 255, 0.85); }
.lpx-section > .container > .cmp-answer { max-width: 980px; margin-left: auto; margin-right: auto; }

/* --- Icons + legend ----------------------------------------------------
   One small vocabulary, explained by .cmp-legend above each table:
   check / cross / question for yes-no facts, Apple's four App Privacy
   categories as shield / user-slash / link / crosshairs, W-M-Y plan chips
   and a relative size bar. Text stays in the DOM (sr-only or visible). */
.cmp-i { display: inline-flex; align-items: center; gap: 0.45rem; }
.cmp-i i { font-size: 1.1rem; line-height: 1; }
.cmp-i--good i { color: #4ade80; }
.cmp-i--bad i { color: #f87171; }
.cmp-i--unknown i { color: rgba(255, 255, 255, 0.38); }
.cmp-i--info i { color: #93c5fd; }
.cmp-i--warn i { color: #fbbf24; }
.cmp-hub td .cmp-i i { font-size: 1.35rem; }
.cmp-table tr.is-win td:nth-child(2) strong:has(.cmp-i)::after,
.cmp-table tr.is-win td:nth-child(2) strong:has(.cmp-size)::after { content: none; }

.cmp-legend {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(20, 12, 46, 0.5);
  border: 1px solid rgba(199, 145, 255, 0.14);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
}
.cmp-legend > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 1.25rem; }
.cmp-legend-h {
  min-width: 8.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c791ff;
}
.cmp-legend .cmp-i i { font-size: 1rem; }
.cmp-legend-plans { display: inline-flex; align-items: center; gap: 0.5rem; }
@media (max-width: 575px) { .cmp-legend-h { min-width: 0; width: 100%; } }

.cmp-plans { display: inline-flex; align-items: center; gap: 0.25rem; }
.cmp-plans > span:not(.sr-only) {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
}
.cmp-plans .on { background: rgba(144, 65, 204, 0.4); border: 1px solid rgba(199, 145, 255, 0.6); color: #fff; }
.cmp-plans .off { border: 1px dashed rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.25); text-decoration: line-through; }
.cmp-plans em { margin-left: 0.15rem; font-style: normal; font-weight: 700; color: rgba(255, 255, 255, 0.55); }

.cmp-size { display: inline-flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.cmp-size-bar {
  position: relative;
  flex: 0 0 64px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.cmp-size-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, #a259e0, #7a2db4);
}
.cmp-size.is-ours .cmp-size-bar::after { background: #4ade80; }
.cmp-hub td { vertical-align: middle; }
