/* VPN Share — shared styles. No build step, no external requests. */

:root {
  color-scheme: light dark;

  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-alt: #efece5;
  --ink: #16181d;
  --muted: #545861;
  --line: rgba(22, 24, 29, 0.12);
  --line-strong: rgba(22, 24, 29, 0.24);
  --link: #0a6b74;
  --link-hover: #3b4bc8;
  --teal: #0e7c86;
  --indigo: #3b4bc8;
  --gradient: linear-gradient(135deg, var(--teal) 0%, var(--indigo) 100%);
  --gradient-text: var(--gradient);
  --on-accent: #ffffff;
  --note-bg: rgba(14, 124, 134, 0.08);
  --code-bg: rgba(22, 24, 29, 0.06);
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.06), 0 8px 24px rgba(22, 24, 29, 0.06);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: 16px;
  --max: 960px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111316;
    --surface: #1a1d22;
    --surface-alt: #16191d;
    --ink: #ecebe7;
    --muted: #a6aab2;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.24);
    --link: #6ccfd8;
    --link-hover: #a9b3ff;
    --gradient-text: linear-gradient(135deg, #6ccfd8 0%, #a9b3ff 100%);
    --note-bg: rgba(108, 207, 216, 0.08);
    --code-bg: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

@media (min-width: 600px) {
  :root { --gutter: 32px; }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 1.875rem); font-weight: 650; margin-top: 2em; }
h3 { font-size: 1.1875rem; font-weight: 650; margin-top: 1.75em; }

p, ul, ol, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: 0.35em; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 4px;
}

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--code-bg);
  border-radius: 5px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

strong { font-weight: 650; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow { max-width: calc(720px + 2 * var(--gutter)); }

/* Header */

.site-header {
  padding-top: 4px;
  background: var(--gradient) top / 100% 4px no-repeat;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 8px 10px;
  border-radius: 8px;
}
.site-nav a:hover { background: var(--code-bg); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--link); font-weight: 600; }

/* Main */

main { padding: 40px 0 64px; }

.lead { font-size: 1.1875rem; color: var(--muted); }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 0.5em;
}

/* Hero */

.hero { text-align: center; padding: 24px 0 8px; }
.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: var(--shadow);
  margin: 0 auto 20px;
  display: block;
}
.hero h1 { margin-bottom: 0.3em; }
.hero .pitch {
  font-size: clamp(1.25rem, 3.6vw, 1.625rem);
  line-height: 1.35;
  font-family: var(--font-display);
  font-weight: 500;
  max-width: 34ch;
  margin: 0 auto 1.25em;
}
.badge {
  display: inline-block;
  background: var(--gradient);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 18px;
  border-radius: 999px;
  margin: 0 0 1em;
}
.hero-links { display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; }

/* Flow diagram */

.flow {
  margin: 40px 0 0;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.flow ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.flow li { margin: 0; display: flex; align-items: center; gap: 8px; }
.flow li + li::before { content: "\2192"; content: "\2192" / ""; color: var(--muted); }
.flow .node {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.flow .node.key { border-color: transparent; background: var(--gradient); color: var(--on-accent); font-weight: 600; }
@media (max-width: 599px) {
  .flow ol, .flow li { flex-direction: column; gap: 4px; }
  .flow li + li::before { content: "\2193"; content: "\2193" / ""; }
}
.flow figcaption { margin-top: 12px; font-size: 0.9375rem; color: var(--muted); }

/* Steps */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.steps li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 10px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steps h3 { margin: 0 0 0.35em; }
.steps p { margin: 0; color: var(--muted); }

/* Features */

.features {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
}
.features li {
  margin: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.features h3 { margin: 0 0 0.35em; font-size: 1.0625rem; }
.features p { margin: 0; color: var(--muted); font-size: 1rem; }

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

/* Notes and callouts */

.note {
  background: var(--note-bg);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 0 0 1em;
}
.note > :last-child { margin-bottom: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 1em;
}
.card > :last-child { margin-bottom: 0; }

.toc { columns: 1; }
@media (min-width: 640px) { .toc { columns: 2; column-gap: 32px; } }
.toc li { break-inside: avoid; }

/* Tables (stack into cards on narrow screens) */

.table-wrap { margin: 0 0 1.25em; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9688rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
caption {
  text-align: left;
  font-weight: 600;
  padding: 0 0 8px;
  caption-side: top;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
thead th { background: var(--surface-alt); font-weight: 650; }
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 650; }

@media (max-width: 639px) {
  table.stack,
  table.stack tbody,
  table.stack tr,
  table.stack th,
  table.stack td { display: block; width: 100%; }
  table.stack { border: 0; background: none; }
  table.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  table.stack tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
  }
  table.stack tbody th { background: var(--surface-alt); }
  table.stack td { border-bottom: 1px solid var(--line); }
  table.stack tr > :last-child { border-bottom: 0; }
  table.stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8125rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 2px;
  }
}

/* Long-form pages */

.page-head { margin-bottom: 24px; }
.page-head p { margin-bottom: 0.5em; }

.prose h2 {
  padding-top: 1.25em;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose h3 { scroll-margin-top: 16px; }
.prose h2 { scroll-margin-top: 16px; }

.faq-item { scroll-margin-top: 16px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer p { margin: 0; }
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.site-footer li { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--link); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
