/* backlab.trade — one stylesheet, every page.
   The page shares the app's canvas: pure black, bone text, the user's own tan for rules. The one
   emphasis stays on the interactive app previews. Mono appears only on real numbers. */

@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --black: #000000;
  --raise: #0e0d0c;
  --bone: #ede6da;
  --tan: #c2baae;
  --ash: #8a847b;
  --rule: rgb(194 186 174 / 0.16);
  --rule-2: rgb(194 186 174 / 0.30);
  --gold: #f5b841;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --side: clamp(16px, 4vw, 56px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--black); color: var(--bone); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font: 0.9em var(--mono); color: var(--bone); }
kbd { display: inline-block; min-width: 1.9em; padding: 1px 6px; border: 1px solid var(--rule-2); border-radius: 6px; font: 500 0.82em/1.5 var(--mono); color: var(--bone); text-align: center; white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--black); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--side); }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 16px; background: var(--bone); color: var(--black); border-radius: 6px; }
.skip:focus { top: 16px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* type */
.display { font: 600 clamp(46px, 7.4vw, 96px)/0.96 var(--sans); letter-spacing: -0.048em; }
.h-sec { font: 600 clamp(32px, 4vw, 52px)/1.02 var(--sans); letter-spacing: -0.04em; }
.h-sub { font: 600 19px/1.3 var(--sans); letter-spacing: -0.015em; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--tan); max-width: 46ch; }
.body { color: var(--tan); max-width: 56ch; }
.small { font-size: 14px; color: var(--ash); }

/* buttons: bone is the primary action colour */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 22px; border: 1px solid var(--bone); border-radius: 999px; background: var(--bone); color: var(--black); font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); }
.btn:hover { background: #fff; border-color: #fff; }
.btn:active { background: var(--tan); border-color: var(--tan); }
.btn.line { background: transparent; color: var(--bone); border-color: var(--rule-2); }
.btn.line:hover { border-color: var(--bone); }
.btn.line:active { background: rgb(237 230 218 / 0.08); }
.btn.sm { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(0 0 0 / 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease); }
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 44px; height: 68px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 600 18px/1 var(--sans); letter-spacing: -0.03em; text-decoration: none; }
.mark img { border-radius: 23%; box-shadow: 0 0 0 1px var(--rule-2); }
.links { display: flex; gap: 28px; margin-right: auto; }
.links a { color: var(--ash); font-size: 15px; text-decoration: none; transition: color 150ms; }
.links a:hover, .links a[aria-current="true"] { color: var(--bone); }
.tools { display: flex; align-items: center; gap: 20px; }
.burger { display: none; margin-left: auto; }
.burger summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 8px; }
.burger summary::-webkit-details-marker { display: none; }
.burger svg { width: 24px; height: 24px; stroke: var(--bone); stroke-width: 1.8; fill: none; }
.burger .sheet { position: absolute; left: 0; right: 0; top: 68px; display: grid; padding: 8px var(--side) 24px; background: var(--black); border-bottom: 1px solid var(--rule); }
.burger .sheet a:not(.btn) { padding: 14px 0; text-decoration: none; color: var(--tan); border-bottom: 1px solid var(--rule); }
.burger .sheet .btn { margin-top: 20px; }

