/* UnnamedVPN -- shared styles (design handoff "Modernist", 2026-10).
   Ink means fine. Red means look. Radius 0 everywhere, hard offset shadows only
   on things that sit on top (sign-in card, dialogs, phone mockup), 2px rules
   between sections and 1px inside lists. Components use only the tokens below. */

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-divider: color-mix(in srgb, var(--color-text) 40%, transparent);
  --color-red-text: #ae1800;     /* red used as TEXT (backgrounds use accent-700) */
  --color-on-white: #7c1405;     /* dark red text on a white button */
  --color-shadow: #201e1d;       /* hard offset shadows */
  --color-strong: #201e1d;       /* "ink" blocks (selected tab, protected bar...) */
  --color-on-strong: #f3f2f2;
  --color-white: #fff;

  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-300: #ffc4b8;
  --color-accent-400: #ff9783;
  --color-accent-500: #ff563c;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  --shadow-hard: 10px 10px 0 var(--color-shadow);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);

  --page: 52rem;
}

/* ---------- dark theme: follows the device unless the header toggle picked one ---------- */
:root[data-theme="dark"] {
  --color-bg: #161514;
  --color-surface: #22201f;
  --color-text: #ecebe9;
  --color-accent: #ff4a2c;
  --color-red-text: #ff7a63;
  --color-on-white: #7c1405;
  --color-shadow: #3d3936;
  --color-strong: #3a3633;
  --color-on-strong: #f3f2f2;
  --color-neutral-100: #1b1a19;
  --color-neutral-200: #262423;
  --color-neutral-300: #34312f;
  --color-neutral-400: #4f4b48;
  --color-neutral-500: #726d6a;
  --color-neutral-600: #948f8c;
  --color-neutral-700: #b1aca9;
  --color-neutral-800: #cdc8c5;
  --color-neutral-900: #e4e0dd;
  --color-accent-100: #2c1611;
  --color-accent-200: #4a2018;
  --color-accent-300: #6e2b20;
  --color-accent-400: #a83a26;
  --color-accent-600: #ff6a50;
  --color-accent-700: #b8230c;
  --color-accent-800: #ffb3a3;
  --color-accent-900: #ffd3c9;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #161514;
    --color-surface: #22201f;
    --color-text: #ecebe9;
    --color-accent: #ff4a2c;
    --color-red-text: #ff7a63;
    --color-on-white: #7c1405;
    --color-shadow: #3d3936;
  --color-strong: #3a3633;
  --color-on-strong: #f3f2f2;
    --color-neutral-100: #1b1a19;
    --color-neutral-200: #262423;
    --color-neutral-300: #34312f;
    --color-neutral-400: #4f4b48;
    --color-neutral-500: #726d6a;
    --color-neutral-600: #948f8c;
    --color-neutral-700: #b1aca9;
    --color-neutral-800: #cdc8c5;
    --color-neutral-900: #e4e0dd;
    --color-accent-100: #2c1611;
    --color-accent-200: #4a2018;
    --color-accent-300: #6e2b20;
    --color-accent-400: #a83a26;
    --color-accent-600: #ff6a50;
    --color-accent-700: #b8230c;
    --color-accent-800: #ffb3a3;
    --color-accent-900: #ffd3c9;
    color-scheme: dark;
  }
}
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--color-divider); background: transparent; color: var(--color-text); cursor: pointer; }
.theme-toggle:hover { border-color: var(--color-text); }
.theme-toggle .i { width: 18px; height: 18px; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; font-weight: 400;
  overflow-x: clip;
}
body.page-landing { --page: 72rem; }
body.page-admin { --page: 76rem; }
body.page-dash { --page: 76rem; }
h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--color-red-text); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mono { font-family: var(--font-mono); }
.muted { color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.kicker { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.kicker.red { color: var(--color-red-text); }
.small { font-size: 13px; }
.error-text { color: var(--color-red-text); font-weight: 600; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: square; stroke-linejoin: miter; display: block; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 22px; height: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px;
  min-height: 44px; padding: 0 16px; cursor: pointer; text-decoration: none; text-align: left;
  font: inherit; font-weight: 800; font-size: 14px; line-height: 1.2;
  color: var(--color-text); background: transparent; border: 2px solid transparent; border-radius: 0;
  transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.btn:hover { color: var(--color-text); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-lg { min-height: 48px; font-size: 15px; padding: 0 18px; gap: 10px; }
.btn-xl { min-height: 52px; font-size: 16px; padding: 0 20px; gap: 12px; }
.btn-sm { min-height: 36px; font-size: 13px; padding: 0 10px; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border: 1px solid var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-outline { border-color: var(--color-text); }
.btn-outline:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-ink { background: var(--color-strong); color: var(--color-on-strong); }
.btn-ink:hover { background: var(--color-neutral-900); color: var(--color-bg); }
.btn-danger { background: var(--color-accent-700); color: var(--color-white); }
.btn-danger:hover { background: var(--color-on-white); color: var(--color-white); }
.btn-white { background: var(--color-white); color: var(--color-on-white); }
.btn-white:hover { background: var(--color-accent-100); color: var(--color-accent-900); }
.btn-ghost { padding-inline: 6px; border: 0; }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-ghost.red { color: var(--color-red-text); }
.btn-ghost.red:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); color: var(--color-accent-800); }
.btn-icon { width: 44px; padding: 0; justify-content: center; }
.btn.is-done { background: var(--color-strong); color: var(--color-on-strong); border-color: var(--color-text); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .field-label { font-size: 12px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.hint { font-size: 12px; color: var(--color-neutral-700); }
.input {
  width: 100%; min-height: 44px; padding: 6px 10px; font: inherit; font-size: 15px;
  color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: 0;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 110px; resize: vertical; }
select.input { cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--color-accent); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--color-divider); align-self: flex-start; }
.seg-opt {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 0 12px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* ---------- tags, chips ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 8px; white-space: nowrap; }
.tag-ink { background: var(--color-strong); color: var(--color-on-strong); }
.tag-warn { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-bad { background: var(--color-accent-700); color: var(--color-white); }
.tag-neutral { background: var(--color-neutral-300); color: var(--color-neutral-800); }
.tag-accent { background: var(--color-accent); color: var(--color-white); }
.tag-plain { background: transparent; color: var(--color-neutral-700); padding-inline: 0; }
.tag-caps { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left;
  color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-divider);
}
.chip:hover { background: var(--color-accent-100); border-color: var(--color-accent); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--color-strong); color: var(--color-on-strong); border-color: var(--color-text); }
.chip-strong { border: 2px solid var(--color-text); min-height: 44px; padding: 0 14px; font-size: 14px; }
.chip-strong:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); border-color: var(--color-text); }
.chip-filter { min-height: 36px; border: 1.5px solid var(--color-text); }
.chip-filter:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); border-color: var(--color-text); }

