/* Privacy VPN site. One stylesheet, system fonts, nothing loaded from third parties. */

:root {
  --ink: #021b3a;          /* app background bottom (homeBottom) */
  --indigo: #313f70;       /* app background top (bgTop) */
  --indigo-2: #203063;     /* launch screen */
  --paper: #f3f5fa;
  --white: #ffffff;
  --signal: #3ddb8c;       /* connected */
  --leaf: #2f9763;         /* app green */
  --flare: #ff6b5b;        /* not connected (the app's red bar, softened) */
  --text: #13213f;
  --text-soft: #4a5a7d;
  --on-ink: #eaf0fb;
  --on-ink-soft: #a6b5d6;
  --line: #d9dfec;
  --line-ink: rgba(234, 240, 251, 0.14);

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 3.4vw, 2.6rem);
  --step-4: clamp(2.5rem, 6vw, 4.4rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0.5rem; padding: 0.5rem 0.9rem;
  background: var(--white); color: var(--ink); border-radius: 8px; z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* What every site sees: the visitor's IP and country (landing page only, filled by the server) */
.whoami { background: var(--ink); color: var(--on-ink-soft); font-size: var(--step--1); border-bottom: 1px solid var(--line-ink); }
.whoami .wrap { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; padding-block: 0.45rem; }
.whoami strong { color: var(--on-ink); font-weight: 600; font-family: var(--mono); overflow-wrap: anywhere; }
.whoami strong.loc { font-family: var(--sans); }
.whoami strong:empty::before { content: "Unknown"; }
.whoami span { display: inline-flex; align-items: center; gap: 0.4rem; }
.whoami svg { width: 18px; height: 18px; flex: none; fill: var(--signal); }

/* Header: sits on the navy of whatever comes first */
.site-header { background: var(--ink); color: var(--on-ink); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 2rem; height: auto; }
.brand span { font-size: 1.15rem; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; font-size: var(--step--1); }
.nav a { text-decoration: none; color: var(--on-ink-soft); padding-block: 0.3rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }

/* Hero: the visitor's own exposure is the subject */
.hero { background: radial-gradient(120% 90% at 85% 0%, var(--indigo) 0%, var(--indigo-2) 38%, var(--ink) 78%); color: var(--on-ink); padding-block: 0; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 9vw, 7rem);
}
.hero h1 { font-size: var(--step-4); font-weight: 850; max-width: 14ch; }
.hero .lede { margin-top: 1.4rem; font-size: var(--step-1); color: var(--on-ink-soft); max-width: 34ch; line-height: 1.5; }
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.stores a { display: inline-block; border-radius: 8px; }
.stores img { height: 46px; width: auto; }

/* The readout: what this page can see about the visitor */
.readout {
  --state: var(--flare);
  position: relative;
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: rgba(2, 27, 58, 0.55);
  border: 1px solid color-mix(in srgb, var(--state) 38%, var(--line-ink));
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  transition: border-color 0.4s;
}
.readout[data-protected="true"] { --state: var(--signal); }
.readout h2 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.readout dl { margin: 1.4rem 0 0; display: grid; gap: 1.1rem; }
.readout dt { font-size: var(--step--1); color: var(--on-ink-soft); }
.readout dd { margin: 0.15rem 0 0; font-family: var(--mono); font-size: clamp(1.35rem, 3.4vw, 2rem); line-height: 1.2; overflow-wrap: anywhere; color: var(--on-ink); }
.readout dd.loc { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
.status { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--sans) !important; font-weight: 700; color: var(--state) !important; }
.status::before {
  content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--state); box-shadow: 0 0 0 6px color-mix(in srgb, var(--state) 22%, transparent);
}
.toggle {
  margin-top: 1.6rem; width: 100%;
  font: inherit; font-weight: 700; font-size: var(--step-0);
  color: var(--ink); background: var(--signal);
  border: 0; border-radius: 12px; padding: 0.9rem 1.2rem; cursor: pointer;
}
.readout[data-protected="true"] .toggle { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 1.5px var(--line-ink); }
.readout .note { margin-top: 0.9rem; font-size: var(--step--1); color: var(--on-ink-soft); }
.scramble { display: inline-block; }

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
section.hero { padding-block: 0; }   /* its .wrap carries the spacing */
.section-head { max-width: 40rem; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }
.section-head p { margin-top: 0.9rem; color: var(--text-soft); font-size: var(--step-1); line-height: 1.5; }

/* Ledger: what we keep and what we don't, side by side */
.ledger { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.5rem; border-top: 2px solid var(--text); }
.ledger > div { padding: 1.6rem 0 0; }
.ledger > div + div { padding-left: clamp(1.2rem, 4vw, 3rem); border-left: 1px solid var(--line); }
.ledger > div:first-child { padding-right: clamp(1.2rem, 4vw, 3rem); }
.ledger h3 { font-size: var(--step-1); font-weight: 800; display: flex; align-items: center; gap: 0.6rem; }
.ledger h3 svg { width: 1.3rem; height: 1.3rem; flex: none; }
.ledger ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.ledger li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.ledger li strong { display: block; }
.ledger li span { color: var(--text-soft); font-size: var(--step--1); }
.ledger .more { margin-top: 1.4rem; font-size: var(--step--1); }

