/* RetuVPN — site styles (Retu brand skin: dark canvas, indigo primary, orange signal) */

@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-var.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrainsmono-latin-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

.live { display: none !important; }

:root {
  /* Layout unchanged: one 72rem column. Dark canvas from the app (#060810),
     indigo primary (retuPrimary), orange signal for accents and the routes
     that get through. */
  color-scheme: dark;
  --bg: #060810;
  --surface: #0C1122;
  --surface-2: #10162B;
  --ink: #EEF1F8;
  --muted: #9AA4C0;
  --rule: #1C2440;
  --rule-strong: #2B3556;
  --wash: #141B3C;      /* faint indigo wash, for highlights */
  --wash-rule: #2B3556;
  --code: #0D1226;
  --sign: #4D5CF2;      /* brand indigo, deepened a hair so white text clears WCAG AA (5.1:1) */
  --sign-hover: #4353EA;
  --on-sign: #FFFFFF;
  --go: #FF7D00;        /* the signal — and the route that got through */
  --go-ink: #FFAB5E;
  --stop: #454F6B;      /* routes that did not */
  --hatch: rgba(238, 241, 248, 0.09);
  --danger: #FF5C7A;
  --danger-hover: #FF7A92;
  --lift: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 40px -12px rgba(0, 0, 0, 0.55);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Poppins", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --s-1: 0.875rem;
  --s0: 1.0625rem;
  --s1: 1.25rem;
  --s2: 1.625rem;
  --s3: clamp(1.8rem, 1.4rem + 1.3vw, 2.4rem);
  --s5: clamp(2.6rem, 1.5rem + 3.6vw, 4.6rem);

  --wrap: 72rem;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--s0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* Aurora: two quiet brand glows behind the top of every page. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52rem 30rem at 12% -6%, rgba(90, 107, 255, 0.16), transparent 65%),
    radial-gradient(44rem 26rem at 88% -10%, rgba(138, 60, 255, 0.10), transparent 65%),
    radial-gradient(30rem 20rem at 72% 14%, rgba(255, 125, 0, 0.05), transparent 70%);
}
::selection { background: var(--sign); color: var(--on-sign); }
img, svg { max-width: 100%; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

h1, h2, h3 { text-wrap: balance; margin: 0; font-family: var(--display); }
h1 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.3rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: var(--s3); font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: var(--s1); font-weight: 600; line-height: 1.3; }
p { margin: 0; }

a { color: inherit; text-decoration-color: var(--go); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--go-ink); }
:focus-visible { outline: 3px solid var(--go); outline-offset: 2px; border-radius: 3px; }

