/* ==========================================================================
   VaultPony - style.css
   Family DNA shared with RelayPony / AgePony / PGPony: the same three-font
   system and the same eyebrow/card/section language. VaultPony owns brass,
   and reserves violet for the hidden-volume story. Teal is AgePony's.
   Ships light and dark; dark is the primary look.
   ========================================================================== */

/* ----------------------------- Fonts (self-hosted) ---------------------- */
@font-face { font-family:'Geist'; font-style:normal; font-weight:300; font-display:swap;
  src:url('/assets/fonts/Geist-Light.woff2') format('woff2'); }
@font-face { font-family:'Geist'; font-style:normal; font-weight:400; font-display:swap;
  src:url('/assets/fonts/Geist-Regular.woff2') format('woff2'); }
@font-face { font-family:'Geist'; font-style:normal; font-weight:500; font-display:swap;
  src:url('/assets/fonts/Geist-Medium.woff2') format('woff2'); }
@font-face { font-family:'Geist'; font-style:normal; font-weight:600; font-display:swap;
  src:url('/assets/fonts/Geist-SemiBold.woff2') format('woff2'); }
@font-face { font-family:'Instrument Serif'; font-style:normal; font-weight:400; font-display:swap;
  src:url('/assets/fonts/InstrumentSerif-Regular.woff2') format('woff2'); }
