/* ============================================================
   VPN Status — design tokens & reset
   ============================================================ */
:root {
  --brand-color: #2563eb;
  --bg: #f6f8fb;
  --bg-elev: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-2: #1e293b;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #475569;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #f59e0b;
  --warn-soft: #fef3c7;
  --down: #dc2626;
  --down-soft: #fee2e2;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 14px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brand-color); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -1000px; top: 0;
  background: var(--bg-dark); color: white; padding: 8px 12px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: var(--bg-dark);
  color: white;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-row {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.brand {
  font-weight: 800; font-size: 1.1rem; color: white;
  letter-spacing: -.01em; flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark { color: white; }
.brand-mark-accent { color: #60a5fa; }
.site-nav {
  margin-left: auto; display: flex; gap: 22px;
}
.site-nav a {
  color: rgba(255,255,255,.78); font-weight: 500; font-size: .94rem;
  transition: color .15s;
}
.site-nav a:hover { color: white; text-decoration: none; }
.last-update {
  color: rgba(255,255,255,.55); font-size: .82rem;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .last-update { font-size: .75rem; }
}

/* ============================================================
   Hero — index
   ============================================================ */
.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero h1 { max-width: 820px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; color: var(--text-muted);
  font-weight: 600; margin: 0 0 12px;
}
.lede {
  font-size: 1.1rem; color: var(--text-soft);
  max-width: 720px; margin-bottom: 28px;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-top: 28px;
}
.stat {
  background: var(--bg-elev);
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 4px;
}
.stat-num {
  font-size: 1.8rem; font-weight: 800; line-height: 1;
  letter-spacing: -.02em;
}
.stat-label {
  font-size: .82rem; color: var(--text-muted);
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 56px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 20px; flex-wrap: wrap; margin-bottom: 24px;
}
.section-head h2 { margin: 0; }
.section-sub {
  color: var(--text-soft); margin-top: -6px; margin-bottom: 24px;
  font-size: 1.02rem;
}

.filters {
  display: flex; gap: 6px; background: var(--bg-elev);
  padding: 4px; border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}
.filter {
  border: 0; background: transparent; padding: 8px 16px;
  border-radius: var(--radius-pill); cursor: pointer;
  font-size: .88rem; font-weight: 600; color: var(--text-muted);
  transition: all .15s;
}
.filter:hover { color: var(--text); }
.filter.active {
  background: var(--bg-dark); color: white;
}

/* ============================================================
   Service grid (index)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.service-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.service-card a.service-link {
  position: absolute; inset: 0; border-radius: inherit; z-index: 1;
}
.service-card-head {
  display: flex; align-items: center; gap: 12px;
}
.service-logo {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--brand-color);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .92rem;
  flex-shrink: 0;
}
.service-card-name {
  font-weight: 700; font-size: 1.05rem; color: var(--text);
}
.service-card-tag {
  font-size: .82rem; color: var(--text-muted); margin-top: 2px;
}
/* .partner-tag removed: rating presented as independent */
.service-card-status {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600;
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok); flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .15);
  animation: pulse 2s ease-in-out infinite;
}
.status-dot.warn {
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .18);
}
.status-dot.down {
  background: var(--down);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .18);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
.service-card-uptime {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
  padding: 10px 12px; border-radius: 10px;
  font-size: .85rem;
}
.uptime-mini {
  font-weight: 700; color: var(--text);
  font-feature-settings: "tnum";
}
.uptime-mini-label { color: var(--text-muted); }
.service-card-platforms {
  display: flex; gap: 4px; flex-wrap: wrap;
  font-size: 1rem;
}
.platform-mini {
  padding: 2px 4px; line-height: 1;
}

/* ============================================================
   Hero — service page
   ============================================================ */
.hero-service {
  padding: 40px 0 48px;
  background: linear-gradient(135deg, var(--brand-color) 0%, color-mix(in srgb, var(--brand-color) 70%, #0f172a) 100%);
  color: white; border-bottom: 0;
  position: relative; overflow: hidden;
}
.hero-service::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18) 0, transparent 40%);
  pointer-events: none;
}
.hero-service .eyebrow { color: rgba(255,255,255,.75); }
.hero-service h1 { color: white; margin-bottom: 24px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px; position: relative; z-index: 2;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.service-id {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 24px;
}
.service-id .service-logo {
  width: 56px; height: 56px; font-size: 1.05rem;
  border: 2px solid rgba(255,255,255,.25);
}

.breadcrumbs {
  padding-top: 16px; padding-bottom: 0;
  font-size: .85rem; color: var(--text-muted);
}
.breadcrumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.breadcrumbs li::after { content: "/"; color: var(--border-strong); margin-left: 6px; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--text-muted); }

