/* Hallmark · genre: atmospheric · macrostructure: Map / Diagram · theme: Midnight · tone: technical, nocturnal · anchor hue: 252 (cool)
 * nav: N5 Floating pill · hero: H9 custom diagram centerpiece (HTML/CSS route map, Tier A) · footer: Ft5 Statement
 * sections: S3 Sticky pinned (FAQ) · F5 Annotated screenshot · C3 Typographic link + one filled download button
 * enrichment: route map built in CSS + real app screenshots · motion: node ink-on (load, once) · tunnel dash flow (4 runs) · CTA lift
 * inferred brief: audience = Russian-speaking phone users who want a private VPN with no sign-up · use = download the Android APK · tone = technical, nocturnal
 * Hallmark · pre-emit critique: P5 H4 E4 S5 R5 V5
 */
/* tokens.css is linked before this file in every page head */

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--banner-height) + var(--space-md)); }
body {
  overflow-x: clip;
  margin: 0;
  background-color: var(--color-paper);
  background-image: radial-gradient(60rem 40rem at 78% -8rem, var(--color-bloom), transparent 70%);
  background-repeat: no-repeat;
  color: var(--color-ink-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent-2); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  color: var(--color-ink);
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}
p { margin: 0; }
code, .mono { font-family: var(--font-mono); font-size: 0.9em; letter-spacing: 0; }
.skip {
  position: absolute; left: var(--space-md); top: -4rem;
  background: var(--color-ink); color: var(--color-paper);
  padding: var(--space-xs) var(--space-md); border-radius: var(--radius-sm); z-index: var(--z-sticky-nav);
}
.skip:focus { top: var(--space-md); }
.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--page-gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* N5 · Floating pill */
.nav {
  position: fixed; top: var(--space-md); left: 50%; transform: translateX(-50%);
  z-index: var(--z-sticky-nav);
  display: flex; align-items: center; gap: var(--space-md);
  width: max-content; max-width: calc(100% - 2 * var(--space-md));
  padding: 0.375rem 0.375rem 0.375rem 0.625rem;
  background: color-mix(in oklch, var(--color-paper-2) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px -14px var(--color-shade);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em;
  color: var(--color-ink); text-decoration: none; white-space: nowrap;
}
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: var(--space-lg); }
.nav__links a, .nav__lang {
  color: var(--color-muted); text-decoration: none; font-size: var(--text-sm); white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out);
}
.nav__links a:hover, .nav__lang:hover { color: var(--color-ink); }
.nav__lang { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; padding: var(--space-xs); min-height: 44px; display: inline-flex; align-items: center; }
.nav__cta {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 var(--space-md); border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-accent-ink);
  font-weight: 600; font-size: var(--text-sm); text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.nav__cta:hover { background: var(--color-accent-2); color: var(--color-accent-ink); transform: translateY(-1px); }
.nav__cta:active { transform: translateY(0); transition-duration: 60ms; }
@media (min-width: 52rem) { .nav__links { display: flex; } }

/* Hero · the route map is the page */
.route { padding-top: calc(var(--banner-height) + var(--space-2xl)); padding-bottom: var(--space-3xl); }
.route__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); max-width: 62rem; }
.br-wide { display: none; }
@media (min-width: 60rem) { .br-wide { display: inline; } }
.route__head h1 { font-size: var(--text-display); }
.lede { font-size: var(--text-md); line-height: 1.5; color: var(--color-muted); max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xs); }
.btn {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px;
  padding: 0 var(--space-lg); border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-accent-ink);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.btn:hover { background: var(--color-accent-2); color: var(--color-accent-ink); transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); transition-duration: 60ms; }
.btn__meta { font-weight: 400; opacity: 0.8; }
@media (max-width: 23.9rem) { .route .btn__meta { display: none; } }
.soon {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px;
  padding: 0 var(--space-lg); border-radius: var(--radius-pill);
  border: var(--rule-hair) dashed var(--color-rule-2); color: var(--color-muted); white-space: nowrap; cursor: default;
}
.soon b { color: var(--color-ink-2); font-weight: 600; }
.link {
  color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule-2);
  text-underline-offset: 0.25em; white-space: nowrap;
  transition: text-decoration-color var(--dur-short) var(--ease-out);
}
.link:hover { text-decoration-color: var(--color-accent); }

/* The map */
.map { margin: var(--space-2xl) 0 0; }
.map__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.node {
  position: relative; z-index: var(--z-raised);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); align-content: start;
  padding: var(--space-lg);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
}
.node--tunnel { background: var(--color-paper-3); border-color: var(--color-rule-2); }
.node--net { background: transparent; border-style: dashed; }
.node__n { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1; color: var(--color-rule-2); letter-spacing: -0.04em; }
.node h3 { font-size: var(--text-md); letter-spacing: -0.02em; }
.node p { color: var(--color-muted); font-size: var(--text-sm); line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-2xs); }
.chip {
  font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.25;
  padding: 0.3em 0.6em; border-radius: 6px;
  background: var(--color-mark); color: var(--color-ink-2);
}
.edge { position: relative; display: grid; place-items: center; min-height: 3.5rem; }
.edge::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 0;
  border-left: var(--rule-line) solid var(--color-rule-2);
}
.edge--live::before { border-left: 0; width: var(--rule-line); transform: translateX(-50%);
  background-image: linear-gradient(to bottom, var(--color-accent) 55%, transparent 55%);
  background-size: 100% 12px; }