@font-face { font-family:'Instrument Serif'; font-style:italic; font-weight:400; font-display:swap;
  src:url('/assets/fonts/InstrumentSerif-Italic.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400; font-display:swap;
  src:url('/assets/fonts/JetBrainsMono-Regular.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:500; font-display:swap;
  src:url('/assets/fonts/JetBrainsMono-Medium.woff2') format('woff2'); }

/* ----------------------------- Tokens: dark (primary) ------------------- */
:root {
  color-scheme: dark;

  /* Surfaces - graphite navy, the app's Hardened Vault base */
  --bg:           #0B111C;
  --bg-alt:       #0E1524;
  --bg-card:      #141D2E;
  --bg-card-2:    #1A2436;
  --bg-card-3:    #212D42;
  --bg-card-hov:  rgba(222, 182, 90, 0.06);

  /* Borders */
  --line:         #26324A;
  --line-strong:  #33405C;
  --line-accent:  rgba(222, 182, 90, 0.35);

  /* Text */
  --fg:           #E7EDF7;
  --text:         #E7EDF7;
  --fg-muted:     #93A0B7;
  --text-dim:     #93A0B7;
  --fg-dim:       #6B7A93;
  --text-faint:   #55637A;

  /* Accent - brass, sampled from the launcher icon's gold */
  --accent:        #DEB65A;
  --accent-bright: #F0CC86;
  --accent-deep:   #C9A860;
  --accent-glow:   rgba(222, 182, 90, 0.18);
  --accent-cont:   #2A2110;
  --on-accent:     #201803;

  /* Hidden volumes own violet, and nothing else uses it */
  --violet:        #B491F6;
  --violet-soft:   rgba(180, 145, 246, 0.10);
  --violet-line:   rgba(180, 145, 246, 0.34);

  /* Semantic */
  --ok:     #34D399;
  --warn:   #E8BE8F;
  --danger: #FF6B6B;

  /* Type */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --maxw: 1140px;
  --maxw-narrow: 780px;
  --gutter: 28px;
  --radius: 12px;
  --radius-sm: 7px;

  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-menu: 0 18px 50px rgba(0, 0, 0, 0.5);
}

/* ----------------------------- Tokens: light ---------------------------- */
/* Applied when the visitor's OS asks for light and they have not overridden
   it, or when they pick light explicitly with the header toggle. */
@media (prefers-color-scheme: light) {
  html:not([data-theme]) { color-scheme: light; }
  html:not([data-theme]) {
    --bg:           #EEF2F8;
    --bg-alt:       #F4F7FC;
    --bg-card:      #FFFFFF;
    --bg-card-2:    #F4F7FC;
    --bg-card-3:    #E8EEF7;
    --bg-card-hov:  rgba(155, 108, 21, 0.05);

    --line:         #DCE3EF;
    --line-strong:  #C6D0E2;
    --line-accent:  rgba(155, 108, 21, 0.35);

    --fg:           #132033;
    --text:         #132033;
    --fg-muted:     #5A6A80;
    --text-dim:     #5A6A80;
    --fg-dim:       #75849A;
    --text-faint:   #8C99AC;

    --accent:        #9B6C15;
    --accent-bright: #7E570F;
    --accent-deep:   #6A4A0C;
    --accent-glow:   rgba(155, 108, 21, 0.12);
    --accent-cont:   #FBE7C2;
    --on-accent:     #FFFFFF;

    --violet:        #7C5CE0;
    --violet-soft:   rgba(124, 92, 224, 0.08);
    --violet-line:   rgba(124, 92, 224, 0.30);

    --ok:     #12805A;
    --warn:   #8A5B00;
    --danger: #D5453F;

    --shadow-card: 0 20px 46px rgba(19, 32, 51, 0.10);
    --shadow-menu: 0 16px 40px rgba(19, 32, 51, 0.14);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg:           #EEF2F8;
  --bg-alt:       #F4F7FC;
  --bg-card:      #FFFFFF;
  --bg-card-2:    #F4F7FC;
  --bg-card-3:    #E8EEF7;
  --bg-card-hov:  rgba(155, 108, 21, 0.05);

  --line:         #DCE3EF;
  --line-strong:  #C6D0E2;
  --line-accent:  rgba(155, 108, 21, 0.35);

  --fg:           #132033;
  --text:         #132033;
  --fg-muted:     #5A6A80;
  --text-dim:     #5A6A80;
  --fg-dim:       #75849A;
  --text-faint:   #8C99AC;

  --accent:        #9B6C15;
  --accent-bright: #7E570F;
  --accent-deep:   #6A4A0C;
  --accent-glow:   rgba(155, 108, 21, 0.12);
  --accent-cont:   #FBE7C2;
  --on-accent:     #FFFFFF;

  --violet:        #7C5CE0;
  --violet-soft:   rgba(124, 92, 224, 0.08);
  --violet-line:   rgba(124, 92, 224, 0.30);

  --ok:     #12805A;
  --warn:   #8A5B00;
  --danger: #D5453F;

  --shadow-card: 0 20px 46px rgba(19, 32, 51, 0.10);
  --shadow-menu: 0 16px 40px rgba(19, 32, 51, 0.14);
}

html[data-theme="dark"] { color-scheme: dark; }

/* ----------------------------- Reset / base ----------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
code, kbd {
  font-family: var(--mono); font-size: 0.9em;
  background: var(--bg-card-2); border: 1px solid var(--line);
  padding: 0.12em 0.4em; border-radius: 5px; color: var(--accent-bright);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 0 0 8px 0;
  font-family: var(--mono); font-size: 13px;
}
.skip:focus { left: 0; }

/* Shared bits */
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 18px;
}
.ital-accent { font-family: var(--serif); font-style: italic; color: var(--accent-bright); font-weight: 400; }
.dim { color: var(--accent); }

/* ----------------------------- Header ----------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.wordmark:hover { color: var(--text); }
.brand-icon { border-radius: 7px; }
.wm-text { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.wm-ital { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-bright); }

.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a {
  font-family: var(--mono); font-size: 13.5px; color: var(--fg-muted);
  letter-spacing: 0.01em; padding: 4px 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent-bright); border-bottom-color: var(--line-accent); }

/* Theme toggle */
.theme-toggle {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--fg-muted); cursor: pointer; padding: 0; flex: none;
  transition: border-color .15s, color .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-accent); }
.theme-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ic-sun { display: none; }
html[data-theme="light"] .theme-toggle .ic-sun { display: block; }
html[data-theme="light"] .theme-toggle .ic-moon { display: none; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .theme-toggle .ic-sun { display: block; }
  html:not([data-theme]) .theme-toggle .ic-moon { display: none; }
}

