/* VPN Blocker - main stylesheet */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/roboto-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-700-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #cb2629;          /* brand primary */
  --red-dark: #a91d20;
  --red-hover: #ff0000;    /* live site link hover */
  --heading: #54617a;
  --text: #5f6b80;         /* AA-contrast body copy */
  --muted: #8d99ae;        /* live site body grey */
  --bg: #ededed;           /* live #page background */
  --surface: #ffffff;
  --border: #e3e6ec;
  --code-bg: #1f2430;
  --success: #1e7d45;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 36, 48, .08), 0 2px 6px rgba(31, 36, 48, .05);
  --shadow-lg: 0 24px 60px rgba(31, 36, 48, .16);
  --max: 1160px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --accent-font: "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .15em; }
a:hover { color: var(--red-hover); }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); line-height: 1.25; margin: 0 0 .6em; font-weight: 500; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 300; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .9em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: #fff; color: var(--heading); padding: .6rem 1rem; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: #fff; transition: background-color .2s ease, box-shadow .2s ease; }
.js .site-header { position: fixed; }
.site-header.is-scrolled, .site-header.is-open { background: var(--red); box-shadow: 0 4px 20px rgba(0, 0, 0, .15); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; font-weight: 500; font-size: 1.15rem; letter-spacing: .01em; }
.brand:hover { color: inherit; }
.brand img { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2)); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .55rem .9rem; color: rgba(255, 255, 255, .88); text-decoration: none; text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; border-radius: 999px; transition: background-color .15s ease, color .15s ease; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .2); }
.nav-toggle { display: none; background: transparent; border: 0; color: #fff; padding: .5rem; margin-right: -.5rem; cursor: pointer; border-radius: 8px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline; }
.nav-toggle svg { display: block; }

@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--red); box-shadow: 0 12px 20px rgba(0, 0, 0, .15); display: none; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; }
  .js .site-nav a { padding: .85rem 1rem; border-radius: 10px; font-size: .95rem; }
  .no-js .nav-wrap { flex-direction: column; padding-block: .75rem; }
}