.edge__label {
  position: relative; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted);
  background: var(--color-paper); padding: 0.2em 0.6em; border-radius: 6px; text-align: center; line-height: 1.3;
}
.edge--live .edge__label { color: var(--color-accent-2); }
.bypass {
  margin-top: var(--space-md);
  display: grid; gap: var(--space-2xs);
  padding: var(--space-md) var(--space-lg);
  border: var(--rule-line) dashed var(--color-rule-2);
  border-radius: var(--radius-md);
}
.bypass__t { font-family: var(--font-display); font-weight: 700; color: var(--color-ink); letter-spacing: -0.01em; }
.bypass p { color: var(--color-muted); font-size: var(--text-sm); }
.map__note { margin-top: var(--space-lg); color: var(--color-neutral); font-size: var(--text-sm); max-width: 44rem; }

@media (min-width: 60rem) {
  .map__grid { grid-template-columns: minmax(0, 1fr) 5.75rem minmax(0, 1fr) 5.75rem minmax(0, 1fr) 5.75rem minmax(0, 1fr); align-items: stretch; }
  .edge { min-height: 0; }
  .edge::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 0; border-left: 0; border-top: var(--rule-line) solid var(--color-rule-2); }
  .edge--live::before { border-top: 0; height: var(--rule-line); transform: translateY(-50%);
    background-image: linear-gradient(to right, var(--color-accent) 55%, transparent 55%); background-size: 12px 100%; }
  .edge__label { transform: translateY(-1.6rem); background: transparent; padding: 0 var(--space-2xs); }
  /* The direct lane: drops from node 1, runs under the tunnel, rises into node 4 */
  .bypass {
    margin: 0 calc((100% - 17.25rem) / 8); padding: var(--space-xl) var(--space-lg) var(--space-md);
    border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    text-align: center; justify-items: center;
  }
  .bypass p { max-width: 36rem; }
  .node { min-height: 13.5rem; padding: var(--space-md) var(--space-md) var(--space-lg); }
}

/* Ink-on, once, node by node (capped at 5) */
@media (prefers-reduced-motion: no-preference) {
  .map__grid > * { opacity: 0; transform: translateY(8px); animation: ink var(--dur-long) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
  .bypass { opacity: 0; animation: ink var(--dur-long) var(--ease-out) 900ms forwards; }
  .edge--live::before { animation: flow-y 1.2s linear 4; }
  @media (min-width: 60rem) { .edge--live::before { animation-name: flow-x; } }
}
@keyframes ink { to { opacity: 1; transform: none; } }
@keyframes flow-y { from { background-position: 0 0; } to { background-position: 0 24px; } }
@keyframes flow-x { from { background-position: 0 0; } to { background-position: 24px 0; } }

/* Sections */
.section { padding-block: var(--space-3xl); border-top: var(--rule-hair) solid var(--color-rule); }
.section--tight { padding-block: var(--space-2xl) var(--space-3xl); }
.section h2 { font-size: var(--text-xl); }
.section__lede { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-md); line-height: 1.5; max-width: 38rem; }

/* F5 · Annotated screenshot */
.shot { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); align-items: start; margin-top: var(--space-2xl); }
.shot figure { margin: 0; position: relative; justify-self: center; width: min(100%, 22rem); }
.shot img { border-radius: var(--radius-lg); border: var(--rule-hair) solid var(--color-rule); }
.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--color-accent); color: var(--color-accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs);
  box-shadow: 0 0 0 4px var(--color-paper);
}
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); counter-reset: note; }
.notes li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: var(--space-2xs) var(--space-md); }
.notes li::before {
  counter-increment: note; content: counter(note);
  grid-row: span 2; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: var(--rule-hair) solid var(--color-accent); color: var(--color-accent-2);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs);
}
.notes h3 { font-size: var(--text-md); letter-spacing: -0.015em; }
.notes p { color: var(--color-muted); }
@media (min-width: 52rem) {
  .shot { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
  .shot figure { justify-self: end; }
}

/* Modes: two columns of type, no cards */
.modes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); margin-top: var(--space-2xl); }
.mode { display: grid; gap: var(--space-sm); padding-top: var(--space-lg); border-top: var(--rule-line) solid var(--color-rule-2); }
.mode:first-child { border-top-color: var(--color-accent); }
.mode h3 { font-size: var(--text-lg); }
.mode p { color: var(--color-muted); max-width: 30rem; }
@media (min-width: 52rem) { .modes { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-2xl); } }

