/* Nexio Software website
   Neutral palette, system fonts only (no external requests), light + dark,
   reduced motion / transparency / contrast respected. */
:root {
  --bg: #ffffff;
  --bg-tint: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --border: #d2d2d7;
  --hair: rgb(0 0 0 / 0.08);
  --accent: #0a66c8;
  --btn: #0a6fe0;
  --btn-hover: #0861c4;
  --btn-ink: #ffffff;
  --ok: #1d8a4e;
  --mark-ink: #ffffff;
  --nav-bg: rgb(255 255 255 / 0.78);
  --dark-bg: #000000;
  --dark-tile: #161617;
  --shadow-device: 0 1px 1px rgb(0 0 0 / 0.04), 0 10px 30px -8px rgb(0 0 0 / 0.12), 0 40px 90px -30px rgb(0 0 0 / 0.28);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1000px;
  --wrap-wide: 1240px;
  --gutter: clamp(20px, 5vw, 40px);
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-tint: #0f0f10;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #86868b;
    --border: #3a3a3c;
    --hair: rgb(255 255 255 / 0.1);
    --accent: #4aa3ff;
    --btn: #1a7cf0;
    --btn-hover: #3b90f5;
    --ok: #34c776;
    --mark-ink: #000000;
    --nav-bg: rgb(22 22 23 / 0.8);
    --dark-bg: #0f0f10;
    --dark-tile: #1c1c1e;
    --shadow-device: 0 0 0 1px rgb(255 255 255 / 0.08), 0 40px 90px -30px rgb(0 0 0 / 0.9);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.47 var(--font-text);
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font: 0.86em var(--font-mono); letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: 15px; color: var(--muted); line-height: 1.5; }
.dim { color: var(--faint); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 780px; }
.wrap-wide { width: 100%; max-width: var(--wrap-wide); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- buttons and links: feedback the instant they are pressed ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 22px; border-radius: 980px;
  font: 400 17px/1 var(--font-text); letter-spacing: -0.01em;
  text-decoration: none !important; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 100ms ease-out, background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: var(--bg); }
.btn-xs { min-height: 28px; padding: 0 12px; font-size: 13px; }
.more { display: inline-flex; align-items: center; gap: 3px; font-size: 17px; color: var(--accent); }
.more .chev { width: 12px; height: 12px; transition: transform 200ms var(--ease-out); }
.more:hover { text-decoration: underline; }
.more:hover .chev { transform: translateX(2px); }

/* ---------- navigation: a thin translucent layer that content scrolls under ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); opacity: 0; transition: opacity 200ms var(--ease); }
.nav.scrolled::after { opacity: 1; }
.nav-inner { max-width: var(--wrap-wide); margin-inline: auto; padding: 0 var(--gutter); height: 52px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: 600 19px/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none !important; }
.mark { width: 22px; height: 22px; color: var(--text); flex: none; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { color: var(--text); opacity: 0.8; font-size: 13px; letter-spacing: -0.005em; padding: 8px 10px; border-radius: 8px; text-decoration: none; transition: opacity 150ms var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav-whop { display: none !important; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--text); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: opacity 160ms var(--ease), transform 240ms var(--ease-out); }
.nav-toggle svg:last-child { opacity: 0; transform: rotate(-45deg) scale(0.9); }
.nav-toggle[aria-expanded="true"] svg:first-child { opacity: 0; transform: rotate(45deg) scale(0.9); }
.nav-toggle[aria-expanded="true"] svg:last-child { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav.open { background: var(--bg); }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 52px; height: calc(100dvh - 52px);
    flex-direction: column; gap: 0; margin: 0; padding: 12px calc(var(--gutter) + 8px) 40px;
    background: var(--bg);
    /* slides down from under the bar, and leaves the same way */
    opacity: 0; transform: translateY(-12px); visibility: hidden; pointer-events: none;
    transition: opacity 200ms var(--ease), transform 320ms var(--ease-out), visibility 0s linear 320ms;
  }
  .nav.open .nav-links { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 200ms var(--ease), transform 320ms var(--ease-out), visibility 0s; }
  .nav-links a { opacity: 1; font: 600 28px/1.2 var(--font-display); letter-spacing: -0.02em; padding: 10px 0; border-radius: 0; }
  .nav-links a[aria-current="page"] { color: var(--faint); }
  .nav-whop { display: block !important; color: var(--accent) !important; margin-top: 16px; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 100px); text-align: center; overflow: hidden; }
