/* deskvm_ — public site. No external resources: system fonts, inline SVG. Dark by default, light via prefers-color-scheme. */
:root {
  --bg: #0b0c0f;
  --bg-2: #101217;
  --panel: #14161c;
  --panel-2: #1a1d24;
  --border: #242830;
  --border-strong: #323844;
  --text: #e6e8ec;
  --muted: #9ba2ae;
  --accent: #b4f461;
  --accent-hover: #c6f985;
  --accent-ink: #12160c;
  --accent-text: #b4f461;
  --accent-soft: rgba(180, 244, 97, 0.1);
  --accent-line: rgba(180, 244, 97, 0.32);
  --danger: #ff8fa3;
  --danger-soft: rgba(247, 118, 142, 0.1);
  --ok: #9ece6a;
  --focus: #b4f461;
  --header-bg: rgba(11, 12, 15, 0.78);
  --shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.7);
  --radius: 12px;
  --radius-sm: 8px;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f3;
    --bg-2: #eceee7;
    --panel: #ffffff;
    --panel-2: #f2f3ee;
    --border: #dcdfd6;
    --border-strong: #c3c8bc;
    --text: #15171b;
    --muted: #4f5661;
    --accent: #b4f461;
    --accent-hover: #a3e84c;
    --accent-ink: #12160c;
    --accent-text: #386305;
    --accent-soft: rgba(120, 180, 30, 0.12);
    --accent-line: rgba(80, 140, 10, 0.35);
    --danger: #b3223f;
    --danger-soft: rgba(200, 40, 70, 0.08);
    --ok: #2e7410;
    --focus: #386305;
    --header-bg: rgba(246, 247, 243, 0.85);
    --shadow: 0 24px 60px -24px rgba(30, 40, 20, 0.35);
    color-scheme: light;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--accent-text);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.08em 0.35em;
  overflow-wrap: anywhere;
}
abbr {
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus {
  outline: none;
}
.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;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}
.center-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow {
  max-width: 860px;
}

/* Icons */
.ico {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: -4px;
}
.ico-sm {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}
.ico-ok {
  color: var(--accent-text);
}
.ico-feat {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  margin-bottom: 16px;
}

