/* MZForge public website — shares the desktop app's Sage Light / Cosmic Dark identity.
   No framework, no webfonts: the Windows/system stack matches the packaged app. */

/* ---------- tokens ---------- */
:root,
html[data-theme="sage"] {
  color-scheme: light;
  --bg: #eef4e8;
  --bg-2: #e2ecdb;
  --surface: rgba(255, 255, 255, .74);
  --surface-solid: #f9fbf4;
  --surface-sunk: #e5eedf;
  --ink: #15302a;
  --muted: #4b6158;
  --line: rgba(32, 74, 60, .16);
  --line-strong: rgba(32, 74, 60, .3);
  --accent: #2e6a4f;
  --accent-ink: #ffffff;
  --accent-soft: #d5e7d3;
  --gold: #7d5f1c;
  --gold-soft: #f1e6c7;
  --good: #23704a;
  --warn: #8a5a00;
  --glow: rgba(70, 138, 93, .22);
  --shadow: 0 24px 64px rgba(28, 58, 46, .13);
  --art-shade: linear-gradient(180deg, rgba(14, 30, 24, 0) 30%, rgba(14, 30, 24, .62));
  --focus: #1f5aa6;
  --logo-sage: inline;
  --logo-cosmic: none;
  --show-sage: block;
  --show-cosmic: none;
}
html[data-theme="cosmic"] {
  color-scheme: dark;
  --bg: #0b0920;
  --bg-2: #120c2b;
  --surface: rgba(26, 19, 54, .72);
  --surface-solid: #18112f;
  --surface-sunk: #100b26;
  --ink: #f4efff;
  --muted: #c3b8da;
  --line: rgba(178, 140, 255, .2);
  --line-strong: rgba(178, 140, 255, .38);
  --accent: #a77bff;
  --accent-ink: #160b33;
  --accent-soft: #2a1a50;
  --gold: #e7c98a;
  --gold-soft: #2c2236;
  --good: #7fd8a3;
  --warn: #f2c86b;
  --glow: rgba(137, 84, 255, .28);
  --shadow: 0 28px 80px rgba(0, 0, 0, .42);
  --art-shade: linear-gradient(180deg, rgba(9, 6, 26, 0) 25%, rgba(9, 6, 26, .78));
  --focus: #ffd47a;
  --logo-sage: none;
  --logo-cosmic: inline;
  --show-sage: none;
  --show-cosmic: block;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    color-scheme: dark;
    --bg: #0b0920; --bg-2: #120c2b; --surface: rgba(26, 19, 54, .72); --surface-solid: #18112f; --surface-sunk: #100b26;
    --ink: #f4efff; --muted: #c3b8da; --line: rgba(178, 140, 255, .2); --line-strong: rgba(178, 140, 255, .38);
    --accent: #a77bff; --accent-ink: #160b33; --accent-soft: #2a1a50; --gold: #e7c98a; --gold-soft: #2c2236;
    --good: #7fd8a3; --warn: #f2c86b; --glow: rgba(137, 84, 255, .28); --shadow: 0 28px 80px rgba(0, 0, 0, .42);
    --art-shade: linear-gradient(180deg, rgba(9, 6, 26, 0) 25%, rgba(9, 6, 26, .78)); --focus: #ffd47a;
    --logo-sage: none; --logo-cosmic: inline; --show-sage: none; --show-cosmic: block;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg-2); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, var(--glow), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3 { text-wrap: balance; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(32px, 4.2vw, 50px); letter-spacing: -.03em; font-weight: 750; }