/* Family dropdown */
.nav-family { position: relative; margin-left: auto; }
.nav-family-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--fg-muted);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 13px; cursor: pointer; transition: border-color .15s, color .15s;
}
.nav-family-btn:hover, .nav-family[data-open] .nav-family-btn { color: var(--text); border-color: var(--line-accent); }
.nav-family-dots { display: inline-flex; gap: 3px; }
.nav-family-dots span { width: 7px; height: 7px; border-radius: 50%; display: block; }
.nav-family-caret { font-size: 10px; transition: transform .18s; }
.nav-family[data-open] .nav-family-caret { transform: rotate(180deg); }
.nav-family-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 320px;
  background: var(--bg-card); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 8px; z-index: 60;
  box-shadow: var(--shadow-menu);
  max-height: 70vh; overflow-y: auto;
}
.nav-family-menu a {
  display: flex; gap: 11px; align-items: flex-start; padding: 10px 11px;
  border-radius: var(--radius-sm); color: var(--text);
}
.nav-family-menu a:hover { background: var(--bg-card-hov); }
.fam-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }
.fam-meta { display: flex; flex-direction: column; gap: 2px; }
.fam-name { font-size: 14px; font-weight: 600; }
.fam-arrow { color: var(--fg-dim); font-size: 11px; }
.fam-tag { font-size: 12.5px; color: var(--fg-muted); line-height: 1.4; }
.fam-all {
  justify-content: center; font-family: var(--mono); font-size: 12.5px;
  color: var(--accent-bright) !important; margin-top: 4px; border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.nav-cta {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--on-accent); background: var(--accent); border-radius: 999px;
  padding: 8px 16px; white-space: nowrap; transition: background .15s, transform .1s;
}
.nav-cta:hover { background: var(--accent-bright); color: var(--on-accent); }
.nav-cta:active { transform: translateY(1px); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-bright); color: var(--on-accent); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-accent); color: var(--text); background: var(--bg-card-hov); }
.btn-soon {
  background: transparent; border-color: var(--line); color: var(--fg-dim);
  cursor: default; pointer-events: none;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ----------------------------- Sections --------------------------------- */
.section { padding: 92px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: var(--maxw-narrow); margin: 0 0 48px; }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.section-head p { font-size: 18px; color: var(--fg-muted); max-width: 60ch; }

/* ----------------------------- Hero ------------------------------------- */
.hero { position: relative; padding: 78px 0 64px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(820px 420px at 78% -8%, var(--accent-glow), transparent 62%),
    radial-gradient(600px 360px at 10% 8%, var(--violet-soft), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }

.status-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--accent-bright); background: var(--accent-glow);
  border: 1px solid var(--line-accent); border-radius: 999px; padding: 6px 14px; margin: 0 0 26px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(222, 182, 90, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(222, 182, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(222, 182, 90, 0); }
}

.hero h1 {
  font-family: var(--serif); font-size: clamp(46px, 7.2vw, 78px); line-height: 1.0;
  letter-spacing: -0.015em; margin: 0 0 22px;
}
.hero h1 .accent { color: var(--accent-bright); font-style: italic; }
.hero-lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--fg-muted); max-width: 46ch; margin: 0 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 22px; }
.hero-meta { font-family: var(--mono); font-size: 12.5px; color: var(--fg-dim); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-meta b { color: var(--fg-muted); font-weight: 500; }

/* Hero seal visual */
.seal-visual { position: relative; display: grid; place-items: center; }
.seal-card {
  background: linear-gradient(160deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--line-strong); border-radius: 18px; padding: 40px 30px 30px;
  box-shadow: var(--shadow-card); width: 100%; text-align: center;
}
.seal-card img, .seal-card svg { width: 172px; height: 172px; margin: 0 auto; }
.seal-caption { font-family: var(--mono); font-size: 12px; color: var(--fg-muted); margin: 24px 0 0; line-height: 1.7; }
.seal-caption b { color: var(--accent-bright); font-weight: 500; }
@keyframes sealring { 0%,100% { opacity: .30; } 50% { opacity: .62; } }
.seal-card .seal-ring { animation: sealring 4.2s ease-in-out infinite; transform-origin: center; }

/* ----------------------------- Platform / download cards ---------------- */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.platforms.cols-3 { grid-template-columns: repeat(3, 1fr); }
.platforms.cols-5 { grid-template-columns: repeat(5, 1fr); }
.platform-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative; display: flex; flex-direction: column;
}
.platform-card.is-primary { border-color: var(--line-accent); background: linear-gradient(165deg, var(--bg-card-2), var(--bg-card)); }
.platform-card.is-soon { opacity: .82; }
.platform-os { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin: 0 0 6px; flex-wrap: wrap; }
.platform-chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-accent); color: var(--accent-bright);
}
.platform-chip.soon { color: var(--fg-dim); border-color: var(--line-strong); }
.platform-card p { color: var(--fg-muted); font-size: 14.5px; margin: 10px 0 18px; flex: 1; }
.platform-order {
  font-family: var(--mono); font-size: 11px; color: var(--fg-dim);
  letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px;
}