/* Features: a two-column definition list, not a card grid */
.features { background: var(--white); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem clamp(2rem, 6vw, 5rem); margin: 3rem 0 0; }
.feature-list div { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1rem; }
.feature-list svg { grid-row: span 2; width: 2.6rem; height: 2.6rem; stroke: var(--leaf); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-list dt { font-weight: 800; font-size: var(--step-1); letter-spacing: -0.01em; }
.feature-list dd { margin: 0.35rem 0 0; color: var(--text-soft); }

/* Steps: a real sequence, so it is numbered */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 3rem 0 0; padding: 0; }
.steps li { counter-increment: step; border-top: 2px solid var(--text); padding-top: 1.1rem; }
.steps li::before { content: counter(step); display: block; font-size: var(--step-3); font-weight: 850; color: var(--leaf); line-height: 1; margin-bottom: 0.8rem; }
.steps strong { display: block; font-size: var(--step-1); }
.steps span { color: var(--text-soft); }

/* Download band */
.download { background: var(--ink); color: var(--on-ink); }
.download .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.download h2 { font-size: var(--step-3); font-weight: 800; max-width: 18ch; }
.download p { margin-top: 0.7rem; color: var(--on-ink-soft); }
.download .stores { margin-top: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-soft); font-size: var(--step--1); border-top: 1px solid var(--line-ink); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; padding-block: 2.5rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer a { color: var(--on-ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; align-items: flex-start; }

/* Page header for inner pages */
.page-head { background: var(--ink); color: var(--on-ink); padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { font-size: var(--step-3); font-weight: 850; }
.page-head p { margin-top: 0.7rem; color: var(--on-ink-soft); max-width: 46ch; }

/* Long-form documents (privacy, terms) */
.doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 4rem); }
.toc { position: sticky; top: 1.5rem; font-size: var(--step--1); }
.toc p { font-weight: 800; margin-bottom: 0.6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; color: var(--text-soft); }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-2); font-weight: 800; margin: 2.8rem 0 0.8rem; scroll-margin-top: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); font-weight: 800; margin: 1.8rem 0 0.5rem; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--leaf); }
.prose .summary { background: var(--white); border-left: 4px solid var(--leaf); padding: 1.1rem 1.3rem; border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 800; }
.updated { color: var(--text-soft); font-size: var(--step--1); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 6vw, 5rem); }
.contact .email { display: inline-block; margin-top: 1.2rem; font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; color: var(--text); text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact h2 { font-size: var(--step-2); font-weight: 800; }
.contact ol { margin: 1rem 0 0; padding-left: 1.3rem; }
.contact li { margin-bottom: 0.6rem; }
.contact aside { border-top: 2px solid var(--text); padding-top: 1.2rem; font-size: var(--step--1); color: var(--text-soft); }
.contact aside h3 { color: var(--text); font-size: var(--step-0); font-weight: 800; margin-top: 1.4rem; }
.contact aside h3:first-child { margin-top: 0; }
.contact address { font-style: normal; }

/* 404 */
.lost { min-height: 60vh; display: grid; align-content: center; }
.lost h1 { font-size: var(--step-4); font-weight: 850; }
.lost p { margin-top: 1rem; font-size: var(--step-1); color: var(--text-soft); max-width: 36ch; }
.lost a.home { display: inline-block; margin-top: 2rem; font-weight: 800; color: var(--ink); background: var(--signal); padding: 0.85rem 1.3rem; border-radius: 12px; text-decoration: none; }

@media (max-width: 860px) {
  /* Phones: the readout comes right after the headline, before the text and the store badges */
  .hero .wrap { display: flex; flex-direction: column; padding-top: 1.1rem; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; font-size: clamp(1.85rem, 8.2vw, 2.6rem); line-height: 1.08; }
  .hero .readout { order: 2; margin-block: 0.75rem 1.6rem; padding: 0.95rem 1.1rem 1rem; }
  .readout h2 { font-size: var(--step-0); }
  .readout dl { margin-top: 0.7rem; gap: 0.5rem; }
  .readout dd { font-size: 1.3rem; }
  .toggle { margin-top: 0.85rem; padding-block: 0.75rem; }
  .readout .note { margin-top: 0.65rem; }
  .site-header .wrap { padding-block: 0.8rem; }
  .hero .lede { order: 3; margin-top: 0; }
  .hero .stores { order: 4; margin-top: 1.25rem; }
  .contact, .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .ledger, .feature-list { grid-template-columns: 1fr; }
  .ledger > div + div { padding-left: 0; border-left: 0; }
  .ledger > div:first-child { padding-right: 0; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .readout { transition: none; }
}

.readout dd:empty::before { content: "Unknown"; color: var(--on-ink-soft); }
.contact .lead-in { margin-top: 2rem; }
.contact p + p { margin-top: 1rem; }