/* Wordmark */
.logo {
  font: 700 20px/1 var(--mono);
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.cursor {
  color: var(--accent-text);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Buttons */
.btn {
  --btn-pad: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--btn-pad);
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 15px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  --btn-pad: 8px 14px;
  font-size: 14px;
}
.btn-lg {
  --btn-pad: 14px 22px;
  font-size: 16px;
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.btn-ghost {
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--panel-2);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.hdr {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--text);
  background: var(--panel-2);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.lang-link {
  font: 600 13px/1 var(--mono);
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.lang-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
@media (max-width: 920px) {
  .hdr {
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 16px;
  }
  .nav-links {
    flex-direction: column;
  }
  .nav-links a {
    padding: 12px;
    font-size: 16px;
  }
  .nav-actions {
    margin-left: 0;
    flex-wrap: wrap;
  }
  .nav-actions .btn {
    flex: 1 1 auto;
    --btn-pad: 12px 16px;
  }
  .js .nav-toggle {
    display: inline-flex;
  }
  .js .nav:not(.open) {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(180, 244, 97, 0.16), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 20%, #000 30%, transparent 80%);
  mask-image: radial-gradient(80% 70% at 50% 20%, #000 30%, transparent 80%);
  opacity: 0.55;
}
.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}
.hero-copy {
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1.3 var(--mono);
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.15rem, 1.2rem + 4.6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.accent {
  color: var(--accent-text);
}
.hero-lead {
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.25rem);
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 32px;
}
.hero-lead strong {
  white-space: nowrap;
  color: var(--text);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.92em;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 480px) {
  .hero-ctas .btn {
    width: 100%;
  }
  .hero-points {
    flex-direction: column;
    align-items: center;
  }
}

/* ——— Workspace illustration (always dark, like the product) ——— */
.mock {
  --m-bg: #0c0d10;
  --m-panel: #121419;
  --m-panel-2: #171a20;
  --m-border: #23272f;
  --m-text: #e3e6eb;
  --m-muted: #8a919e;
  --m-accent: #b4f461;
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(420px, 44vw, 600px);
  background: var(--m-bg);
  color: var(--m-text);
  border: 1px solid #2a2f38;
  border-radius: 14px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(180, 244, 97, 0.06), 0 30px 120px -40px rgba(180, 244, 97, 0.25);
  overflow: hidden;
  font: 12px/1.5 var(--sans);
  text-align: left;
}
.mock-top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px 0 14px;
  background: var(--m-panel);
  border-bottom: 1px solid var(--m-border);
  white-space: nowrap;
}
.mock-brand {
  font: 700 14px/1 var(--mono);
}
.mock-brand .cursor {
  color: var(--m-accent);
}
.mock-sep {
  width: 1px;
  height: 16px;
  background: #2f3440;
}
.mock-ws {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-toggles {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.mt {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  border-radius: 6px;
  color: var(--m-muted);
}
.mt.on {
  color: var(--m-accent);
  background: rgba(180, 244, 97, 0.1);
}
.mt-ico {
  width: 14px;
  height: 14px;
}
.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--m-muted);
  border: 1px solid var(--m-border);
  padding: 3px 9px;
  border-radius: 999px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ece6a;
  box-shadow: 0 0 0 3px rgba(158, 206, 106, 0.18);
}
.mock-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.62fr) 1fr 1.18fr;
  gap: 6px;
  padding: 6px;
}
.mock-mid {
  display: grid;
  grid-template-rows: 1fr 1.05fr;
  gap: 6px;
  min-height: 0;
}
.mp {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--m-panel);
  border: 1px solid var(--m-border);
  border-radius: 8px;
  overflow: hidden;
}
.mp-term {
  border-color: rgba(180, 244, 97, 0.35);
}
.mp-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid var(--m-border);
  background: var(--m-panel-2);
  color: var(--m-muted);
  white-space: nowrap;
  overflow: hidden;
}
.mp-term .mp-head {
  color: var(--m-text);
}
.mp-ico {
  width: 13px;
  height: 13px;
  flex: none;
}
.mp-term .mp-ico {
  color: var(--m-accent);
}
.mp-title {
  font-weight: 600;
  font-size: 11.5px;
}
.mp-tab {
  margin-left: auto;
  font: 11px var(--mono);
  color: var(--m-muted);
  background: var(--m-bg);
  border: 1px solid var(--m-border);
  padding: 1px 7px;
  border-radius: 5px;
}
.url {
  flex: 1;
  margin-left: 6px;
  font: 11px var(--mono);
  color: var(--m-text);
  background: var(--m-bg);
  border: 1px solid var(--m-border);
  border-radius: 999px;
  padding: 2px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  font-size: 12px;
  overflow: hidden;
}
.ft {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 2px calc(10px + var(--d, 0) * 12px);
  white-space: nowrap;
  color: #c9ced6;
}
.ft.d1 {
  --d: 1;
}
.ft.d2 {
  --d: 2;
}
.ft.d3 {
  --d: 3;
}
.ft.dir {
  color: var(--m-text);
  font-weight: 500;
}
.ft.sel {
  background: rgba(122, 162, 247, 0.18);
  box-shadow: inset 2px 0 0 #7aa2f7;
}
.ft.new::after {
  content: 'A';
  margin-left: auto;
  font: 600 10px var(--mono);
  color: var(--m-accent);
}
.chev {
  width: 10px;
  color: var(--m-muted);
  font-size: 10px;
}
.fi {
  width: 10px;
  height: 12px;
  border-radius: 2px;
  flex: none;
  background: #5c6370;
}
.fi-code {
  background: #7aa2f7;
}
.fi-md {
  background: #b4f461;
}
.fi-json {
  background: #e0af68;
}
.fi-pdf {
  background: #f7768e;
}
.fi-img {
  background: #bb9af7;
}
.md {
  padding: 12px 14px;
  overflow: hidden;
  color: #c9ced6;
}
.md p {
  margin: 0 0 6px;
}
.md-h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--m-text);
  letter-spacing: -0.01em;
}
.md-h2 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--m-text);
  margin-top: 10px !important;
}
.md-code {
  font: 11px var(--mono);
  background: var(--m-bg);
  border: 1px solid var(--m-border);
  border-radius: 5px;
  padding: 4px 8px;
  color: #9ece6a;
}
.md-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.md-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}
.box {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid #3a404c;
  border-radius: 3px;
  font-size: 9px;
  color: var(--m-bg);
}
.md-list .ok .box {
  background: var(--m-accent);
  border-color: var(--m-accent);
}
.site {
  flex: 1;
  margin: 8px;
  border-radius: 6px;
  background: #f4f1ea;
  color: #2a2620;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.01em;
}
.site-links {
  display: flex;
  gap: 6px;
}
.site-links i {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  background: #cfc8b8;
}
.site-toggle {
  align-self: center;
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: #e5dfd2;
  font-size: 10px;
  font-weight: 600;
}
.site-toggle span {
  padding: 2px 9px;
  border-radius: 999px;
}
.site-toggle .on {
  background: #2a2620;
  color: #f4f1ea;
}
.site-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  min-height: 40px;
}
.site-cards span {
  border-radius: 5px;
  background: #fff;
  border: 1px solid #e0d9ca;
  background-image: linear-gradient(#2a2620, #2a2620), linear-gradient(#d9d2c3, #d9d2c3), linear-gradient(#d9d2c3, #d9d2c3);
  background-repeat: no-repeat;
  background-size: 45% 7px, 70% 4px, 55% 4px;
  background-position: 8px 10px, 8px 26px, 8px 36px;
}
.site-cards .hl {
  border-color: #6d8f2c;
  box-shadow: 0 0 0 1px #6d8f2c;
}
.term {
  flex: 1;
  min-height: 0;
  padding: 10px 12px;
  font: 11.5px/1.6 var(--mono);
  color: #d4d8de;
  overflow: hidden;
}
.term p {
  margin: 0 0 2px;
}
.t-user {
  color: var(--m-accent);
}
.t-path {
  color: #7aa2f7;
}
.t-dim {
  color: #d7875f;
  margin: 4px 0 6px !important;
}
.t-prompt {
  color: var(--m-text);
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid #3a404c;
  padding: 2px 8px;
  margin: 4px 0 6px !important;
}
.t-dot {
  color: var(--m-accent);
}
.t-sub {
  color: var(--m-muted);
  padding-left: 14px;
}
.t-file {
  color: var(--m-text);
}
.t-add,
.t-ok {
  color: #9ece6a;
}
.t-del {
  color: #f7768e;
}
.t-caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  vertical-align: -2px;
  background: var(--m-text);
  animation: blink 1.1s steps(1) infinite;
}
.tmux {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 2px 10px;
  background: #1d2a12;
  color: #c7e59a;
  font: 10.5px/1.6 var(--mono);
}
.tmux .on {
  color: var(--m-bg);
  background: var(--m-accent);
  padding: 0 5px;
}
.tmux-r {
  margin-left: auto;
}
.mock-tabs {
  display: none;
}
@media (max-width: 1000px) {
  .mock-body {
    grid-template-columns: 1fr 1.1fr;
  }
  .mp-files {
    display: none;
  }
}
@media (max-width: 640px) {
  .mock {
    height: 440px;
  }
  .mock-body {
    grid-template-columns: 1fr;
  }
  .mock-mid,
  .mock-toggles {
    display: none;
  }
  .mock-pill {
    margin-left: auto;
  }
  .mock-tabs {
    flex: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--m-border);
    background: var(--m-panel);
  }
  .mock-tabs span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 0 8px;
    font-size: 10.5px;
    color: var(--m-muted);
  }
  .mock-tabs .on {
    color: var(--m-accent);
  }
  .mock-ws {
    max-width: 40vw;
  }
}
@media (max-width: 360px) {
  .mock-sep,
  .mock-ws {
    display: none;
  }
}

