/* SSHwise — site styles. No external resources; fonts are self-hosted. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Bold-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #10121D;
  --surface: #161927;
  --raised: #1E2233;
  --border: #2B3046;
  --text: #F3F1FA;
  --muted: #ABB0C5;
  --accent: #B99CFF;
  --accent-ink: #171827;
  --accent-text: #B99CFF;
  --accent-hover: #F3F1FA;
  --danger: #FF5A5F;
  --danger-ink: #1A0405;
  --warning: #FFB547;
  --term-bg: #0B0D16;
  --term-text: #DCDDEA;
  --term-dim: #646A82;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --glow: rgba(128, 87, 240, 0.16);
  --brand-gradient: linear-gradient(135deg, #8057F0 0%, #5A32C8 100%);

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

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --step-4: clamp(2.375rem, 1.4rem + 4vw, 4.25rem);

  --r-window: 14px;
  --r-panel: 10px;
  --r-control: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #EEF0F5;
  --surface: #FFFFFF;
  --raised: #F5F5FA;
  --border: #D9DCE6;
  --text: #171827;
  --muted: #636B7A;
  --accent: #6942DC;
  --accent-ink: #FFFFFF;
  --accent-text: #6942DC;
  --accent-hover: #5A32C8;
  --danger: #E5484D;
  --danger-ink: #FFFFFF;
  --warning: #B86E00;
  --shadow: 0 30px 70px -35px rgba(23, 24, 39, 0.30);
  --glow: rgba(105, 66, 220, 0.10);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #EEF0F5;
    --surface: #FFFFFF;
    --raised: #F5F5FA;
    --border: #D9DCE6;
    --text: #171827;
    --muted: #636B7A;
    --accent: #6942DC;
    --accent-ink: #FFFFFF;
    --accent-text: #6942DC;
    --accent-hover: #5A32C8;
    --danger: #E5484D;
    --danger-ink: #FFFFFF;
    --warning: #B86E00;
    --shadow: 0 30px 70px -35px rgba(23, 24, 39, 0.30);
    --glow: rgba(105, 66, 220, 0.10);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: 0.9em; }
kbd {
  display: inline-block; padding: 0.05em 0.4em; border: 1px solid var(--border);
  border-bottom-width: 2px; border-radius: 5px; background: var(--raised); font-size: 0.82em; line-height: 1.4;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.022em; margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -0.035em; font-weight: 750; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.012em; font-weight: 650; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px;
  background: var(--accent); color: var(--accent-ink); border-radius: var(--r-control); font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 38rem; }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; max-width: 34rem; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-control);
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; color: var(--text); --logo-accent: var(--accent-text); text-decoration: none; }
.brand .logo { display: block; height: 40px; width: auto; }
/* Logo paths live in the inline <symbol> and render inside <use>: only single-class selectors
   reach them, and colours come in through inheritance (light: Ink + Violet, dark: Frost + Lavender). */
.lg-t { fill: currentColor; }
.lg-a { fill: var(--logo-accent, currentColor); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { min-height: 38px; padding: 0 14px; font-size: 0.92rem; }
.theme-toggle {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: var(--r-control);
  border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .moon { display: none; }
}
@media (max-width: 880px) { .nav { display: none; } .header-actions { margin-left: auto; } }
@media (max-width: 400px) { .header-actions .btn { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 72px); align-items: end; }
.hero h1 { max-width: 12ch; font-size: clamp(2.5rem, 1.3rem + 5vw, 5.25rem); letter-spacing: -0.04em; line-height: 1.02; }
.hero-copy { padding-bottom: 8px; }
.hero .lede { margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: var(--step--1); color: var(--muted); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warning); margin-right: 8px; vertical-align: 1px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Device stage */
.stage { position: relative; margin-top: clamp(48px, 7vw, 80px); padding-right: 200px; }
@media (max-width: 1100px) { .stage { padding-right: 120px; } }
@media (max-width: 760px) { .stage { padding-right: 0; } }

/* Desktop window */
.window {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-window);
  box-shadow: var(--shadow); overflow: hidden;
}
.stage .window { width: 100%; }
.win-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; background: var(--raised); border-bottom: 1px solid var(--border); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.tabs { display: flex; gap: 2px; min-width: 0; overflow: hidden; align-self: flex-end; }
.tab {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 8px 8px 0 0;
  font-size: 0.8rem; color: var(--muted); white-space: nowrap;
}
.tab.is-active { background: var(--term-bg); color: var(--term-text); }
.tab .swatch { width: 8px; height: 8px; border-radius: 2px; }
.palette-hint { margin-left: auto; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .palette-hint { display: none; } }