/* ----------------------------- Card grids ------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .15s, background .15s, transform .15s;
}
.card:hover { border-color: var(--line-accent); background: var(--bg-card-hov); }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-glow); border: 1px solid var(--line-accent); margin: 0 0 16px;
}
.card-icon svg { width: 20px; height: 20px; stroke: var(--accent-bright); fill: none; }
.card h3 { font-size: 17px; font-weight: 600; margin: 0 0 9px; }
.card p { color: var(--fg-muted); font-size: 14.5px; margin: 0; }

/* ----------------------------- Steps ------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; margin: 0 0 14px; }
.step h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.step p { color: var(--fg-muted); font-size: 14px; margin: 0; }

/* ----------------------------- Points list ------------------------------ */
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 36px; margin: 0; padding: 0; list-style: none; }
.point { display: flex; gap: 13px; align-items: flex-start; }
.point-mark { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; background: var(--accent-glow); border: 1px solid var(--line-accent); display: grid; place-items: center; }
.point-mark svg { width: 12px; height: 12px; stroke: var(--accent-bright); fill: none; }
.point b { font-weight: 600; color: var(--text); }
.point span { color: var(--fg-muted); font-size: 14.5px; }

/* ----------------------------- Hidden volumes (violet) ------------------ */
.hidden-section { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: 92px 0; }
.hidden-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 400px at 20% 0%, var(--violet-soft), transparent 64%);
}
.hidden-section .wrap { position: relative; }
.hidden-section .eyebrow { color: var(--violet); }
.hidden-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.hidden-section h2 { font-family: var(--serif); font-size: clamp(32px, 5vw, 46px); margin: 0 0 18px; }
.hidden-section h2 .vi { color: var(--violet); font-style: italic; }
.hidden-lede { font-size: 19px; color: var(--fg-muted); margin: 0 0 26px; max-width: 52ch; }
.hidden-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hidden-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--fg-muted); font-size: 15px; }
.hidden-points b { color: var(--text); font-weight: 600; }
.hidden-mark {
  flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px;
  background: var(--violet-soft); border: 1px solid var(--violet-line); display: grid; place-items: center;
}
.hidden-mark svg { width: 12px; height: 12px; stroke: var(--violet); fill: none; stroke-width: 2; }

.hidden-viz {
  background: linear-gradient(160deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--violet-line); border-radius: 18px; padding: 30px 28px;
  box-shadow: var(--shadow-card);
}
.hv-outer {
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 20px;
  background: var(--bg); position: relative;
}
.hv-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 14px; }
.hv-inner {
  border: 1px dashed var(--violet-line); border-radius: 10px; padding: 18px;
  background: var(--violet-soft); margin-top: 16px;
}
.hv-inner .hv-label { color: var(--violet); }
.hv-row { display: flex; gap: 8px; flex-wrap: wrap; }
.hv-block { height: 10px; flex: 1 1 22px; border-radius: 3px; background: var(--bg-card-3); }
.hv-inner .hv-block { background: var(--violet); opacity: .45; }
.hv-note { font-family: var(--mono); font-size: 11.5px; color: var(--fg-muted); margin: 18px 0 0; line-height: 1.7; text-align: center; }