/* ---------- header / footer ---------- */
.site-header { border-bottom: 2px solid var(--color-divider); }
.header-inner, .footer-inner {
  width: 100%; max-width: var(--page); margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 8px; margin-right: auto; color: var(--color-text); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--color-text); }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo { width: 26px; height: 26px; flex: none; display: block; }
.lang-select { width: auto; min-height: 40px; font-size: 13px; background: transparent; padding-right: 6px; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.nav-link { font-weight: 800; font-size: 14px; color: var(--color-text); min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.nav-link:hover { color: var(--color-red-text); }
.avatar {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; padding: 0;
  background: var(--color-strong); color: var(--color-on-strong); font: inherit; font-weight: 800; font-size: 17px; cursor: pointer;
}
.avatar:hover { background: var(--color-accent-700); }
.admin-tag { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 3px 7px; border: 1.5px solid var(--color-text); }
main.page { flex: 1; width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 16px 48px; display: flex; flex-direction: column; }
.page-landing main.page { flex: none; } /* more sections follow it */
.site-footer { border-top: 2px solid var(--color-divider); }
.footer-inner { flex-wrap: wrap; gap: 8px 18px; font-size: 13px; padding-block: 16px; }
.footer-inner .push { margin-left: auto; }
.footer-inner button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--color-red-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- toast, skeleton, dialog ---------- */
.toast-wrap { position: fixed; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; z-index: 40; }
.toast {
  display: flex; gap: 10px; align-items: center; background: var(--color-strong); color: var(--color-on-strong);
  padding: 12px 16px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg);
  animation: pg-toast 200ms ease-out;
}
.toast .i { color: var(--color-accent-400); stroke-width: 2.6; }
.toast.bad { background: var(--color-accent-700); color: var(--color-white); }
.toast.bad .i { color: var(--color-white); }
@keyframes pg-toast { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pg-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes pg-spin { to { transform: rotate(360deg); } }
@keyframes pg-fill { from { width: 4%; } to { width: 92%; } }
@keyframes pg-travel { from { left: 0%; } to { left: 100%; } }
@keyframes pg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.skel { background: var(--color-surface); animation: pg-pulse 1.4s ease-in-out infinite; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; animation: pg-spin 0.8s linear infinite; }
.dialog-backdrop {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  display: flex; flex-direction: column; gap: 12px; padding: 20px;
  background: var(--color-bg); border: 3px solid var(--color-text); box-shadow: var(--shadow-hard);
}
.dialog-title { font-weight: 800; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.dialog-title.red { color: var(--color-red-text); }
.dialog-body { font-size: 14px; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.dialog-actions .left { margin-right: auto; }
.done-box { padding: 12px; background: var(--color-strong); color: var(--color-on-strong); font-weight: 600; }
.code-box { padding: 10px; background: var(--color-surface); font-family: var(--font-mono); font-size: 12px; word-break: break-all; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 10px; align-items: end; } /* inputs line up when a label wraps */

/* ---------- landing ---------- */
.landing-hero {
  padding: 32px 0 40px; display: grid; gap: 40px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.display { font-size: clamp(40px, 8vw, 72px); line-height: 0.98; letter-spacing: -0.035em; }
.lede { font-size: 18px; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; border-top: 2px solid var(--color-divider); }
.ticks li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--color-divider); font-weight: 600; }
.ticks .i { color: var(--color-accent); stroke-width: 2.6; width: 20px; height: 20px; }
.mock-wrap { position: relative; display: flex; justify-content: center; padding: 56px 0 52px; }
.grid-paper {
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, var(--color-neutral-300) 39px 41px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--color-neutral-300) 39px 41px);
}
.mock-wrap .grid-paper { position: absolute; inset: 0 8%; }
.phone {
  position: relative; width: min(280px, 78vw); display: flex; flex-direction: column;
  background: var(--color-bg); border: 3px solid var(--color-text); box-shadow: 12px 12px 0 var(--color-shadow);
}
.phone-bar { display: flex; justify-content: space-between; padding: 8px 14px; font-size: 11px; font-family: var(--font-mono); border-bottom: 2px solid var(--color-text); }
.phone-main { padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; transition: background 300ms, color 300ms; }
.phone[data-on="true"] .phone-main { background: var(--color-strong); color: var(--color-on-strong); }
.phone-title { font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -0.03em; }
.phone-toggle {
  width: 100%; height: 56px; padding: 4px; border: 2px solid currentColor; background: transparent;
  cursor: pointer; display: flex; justify-content: flex-start; color: inherit;
}
.phone[data-on="true"] .phone-toggle { justify-content: flex-end; }
.phone-knob { width: 50%; height: 100%; display: grid; place-items: center; font: inherit; font-weight: 800; font-size: 13px; background: var(--color-strong); color: var(--color-on-strong); }
.phone[data-on="true"] .phone-knob { background: var(--color-accent); color: var(--color-white); }
.phone-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--color-text); }
.phone-stats > div { padding: 12px 14px; }
.phone-stats > div + div { border-left: 2px solid var(--color-text); }
.phone-stats .k { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.phone-stats .v { font-weight: 800; font-size: 22px; }
.phone-meter { height: 8px; background: var(--color-neutral-300); }
.phone-meter span { display: block; height: 8px; width: 25.5%; background: var(--color-text); }
.phone-ip { padding: 10px 14px; font-size: 11px; font-family: var(--font-mono); }
.float-label { position: absolute; padding: 8px 12px; font-weight: 800; font-size: 13px; animation: pg-float 4s ease-in-out infinite; }
.float-label.a { top: 10px; left: 2%; background: var(--color-accent); color: var(--color-white); }
.float-label.b { bottom: 6px; right: 2%; background: var(--color-strong); color: var(--color-on-strong); animation-delay: 1.2s; }
.devices-strip { border-top: 2px solid var(--color-text); border-bottom: 2px solid var(--color-text); }
.devices-strip ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--page); display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.devices-strip li { padding: 16px; border-right: 1px solid var(--color-divider); display: flex; flex-direction: column; gap: 2px; }
.devices-strip strong { font-size: 17px; }
.big-numbers { padding-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.big-numbers > div { padding: 8px 16px 16px 0; border-top: 6px solid var(--color-text); font-weight: 600; }
.big-numbers > div:first-child { border-top-color: var(--color-accent); }
.big-numbers strong { display: block; font-weight: 800; font-size: 72px; line-height: 1; letter-spacing: -0.04em; }
.l-section { padding-top: 56px; }
.l-section h2 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.03em; }
.l-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 2px solid var(--color-divider); padding-bottom: 12px; }
.pipe-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.pipe-cards > div { padding: 16px; background: var(--color-surface); transition: background 300ms; }
.pipe-cards .v { margin-top: 6px; }
.pipe-cards .sees { font-family: var(--font-mono); font-size: 14px; }
.pipe-cards .result { font-weight: 600; font-size: 16px; }
.pipe-cards .res[data-on="true"] { background: var(--color-strong); color: var(--color-on-strong); }
.pipe-cards .res[data-on="false"] { background: var(--color-accent-100); color: var(--color-accent-900); }
.bento { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.bento > div { min-height: 220px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; max-width: 100%; }
.bento .wide { flex: 2 1 460px; }
.bento .narrow { flex: 1 1 220px; }
.bento .red { background: var(--color-accent); color: var(--color-white); }
.bento .grey { background: var(--color-surface); }
.bento .ink { background: var(--color-strong); color: var(--color-on-strong); }
.bento .outline { border: 3px solid var(--color-text); }
.bento h3 { margin-bottom: 4px; }
.bento .red h3 { font-size: 28px; margin-bottom: 6px; }
.bento p { font-size: 14px; max-width: 30rem; }
.bento .red p { font-size: 15px; }
.bento .ink p { opacity: 0.85; }
.bento .big { font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.04em; }
.bento .i { width: 32px; height: 32px; }
.bento .red .i { width: 40px; height: 40px; }
.l-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.cta-band { margin-top: 64px; background: var(--color-accent); color: var(--color-white); }
.cta-band .inner { max-width: var(--page); margin: 0 auto; padding: 48px 16px; display: flex; flex-direction: column; gap: 20px; }
.cta-band .band { font-weight: 800; font-size: clamp(40px, 9vw, 96px); line-height: 0.95; letter-spacing: -0.04em; max-width: 14ch; }
.cta-band .btn { min-height: 56px; font-size: 17px; padding: 0 22px; align-self: flex-start; }

/* ---------- accordion (FAQ) ---------- */
.acc { border-top: 2px solid var(--color-text); }
.acc.plain { border-top: 0; }
.acc-item { border-bottom: 1px solid var(--color-divider); }
.acc-btn {
  width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 10px 0;
  background: none; border: 0; font: inherit; font-weight: 600; font-size: 15px; color: var(--color-text); text-align: left; cursor: pointer;
}
.acc-btn .n { font-family: var(--font-mono); font-size: 12px; color: var(--color-red-text); flex: none; }
.acc-btn .q { flex: 1; text-wrap: pretty; }
.acc-btn .sign { font-size: 22px; font-weight: 400; width: 20px; flex: none; text-align: center; }
.acc-btn .sign::before { content: "+"; }
.acc-btn[aria-expanded="true"] .sign::before { content: "\2212"; }
.acc-panel { margin: 0 0 14px; font-size: 14px; max-width: 38rem; }
.acc.numbered .acc-panel { margin-left: 32px; }
.l-faq .acc-btn { min-height: 56px; font-size: 16px; }
.l-faq .acc-panel { font-size: 15px; margin-bottom: 16px; }

/* ---------- sign in ---------- */
body.page-auth { background:
  repeating-linear-gradient(0deg, transparent 0 47px, var(--color-neutral-300) 47px 48px),
  repeating-linear-gradient(90deg, transparent 0 47px, var(--color-neutral-300) 47px 48px), var(--color-bg); }
body.page-auth .site-header { border-bottom: 0; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 16px 16px 48px; }
.auth-card { width: 100%; max-width: 26rem; background: var(--color-bg); border: 3px solid var(--color-text); box-shadow: var(--shadow-hard); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 3px solid var(--color-text); }
.auth-tabs button { min-height: 52px; font: inherit; font-weight: 800; font-size: 14px; border: 0; cursor: pointer; text-align: left; padding: 0 16px; background: transparent; color: var(--color-text); }
.auth-tabs button[aria-selected="true"] { background: var(--color-strong); color: var(--color-on-strong); }
.auth-body { padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.auth-body h1 { font-size: 30px; }
.widget { position: relative; border: 1px dashed var(--color-neutral-500); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 120px; }
.widget-label { position: absolute; top: -9px; left: 10px; background: var(--color-bg); padding: 0 6px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); }
.widget-skel { display: flex; flex-direction: column; gap: 10px; }
.widget-skel .s { background: var(--color-neutral-300); animation: pg-pulse 1.2s infinite; }
#clerk-mount { width: 100%; }
#clerk-mount .cl-rootBox, #clerk-mount .cl-cardBox, #clerk-mount .cl-card { width: 100%; max-width: 100%; }

/* ---------- dashboard ---------- */
.announce { margin-top: 16px; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-left: 6px solid var(--color-text); background: var(--color-neutral-200); color: var(--color-text); }
.announce[data-level="warning"] { background: var(--color-accent-100); color: var(--color-accent-900); border-left-color: var(--color-accent); }
.announce[data-level="critical"] { background: var(--color-accent-700); color: var(--color-white); border-left-color: var(--color-accent-900); }
.announce .i { margin-top: 1px; width: 22px; height: 22px; }
.announce-body { flex: 1; min-width: 0; }
.announce-text { font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.announce .btn-icon { color: inherit; margin: -10px -10px 0 0; }

.protect { margin-top: 16px; padding: 14px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; transition: background 300ms; background: var(--color-surface); color: var(--color-text); }
.protect[data-state="ok"] { background: var(--color-strong); color: var(--color-on-strong); }
.protect[data-state="no"] { background: var(--color-accent-700); color: var(--color-white); }
.protect[data-state="unknown"] { background: var(--color-neutral-200); }
.protect-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 2px solid currentColor; font-weight: 800; font-size: 20px; }
.protect-icon .i { width: 22px; height: 22px; stroke-width: 2.2; }
.protect-copy { flex: 1 1 200px; min-width: 0; }
.protect-title { font-weight: 800; font-size: 17px; line-height: 1.25; }
.protect-sub { font-size: 13px; opacity: 0.85; }
.protect-ip { font-size: 12px; line-height: 1.3; }
.protect-ip .mono { font-size: 14px; }
.protect-btn { min-height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 8px; background: transparent; color: inherit; border: 2px solid currentColor; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.protect-btn:disabled { opacity: 0.6; cursor: default; }

.loading-block { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.loading-block .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.setting-up { margin-top: 16px; padding: 28px 20px; background: var(--color-surface); display: flex; flex-direction: column; gap: 14px; }
.setting-up .bar { height: 8px; background: var(--color-neutral-300); }
.setting-up .bar span { display: block; height: 8px; background: var(--color-accent); animation: pg-fill 6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }

.hero {
  --tone-bg: var(--color-surface); --tone-fg: var(--color-text); --tone-ring: var(--color-text); --tone-track: var(--color-neutral-300);
  --tone-btn-bg: var(--color-text); --tone-btn-fg: var(--color-bg);
  margin-top: 16px; padding: 22px 20px; display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center;
  background: var(--tone-bg); color: var(--tone-fg); transition: background 300ms, color 300ms;
}
.hero[data-tone="warn"] { --tone-bg: var(--color-accent-100); --tone-fg: var(--color-accent-900); --tone-ring: var(--color-accent); --tone-track: var(--color-accent-200); --tone-btn-bg: var(--color-accent); --tone-btn-fg: var(--color-bg); }
.hero[data-tone="bad"] { --tone-bg: var(--color-accent-700); --tone-fg: var(--color-white); --tone-ring: var(--color-white); --tone-track: var(--color-on-white); --tone-btn-bg: var(--color-white); --tone-btn-fg: var(--color-on-white); }
.hero[data-tone="calm"] { --tone-bg: var(--color-neutral-200); --tone-ring: var(--color-neutral-600); }
.hero-visual:empty { display: none; }
.ring { position: relative; width: 148px; height: 148px; flex: none; }
.ring svg { width: 148px; height: 148px; display: block; }
.ring .track { fill: none; stroke: var(--tone-track); stroke-width: 12; }
.ring .arc { fill: none; stroke: var(--tone-ring); stroke-width: 12; transition: stroke-dashoffset 800ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; text-align: center; }
.ring-center strong { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.ring-center span { font-size: 12px; }
.waiting-art { width: 148px; height: 148px; flex: none; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 4px; }
.waiting-art .you { background: var(--color-strong); grid-column: 1/3; grid-row: 1/3; display: grid; place-items: center; color: var(--color-on-strong); font-weight: 800; font-size: 22px; }
.waiting-art .d1 { border: 2px dashed var(--color-neutral-600); grid-column: 3/5; grid-row: 1/2; }
.waiting-art .d2 { border: 2px dashed var(--color-neutral-600); grid-column: 3/4; grid-row: 2/4; }
.waiting-art .g1 { background: var(--color-neutral-400); grid-column: 1/3; grid-row: 3/5; }
.waiting-art .mail { background: var(--color-accent); grid-column: 4/5; grid-row: 2/5; display: grid; place-items: center; color: var(--color-bg); }
.waiting-art .g2 { background: var(--color-neutral-300); grid-column: 3/4; grid-row: 4/5; }
.error-art { width: 148px; height: 148px; flex: none; display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; }
.error-art .a { height: 64px; background: var(--color-strong); }
.error-art .b { height: 6px; background: repeating-linear-gradient(90deg, var(--color-accent) 0 5px, transparent 5px 9px); }
.error-art .c { height: 64px; border: 3px solid var(--color-text); display: grid; place-items: center; font-weight: 800; font-size: 28px; color: var(--color-accent); }
.hero-body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-body .kicker { opacity: 0.85; }
.hero-text { font-size: 15px; max-width: 32rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-chips:empty { display: none; }
.hero-chip { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 10px; min-height: 32px; cursor: pointer; color: inherit; background: transparent; border: 1.5px solid currentColor; display: flex; gap: 6px; align-items: center; }
.hero-chip .dot { width: 8px; height: 8px; background: currentColor; }
.hero-chip .dot.red { background: var(--color-accent); }
.hero[data-tone="bad"] .hero-chip .dot.red { background: var(--color-white); }
.hero-cta { margin-top: 4px; min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; border: 0; background: var(--tone-btn-bg); color: var(--tone-btn-fg); align-self: flex-start; }
.whoami { font-size: 12px; opacity: 0.75; overflow-wrap: anywhere; }

.stats { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.stat { padding: 18px; background: var(--color-surface); display: flex; flex-direction: column; gap: 8px; }
.stat-value { font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.stat-value small { font-size: 18px; letter-spacing: 0; }
.stat-value.wordy { font-size: 28px; }
.meter { height: 10px; background: var(--color-neutral-300); }
.meter > span { display: block; height: 10px; background: var(--color-text); transition: width 800ms; }
.meter.warn > span { background: var(--color-accent); }
.stat .line { font-size: 13px; }
.stat .btn-ghost { align-self: flex-start; margin-left: -4px; color: var(--color-red-text); }

.d-section { margin-top: 36px; border-top: 2px solid var(--color-divider); padding-top: 16px; }
.d-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; }
.chart-readout { margin: 10px 0 8px; min-height: 22px; font-size: 14px; font-weight: 600; }
.bars { height: 150px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; align-items: end; border-bottom: 2px solid var(--color-text); }
.bars.sm { height: 140px; gap: 2px; }
.bars .bar { height: 3%; background: var(--color-neutral-400); border: 0; padding: 0; cursor: pointer; min-width: 0; transition: background 150ms; }
.bars .bar.today { background: var(--color-accent); }
.bars .bar.on { background: var(--color-text); }
.bars .bar.today.on { background: var(--color-accent-700); }
.chart-axis { display: flex; justify-content: space-between; font-size: 11px; margin-top: 4px; font-family: var(--font-mono); color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.chart-axis .today { color: var(--color-red-text); }
.chart-summary { margin-top: 12px; font-size: 14px; }

.device-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rec-app { margin-top: 6px; font-size: 13px; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px 0; border-top: 2px solid var(--color-text); }
.step:last-child { border-bottom: 2px solid var(--color-text); }
.step-num { font-weight: 800; font-size: 40px; line-height: 0.9; color: var(--color-accent); }
.step-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.step-body > p { font-size: 14px; }
.step-body > .btn { align-self: flex-start; }
.alt-link { font-size: 14px; align-self: flex-start; padding: 6px 0; }
.note-box { font-size: 13px; padding: 10px 12px; background: var(--color-surface); border-left: 4px solid var(--color-text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-panel { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 14px; background: var(--color-surface); }
.qr-box { width: 120px; height: 120px; flex: none; background: var(--color-white); line-height: 0; display: grid; place-items: center; }
.qr-box svg { width: 120px; height: 120px; display: block; }
.qr-box.empty { font-size: 12px; line-height: 1.3; padding: 8px; text-align: center; color: var(--color-neutral-700); }
.qr-copy { flex: 1 1 160px; display: flex; flex-direction: column; gap: 6px; }
.qr-copy .btn-ghost { align-self: flex-start; margin-left: -4px; color: var(--color-red-text); }
.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bullets li { display: flex; gap: 10px; font-size: 14px; }
.bullets li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; background: var(--color-strong); }
.adv { margin-top: 12px; }
.adv-btn { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; background: transparent; border: 0; border-bottom: 1px solid var(--color-divider); font: inherit; font-weight: 600; font-size: 15px; color: var(--color-text); cursor: pointer; padding: 0; text-align: left; }
.adv-btn .i { width: 20px; height: 20px; transition: transform 200ms; }
.adv-btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.adv-panel { padding: 14px 0; display: flex; flex-direction: column; gap: 14px; }
.adv-panel > p { font-size: 13px; }
.secret-row { display: flex; gap: 6px; align-items: stretch; }
.secret-val { flex: 1; min-width: 0; padding: 10px; background: var(--color-surface); font-family: var(--font-mono); font-size: 12px; word-break: break-all; transition: filter 200ms; }
.adv-panel.is-hidden .secret-val { filter: blur(5px); user-select: none; }
.secret-row .btn-icon { height: auto; min-height: 44px; }

.compose { display: flex; flex-direction: column; gap: 12px; }
.compose > .btn { align-self: flex-start; }
.thread { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--color-surface); }
.msg { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.msg.mine { align-items: flex-end; }
.msg-meta { font-size: 11px; display: flex; gap: 6px; align-items: center; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.bubble { max-width: 85%; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--color-bg); color: var(--color-text); border: 2px solid var(--color-text); }
.msg.mine .bubble { background: var(--color-strong); color: var(--color-on-strong); border: 0; }
.msg-waiting { font-size: 12px; font-style: italic; color: color-mix(in srgb, var(--color-text) 60%, transparent); }

/* ---------- admin ---------- */
.admin-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); border-top: 2px solid var(--color-text); border-left: 1px solid var(--color-divider); }
.admin-stats > div { padding: 12px 14px; border-right: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.admin-stats dd, .admin-stats .n { margin: 0; font-weight: 800; font-size: 36px; line-height: 1.1; letter-spacing: -0.03em; }
.admin-stats .n.red { color: var(--color-accent); }
.admin-stats dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.tabs { margin-top: 24px; display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--color-text); } /* wraps on phones: no hidden tabs */
.tabs button { min-height: 48px; padding: 0 16px; display: flex; gap: 8px; align-items: center; border: 0; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; white-space: nowrap; background: transparent; color: var(--color-text); }
.tabs button[aria-selected="true"] { background: var(--color-strong); color: var(--color-on-strong); }
.tabs .count { background: var(--color-accent); color: var(--color-white); font-size: 11px; padding: 1px 6px; }
@media (max-width: 480px) { .tabs button { padding: 0 12px; font-size: 14px; } }
.tab-hint { margin: 12px 0 16px; font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search { position: relative; flex: 1 1 240px; }
.search .input { padding-right: 36px; }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--color-divider); padding: 0 6px; }
.toolbar select.input { width: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.empty { padding: 24px; background: var(--color-surface); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 12px; }
.cards.servers { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ucard { background: var(--color-surface); display: flex; flex-direction: column; }
.ucard.is-disabled { opacity: 0.7; }
.ucard-head { display: flex; gap: 12px; align-items: center; padding: 14px; border-bottom: 2px solid var(--color-bg); }
.ucard .ava { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--color-strong); color: var(--color-on-strong); font-weight: 800; font-size: 17px; }
.ucard-email { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.conn { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border-bottom: 2px solid var(--color-bg); }
.conn-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.conn-top .mono { font-size: 13px; }
.conn-top .tag { margin-left: auto; }
.conn .meter { height: 8px; }
.conn .meter > span { height: 8px; }
.conn .meter.off > span { background: var(--color-neutral-500); }
.conn-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; font-size: 12px; }
.conn-line .mono { font-size: 12px; }
.acts { display: flex; flex-wrap: wrap; gap: 4px; }
.ucard-none { padding: 12px 14px; font-size: 13px; border-bottom: 2px solid var(--color-bg); }
.ucard-foot { padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.ucard-foot .push { margin-left: auto; }
.scard { background: var(--color-surface); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.scard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.scard-head strong { font-size: 22px; font-weight: 800; }
.scard dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.scard dd { margin: 0; overflow-wrap: anywhere; }
.scard .acts { border-top: 1px solid var(--color-divider); padding-top: 10px; }
.scard .acts .push { margin-left: auto; }
.scard .check-out { font-size: 13px; }
.inbox { display: flex; flex-direction: column; gap: 12px; max-width: 52rem; }
.imsg { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--color-surface); border-left: 6px solid var(--color-neutral-400); }
.imsg.unread { background: var(--color-accent-100); border-left-color: var(--color-accent); }
.imsg-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.imsg-top strong { overflow-wrap: anywhere; }
.imsg-top .when { margin-left: auto; font-size: 12px; }
.imsg-text { font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.imsg-reply { padding: 8px 12px; border-left: 3px solid var(--color-neutral-500); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.imsg-reply .muted { font-size: 11px; display: block; }
.reply-row { display: flex; gap: 6px; align-items: stretch; }
.reply-row .input { flex: 1; background: var(--color-bg); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 60%, transparent); padding: 8px; border-bottom: 2px solid var(--color-divider); white-space: nowrap; }
.table td { padding: 8px; border-bottom: 1px solid var(--color-divider); vertical-align: top; overflow-wrap: anywhere; }
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.table .mono { font-size: 12px; white-space: nowrap; }
.table .strong { font-weight: 600; }
.bill-summary { margin-bottom: 16px; }
.bill-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.bill-head .push { margin-left: auto; }
.bill-h3 { font-size: 18px; margin: 28px 0 8px; }
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.preset { min-height: 56px; padding: 8px 10px; text-align: left; font: inherit; cursor: pointer; border: 2px solid var(--color-text); background: transparent; color: var(--color-text); }
.preset[aria-pressed="true"] { background: var(--color-strong); color: var(--color-on-strong); }
.preset strong { display: block; font-size: 15px; }
.preset span { font-size: 12px; }
.ann-status { padding: 10px 12px; font-size: 13px; background: var(--color-surface); }
.ann-status.live { background: var(--color-accent-100); color: var(--color-accent-900); }

@media (max-width: 560px) {
  h1 { font-size: 30px; }
  .hero { padding: 18px 16px; }
  .ring { margin: 0 auto; }
  .step { grid-template-columns: 36px 1fr; gap: 10px; }
  .step-num { font-size: 32px; }
  .devices-strip li { border-bottom: 1px solid var(--color-divider); }
}
/* ---------- "What does a VPN do?" diagram ---------- */
.vpn-diagram { display: grid; grid-template-columns: 104px minmax(0, 1fr) 104px; align-items: center; padding: 64px 0 40px; }
.vd-node { height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 14px; position: relative; z-index: 2; }
.vd-node .i { width: 30px; height: 30px; }
.vd-node.you { background: var(--color-strong); color: var(--color-on-strong); }
.vd-node.net { border: 3px solid var(--color-text); background: var(--color-bg); }
.vd-track { position: relative; height: 104px; }
.vd-line { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--color-text); }
.vd-tunnel {
  position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; background: var(--color-accent);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.18), inset 0 -6px 0 rgba(0, 0, 0, 0.16);
  transform-origin: left center; transition: transform 500ms ease, opacity 300ms;
}
.vd-lock {
  position: absolute; left: 22%; top: 50%; transform: translate(-50%, -54px); z-index: 3;
  display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 4px 10px;
  font-size: 12px; font-weight: 800; background: var(--color-strong); color: var(--color-on-strong); transition: opacity 300ms;
}
.vd-pkt { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin-top: -6px; background: var(--color-white); z-index: 1; animation: vd-move 2.4s linear infinite; animation-delay: var(--d); }
.vd-leak {
  position: absolute; top: 50%; left: 0; z-index: 1; transform: translateY(-50%); white-space: nowrap;
  padding: 3px 8px; font: 600 12px var(--font-mono); background: var(--color-accent-100); color: var(--color-accent-900);
  border: 1.5px solid var(--color-accent); animation: vd-move 3.6s linear infinite; animation-delay: var(--d);
}
@keyframes vd-move { from { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } to { left: calc(100% - 12px); opacity: 0; } }
.vd-wifi { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; flex-direction: column; align-items: center; }
.vd-wifi-icon { width: 60px; height: 60px; display: grid; place-items: center; background: var(--color-bg); border: 3px solid var(--color-text); }
.vd-wifi-icon .i { width: 28px; height: 28px; }
.vd-wifi-label { position: absolute; top: calc(100% + 6px); font-size: 12px; font-weight: 800; }
.vd-badge {
  position: absolute; bottom: calc(100% + 10px); display: flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 5px 10px; font-size: 12px; font-weight: 800; background: var(--color-surface); border: 2px solid var(--color-text);
  transition: background 300ms, color 300ms, border-color 300ms;
}
.vpn-diagram[data-on="true"] .vd-leak { display: none; }
.vpn-diagram[data-on="false"] .vd-pkt { display: none; }
.vpn-diagram[data-on="false"] .vd-tunnel { transform: scaleX(0); opacity: 0; }
.vpn-diagram[data-on="false"] .vd-lock { opacity: 0; }
.vpn-diagram[data-on="false"] .vd-badge { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-white); }
.vpn-diagram[data-on="false"] .vd-wifi-icon { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- dashboard layout: two columns on wide screens ---------- */
.dash-tabs { margin-top: 16px; display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--color-text); }
.dash-tabs button { min-height: 48px; padding: 0 18px; border: 0; background: transparent; color: var(--color-text); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.dash-tabs button[aria-selected="true"] { background: var(--color-strong); color: var(--color-on-strong); }
.dash-layout { display: block; }
@media (min-width: 1040px) {
  .dash-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 32px; align-items: start; }
  .dash-side { position: sticky; top: 16px; }
  .dash-side > .d-section:first-child { margin-top: 12px; }
}

/* ---------- setup guide (one step at a time) ---------- */
.progress { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.prog-btn {
  width: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; text-align: left;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--color-text);
  background: var(--color-surface); border: 0; border-top: 4px solid var(--color-neutral-400);
}
.prog-num { flex: none; width: 26px; height: 26px; display: grid; place-items: center; font-weight: 800; background: var(--color-bg); }
.progress .on .prog-btn { border-top-color: var(--color-accent); background: var(--color-accent-100); font-weight: 800; }
.progress .on .prog-num { background: var(--color-accent); color: var(--color-white); }
.progress .done .prog-btn { border-top-color: var(--color-text); }
.progress .done .prog-num { background: var(--color-strong); color: var(--color-on-strong); }
.step-panel { margin-top: 12px; padding: 20px; border: 3px solid var(--color-text); box-shadow: 8px 8px 0 var(--color-shadow); display: flex; flex-direction: column; gap: 14px; }
.step-title { font-size: 24px; outline: none; }
.howto { margin: 0; padding: 0; list-style: none; counter-reset: how; display: flex; flex-direction: column; gap: 10px; }
.howto li { counter-increment: how; position: relative; padding-left: 38px; min-height: 28px; font-size: 15px; line-height: 1.7; }
.howto li > .btn { display: inline-flex; vertical-align: middle; margin-left: 6px; min-height: 30px; }
.howto li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--color-strong); color: var(--color-on-strong); }
.howto strong { font-weight: 800; background: var(--color-surface); padding: 0 4px; }
.step-actions .btn { align-self: flex-start; }
.step-nav { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--color-divider); padding-top: 12px; }
.step-nav .push { margin-left: auto; }
.check-result:empty { display: none; }
.check-result { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 600; }
.check-result.ok { background: var(--color-strong); color: var(--color-on-strong); }
.check-result.no { background: var(--color-accent-700); color: var(--color-white); }
.check-result.unknown, .check-result.checking { background: var(--color-surface); }
.qr-details { border-top: 1px solid var(--color-divider); padding-top: 10px; }
.qr-details summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.qr-details[open] summary { margin-bottom: 8px; }

/* ---------- plan tab + pricing ---------- */
.plan-pane { margin-top: 20px; }
.plan-layout { display: grid; gap: 24px; }
@media (min-width: 1040px) { .plan-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; } }
.plan-buy h2, .side-card h2 { font-size: 22px; margin-bottom: 6px; }
.plan-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { padding: 16px; background: var(--color-surface); }
.plan-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.plan-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 3px solid var(--color-text); background: var(--color-bg); transition: box-shadow 200ms, transform 200ms; }
.plan-card:hover, .plan-card.picked { box-shadow: 8px 8px 0 var(--color-shadow); transform: translate(-2px, -2px); }
.plan-card.picked { border-color: var(--color-accent); box-shadow: 8px 8px 0 var(--color-accent); }
.plan-name { font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.plan-price { font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.03em; color: var(--color-accent); }
.plan-price small { font-size: 14px; font-weight: 600; color: var(--color-neutral-700); letter-spacing: 0; }
.plan-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; flex: 1; }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; }
.plan-feats .i { color: var(--color-accent); flex: none; margin-top: 3px; }
.plan-card .btn { align-self: stretch; justify-content: center; }
.pay-how { margin-top: 16px; padding: 20px; border: 3px solid var(--color-accent); background: var(--color-accent-100); display: flex; flex-direction: column; gap: 14px; }
.pay-how h3 { font-size: 20px; }
.pay-how .howto strong { background: var(--color-bg); }
.pay-how > .btn { align-self: flex-start; }
.note-box.done { border-left-color: var(--color-accent); background: var(--color-bg); }
.plan-status { display: flex; flex-direction: column; gap: 4px; }
.plan-status-name { font-weight: 800; font-size: 26px; }
.plan-status .line.strong { font-weight: 800; }
.plan-next { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--color-divider); font-size: 14px; font-weight: 600; }
.cash-box { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pay-list { list-style: none; margin: 0; padding: 0; }
.pay-list li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--color-divider); font-size: 13px; }
.pricing-hero { padding: 40px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pricing-how { padding: 20px; background: var(--color-strong); color: var(--color-on-strong); display: flex; flex-direction: column; gap: 12px; }
.pricing-how h2 { font-size: 22px; }
.pricing-how .howto li::before { background: var(--color-accent); color: var(--color-white); }
.pricing-note { margin-top: 14px; }

.bill-settings { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; margin-bottom: 12px; background: var(--color-surface); font-size: 14px; }
.bill-settings > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.bill-h3-row { display: flex; align-items: center; gap: 10px; }
.bill-h3-row .bill-h3 { margin-right: auto; }
.bill-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 8px; }
.bill-plan { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 12px 14px; border: 2px solid var(--color-text); }
.bill-plan.off { opacity: 0.6; border-style: dashed; }
.plan-rows { display: flex; flex-direction: column; gap: 10px; }
.plan-row { display: grid; grid-template-columns: 90px 1fr 120px 110px auto auto; gap: 8px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--color-divider); }
@media (max-width: 720px) { .plan-row { grid-template-columns: 1fr 1fr; } }

/* ---------- header account button (Clerk UserButton) ---------- */
.user-btn { display: flex; align-items: center; min-width: 36px; min-height: 36px; }

@media (max-width: 560px) {
  .vpn-diagram { grid-template-columns: 64px minmax(0, 1fr) 64px; padding-top: 72px; }
  .vd-node { height: 64px; font-size: 12px; }
  .vd-node .i { width: 22px; height: 22px; }
  .vd-track { height: 64px; }
  .vd-tunnel { height: 32px; margin-top: -16px; }
  .vd-wifi-icon { width: 46px; height: 46px; }
  .vd-lock { display: none; }
  .vd-badge { font-size: 11px; }
  .progress { grid-template-columns: 1fr; }
  .prog-btn { min-height: 44px; }
  .step-panel { padding: 16px; box-shadow: 5px 5px 0 var(--color-shadow); }
  .pay-list li { grid-template-columns: 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
