/* ==========================================================================
   VPN Hero — design system
   Extracted from the 2026 redesign templates.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #0d1b2e;
  --ink: #0e1c30;
  --text: #24324a;
  --muted: #5b6b83;
  --nav-link: #33445f;

  /* Accents */
  --orange: #f07f13;
  --orange-dark: #d96f0a;
  --gold: #f2a71b;
  --blue: #1c56d6;
  --blue-dark: #0f3aa3;
  --blue-tint: #e8effc;

  /* Surfaces */
  --bg: #f3f5f8;
  --card: #fff;
  --border: #e2e8f2;
  --divider: #edf1f7;
  --row-hover: #f7f9fc;

  /* Callout */
  --callout-bg: #eef3fc;
  --callout-border: #c9d7f2;

  /* Status */
  --green: #128a5a;
  --green-bright: #4cc38a;
  --green-bg: #f0faf4;
  --green-border: #d5ecdf;
  --red: #c8443c;
  --red-bg: #fbf1f0;
  --red-border: #f0d8d5;
  --amber-bg: #fdeeda;
  --amber-text: #b35c05;

  /* On dark */
  --on-dark: #b9c6dc;
  --on-dark-dim: #8fa3c2;
  --on-dark-bright: #dbe4f2;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  /* Layout */
  --wrap: 1140px;
  --radius: 12px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 76px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* --------------------------------------------------------- Deal bar */
.dealbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy); color: var(--on-dark-bright);
  text-align: center; padding: 9px 16px; font-size: 13.5px; line-height: 1.4;
}
.dealbar strong { color: var(--gold); font-weight: 700; }
.dealbar a { color: #fff; font-weight: 600; }

/* --------------------------------------------------------- Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.site-header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 42px; width: auto; }
.site-nav {
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
  font-size: 14.5px; font-weight: 500;
}
.site-nav a { color: var(--nav-link); text-decoration: none; }
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.site-header__cta { margin-left: auto; }

/* --------------------------------------------------------- Buttons */
.btn {
  display: inline-block; background: var(--orange); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 10px; white-space: nowrap;
  border: 0; cursor: pointer; font-family: var(--font-body);
}
.btn:hover { background: var(--orange-dark); color: #fff; }
.btn--lg {
  font-weight: 700; font-size: 15.5px; padding: 14px 24px;
  border-radius: 12px; box-shadow: 0 4px 14px rgba(240, 127, 19, .35);
}
.btn--sm { font-size: 13px; padding: 8px 14px; border-radius: 8px; }
.btn--block { display: block; text-align: center; }
.btn--ghost {
  background: transparent; color: #fff; font-weight: 600; font-size: 15px;
  padding: 13px 20px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* --------------------------------------------------------- Hero (home) */
.hero { background: var(--navy); color: #fff; padding: 52px 24px 140px; }
.hero__inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; gap: 48px; align-items: center; flex-wrap: wrap;
}
.hero__body { flex: 1 1 480px; min-width: 300px; }
.hero__media { flex: 1 1 340px; min-width: 280px; max-width: 480px; }
.hero__media img {
  width: 100%; border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .15); display: block;
}
.hero h1 {
  font: 700 clamp(32px, 4.5vw, 46px)/1.15 var(--font-display);
  margin: 18px 0 14px; color: #fff;
}
.hero p { margin: 0 0 22px; font-size: 17px; line-height: 1.65; color: var(--on-dark); max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__points {
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px;
  font-size: 13.5px; color: var(--on-dark-dim);
}
.hero__points span span { color: var(--green-bright); font-weight: 700; }

.eyebrow {
  display: inline-block; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16); color: var(--on-dark);
  font: 600 12px var(--font-display); letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}

/* --------------------------------------------------------- Cards & panels */
.panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.panel--raised { box-shadow: 0 10px 30px rgba(13, 27, 46, .12); }
.panel--overlap {
  max-width: var(--wrap); margin: -100px auto 0; position: relative; z-index: 5;
}

.section { margin: 40px 0 0; }
.section > h2 { font: 700 28px var(--font-display); margin: 0 0 16px; }

/* --------------------------------------------------------- Comparison table */
.table-scroll { overflow-x: auto; }
.cmp {
  width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px;
}
.cmp th {
  text-align: left; padding: 10px 12px;
  font: 600 11px var(--font-display); letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid var(--border);
}
.cmp td { padding: 12px; border-bottom: 1px solid var(--divider); }
.cmp tbody tr:hover { background: var(--row-hover); }
.cmp__rank { font: 700 14px var(--font-display); color: var(--ink); }
.cmp__name { font-weight: 700; color: var(--ink); text-decoration: none; }
.cmp__score { font-weight: 700; color: var(--ink); }
.cmp__score span { color: var(--gold); }
.cmp__best { color: var(--nav-link); }
.cmp td:last-child { text-align: right; }

.pill {
  background: var(--amber-bg); color: var(--amber-text);
  font: 600 11px var(--font-display); padding: 3px 8px; border-radius: 999px;
  margin-left: 6px; white-space: nowrap; display: inline-block;
}

/* --------------------------------------------------------- Article shell */
.shell {
  max-width: var(--wrap); margin: 0 auto; padding: 36px 24px 0;
  display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start;
}
.shell__main { flex: 1 1 620px; min-width: 0; order: 1; font-size: 16.5px; line-height: 1.7; }
.shell__aside { flex: 1 1 240px; min-width: 220px; max-width: 300px; order: 2; }
.shell__aside-inner {
  position: sticky; top: 70px; display: flex; flex-direction: column; gap: 16px;
}

.tag {
  display: inline-block; background: var(--blue-tint); color: var(--blue);
  font: 700 12px var(--font-display); letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; text-decoration: none;
}
.page-title {
  font: 700 clamp(30px, 4.5vw, 42px)/1.18 var(--font-display);
  color: var(--ink); margin: 16px 0 14px;
}

.byline {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  padding: 14px 18px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.byline__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff;
  font: 700 15px var(--font-display); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.byline__name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.byline__meta { font-size: 13px; color: var(--muted); }

.callout {
  background: var(--callout-bg); border: 1px solid var(--callout-border);
  border-radius: 14px; padding: 18px 22px; margin: 0 0 24px;
  font-size: 16px; line-height: 1.65;
}
.note {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 22px; margin: 0 0 18px;
}
.note__title { font: 700 15px var(--font-display); color: var(--ink); margin-bottom: 6px; }
.note p { margin: 0; font-size: 15px; line-height: 1.65; }

/* Prose */
.prose h2 { font: 700 26px var(--font-display); margin: 32px 0 12px; }
.prose h3 { font: 700 20px var(--font-display); margin: 26px 0 10px; }
.prose h4 { font: 700 17px var(--font-display); margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--border);
  display: block; margin: 0 0 18px;
}
.prose figure { margin: 0 0 18px; }
.prose figure img { margin: 0; }
.prose figcaption, .caption {
  margin: 8px 0 18px; font-size: 14px; color: var(--muted); font-style: italic;
}
.prose blockquote {
  margin: 0 0 18px; padding: 14px 20px; border-left: 4px solid var(--blue-tint);
  background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; color: var(--nav-link);
}
.prose table {
  width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 18px;
  background: var(--card);
}
.prose table th, .prose table td {
  padding: 10px 12px; border: 1px solid var(--border); text-align: left;
}
.prose table th { background: var(--row-hover); font-family: var(--font-display); font-size: 13px; }
.prose > :first-child { margin-top: 0; }

/* --------------------------------------------------------- Verdict box */
.verdict {
  background: var(--navy); border-radius: var(--radius-lg); padding: 28px;
  color: #fff; margin: 0 0 26px;
}
.verdict__top { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.verdict__brand { flex: 1; min-width: 240px; }
.verdict__logo {
  width: 100%; max-width: 280px; display: block; background: #fff;
  border-radius: 10px; padding: 12px 16px;
}
.verdict__tagline { font-size: 14.5px; color: var(--on-dark); margin-top: 12px; }
.verdict__score { flex-shrink: 0; text-align: center; }
.verdict__score-value { font: 700 52px/1 var(--font-display); }
.verdict__stars { font-size: 14px; color: var(--gold); letter-spacing: 2px; margin: 6px 0 2px; }
.verdict__score-label { font-size: 12px; color: var(--on-dark-dim); }
.verdict__badge {
  display: inline-block; background: var(--amber-bg); color: var(--amber-text);
  font: 700 11px var(--font-display); letter-spacing: 1px;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.verdict__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px; margin: 20px 0;
}
.verdict__stat {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px; padding: 12px; text-align: center;
}
.verdict__stat-value { font: 700 17px var(--font-display); }
.verdict__stat-label { font-size: 12px; color: var(--on-dark-dim); }
.verdict__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.verdict__fineprint { font-size: 13px; color: var(--on-dark-dim); }

/* --------------------------------------------------------- Pros & cons */
.proscons { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 26px; }
.proscons__col { flex: 1 1 260px; border-radius: var(--radius); padding: 16px 18px; }
.proscons__col--pro { background: var(--green-bg); border: 1px solid var(--green-border); }
.proscons__col--con { background: var(--red-bg); border: 1px solid var(--red-border); }
.proscons__title { font: 700 13px var(--font-display); letter-spacing: .5px; margin-bottom: 10px; }
.proscons__col--pro .proscons__title { color: var(--green); }
.proscons__col--con .proscons__title { color: var(--red); }
.proscons ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 7px;
  font-size: 14.5px; line-height: 1.5;
}
.proscons li { display: flex; gap: 8px; }
.proscons li::before { font-weight: 700; flex-shrink: 0; }
.proscons__col--pro li::before { content: "✓"; color: var(--green); }
.proscons__col--con li::before { content: "✗"; color: var(--red); }

/* Check list / numbered feature list */
.checklist { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.checklist li {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px;
}
.checklist li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }

.steps { display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; line-height: 1.6; counter-increment: step;
}
.steps li::before {
  content: counter(step);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue);
  font: 700 14px var(--font-display);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* --------------------------------------------------------- Sidebar widgets */
.toc {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
}
.toc__title {
  font: 600 11px var(--font-display); letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.toc a { color: var(--nav-link); text-decoration: none; }
.toc a:hover { color: var(--blue); }

.score-card { background: var(--navy); border-radius: 14px; padding: 20px; color: #fff; }
.score-card__label {
  font: 600 11px var(--font-display); letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--on-dark-dim); margin-bottom: 10px;
}
.score-card__value { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.score-card__value strong { font: 700 34px var(--font-display); }
.score-card__value span { font-size: 13px; color: var(--on-dark-dim); }
.score-card__stars { font-size: 13px; color: var(--gold); letter-spacing: 1px; margin-bottom: 10px; }
.score-card p { font-size: 13px; color: var(--on-dark); line-height: 1.5; margin: 0 0 14px; }

/* --------------------------------------------------------- FAQ */
.faq details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px;
}
.faq summary {
  padding: 16px 20px; font-weight: 600; font-size: 15.5px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  color: var(--ink); list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--blue); font-size: 20px; flex-shrink: 0; font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq__answer { padding: 0 20px 18px; font-size: 15px; line-height: 1.65; }
.faq__answer > :first-child { margin-top: 0; }
.faq__answer > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------- Card grid (archives) */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin: 0 0 24px; padding: 0; list-style: none;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
}
.card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #fff; border-bottom: 1px solid var(--divider); }
.card__media img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 10px; }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font: 700 17px/1.3 var(--font-display); margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--blue); }
.card__excerpt { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.card__meta { margin-top: auto; font-size: 12.5px; color: var(--muted); font-family: var(--font-display); }

/* --------------------------------------------------------- Breadcrumbs */
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 6px; color: var(--border); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* --------------------------------------------------------- Footer */
.site-footer { background: var(--navy); color: var(--on-dark); margin-top: 56px; }
.site-footer__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 44px 24px 36px;
  display: flex; gap: 48px; flex-wrap: wrap;
}
.site-footer__about { flex: 2 1 300px; min-width: 260px; }
.site-footer__col { flex: 1 1 180px; }
.site-footer__brand { font: 700 20px var(--font-display); color: #fff; margin-bottom: 10px; }
.site-footer p { margin: 0 0 10px; font-size: 14px; line-height: 1.65; }
.site-footer__heading {
  font: 600 12px var(--font-display); letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--on-dark-dim); margin-bottom: 12px;
}
.site-footer address { font-size: 14px; line-height: 1.8; font-style: normal; }
.site-footer a { color: var(--on-dark-bright); font-size: 14px; font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer__links a { font-weight: 400; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__bottom-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 16px 24px;
  font-size: 12.5px; color: var(--on-dark-dim);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* --------------------------------------------------------- Disclosure */
.disclosure {
  font-size: 12.5px; color: var(--muted); line-height: 1.6;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin: 0 0 22px;
}

/* --------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .shell { gap: 28px; }
  .shell__aside { max-width: none; flex-basis: 100%; order: 3; }
  .shell__aside-inner { position: static; }
  .hero { padding: 40px 24px 120px; }
}
@media (max-width: 640px) {
  .site-header__inner { gap: 14px; }
  .site-header__cta { margin-left: 0; width: 100%; text-align: center; }
  .site-nav { gap: 14px; font-size: 14px; }
  .verdict { padding: 20px; }
  .shell { padding-top: 24px; }
}
@media print {
  .dealbar, .site-header__cta, .shell__aside, .site-footer { display: none; }
}

/* --------------------------------------------------------- Criteria pills */
.criteria-pill {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--nav-link);
  display: inline-block;
}
.cta-inline { text-align: center; margin: 22px 0; }