/* Sections */
.sec {
  padding: clamp(64px, 9vw, 112px) 0;
}
.sec-tight {
  padding-top: 8px;
}
.sec-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}
.sec-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.sec-head h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.kicker {
  font: 600 13px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.kicker a {
  text-decoration: none;
}
.lead {
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--muted);
}
.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem);
  font-weight: 800;
}
.page-hero .lead {
  max-width: 680px;
  margin-inline: auto;
}

/* Pains */
.pains {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 16px;
  max-width: 1040px;
}
.pain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.pain > div {
  padding: 22px 24px;
}
.pain p {
  margin: 0;
}
.pain-before {
  color: var(--muted);
}
.pain-after {
  background: var(--accent-soft);
  border-left: 1px solid var(--accent-line);
  font-weight: 500;
}
.tag {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font: 600 12px/1 var(--mono) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px !important;
}
.tag-bad {
  color: var(--danger);
}
.tag-good {
  color: var(--accent-text);
}
@media (max-width: 720px) {
  .pain {
    grid-template-columns: 1fr;
  }
  .pain-after {
    border-left: 0;
    border-top: 1px solid var(--accent-line);
  }
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.step-n {
  display: block;
  font: 700 14px/1 var(--mono);
  color: var(--accent-text);
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.2rem;
}
.step p {
  color: var(--muted);
  margin: 0;
}
.step p strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.92em;
}
.step .step-addr {
  margin-top: 18px;
  font: 13px/1 var(--mono);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.step-addr b {
  color: var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}
.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s;
}
.card:hover {
  border-color: var(--border-strong);
}
.card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}
@media (max-width: 1060px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cards-4,
  .cards-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px;
  }
  .card .ico-feat {
    grid-row: span 2;
    margin: 0;
  }
  .card h3 {
    align-self: center;
    margin-bottom: 4px;
  }
}

