/* OllaVPN — Enterprise theme (Light)
   Design tokens retuned 2026-06-05 to match networkershome.com's
   GlobalLayout.C6huUVYO.css exactly: same red, same secondary blue/
   violet/amber accents, same Lato self-host pattern, same Tailwind-
   scale radius. Content stays ours; visual system is borrowed. */
:root {
  /* Surface tokens (2026-06-09): pure-white page bg. Visual depth comes
     from a faint brand-red grid pattern painted on <body> (NetworkersHome
     pattern), not from off-white tint. Cards lift via 1px line + shadow. */
  /* Premium PQC dark (2026-07): near-black canvas + violet primary.
     Token NAMES unchanged so the whole site + blog inherit; --red now
     carries the VIOLET brand accent, red retired to logo/alerts. */
  --bg: #0B0B12;             /* canvas — near-black */
  --bg-2: #14141C;           /* surface-1: alt sections */
  --grid-line: rgba(124, 92, 255, 0.06);   /* faint violet grid */
  --grid-size: 32px;
  --bg-tint: rgba(34, 211, 238, 0.07);     /* cyan-tint info card */
  --panel: #14141C;          /* cards */
  --panel-2: #1C1C26;        /* raised panel */
  --line: rgba(255, 255, 255, 0.09);       /* hairline — border-first */
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ECECF2;           /* near-white */
  --text-dim: #A8A8B6;
  --text-mute: #6E6E7C;
  --surface-dark: #14122A;   /* deep indigo band — footer + trust */
  --red: #7C5CFF;            /* PRIMARY = electric violet (brand accent) */
  --red-2: #6D4EE6;          /* hover/pressed */
  --red-soft: rgba(124, 92, 255, 0.14);
  --amber: #FBBF24;
  --amber-2: #F59E0B;
  --green: #34D399;
  --blue: #22D3EE;           /* quantum cyan */
  --violet: #8B5CF6;         /* PQC accent */
  /* Radius — default bumped to 12px for softer modern cards; 6/8/16 retained. */
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
  /* Card shadow: 2-layer lift (contact + ambient) — buildbetter signature. */
  --shadow-card: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.38);
  --shadow-card-hover: 0 1px 2px rgba(0,0,0,.45), 0 18px 46px rgba(0,0,0,.55);
  /* Radial hero glow — violet wash centered behind the H1 */
  --gradient-hero: radial-gradient(60% 60% at 50% 0%, rgba(124,92,255,.14), transparent 70%);

  /* Type system (2026-06-10): Lato for BOTH body + display so every head
     across the site carries the same chunky personality as the hero H1.
     Display heads use Lato 700 (Bold, self-hosted at lato-700-latin.woff2).
     Inter is left available but unused — preload kept for now in case we
     swap back; can drop in a follow-up if we commit to single-family. */
  --sans: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { margin: 0; padding: 0; background: var(--bg); }
body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  /* Pure-white page + faint brand-red grid pattern (NetworkersHome shape).
     Two 1px linear-gradients give a perfectly tiled square grid; sections
     that set their own solid background will mask it for intentional rhythm. */
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / var(--grid-size) var(--grid-size),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / var(--grid-size) var(--grid-size),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Layout */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* Type — sized to enterprise norms (Proton ~52, Express ~56) rather than
   deck-presentation scale. Old upper bound was 88px (ItemUI #1, 2026-05-15). */
/* Display: bright + bold sitewide (2026-06-10). Every h1/h2/h3 across
   ~125 pages now wears Lato 700 with -0.045em kerning and 1.0 leading —
   the same energy as the hero H1, scaled down. Hero H1 keeps its own
   bigger 92px override in index.html for masthead distinction. */
.h-display { font-family: var(--display); font-weight: 700; letter-spacing: -0.045em; line-height: 1.0; font-optical-sizing: auto; }
.h1 { font-size: clamp(28px, 3.5vw, 45px); }
.h2 { font-size: clamp(20px, 2.4vw, 31px); }
.h3 { font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; letter-spacing: -0.03em; }
/* Bare h1/h2/h3 elements (no .h-display class) — blog posts, tech pages,
   anything generated by marketing-gen. Apply the same bold typography so
   "bright + bold" propagates everywhere, not just elements with classes. */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; color: var(--text); }