code { font-family: var(--mono); font-size: 0.86em; background: var(--code); padding: 0.12em 0.4em; border-radius: 4px; overflow-wrap: anywhere; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 20; background: var(--sign); color: var(--on-sign); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 0.84em 1.35em 0.7em;
  border-radius: 10px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-sign {
  background: var(--sign); color: var(--on-sign);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-sign:hover {
  background: var(--sign-hover); color: var(--on-sign);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 28px -10px rgba(90, 107, 255, 0.55);
  transform: translateY(-1px);
}
.btn-line { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-strong); font-weight: 600; }
.btn-line:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--go); transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #22060D; }
.btn-danger:hover { background: var(--danger-hover); color: #22060D; box-shadow: 0 10px 28px -10px rgba(255, 92, 122, 0.5); transform: translateY(-1px); }
.btn-small { font-size: 0.92rem; padding: 0.68em 1.05em 0.56em; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Header */
.site-head {
  border-bottom: 1px solid var(--rule); background: rgba(6, 8, 16, 0.82);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.head-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { height: 26px; width: auto; flex: none; }
.foot-about .brand svg { height: 30px; }
.main-nav { display: flex; gap: 4px 26px; margin-left: auto; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 0.98rem; text-decoration: none; padding: 6px 0 3px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s ease; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--go); }
@media (max-width: 760px) {
  .head-cta { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; scrollbar-width: none; }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 1em; align-content: start; }
.stack > * { min-width: 0; }
.lede { font-size: var(--s1); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.fine { font-size: var(--s-1); color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero-copy h1 { font-size: var(--s5); line-height: 0.98; letter-spacing: -0.025em; }
.hero-copy .lede { max-width: 40ch; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: var(--s-1); font-weight: 600; color: var(--go-ink); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 4px rgba(255, 125, 0, 0.16); flex: none; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 4px rgba(255, 125, 0, 0.20); }
  70% { box-shadow: 0 0 0 9px rgba(255, 125, 0, 0); }
  100% { box-shadow: 0 0 0 4px rgba(255, 125, 0, 0); }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Forms */
.form { display: grid; gap: 10px; max-width: 30rem; }
.form > label { font-weight: 600; }
.form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.form input[type="email"], .form input[type="text"] {
  flex: 1 1 14rem; min-width: 0; width: 100%; font: inherit; color: var(--ink); background: var(--code);
  padding: 0.74em 0.95em 0.62em; border: 1.5px solid var(--rule-strong); border-radius: 10px;
  transition: border-color .15s ease;
}
.form-row input { width: auto; }
.form input::placeholder { color: var(--stop); }
.form input:focus-visible { outline: 3px solid var(--go); outline-offset: 1px; border-color: transparent; }
.form > label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; font-weight: 400; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--danger); flex: none; }
.form .btn { justify-self: start; }
.form-status { font-size: var(--s-1); font-weight: 600; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { color: var(--go-ink); }
.form-status[data-state="err"] { color: var(--danger); }
.card { border: 1px solid var(--rule); border-radius: 14px; padding: clamp(20px, 3vw, 32px); background: var(--surface); box-shadow: var(--lift); }
.card h2 { font-size: var(--s2); }

/* Connection demo */
.race { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(18px, 2.6vw, 28px); min-width: 0; box-shadow: var(--lift), 0 0 0 1px rgba(90, 107, 255, 0.04); }
.race-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 22px; }
.race-title { font-size: var(--s-1); font-weight: 600; color: var(--muted); }
.nets { display: flex; flex-wrap: wrap; gap: 6px; }
.nets button {
  font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--muted); background: var(--surface-2); cursor: pointer;
  padding: 0.44em 0.85em 0.32em; border-radius: 999px; border: 1.5px solid var(--rule);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.nets button:hover { color: var(--ink); border-color: var(--rule-strong); }
.nets button[aria-pressed="true"] { background: var(--sign); border-color: var(--sign); color: var(--on-sign); }

.lanes { --name: 7.2rem; --state: 5.4rem; --gap: 12px; --wall: 0.56; position: relative; display: grid; gap: 12px; }
.lane, .ends { display: grid; grid-template-columns: var(--name) minmax(0, 1fr) var(--state); gap: var(--gap); align-items: center; }
.ends { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.ends > :last-child { text-align: right; }
.ends-track { position: relative; height: 1.3em; }
.net-label { position: absolute; left: calc(var(--wall) * 100%); transform: translateX(-50%); white-space: nowrap; color: var(--ink); }
.wall {
  position: absolute; top: 30px; bottom: -4px; width: 18px;
  left: calc(var(--name) + var(--gap) + (100% - var(--name) - var(--state) - 2 * var(--gap)) * var(--wall) - 9px);
  background: repeating-linear-gradient(135deg, var(--hatch) 0 4px, transparent 4px 8px);
  border-inline: 1px dashed var(--stop);
}
.lane-name { display: flex; align-items: baseline; gap: 6px; font-weight: 600; font-size: 0.95rem; white-space: nowrap; min-width: 0; }
.port { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; color: var(--muted); }
.track { position: relative; height: 18px; }
.track::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--ink); }
.line { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; width: 100%; background: var(--stop); border-radius: 2px; transition: width 0.3s ease; }
.is-blocked .line { width: calc(var(--wall) * 100% - 11px); }
.is-blocked .line::after { content: ""; position: absolute; right: -1px; top: -5px; width: 2px; height: 12px; background: var(--stop); }
.is-kept .line { height: 4px; margin-top: -2px; background: var(--go); width: calc(100% - 6px); box-shadow: 0 0 14px rgba(255, 125, 0, 0.45); }
.is-kept .line::after { content: ""; position: absolute; right: -8px; top: -4px; border-left: 9px solid var(--go); border-block: 6px solid transparent; }
.lane-state { font-size: 0.86rem; color: var(--muted); text-align: right; }
.is-kept .lane-state { color: var(--go-ink); font-weight: 800; font-family: var(--display); }
.is-blocked .lane-name { color: var(--muted); }
.pkt { position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--go); opacity: 0; }
.is-blocked .pkt { --to: calc(var(--wall) * 100% - 14px); background: var(--stop); }
.is-answered .pkt { --to: 100%; background: var(--stop); }
.is-kept .pkt { --to: 100%; box-shadow: 0 0 10px rgba(255, 125, 0, 0.8); }
.lanes.run .pkt { animation: pkt 1.1s cubic-bezier(.3, .6, .4, 1) forwards; }
.lanes.run .is-kept .pkt { animation-duration: 0.7s; }
.lanes.run .is-blocked .pkt { animation-duration: 0.55s; }
@keyframes pkt { 0% { left: 0; opacity: 1; } 85% { opacity: 1; } 100% { left: var(--to); opacity: 0; } }
.race-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.race-foot { margin-top: 6px; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 480px) {
  .lanes { --name: 5.7rem; --state: 4.4rem; --gap: 8px; gap: 10px; }
  .lane-name { font-size: 0.86rem; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; }
  .port { font-size: 0.66rem; }
  .lane-state { font-size: 0.8rem; }
}