/* ----------------------------- Comparison table ------------------------- */
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.cmp { border-collapse: collapse; width: 100%; min-width: 780px; font-size: 14.5px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: var(--fg-dim); background: var(--bg-card-2);
  position: sticky; top: 0; white-space: nowrap;
}
.cmp thead th.is-self { color: var(--accent-bright); }
.cmp tbody th { font-weight: 500; color: var(--text); width: 26%; }
.cmp td { color: var(--fg-muted); }
.cmp td.is-self { color: var(--text); background: var(--accent-glow); }
/* Inside the highlighted column the brass tint already carries the emphasis,
   so the green would read as olive. Use brass there instead. */
.cmp td.is-self .cmp-yes { color: var(--accent-bright); }
.cmp td.is-self .cmp-no, .cmp td.is-self .cmp-part { color: var(--fg-muted); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp-yes { color: var(--ok); font-weight: 600; }
.cmp-no  { color: var(--fg-dim); }
.cmp-part { color: var(--warn); }
.cmp-note { font-size: 13px; color: var(--fg-dim); margin: 16px 0 0; max-width: 70ch; }

/* ----------------------------- Spec block ------------------------------- */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.spec {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px;
}
.spec h3 {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
.spec-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.spec-list li {
  font-family: var(--mono); font-size: 12.5px; color: var(--fg-muted);
  border: 1px solid var(--line-strong); border-radius: 7px; padding: 5px 10px; background: var(--bg-card-2);
}
.spec-list li.is-default { color: var(--accent-bright); border-color: var(--line-accent); }
.spec p { color: var(--fg-muted); font-size: 14.5px; margin: 0; }
.spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; }
.spec dt { font-family: var(--mono); font-size: 12.5px; color: var(--fg-dim); }
.spec dd { margin: 0; font-size: 14.5px; color: var(--fg-muted); }

/* ----------------------------- Screenshots ------------------------------ */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.shot { display: flex; flex-direction: column; gap: 10px; }
.shot-frame {
  aspect-ratio: 9 / 19.5; border-radius: 16px; border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, var(--bg-card-2), var(--bg-card));
  overflow: hidden; display: grid; place-items: center; position: relative;
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }
.shot-frame.is-placeholder::after {
  content: attr(data-label); font-family: var(--mono); font-size: 11px; color: var(--fg-dim);
  text-align: center; padding: 0 12px; line-height: 1.6;
}
.shot-cap { font-family: var(--mono); font-size: 11.5px; color: var(--fg-muted); text-align: center; }

/* ----------------------------- FAQ -------------------------------------- */
.faq { max-width: var(--maxw-narrow); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 0; font-size: 17px; font-weight: 500;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 20px; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { color: var(--fg-muted); font-size: 15px; padding: 0 0 22px; max-width: 70ch; }
.faq-item .faq-body a { color: var(--accent-bright); }

/* ----------------------------- Final CTA -------------------------------- */
.final-cta { padding: 96px 0; text-align: center; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.final-cta::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 300px at 50% 0, var(--accent-glow), transparent 65%); pointer-events:none; }
.final-cta .wrap { position: relative; }
.final-cta h2 { font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); margin: 0 0 16px; }
.final-cta p { color: var(--fg-muted); font-size: 18px; max-width: 52ch; margin: 0 auto 28px; }

