/* MinVPN semantic tokens: brand accents never substitute for security/status labels. */
:root {
  color-scheme: light;
  --bg: #edf0f2;
  --panel: #fafbfc;
  --surface-raised: #f4f7f8;
  --text: #243440;
  --muted: #52616e;
  --accent: #006b76;
  --secondary: #426788;
  --on-accent: #fafbfc;
  --accent-hover: #00545e;
  --soft: #e1edee;
  --line: #cbd5db;
  --control-border: #788c99;
  --hover: #e2e9ed;
  --ok: #176747;
  --warn: #805714;
  --danger: #a12635;
  --info: #285b89;
  --error-bg: #fbede8;
  --error-border: #b84924;
  --error-text: #713b2c;
  --focus: #006b76;
  --badge-bg: #f0f4f6;
  --disabled-bg: #e0e5e8;
  --disabled-text: #52616e;
  --backdrop: rgb(13 25 35 / 55%);
  --shadow: 0 12px 40px rgb(24 44 58 / 14%);
  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --font-body:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-small: 0.875rem;
  --text-body: 1rem;
  --text-title: clamp(1.85rem, 3.5vw, 2.6rem);
  font: 16px/1.55 var(--font-body);
}
/* Explicit profiles are set before CSS loads. System resolves to light/dark in the bootstrap. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171d26;
  --panel: #232c38;
  --surface-raised: #2a3542;
  --text: #e2e9ef;
  --muted: #b2c0cd;
  --accent: #78c6ce;
  --secondary: #98b6da;
  --on-accent: #15272e;
  --accent-hover: #9edce1;
  --soft: #2b4148;
  --line: #465463;
  --control-border: #8596a6;
  --hover: #354554;
  --ok: #91d4b2;
  --warn: #e7c17c;
  --danger: #ffb2bd;
  --info: #a4c7ee;
  --error-bg: #422d35;
  --error-border: #e4a4ac;
  --error-text: #ffd9df;
  --focus: #a4e8ef;
  --badge-bg: #2a3542;
  --disabled-bg: #36404b;
  --disabled-text: #b4bdc6;
  --backdrop: rgb(7 14 22 / 72%);
  --shadow: 0 12px 40px rgb(5 11 17 / 40%);
}
:root[data-theme="forest"] {
  color-scheme: dark;
  --bg: #202a24;
  --panel: #2c3830;
  --surface-raised: #344339;
  --text: #e6ece2;
  --muted: #bbc9b7;
  --accent: #a8c699;
  --secondary: #d4a36a;
  --on-accent: #203021;
  --accent-hover: #c4d8b9;
  --soft: #3c4c3c;
  --line: #53634f;
  --control-border: #92a58a;
  --hover: #405140;
  --ok: #b5dcb6;
  --warn: #efca8b;
  --danger: #ffb7b5;
  --info: #b6d0e6;
  --error-bg: #49332f;
  --error-border: #e3a69e;
  --error-text: #ffdcda;
  --focus: #efd19b;
  --badge-bg: #344339;
  --disabled-bg: #3e4b3e;
  --disabled-text: #bfccbb;
  --backdrop: rgb(12 20 15 / 72%);
  --shadow: 0 12px 40px rgb(8 18 10 / 40%);
}
:root[data-theme="ocean"] {
  color-scheme: light;
  --bg: #e9eef3;
  --panel: #f8fafc;
  --surface-raised: #edf3f8;
  --text: #20384d;
  --muted: #4e6478;
  --accent: #285b89;
  --secondary: #945832;
  --on-accent: #f8fafc;
  --accent-hover: #20496e;
  --soft: #dfeaf4;
  --line: #c4d2df;
  --control-border: #768da1;
  --hover: #dbe7f0;
  --ok: #176747;
  --warn: #785011;
  --danger: #a12635;
  --info: #285b89;
  --error-bg: #faeee9;
  --error-border: #b34a2b;
  --error-text: #713b2c;
  --focus: #285b89;
  --badge-bg: #eaf0f6;
  --disabled-bg: #dce4ec;
  --disabled-text: #4e6478;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  background: var(--disabled-bg);
  color: var(--disabled-text);
  border-color: var(--control-border);
}
button,
.btn {
  border: 1px solid var(--control-border);
  background: var(--panel);
  color: var(--text);
  padding: 10px 15px;
  border-radius: 9px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 44px;
}
button:hover,
.btn:hover {
  background: var(--hover);
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.primary:hover {
  background: var(--accent-hover);
}
input:not([type="checkbox"]),
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--panel);
  color: var(--text);
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  min-width: 0;
}
legend {
  font-weight: 700;
  padding: 0 6px;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin-bottom: 10px;
}
h2 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.1rem;
}
h4 {
  font-size: 1rem;
}
.muted,
.subnote,
.lead,
.status-note {
  color: var(--muted);
}
.subnote {
  font-size: 0.88rem;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 10px;
}
.shell {
  max-width: 1520px;
  margin: auto;
  padding: 0 28px;
}

/* One site shell, shared by every public page and the workspace. */
[hidden],
.hidden {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--panel);
  padding: 12px;
  color: var(--accent);
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.site-header .shell {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 80px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.site-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
}
.global-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.global-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border-radius: 7px;
}
.global-nav a:hover,
.global-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--soft);
}
.site-account {
  margin-left: auto;
  position: relative;
  min-width: 0;
}
.site-account > a {
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  text-decoration: none;
}
.account-disclosure summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 9px 12px;
  min-height: 44px;
  border-radius: 7px;
  font-weight: 650;
  list-style: none;
}
.account-disclosure summary::-webkit-details-marker {
  display: none;
}
.account-disclosure summary::after {
  content: "⌄";
  color: var(--muted);
}
.account-disclosure summary:hover {
  background: var(--hover);
}
.account-name {
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  min-width: 220px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.account-panel a,
.account-panel button {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 5px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  text-decoration: none;
  text-align: left;
}
.account-panel a:hover,
.account-panel button:hover {
  background: var(--hover);
}
.account-panel .signout {
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--danger);
  margin-top: 4px;
}
.account-panel p {
  margin: 8px 12px;
  font-size: 0.875rem;
}
.shell-status {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 14rem;
}
.mobile-nav-toggle {
  display: none;
  font-size: 0.875rem;
  padding: 8px 12px;
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--muted);
}
.public-main {
  max-width: 1160px;
  margin: auto;
  padding: 0 28px;
}
.public-hero {
  padding: 84px 0 64px;
  max-width: 800px;
}
.public-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.7rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  max-width: 18ch;
}
.public-hero .lead {
  font-size: 1.18rem;
  max-width: 62ch;
}
.public-hero p {
  margin-bottom: 20px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  align-items: center;
}
.public-section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.section-intro {
  max-width: 64ch;
  margin-bottom: 28px;
}
.feature-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.feature-columns h3 {
  margin-bottom: 8px;
}
.feature-columns p {
  color: var(--muted);
  margin-bottom: 0;
}
.explainer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 64px;
  align-items: start;
}
.explainer p {
  color: var(--muted);
}
.prose {
  max-width: 72ch;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose h2 {
  margin-top: 32px;
}
.prose h2:first-child {
  margin-top: 0;
}
.public-main details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.public-main details summary {
  font-weight: 650;
  cursor: pointer;
  min-height: 32px;
}
.public-main details > :not(summary) {
  margin-top: 16px;
}
.public-main .notice {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  max-width: 75ch;
}
.public-main .warning {
  border-color: var(--warn);
  color: var(--text);
}
.platform-nav {
  display: flex;
  gap: 24px;
  margin: 0 0 32px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.platform-nav a {
  font-weight: 650;
  padding: 8px 0;
  text-underline-offset: 8px;
}
.download-section {
  padding: 12px 0 40px;
  scroll-margin-top: 24px;
}
.download-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 32px;
}
.download-meta {
  color: var(--muted);
  margin: 8px 0 20px;
  min-height: 24px;
}
.release-notice {
  max-width: 75ch;
  color: var(--text);
  border-left: 3px solid var(--warn);
  padding: 8px 16px;
  margin: 20px 0;
}
.release-facts {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(9rem, auto) minmax(0, 1fr);
  gap: 10px 24px;
}
.release-facts dt {
  color: var(--muted);
}
.release-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.release-facts code {
  font-size: 0.875rem;
}
.release-projection {
  margin-top: 20px;
}
.release-projection .factrow {
  display: flex;
  gap: 24px;
}
.release-projection .k {
  color: var(--muted);
  margin-right: 8px;
}
.install-steps {
  padding-left: 24px;
  max-width: 850px;
  display: grid;
  gap: 28px;
}
.install-steps li {
  padding-left: 8px;
}
.install-steps h3 {
  margin-bottom: 8px;
}
.install-steps p {
  color: var(--muted);
}
.command-block {
  position: relative;
  margin: 12px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.command-block pre {
  margin: 0;
  padding: 0 64px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
  line-height: 1.6;
}
.command-block button {
  position: absolute;
  right: 8px;
  top: 8px;
  min-height: 32px;
  padding: 5px 8px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.copy-feedback {
  color: var(--muted);
  font-size: 0.875rem;
  min-height: 1.6em;
}
.comparison-scroll {
  overflow: auto;
  max-width: 100%;
}
.plan-comparison {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.plan-comparison th,
.plan-comparison td {
  text-align: left;
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.plan-comparison th {
  font-weight: 650;
}
.plan-comparison td {
  color: var(--muted);
}
.signin-layout {
  max-width: 480px;
  margin: 72px auto 100px;
  padding: 32px 0;
}
.signin-layout h1 {
  font-size: 2rem;
}
.signin-layout .lead {
  font-size: 1rem;
}
.signin-layout .primary {
  margin: 12px 0 20px;
  min-width: 240px;
}
.signin-layout .subnote {
  line-height: 1.7;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 850px) {
  .site-header .shell {
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .global-nav {
    gap: 0;
  }
  .global-nav a {
    padding: 9px;
  }
  .feature-columns {
    gap: 24px;
  }
  .explainer {
    gap: 32px;
  }
}
@media (max-width: 680px) {
  .shell {
    padding: 0 16px;
  }
  .public-main {
    padding: 0 20px;
  }
  .site-header .shell {
    min-height: 72px;
    gap: 12px;
  }
  .site-brand {
    font-size: 1.125rem;
  }
  .site-mark {
    width: 34px;
    height: 34px;
  }
  .mobile-nav-toggle {
    display: inline-flex;
    order: 2;
  }
  .site-account {
    order: 1;
  }
  .global-nav {
    order: 3;
    flex: 1 0 100%;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 8px 0;
  }
  .global-nav[data-open="true"] {
    display: flex;
  }
  .global-nav a {
    min-height: 44px;
    padding: 10px 12px;
  }
  .public-hero {
    padding: 48px 0 36px;
  }
  .public-section {
    padding: 30px 0;
  }
  .feature-columns,
  .explainer,
  .download-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-columns article {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  .download-intro .hero-actions {
    margin-top: 0;
  }
  .site-footer {
    margin-top: 48px;
  }
  .release-facts {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .release-facts dd {
    margin-bottom: 12px;
  }
  .signin-layout {
    margin: 24px auto 60px;
    padding: 24px 0;
  }
  .account-name {
    max-width: 11ch;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* Technical values may wrap without forcing the document wider than the viewport. */
.public-main code,
.public-main .mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
.install-steps li,
.command-block {
  min-width: 0;
}

@media (max-width: 380px) {
  .site-header .shell {
    gap: 8px;
  }
  .site-brand {
    font-size: 1rem;
    gap: 8px;
  }
  .site-mark {
    width: 30px;
    height: 30px;
  }
  .account-name {
    max-width: 7ch;
  }
  .account-disclosure summary {
    padding: 8px 6px;
    font-size: 0.875rem;
    gap: 6px;
  }
  .mobile-nav-toggle {
    padding: 8px;
    font-size: 0.8125rem;
  }
}