h3 { font-size: 20px; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
code, kbd { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: .9em; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--surface-solid); }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.hidden { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.logo-sage { display: var(--logo-sage); }
.logo-cosmic { display: var(--logo-cosmic); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--surface-solid); color: var(--ink); padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-strong); font-weight: 700; }
.skip-link:focus { top: 12px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-shell { height: 72px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand picture, .brand img { width: 40px; height: 40px; }
.brand picture.logo-sage { display: var(--logo-sage); }
.brand picture.logo-cosmic { display: var(--logo-cosmic); }
.brand b { display: block; font-size: 18px; letter-spacing: .01em; line-height: 1.1; }
.brand small { display: block; font-size: 13px; color: var(--muted); line-height: 1.2; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 650; font-size: 15px; text-decoration: none; }
.main-nav a:hover { color: var(--ink); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.theme-switch button {
  border: 0; background: transparent; cursor: pointer; border-radius: 9px;
  padding: 6px 10px; font-size: 13px; font-weight: 650; color: var(--muted); line-height: 1.2;
}
.theme-switch button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.menu-button {
  display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 12px;
  height: 42px; padding: 0 14px; cursor: pointer; font-weight: 700; align-items: center; gap: 8px;
}
.menu-button svg { width: 18px; height: 18px; }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px 0 16px; }
.mobile-nav a { display: block; padding: 12px 4px; font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .theme-switch { margin-top: 14px; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 18px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 10px 28px var(--glow); }
.button.primary:hover { transform: translateY(-1px); }
.button.small { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.button .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.button .stack small { font-size: 13px; font-weight: 600; opacity: .86; }
.button.is-disabled, .button[aria-disabled="true"] {
  background: var(--surface-sunk); color: var(--muted); border: 1px dashed var(--line-strong);
  box-shadow: none; cursor: default; transform: none !important;
}
.button svg { width: 18px; height: 18px; flex: none; }


/* ---------- hero ---------- */
.hero-wrap { position: relative; isolation: isolate; overflow: hidden; }
.hero-art { position: absolute; inset: 0 0 auto 0; height: min(80%, 640px); z-index: -1; pointer-events: none; }
.hero-art picture, .hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 78%, transparent) 0%, color-mix(in srgb, var(--bg) 30%, transparent) 60%, color-mix(in srgb, var(--bg) 10%, transparent) 100%), linear-gradient(180deg, transparent 40%, var(--bg) 100%); }
.hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 44px; align-items: center; padding: 64px 0 72px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--muted); border: 1px solid var(--line); background: var(--surface); padding: 5px 12px 5px 8px; border-radius: 999px; }
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.hero h1 { font-size: clamp(48px, 5.5vw, 82px); font-weight: 800; letter-spacing: -.05em; line-height: .95; margin: 22px 0 18px; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .last { color: var(--accent); }
.hero .tagline { font-size: 21px; font-weight: 650; margin-bottom: 10px; }
.hero .lead { color: var(--muted); font-size: 18px; max-width: 30em; }
.download { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; scroll-margin-top: 96px; }
.download-meta { list-style: none; margin: 14px 0 0; padding: 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.download-meta li { display: inline-flex; align-items: center; gap: 7px; }
.download-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }
.hero-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.hero-note a { color: var(--accent); font-weight: 650; }
.hero-visual { margin: 0; position: relative; perspective: 1600px; }
.hero-visual::before { content: ""; position: absolute; inset: 8% -6% -10% 4%; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(10px); z-index: -1; }
.app-window { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 0 0 6px color-mix(in srgb, var(--surface) 50%, transparent); background: var(--surface-sunk); aspect-ratio: 16 / 10; transform: rotateY(-7deg) rotateX(2deg); transform-origin: 30% 50%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hero-visual:hover .app-window { transform: none; }
.app-window picture, .app-window img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual figcaption, .fine { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.hero-visual figcaption { text-align: center; }
.store-button { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 16px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .25); }
.store-button svg { width: 22px; height: 22px; }
.store-button .stack { display: flex; flex-direction: column; line-height: 1.1; }
.store-button small { font-size: 11px; opacity: .85; }
.store-button .stack span { font-weight: 700; font-size: 16px; }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-title { margin-bottom: 32px; }
.section-lead { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 28em; }

/* feature cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards li { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 22px; }
.cards svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 12px; display: block; }
.cards b { display: block; font-size: 18px; margin-bottom: 4px; }
.cards p { color: var(--muted); font-size: 15.5px; }

/* three steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px; }
.steps b { display: block; font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15.5px; }
.steps a { color: var(--accent); font-weight: 650; }
.steps strong { color: var(--ink); }

/* multi-host */
.multihost { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent-soft) 38%, transparent) 30%, transparent); }
.mh-simple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.mh-simple .section-title { margin-bottom: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 16px 18px 16px 52px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 20px; top: 21px; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.ticks b { display: block; font-size: 17px; }
.ticks span { color: var(--muted); font-size: 15.5px; }

/* faq */
.faq details { max-width: 820px; border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details > div { padding: 0 0 20px; color: var(--muted); max-width: 44em; }
.faq details > div strong { color: var(--ink); }

/* support */
.support-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 22px; align-items: start; }
.help-list { display: grid; gap: 12px; }
.help-card { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 18px; text-decoration: none; }
a.help-card[href]:hover { border-color: var(--accent); }
.help-card .icon { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.help-card .icon svg { width: 22px; height: 22px; }
.help-card b { display: block; font-size: 17px; }
.help-card p { color: var(--muted); font-size: 15px; }
.help-card p strong { color: var(--ink); }
.help-card.unavailable { border-style: dashed; }
.tips { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tips h3 { font-size: 17px; margin-bottom: 6px; }
.tips > p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.tip-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tip-links a { display: flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; font-weight: 650; font-size: 15px; text-decoration: none; background: var(--surface-solid); text-align: center; }
.tip-links a:hover { border-color: var(--gold); }
.tip-links svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.tip-links .fine { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0 34px; font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: block; }
.footer-brand img { width: 32px; height: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { margin-top: 18px; color: var(--muted); font-size: 13.5px; }

/* ---------- inner pages ---------- */
.page-hero { padding: 64px 0 28px; max-width: 46em; }
.page-hero h1 { font-size: clamp(42px, 6vw, 68px); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin: 6px 0 14px; }
.page-hero p { color: var(--muted); font-size: 19px; }
.prose { max-width: 44em; padding-bottom: 80px; }
.prose > section { padding: 24px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.prose > section:first-child { border-top: 0; padding-top: 0; }
.prose h2 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0 0; }
.prose li + li { margin-top: 6px; }
.prose strong, .prose b { color: var(--ink); }
.prose a { color: var(--accent); font-weight: 650; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 800; margin-right: 10px; vertical-align: 3px; }
.page-download { margin: 16px 0 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.file-check { margin-top: 14px; font-size: 14px; color: var(--muted); }
.file-check summary { cursor: pointer; font-weight: 650; }
.checksum { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.checksum code { padding: 4px 8px; border-radius: 8px; background: var(--surface-sunk); border: 1px solid var(--line); word-break: break-all; color: var(--ink); }
.copy-button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; padding: 4px 10px; cursor: pointer; font-size: 13px; font-weight: 650; }
.release { padding: 20px 0; border-top: 1px solid var(--line); }
.release:first-of-type { border-top: 0; padding-top: 0; }
.release h2 { font-size: 22px; margin: 0 0 4px; }
.release ul { margin-top: 8px; }
.notfound { padding: 120px 0; text-align: center; }
.notfound h1 { font-size: clamp(44px, 6vw, 68px); margin-bottom: 12px; }
.notfound p { color: var(--muted); margin-bottom: 24px; }
.notfound .button { margin: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .main-nav, .nav-actions .theme-switch { display: none; }
  .menu-button { display: inline-flex; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .hero-visual { max-width: 760px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh-simple, .support-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (min-width: 1061px) { .mobile-nav { display: none !important; } }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell { width: calc(100% - 32px); }
  .nav-shell { height: 64px; gap: 12px; }
  .brand small { display: none; }
  .nav-actions .button { display: none; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: clamp(46px, 14.5vw, 70px); }
  .hero .tagline { font-size: 18px; }
  .download .button { width: 100%; justify-content: flex-start; }
  .section { padding: 60px 0; }
  .section-title { margin-bottom: 24px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .tip-links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface-solid); }
}
@media print {
  .site-header, .skip-link, .theme-switch, .menu-button, .tips { display: none !important; }
  body { background: #fff; color: #000; }
}


/* Beta 15.10.15 — Remote Host beta */
.remotehost{background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--gold-soft) 32%,transparent) 38%,transparent)}
.rh-simple{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center}
.rh-simple .section-title{margin:12px 0 0}.roadmap-badge{display:inline-flex;border:1px solid var(--line-strong);background:var(--surface);border-radius:999px;padding:6px 10px;color:var(--accent);font-size:12px;font-weight:800;letter-spacing:.08em}
.rh-note{margin-top:18px;color:var(--muted);font-size:15.5px;max-width:34em}.rh-note strong{color:var(--ink)}
.rh-flow{list-style:none;margin:0;padding:0;display:grid;gap:12px;counter-reset:rhflow}.rh-flow li{counter-increment:rhflow;border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:16px 18px 16px 58px;position:relative}.rh-flow li::before{content:counter(rhflow);position:absolute;left:18px;top:16px;width:28px;height:28px;border-radius:9px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;font-weight:800}.rh-flow b{display:block;font-size:17px}.rh-flow span{color:var(--muted);font-size:15.5px}
@media (max-width:820px){.rh-simple{grid-template-columns:1fr;gap:24px}}


/* Beta 15.10.18.8 website — tour, gallery, world clock, release facts */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-head { margin-bottom: 30px; }
.section-head .section-title { margin-bottom: 0; }
section[id] { scroll-margin-top: 80px; }

.tour-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.video-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); background: #0b0920; aspect-ratio: 16 / 10; }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chapters button { width: 100%; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; transition: border-color .15s ease, background-color .15s ease; }
.chapters button:hover { border-color: var(--accent); }
.chapters button[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.chapters .time { grid-row: span 2; font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 13px; color: var(--accent); font-weight: 700; }
.chapters b { font-size: 16px; }
.chapters span:not(.time) { color: var(--muted); font-size: 14px; line-height: 1.4; }

.gallery-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.gallery-tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 8px 14px; font-weight: 650; font-size: 14.5px; cursor: pointer; }
.gallery-tabs button:hover { color: var(--ink); border-color: var(--line-strong); }
.gallery-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.gallery-stage { border-radius: 20px; border: 1px solid var(--line); background: var(--surface); padding: 12px; box-shadow: var(--shadow); }
.gallery-panel figure { margin: 0; }
.gallery-panel img { width: 100%; height: auto; border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-sunk); }
.gallery-panel figcaption { padding: 12px 6px 4px; color: var(--muted); font-size: 15.5px; }
.gallery-panel figcaption b { color: var(--ink); }

.world { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent-soft) 45%, transparent) 40%, transparent); }
.world-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; }
.world-grid .section-title { margin-bottom: 0; }
.world-controls { margin-top: 26px; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 18px; }
.world-controls label { font-weight: 700; font-size: 15px; display: block; margin-bottom: 8px; }
.world-controls input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; cursor: pointer; margin: 0; }
.world-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.world-readout { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.world-readout svg { width: 20px; height: 20px; color: var(--gold); }
.world-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.world-presets button { border: 1px solid var(--line); background: var(--surface-solid); border-radius: 10px; padding: 6px 12px; font-weight: 650; font-size: 14px; cursor: pointer; color: var(--muted); }
.world-presets button:hover, .world-presets button[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); }
.world-stage { margin: 0; position: relative; display: grid; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); background: var(--surface-sunk); }
.world-shot { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1200 / 566; opacity: 0; transition: opacity 1.2s ease; }
.world-shot.is-active { opacity: 1; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.fact { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 20px; }
.fact h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 12px; }
.fact h3 svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.fact p, .fact li, .fact dd { color: var(--muted); font-size: 15px; }
.fact p + p, .fact p + .store-button, .fact ul + details { margin-top: 12px; }
.fact a { color: var(--accent); font-weight: 650; }
.fact a.store-button { color: #fff; }
.fact b { color: var(--ink); }
.fact dl { margin: 0 0 12px; display: grid; gap: 8px; }
.fact dl div { display: grid; gap: 1px; }
.fact dt { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 0; color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.fact code { font-size: 13px; overflow-wrap: anywhere; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 24px; line-height: 1.45; }
.check-list li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 10px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.fact .file-check p { margin-top: 8px; font-size: 14px; }
.fact .checksum code { font-size: 12px; }

.disclaimer { margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.footer-legal { margin-top: 6px; }

@media (max-width: 1240px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1060px) {
  .app-window { transform: none; }
  .tour-grid, .world-grid { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .facts, .chapters { grid-template-columns: 1fr; }
  .gallery-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; margin-inline: -16px; padding-inline: 16px; padding-bottom: 4px; }
  .gallery-tabs button { flex: none; }
  .gallery-stage { padding: 8px; border-radius: 16px; }
  .hero-art { height: 560px; }
  .download .store-button { width: 100%; }
  .world-stage { order: -1; }
  .world-grid { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-window { transform: none; }
  .world-shot { transition: none; }
}

/* ---------- multi-page site (v3) ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.main-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.mobile-nav a[aria-current="page"] { padding-inline: 10px; border-radius: 10px; }
.button.big { min-height: 58px; padding: 12px 22px; font-size: 18px; }
.button.big .stack small { font-size: 14px; }
a.button svg:last-child:not(:first-child) { margin-left: -2px; }

.page-intro { padding: 52px 0 18px; display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; }
.page-intro > div { max-width: 780px; }
.page-intro h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin: 6px 0 14px; }
.page-intro p { color: var(--muted); font-size: 18px; }
.page-intro .button { flex: none; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 650; font-size: 14.5px; text-decoration: none; margin-bottom: 14px; }
.crumb:hover { color: var(--accent); }
.crumb svg { width: 16px; height: 16px; }
.page-intro .crumb + .eyebrow { display: block; }

/* home: linked steps, quick links, what you need */
.steps-linked li { padding: 0; }
.steps-linked li::before { margin: 22px 22px 14px; }
.steps-linked a { display: block; padding: 0 22px 22px; text-decoration: none; color: inherit; }
.steps-linked li:has(a:hover) { border-color: var(--accent); }
.steps-linked .more, .quick-link .go, .tutorial-tile .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--accent); font-weight: 700; font-size: 15px; }
.steps-linked .more svg, .quick-link .go svg, .tutorial-tile .go svg { width: 16px; height: 16px; transition: transform .15s ease; }
.steps-linked a:hover .more svg, .quick-link:hover .go svg, .tutorial-tile:hover .go svg { transform: translateX(3px); }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quick-link { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.quick-link:hover { border-color: var(--accent); transform: translateY(-3px); }
.quick-link .kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.quick-link b { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.quick-link > span:not(.kicker):not(.go) { color: var(--muted); font-size: 15px; }
.quick-link .go { margin-top: auto; padding-top: 6px; }
.need-band, .split-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: 26px 28px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent-soft) 45%, var(--surface))); }
.need-band h2, .split-note h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.need-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.need-list li, .split-note li { color: var(--muted); }
.need-list a { color: var(--accent); font-weight: 650; }
.need-actions { display: flex; flex-direction: column; gap: 10px; }