/* ----------------------------- Family band ------------------------------ */
.family-band { padding: 80px 0; border-top: 1px solid var(--line); background: var(--bg-alt); }
.family-band-head { max-width: var(--maxw-narrow); margin: 0 0 36px; }
.family-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.family-h { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; }
.family-sub { color: var(--fg-muted); font-size: 16.5px; max-width: 62ch; }
.family-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.family-card {
  display: flex; flex-direction: column; gap: 7px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--text);
  transition: border-color .15s, transform .15s, background .15s;
}
.family-card:hover { border-color: var(--line-accent); transform: translateY(-2px); color: var(--text); background: var(--bg-card-2); }
.family-card-dot { width: 11px; height: 11px; border-radius: 50%; }
.family-card-name { font-size: 17px; font-weight: 600; }
.family-card-plat { font-family: var(--mono); font-size: 11.5px; color: var(--fg-dim); letter-spacing: 0.03em; }
.family-card-tag { color: var(--fg-muted); font-size: 14px; line-height: 1.45; }
.family-all-link { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--accent-bright); margin: 26px 0 0; }

/* ----------------------------- Footer ----------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding: 0 0 40px; border-bottom: 1px solid var(--line); }
.foot-logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; margin: 0 0 12px; }
.foot-logo img { border-radius: 6px; }
.foot-tag { color: var(--fg-muted); font-size: 14px; line-height: 1.5; }
.foot-h { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--fg-muted); font-size: 14px; padding: 5px 0; }
.foot-col a:hover { color: var(--accent-bright); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 0 0; }
.foot-meta { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
.foot-copy { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
.foot-legal { font-size: 12px; color: var(--text-faint); margin: 16px 0 0; max-width: 78ch; line-height: 1.7; }

/* Tor / I2P footer line, unhidden when the addresses exist */
.foot-mirrors { line-height: 1.9; margin-top: 12px; }
.foot-mirrors a { color: var(--fg-dim); }
.foot-mirrors a:hover { color: var(--accent-bright); }
.foot-mirrors .fm-net { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); opacity: .8; margin-right: 2px; }
.foot-mirrors .fm-addr code { word-break: break-all; font-size: 0.8rem; }

/* ----------------------------- Onion callout ---------------------------- */
.onion-callout {
  display: flex; align-items: flex-start; gap: 22px; text-decoration: none;
  border: 1px solid var(--line-accent); background: var(--accent-glow);
  border-radius: 14px; padding: 26px 28px;
  transition: border-color .18s, background .18s, transform .06s;
}
.onion-callout:hover { border-color: var(--accent); }
.onion-callout:active { transform: translateY(1px); }
.oc-glyph { flex: 0 0 auto; display: flex; gap: 6px; padding-top: 6px; }
.oc-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); opacity: .85; }
.oc-dot:nth-child(2) { opacity: .55; }
.oc-dot:nth-child(3) { opacity: .3; }
.oc-body { flex: 1 1 auto; min-width: 0; }
.oc-label { font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--accent); margin-bottom: 8px; }
.oc-head { font-size: 1.15rem; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 7px; }
.oc-sub { margin: 0; color: var(--fg-muted); font-size: .95rem; line-height: 1.55; max-width: 640px; }
.oc-cta { flex: 0 0 auto; align-self: center; font-family: var(--mono); font-size: .86rem; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ----------------------------- Breadcrumbs ------------------------------ */
.breadcrumbs { font-family: var(--mono); font-size: 13px; color: var(--fg-dim); margin: 22px 0 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs a { color: var(--fg-dim); }
.breadcrumbs a:hover { color: var(--accent-bright); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--fg-muted); }
.breadcrumbs .bc-sep { color: var(--line-strong); padding: 0 8px; }

/* ----------------------------- Prose (inner pages) ---------------------- */
.prose { max-width: var(--maxw-narrow); }
.prose h1 { font-family: var(--serif); font-size: clamp(36px, 6vw, 56px); margin: 0 0 18px; letter-spacing: -0.01em; }
.prose h2 { font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); margin: 48px 0 16px; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--fg-muted); font-size: 16.5px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose .lede { font-size: 20px; color: var(--text); margin: 0 0 28px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-bright); }
.prose a:hover { color: var(--accent); }
.page-head { padding: 64px 0 8px; }
.lede { font-size: 20px; color: var(--text); margin: 0 0 8px; line-height: 1.5; }
.ital { font-family: var(--serif); font-style: italic; color: var(--accent-bright); font-weight: 400; }
.codeblock {
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 18px 20px; margin: 0 0 24px; white-space: pre-wrap; word-break: break-word;
}