h2 { font-size: clamp(22px, 2.6vw, 32px); }
h3 { font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -0.03em; }
/* Marketing-gen .article template inlines `.article h2/h3 { font-weight: 600 }`
   in every blog post + tech page (~110 files), and the inline <style> is
   declared AFTER styles.css in the cascade — same specificity, later wins.
   !important here is the right tool: it's a brand-defining typography
   invariant, not a casual override. Bumps every article head to 700
   without regenerating those pages. */
.article h1, .article h2, .article h3,
.article-hero h1, .article-hero h2, .article-hero h3 { font-weight: 700 !important; letter-spacing: -0.035em !important; }
.article h2 { font-size: clamp(24px, 2.6vw, 32px) !important; }
.article h3 { font-size: clamp(18px, 1.6vw, 22px) !important; }
.h-display .accent, .h1 .accent, .h2 .accent, .h3 .accent { color: var(--red); font-weight: 800; }
/* Kicker (eyebrow): brighter — 12px near-black + bright red pip. Reads
   as a real label, not decorative grey noise. */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text); font-weight: 700; }
.kicker .pip { color: var(--red); }

/* Top utility bar — dark band (2026-06-09 per request). Light grey text
   on near-black bg; bottom border drops since the dark surface itself
   separates it from the nav below. */
.utilbar {
  background: #0B0B10; color: rgba(255,255,255,0.72);
  font-family: var(--mono); font-size: 11px;
  border-bottom: 1px solid #0B0B10;
  padding: 7px 0; letter-spacing: 0.04em;
}
.utilbar a { color: rgba(255,255,255,0.82); }
.utilbar a:hover { color: #fff; }
/* Utilbar wrap widens to match the nav (1440px) so the status indicator
   on the left and the trail links on the right align with the nav logo
   and CTAs above. */
.utilbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 1440px; }
.utilbar .green-dot { color: var(--green); }

/* Nav (ItemUI #16): solid white instead of glassmorphism. A 1px line
   appears at page top before any scroll; once the user scrolls past 0,
   shared.js adds .scrolled which deepens it slightly for separation
   from page content. Glass-blur reads as 2021 SaaS; flat reads as
   enterprise. */
/* Nav is white (utilbar above is dark — only the utilbar is the dark band). */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .15s, border-color .15s;
}
.nav.scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 var(--line), 0 4px 12px -8px rgba(0,0,0,0.08);
}
/* Nav-inner runs wider than the section .wrap (1200px) so the logo and CTAs
   sit closer to the viewport edges, giving the nav a wider, more spacious feel
   than the content columns below. Page sections still cap at 1200px. */
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 28px; max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; color: var(--text); }
/* Brand mark (OllaVPN arch glyph, 2026-06-09): inline-SVG data URI so
   every page using <span class="brand-mark"></span> picks up the new
   identity without HTML edits. Red rounded square + white tunnel arch +
   red center "destination" dot. Matches /favicon.svg pixel-for-pixel. */
.brand-mark {
  width: 28px; height: 28px;
  flex: 0 0 28px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><rect x='4' y='4' width='56' height='56' rx='13' fill='%23DA291C'/><path d='M 18 50 L 18 30 A 14 14 0 0 1 46 30 L 46 50 Z' fill='%23FFFFFF'/><circle cx='32' cy='36' r='5' fill='%23DA291C'/></svg>") center/contain no-repeat;
}
/* Nav links with animated underline (ItemUI #17). Standard Proton/Express
   affordance: a 2px red line scales in from the left on hover/active.
   Better hit feedback than color-only change. */
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--text-dim); }
.nav-links a {
  position: relative;
  padding: 6px 4px;
  transition: color .15s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 4px; right: 4px; bottom: -1px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Mega-dropdown nav (2026-06-05) — wide-view pattern from
   networkershome.com. A nav item with a panel pops a full-width mega
   menu below the navbar. CSS-only: hover shows, focus-within shows
   (keyboard reachable), click-out hides via shared.js. Desktop only
   (>=900px). Mobile collapses into the existing nav-links accordion. */
.nav-item { position: relative; padding: 6px 4px; cursor: pointer; transition: color .15s; }
.nav-item:hover, .nav-item.active, .nav-item:focus-within { color: var(--text); }
.nav-item::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: -1px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.nav-item:hover::after, .nav-item.active::after, .nav-item:focus-within::after { transform: scaleX(1); }
.nav-item .caret {
  display: inline-block; margin-left: 4px; font-size: 10px;
  vertical-align: 1px; color: var(--text-mute); transition: transform .18s ease;
}
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); color: var(--text); }