/* split promo */
.split-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.split-promo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.split-promo h2 { font-size: clamp(26px, 3vw, 40px); }
.split-promo p { color: var(--muted); margin: 12px 0 20px; }

/* download page */
.get-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 30px; border: 1px solid var(--line-strong); border-radius: 26px; background: linear-gradient(135deg, var(--surface-solid), color-mix(in srgb, var(--accent-soft) 55%, var(--surface-solid))); box-shadow: var(--shadow); margin-top: 8px; }
.get-card h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.03em; }
.get-sub { color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.get-card .download { margin-top: 22px; }
.get-card .fine a { color: var(--accent); font-weight: 650; }
.get-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.install-steps p a { color: var(--accent); font-weight: 650; }
.mini-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.mini-notes p { color: var(--muted); font-size: 15px; padding: 16px 18px; border-radius: 16px; border: 1px dashed var(--line-strong); }
.mini-notes b { color: var(--ink); }
.mini-notes a { color: var(--accent); font-weight: 650; }

/* tutorials */
.tutorial-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tutorial-tile { display: flex; flex-direction: column; height: 100%; padding: 14px 14px 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.tutorial-tile:hover { border-color: var(--accent); transform: translateY(-3px); }
.tutorial-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 13px; border: 1px solid var(--line); }
.tutorial-tile .count { margin: 16px 8px 0; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.tutorial-tile h2 { font-size: 26px; margin: 8px 8px 8px; letter-spacing: -.02em; }
.tutorial-tile p { color: var(--muted); font-size: 15.5px; margin: 0 8px; }
.tutorial-tile .go { margin: auto 8px 0; padding-top: 14px; }

/* guides */
.guide-shell { padding-bottom: 64px; }
.guide-progress { display: none; gap: 7px; margin: 6px 0 18px; }
.is-paged .guide-progress { display: flex; }
.guide-progress button { flex: 1; height: 10px; border-radius: 99px; background: var(--surface-sunk); border: 1px solid var(--line); cursor: pointer; padding: 0; }
.guide-progress button[data-completed="true"] { background: var(--accent); border-color: var(--accent); }
.guide-main { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.guide-step { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.is-paged .guide-step { min-height: 440px; }
.guide-step[hidden] { display: none !important; }
.guide-step .eyebrow { margin-bottom: 4px; }
.guide-step h2 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -.035em; margin: 6px 0 14px; outline: none; }
.guide-step p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.guide-step strong { color: var(--ink); }
.guide-visual { margin: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-sunk); padding: 10px; }
.guide-visual img { width: 100%; height: auto; border-radius: 10px; }
.guide-visual figcaption { color: var(--muted); font-size: 12.5px; margin: 8px 4px 0; }
.guide-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.guide-footer[hidden] { display: none; }
.guide-footer .counter { color: var(--ink); font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.guide-hint { color: var(--muted); font-size: 13.5px; margin-right: auto; }
.guide-footer .controls { display: flex; gap: 10px; }
.guide-footer .controls [hidden] { display: none; }
.guide-footer button:disabled { opacity: .4; cursor: not-allowed; }
.guide-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.guide-more a { color: var(--accent); font-weight: 650; }

/* footer columns */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-logo { display: flex; gap: 10px; align-items: center; }
.footer-logo img { width: 32px; height: 32px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 10px; line-height: 1.5; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col h2 { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.footer-col a { font-size: 15px; }

/* 404 + deployment check */
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.notfound .button { margin: 0; }
.release-check { padding-bottom: 80px; }
.check-status { font-weight: 750; font-size: 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); }
.check-status.ok, .check-results .ok b { color: var(--good); }
.check-status.bad, .check-results .bad b { color: #d14b4b; }
.check-results { list-style: none; padding: 0 !important; display: grid; gap: 8px; margin-top: 14px !important; }
.check-results li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow-wrap: anywhere; }
.check-results span { color: var(--muted); font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 13.5px; }

@media (max-width: 1240px) { .nav-actions .theme-switch button { padding-inline: 8px; } }
@media (max-width: 1060px) {
  .quick-links, .tutorial-index { grid-template-columns: 1fr 1fr; }
  .guide-step, .split-promo, .get-card { grid-template-columns: 1fr; }
  .guide-step .guide-visual { order: -1; }
  .mini-notes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .page-intro { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .quick-links, .tutorial-index, .need-list { grid-template-columns: 1fr; }
  .need-band, .split-note { grid-template-columns: 1fr; padding: 22px 18px; }
  .need-actions .button { width: 100%; }
  .guide-step { padding: 16px; gap: 18px; }
  .guide-hint { display: none; }
  .guide-footer .controls { width: 100%; }
  .guide-footer .controls > * { flex: 1; }
  .get-card { padding: 20px; }
  .button.big { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-intro { padding-top: 36px; }
}
@media (max-width: 400px) { .footer-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .quick-link:hover, .tutorial-tile:hover { transform: none; } }
.get-shot { margin: 0; }
.get-shot figcaption, .world-caption { color: var(--muted); font-size: 12.5px; margin-top: 8px; text-align: center; }
.world-stage .world-caption { grid-area: 2 / 1; padding: 8px 0 10px; margin: 0; }
.nav-download[aria-current="page"] { box-shadow: 0 0 0 3px var(--accent-soft), 0 10px 28px var(--glow); }