/* hero */
.hero { padding-top: clamp(56px, 9vw, 128px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.hero-side { display: grid; gap: 28px; padding-bottom: 12px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.plat { font-size: 14px; color: var(--ash); }

/* The first live preview follows the hero with a clear gap. */
.cockpit { position: relative; z-index: 1; width: min(1480px, calc(100% - 2 * var(--side))); margin: clamp(40px, 5vw, 64px) auto 0; }
.frame { position: relative; border: 1px solid var(--rule-2); border-radius: 10px; overflow: hidden; background: #000; }
.frame img { width: 100%; }
.cap { margin-top: 14px; font-size: 14px; color: var(--ash); }

/* section heads: headline left, paragraph right, bottoms aligned */
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sec { padding-top: clamp(104px, 13vw, 176px); }

/* notes under a live panel */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; margin-top: 40px; }
.notes li { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.notes b { font-weight: 600; }
.notes p { font-size: 15px; color: var(--tan); }

/* chapters: headline row, then the picture with its key points beside it */
.row { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 32px clamp(32px, 4vw, 56px); align-items: start; }
.media { display: grid; gap: 14px; }
.media .cap { margin-top: 0; }
.flip .row { grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); }
.row.stack { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.row.stack .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; row-gap: 14px; max-width: none; }
.flip .row .media { order: 2; }
.side { display: grid; gap: 24px; }
.side .frame.cal img { max-height: 460px; object-fit: cover; object-position: top; }
.facts { display: grid; gap: 14px; border-top: 1px solid var(--rule-2); padding-top: 20px; }
.facts li { position: relative; padding-left: 18px; font-size: 15px; color: var(--tan); }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 7px; height: 1px; background: var(--tan); }
.facts b { color: var(--bone); font-weight: 500; }
.pair { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pair .frame.tall img { max-height: 640px; object-fit: cover; object-position: top; }

/* contract sheet */
.contracts { width: 100%; border-collapse: collapse; font-size: 15px; }
.contracts th { text-align: left; font-weight: 500; font-size: 13px; color: var(--ash); padding: 0 16px 12px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
.contracts td { padding: 14px 16px; border-bottom: 1px solid var(--rule); color: var(--tan); white-space: nowrap; }
.contracts td:first-child { color: var(--bone); font-weight: 600; font-family: var(--mono); }
.contracts .r { text-align: right; }
.contracts tbody tr:hover td { background: var(--raise); }
.contracts th.grp { padding-top: 32px; color: var(--bone); font-size: 14px; font-weight: 600; }
.scroll-x { overflow-x: auto; }

/* install */
.install { padding: clamp(104px, 13vw, 176px) 0 clamp(80px, 10vw, 128px); }
.install-grid { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--rule-2); border-radius: 12px; }
.install-grid > div { display: grid; gap: 18px; align-content: start; padding: clamp(24px, 3.5vw, 44px); }
.step { font-size: 14px; color: var(--gold); font-weight: 500; }
.status { font-size: 14px; color: var(--ash); min-height: 1.6em; }
.status a { color: var(--tan); }
.dl-row { display: flex; flex-wrap: wrap; gap: 12px; }
.mac-steps { min-width: 0; display: grid; gap: 10px; padding: 20px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--raise); }
.cmd { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border: 1px solid var(--rule-2); border-radius: 8px; background: #000; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 14px; color: var(--bone); }
.mac-steps ol { display: grid; gap: 10px; margin-top: 6px; counter-reset: s; }
.mac-steps li { position: relative; padding-left: 32px; font-size: 15px; color: var(--tan); counter-increment: s; }
.mac-steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font: 600 12px/1 var(--sans); }
.mac-steps b { color: var(--bone); font-weight: 600; }
.mac-steps a { color: var(--bone); text-underline-offset: 3px; }
.help summary { cursor: pointer; font-size: 14px; color: var(--tan); padding: 4px 0; }
.help summary:hover { color: var(--bone); }
.help p { font-size: 14px; color: var(--tan); margin-top: 12px; }
.build { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; font-size: 14px; color: var(--ash); }
.build b { color: var(--tan); font-weight: 500; }

/* footer */
.foot { padding: 64px 0 48px; border-top: 1px solid var(--rule); }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot .about p { margin-top: 12px; color: var(--ash); font-size: 14px; max-width: 34ch; }
.foot h2 { font: 500 14px/1 var(--sans); color: var(--bone); margin-bottom: 16px; }
.foot ul { display: grid; gap: 10px; }
.foot ul a { color: var(--ash); text-decoration: none; font-size: 14px; }
.foot ul a:hover { color: var(--bone); }
.risk { display: grid; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); }
.risk p { font-size: 12px; line-height: 1.6; color: var(--ash); max-width: 110ch; }

/* learn */
.page-head { padding: clamp(64px, 9vw, 128px) 0 56px; border-bottom: 1px solid var(--rule); }
.page-head .wrap { display: grid; gap: 20px; }
.page-head .h-1 { font: 600 clamp(40px, 6vw, 76px)/0.98 var(--sans); letter-spacing: -0.045em; max-width: 16ch; }
.page-head .kicker { font-size: 15px; color: var(--gold); font-weight: 500; }
.jump { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.jump a { font-size: 15px; color: var(--tan); text-underline-offset: 4px; }
.jump a:hover { color: var(--bone); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding: 88px 0; border-bottom: 1px solid var(--rule); }
.article .aside { position: sticky; top: 112px; align-self: start; display: grid; gap: 12px; }
.article .aside .kicker { font-size: 14px; color: var(--gold); font-weight: 500; }
.article .h-2 { font: 600 clamp(26px, 3vw, 36px)/1.05 var(--sans); letter-spacing: -0.035em; }
.prose { max-width: 65ch; display: grid; gap: 16px; color: var(--tan); }
.prose .h-3 { color: var(--bone); font: 600 18px/1.35 var(--sans); margin-top: 16px; }
.callout { padding: 16px 20px; border-left: 2px solid var(--gold); background: var(--raise); color: var(--bone); border-radius: 0 8px 8px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 500; color: var(--ash); }
.prose td:first-child { font-family: var(--mono); color: var(--bone); }
.prose .num { text-align: right; }
.table-scroll { overflow-x: auto; }
.band { padding: 120px 0; }
.band .wrap { display: grid; justify-items: start; gap: 28px; }
.band .h-1 { font: 600 clamp(32px, 4vw, 52px)/1.02 var(--sans); letter-spacing: -0.04em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; }
.steps li { display: grid; gap: 6px; align-content: start; border-top: 1px solid var(--rule-2); padding-top: 16px; }
.steps .n { color: var(--gold); font-size: 14px; }
.steps p { color: var(--tan); font-size: 15px; }

@media (max-width: 1080px) {
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row, .flip .row { grid-template-columns: 1fr; }
  .row.stack .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flip .row .media { order: 0; }
  .side .frame.cal { max-width: 360px; }
  .facts { max-width: 640px; }
}
@media (max-width: 860px) {
  .links, .tools { display: none; }
  .burger { display: block; }
  .hero-top, .head { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
  .article { grid-template-columns: 1fr; gap: 24px; padding: 56px 0; }
  .article .aside { position: static; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .notes, .pair, .row.stack .facts { grid-template-columns: 1fr; }
  .cta .btn, .dl-row .btn { flex: 1 1 100%; }
  .cockpit { width: 100%; }
  .cockpit .frame { border-radius: 0; border-left: 0; border-right: 0; }
  .cockpit .cap { padding: 0 var(--side); }
}

/* Site polish: clear installation paths and a compact, accessible navigation. */
:root { --ash: #a09a90; --section-space: clamp(88px, 10vw, 136px); }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.hero { padding-top: clamp(48px, 7vw, 96px); }
.hero-title { display: grid; gap: 22px; }
.hero-side { gap: 24px; }
.hero .lede { max-width: 38ch; }
.hero .plat { max-width: 38ch; }
.sec { padding-top: var(--section-space); }
.install { padding-top: var(--section-space); }
.sec[id], .install[id] { scroll-margin-top: calc(24px - var(--section-space)); }
#download, #build { scroll-margin-top: 24px; }
.links { gap: clamp(16px, 2vw, 28px); }
.links a { display: flex; align-items: center; min-height: 44px; position: relative; }
.links a[aria-current] { color: var(--bone); }
.links a[aria-current]::after { content: ''; position: absolute; bottom: 3px; left: 0; right: 0; height: 1px; background: var(--gold); }
.nav .btn.sm { min-height: 40px; }
.burger summary { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.burger[open] summary { background: var(--raise); }
.burger .sheet { max-height: calc(100dvh - 68px); overflow-y: auto; box-shadow: 0 20px 32px rgb(0 0 0 / .5); }
.demo-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.demo-tools p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.demo-tools b { font-weight: 500; }
.demo-tools span { color: var(--ash); }
.demo-tools .btn { min-height: 40px; flex: none; }
.cockpit .demo-tools { padding: 16px 20px; border: 1px solid var(--rule-2); border-bottom: 0; background: #000; border-radius: 10px 10px 0 0; }
.install-grid { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); border: 0; border-radius: 0; gap: 20px; align-items: start; }
.install-grid > .install-card { min-width: 0; display: grid; gap: 22px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--rule-2); border-radius: 14px; }
.mac-steps { background: var(--raise); }
.install-title { display: grid; gap: 12px; }
.install-title h3 { font: 600 clamp(24px, 2.6vw, 32px)/1.12 var(--sans); letter-spacing: -.03em; }
.install-intro { font-size: 15px; color: var(--tan); max-width: 50ch; }
.install-steps { list-style: none; }
.mac-steps ol { gap: 16px; margin: 0; }
.mac-steps li { padding-left: 34px; line-height: 1.7; }
.mac-steps li::before { border-color: var(--rule-2); color: var(--tan); top: 2px; }
.cmd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 14px; border-color: var(--rule-2); }
.cmd code { white-space: normal; overflow-wrap: anywhere; overflow-x: visible; line-height: 1.7; font-size: 13px; user-select: all; }
.cmd .btn { min-width: 74px; min-height: 44px; }
.copy-status { font-size: 13px; line-height: 1.6; color: var(--tan); margin-top: -10px; }
.help { border-top: 1px solid var(--rule); padding-top: 12px; }
.help summary { min-height: 44px; display: list-item; padding: 10px 0; color: var(--bone); font-weight: 500; }
.help p { margin-top: 8px; color: var(--tan); }
.help .dl-row { margin-top: 16px; }
.help .dl-row .btn { min-height: 44px; }
.windows-card { background: #050505; }
.windows-card > .btn { justify-self: start; min-height: 48px; }
.windows-card > .small { margin-top: -12px; font: 12px/1.6 var(--mono); overflow-wrap: anywhere; }
.install-next { display: grid; gap: 12px; border-top: 1px solid var(--rule); padding-top: 28px; margin-top: 8px; }
.install-next a { font-size: 14px; text-underline-offset: 4px; min-height: 32px; }
.build { gap: 8px 24px; padding-top: 8px; }
@media (min-width: 861px) and (max-width: 980px) { .links { display: none; } .burger { display: block; } }
@media (max-width: 980px) {
  .nav .wrap { gap: 12px; }
  .nav .tools { display: flex; margin-left: auto; }
  .burger { margin-left: 0; }
  .install-grid { grid-template-columns: 1fr; }
  .hero-top { gap: 32px; }
}
@media (max-width: 600px) {
  .hero-title { gap: 18px; }
  .hero .lede { font-size: 17px; }
  .hero .cta .btn.line { flex: 0 1 auto; padding-left: 0; border: 0; min-height: 40px; text-decoration: underline; text-underline-offset: 5px; }
  .hero-side { gap: 20px; }
  .demo-tools { align-items: flex-start; gap: 12px; }
  .demo-tools p { display: grid; gap: 4px; }
  .demo-tools span { font-size: 12px; }
  .demo-tools .btn { font-size: 12px; padding: 8px 12px; }
  .cockpit .demo-tools { border-radius: 0; border-left: 0; border-right: 0; padding: 16px; }
  .cmd { grid-template-columns: minmax(0, 1fr); }
  .cmd .btn { width: 100%; }
  .windows-card > .btn { justify-self: stretch; }
  .install-grid > .install-card { padding: 22px; }
}

/* Native-scroll chapters: a separate home screen, then six interactive previews. */
.has-product-tour { scroll-padding-top: 144px; }
.tour-page .hero { display: flex; flex-direction: column; min-height: calc(100svh - 68px); padding: clamp(32px, 6vh, 72px) 0 0; gap: 40px; }
.tour-page .hero-top { flex: 1; align-items: center; }
.tour-motion .hero-top { transform: translateY(var(--home-shift, 0)); opacity: var(--home-opacity, 1); }
.hero-scroll { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 30px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 18px; min-height: 52px; color: var(--bone); font-size: 14px; text-decoration: none; }
.scroll-cue-sub { display: block; font-size: 12px; color: var(--ash); margin-top: 3px; }
.scroll-cue > span:last-child { color: var(--gold); font-size: 24px; }
.scroll-cue-line { position: relative; width: 1px; height: 44px; background: var(--rule-2); overflow: hidden; }
.scroll-cue-line::after { content: ''; position: absolute; top: 0; width: 1px; height: 18px; background: var(--gold); }
.hero-chapter { display: flex; align-items: center; gap: 20px; color: var(--ash); font: 10px/1 var(--mono); letter-spacing: .08em; }
.hero-chapter span { padding: 10px 18px; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); color: var(--gold); }
.product-tour { position: relative; border-top: 1px solid var(--rule-2); }
.tour-nav { position: sticky; top: 68px; z-index: 40; background: rgb(0 0 0 / .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--rule); }
.tour-nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform-origin: left; transform: scaleX(var(--tour-progress, 0)); pointer-events: none; }
.tour-nav-inner { display: flex; align-items: center; gap: 24px; }
.tour-home { flex: none; min-height: 56px; display: flex; align-items: center; color: var(--ash); text-decoration: none; font-size: 12px; padding-right: 24px; border-right: 1px solid var(--rule); }
.tour-track { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; padding: 4px; }
.tour-track a { display: flex; align-items: center; gap: 9px; flex: none; min-height: 48px; padding: 0 14px; font-size: 13px; white-space: nowrap; text-decoration: none; color: var(--ash); border-radius: 6px; transition: color 160ms, background-color 160ms; }
.tour-track a span { font: 10px/1 var(--mono); color: var(--ash); }
.tour-track a:hover, .tour-home:hover { color: var(--bone); }
.tour-track a[aria-current] { color: var(--bone); background: var(--raise); }
.tour-track a[aria-current] span { color: var(--gold); }
.tour-section { --chapter-space: clamp(56px, 7vw, 96px); padding: var(--chapter-space) 0; border-bottom: 1px solid var(--rule); }
.tour-section[id] { scroll-margin-top: calc(24px - var(--chapter-space)); }
.tour-section:last-child { border-bottom: 0; }
.chapter-marker { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; font-size: 12px; color: var(--tan); letter-spacing: .06em; text-transform: uppercase; }
.chapter-marker span { color: var(--gold); font: 11px/1.3 var(--mono); }
.chapter-marker::after { content: ''; flex: 1; max-width: 100px; height: 1px; background: var(--rule-2); }
.tour-overview .cockpit { width: 100%; margin: 0; }
.tour-overview .cockpit .demo-tools { padding: 16px 20px; }
@media (prefers-reduced-motion: no-preference) {
  .has-product-tour { scroll-behavior: smooth; }
  .scroll-cue-line::after { animation: scroll-cue 2s var(--ease) infinite; }
  @keyframes scroll-cue { 0% { transform: translateY(-20px); opacity: 0; } 25%, 65% { opacity: 1; } 100% { transform: translateY(48px); opacity: 0; } }
  .tour-motion .tour-panel { transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
  .tour-motion .tour-panel:not(.is-revealed) { opacity: .35; transform: translateY(32px); }
}
@media (max-width: 980px) {
  .tour-nav-inner { gap: 12px; }
  .tour-home { padding-right: 12px; }
  .tour-track a { padding: 0 12px; }
}
@media (max-width: 600px) {
  .tour-page .hero { gap: 24px; }
  .tour-page .hero-top { align-content: center; }
  .hero-scroll { padding-bottom: 24px; }
  .hero-chapter { display: none; }
  .tour-nav-inner { padding-right: 0; }
  .tour-track { padding-right: 16px; }
  .tour-track a { min-height: 48px; padding: 0 10px; gap: 6px; }
  .chapter-marker { margin-bottom: 22px; }
  .tour-overview .cockpit .demo-tools { padding: 14px; }
}

/* Compact download screen: primary instructions stay together on a laptop. */
.install-compact { --install-pad: 40px; padding: var(--install-pad) 0; }
.has-product-tour .install-compact[id] { scroll-margin-top: calc(-56px - var(--install-pad)); }
.install-compact .head { align-items: center; gap: 12px 32px; margin-bottom: 18px; }
.install-compact .h-sec { font-size: clamp(30px, 3.2vw, 40px); }
.install-compact .head .body { font-size: 15px; }
.install-compact .install-grid { gap: 16px; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); align-items: stretch; }
.install-compact .install-card { gap: 14px; padding: 22px; }
.install-compact .install-title { gap: 5px; }
.install-compact .install-title h3 { font-size: 24px; line-height: 1.15; }
.install-compact .install-title .small { font-size: 13px; }
.install-compact .install-steps { gap: 8px; }
.install-compact .install-steps li { font-size: 14px; line-height: 1.7; padding-left: 30px; }
.install-compact .install-steps li::before { top: 1px; width: 21px; height: 21px; }
.install-compact .cmd { padding: 9px 10px 9px 12px; gap: 10px; }
.install-compact .cmd code { font-size: 12px; line-height: 1.6; }
.install-compact .copy-status { margin-top: -4px; font-size: 13px; min-height: 1.6em; }
.install-compact .windows-card > .small { margin-top: 0; font: 13px/1.6 var(--sans); }
.install-compact .windows-card > .installer-name { font: 11px/1.5 var(--mono); margin-top: -8px; }
.install-compact .windows-card > .btn { min-height: 44px; }
.install-notice { margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--gold); color: var(--tan); font-size: 13px; line-height: 1.6; }
.install-notice b { color: var(--bone); font-weight: 500; }
.install-footer { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; margin-top: 12px; }
.install-footer .build { padding: 0; margin: 0; font-size: 12px; gap: 6px 18px; }
.install-footer .package-options { position: static; flex: none; font-size: 12px; color: var(--tan); }
.package-options summary { min-height: 36px; padding: 8px 0; cursor: pointer; text-underline-offset: 3px; }
.package-options summary:hover { color: var(--bone); }
.package-panel { position: absolute; z-index: 45; right: 0; bottom: calc(100% + 8px); display: grid; gap: 14px; width: min(460px, calc(100vw - 32px)); padding: 22px; background: #141311; border: 1px solid var(--rule-2); border-radius: 12px; box-shadow: 0 12px 48px #000; font-size: 14px; }
.package-panel .dl-row { gap: 10px; }
.package-panel .btn { min-height: 44px; }
@media (min-width: 761px) and (max-height: 760px) {
  .install-compact .install-card { padding: 18px; gap: 12px; }
  .install-compact .head { margin-bottom: 14px; }
  .install-compact .install-notice { margin-top: 12px; }
  .install-compact .install-footer { margin-top: 8px; }
}
@media (max-width: 980px) and (min-width: 761px) {
  .install-compact .head { grid-template-columns: 1fr 1fr; }
  .install-compact .install-grid { grid-template-columns: minmax(0, 1.65fr) minmax(230px, 1fr); }
  .install-compact .install-footer { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .install-compact .install-grid { grid-template-columns: 1fr; }
  .install-compact .head { gap: 8px; }
  .install-compact .install-card { padding: 18px; }
  .install-compact .install-footer { flex-direction: column; align-items: flex-start; }
  .install-compact .package-panel { left: 0; right: auto; }
}