/* The mega-panel itself — anchored to the navbar, full container width. */
.mega {
  position: absolute; top: calc(100% + 1px); left: 50%; transform: translateX(-50%);
  min-width: 720px; max-width: 1100px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px -16px rgba(11,11,16,0.18), 0 2px 8px rgba(11,11,16,0.04);
  padding: 24px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px);
  transition: opacity .15s, transform .15s, visibility 0s linear .15s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .15s, transform .15s, visibility 0s;
}
.mega-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* Product mega tier-cards: 3-up Free/Pro/Business inside the mega-dropdown.
   Each card is itself a clickable <a>. Pro card gets a red border lift. */
.mega-cols-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tier-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tier-card:hover { border-color: var(--red); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.tier-card h5 { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.025em; margin: 0; color: var(--text); }
.tier-card .tier-price { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.025em; color: var(--text); line-height: 1; }
.tier-card .tier-price span { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--text-mute); margin-left: 4px; letter-spacing: 0.04em; }
.tier-card .tier-desc { font-family: var(--mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.02em; line-height: 1.45; }
.tier-card .tier-arrow { margin-top: 6px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: 0.04em; }
.tier-card.tier-popular { border-color: var(--red); box-shadow: 0 6px 18px -6px rgba(218,41,28,0.20); }
.tier-card.tier-popular::before {
  content: "BEST DEAL"; position: absolute; top: -8px; right: 14px;
  padding: 2px 8px; background: var(--red); color: #fff;
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.10em;
  border-radius: var(--radius-pill);
}
.tier-card.tier-popular { position: relative; }
@media (max-width: 720px) {
  .mega-cols-tiers { grid-template-columns: 1fr; }
}
.mega-col h5 {
  margin: 0 0 12px; font-size: 11px; font-weight: 700;
  color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase;
}
.mega-col a {
  display: block; padding: 8px 10px; margin: 0 -10px;
  font-size: 14px; color: var(--text-dim); font-weight: 500;
  border-radius: var(--radius-sm); transition: background .12s, color .12s;
}
.mega-col a:hover { background: var(--bg-2); color: var(--text); }
.mega-col a .sub {
  display: block; margin-top: 2px; font-size: 12px; color: var(--text-mute);
  font-weight: 400; letter-spacing: 0;
}
.mega-col a .new-pip {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  background: var(--amber); color: var(--text);
  border-radius: var(--radius-pill); vertical-align: 1px;
}
.mega-cta {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--text-dim);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  /* Square corners (ItemUI #12): 6/6/8 across sm/md/lg. */
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--bg-2); border-color: #C2C2CC; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  /* Flat red — drop the 180deg gradient (was visually busy; flat reads
     as confident). ItemUI #7: replace the red drop-shadow (which tinted
     the page) with a small neutral shadow that keeps the red contained
     to the button face. */
  background: var(--red);
  border: 1px solid var(--red-2);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.btn.primary:hover { background: var(--red-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn.ghost:hover { background: var(--bg-2); border-color: var(--line); color: var(--text); }
/* Outline CTA — Proton-style "Free" + "Unlimited" tier buttons. */
.btn.outline { background: transparent; border-color: var(--red); color: var(--red); }
.btn.outline:hover { background: rgba(218,41,28,0.06); border-color: var(--red-2); color: var(--red-2); }
.btn.lg { padding: 13px 20px; font-size: 15px; border-radius: 6px; }
.btn.xl { padding: 16px 24px; font-size: 16px; border-radius: 8px; }
.btn .arrow { font-family: var(--mono); font-size: 14px; opacity: 0.85; }

/* Surfaces */
.surface { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); transition: box-shadow .18s, transform .18s; }
.surface.elev { box-shadow: var(--shadow-card-hover); }
.surface.glow { position: relative; }
.surface.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(180deg, rgba(225,28,38,0.30), rgba(225,28,38,0) 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* Eyebrow chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2);
  font-family: var(--mono); font-size: 11px; color: var(--text-dim);
  letter-spacing: 0.04em;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(225,28,38,0.16); }

