/* WH VPN public site — tokens, components and the small utility subset the templates use.
   Self-hosted (no Tailwind CDN) for Core Web Vitals. */
:root {
  --bg: #f4f6fb; --card: #ffffff; --fg: #0f1730; --muted: #5b6680; --muted-2: #8a93a8;
  --border: #e3e8f2; --soft: #eaf0ff; --soft-2: #f0f4ff;
  --primary: #2f6bff; --primary-hover: #2258e3; --mint: #16a37a; --mint-soft: #e7f7f1; --amber: #f59e0b; --amber-soft: #fff4dc;
  --shadow: 0 10px 40px rgba(20, 40, 90, .08); --shadow-lg: 0 24px 70px rgba(20, 40, 90, .14);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.5; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img, svg { display: inline-block; vertical-align: middle; max-width: 100%; }
svg.lucide { width: 1.1em; height: 1.1em; flex: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.accent { color: var(--primary); }
.text-fg { color: var(--fg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(47,107,255,.28); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--fg); }
.btn-outline:hover { border-color: #c9d3ea; background: #fafbfe; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 18px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: var(--soft-2); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(47,107,255,.3); }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); box-shadow: var(--shadow); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.h1 { font-size: 40px; line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 22px 0 18px; }
.h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }
.prose { font-size: 16px; line-height: 1.7; color: #2b3352; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--fg); }
@media (min-width: 640px) { .h1 { font-size: 56px; } .h2 { font-size: 40px; } .lead { font-size: 19px; } }
@media (min-width: 1024px) { .h1 { font-size: 68px; } .h1.article { font-size: 52px; } }

/* cards & tiles */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.tile .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--primary); margin-bottom: 16px; }
.tile .ic svg.lucide { width: 22px; height: 22px; }
.tile h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.tile p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
a.tile { display: block; transition: transform .15s, box-shadow .15s; } a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }
.chip .ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--soft); color: var(--primary); }
.chip .ic svg.lucide { width: 16px; height: 16px; }
.chip small { color: var(--muted); font-weight: 500; }
.float-a { animation: floatA 6s ease-in-out infinite; } .float-b { animation: floatA 7s ease-in-out infinite reverse; }
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* pricing */
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 26px; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan .tag { position: absolute; top: -14px; left: 26px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag-blue { background: var(--primary); color: #fff; } .tag-amber { background: var(--amber-soft); color: #9a5b00; border: 1px solid #ffe2a8; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.plan ul { margin: 18px 0 24px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.plan li svg.lucide { color: var(--mint); margin-top: 3px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.kv span:first-child { color: var(--muted); } .kv span:last-child { font-weight: 600; }

/* steps */
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--primary); color: #fff; font-weight: 800; flex: none; box-shadow: 0 8px 20px rgba(47,107,255,.25); }
.step h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 700; }
.step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.step .prose { font-size: 15px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; background: var(--soft-2); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--fg); }
.badge:hover { background: var(--soft); }
.note { padding: 14px 16px; border-radius: 14px; background: var(--soft-2); border: 1px solid var(--border); font-size: 14px; line-height: 1.6; color: var(--muted); }
.note.warn { background: var(--amber-soft); border-color: #ffe2a8; color: #6b4300; }

/* mock */
.mock { background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 18px; }
.mock .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); font-size: 13px; }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.pill-ok { background: var(--mint-soft); color: #0d7a5a; }

/* faq */
details.faq { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
details.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .chev { color: var(--muted); transition: transform .15s; flex: none; }
details.faq[open] summary .chev { transform: rotate(180deg); }
details.faq .body { padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: var(--muted); }
details.faq .body a { color: var(--primary); }

/* breadcrumbs, article */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.article-head { padding: 28px 0 8px; }
.toc a { display: block; padding: 6px 0; font-size: 14px; color: var(--muted); } .toc a:hover { color: var(--fg); }

/* footer */
.footer { padding: 40px 0 32px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer a:hover { color: var(--fg); }

/* motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .float-a, .float-b { animation: none; } }

/* ---- utilities (the subset used by templates) ---- */
.flex { display: flex; } .inline-flex { display: inline-flex; } .grid { display: grid; } .block { display: block; } .hidden { display: none; }
.flex-col { flex-direction: column; } .flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1 1 0%; } .flex-none { flex: none; }
.items-center { align-items: center; } .items-start { align-items: flex-start; } .items-baseline { align-items: baseline; }
.justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; } .gap-7 { gap: 28px; } .gap-8 { gap: 32px; } .gap-10 { gap: 40px; }
.gap-x-5 { column-gap: 20px; } .gap-x-8 { column-gap: 32px; } .gap-y-2 { row-gap: 8px; } .gap-y-3 { row-gap: 12px; }
.m-0 { margin: 0; } .mx-auto { margin-left: auto; margin-right: auto; } .mt-auto { margin-top: auto; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-9 { margin-top: 36px; } .mt-10 { margin-top: 40px; } .mt-12 { margin-top: 48px; } .mt-14 { margin-top: 56px; } .mt-16 { margin-top: 64px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 20px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.p-3 { padding: 12px; } .p-4 { padding: 16px; } .p-5 { padding: 20px; } .p-6 { padding: 24px; } .p-7 { padding: 28px; } .p-8 { padding: 32px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; } .py-8 { padding-top: 32px; padding-bottom: 32px; } .py-10 { padding-top: 40px; padding-bottom: 40px; } .py-16 { padding-top: 64px; padding-bottom: 64px; }
.pt-6 { padding-top: 24px; } .pt-10 { padding-top: 40px; } .pb-10 { padding-bottom: 40px; } .pb-16 { padding-bottom: 64px; }
.max-w-xl { max-width: 576px; } .max-w-2xl { max-width: 672px; } .max-w-3xl { max-width: 768px; } .max-w-4xl { max-width: 896px; } .max-w-340 { max-width: 340px; }
.w-full { width: 100%; }
.text-center { text-align: center; } .text-left { text-align: left; }
.text-xs { font-size: 12px; line-height: 1.4; } .text-sm { font-size: 14px; line-height: 1.5; } .text-base { font-size: 16px; } .text-lg { font-size: 18px; line-height: 1.5; } .text-xl { font-size: 20px; line-height: 1.4; }
.font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.625; }
.rounded-2xl { border-radius: 16px; }
@media (min-width: 640px) {
  .sm\:block { display: block; } .sm\:inline-flex { display: inline-flex; } .sm\:flex-row { flex-direction: row; } .sm\:w-auto { width: auto; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:p-6 { padding: 24px; } .sm\:p-12 { padding: 48px; } .sm\:p-14 { padding: 56px; }
  .sm\:py-12 { padding-top: 48px; padding-bottom: 48px; } .sm\:py-16 { padding-top: 64px; padding-bottom: 64px; } .sm\:py-24 { padding-top: 96px; padding-bottom: 96px; }
  .sm\:pt-16 { padding-top: 64px; } .sm\:pb-24 { padding-bottom: 96px; }
}
@media (min-width: 768px) { .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .md\:flex { display: flex; } }
@media (min-width: 1024px) {
  .lg\:flex { display: flex; } .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr auto 1fr; }
  .article-grid { grid-template-columns: 1fr 260px; }
}