.panes { display: grid; grid-template-columns: 1.5fr 1fr; background: var(--term-bg); padding-right: 96px; }
@media (max-width: 1100px) { .panes { padding-right: 160px; } }
@media (max-width: 760px) { .panes { padding-right: 0; } }
.pane { padding: 16px 18px 22px; font-family: var(--font-mono); font-size: 13px; line-height: 1.65; color: var(--term-text); min-width: 0; overflow: hidden; }
.pane + .pane { border-left: 1px solid #1c2433; }
.pane .line { white-space: pre; overflow: hidden; text-overflow: clip; }
.pane-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--font-ui); font-size: 11.5px; color: var(--term-dim); }
.t-dim { color: var(--term-dim); }
.t-ok { color: #2EE6A6; }
.t-warn { color: #FFB547; }
.t-err { color: #FF5A5F; }
.t-host { color: #7FB4FF; }
.t-ghost { color: #4A5468; }
.t-cursor { display: inline-block; width: 0.6em; height: 1.15em; vertical-align: -0.2em; background: #B99CFF; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ghost-hint { display: inline-block; margin-left: 10px; padding: 0 6px; border: 1px solid #263043; border-radius: 4px; font-size: 10.5px; color: #8A94A8; font-family: var(--font-ui); vertical-align: 1px; }
@media (max-width: 640px) { .panes { grid-template-columns: 1fr; } .pane + .pane { display: none; } }

.root-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border-radius: 999px;
  background: var(--danger); color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 700; line-height: 1.6;
}
.root-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* Phone */
.phone {
  position: absolute; right: 0; top: 64px; width: 280px;
  padding: 10px; border-radius: 42px; background: #05070B; border: 1px solid #2a3344;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
@media (max-width: 760px) {
  .phone { position: relative; right: auto; top: auto; margin: -64px 12px 0 auto; }
}
@media (max-width: 480px) {
  .phone { margin: 20px auto 0; width: 100%; max-width: 300px; }
}
.phone-screen { border-radius: 31px; overflow: hidden; background: var(--term-bg); color: var(--term-text); }
.phone-status { display: flex; justify-content: space-between; padding: 10px 22px 4px; font-size: 11px; font-weight: 600; color: #F3F1FA; }
.phone-island { width: 76px; height: 20px; border-radius: 999px; background: #000; margin: -18px auto 6px; }
.phone-head {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px 10px; border-bottom: 1px solid #1c2433;
  font-size: 12px; color: #F3F1FA; font-weight: 600;
}
.phone-head .swatch { width: 8px; height: 8px; border-radius: 2px; background: #FF5A5F; }
.phone-head .root-badge { margin-left: auto; }
.phone-term { padding: 10px 14px; height: 176px; font-family: var(--font-mono); font-size: 11px; line-height: 1.6; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.phone-term .line { white-space: pre; overflow: hidden; }
.prompt-root { color: #FF5A5F; }
.pills { display: flex; gap: 6px; padding: 8px 10px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid #1c2433; background: #0E131C; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; padding: 6px 11px; border-radius: 999px; border: 1px solid #263043; background: #1A2130;
  color: #F3F1FA; font-family: var(--font-mono); font-size: 11px; line-height: 1.3; cursor: pointer;
}
.pill:hover { border-color: #B99CFF; }
.pill.is-danger { color: #FF8A8D; border-color: rgba(255, 90, 95, 0.45); background: rgba(255, 90, 95, 0.08); }
.keyrow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 6px 8px 8px; background: #0E131C; }
.keyrow span {
  display: grid; place-items: center; height: 30px; border-radius: 6px; background: #1A2130; color: #C9D0DC;
  font-family: var(--font-mono); font-size: 10.5px; box-shadow: 0 1px 0 #05070B;
}
.keyrow .is-on { background: rgba(185, 156, 255, 0.18); color: #B99CFF; }
.phone-kbd { height: 34px; background: #0E131C; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 8px; }
.phone-kbd i { width: 110px; height: 4px; border-radius: 999px; background: #3a4458; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--border); }
.section-head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 8vw, 104px); }
.feature.flip > :first-child { order: 2; }
.feature h3 { font-size: var(--step-2); letter-spacing: -0.022em; margin-bottom: 14px; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--muted); }
.feature li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 2px; background: var(--accent); }
.feature li strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip > :first-child { order: 0; }
}

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-panel); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: var(--step--1); color: var(--muted); }
.panel-head strong { color: var(--text); font-weight: 600; }

/* Server list fragment */
.srv-group { padding: 10px 16px 4px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.srv { display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; }
.srv + .srv { border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.srv .bar { width: 4px; height: 32px; border-radius: 2px; }
.srv .name { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.srv .addr { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.srv .meta { display: flex; gap: 6px; align-items: center; }
.tag { padding: 2px 8px; border-radius: 999px; background: var(--raised); border: 1px solid var(--border); font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.star { width: 16px; height: 16px; color: var(--warning); }
.key-chip { display: inline-flex; gap: 6px; align-items: center; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.c-red { background: #FF5A5F; } .c-mint { background: #2EE6A6; } .c-amber { background: #FFB547; } .c-blue { background: #6EA8FE; } .c-violet { background: #B392F0; }
@media (max-width: 420px) { .srv .meta .tag { display: none; } }

/* Verbose log fragment */
.log { background: var(--term-bg); color: var(--term-text); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; padding: 14px 16px; overflow-x: auto; }
.log .line { white-space: pre; }

/* Transfer fragment */
.xfer { padding: 6px 16px 14px; }
.xfer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; }
.xfer-row + .xfer-row { border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.xfer-row .file { font-family: var(--font-mono); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xfer-row .state { font-size: 0.78rem; color: var(--muted); }
.track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.track i.paused { background: var(--warning); }
.w-92 { width: 92%; } .w-64 { width: 64%; } .w-41 { width: 41%; } .w-18 { width: 18%; }
.xfer-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.mini-btn { padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--raised); color: var(--text); font-size: 0.8rem; }

/* Root fragment */
.root-demo { background: var(--term-bg); padding: 16px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--term-text); }
.root-demo .line { white-space: pre; overflow: hidden; }
.root-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: var(--step--1); }
.root-bar .who { font-weight: 600; }
.root-bar .switch { margin-left: auto; display: inline-flex; gap: 6px; }
.seg { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.seg.is-on { border-color: var(--danger); color: var(--danger); }
.root-edge { box-shadow: inset 0 3px 0 var(--danger); }

/* ---------- Suggestions explainer ---------- */
.learn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); }
.learn li { list-style: none; padding: 28px 24px 26px; counter-increment: step; position: relative; }
.learn li + li { border-left: 1px solid var(--border); }
.learn li::before {
  content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 16px;
}
.learn h3 { font-size: 1.1rem; margin-bottom: 8px; }
.learn p { color: var(--muted); font-size: 0.97rem; }
.learn .snippet { margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: var(--term-bg); color: var(--term-text); font-family: var(--font-mono); font-size: 12px; line-height: 1.7; overflow-x: auto; }
.learn .snippet .line { white-space: pre; }
.learn .pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.learn .pill { cursor: default; }
@media (max-width: 860px) {
  .learn { grid-template-columns: 1fr; }
  .learn li + li { border-left: 0; border-top: 1px solid var(--border); }
}
.learn-note { margin-top: 24px; color: var(--muted); max-width: 44rem; }

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r-panel); overflow: hidden; }
.platform { padding: 22px 20px; background: var(--surface); }
.platform + .platform { border-left: 1px solid var(--border); }
.platform svg { width: 26px; height: 26px; color: var(--text); margin-bottom: 14px; }
.platform strong { display: block; font-weight: 600; }
.platform span { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 860px) {
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform + .platform { border-left: 0; }
  .platform { border-top: 1px solid var(--border); }
  .platform:nth-child(-n+2) { border-top: 0; }
  .platform:nth-child(even) { border-left: 1px solid var(--border); }
  .platform:last-child { grid-column: 1 / -1; }
}
.stack { margin-top: 28px; color: var(--muted); max-width: 44rem; }

/* ---------- Editions table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); }
.editions { width: 100%; border-collapse: collapse; min-width: 560px; }
.editions caption { text-align: left; padding: 0 0 12px; color: var(--muted); }
.editions th, .editions td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.editions tbody tr:last-child th, .editions tbody tr:last-child td { border-bottom: 0; }
.editions thead th { font-size: var(--step-1); font-weight: 650; letter-spacing: -0.01em; vertical-align: bottom; }
.editions thead th small { display: block; font-size: var(--step--1); font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.editions tbody th { font-weight: 500; color: var(--text); width: 46%; }
.editions td { width: 27%; color: var(--muted); }
.editions .yes, .editions .no { display: inline-flex; align-items: center; gap: 8px; }
.editions .yes { color: var(--text); }
.editions .yes svg { color: var(--accent-text); width: 18px; height: 18px; flex: none; }
.editions .no svg { color: var(--muted); width: 18px; height: 18px; flex: none; }
.editions .col-sub { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.price-note { margin-top: 18px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; scroll-margin-top: 96px; }
.plan { border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); padding: 28px; }
.plan-sub-card { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.plan h3 { font-size: var(--step-1); font-weight: 650; letter-spacing: -0.01em; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.plan-price .amount { font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan-price .per { color: var(--muted); }
.plan-tagline { color: var(--muted); margin-top: 6px; }
.plan-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.plan-points li { position: relative; padding-left: 26px; }
.plan-points li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } .plan { padding: 22px; } }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.privacy-grid h3 { margin-bottom: 8px; font-size: 1.15rem; }
.privacy-grid p { color: var(--muted); }
@media (max-width: 760px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 42rem; }


/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 56px; color: var(--muted); font-size: var(--step--1); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.site-footer .brand { margin-bottom: 10px; }

/* ---------- Document pages (privacy, terms, account) ---------- */
.doc { padding: clamp(40px, 7vw, 80px) 0 96px; }
.doc .wrap { max-width: 50rem; }
.doc h1 { font-size: var(--step-3); letter-spacing: -0.028em; margin-bottom: 12px; }
.doc h2 { font-size: var(--step-1); margin: 44px 0 12px; letter-spacing: -0.012em; }
.doc h3 { font-size: 1.05rem; margin: 28px 0 8px; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc .meta { color: var(--muted); font-size: var(--step--1); margin-bottom: 28px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--border); }
.doc th { background: var(--raised); font-weight: 600; }
.doc .table-scroll { overflow-x: auto; }
.draft-banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 32px;
  border: 1px solid color-mix(in srgb, var(--warning) 55%, var(--border)); border-radius: var(--r-panel);
  background: color-mix(in srgb, var(--warning) 9%, var(--surface)); color: var(--text); font-size: 0.95rem;
}
.draft-banner svg { width: 20px; height: 20px; flex: none; color: var(--warning); margin-top: 2px; }
.callout { padding: 18px 20px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--border); margin: 20px 0; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: 0.8rem; font-weight: 600; color: var(--muted); }

/* ---------- Status pages (auth done, 404) ---------- */
.status-page { min-height: calc(100vh - 64px - 140px); display: grid; place-items: center; padding: 64px 0; }
.status-card { max-width: 32rem; text-align: center; }
.status-card .icon { width: 56px; height: 56px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.status-card .icon svg { width: 28px; height: 28px; }
.status-card h1 { font-size: var(--step-3); margin-bottom: 14px; }
.status-card p { color: var(--muted); }
.status-card .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.status-card .fine { margin-top: 28px; font-size: var(--step--1); color: var(--muted); }
.code-404 { font-family: var(--font-mono); color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.ok { color: var(--accent-text); }
.bad { color: var(--danger); }
[hidden] { display: none !important; }

/* Utility classes used instead of inline styles (strict CSP: no 'unsafe-inline'). */
.dot-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex: none; }
.platforms { margin: 0; padding: 0; list-style: none; }
.palette-query { color: var(--text); }
.palette-query .t-cursor { height: 1em; }
.c-none { background: var(--border); }

@media (max-width: 640px) {
  .editions { min-width: 0; font-size: 0.92rem; }
  .editions th, .editions td { padding: 12px 10px; }
  .editions thead th { font-size: 1rem; }
  .editions tbody th { width: auto; }
  .editions td { width: 26%; }
  .editions .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Fixes after visual review */
.learn { margin: 0; padding: 0; }
@media (min-width: 761px) { .stage { padding-bottom: 150px; } }