/* Section spacing — tightened from 120/80 to 88/64 (ItemUI #2). */
/* Section padding -10% (2026-06-09); head margin + lede -30%.
   Heads are center-aligned site-wide for any single-column section
   (kicker + h2 + lede stack). Two-column .feature rows have their own
   .feature .copy layout and are NOT affected by this rule. */
.section { padding: 79px 0; }
.section-sm { padding: 58px 0; }
.section .head, .section-sm .head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.section .head .h2 { margin-top: 10px; }
.section .head .lede { margin-top: 13px; font-size: 14px; color: var(--text-dim); }

/* Footer — networkershome.com-inspired deep-indigo treatment (2026-06-05).
   Was light gray (var(--bg-2)) with dark text — fine but visually weak
   as a closer. Now sits on var(--surface-dark) #1F1B4D with white-
   transparent type, matching the bottom band of NH's site. Gives the
   page a clear punctuation mark + visually anchors the "Stand up your
   privacy" CTA section that precedes it. */
.footer {
  padding: 96px 0 32px;
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.72);
  border-top: 0;
}
.footer .top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.footer .brand { color: #fff; }
/* Footer mark keeps the SVG bg from .brand-mark (no override needed). */
.footer h4 { font-size: 13px; color: #fff; margin: 0 0 14px; font-weight: 700; letter-spacing: 0.02em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.62); }
.footer ul a { transition: color .15s; }
.footer ul a:hover { color: #fff; }
.footer .muted { color: rgba(255, 255, 255, 0.62) !important; }
.footer .bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, 0.52); letter-spacing: 0.04em; }
.footer .bottom .badges { display: flex; gap: 18px; }
.footer .bottom a { color: rgba(255, 255, 255, 0.62); transition: color .15s; }
.footer .bottom a:hover { color: #fff; }

.divider { height: 1px; background: var(--line); }

/* Code block — token classes prefixed to avoid collisions */
.code {
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  color: #D8D8E4; white-space: pre-wrap;
  background: #0E0E16; border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px;
}
.code .tk-keyword { color: var(--red-2); }
.code .tk-string  { color: var(--amber); }
.code .tk-comment { color: #8A8A98; }
.code .tk-name    { color: var(--blue); }
.code .tk-var     { color: var(--violet); }

/* Tag pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--red-soft); color: var(--red-2);
  font-family: var(--mono); font-size: 11px;
  border: 1px solid #F7C9CD;
}
.pill.green { background: #E6F7EE; color: var(--green); border-color: #B9E8CF; }
.pill.amber { background: #FFF4DB; color: var(--amber); border-color: #F2DDA0; }
.pill.muted { background: var(--bg-2); color: var(--text-dim); border-color: var(--line-2); }

/* Form */
input, textarea, select {
  width: 100%; background: var(--panel); border: 1px solid var(--line-2); color: var(--text);
  padding: 11px 14px; border-radius: 10px; font-size: 14px; font-family: var(--sans);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(225,28,38,0.10); }

/* Reveal */
.reveal { transition: opacity .5s ease, transform .5s ease; }
.js-reveal .reveal:not(.in) { opacity: 0; transform: translateY(8px); }

/* Hero backgrounds */
.bg-grid {
  background-image:
    linear-gradient(rgba(11,11,16,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,16,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-radial {
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(225,28,38,0.10), transparent 60%),
    radial-gradient(60% 60% at 100% 100%, rgba(111,70,224,0.06), transparent 60%);
}

.accent { color: var(--red); }
/* Drop the gradient-clip on h1 accents (ItemUI #5). Flat red reads as
   confident; gradient-text is a 2018 SaaS tic. The .h1 .accent override
   in the per-page <style> blocks gets neutralized here. */
.h1 .accent, .h2 .accent { background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; color: var(--red) !important; }
.muted { color: var(--text-dim); }
.mute { color: var(--text-mute); }

.row { display: flex; }
.col { display: flex; flex-direction: column; }
.center { text-align: center; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }

/* Mobile hamburger + drawer (2026-06-05).
   Hamburger button sits in the navbar's CTA cluster, hidden on desktop.
   On tap, shared.js clones the desktop nav items into <aside class=
   "mobile-drawer"> at end-of-body and toggles .mobile-nav-open on
   <body> — which slides the drawer in from the right and locks scroll.
   No per-page HTML duplication beyond the single button. */
.nav-hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer;
  color: var(--text); padding: 0; margin-left: 4px;
  transition: background .15s, border-color .15s;
}
.nav-hamburger:hover { background: var(--bg-2); border-color: var(--line-2); }
.nav-hamburger .bars { width: 18px; height: 2px; background: currentColor; position: relative; transition: background .15s; }
.nav-hamburger .bars::before,
.nav-hamburger .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .2s ease, top .2s ease; }
.nav-hamburger .bars::before { top: -6px; }
.nav-hamburger .bars::after  { top:  6px; }
body.mobile-nav-open .nav-hamburger .bars { background: transparent; }
body.mobile-nav-open .nav-hamburger .bars::before { top: 0; transform: rotate(45deg); }
body.mobile-nav-open .nav-hamburger .bars::after  { top: 0; transform: rotate(-45deg); }

/* The drawer itself + backdrop. Off-screen by default; slide in on
   .mobile-nav-open. Lock body scroll while open. */
.mobile-drawer-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(11,11,16,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
body.mobile-nav-open .mobile-drawer-backdrop { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(86vw, 360px);
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 48px -16px rgba(11,11,16,0.18);
  padding: 80px 20px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .22s cubic-bezier(.4,.0,.2,1);
}
body.mobile-nav-open .mobile-drawer { transform: translateX(0); }
body.mobile-nav-open { overflow: hidden; }

.mobile-drawer section { margin-bottom: 20px; }
.mobile-drawer h5 {
  margin: 0 0 8px; font-size: 11px; font-weight: 700;
  color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase;
}
.mobile-drawer a {
  display: block; padding: 10px 0; font-size: 15px;
  color: var(--text); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer a:hover { color: var(--red); }
.mobile-drawer section:last-of-type a:last-child { border-bottom: 0; }
.mobile-drawer .mobile-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.mobile-drawer .mobile-cta a { border: 0; padding: 12px 16px; text-align: center; border-radius: var(--radius-sm); }
.mobile-drawer .mobile-cta a.primary { background: var(--red); color: #fff; }
.mobile-drawer .mobile-cta a.ghost { border: 1px solid var(--line-2); color: var(--text); }

@media (max-width: 980px) {
  .footer .top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-item { display: none; }                  /* mega-dropdowns become drawer entries */
  .utilbar .utilbar-right { display: none; }    /* keep status indicator, drop trail links */
  .nav-hamburger { display: inline-flex; }
  .nav-cta .btn.ghost { display: none; }        /* sign-in moves into the drawer */
}

/* =========================================================================
   BLOG / ARTICLE — Phase 1 (Authority) + Phase 2 (Reading polish), 2026-06-10
   ========================================================================= */

/* Custom text selection — replaces browser blue with brand red-soft */
::selection { background: var(--red-soft); color: var(--text); }
::-moz-selection { background: var(--red-soft); color: var(--text); }

/* Reading-progress bar — fixed 2px red strip at top of viewport that fills
   as the reader scrolls through the article. Updated by blog.js. */
.reading-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  z-index: 100;
  transition: width .08s linear;
  pointer-events: none;
}

/* Author byline block — sits between article-hero lede and TL;DR.
   Layout: [avatar] author meta · reviewer meta (right column). */
.article-byline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px 22px;
  max-width: 880px;
  margin: 28px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: -0.01em; line-height: 1;
  flex: 0 0 40px;
}
.author-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.author-name { font-weight: 700; font-size: 14px; color: var(--text); line-height: 1.3; }
.author-name a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.author-name a:hover { border-bottom-color: var(--red); }
.author-role { font-family: var(--mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.04em; line-height: 1.3; }
.reviewer-block { text-align: right; font-family: var(--mono); font-size: 11px; color: var(--text-mute); line-height: 1.5; letter-spacing: 0.02em; }
.reviewer-block .reviewer-label { color: var(--green); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.reviewer-block .reviewer-name { color: var(--text); font-weight: 700; font-family: var(--sans); font-size: 12px; letter-spacing: -0.005em; }
@media (max-width: 700px) {
  .article-byline { grid-template-columns: auto 1fr; }
  .reviewer-block { grid-column: 1 / -1; text-align: left; padding-top: 8px; border-top: 1px dashed var(--line); }
}

/* Author bio card at end of article (after FAQ, before related) */
.author-bio-card {
  margin-top: 3em; padding: 24px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
}
.author-bio-card .author-avatar { width: 56px; height: 56px; font-size: 18px; flex: 0 0 56px; }
.author-bio-card .bio-name { font-weight: 700; font-size: 17px; color: var(--text); margin-bottom: 4px; }
.author-bio-card .bio-role { font-family: var(--mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.author-bio-card .bio-text { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin: 0; }
.author-bio-card .bio-more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 13px; color: var(--red); }
.author-bio-card .bio-more:hover { color: var(--red-2); }

/* Drop cap — only on the first paragraph immediately after the TL;DR. */
.article > p:first-of-type::first-letter,
.article .tldr + .toc-inline + p::first-letter,
.article .toc-inline + p::first-letter {
  float: left;
  font-family: var(--display); font-weight: 700;
  font-size: 4.6em; line-height: 0.86;
  padding: 6px 12px 0 0;
  color: var(--red);
  letter-spacing: -0.04em;
}

/* Anchor-copy on H2 hover — '#' floats left of the heading; click copies
   the canonical URL with #section-id to clipboard. */
.article h2 { position: relative; }
.article h2 .anchor-copy {
  position: absolute; left: -28px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  color: var(--text-mute); font-family: var(--mono); font-weight: 700; font-size: 16px;
  text-decoration: none;
  opacity: 0; transition: opacity .15s, color .15s, background .15s;
  cursor: pointer;
}
.article h2:hover .anchor-copy { opacity: 1; }
.article h2 .anchor-copy:hover { color: var(--red); background: var(--red-soft); }
.article h2 .anchor-copy.copied { color: var(--green); background: rgba(11,143,95,0.08); opacity: 1; }
@media (max-width: 900px) { .article h2 .anchor-copy { display: none; } }

/* Numbered eyebrows on H2 — `01 · 02 · 03` red prefix in mono. Auto-counted
   from h2 elements inside .article (counter scoped per-article so each
   page starts at 01). Skips the FAQ subhead since .faq has its own h3s. */
.article { counter-reset: section; }
.article > h2::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero) " · ";
  color: var(--red); font-family: var(--mono); font-weight: 800;
  font-size: 0.6em; letter-spacing: 0.04em;
  margin-right: 6px; vertical-align: middle;
}
/* Short-answer pull quote — left red bar + tighter type */
.article .short-answer {
  border-left: 3px solid var(--red);
  padding-left: 14px;
  font-size: 19px !important;
  line-height: 1.5 !important;
}

/* Section ::target highlight flash — when reader lands via deep-link or
   anchor-copy, briefly tint the heading so they know where they jumped to. */
@keyframes section-flash {
  0%   { background: rgba(218,41,28,0.16); }
  100% { background: transparent; }
}
.article h2:target { animation: section-flash 1.4s ease-out; border-radius: 6px; }

/* ==========================================================================
   FEATURE PAGE chrome — for /pqc, /killswitch, /in-tunnel-dns, /peer-isolation
   These pages were initially blog-shaped; the de-blog patcher strips byline +
   share + newsletter + bio + cards and inserts the components below.
   ========================================================================== */

/* Tier-compatibility strip — sits between article-hero and TL;DR */
.tier-compat {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 0 0 1.6em;
  padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel);
}
.tier-compat-label { font-family: var(--mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.06em; text-transform: uppercase; }
.tier-compat-chip {
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--text); text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.tier-compat-chip:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.tier-compat-note { font-family: var(--mono); font-size: 11px; color: var(--text-mute); margin-left: 6px; }

/* Feature-page CTA — replaces the blog's "Related" cards at the bottom */
.feature-cta {
  margin-top: 3em;
  padding: 32px 28px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--red-soft), var(--panel) 70%);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.feature-cta h3 {
  font-size: 22px !important; margin: 0 0 8px !important;
  letter-spacing: -0.03em !important;
}
.feature-cta p { color: var(--text-dim); font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.feature-cta .btn { margin: 0 0 10px; }
.feature-cta-sub { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-mute); }
.feature-cta-sub a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.feature-cta-sub a:hover { color: var(--red); border-bottom-color: var(--red); }

/* =========================================================================
   BLOG / ARTICLE — Phase 4 (Discoverability density), 2026-06-10
   ========================================================================= */

/* Tag chips in the article-hero meta line — `[PRIVACY] [LEGAL] [WIREGUARD]` */
.tag-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag-chips a {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 10px;
  border: 1px solid var(--line-2); border-radius: var(--radius-pill);
  color: var(--text-dim); text-decoration: none;
  transition: background .12s, color .12s, border-color .12s;
}
.tag-chips a:hover { background: var(--red-soft); color: var(--red); border-color: var(--red); }

/* Share row — beneath the bio card, sticks to article column */
.share-row {
  margin-top: 2.4em; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.share-row .share-label {
  font-family: var(--mono); font-size: 11px; color: var(--text-mute);
  letter-spacing: 0.06em; text-transform: uppercase; margin-right: 6px;
}
.share-row a, .share-row button {
  appearance: none; cursor: pointer; background: transparent;
  border: 1px solid var(--line-2); border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  transition: color .12s, border-color .12s, background .12s;
  display: inline-flex; align-items: center; gap: 6px;
}
.share-row a:hover, .share-row button:hover { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.share-row .copy-link.copied { color: var(--green); border-color: var(--green); background: rgba(11,143,95,0.08); }

/* "Key takeaways" component at end (post-read summary, distinct from TL;DR) */
.key-takeaways {
  margin-top: 2.4em; padding: 22px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel); box-shadow: var(--shadow-card);
}
.key-takeaways .label {
  font-family: var(--mono); font-size: 11px; color: var(--red);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700;
}
.key-takeaways h2 {
  font-size: 22px !important; margin: 6px 0 14px !important;
  letter-spacing: -0.03em !important;
}
.key-takeaways ul { list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 15px; line-height: 1.55; color: var(--text-dim); }
.key-takeaways ul li {
  padding-left: 26px; position: relative;
}
.key-takeaways ul li::before {
  content: "\2192"; position: absolute; left: 0; top: 0;
  color: var(--red); font-weight: 700;
}

/* Inline newsletter signup — calm card mid-article (after the FAQ) */
.inline-newsletter {
  margin-top: 2.4em; padding: 26px 28px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--red-soft), var(--panel) 60%);
  text-align: center;
}
.inline-newsletter .label {
  font-family: var(--mono); font-size: 11px; color: var(--red);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}
.inline-newsletter h3 {
  font-size: 20px !important; margin: 6px 0 6px !important;
  letter-spacing: -0.02em !important;
}
.inline-newsletter p {
  color: var(--text-dim); font-size: 14px; line-height: 1.55;
  margin: 0 auto 14px; max-width: 460px;
}
.inline-newsletter form {
  display: flex; gap: 8px; max-width: 460px; margin: 0 auto;
}
.inline-newsletter input[type="email"] {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--panel); color: var(--text);
  font-family: var(--sans); font-size: 14px;
}
.inline-newsletter input[type="email"]:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(218,41,28,0.10);
}
.inline-newsletter button {
  padding: 10px 18px;
  background: var(--red); color: #fff; border: 0;
  border-radius: var(--radius);
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background .15s;
}
.inline-newsletter button:hover { background: var(--red-2); }
.inline-newsletter .msg {
  margin-top: 10px; font-family: var(--mono); font-size: 11px;
  color: var(--text-mute); min-height: 14px;
}
.inline-newsletter.success .msg { color: var(--green); }
.inline-newsletter.error .msg { color: var(--red); }
@media (max-width: 600px) {
  .inline-newsletter form { flex-direction: column; }
}

/* Card-style related posts — replaces the prior "→ Link text" plain list.
   3-up grid: tag + title + 1-line description + read-time. */
.related .related-cards {
  list-style: none; padding: 0; margin: 1.2em 0 0;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
}
.related .related-cards li {
  padding: 0; margin: 0;
}
.related .related-cards li::before { content: none; }  /* kill the legacy "→" glyph */
.related .related-cards a {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--panel);
  box-shadow: var(--shadow-card);
  color: var(--text); text-decoration: none;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  min-height: 130px;
}
.related .related-cards a:hover {
  box-shadow: var(--shadow-card-hover); transform: translateY(-2px);
  border-color: var(--red);
}
.related .related-cards .card-tag {
  font-family: var(--mono); font-size: 10px; color: var(--text-mute);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}
.related .related-cards .card-title {
  font-weight: 700; font-size: 15px; line-height: 1.35;
  color: var(--text); letter-spacing: -0.01em;
}
.related .related-cards .card-meta {
  margin-top: auto; padding-top: 8px;
  font-family: var(--mono); font-size: 10px; color: var(--text-mute);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) {
  .related .related-cards { grid-template-columns: 1fr; }
}
