:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --panel-2: #f8f9fc;
  --text: #0d1117;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #1a56db;
  --primary-dark: #1240ab;
  --primary-light: #e8f0fe;
  --accent: #059669;
  --accent-light: #d1fae5;
  --warn: #d97706;
  --warn-light: #fef3c7;
  --danger: #dc2626;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.07);
  --radius: 14px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 0 0 80px;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: #0d1117;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-item { color: #cbd5e1; }
.trust-divider { color: #334155; }

/* ── PAGE SHELL ── */
.page-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 48px 16px 28px;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-subtitle {
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* ── TOP PICK ── */
.top-pick-wrap { margin: 24px 0 18px; }

.top-pick {
  background: #0d1117;
  color: #fff;
  border-radius: 20px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}

.top-pick::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(26,86,219,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.top-pick-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.top-pick-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.09);
  color: #93c5fd;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.top-pick h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.05;
  margin-bottom: 10px;
}

.top-pick-desc {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 460px;
}

.top-pick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.top-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.11);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
}

.top-pill strong { color: #fff; }

.top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  color: #0d1117;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 12px;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}

.top-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
}

/* ── COMPARE BAR ── */
.compare-bar {
  background: var(--primary-light);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.compare-bar-text {
  font-size: 14px;
  color: var(--primary-dark);
  font-weight: 500;
  flex: 1;
  min-width: 180px;
}

.compare-go-btn {
  height: 36px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.compare-go-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.compare-go-btn:not(:disabled):hover { background: var(--primary-dark); }

.compare-clear-btn {
  height: 36px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.compare-clear-btn:hover { color: var(--danger); border-color: var(--danger); }

/* ── COMPARE MODAL ── */
.compare-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  padding: 24px 16px;
  overflow-y: auto;
}

.compare-overlay.open { display: flex; align-items: flex-start; justify-content: center; }

.compare-modal {
  background: var(--panel);
  border-radius: 20px;
  width: 100%;
  max-width: 820px;
  padding: 28px;
  position: relative;
  margin: auto;
}

.compare-close {
  position: absolute;
  top: 16px; right: 20px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 32px; height: 32px;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}

.compare-close:hover { color: var(--text); }

.compare-title {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13px;
}

.compare-col-header {
  background: var(--panel-2);
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compare-col-header.label-col {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f1f3f7;
}

.compare-row {
  display: contents;
}

.compare-cell {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.compare-cell.label {
  background: #f8f9fc;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compare-cell.winner {
  background: #f0fdf4;
  font-weight: 600;
  color: #065f46;
}

.compare-cta-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.compare-cta-row > div:first-child { }

.compare-cta-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.compare-cta-link:hover { background: #047857; }

/* ── TOOLBAR ── */
.toolbar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  height: 36px;
  padding: 0 15px;
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.chip:hover { border-color: #93c5fd; color: var(--primary); background: var(--primary-light); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

.search-wrap input {
  width: 100%;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--panel-2);
  outline: none;
  transition: border-color 0.15s;
}

.search-wrap input::placeholder { color: #9ca3af; }
.search-wrap input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(26,86,219,0.08); }

/* ── RESULTS BAR ── */
.results-bar {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 11px;
  padding: 0 2px;
}

.filter-note { color: var(--primary); margin-left: 4px; }

/* ── VPN CARDS ── */
.vpn-list { display: flex; flex-direction: column; gap: 12px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.card-main {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.rank-badge {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.best-for-badge {
  background: var(--warn-light);
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.provider-name {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--text);
  line-height: 1.1;
  display: block;
  margin-bottom: 2px;
}

.who-for {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero-blurb {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Score bars */
.score-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.score-row {
  display: grid;
  grid-template-columns: 88px 1fr 28px;
  align-items: center;
  gap: 8px;
}

.score-row-label { font-size: 12px; font-weight: 500; color: var(--muted); }

.score-bar-track {
  background: var(--line);
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

.score-bar-fill { height: 100%; border-radius: 999px; background: var(--primary); }
.score-bar-fill.high { background: var(--accent); }
.score-bar-fill.mid  { background: var(--warn); }
.score-bar-fill.low  { background: var(--danger); }

.score-num { font-size: 11px; font-weight: 600; color: var(--text); text-align: right; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 5px; }

.tag {
  background: var(--accent-light);
  color: #065f46;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

/* Card actions */
.card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  min-width: 148px;
}

.overall-score-badge {
  text-align: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
}

.score-big { display: block; font-size: 26px; font-weight: 700; color: var(--text); line-height: 1; }
.score-label { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }

.cta-button {
  height: 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.cta-button:hover { background: #047857; }

.details-btn {
  height: 36px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.details-btn:hover { background: var(--primary-light); border-color: #93c5fd; }

.compare-btn {
  height: 34px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.compare-btn:hover { color: var(--primary); border-color: #93c5fd; background: var(--primary-light); }
.compare-btn.selected { background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary); }

/* ── DETAILS PANEL ── */
.details-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #fafbfd;
}

.details-panel.open { display: block; }

.details-inner { padding: 22px; }

.details-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 11px;
  margin-top: 20px;
}

.details-section-title:first-child { margin-top: 0; }

/* Feature checklist */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 7px;
  margin-bottom: 4px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text);
}

.feature-icon {
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

.feature-icon.yes { background: var(--accent-light); color: var(--accent); }
.feature-icon.no  { background: #fee2e2; color: var(--danger); }

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 9px;
}

.info-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}

.info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}

.info-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* Streaming list */
.streaming-list { display: flex; flex-wrap: wrap; gap: 5px; }

.stream-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Jurisdiction badges */
.jurisdiction-row { display: flex; gap: 7px; flex-wrap: wrap; }

.j-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
}

.j-badge.good { background: var(--accent-light); color: #065f46; }
.j-badge.warn { background: var(--warn-light); color: #92400e; }
.j-badge.bad  { background: #fee2e2; color: #991b1b; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .top-pick-grid { grid-template-columns: 1fr; }
  .top-cta { width: 100%; margin-top: 4px; }
  .card-main { grid-template-columns: 1fr; }
  .card-actions { flex-direction: row; flex-wrap: wrap; }
  .overall-score-badge { display: none; }
  .cta-button, .details-btn { flex: 1; }
  .score-bars { display: none; }
  .compare-cta-row { grid-template-columns: 1fr 1fr; }
  .compare-cta-row > div:first-child { display: none; }
  .compare-grid { grid-template-columns: 120px 1fr 1fr; }
}