/* Security */
.monitor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.monitor-col {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.monitor-col h3,
.fair-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.monitor-col ul,
.fair-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.monitor-col li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}
.monitor-col:not(.monitor-never) li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--muted);
}
.monitor-never {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.monitor-never h3 {
  color: var(--accent-text);
}
.monitor-never li {
  color: var(--text);
  font-weight: 500;
  align-items: center;
}
.monitor-never li .ico {
  color: var(--accent-text);
}
.monitor-note {
  grid-column: 1 / -1;
  max-width: 860px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}
.where {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.where-main {
  display: flex;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%),
    var(--panel);
}
.where-main .ico-feat {
  margin: 0;
}
.where h3 {
  font-size: 1.15rem;
}
.where p {
  color: var(--muted);
}
.where p:last-child {
  margin: 0;
}
.where strong {
  color: var(--text);
}
.where-candid {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
}
@media (max-width: 860px) {
  .monitor,
  .where {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .where-main {
    flex-direction: column;
  }
}

/* Fair use */
.fair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto 28px;
}
.fair-col {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}
.fair-col li {
  position: relative;
  padding-left: 26px;
}
.fair-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font: 700 14px/1.6 var(--mono);
}
.fair-ok h3,
.fair-ok li::before {
  color: var(--accent-text);
}
.fair-ok li::before {
  content: '✓';
}
.fair-no h3,
.fair-no li::before {
  color: var(--danger);
}
.fair-no li::before {
  content: '✕';
}
@media (max-width: 720px) {
  .fair {
    grid-template-columns: 1fr;
  }
}