/* ---------- Heroes ---------- */
.hero, .page-hero {
  position: relative;
  color: #fff;
  text-align: center;
  background-color: var(--red);
  background-image: linear-gradient(rgba(203, 38, 41, .7), rgba(203, 38, 41, .7)), url("../img/hero-bg.jpg");
  background-image: linear-gradient(rgba(203, 38, 41, .7), rgba(203, 38, 41, .7)), image-set(url("../img/hero-bg.webp") type("image/webp"), url("../img/hero-bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
}
.hero { padding: clamp(7rem, 16vw, 11rem) 0 clamp(8rem, 14vw, 11rem); }
.hero-logo { width: clamp(96px, 12vw, 128px); margin: 0 auto 1.25rem; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .25)); }
.hero h1 { color: #fff; margin-bottom: .35em; font-size: clamp(2.4rem, 6vw, 3.8rem); letter-spacing: -.01em; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: rgba(255, 255, 255, .95); max-width: 40ch; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.page-hero { padding: 7.5rem 0 7rem; }
.page-hero h1 { color: #fff; margin: 0; }

/* ---------- Main card ---------- */
.main { position: relative; z-index: 1; width: min(100% - 2rem, var(--max)); margin: -4.5rem auto 4rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem); }
.main--home { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.section + .section { margin-top: clamp(3.5rem, 7vw, 6rem); }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 500; color: var(--red); margin-bottom: .75rem; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.5rem; border-radius: 999px; border: 2px solid var(--red); background: transparent; color: var(--red); font: inherit; font-weight: 500; font-size: .95rem; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { background: var(--red); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--red); }
.btn--light:hover { background: rgba(255, 255, 255, .9); color: var(--red-dark); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Home ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); text-align: center; }
.feature { padding: 1.5rem 1rem; border-radius: var(--radius); transition: box-shadow .2s ease, transform .2s ease; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1.25rem; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 10px 22px rgba(203, 38, 41, .3); }
.feature h3 { margin-bottom: .5rem; }
.feature p { margin: 0; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.about h2 em { font-family: var(--accent-font); font-style: italic; font-weight: 700; display: block; color: var(--heading); }
.about-media { position: relative; padding: 0 1.25rem 1.25rem 0; }
.about-media::before { content: ""; position: absolute; inset: 1.5rem 0 0 1.5rem; border: 6px solid var(--red); border-radius: 10px; }
.about-media img { position: relative; border-radius: 10px; box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; text-align: center; } .about-media { max-width: 560px; margin-inline: auto; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; max-width: 1000px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.plan-head { background: var(--red); color: #fff; text-align: center; padding: 1.75rem 1.25rem 1.5rem; }
.plan-head h2 { color: #fff; font-size: 1.5rem; font-weight: 400; margin: 0 0 .2rem; }
.plan-head p { margin: 0; font-size: .9rem; opacity: .92; }
.plan-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.75rem; }
.plan-features { list-style: none; margin: 0 0 1.5rem; padding: 0; flex: 1; }
.plan-features li { display: grid; grid-template-columns: 20px 1fr; gap: .6rem; padding: .5rem 0; border-bottom: 1px dashed var(--border); font-size: .95rem; color: var(--heading); }
.plan-features li:last-child { border-bottom: 0; }
.plan-features svg { margin-top: .2rem; }
.plan-features .yes svg { color: var(--red); }
.plan-features .no { color: var(--muted); }
.plan-features .no svg { color: var(--muted); }
.plan-features small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: .15rem; }
.plan-price { text-align: center; margin: 0 0 1.25rem; color: var(--heading); }
.plan-price .cur { font-size: 1.1rem; vertical-align: top; position: relative; top: .35rem; }
.plan-price .amt { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.plan-price .per { color: var(--muted); }
.plan--featured { border-color: var(--red); box-shadow: var(--shadow-lg); transform: translateY(-12px); }
.plan--featured .plan-head { padding-top: 2.25rem; }
.pricing-notes { margin-top: 3rem; text-align: center; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; } .plan--featured { transform: none; order: -1; } }

/* Plan checkout pages */
.billing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 760px; margin: 2rem auto; }
.billing-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.billing-card h2 { font-size: 1.15rem; font-weight: 500; margin-bottom: 1rem; }
.billing-card .amt { font-size: 2.6rem; font-weight: 700; color: var(--heading); line-height: 1.1; }
.billing-card .per { color: var(--muted); margin-bottom: .75rem; }
.billing-card .save { display: inline-block; align-self: center; font-size: .8rem; font-weight: 500; padding: .2rem .7rem; border-radius: 999px; background: #f1f2f5; color: var(--heading); margin-bottom: 1rem; }
.billing-card--best { border-color: var(--red); }
.billing-card--best .save { background: rgba(203, 38, 41, .1); color: var(--red-dark); }
.billing-card .billed { flex: 1; margin-bottom: 1.25rem; }
.billing-card del { color: var(--muted); margin-right: .25rem; }
.payment-cards { max-width: 300px; margin: 2rem auto 0; }
.back-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 2rem; }
@media (max-width: 640px) { .billing { grid-template-columns: 1fr; } }

/* ---------- Prose (legal, simple pages) ---------- */
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { font-size: 1.3rem; font-weight: 500; margin-top: 2.2em; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35em; }
.prose .caps { text-transform: none; font-size: .95rem; }
.callout { border-left: 4px solid var(--red); background: #fbf3f3; padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; color: var(--heading); }

/* ---------- Contact form ---------- */
.contact-form { max-width: 720px; margin: 2rem auto 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.25rem; }
.field label, .field legend { display: block; font-weight: 500; color: var(--heading); margin-bottom: .4rem; padding: 0; }
fieldset.field { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.req { color: var(--red); }
.sublabel { display: block; font-size: .8rem; color: var(--muted); margin-top: .3rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--heading); background: #fff;
  border: 1px solid #cfd5df; border-radius: 10px; padding: .75rem .9rem; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 170px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(203, 38, 41, .18); }
[aria-invalid="true"] { border-color: var(--red); }
.field-error { display: block; color: var(--red-dark); font-size: .85rem; margin-top: .3rem; min-height: 0; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 1.25rem; padding: .9rem 1.1rem; border-radius: 10px; display: none; }
.form-status.is-success { display: block; background: #eaf6ef; color: var(--success); border: 1px solid #bfe3cd; }
.form-status.is-error { display: block; background: #fdecec; color: var(--red-dark); border: 1px solid #f3c2c3; }
.cf-turnstile { margin-bottom: 1.25rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.docs-nav { position: sticky; top: 96px; font-size: .92rem; }
.docs-nav h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; margin: 1.25rem 0 .4rem; }
.docs-nav h2:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; padding: .35rem .75rem; border-radius: 8px; color: var(--heading); text-decoration: none; border-left: 2px solid transparent; }
.docs-nav a:hover { background: #f5f6f8; color: var(--red); }
.docs-nav details > summary { display: none; }
.docs-content > section { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.docs-content > section:last-child { border-bottom: 0; }
.docs-content h2 { font-weight: 400; font-size: 1.75rem; }
.docs-content h3 { margin-top: 2rem; }
.docs-content h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.5rem 0 .6rem; }
.meta-list { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 1rem 0; }
.meta-list dt { font-weight: 500; color: var(--heading); }
.meta-list dd { margin: 0; overflow-wrap: anywhere; }
.endpoint { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-family: var(--mono); background: #f5f6f8; border: 1px solid var(--border); border-radius: 10px; padding: .7rem 1rem; margin: 1rem 0; color: var(--heading); overflow-wrap: anywhere; }
.method { font-family: var(--font); font-weight: 700; font-size: .75rem; letter-spacing: .06em; background: #1e7d45; color: #fff; padding: .2rem .55rem; border-radius: 6px; }
.tag { display: inline-block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; background: #f1f2f5; color: var(--heading); padding: .15rem .6rem; border-radius: 999px; }
.table-wrap { overflow-x: auto; margin: .5rem 0 1rem; border: 1px solid var(--border); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #f7f8fa; color: var(--heading); font-weight: 500; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td code, p code, dd code, li code { background: #f1f2f5; padding: .1rem .35rem; border-radius: 5px; color: #8a1b1d; }
pre { background: var(--code-bg); color: #e6e9ef; padding: 1rem 1.15rem; border-radius: 10px; overflow-x: auto; line-height: 1.55; margin: .5rem 0 1.25rem; }
pre code { background: none; padding: 0; color: inherit; }
.tok-k { color: #ff9b9d; } .tok-s { color: #a8e1a1; } .tok-n { color: #f8c37a; }
.status-code { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { position: static; border: 1px solid var(--border); border-radius: 10px; padding: .25rem 1rem; }
  .docs-nav details > summary { display: list-item; cursor: pointer; padding: .75rem 0; font-weight: 500; color: var(--heading); }
}

/* ---------- Simple / 404 ---------- */
.notice { text-align: center; max-width: 640px; margin: 0 auto; }
.notice h2 { font-size: 1.35rem; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 2rem 0; font-size: .92rem; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.brand--footer { color: var(--heading); font-size: 1rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--red); text-decoration: underline; }
.copyright { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .footer-wrap { flex-direction: column; text-align: center; } .footer-links { justify-content: center; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .hero-actions { display: none; } .main { box-shadow: none; margin: 0; } .page-hero, .hero { background: none; color: #000; } }
.docs-content > section.docs-group { border-bottom: 0; padding-bottom: 0; margin-bottom: 1rem; }
.main--plain { margin-top: 2rem; }
.table-wrap table { min-width: 520px; }
/* Keep the footer at the bottom on short pages (404, payment completed). */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.site-footer { margin-top: auto; }