.hero-title { font-size: clamp(48px, 9vw, 96px); line-height: 1.04; letter-spacing: -0.035em; }
.hero-sub { font: 600 clamp(24px, 3.6vw, 40px)/1.12 var(--font-display); letter-spacing: -0.025em; margin-top: 10px; }
.hero-meta { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); margin-top: 18px; line-height: 1.4; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 30px; }
.hero-links.left { justify-content: flex-start; }
.hero-shot { margin-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(56px, 8vw, 100px); }

/* device frame for screenshots: the big surface reads thicker */
.device { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-device); border: 1px solid var(--hair); }
.device-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 13px; background: var(--bg-tint); border-bottom: 1px solid var(--hair); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.device-screen { position: relative; }
.device img { width: 100%; height: auto; }
@media (prefers-color-scheme: dark) { .device img { filter: brightness(0.88); } }
.shot-missing { aspect-ratio: 1440 / 820; display: grid; place-items: center; color: var(--faint); background: var(--bg-tint); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* the product rises into place as it scrolls into view */
    .device-hero { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes rise { from { transform: translateY(40px) scale(0.94); } to { transform: none; } }
  }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-tint { background: var(--bg-tint); }
.section-flush { padding-top: 0; }
.section-title { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.07; letter-spacing: -0.03em; margin-bottom: clamp(32px, 5vw, 56px); }
.lede-sm { color: var(--muted); font-size: 19px; margin-top: -24px; }
.kicker { font: 600 17px/1.2 var(--font-text); color: var(--faint); margin-bottom: 10px; }

/* bento highlights */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile { background: var(--surface); border-radius: 28px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.tile-wide { grid-column: 1 / -1; min-height: 0; }
.tile > svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 10px; }
.tile h3 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.12; letter-spacing: -0.025em; }
.tile p { color: var(--muted); font-size: 17px; max-width: 46ch; }
.tile-big { font: 700 clamp(44px, 6vw, 64px)/1 var(--font-display) !important; letter-spacing: -0.04em; color: var(--text) !important; margin-bottom: 6px; }
.tile-dark { background: var(--dark-bg); }
.tile-dark h3 { color: #f5f5f7; }
.tile-dark p { color: #a1a1a6; }
.tile-dark > svg { color: #f5f5f7; }
.cmd { margin: 14px 0 0; align-self: flex-start; padding: 12px 18px; border-radius: 12px; background: var(--bg-tint); font: 15px var(--font-mono); }
@media (max-width: 700px) { .bento { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* story: the screenshot stays put while the text scrolls past */
.story { padding: clamp(40px, 6vw, 80px) 0; }
.story-grid { max-width: var(--wrap-wide); display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.35fr); gap: clamp(32px, 5vw, 72px); }
.story-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; transition: opacity 400ms var(--ease); }
.story-step h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
.story-step > p:not(.kicker) { color: var(--muted); font-size: 19px; margin-top: 18px; max-width: 34ch; }
.js .story-step:not(.active) { opacity: 0.32; }
.story-media { position: relative; }
.story-sticky { position: sticky; top: max(84px, calc(50vh - 250px)); }
.story-layer { transition: opacity 500ms var(--ease); }
.story-layer:not(:first-child) { position: absolute; inset: 0; }
.story-layer:not(.on) { opacity: 0; }
.story-inline { display: none; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-media { display: none; }
  .story-step { min-height: 0; padding: 36px 0; }
  .js .story-step:not(.active) { opacity: 1; }
  .story-inline { display: block; margin-top: 28px; }
}

/* features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; }
.feature svg { width: 32px; height: 32px; color: var(--text); margin-bottom: 16px; }
.feature h3 { font-size: 19px; letter-spacing: -0.015em; }
.feature p { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.5; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; gap: 32px; } }

/* security: always a dark section */
.security { background: var(--dark-bg); color: #f5f5f7; }
.security .section-title { color: #f5f5f7; }
.security .dim { color: #86868b; }
.security-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.security-list li { background: var(--dark-tile); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 18px; font: 600 21px/1.2 var(--font-display); letter-spacing: -0.02em; min-height: 170px; }
.security-list svg { width: 32px; height: 32px; color: #f5f5f7; }
.security-note { color: #a1a1a6; font-size: 19px; margin-top: 40px; max-width: 52ch; }
@media (max-width: 900px) { .security-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .security-list { grid-template-columns: 1fr; } .security-list li { min-height: 0; } }

/* comparison */
.compare { border-top: 1px solid var(--border); }
.compare-head, .compare-row { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 16px; align-items: center; }
.compare-head { padding: 28px 0 22px; border-bottom: 1px solid var(--border); text-align: center; }
.compare-head h3 { font-size: 21px; letter-spacing: -0.02em; }
.compare-price { font: 600 17px var(--font-text); margin-top: 6px; }
.compare-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.compare-row { padding: 15px 0; border-bottom: 1px solid var(--hair); text-align: center; font-size: 15px; }
.compare-label { text-align: left; color: var(--text); }
.compare .yes svg { width: 22px; height: 22px; color: var(--ok); margin: auto; }
.compare .no svg { width: 18px; height: 18px; color: var(--faint); margin: auto; }
.compare .txt { color: var(--muted); font-size: 14px; }
.compare-more { margin-top: 36px; }
@media (max-width: 720px) {
  .compare-head { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare-head > div:first-child { display: none; }
  .compare-head h3 { font-size: 16px; }
  .compare-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .compare-label { grid-column: 1 / -1; text-align: center; font-weight: 600; }
}

/* in the box */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.box-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.box-list li { display: flex; gap: 18px; padding: 22px 24px; border-radius: 20px; background: var(--surface); }
.box-list svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.box-list strong { display: block; font: 600 17px var(--font-display); letter-spacing: -0.015em; }
.box-list span { display: block; color: var(--muted); font-size: 15px; margin-top: 3px; }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(64px, 9vw, 112px) 0 clamp(40px, 6vw, 64px); }
.page-head h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.05; letter-spacing: -0.035em; }
.lede { font-size: clamp(19px, 2vw, 24px); color: var(--muted); line-height: 1.38; margin: 20px auto 0; max-width: 40ch; letter-spacing: -0.015em; }
.page-head-doc { padding-bottom: 32px; }
.page-head-doc h1 { font-size: clamp(36px, 5vw, 56px); }
.page-head-doc .muted { margin-top: 12px; font-size: 15px; }
.note { margin-top: 40px; color: var(--muted); font-size: 15px; }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 960px) { .prices { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.price { background: var(--bg-tint); border-radius: 28px; padding: 36px 30px; }
.price-mid { box-shadow: inset 0 0 0 2px var(--btn); }
.price header { text-align: center; padding-bottom: 28px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.price-edition { color: var(--faint); font-size: 14px; font-weight: 600; }
.price h2 { font-size: 24px; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.15; }
@media (min-width: 961px) { .price h2 { min-height: 2.3em; display: grid; place-items: center; } }
.amount { font: 600 32px/1.1 var(--font-display); letter-spacing: -0.03em; margin-top: 18px; }
.amount span { display: block; font: 400 14px var(--font-text); color: var(--muted); letter-spacing: -0.01em; margin-top: 6px; }
.price-summary { color: var(--muted); font-size: 15px; margin: 14px 0 22px; }
.price h3 { font: 600 14px var(--font-text); color: var(--faint); margin: 26px 0 12px; letter-spacing: -0.005em; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ticks.yes svg { color: var(--ok); }
.ticks.no svg { color: var(--faint); }
.ticks.no li { color: var(--muted); }
.price .small + .small { margin-top: 6px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 22px; padding-bottom: 40px; position: relative; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 54px; bottom: 8px; width: 2px; background: var(--border); border-radius: 2px; }
.step-n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 600 19px var(--font-display); background: var(--text); color: var(--bg); }
.steps h2 { font-size: 24px; letter-spacing: -0.02em; margin-top: 10px; }
.steps p { color: var(--muted); margin-top: 6px; }
.callout { display: flex; gap: 16px; align-items: flex-start; padding: 24px 26px; border-radius: 20px; background: var(--bg-tint); margin-top: 8px; }
.callout svg { width: 26px; height: 26px; color: var(--accent); flex: none; }

/* faq */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; font: 600 21px/1.25 var(--font-display); letter-spacing: -0.02em; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 16px; height: 16px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; border-radius: 2px; background: var(--muted); transition: transform 280ms var(--ease-out); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq-a { padding: 0 0 26px; color: var(--muted); max-width: 62ch; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; max-width: 560px; } }
.card { background: var(--bg-tint); border-radius: 24px; }
.contact-card { padding: 30px; color: inherit; text-decoration: none !important; display: flex; flex-direction: column; gap: 6px; transition: transform 100ms ease-out; }
a.contact-card:active { transform: scale(0.985); }
.contact-card svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; }
.contact-card h2 { font: 600 14px var(--font-text); color: var(--faint); }
.contact-card .big { font: 600 21px/1.25 var(--font-display); letter-spacing: -0.02em; word-break: break-word; }
.details-box { border-top: 1px solid var(--border); padding-top: 32px; }
.details-box h2 { font-size: 28px; letter-spacing: -0.025em; margin-bottom: 18px; }
.details-box dl { margin: 0; display: grid; }
.details-box dl div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.details-box dt { color: var(--muted); }
.details-box dd { margin: 0; }
@media (max-width: 600px) { .details-box dl div { grid-template-columns: 1fr; gap: 2px; } }

/* about */
.lede-about { font: 600 clamp(22px, 2.6vw, 28px)/1.3 var(--font-display); letter-spacing: -0.02em; text-align: center; max-width: 30ch; margin: 0 auto 56px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 56px; }
.principles > div { background: var(--bg-tint); border-radius: 24px; padding: 28px; }
.principles svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 16px; }
.principles h2 { font-size: 21px; letter-spacing: -0.02em; }
.principles p { color: var(--muted); font-size: 15px; margin-top: 8px; }
@media (max-width: 800px) { .principles { grid-template-columns: 1fr; } }

/* changelog */
.release { border-top: 1px solid var(--border); padding-top: 32px; }
.release header { margin-bottom: 18px; }
.release-tag { font: 700 28px var(--font-display); letter-spacing: -0.025em; }

/* ---------- documents (legal pages, installation guide) ---------- */
.doc-grid { max-width: var(--wrap-wide); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 1px; font-size: 14px; max-height: calc(100vh - 100px); overflow: auto; padding-bottom: 20px; }
.toc p { font-weight: 600; color: var(--text); margin-bottom: 10px; }
.toc a { color: var(--muted); padding: 6px 12px; border-radius: 8px; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--text); background: var(--bg-tint); }
.toc a.active { color: var(--text); background: var(--bg-tint); font-weight: 600; }
@media (max-width: 900px) { .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }
.prose { max-width: 70ch; line-height: 1.6; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 28px; letter-spacing: -0.025em; margin-top: 2em; line-height: 1.15; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; letter-spacing: -0.015em; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose li > * + * { margin-top: 0.6em; }
.prose li::marker { color: var(--faint); }
.prose strong { font-weight: 600; }
.prose a, .prose p { overflow-wrap: anywhere; }
.prose :not(pre) > code { background: var(--bg-tint); padding: 0.12em 0.4em; border-radius: 6px; }
.prose pre { background: var(--bg-tint); border-radius: 14px; padding: 16px 18px; overflow-x: auto; font: 14px/1.6 var(--font-mono); }
.prose pre code { font-size: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 18px 22px; border-radius: 16px; background: var(--bg-tint); font-size: 16px; }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.prose th { background: var(--bg-tint); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.license { white-space: pre-wrap; word-break: break-word; font: 14px/1.7 var(--font-mono); background: var(--bg-tint); border-radius: 20px; padding: clamp(22px, 4vw, 36px); margin: 0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-tint); color: var(--muted); font-size: 12px; line-height: 1.5; padding: 22px 0 28px; letter-spacing: -0.005em; }
.footer-note { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 22px 0 26px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer h2 { font: 600 12px var(--font-text); color: var(--text); margin-bottom: 2px; }
.footer nav a { color: var(--muted); word-break: break-word; }
.footer nav a:hover { color: var(--text); }
.footer-legal { border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer-legal a { color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- reveal on scroll (only when motion is welcome and JS runs) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .btn:active, a.contact-card:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: var(--text); --faint: var(--text); --border: var(--text); --hair: var(--text); --nav-bg: var(--bg); }
  .nav { -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--text); }
  .js .story-step:not(.active) { opacity: 1; }
}
@media print {
  .nav, .footer, .toc { display: none; }
  .doc-grid { display: block; }
}