/* Pricing */
.bill-toggle {
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 36px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
}
.bill-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.bill-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}
.bill-toggle input:checked + label {
  background: var(--accent);
  color: var(--accent-ink);
}
.bill-toggle input:focus-visible + label {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.save-badge {
  font: 600 12px/1 var(--mono);
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.bill-toggle input:checked + label .save-badge {
  background: rgba(0, 0, 0, 0.12);
  color: var(--accent-ink);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plans-1 {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}
.plans-2 {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
}
.plans-4 {
  grid-template-columns: repeat(4, 1fr);
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}
.plan-hl {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line), 0 30px 80px -40px rgba(180, 244, 97, 0.35);
  background:
    radial-gradient(120% 60% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--panel);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  margin: 0;
  font: 700 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}
.plan-name {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.plan-tagline {
  color: var(--muted);
  font-size: 15px;
  min-height: 3.2em;
  margin-bottom: 12px;
}
.plan-specs {
  font: 13px/1.4 var(--mono);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.plan-price {
  margin-bottom: 20px;
}
.plan-price p {
  margin: 0;
}
.amt {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.per {
  color: var(--muted);
  margin-left: 6px;
  font-size: 15px;
}
.plan-sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px !important;
  min-height: 2.9em;
}
.plan-save {
  color: var(--accent-text);
  font-weight: 600;
}
.plan-feat {
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  font-size: 15px;
}
.plan-feat li {
  display: flex;
  gap: 10px;
}
.plan-feat .ico {
  margin-top: 3px;
}
/* Billing switch: radio state drives it where :has() exists; otherwise data-billing (server default, kept in sync by JS). */
.pricing:has(#bill-monthly:checked) .is-yearly,
.pricing:has(#bill-yearly:checked) .is-monthly {
  display: none;
}
@supports not selector(:has(*)) {
  .pricing[data-billing='monthly'] .is-yearly,
  .pricing[data-billing='yearly'] .is-monthly {
    display: none;
  }
}
.price-notes {
  list-style: none;
  margin: 32px auto 20px;
  padding: 0;
  max-width: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  color: var(--muted);
  font-size: 14px;
}
.price-notes li {
  display: flex;
  gap: 10px;
}
.price-notes .ico {
  margin-top: 3px;
}
.notice {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
}
@media (max-width: 960px) {
  .plans,
  .plans-4 {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .plans-2 {
    grid-template-columns: minmax(0, 480px);
  }
  .plan-tagline,
  .plan-sub {
    min-height: 0;
  }
}
@media (max-width: 640px) {
  .price-notes {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 400px) {
  .bill-toggle label {
    padding: 9px 12px;
    font-size: 14px;
  }
  .plan {
    padding: 24px 20px;
  }
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.compare {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 15px;
}
.compare caption {
  text-align: left;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 20px 20px 12px;
}
.compare th,
.compare td {
  padding: 12px 20px;
  text-align: left;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.compare thead th {
  font-size: 1.05rem;
  border-top: 0;
  white-space: nowrap;
}
.compare tbody th {
  font-weight: 500;
  color: var(--muted);
  width: 34%;
}
.compare td {
  width: 22%;
}
.compare .row-sep th,
.compare .row-sep td {
  border-top-color: var(--border-strong);
}
.col-hl {
  color: var(--accent-text);
}
.mini-badge {
  display: inline-block;
  margin-left: 8px;
  font: 600 11px/1 var(--mono);
  text-transform: uppercase;
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  vertical-align: 2px;
}
@media (max-width: 640px) {
  .compare {
    min-width: 520px;
    font-size: 14px;
  }
  .compare th,
  .compare td {
    padding: 10px 12px;
  }
  .compare caption {
    padding: 16px 12px 10px;
  }
  .compare tbody th,
  .compare thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 150px;
    min-width: 150px;
    background: var(--panel);
    box-shadow: 1px 0 0 var(--border);
  }
  .mini-badge {
    display: none;
  }
}
.cell-yes .ico {
  width: 18px;
  height: 18px;
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.faq-item[open] {
  border-color: var(--border-strong);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-plus {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}
.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-text);
  transition: transform 0.2s;
}
.faq-plus::after {
  transform: rotate(90deg);
}
.faq-item[open] .faq-plus::after {
  transform: rotate(0deg);
}
.faq-a {
  padding: 0 22px 20px;
  color: var(--muted);
}
.faq-a p {
  margin: 0;
}
.faq-a strong {
  color: var(--text);
}

/* Final CTA */
.final {
  padding: clamp(64px, 9vw, 112px) 0;
}
.final-box {
  text-align: center;
}
.final-box > * {
  max-width: 760px;
  margin-inline: auto;
}
.final h2 {
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 800;
}
.final p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 28px;
}
.final .hero-ctas {
  margin: 0 auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 56px 0 28px;
  font-size: 15px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1.4fr;
  gap: 32px;
}
.foot-brand p {
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 280px;
}
.foot-brand .foot-muted {
  font-size: 14px;
}
.foot-col h2 {
  font-size: 13px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.foot-col a {
  color: var(--text);
  text-decoration: none;
}
.foot-col a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}
.foot-contacts li {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.foot-contacts span {
  font-size: 13px;
  color: var(--muted);
}
.foot-contacts a {
  font-family: var(--mono);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.foot-bottom p {
  margin: 0;
}
.foot-bottom a {
  color: var(--text);
}
.withdraw-link {
  font-weight: 600;
}
.foot-lang a[aria-current] {
  color: var(--accent-text);
  text-decoration: none;
}
@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Auth */
.auth-wrap {
  display: grid;
  justify-content: center;
  gap: 24px;
  padding: clamp(40px, 7vw, 88px) var(--gutter);
}
.auth-wrap > * {
  min-width: 0;
}
.auth-wide {
  grid-template-columns: minmax(0, 460px) minmax(0, 360px);
  align-items: start;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem);
  font-weight: 800;
}
.auth-card .lead {
  font-size: 1rem;
  margin-bottom: 24px;
}
.auth-center {
  text-align: center;
}
.providers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.btn-provider {
  justify-content: center;
  padding: 12px 16px;
  background: var(--panel-2);
  border-color: var(--border-strong);
  color: var(--text);
  font-weight: 600;
}
.btn-provider:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.plogo {
  width: 20px;
  height: 20px;
  flex: none;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 14px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.email-form {
  display: grid;
  gap: 10px;
}
.email-form label {
  font-weight: 600;
  font-size: 14px;
}
.email-form input[type='email'] {
  width: 100%;
  padding: 12px 14px;
  font: 16px/1.3 var(--sans);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}
.email-form input[type='email']::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.email-form input[type='email']:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.hint {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.hint-center {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.auth-switch {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.auth-switch a {
  font-weight: 600;
}
.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 15px;
  text-align: left;
}
.alert p {
  margin: 0;
}
.alert .ico {
  margin-top: 3px;
}
.alert-title {
  font-weight: 700;
}
.alert-error {
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
}
.alert-error .ico,
.alert-error .alert-title {
  color: var(--danger);
}
.alert-info {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.auth-side {
  display: grid;
  gap: 16px;
}
.summary,
.next-steps {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}
.summary {
  border-color: var(--accent-line);
}
.summary-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.summary-title {
  font: 600 13px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.summary-change {
  font-size: 14px;
  font-weight: 600;
}
.summary-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.summary .plan-specs {
  margin-bottom: 14px;
}
.mini-toggle {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.mini-toggle a {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.mini-toggle a.on {
  background: var(--accent);
  color: var(--accent-ink);
}
.summary-price {
  margin: 0;
}
.summary-price .amt {
  font-size: 2.2rem;
}
.summary .plan-sub {
  min-height: 0;
  margin: 4px 0 14px !important;
}
.summary-notes {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.summary-notes li {
  display: flex;
  gap: 8px;
}
.summary-notes .ico {
  margin-top: 3px;
}
.plan-picks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.plan-picks a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  text-decoration: none;
}
.plan-picks a:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.pick-name {
  font-weight: 700;
}
.pick-price {
  color: var(--muted);
  font-size: 14px;
}
.next-steps ol {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}
.next-steps li::marker {
  color: var(--accent-text);
  font-family: var(--mono);
  font-weight: 700;
}
.check-ico {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-text);
  margin-bottom: 20px;
}
.check-ico .ico {
  width: 30px;
  height: 30px;
}
.check-tips {
  text-align: left;
  margin: 0 0 24px;
  padding: 16px 16px 16px 34px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
  display: grid;
  gap: 6px;
}
.nf-code {
  font: 800 clamp(3.5rem, 10vw, 5.5rem)/1 var(--mono);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.nf .center-row {
  margin: 0;
}
@media (max-width: 860px) {
  .auth-wide {
    grid-template-columns: minmax(0, 460px);
  }
}

/* Legal */
.legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(48px, 7vw, 96px);
  align-items: start;
}
.legal-aside {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  display: grid;
  gap: 20px;
  font-size: 14px;
  padding-right: 4px;
}
.toc summary,
.legal-others h2 {
  font: 600 12px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
  cursor: pointer;
}
.toc ol,
.legal-others ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.toc a,
.legal-others a {
  display: block;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
}
.toc a:hover,
.legal-others a:hover {
  color: var(--text);
  background: var(--panel-2);
}
.legal-others a[aria-current='page'] {
  color: var(--accent-text);
  background: var(--accent-soft);
  font-weight: 600;
}
.legal-doc {
  min-width: 0;
  max-width: 780px;
}
.legal-doc h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.prose {
  font-size: 16px;
  line-height: 1.7;
}
.prose > p:first-child {
  color: var(--muted);
}
.prose h2 {
  font-size: 1.4rem;
  margin: 2.2em 0 0.7em;
  padding-top: 0.4em;
}
.prose h3 {
  font-size: 1.12rem;
  margin: 1.6em 0 0.5em;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.prose li {
  margin-bottom: 0.35em;
}
.prose blockquote {
  margin: 1.5em 0;
  padding: 18px 22px;
  border: 2px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.prose blockquote p:last-child {
  margin: 0;
}
.prose .table-wrap,
.prose > table {
  margin: 1.2em 0 1.6em;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}
.prose thead th {
  border-top: 0;
  background: var(--panel-2);
}
.prose pre {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.prose pre code {
  border: 0;
  background: none;
  padding: 0;
}
.prose a {
  overflow-wrap: anywhere;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}
.legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.legal-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}
.legal-list a:hover {
  border-color: var(--accent-line);
}
.legal-list a > span {
  display: grid;
  gap: 2px;
}
.legal-list .muted {
  font-size: 14px;
}
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-aside {
    display: contents;
  }
  .toc {
    order: 0;
  }
  .legal-doc {
    order: 1;
  }
  .legal-others {
    order: 2;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }
  .toc {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 14px 14px 10px;
  }
  .toc summary {
    margin: 0;
  }
  .toc details[open] summary {
    margin-bottom: 10px;
  }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .legal-aside {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .legal-layout {
    display: block;
  }
}