/* What we never record */
.list-label { font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.nolist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.nolist li { display: flex; align-items: center; gap: 16px; padding: 18px 0 15px; border-bottom: 1px solid var(--rule); font-size: var(--s1); font-weight: 600; }
.nolist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: -3px; border-radius: 50%; border: 2px solid rgba(255, 92, 122, 0.6);
  background: linear-gradient(135deg, transparent calc(50% - 1px), rgba(255, 92, 122, 0.6) calc(50% - 1px), rgba(255, 92, 122, 0.6) calc(50% + 1px), transparent calc(50% + 1px));
}

/* Subpage header */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.page-head .wrap { display: grid; gap: 16px; }
.updated { font-size: var(--s-1); color: var(--muted); }
.notice { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-self: start; background: var(--wash); border: 1px solid var(--wash-rule); border-radius: 8px; padding: 10px 14px 8px; font-weight: 600; font-size: 0.95rem; }

/* Running text */
.prose { max-width: var(--measure); min-width: 0; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--s2); margin-top: 2.2em; scroll-margin-top: 86px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--muted); }
.prose ol[type="a"] li { padding-left: 0.3em; }
.page-body { padding-bottom: clamp(72px, 10vw, 128px); }
.after-table { margin-top: clamp(48px, 7vw, 72px); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.prose .table-wrap { margin-block: 1.2em 1.6em; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px 11px; border-bottom: 1px solid var(--rule); }
thead th { font-size: var(--s-1); font-weight: 600; color: var(--muted); border-bottom-color: var(--rule-strong); }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
table.wide { min-width: 40rem; }
.plans { font-size: 1rem; }
.plans thead th, .plans thead td { vertical-align: bottom; padding-top: 24px; padding-bottom: 18px; }
.plans thead th { color: var(--ink); }
.plans .plan { display: block; font-family: var(--display); font-size: var(--s1); font-weight: 800; }
.plans .price { display: block; font-family: var(--display); font-size: var(--s3); font-weight: 800; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.plans .per { display: block; font-size: var(--s-1); font-weight: 400; color: var(--muted); }
.plans tbody th { color: var(--muted); font-weight: 600; width: 30%; }
.plans .premium { background: var(--wash); }
.plans thead .premium { box-shadow: inset 0 4px 0 var(--go); }
.plans tfoot td { border-top: 1px solid var(--rule); padding-block: 16px; }
@media (max-width: 520px) { .plans { font-size: 0.9rem; } th, td { padding: 10px 10px 8px; } }

/* Rows: platforms, mailboxes */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows > li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 6px 24px; align-items: center; padding: 20px 0 18px; border-bottom: 1px solid var(--rule); }
.rows > li > * { min-width: 0; }
.row-title { font-family: var(--display); font-weight: 800; font-size: var(--s1); }
.row-sub { color: var(--muted); font-size: 0.95rem; }
.row-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 720px) { .rows > li { grid-template-columns: 1fr; } .row-act { justify-content: flex-start; } }
.chip { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--go-ink); background: var(--wash); border: 1px solid var(--wash-rule); padding: 0.28em 0.75em 0.16em; border-radius: 999px; }
.chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0 !important; font-weight: 600; font-size: 0.92rem; background: var(--surface-2); border: 1px solid var(--rule-strong); padding: 0.3em 0.75em 0.2em; border-radius: 6px; }
.chips li.more { border-style: dashed; color: var(--muted); }

/* Numbered steps (a real sequence) */
.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 18px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 14px; margin: 0 !important; }
.steps > li::before {
  content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; padding-top: 3px;
  border-radius: 50%; background: var(--sign); color: var(--on-sign); font-family: var(--display); font-weight: 800;
}
.steps p + p { margin-top: 0.4em; }

/* Legal documents with a contents rail */
.doc { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 86px; font-size: 0.9rem; max-height: calc(100vh - 40px); overflow-y: auto; }
.toc summary { font-weight: 600; cursor: pointer; padding: 10px 0; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 0 3px; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
@media (min-width: 901px) { .toc summary { display: none; } }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; border-block: 1px solid var(--rule); }
  .toc ol { padding-bottom: 10px; }
}

/* Footer */
.site-foot { border-top: 1px solid var(--rule); background: #080B16; padding-block: 56px 36px; font-size: 0.92rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h2 { font-size: 0.92rem; font-weight: 600; letter-spacing: 0; font-family: var(--font); color: var(--ink); margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-about { display: grid; gap: 14px; align-content: start; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* Scroll reveal (classes are added by site.js; without JS or under
   prefers-reduced-motion everything simply renders in place) */
.rv { opacity: 0; transform: translateY(16px); }
.rv.in { opacity: 1; transform: none; transition: opacity .65s cubic-bezier(.2, .6, .25, 1), transform .65s cubic-bezier(.2, .6, .25, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}