/* Privacy ledger */
.ledger { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); margin-top: var(--space-2xl); }
.ledger h3 { font-size: var(--text-md); margin-bottom: var(--space-md); }
.ledger ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-sm); }
.ledger li { padding-left: 1.5rem; position: relative; color: var(--color-ink-2); }
.ledger li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.625rem; height: 0; border-top: var(--rule-line) solid var(--color-neutral); }
.ledger .kept li::before { width: 0.5rem; height: 0.5rem; top: 0.5em; border: 0; border-radius: 2px; background: var(--color-accent); }
.ledger .kept li { color: var(--color-ink); }
.ledger .kept p { color: var(--color-muted); font-size: var(--text-sm); margin-top: var(--space-2xs); }
@media (min-width: 52rem) { .ledger { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-3xl); } }

/* Plans */
.plans { margin-top: var(--space-2xl); display: grid; grid-template-columns: minmax(0, 1fr); border-top: var(--rule-hair) solid var(--color-rule); }
.plan { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.plan h3 { font-size: var(--text-lg); }
.plan__price { font-family: var(--font-display); font-weight: 700; color: var(--color-ink); font-size: var(--text-md); letter-spacing: -0.01em; }
.plan p, .plan li { color: var(--color-muted); }
.plan ul { margin: 0; padding-left: 1.1rem; display: grid; gap: var(--space-2xs); }
@media (min-width: 52rem) {
  .plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-xl); align-items: baseline; }
}

/* Download */
.get { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); margin-top: var(--space-2xl); }
.get__card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); align-content: start; padding: clamp(var(--space-lg), 4vw, var(--space-xl)); border-radius: var(--radius-lg); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); }
.get__card--ios { background: transparent; border-style: dashed; }
.get__card h3 { font-size: var(--text-lg); }
.spec { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2xs) var(--space-lg); margin: 0; font-size: var(--text-sm); }
.spec dt { color: var(--color-neutral); }
.spec dd { margin: 0; color: var(--color-ink-2); font-variant-numeric: tabular-nums; min-width: 0; }
.spec code { overflow-wrap: anywhere; word-break: break-all; color: var(--color-muted); font-size: var(--text-xs); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: var(--space-sm); }
.steps li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }
.steps li::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-weight: 700; color: var(--color-rule-2); font-size: var(--text-md); line-height: 1.2; }
@media (min-width: 52rem) { .get { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-xl); } }

/* S3 · Sticky pinned FAQ head */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
.faq__head { align-self: start; }
.faq__list { border-top: var(--rule-hair) solid var(--color-rule); }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 1.25rem; gap: var(--space-md); align-items: center;
  padding-block: var(--space-lg); font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); color: var(--color-ink); letter-spacing: -0.015em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 0.75rem; height: 0.75rem; justify-self: end;
  border-right: var(--rule-line) solid var(--color-muted); border-bottom: var(--rule-line) solid var(--color-muted);
  transform: rotate(45deg) translateY(-25%); transition: transform var(--dur-short) var(--ease-in-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-25%); }
.faq summary:hover { color: var(--color-accent-2); }
.faq details > div { padding-bottom: var(--space-lg); color: var(--color-muted); max-width: 40rem; display: grid; gap: var(--space-sm); }
@media (min-width: 60rem) {
  .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-3xl); }
  .faq__head { position: sticky; top: calc(var(--banner-height) + var(--space-md)); z-index: var(--z-sticky); }
}

/* Ft5 · Statement footer */
.foot { padding-block: var(--space-3xl) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.foot__line { font-family: var(--font-display); font-weight: 700; color: var(--color-ink); font-size: var(--text-xl); line-height: 1.05; letter-spacing: -0.03em; max-width: 20ch; text-wrap: balance; }
.foot__meta { margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); align-items: center; font-size: var(--text-sm); color: var(--color-neutral); }
.foot__meta a { color: var(--color-muted); text-decoration: none; white-space: nowrap; }
.foot__meta a:hover { color: var(--color-ink); text-decoration: underline; }
.foot__meta .brand { font-size: var(--text-base); margin-right: auto; }

/* Document pages (privacy, support) */
.doc { padding-top: calc(var(--banner-height) + var(--space-2xl)); padding-bottom: var(--space-3xl); }
.doc__head { display: grid; gap: var(--space-md); padding-bottom: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); max-width: 46rem; }
.doc__head h1 { font-size: var(--text-xl); }
.doc__meta { color: var(--color-neutral); font-size: var(--text-sm); }
.prose { max-width: 42rem; padding-top: var(--space-lg); }
.prose h2 { font-size: var(--text-md); margin-top: var(--space-xl); margin-bottom: var(--space-sm); letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--color-ink-2); }
.prose p + p { margin-top: var(--space-sm); }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: var(--space-xs); margin: var(--space-sm) 0; }
.prose strong { color: var(--color-ink); font-weight: 600; }
.note { margin-top: var(--space-lg); padding: var(--space-md) var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-sm); color: var(--color-muted); font-size: var(--text-sm); }
.contact { display: grid; gap: var(--space-sm); padding: var(--space-xl) 0; }
.contact__mail { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); letter-spacing: -0.02em; color: var(--color-ink); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