.status-row {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.18);
  font-weight: 700; font-size: .92rem;
  backdrop-filter: blur(8px);
}
.status-badge.is-ok { background: rgba(22, 163, 74, .9); }
.status-badge.is-warn { background: rgba(245, 158, 11, .95); }
.status-badge.is-down { background: rgba(220, 38, 38, .95); }
.vote-counter {
  font-size: .92rem; color: rgba(255,255,255,.85);
}
.vote-counter [data-down-count] { font-weight: 800; color: white; }

/* Uptime card */
.uptime-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(14px);
  margin-bottom: 24px;
}
.uptime-card-label {
  font-size: .85rem; opacity: .8; margin: 0 0 8px;
  text-transform: uppercase; letter-spacing: .06em;
}
.uptime-timer {
  display: flex; gap: 12px;
  font-feature-settings: "tnum";
}
.t-block {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(0,0,0,.18);
  padding: 10px 14px; border-radius: 10px;
  min-width: 64px;
}
.t-block b {
  font-size: 1.7rem; font-weight: 800; line-height: 1;
  letter-spacing: -.02em;
}
.t-block i {
  font-size: .7rem; opacity: .7; font-style: normal;
  text-transform: uppercase; letter-spacing: .08em;
  margin-top: 4px;
}
.uptime-card-meta {
  margin: 14px 0 8px; font-size: .85rem; opacity: .85;
}
.threshold-bar {
  background: rgba(0,0,0,.22); height: 6px; border-radius: 3px;
  overflow: hidden;
}
.threshold-bar-fill {
  background: linear-gradient(90deg, #f59e0b, #dc2626);
  height: 100%; transition: width .5s;
}

/* --- Vote groups (two paired groups) --- */
.vote-groups {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 22px;
}
@media (max-width: 720px) {
  .vote-groups { grid-template-columns: 1fr; }
}
.vote-group {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.vote-group-label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  opacity: .75;
}
.vote-group-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.btn {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 8px; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: white; font-weight: 700; font-size: .9rem;
  border-radius: 10px; cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  text-align: left;
  min-height: 46px;
}
.btn:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn.is-active { background: rgba(255,255,255,.95); color: var(--text); border-color: white; }
.btn-emoji { font-size: 1.05rem; flex-shrink: 0; }
.btn-text { flex: 1; }
.btn-count {
  padding: 2px 8px;
  background: rgba(0,0,0,.25); border-radius: 999px;
  font-size: .78rem; font-weight: 800;
  font-feature-settings: "tnum";
}
.btn.is-active .btn-count { background: rgba(0,0,0,.1); }
.btn-down.is-active { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.btn-up.is-active { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.btn-like.is-active { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.btn-dislike.is-active { background: #fde68a; color: #854d0e; border-color: #fcd34d; }

/* --- Hero platform pills with status --- */
.platform-strip {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.platform-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  font-size: .85rem; font-weight: 600;
  position: relative;
}
.platform-pill .platform-pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.platform-pill.is-ok .platform-pill-dot { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.platform-pill.is-down .platform-pill-dot { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.2); }
.platform-pill.is-down { opacity: .55; }
.platform-pill .usage-icon { font-size: .95rem; line-height: 1; }
.platform-pill-label { font-weight: 600; }

.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;
}
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px;
  font-weight: 700; font-size: 1rem;
  transition: all .15s;
}
.cta-primary {
  background: white; color: var(--brand-color);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.cta-primary:hover {
  text-decoration: none; transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.hero-side {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(14px);
  height: fit-content;
}
.side-title {
  margin: 0 0 16px; font-size: 1rem; opacity: .9;
  text-transform: uppercase; letter-spacing: .06em;
}
.service-meta {
  margin: 0; display: grid; gap: 14px;
}
.service-meta dt {
  font-size: .78rem; opacity: .7;
  text-transform: uppercase; letter-spacing: .04em;
}
.service-meta dd {
  margin: 4px 0 0; font-size: .98rem; font-weight: 600;
}

/* ============================================================
   Alternatives list — clean flex layout, internal links
   ============================================================ */
.alt-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  counter-reset: alt;
}
.alt-row {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.alt-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.alt-link {
  position: absolute; inset: 0;
  border-radius: inherit;
  z-index: 1;
}
.alt-row > *:not(.alt-link) { position: relative; z-index: 2; pointer-events: none; }
.alt-row::before {
  counter-increment: alt;
  content: counter(alt);
  font-weight: 800; font-size: 1.05rem; color: var(--text-muted);
  width: 28px; text-align: center; flex-shrink: 0;
  font-feature-settings: "tnum";
}
.alt-row:nth-child(1)::before,
.alt-row:nth-child(2)::before {
  color: var(--brand-color);
}
.alt-logo {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: white;
  flex-shrink: 0;
}
.alt-body {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.alt-name {
  font-weight: 700; font-size: 1rem;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.alt-meta {
  font-size: .85rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.alt-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600; color: var(--text-soft);
  flex-shrink: 0; min-width: 110px;
}
.alt-platforms {
  display: flex; gap: 4px; font-size: 1rem;
  flex-shrink: 0;
}
.alt-platform { line-height: 1; padding: 2px; }
.alt-uptime {
  display: flex; flex-direction: column; align-items: flex-end;
  font-size: .78rem; color: var(--text-muted);
  font-feature-settings: "tnum"; white-space: nowrap;
  flex-shrink: 0; min-width: 92px;
}
.alt-uptime-label { font-size: .72rem; opacity: .8; }
.alt-uptime b { color: var(--text); font-weight: 700; font-size: .92rem; }
.alt-cta {
  padding: 9px 16px; border-radius: 9px;
  background: var(--bg-dark); color: white;
  font-weight: 600; font-size: .85rem;
  white-space: nowrap; flex-shrink: 0;
  pointer-events: none;
}
.alt-row:hover .alt-cta { background: var(--brand-color); }

@media (max-width: 920px) {
  .alt-platforms, .alt-status { display: none; }
}
@media (max-width: 640px) {
  .alt-row { gap: 12px; padding: 14px 16px; }
  .alt-row::before { width: 22px; font-size: .95rem; }
  .alt-logo { width: 38px; height: 38px; }
  .alt-uptime { display: none; }
  .alt-cta {
    padding: 8px 10px;
    font-size: .8rem;
  }
}

/* ============================================================
   Two/three column blocks
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .three-col { grid-template-columns: 1fr; } }

.card-info {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.card-info-icon {
  font-size: 1.6rem; margin-bottom: 10px;
}
.card-info h3 { margin-bottom: 8px; }
.card-info p { color: var(--text-soft); margin: 0; font-size: .95rem; }

.checklist, .crosslist {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.checklist li, .crosslist li {
  padding-left: 28px; position: relative;
  color: var(--text-soft); font-size: .98rem;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 800;
}
.crosslist li::before {
  content: "−"; position: absolute; left: 0; top: 0;
  color: var(--down); font-weight: 800; font-size: 1.2em; line-height: 1;
}

.usage-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px; height: fit-content;
}
.usage-card h3 { margin-top: 0; }
.usage-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }

/* Platform tile grid (in usage card) */
.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (max-width: 480px) {
  .usage-grid { grid-template-columns: 1fr; }
}
.platform-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  position: relative;
  transition: background .15s, border-color .15s;
}
.platform-tile.is-ok {
  background: var(--ok-soft);
  border-color: rgba(22,163,74,.18);
  color: #14532d;
}
.platform-tile.is-down {
  background: var(--down-soft);
  border-color: rgba(220,38,38,.16);
  color: #7f1d1d;
}
.platform-tile-icon {
  font-size: 1.2rem; line-height: 1;
}
.platform-tile-label {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.platform-tile-status {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.platform-tile.is-ok .platform-tile-status {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
.platform-tile.is-down .platform-tile-status {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.18);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 0;
  overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 16px 20px;
  font-weight: 600; font-size: 1rem;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400;
  color: var(--text-muted); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 20px 16px; margin: 0;
  color: var(--text-soft);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 28px 0;
  margin-top: 64px;
}
.footer-row {
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; font-size: .88rem;
}
.footer-meta { color: rgba(255,255,255,.5); }

/* ============================================================
   Animation helpers
   ============================================================ */
@keyframes vote-burst {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.vote-burst { animation: vote-burst .35s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