/* ----------------------------- Apps / family page ----------------------- */
.apps-list { display: grid; gap: 18px; margin: 8px 0 0; }
.app-card {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 22px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 26px; position: relative; overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.app-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--app-accent, var(--accent)); }
.app-card:hover { border-color: var(--line-accent); transform: translateY(-2px); }
.app-card.is-self { background: linear-gradient(160deg, var(--bg-card-2), var(--bg-card)); }
.app-card-icon { width: 72px; height: 72px; border-radius: 16px; }
.app-card-body h3 { font-size: 21px; font-weight: 600; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-card-plat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--app-accent, var(--accent)); border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px; }
.app-card-here { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 9px; text-transform: uppercase; letter-spacing: 0.04em; }
.app-card-body p { color: var(--fg-muted); font-size: 15px; margin: 0; max-width: 60ch; }
.app-card-cta { font-family: var(--mono); font-size: 13px; white-space: nowrap; color: var(--accent-bright); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; }
.app-card-cta:hover { border-color: var(--line-accent); }
.apps-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 0; }
.apps-principle { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.apps-principle h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.apps-principle p { color: var(--fg-muted); font-size: 14px; margin: 0; }

/* ----------------------------- Callout ---------------------------------- */
.callout {
  border-left: 3px solid var(--accent); background: var(--accent-glow);
  padding: 18px 22px; margin: 28px 0 0; border-radius: 0 10px 10px 0;
}
.callout.is-violet { border-left-color: var(--violet); background: var(--violet-soft); }
.callout.is-violet .label { color: var(--violet); }
.callout .label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-bright); margin: 0 0 8px;
}
.callout p { margin: 0; color: var(--fg-muted); font-size: 15px; }
.callout p a { color: var(--accent-bright); }

/* ----------------------------- Trademark note --------------------------- */
.tm-note { font-size: 12.5px; color: var(--text-faint); margin: 18px 0 0; max-width: 74ch; line-height: 1.7; }

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 1080px) {
  .platforms.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .family-grid { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .hero-grid, .hidden-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards, .family-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .site-nav, .nav-family { display: none; }
  .nav-family { margin-left: auto; }
  .nav-toggle { display: block; }
  .header-inner { gap: 12px; }
  .site-header.is-open .site-nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--line); padding: 8px var(--gutter);
  }
  .site-header.is-open .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .section, .hidden-section { padding: 64px 0; }
  .platforms, .platforms.cols-3, .platforms.cols-5, .cards, .cards.cols-2, .family-grid { grid-template-columns: 1fr; }
  .steps, .points, .specs { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .onion-callout { flex-direction: column; gap: 14px; padding: 22px 20px; }
  .oc-cta { align-self: flex-start; }
}

/* ----------------------------- Reduced motion --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .status-dot, .seal-card .seal-ring { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ----------------------------- Print ------------------------------------ */
@media print {
  .site-header, .family-band, .onion-callout, .theme-toggle, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* ----------------------------- Language switcher ------------------------ */
/* Rendered by _header.php only once a locale exists on disk. */
.lang-switch { display: flex; gap: 4px; align-items: center; flex: none; }
.lang-switch a {
  font-family: var(--mono); font-size: 12px; color: var(--fg-muted);
  border: 1px solid transparent; border-radius: 999px; padding: 5px 10px;
}
.lang-switch a:hover { color: var(--text); border-color: var(--line-strong); }
.lang-switch a[aria-current="true"] { color: var(--accent-bright); border-color: var(--line-accent); }
@media (max-width: 900px) { .lang-switch { display: none; } }
