/* Forge download site. Direction A "Anvil". Loaded after scrollcraft's inline engine CSS,
   which zeroes every margin and padding, so spacing below is always explicit. */
:root {
  --ground: #0e0e10;
  --surface: #161618;
  --surface-2: #1d1d20;
  --line: #2a2a2e;
  --ink: #ececec;
  --muted: #a9a9ae;
  --spark: #f8840f;          /* sampled from Forge's icon */
  --spark-ink: #141414;      /* text on a spark button: 7.5:1 */
  --spark-text: #ffb066;     /* eyebrow over the dark ground: 10:1 */
  --link: #ececec;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --display-weight: 650;
  --display-track: -0.035em;
  --radius: 10px;
  --shadow: 0 30px 80px rgba(0,0,0,0.55);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); line-height: 1.08; margin: 0; }
button { font: inherit; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--spark); outline-offset: 2px; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
[hidden] { display: none !important; }

.skip { position: fixed; z-index: 200; left: 16px; top: -60px; background: var(--spark); color: var(--spark-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .15s; }
.skip:focus { top: 10px; }

/* ---------- Nav ---------- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; gap: 28px; padding: 0 28px;
  background: rgba(14,14,16,.8); background: color-mix(in srgb, var(--ground) 78%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42,42,46,.6); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 650; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline 2px var(--spark); text-underline-offset: 8px; }
.nav .spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--spark); color: var(--spark-ink); font-weight: 600; text-decoration: none; cursor: pointer; font-size: 15px; white-space: nowrap; transition: background .15s, transform .15s; }
.btn:hover { background: #ff9530; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.big { font-size: 18px; padding: 15px 28px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--spark); background: transparent; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; width: 40px; height: 36px; cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; display: block; margin: auto; }
.nav-drawer { display: none; }

/* ---------- Hero: fixed canvas, sticky copy ---------- */
#scroll-canvas { background: var(--ground); }
.scroll-section { position: relative; }
.section-sticky { position: sticky; top: 0; height: 100vh; display: flex; padding: 90px 7vw 7vh; pointer-events: none; }
#closing-scene { --closing-image: var(--closing-desktop); }
#closing-scene .section-sticky { background-position: center; background-size: 100% auto; background-repeat: no-repeat; }
@media (max-width: 767px), (max-aspect-ratio: 4/5) {
  #closing-scene { --closing-image: var(--closing-phone); }
  #closing-scene .section-sticky { background-position: center top; background-size: cover; }
}
@media (prefers-reduced-motion: reduce) {
  #closing-scene .section-sticky { background-image: var(--closing-image); background-color: var(--ground); }
}
.section-content { pointer-events: auto; max-width: 560px; opacity: 0;
  transition: opacity .7s ease, transform .7s cubic-bezier(.25,.46,.45,.94), clip-path .9s cubic-bezier(.25,.46,.45,.94); }
.section-content h2, .section-content p { text-shadow: 0 1px 18px rgba(0,0,0,.55); }
.l-center { align-items: center; justify-content: center; text-align: center; }
.l-left { align-items: center; justify-content: flex-start; }
.l-right { align-items: center; justify-content: flex-end; }
.l-lower { align-items: flex-end; justify-content: flex-start; }
.eyebrow { color: var(--spark-text); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; margin: 0 0 14px; }
.sc-statement { font-family: var(--display); font-size: calc(clamp(3rem, min(11vw, 13vh), 8.5rem) * var(--sc-fit, 1)); line-height: .92; letter-spacing: var(--display-track); font-weight: var(--display-weight); }
.sc-heading { font-size: calc(clamp(2rem, min(5vw, 6vh), 3.6rem) * var(--sc-fit, 1)); }
.sc-heading, .sc-statement { text-wrap: balance; color: var(--ink); }
.section-content p.body { color: var(--muted); font-size: 1.2rem; margin: 18px 0 0; max-width: 36ch; text-wrap: balance; }
.l-center p.body { margin-left: auto; margin-right: auto; }
.section-content.wide { max-width: 1120px; }
/* One solid card for every scene, at the left, beside the picture. Rev 4: the frames show the whole Forge window from
   31.25vw (the canvas fits them to the width), so the card keeps inside 2.5vw..29.5vw. */
.section-sticky:has(.card-copy) { align-items: center; justify-content: flex-start; text-align: left; padding: 76px 0 4vh 2.5vw; }
.section-content.card-copy { width: min(390px, 27vw); max-width: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 26px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.card-copy h2, .card-copy p { text-shadow: none; }
.card-copy .sc-heading { font-size: clamp(1.5rem, min(2.2vw, 4.2vh), 2.3rem); line-height: 1.12; }
.card-copy p.body { font-size: clamp(.98rem, 1.1vw, 1.08rem); margin-top: 14px; max-width: none; text-wrap: pretty; }
.card-copy .hero-cta { justify-content: flex-start; margin-top: 22px; }
.card-copy .hero-cta .btn { box-shadow: none; }
.card-copy .eyebrow { margin-bottom: 12px; }
/* Rev 5.1: the first screen is the centred words of rev 2 (5ac4113) with the demo clip under them, in normal flow
   above the scroll track (compose.mjs). Its solid ground covers the fixed canvas until it scrolls away, so the scenes
   start on the second screen. The clip is sized to fit the first screen with the words (down to 760px wide). */
.intro { position: relative; z-index: 2; background: var(--ground); min-height: 100vh; min-height: 100svh; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 92px 5vw 48px; text-align: center; }
.intro-copy { max-width: 900px; }
.intro .eyebrow { margin-bottom: 14px; }
.intro-h { font-size: clamp(2.3rem, min(4.2vw, 6.6vh), 4rem); line-height: 1.04; letter-spacing: var(--display-track); font-weight: var(--display-weight);
  color: var(--ink); max-width: 18ch; margin: 0 auto; text-wrap: balance; }
.intro p.body { color: var(--muted); font-size: clamp(1.08rem, 1.2vw, 1.25rem); margin: 16px auto 0; max-width: 60ch; text-wrap: balance; }
.intro .hero-cta { margin-top: 22px; }
.intro .hero-meta { font-size: 15px; margin: 10px 0 0; }
.intro-demo { margin: 30px auto 0; width: min(1180px, 92vw, max(760px, calc((100vh - 430px) * 1.7074))); }
@supports (height: 1svh) { .intro-demo { width: min(1180px, 92vw, max(760px, calc((100svh - 430px) * 1.7074))); } }
.intro-demo figcaption { margin: 12px auto 0; text-align: center; }
.sc-statement.crew { font-size: calc(clamp(2.8rem, min(5vw, 8vh), 4.6rem) * var(--sc-fit, 1)); line-height: 1; }
.section-content.wide p.body { max-width: 60ch; }
.hero-cta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; pointer-events: auto; }
.hero-cta .btn { box-shadow: 0 10px 40px rgba(248,132,15,.22); }
.hero-meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.js-version-short { white-space: nowrap; }
#scroll-hint { display: none; }

/* ---------- Long-form, below the scroll ---------- */
.after { position: relative; z-index: 2; background: var(--ground); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.band { padding: 110px 0; border-top: 1px solid var(--line); scroll-margin-top: 0; }
.band.first-band { border-top: 0; }
.band-head { max-width: 720px; margin-bottom: 56px; }
.band-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.band-head p { color: var(--muted); font-size: 1.15rem; margin: 16px 0 0; }
.band-head p.kicker { margin: 0 0 10px; font-size: 13px; }
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding-block: 44px; }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip .f-text { order: 2; }
.f-text h2, .f-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.f-text p { color: var(--muted); margin: 14px 0 0; }
.f-text p.kicker { margin: 0 0 10px; }
.f-text .note { font-size: 14px; margin-top: 12px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 10px; }
.f-text a { color: var(--ink); }
.kicker { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--spark-text); margin: 0 0 10px; font-weight: 600; }
.where { font-size: 14px; color: var(--muted); }
.where b { color: var(--ink); }
kbd { font-family: var(--mono); font-size: .85em; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }

/* Screenshots: real pictures of Forge, framed the same everywhere. */
figure { margin: 0; }
figure.shot, figure.pic { min-width: 0; }
figure.shot img, figure.pic img { display: block; width: 100%; height: auto; background: #1b1b1b; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.stack { display: grid; gap: 18px; min-width: 0; }
.more { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 0; }

/* Home: the demo clip of the whole Forge window (lazy, muted, looping; poster only under reduced motion) */
.demo-frame { position: relative; }
.demo-video { display: block; width: 100%; height: auto; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.demo-toggle { position: absolute; right: 12px; bottom: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; background: rgba(14,14,16,.82); color: var(--ink); font: 600 13px var(--body); cursor: pointer; }
.demo-toggle:hover, .demo-toggle:focus-visible { border-color: var(--spark); }
.lesson-video, figure.lesson noscript img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 800; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.lesson-video[hidden] { display: none; }
.demo figcaption { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 72ch; }

/* Home: the first 10 minutes, and the feature cards */
.first10 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.first10 a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-content: start; height: 100%; padding: 14px 14px 20px; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.first10 a:hover { border-color: var(--spark); transform: translateY(-2px); }
.first10 figure, .first10 p { grid-column: 1 / -1; }
.first10 figure img { box-shadow: none; border-radius: 7px; }
.first10 .n, .gstep h2 .n, .toc .n { flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--spark); color: var(--spark-ink); font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.first10 .n { width: 28px; height: 28px; font-size: 14px; margin-top: 16px; }
.first10 h3 { font-size: 1.2rem; margin: 16px 0 0; align-self: center; }
.first10 p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.first10 p b { color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 22px; min-width: 0; }
.card figure.shot { aspect-ratio: 1600 / 845; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #1b1b1b; }
.card figure.shot img { border: 0; border-radius: 0; box-shadow: none; }
.card h3 { font-size: 1.3rem; margin: 18px 4px 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0 4px 8px; }
/* Features: a scannable grid, a short title and one plain line each. */
.fgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fgrid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 22px; min-width: 0; }
.fgrid h3 { font-size: 1.12rem; margin: 0 0 6px; }
.fgrid h3::before { content: ""; display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--spark); margin-bottom: 14px; }
.fgrid p { color: var(--muted); font-size: 15.5px; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; color: var(--muted); }
.ticks li { display: grid; grid-template-columns: 22px 1fr; }
.ticks li::before { content: "✓"; color: var(--spark-text); font-weight: 700; }

/* Download */
.dl { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.dl h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.dl .lede { color: var(--muted); font-size: 1.15rem; margin: 16px 0 28px; }
.dl-meta { color: var(--muted); font-size: 14px; margin-top: 14px; }
.dl-meta b { color: var(--ink); font-weight: 600; }
.dl-meta a { color: var(--muted); }
.dl-facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.dl-facts li { display: grid; grid-template-columns: 22px 1fr; }
.dl-facts li::before { content: "✓"; color: var(--spark-text); font-weight: 700; }
.needs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.needs h3 { font-size: 1.4rem; }
.needs ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; }
.needs li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 16px; }
.needs li .ic { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.needs li small { display: block; text-wrap: pretty; color: var(--muted); font-size: 14px; margin-top: 2px; }
.needs li small a { color: var(--muted); }
.heads-up { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.heads-up p, .dl-facts li { text-wrap: pretty; }
.heads-up p { margin: 0; color: var(--muted); font-size: 15px; }
.heads-up p b { color: var(--ink); }
.guide-link { margin-top: 14px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 1.15rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-size: 26px; font-weight: 300; color: var(--spark-text); }
.faq details[open] summary::after { content: "–"; }
.faq .a { color: var(--muted); padding: 0 0 22px; max-width: 68ch; }
.faq .a p { margin: 0 0 10px; }
.faq .a a { color: var(--ink); }

footer.site { padding: 56px 0 90px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--muted); margin-right: 18px; }

/* ---------- Download next-steps dialog ---------- */
dialog.next { margin: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); padding: 0; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow); }
dialog.next::backdrop { background: rgba(0,0,0,.6); }
.next .in { padding: 30px; }
.next h2 { font-size: 1.9rem; padding-right: 32px; }
.next .sub { color: var(--muted); margin: 8px 0 22px; }
.next a { color: var(--ink); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; }
.steps > li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; counter-increment: s; }
.steps > li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.steps h4 { margin: 3px 0 4px; font-size: 1.05rem; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.why { margin-top: 22px; padding: 14px 16px; background: var(--surface-2); border-radius: 10px; font-size: 14px; color: var(--muted); }
.next .close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; background: none; border: 0; border-radius: 8px; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.next .close:hover { color: var(--ink); background: var(--surface-2); }

/* Windows box replicas, captioned as replicas */
.ss { font-family: "Segoe UI", system-ui, sans-serif; color: #fff; background: #1f5fa8; border-radius: 4px; padding: 16px 18px 14px; max-width: 360px; font-size: 12.5px; line-height: 1.45; margin-top: 10px; }
.ss .t { font-size: 19px; font-weight: 300; margin-bottom: 8px; }
.ss u { cursor: default; }
.ss .meta { margin: 10px 0 0; }
.ss .btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.ss .btns span { border: 2px solid rgba(255,255,255,.7); padding: 4px 14px; font-size: 12px; }
.ss .btns span.hot { border-color: #fff; background: rgba(255,255,255,.12); outline: 2px solid #ffb066; outline-offset: 2px; }
.ss u.hot { outline: 2px solid #ffb066; outline-offset: 2px; }
.ss.small { max-width: 300px; font-size: 11.5px; }
.ss.small .t { font-size: 16px; }
.edge { font-family: "Segoe UI", system-ui, sans-serif; background: #fff; color: #1b1b1b; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.25); padding: 12px 14px; max-width: 360px; font-size: 12.5px; margin-top: 10px; border: 1px solid #e3e3e3; }
.edge .row { display: grid; grid-template-columns: 26px 1fr 22px; gap: 10px; align-items: start; }
.edge .file { width: 22px; height: 26px; background: #e9eef6; border: 1px solid #c7d3e6; border-radius: 3px; }
.edge .dots { font-weight: 700; letter-spacing: 1px; text-align: center; border-radius: 4px; outline: 2px solid #f8840f; outline-offset: 1px; }
.edge .menu { margin: 8px 0 0 36px; border: 1px solid #ddd; border-radius: 6px; width: 140px; padding: 4px 0; }
.edge .menu div { padding: 4px 10px; }
.edge .menu .hot { background: #fff1e3; outline: 2px solid #f8840f; }
.replica-cap { font-size: 12px; color: var(--muted); margin-top: 6px; font-style: italic; }

/* ---------- The other pages: Getting started, Features, Guide, Help ---------- */
main.pg { position: relative; display: block; padding: 60px 0 0; min-height: 70vh; }
.pg [id] { scroll-margin-top: 76px; }
.pg-head { padding-top: 64px; padding-bottom: 40px; }
.cl-list { padding-bottom: 64px; }
.cl-ver { padding: 20px 0 20px 20px; border-left: 3px solid transparent; max-width: 72ch; }
.cl-ver:target { border-left-color: var(--spark); }
.cl-ver h2 { font-size: 1.5rem; margin: 0 0 12px; }
.cl-ver h2 span { color: var(--muted); font-size: 1rem; font-weight: 400; }
.cl-ver ul { margin: 0; padding-left: 20px; }
.cl-ver li { margin: 0 0 8px; }
.pg-head h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 0 0 14px; }
.pg-head .lede { color: var(--muted); font-size: 1.2rem; max-width: 62ch; margin: 0; }
.pg-head .kicker { margin: 0 0 12px; }

/* Getting started and Help: a sticky contents list beside the steps */
.gs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-bottom: 100px; }
.toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 2px; font-size: 15px; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; border: 1px solid transparent; }
.toc a:hover { color: var(--ink); border-color: var(--line); }
.toc .n { width: 22px; height: 22px; font-size: 12px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.gs-body { max-width: 760px; min-width: 0; }
.gstep { margin: 0 0 72px; }
.gstep h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 18px; }
.gstep h2 .n { width: 36px; height: 36px; font-size: 17px; }
.gstep p, .gstep li { color: #cfcfd1; }
.gstep p { margin: 0 0 14px; }
.gstep ul { margin: 0 0 16px; padding-left: 22px; }
.gstep li { margin: 6px 0; }
.gstep b { color: var(--ink); }
.gstep a:not(.btn) { color: var(--ink); }
.gstep .btn { margin: 4px 0; }
.gstep > figure, .qa figure { margin: 20px 0 26px; }
.gs .mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 24px; }
.gs .mini > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.gs .mini h3 { font-size: 1.05rem; letter-spacing: -0.01em; margin: 0 0 6px; }
.gs .mini p { margin: 0; font-size: 15px; color: var(--muted); }
.qa { padding: 20px 0 8px; border-top: 1px solid var(--line); }
.qa h3 { font-size: 1.2rem; letter-spacing: -0.01em; margin: 0 0 10px; }
.qa p { margin: 0 0 12px; }
.qa:target { border-top-color: var(--spark); }
.help .gstep h2 { margin-bottom: 8px; }
.end { color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; margin: 0; }
.end a { color: var(--ink); }

/* Drawn copies, captioned as copies */
figure.replica { margin: 18px 0 24px; }
.pair { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.callout { border-left: 3px solid var(--spark); background: var(--surface); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 24px 0; color: #cfcfd1; }
.callout b { display: block; margin-bottom: 4px; color: var(--ink); }
pre.copy { margin: 10px 0 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
pre.copy code { background: none; border: 0; padding: 0; color: var(--ink); user-select: all; }

/* Features */
.tour { padding-bottom: 100px; }
.tour .feature { padding-block: 56px; border-top: 1px solid var(--line); }
.tour .feature:first-child { border-top: 0; padding-top: 12px; }
.keycard, .textcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; min-width: 0; }
.keycard dl { margin: 0; }
.keycard dl > div { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.keycard dl > div:last-child { border-bottom: 0; }
.keycard dd { margin: 0; color: #cfcfd1; font-size: 15px; }
.textcard { max-width: 440px; width: 100%; justify-self: center; font-family: "Segoe UI", system-ui, sans-serif; }
.tc-head { font-weight: 600; font-size: 15px; }
.tc-head span { margin-left: 8px; font-weight: 400; font-size: 13px; color: var(--muted); }
.tc-search { margin: 14px 0 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--ground); color: var(--muted); font-size: 14px; }
.textcard p { margin: 0; padding: 30px 10px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* The Forge guide, built from the page Forge itself opens */
.fg { max-width: 1000px; margin: 0 auto; padding: 64px 28px 100px; }
.fg h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 0 0 14px; }
.fg .sub { color: var(--muted); font-size: 1.2rem; max-width: 62ch; margin: 0 0 26px; }
.fg nav.g-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.g-toc a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); text-decoration: none; }
.g-toc a:hover { color: var(--ink); border-color: var(--spark); }
.fg section { display: grid; gap: 36px; padding: 48px 0; border-top: 1px solid var(--line); }
.fg section.has-pic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.fg section > figure { order: 2; }
.fg section > div { min-width: 0; }
.fg h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 14px; }
.fg p, .fg li, .fg td { color: #cfcfd1; }
.fg p { margin: 0 0 12px; }
.fg ul { margin: 0 0 14px; padding-left: 20px; }
.fg li { margin: 7px 0; }
.fg b { color: var(--ink); }
.fg a { color: var(--ink); }
.fg .inforge { margin: 18px 0 0; padding-left: 12px; border-left: 2px solid var(--spark); font-size: 14px; color: var(--muted); }
.fg table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fg td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.fg td:first-child { width: 36%; color: var(--ink); }
.fg table.mini { margin: 10px 0 0; font-size: 14px; }
.g-foot { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* ---------- Phone width ---------- */
@media (min-width: 768px) and (max-width: 1080px) {
  .first10, .cards, .fgrid { grid-template-columns: repeat(2, 1fr); }
  .gs { grid-template-columns: 180px minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .nav { height: 56px; padding: 0 16px; gap: 10px; }
  .nav-links { display: none; }
  .nav .btn { padding: 8px 14px; font-size: 16px; min-height: 44px; }
  .nav .btn .long { display: none; }
  .menu-btn { display: inline-grid; width: 44px; height: 44px; }
  .brand { min-height: 44px; }
  .dl-meta a, .needs small a, .faq .a a { display: inline-block; padding: 13px 0; margin: -13px 0; }
  footer.site a { display: inline-block; padding: 12px 8px; min-width: 44px; text-align: center; margin-right: 6px; }
  footer.site .foot-links a:first-child { margin-left: -8px; }
  .nav-drawer.open { display: grid; position: fixed; z-index: 49; top: 56px; left: 0; right: 0; background: var(--ground); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; gap: 2px; }
  .nav-drawer a { padding: 12px 4px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
  .section-sticky { padding: 80px 16px 9vh; align-items: flex-end !important; justify-content: flex-start !important; text-align: left !important; }
  .section-content { max-width: 100%; }
  .l-center .section-content { text-align: left; }
  .l-center p.body { margin-left: 0; }
  .hero-cta { justify-content: flex-start; }
  .sc-statement { font-size: calc(clamp(3.4rem, 18vw, 5rem) * var(--sc-fit, 1)); }
  .sc-statement.crew { font-size: calc(clamp(2.4rem, 11vw, 3rem) * var(--sc-fit, 1)); }
  .sc-heading { font-size: calc(clamp(1.9rem, 8.6vw, 2.5rem) * var(--sc-fit, 1)); }
  .section-content p.body { font-size: 1.05rem; }
  .wrap { padding: 0 16px; }
  .band { padding: 72px 0; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 22px; padding-block: 28px; }
  .feature.flip .f-text { order: 0; }
  .dl { grid-template-columns: 1fr; gap: 30px; }
  .btn.big { width: 100%; justify-content: center; }
  .nav-drawer a[aria-current="page"] { color: var(--spark-text); }
  .first10, .cards, .fgrid { grid-template-columns: 1fr; gap: 16px; }
  .fgrid { gap: 12px; }
  .fgrid li { padding: 16px 18px 18px; }
  .more .btn { min-height: 44px; }
  .pg-head { padding-top: 36px; padding-bottom: 24px; }
  .gs { grid-template-columns: 1fr; gap: 26px; padding-bottom: 72px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
  .toc a { min-height: 40px; padding: 6px 12px 6px 8px; border-color: var(--line); border-radius: 999px; }
  .gstep { margin-bottom: 52px; }
  .gs .mini { grid-template-columns: 1fr; }
  .tour .feature { padding-block: 40px; }
  .keycard, .textcard { padding: 16px 18px; }
  .keycard dl > div { grid-template-columns: 1fr; gap: 6px; }
  .fg { padding: 36px 16px 72px; }
  .fg section { padding: 36px 0; gap: 24px; }
  .fg section.has-pic { grid-template-columns: 1fr; }
  .fg td:first-child { width: 42%; }
  .g-toc a { padding: 9px 13px; }
  .ss, .edge { max-width: 100%; }
  .next .in { padding: 24px 20px; }
  #scroll-hint { display: none; }
  /* Rev 5: on a phone the demo clip stays in place, full width (its window is the same one the scenes show); its
     caption and its Pause button read at 16px and the button is a full 44px tap. */
  .demo figcaption { font-size: 16px; }
  .demo-toggle { min-height: 44px; min-width: 76px; padding: 0 16px; font-size: 16px; right: 8px; bottom: 8px; }
  /* Rev 5: no phone text under 16px (check A7). Children (b, a, small) inherit. */
  .kicker, .band-head p.kicker, .btn, .first10 p, .fgrid p, .f-text .note, .dl-meta, .dl-facts, .heads-up p, .needs li small, footer.site { font-size: 16px; }
  .first10 .n { font-size: 16px; }
}
/* Phones and portrait screens: the card sits at the bottom, under the picture (same query as the frames, see compose). */
@media (max-width: 767px), (max-aspect-ratio: 4/5) {
  .section-sticky:has(.card-copy) { padding: 72px 16px 16px; align-items: flex-end !important; justify-content: center !important; }
  .section-content.card-copy { width: 100%; max-width: 560px; padding: 18px 20px 20px; border-radius: 16px; }
  .card-copy .sc-heading { font-size: clamp(1.45rem, 6.2vw, 1.9rem); }
  .card-copy p.body { font-size: 1rem; margin-top: 10px; }
  .card-copy .eyebrow { margin-bottom: 8px; font-size: 16px; letter-spacing: .08em; }
  .card-copy .hero-cta { margin-top: 16px; }
  .card-copy .hero-meta { font-size: 16px; margin-top: 8px; }
  /* Rev 5.1 phones: the words, then the clip edge to edge, then the scenes. */
  .intro { min-height: 0; padding: 84px 0 28px; justify-content: flex-start; }
  .intro-copy { padding: 0 16px; }
  .intro .eyebrow { font-size: 16px; letter-spacing: .06em; margin-bottom: 10px; }
  .intro-h { font-size: clamp(1.85rem, 8.6vw, 2.6rem); max-width: 14em; }
  .intro p.body { font-size: 1.05rem; margin-top: 12px; max-width: 34ch; }
  .intro .hero-cta { justify-content: center; margin-top: 18px; }
  .intro .hero-meta { font-size: 16px; }
  .intro-demo { width: 100%; margin-top: 24px; }
  .intro-demo .demo-video { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .intro-demo figcaption { padding: 0 16px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .section-content, [data-reveal="stagger"] > * { transition: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .btn, .first10 a, .skip { transition: none; }
}


/* One workspace illustration takes its palette from the selected desktop theme. */
#theme-heading, #looks { scroll-margin-top: 82px; }
.showcase .band-head { margin-bottom: 24px; }
.theme-picker { min-width: 0; border: 0; margin: 0; padding: 0; }
.theme-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.theme-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(122px,1fr)); gap: 8px; max-height: 226px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-color: #75757c var(--surface); padding: 4px; margin: 0 -4px 16px; }
.theme-card { position: relative; display: grid; grid-template-rows: 48px 1fr; gap: 4px; min-width: 0; padding: 4px 4px 5px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.theme-card:hover { background: var(--surface-2); }
.theme-card:has(:checked) { border-color: var(--ws-accent); box-shadow: 0 0 0 1px var(--ws-accent); background: var(--ws-active); color: var(--ws-ink); }
.theme-card:has(:checked) .theme-label::after { content: '\2713'; margin-left: auto; font-weight: 700; }
.theme-card:has(:focus-visible) { outline: 2px solid var(--spark-text); outline-offset: 2px; }
.theme-label { display: flex; align-items: center; gap: 2px; padding: 0 2px; font-size: 1rem; line-height: 1.15; }
.mini-window { display: grid; grid-template-rows: 8px 1fr 5px; overflow: hidden; background: var(--ws-bg); border: 1px solid var(--ws-edge); border-radius: 4px; }
.mini-top, .mini-status { display: flex; align-items: center; padding-inline: 4px; background: var(--ws-panel); border-bottom: 1px solid var(--ws-edge); }
.mini-top::before { content: ''; width: 14px; height: 2px; background: var(--ws-accent); }
.mini-body { display: grid; grid-template-columns: 12% 1fr 26%; min-height: 0; }
.mini-rail { border-right: 1px solid var(--ws-edge); background: var(--ws-panel); }
.mini-rail::before { content: ''; display: block; width: 5px; height: 3px; margin: 4px auto; background: var(--ws-dim); box-shadow: 0 6px var(--ws-accent),0 12px var(--ws-dim); }
.mini-chat { display: grid; align-content: center; gap: 3px; padding: 2px 7px; background-image: radial-gradient(circle at 20% 18%,var(--ws-star) .7px,transparent 1px),radial-gradient(circle at 82% 78%,var(--ws-star) .7px,transparent 1px); }
.mini-chat i { height: 3px; width: 58%; background: var(--ws-dim); border-radius: 2px; }
.mini-chat i:first-child { justify-self: end; width: 50%; height: 5px; background: var(--ws-active); border-right: 2px solid var(--ws-accent); }
.mini-chat i:last-child { width: 22%; background: var(--ws-accent); }
.mini-terminal { border-left: 1px solid var(--ws-edge); background: var(--ws-panel); }
.mini-terminal::before { content: ''; display: block; height: 2px; width: 48%; margin: 7px 3px; background: var(--ws-dim); box-shadow: 0 4px var(--ws-accent); }
.mini-status { border-bottom: 0; border-top: 1px solid var(--ws-edge); }
.mini-status::before { content: ''; height: 2px; width: 14%; background: var(--ws-dim); }
.theme-radio { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
#workspace-preview { overflow: hidden; border: 1px solid var(--ws-edge); border-radius: 12px; background: var(--ws-bg); color: var(--ws-ink); box-shadow: var(--shadow); }
.workspace-shot { display: none; width: 100%; height: auto; }
.workspace-title, .workspace-tab, .workspace-credit { padding: 12px clamp(12px,2vw,24px); background: var(--ws-panel); }
.workspace-title { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--ws-edge); }
.workspace-title strong { color: var(--ws-accent); font-size: 1.3rem; }
.workspace-name { margin-left: auto; color: var(--ws-dim); }
.workspace-name::after { content: var(--ws-name); }
.workspace-panes { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(300px,32vw,410px); }
.workspace-tab { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--ws-edge); color: var(--ws-ink); font-weight: 650; }
.workspace-tab span, .workspace-credit { color: var(--ws-dim); font-weight: 400; }
.workspace-chat { border-right: 1px solid var(--ws-edge); background-image: radial-gradient(circle at 15% 56%,var(--ws-star) 1px,transparent 1.5px),radial-gradient(circle at 72% 26%,var(--ws-star) 1px,transparent 1.5px); background-size: 97px 111px,141px 131px; }
.workspace-thread { display: grid; gap: 22px; padding: clamp(14px,3vw,42px); }
.workspace-prompt, .workspace-reply { padding: 12px 16px; border-radius: 10px; }
.workspace-prompt { justify-self: end; background: var(--ws-active); }
.workspace-reply { background: var(--ws-panel); border: 1px solid var(--ws-edge); }
.workspace-reply b { color: var(--ws-accent); }
.workspace-reply p { margin: 4px 0 0; }
.workspace-calculator { max-width: 340px; margin: clamp(16px,3vw,38px) auto; padding: clamp(12px,2.5vw,28px); background: var(--ws-panel); border: 1px solid var(--ws-edge); border-radius: 12px; }
.workspace-browser { background: var(--ws-bg); color: var(--ws-ink); }
.workspace-calculator > b { display: block; font-size: clamp(1.2rem,2.6vw,2rem); margin-bottom: 18px; }
.workspace-calculator > div { display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.workspace-rates { margin: 14px 0; padding-block: 10px; border-block: 1px solid var(--ws-edge); }
.workspace-rates strong { color: var(--ws-accent); background: var(--ws-active); border-radius: 6px; padding: 3px 6px; }
.workspace-credit { border-top: 1px solid var(--ws-edge); }
/* Part 3: with JS, the four featured themes only (site.js cycles them), and More themes shows the rest. Without JS every
   theme shows, as before. */
.theme-picker.few .theme-more { display: none; }
.theme-picker.few .theme-options { max-height: none; overflow: visible; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.theme-more-row { margin: -6px 0 16px; }
/* Piece 6: on a desktop screen the whole themes section (heading, sub line, the four tiles with More themes on their row,
   and the full picture) fits in one view under the sticky header: tighter top and gaps, and the picture's height capped
   to what is left (its aspect kept, still 1600 px wide source so 2x sharp). Opening More themes may grow it. */
@media (min-width: 768px) {
  #looks { padding-top: 28px; }
  #looks .band-head { margin-bottom: 14px; }
  #looks .band-head p { margin-top: 6px; }
  #looks .theme-picker.few { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; }
  #looks .theme-picker.few .theme-options { margin-bottom: 12px; }
  #looks .theme-picker.few .theme-more-row { margin: 0 0 12px; }
  #looks .theme-picker.few #workspace-preview { grid-column: 1 / -1; justify-self: center; }
  #workspace-preview { width: fit-content; max-width: 100%; margin-inline: auto; }
  #looks .workspace-shot { width: auto; max-width: 100%; max-height: calc(100vh - 340px); }
}
@media (max-width: 620px) { .theme-picker.few .theme-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .theme-options { grid-template-columns: repeat(3,minmax(0,1fr)); max-height: 180px; gap: 6px; }
  .theme-card { grid-template-rows: 33px 1fr; }
  .workspace-panes { grid-template-columns: 1fr; }
  .workspace-chat { border-right: 0; }
  .workspace-thread { gap: 8px; }
  .workspace-calculator { margin: 12px auto; width: calc(100% - 28px); }
}
@media (max-width: 365px) {
  .theme-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* ---------- The drawn phone (P1 "Slab"; N1 "Peek" on phone-width screens). compose.mjs writes the markup from
   <figure class="shot phone"> and src/phone.json. The status bar is drawn and aria-hidden; the camera dot sits on it. ---------- */
.dev { container-type: inline-size; width: 100%; max-width: 280px; margin: 0 auto; }
.dev-body { position: relative; background: #0a0a0b; border: 1.5px solid #34343a; border-radius: 15.5cqw; padding: 3cqw; box-shadow: inset 0 0 0 1.5px #17171a, 0 30px 70px rgba(0,0,0,.6); }
.dev-screen { position: relative; overflow: hidden; background: #111315; border-radius: 12.4cqw; }
figure.dev .dev-screen img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; background: none; }
.dev-status { display: flex; align-items: center; justify-content: space-between; height: 10.5cqw; padding: 1cqw 8.5cqw 0; font: 600 4.3cqw var(--body); color: #ececec; background: #111315; }
.dev-icons svg { display: block; width: 14.5cqw; height: auto; }
.dev-cam { position: absolute; left: 50%; top: 3.4cqw; width: 4.2cqw; aspect-ratio: 1; border-radius: 50%; background: #040405; box-shadow: 0 0 0 1px #202024; transform: translateX(-50%); }
.dev-btn { position: absolute; width: 3px; background: #26262a; border-radius: 2px; }
.dev-btn.b1 { right: -3.5px; top: 24%; height: 11%; }
.dev-btn.b2 { left: -3.5px; top: 19%; height: 6%; }
.dev-btn.b3 { left: -3.5px; top: 27%; height: 6%; }
@media (prefers-color-scheme: light) { .dev-status, .dev-screen { background: #f3f4f1; color: #1b1b1b; } }
.duo-dev { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: center; min-width: 0; }
/* part 2: the phone alone (the small Server panel picture beside it was too small to read and went) */
.duo-dev.solo { grid-template-columns: 260px; justify-content: center; }
@media (max-width: 767px) {
  .duo-dev { grid-template-columns: 1fr; }
  .dev { width: 82%; max-width: 330px; aspect-ratio: 1 / 1.2; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .dev-body { box-shadow: inset 0 0 0 1.5px #17171a; }
}

/* ---------- The 3D model band (#models): a real screenshot of Forge 3.6.0 (m01, dark and light) with the live viewer
   (src/model-viewer.js) laid exactly over its model pane. The pane and its three buttons are cleared in the picture; the
   still (.stage-still) is the same pane cut from the same screenshot, so without JS or WebGL the window reads whole.
   Rects are in the screenshot's CSS px (1426 x 838) and placed in % of the crop shown: the whole window on wide screens,
   the viewer pane (with the chat above it as its own picture) on phones. ---------- */
.case3d { --cx: 0; --cy: 0; --cw: 1426; --ch: 838; }
.fwrap { position: relative; container-type: inline-size; }
.fshot { position: relative; container-type: inline-size; aspect-ratio: calc(var(--cw) / var(--ch)); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); background: #131313; }
.fshot-img, .fshot > picture > img { position: absolute; display: block; max-width: none; height: auto; width: calc(1426 / var(--cw) * 100%); left: calc(var(--cx) / var(--cw) * -100%); top: calc(var(--cy) / var(--ch) * -100%); border: 0; border-radius: 0; box-shadow: none; }
.fpos { position: absolute; left: calc((var(--x) - var(--cx)) / var(--cw) * 100%); top: calc((var(--y) - var(--cy)) / var(--ch) * 100%); width: calc(var(--w) / var(--cw) * 100%); height: calc(var(--h) / var(--ch) * 100%); }
.fchat-shot { display: none; margin: 0 0 14px; }
.fchat-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.stage { overflow: hidden; }
.stage-still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.case3d.live .stage-still { display: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; opacity: 0; transform: scale(.93); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); outline: none; z-index: 1; display: none; }
.case3d.live .stage canvas { display: block; }
.stage canvas.on { opacity: 1; transform: none; }
.stage canvas.grabbing { cursor: grabbing; }
.stage canvas:focus-visible { outline: 2px solid var(--spark); outline-offset: -3px; }
.stage-empty { display: none; position: absolute; inset: 0; place-items: center; color: #8a8a90; font-size: 14px; transition: opacity .3s; }
.case3d.live .stage-empty { display: grid; }
.case3d.ready .stage-empty { opacity: 0; }
.stage-nogl { display: none; margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.case3d.nogl .stage-nogl { display: block; }
.case3d.nogl .stage canvas { display: none; }
/* Cutaway, Spin and Reset view drawn where the screenshot had them, in Forge's own colours (dark #252526 bar). */
.fbtns { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.vbtn { pointer-events: auto; border: 0; border-radius: 5px; background: transparent; color: #9a9a9a; font: 400 calc(12.5 / var(--cw) * 100cqw) "Segoe UI", system-ui, sans-serif; padding: 0; cursor: pointer; display: grid; place-items: center; }
.vbtn:hover { color: #e6e6e6; }
.vbtn:focus-visible { outline: 2px solid var(--spark); outline-offset: 1px; }
.vbtn[aria-pressed="true"] { background: #313539; color: #f8840e; }
.case3d:not(.live) .vbtn { display: none; }
@media (prefers-color-scheme: light) {
  .fshot { background: #e8e8e8; }
  .vbtn { color: #5a5a5a; }
  .vbtn:hover { color: #111; }
  .vbtn[aria-pressed="true"] { background: #f8eee9; color: #b14700; }
}
@media (max-width: 767px) {
  .case3d { --cx: 401; --cy: 36; --cw: 598; --ch: 778; }
  .fchat-shot { display: block; }
  .fshot-img, .fshot > picture > img { width: 100%; height: 100%; left: 0; top: 0; } /* m01-viewer: already cut to the pane */
  .fbtns { position: static; display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
  .vbtn { position: static; width: auto; height: auto; min-height: 44px; padding: 8px 14px; font: 500 16px var(--body); border: 1px solid var(--line); border-radius: 8px; background: var(--card, #1d1d20); color: var(--ink); }
  .stage-empty, .stage-nogl { font-size: 16px; }
}
@media (max-width: 767px) and (prefers-color-scheme: light) { .vbtn { background: #fff; color: #1b1b1b; } }
@media (prefers-reduced-motion: reduce) {
  .stage canvas, .stage-empty { transition: none !important; }
}

/* Part 3: "Drag to turn" with a hand, over the live model until the first touch, drag, key or button (.touched); never on
   the still (no .live, or .nogl). Reduced motion keeps the label and drops its nudge. */
.drag-hint { display: none; position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); z-index: 3; pointer-events: none;
  align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; background: rgba(20, 20, 22, .82); color: #f1f1f1;
  font: 500 13px var(--body); white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.drag-hint svg { animation: hint-nudge 1.8s ease-in-out infinite; }
.case3d.live.ready:not(.touched):not(.nogl) .drag-hint { display: flex; }
@keyframes hint-nudge { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(4px); } }
@media (prefers-color-scheme: light) { .drag-hint { background: rgba(255, 255, 255, .92); color: #1b1b1b; } }
@media (prefers-reduced-motion: reduce) { .drag-hint svg { animation: none; } }
/* Gate N5: the cleared button strip gets its three labels back wherever the real buttons are not drawn over it (the still,
   and phones, where the real buttons sit below the picture). Drawn, not buttons. */
.fbtns-still { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.vstill { display: grid; place-items: center; color: #9a9a9a; font: 400 calc(12.5 / var(--cw) * 100cqw) "Segoe UI", system-ui, sans-serif; }
.case3d.live .fbtns-still { display: none; }
@media (prefers-color-scheme: light) { .vstill { color: #5a5a5a; } }
@media (max-width: 767px) { .case3d.live .fbtns-still { display: block; } }

/* Step two (#further … #work): a plain heading band, then the exhibits. #work's two cards sit side by side on wide screens. */
.step2-head { padding-bottom: 36px; }
.step2-head .band-head { margin-bottom: 0; }
.step2-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.step2-head + .band { border-top: 0; padding-top: 36px; }
.fgrid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 767px) { .fgrid.two { grid-template-columns: 1fr; } }
/* Part 3: the Map exhibit is one wide picture under its heading, and automation and code are one line under it. */
.map-wide .band-head { margin-bottom: 24px; }
.shot.wide { margin: 0; }
.shot.wide img { width: 100%; height: auto; }
.also { margin: 22px 0 0; color: var(--muted); max-width: 900px; }
.also b { color: var(--ink); }
.also a { color: var(--ink); }
/* Part 3: /features carries the old home page's Features grid (top) and FAQ (bottom). */
.tour .glance { padding-block: 12px 56px; }
.tour .glance .band-head { margin-bottom: 28px; }
.tour .glance + .feature { border-top: 1px solid var(--line); padding-top: 56px; }
.tour .faq-sec { padding-block: 56px; border-top: 1px solid var(--line); }
.tour .faq-sec .band-head { margin-bottom: 16px; }

/* Part 4: "What you can make with it" (#make). Five use cases in one row on wide screens, the rook under them as the 3D
   models exhibit with a plain label, then "For bigger projects": one line each, linking to /features, and the Map. */
#make .band-head { margin-bottom: 32px; }
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.uses li { border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 18px; background: rgba(255,255,255,.02); }
.uses li b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.uses li span { color: var(--muted); font-size: 1rem; line-height: 1.45; }
.uses li.use-3d { border-color: rgba(248,132,15,.55); }
.model-case { margin-top: 40px; }
.model-label { margin: 0 0 14px; color: var(--spark-text); font-weight: 600; font-size: 1.05rem; }
.bigger { margin-top: 64px; }
.bigger h3 { font-size: 1.5rem; margin: 0 0 14px; }
.bigger-list { list-style: none; margin: 0; padding: 0; max-width: 980px; }
.bigger-list li { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); }
.bigger-list li:last-child { border-bottom: 1px solid var(--line); }
.bigger-list a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.bigger-list a:hover { text-decoration-color: currentColor; }
.shot.wide.map-small { margin: 28px 0 0; max-width: 880px; }
@media (max-width: 1099px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } .uses li.use-3d { grid-column: 1 / -1; } }
@media (max-width: 767px) {
  .uses { grid-template-columns: 1fr; gap: 10px; }
  .uses li { padding: 12px 14px 14px; }
  .bigger { margin-top: 48px; }
  .bigger-list li { grid-template-columns: 1fr; gap: 4px; }
}


/* ==========================================================================
   Homepage Redesign (No ScrollCraft — Anvil Editorial)
   Scoped to .page-home so /features, /getting-started, /guide, /help, /changelog stay untouched.
   ========================================================================== */
body.page-home {
  --ground: #0a0b0e;
  --surface: #121319;
  --surface-2: #181a22;
  --surface-3: #1f222d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f2f3f5;
  --muted: #9b9fa9;
  --dim: #6f7480;
  --radius-lg: 20px;
  --home-shadow: 0 28px 80px rgba(0, 0, 0, 0.58), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  background: var(--ground);
  font-size: 16px;
}
.page-home .wrap { max-width: 1240px; }
.page-home main.home { padding-top: 60px; }

/* Hero */
.page-home .hero-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(248, 132, 15, 0.14), transparent 70%),
    radial-gradient(640px 420px at 50% 44%, rgba(169, 123, 255, 0.08), transparent 72%),
    var(--ground);
}
.page-home .hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 60% at 50% 25%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 25%, #000 10%, transparent 80%);
}
.page-home .hero { padding: 64px 28px 80px; text-align: center; position: relative; }
.page-home .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px;
  border: 1px solid rgba(248, 132, 15, 0.32);
  background: rgba(248, 132, 15, 0.08);
  color: var(--spark-text); font-size: 13px; font-weight: 600;
  margin: 0 0 22px;
}
.page-home .hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 10px var(--spark); }
.page-home .hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 15ch; margin: 0 auto; line-height: 1.03; letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 30%, #c8ccd6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-home .hero-sub {
  max-width: 54ch; margin: 20px auto 0;
  font-size: clamp(1.05rem, 1.8vw, 1.24rem); color: var(--muted); line-height: 1.5; text-wrap: balance;
}
.page-home .hero-actions { margin-top: 28px; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-home .hero-actions .btn.big { font-size: 16.5px; padding: 14px 26px; box-shadow: 0 1px 0 rgba(255,255,255,0.28) inset, 0 8px 24px rgba(248, 132, 15, 0.24); }
.page-home .hero-actions .btn.ghost { background: rgba(255,255,255,0.04); border-color: var(--line-strong); box-shadow: none; }
.page-home .hero-actions .btn.ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); }
.page-home .hero-meta { margin: 16px 0 0; font-size: 14px; color: var(--dim); }
.page-home .hero-meta b { color: var(--muted); }
.page-home .providers {
  margin: 24px auto 40px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(18, 19, 25, 0.72);
}
.page-home .providers-label { font-size: 12.5px; color: var(--dim); padding: 0 8px 0 6px; }
.page-home .ai-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #d8dce4;
  padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
}
.page-home .ai-dot { width: 7px; height: 7px; border-radius: 50%; }
.page-home .ai-dot.claude { background: #e88358; }
.page-home .ai-dot.gpt { background: #10b981; }
.page-home .ai-dot.gemini { background: #60a5fa; }
.page-home .ai-dot.grok { background: #e5e7eb; }

.page-home .stage-window {
  position: relative; max-width: 1080px; margin: 0 auto; border-radius: 16px;
  border: 1px solid var(--line-strong); background: #0d0e13;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 -24px 90px -20px rgba(248, 132, 15, 0.16);
  overflow: hidden;
}
.page-home .win-bar {
  height: 36px; padding: 0 14px; background: #14151c; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--dim);
}
.page-home .win-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--muted); }
.page-home .win-title svg { width: 15px; height: 15px; }
.page-home .win-controls { display: flex; gap: 10px; opacity: 0.5; font-size: 11px; }
.page-home .stage-window .intro-demo { width: 100%; margin: 0; }
.page-home .stage-window .demo-video { border: 0; border-radius: 0; box-shadow: none; }

/* Home Sections */
.page-home .band { padding: 84px 0; border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.page-home .section-head { max-width: 720px; margin-bottom: 36px; }
.page-home .section-head .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; margin: 0 0 10px; }
.page-home .section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.page-home .section-head p { color: var(--muted); font-size: 1.06rem; margin: 12px 0 0; text-wrap: balance; }

/* 2. How Forge Works */
.page-home .core-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.page-home .core-tab {
  text-align: left; padding: 15px 17px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; position: relative; overflow: hidden;
  transition: border-color 0.18s, background 0.18s;
}
.page-home .core-tab:hover { border-color: var(--line-strong); background: var(--surface-2); }
.page-home .core-tab[aria-selected="true"] {
  border-color: rgba(248, 132, 15, 0.55);
  background: linear-gradient(180deg, rgba(248, 132, 15, 0.09), var(--surface-2));
}
.page-home .core-tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--spark);
}
.page-home .core-tab .num { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-bottom: 5px; display: block; }
.page-home .core-tab[aria-selected="true"] .num { color: var(--spark-text); }
.page-home .core-tab .t-title { font-family: var(--display); font-size: 15.5px; font-weight: 650; color: var(--ink); display: block; }
.page-home .core-tab .t-sub { font-size: 13px; color: var(--muted); margin-top: 4px; display: block; line-height: 1.38; }

.page-home .core-stage {
  display: grid; grid-template-columns: 310px 1fr; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--home-shadow);
}
.page-home .core-panel { display: none; }
.page-home .core-panel.active { display: contents; }
.page-home .core-copy { display: flex; flex-direction: column; justify-content: center; padding: 4px; }
.page-home .core-copy .kicker { font-family: var(--mono); font-size: 12px; margin: 0 0 8px; }
.page-home .core-copy h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); margin-bottom: 12px; }
.page-home .core-copy p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.page-home .core-note { font-size: 13.5px; border-left: 2px solid var(--line-strong); padding-left: 10px; }
.page-home .core-detail {
  margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px;
}
.page-home .pill-switch {
  display: inline-flex; padding: 3px; border-radius: 999px; background: #0c0d11; border: 1px solid var(--line-strong);
  gap: 3px; align-self: flex-start; margin-top: 4px;
}
.page-home .pill-switch button {
  border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.page-home .pill-switch button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.4); }

/* Uncropped 1600x940 Forge Window Stage */
.page-home .full-win-stage {
  position: relative; width: 100%; aspect-ratio: 1600 / 940; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--line-strong); background: #0b0c10;
}
.page-home .full-win-stage > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.page-home .full-win-stage .mode-img { display: none; }
.page-home .full-win-stage .mode-img.active { display: block; }

/* Home Phone Stage */
.page-home .phone-stage {
  position: relative; width: 100%; aspect-ratio: 1600 / 940; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: radial-gradient(420px 320px at 42% 50%, rgba(248, 132, 15, 0.12), transparent 72%), #0b0c10;
  display: flex; align-items: center; justify-content: center; padding: 20px; gap: 32px;
}
.page-home .phone-hardware {
  width: 224px; padding: 9px; border-radius: 34px; container-type: inline-size;
  background: linear-gradient(160deg, #2a2d36, #14161c); border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 24px 60px rgba(0,0,0,0.65); flex: none;
}
.page-home .phone-screen { position: relative; border-radius: 25px; overflow: hidden; background: #111315; }
.page-home .phone-screen.is-light, .page-home .phone-screen.is-light .dev-status { background: #f3f4f1; color: #1b1b1b; }
.page-home .home-phone-img { display: none; width: 100%; height: auto; }
.page-home .home-phone-img.active { display: block; }
.page-home .phone-steps { max-width: 280px; display: grid; gap: 12px; }
.page-home .phone-step {
  padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  cursor: pointer; text-align: left; color: inherit;
}
.page-home .phone-step:hover { border-color: var(--line-strong); }
.page-home .phone-step.on { border-color: rgba(248, 132, 15, 0.55); background: rgba(248, 132, 15, 0.08); }
.page-home .phone-step b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
.page-home .phone-step span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }

/* 3. What you can make with it */
.page-home .make-showcase {
  display: grid; grid-template-columns: 315px 1fr; gap: 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--home-shadow);
}
.page-home .make-list { display: grid; gap: 8px; }
.page-home .make-btn {
  display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 13px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); cursor: pointer;
}
.page-home .make-btn:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.04); }
.page-home .make-btn[aria-selected="true"] {
  border-color: rgba(248, 132, 15, 0.58);
  background: linear-gradient(90deg, rgba(248, 132, 15, 0.12), rgba(248, 132, 15, 0.03));
}
.page-home .make-ic {
  width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); flex: none; margin-top: 1px;
}
.page-home .make-btn[aria-selected="true"] .make-ic {
  background: rgba(248, 132, 15, 0.16); border-color: rgba(248, 132, 15, 0.42); color: var(--spark-text);
}
.page-home .make-btn b { display: block; font-family: var(--display); font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.page-home .make-btn span { display: block; font-size: 12.8px; color: var(--muted); line-height: 1.4; }
.page-home .make-stage-wrap { width: 100%; min-width: 0; }
.page-home .make-pane { display: none; }
.page-home .make-pane.active { display: block; }
.page-home .model-case { margin-top: 0; }

/* 4. For bigger projects */
.page-home .bigger-grid { display: grid; gap: 18px; }
.page-home .spotlight {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: grid; grid-template-columns: 330px 1fr; gap: 24px; align-items: center;
  box-shadow: var(--home-shadow);
}
.page-home .spot-tabs { display: grid; gap: 10px; }
.page-home .spot-tab {
  text-align: left; padding: 18px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.02); cursor: pointer;
}
.page-home .spot-tab:hover { border-color: var(--line-strong); }
.page-home .spot-tab[aria-selected="true"] { border-color: rgba(248, 132, 15, 0.52); background: rgba(248, 132, 15, 0.08); }
.page-home .spot-tab h3 { font-size: 1.12rem; margin-bottom: 6px; color: var(--ink); }
.page-home .spot-tab p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.48; }
.page-home .spot-tab .more-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--spark-text); text-decoration: none; }
.page-home .spot-tab .more-link:hover { text-decoration: underline; }
.page-home .spot-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: #0b0c10; }
.page-home .spot-img { display: none; width: 100%; height: auto; }
.page-home .spot-img.active { display: block; }
.page-home .spot-img img { width: 100%; height: auto; display: block; }

.page-home .power-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.page-home .power-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; text-decoration: none;
  transition: border-color 0.16s, background 0.16s;
}
.page-home .power-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.page-home .power-card h3 { font-size: 1.08rem; margin-bottom: 6px; color: var(--ink); }
.page-home .power-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.page-home .power-arrow { color: var(--dim); font-size: 18px; flex: none; margin-top: 2px; }
.page-home .power-card:hover .power-arrow { color: var(--spark-text); }

/* 5. Theme Studio (Side-by-side, fits 1 viewport cleanly!) */
.page-home #looks { padding: 72px 0; }
.page-home .theme-studio {
  display: grid; grid-template-columns: 315px 1fr; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--home-shadow);
}
.page-home #looks .theme-picker.few { display: grid; grid-template-columns: 315px 1fr; align-items: center; column-gap: 24px; }
.page-home #looks .theme-picker.few #workspace-preview { grid-column: auto; justify-self: stretch; }
.page-home .theme-left .kicker { font-family: var(--mono); font-size: 12px; margin: 0 0 8px; }
.page-home .theme-left h2 { font-size: clamp(1.65rem, 2.7vw, 2.15rem); }
.page-home .theme-sub { color: var(--muted); margin: 10px 0 18px; font-size: 15px; }
.page-home .theme-options, .page-home .theme-picker.few .theme-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: none; overflow: visible; padding: 0; margin: 0;
}
.page-home .theme-card {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  grid-template-rows: auto;
}
.page-home .theme-card:hover { border-color: var(--line-strong); background: var(--surface-3); }
.page-home .theme-card:has(:checked) {
  border-color: var(--ws-accent); box-shadow: none;
  background: color-mix(in srgb, var(--ws-accent) 14%, var(--surface-2)); color: var(--ink);
}
.page-home .theme-card:has(:checked) .theme-label::after { content: none; }
.page-home .swatch {
  width: 20px; height: 20px; border-radius: 6px; flex: none; background: var(--ws-panel);
  border: 1px solid rgba(255,255,255,0.18); position: relative; overflow: hidden;
}
.page-home .swatch::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 9px; height: 9px;
  background: var(--ws-accent); border-top-left-radius: 4px;
}
.page-home .theme-label { font-size: 13px; font-weight: 600; padding: 0; }
.page-home .theme-more-row { margin: 12px 0 0; }
.page-home .theme-more-btn { padding: 6px 14px; font-size: 13px; }
.page-home .layout-chips { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.page-home .layout-chips .lbl {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 8px;
}
.page-home .l-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.page-home .l-pills span {
  font-size: 12px; color: var(--muted); padding: 4px 9px; border-radius: 7px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
}
.page-home #workspace-preview.theme-preview-box {
  position: relative; width: 100%; max-width: 100%; margin: 0; border-radius: 13px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ws-accent) 44%, rgba(255,255,255,0.14));
  box-shadow: 0 22px 70px color-mix(in srgb, var(--ws-accent) 18%, rgba(0,0,0,0.65));
  transition: border-color 0.25s, box-shadow 0.25s;
}
.page-home #looks .workspace-shot { width: 100%; height: auto; max-height: calc(100vh - 190px); object-fit: contain; }
.page-home .theme-badge {
  position: absolute; right: 12px; bottom: 12px; padding: 4px 11px; border-radius: 999px;
  background: rgba(10, 11, 14, 0.84); border: 1px solid rgba(255,255,255,0.16);
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.page-home .theme-badge::after { content: var(--ws-name); }

/* 6. Download Card */
.page-home .dl-card {
  background: radial-gradient(700px 320px at 15% 0%, rgba(248, 132, 15, 0.11), transparent 65%), var(--surface);
  border: 1px solid var(--line-strong); border-radius: 22px; padding: 42px;
  display: grid; grid-template-columns: 1.08fr 1fr; gap: 42px; align-items: start; box-shadow: var(--home-shadow);
}
.page-home .dl-left h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.page-home .dl-left .lede { color: var(--muted); font-size: 1.08rem; margin: 14px 0 26px; }
.page-home .needs-box { background: #0d0e13; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.page-home .needs-box h3 { font-size: 1.2rem; margin-bottom: 16px; }
.page-home .needs-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.page-home .needs-box li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 14.5px; }
.page-home .needs-box .ic {
  width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 12px; color: var(--spark-text);
}
.page-home .needs-box small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.45; }

/* Mobile-only compact pill helpers (hidden on desktop) */
.page-home .m-short, .page-home .m-pager, .page-home .m-pane-head, .page-home .m-spot-copy { display: none; }

@media (max-width: 1020px) {
  .page-home .core-stage,
  .page-home .theme-studio, .page-home #looks .theme-picker.few, .page-home .dl-card { grid-template-columns: 1fr; }
  /* Block flow on mobile so sticky pill bars (.make-list, .spot-tabs) stay pinned for the full card height */
  .page-home .make-showcase, .page-home .spotlight { display: block; padding: 16px; }
  .page-home .phone-stage { aspect-ratio: auto; padding: 24px 16px; }
  .page-home #looks .workspace-shot { max-height: none; }

  /* Option 1 Mobile: Sticky 1-row floating pill bar under the header until you scroll past the section! */
  .page-home .core-tabs,
  .page-home .make-list,
  .page-home .spot-tabs {
    position: sticky;
    top: 60px;
    z-index: 25;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 9px 28px;
    margin: 0 -28px 14px;
    background: rgba(10, 11, 14, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .page-home .make-list,
  .page-home .spot-tabs {
    padding: 10px 16px;
    margin: -16px -16px 14px;
    background: rgba(18, 19, 25, 0.95);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .page-home .core-tabs::-webkit-scrollbar,
  .page-home .make-list::-webkit-scrollbar,
  .page-home .spot-tabs::-webkit-scrollbar { display: none; }

  .page-home .core-tab,
  .page-home .make-btn,
  .page-home .spot-tab {
    flex: none;
    padding: 7px 13px;
    min-height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
  }
  .page-home .core-tab[aria-selected="true"]::after { display: none; }
  .page-home .core-tab[aria-selected="true"],
  .page-home .make-btn[aria-selected="true"],
  .page-home .spot-tab[aria-selected="true"] {
    background: rgba(248, 132, 15, 0.18);
    border-color: rgba(248, 132, 15, 0.72);
    color: #fff;
  }
  .page-home .core-tab .num,
  .page-home .core-tab .t-title,
  .page-home .core-tab .t-sub,
  .page-home .make-btn .make-ic,
  .page-home .make-btn .make-meta,
  .page-home .spot-tab h3,
  .page-home .spot-tab p,
  .page-home .spot-tab .more-link { display: none; }

  .page-home .m-short {
    display: inline;
    font-family: var(--body);
    font-size: 14.5px;
    font-weight: 650;
    white-space: nowrap;
  }
  .page-home .core-stage { gap: 16px; padding: 16px; }
  .page-home .m-pane-head { display: block; margin-bottom: 12px; }
  .page-home .m-pane-head h3 { font-size: 1.25rem; margin: 0 0 4px; }
  .page-home .m-pane-head p { margin: 0; font-size: 15px; color: var(--muted); }
  .page-home .m-spot-copy.active { display: block; padding: 14px 14px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
  .page-home .m-spot-copy h3 { font-size: 1.2rem; margin: 0 0 4px; }
  .page-home .m-spot-copy p { margin: 0; font-size: 15px; color: var(--muted); }
  .page-home .m-spot-copy a { color: var(--spark-text); font-weight: 600; text-decoration: none; white-space: nowrap; }

  .page-home .m-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .page-home .m-count { font-family: var(--mono); font-size: 13px; color: var(--dim); }
  .page-home .m-next-btn {
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 15px;
    min-height: 44px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
  }
  .page-home .m-next-btn:hover, .page-home .m-next-btn:focus-visible { border-color: var(--spark); color: var(--spark-text); }
}
@media (max-width: 767px) {
  .page-home .core-tabs,
  .page-home .make-list,
  .page-home .spot-tabs { top: 56px; }
  .page-home .core-tabs { padding: 9px 16px; margin: 0 -16px 14px; }
  .page-home .hero { padding: 44px 16px 52px; }
  .page-home .band { padding: 52px 0; }
  .page-home .power-duo { grid-template-columns: 1fr; }
  .page-home .phone-stage { flex-direction: column; }
  .page-home .dl-card { padding: 26px 20px; }
  .page-home .m-short { font-size: 14px; }
  .page-home .m-next-btn, .page-home .m-pane-head p, .page-home .m-spot-copy p,
  .page-home .theme-label, .page-home .needs-box small { font-size: 16px; }
}

.theme-picker:has(#theme-pulsar-violet:checked), .theme-card[data-preset="pulsar-violet"] {
  --ws-bg:#0a0d10; --ws-panel:#0d1114; --ws-edge:#1e252a; --ws-ink:#e9edef; --ws-dim:#aeb6bb;
  --ws-accent:#a97bff; --ws-active:#201c31; --ws-star:#a66bff;
  --ws-name:"Violet";
}
.theme-picker:has(#theme-light:checked), .theme-card[data-preset="light"] {
  --ws-bg:#ffffff; --ws-panel:#f6f8fa; --ws-edge:#d1d9e0; --ws-ink:#1f2328; --ws-dim:#59636e;
  --ws-accent:#b14700; --ws-active:#f8eee8; --ws-star:transparent;
  --ws-name:"Light Mode";
}
.theme-picker:has(#theme-dark-gray:checked), .theme-card[data-preset="dark-gray"] {
  --ws-bg:#1e1e1e; --ws-panel:#1b1b1b; --ws-edge:#2c2c2c; --ws-ink:#d4d4d4; --ws-dim:#8f8f8f;
  --ws-accent:#f8840f; --ws-active:#31353a; --ws-star:transparent;
  --ws-name:"Dark Gray";
}
.theme-picker:has(#theme-high-contrast:checked), .theme-card[data-preset="high-contrast"] {
  --ws-bg:#000000; --ws-panel:#050505; --ws-edge:#3f3f3f; --ws-ink:#ffffff; --ws-dim:#b5b5b5;
  --ws-accent:#f8840f; --ws-active:#2b2b2b; --ws-star:transparent;
  --ws-name:"High Contrast Dark";
}
.theme-picker:has(#theme-soft-dark:checked), .theme-card[data-preset="soft-dark"] {
  --ws-bg:#24262b; --ws-panel:#212328; --ws-edge:#33363d; --ws-ink:#cfd3dc; --ws-dim:#8d93a1;
  --ws-accent:#ff9530; --ws-active:#3a3e47; --ws-star:transparent;
  --ws-name:"Soft Dark";
}
.theme-picker:has(#theme-pulsar-crimson:checked), .theme-card[data-preset="pulsar-crimson"] {
  --ws-bg:#000000; --ws-panel:#070405; --ws-edge:#2a1216; --ws-ink:#f4ecec; --ws-dim:#c4b1b3;
  --ws-accent:#ff8fb1; --ws-active:#241419; --ws-star:#e0193f;
  --ws-name:"Crimson";
}
.theme-picker:has(#theme-pulsar-ember:checked), .theme-card[data-preset="pulsar-ember"] {
  --ws-bg:#0b0705; --ws-panel:#110b08; --ws-edge:#2a1d15; --ws-ink:#f5ece2; --ws-dim:#c6b4a3;
  --ws-accent:#ff9a3d; --ws-active:#2d1c0d; --ws-star:#ff7a1f;
  --ws-name:"Ember";
}
.theme-picker:has(#theme-pulsar-mono:checked), .theme-card[data-preset="pulsar-mono"] {
  --ws-bg:#050505; --ws-panel:#0a0a0a; --ws-edge:#222222; --ws-ink:#f2f2f2; --ws-dim:#b4b4b4;
  --ws-accent:#ffffff; --ws-active:#282828; --ws-star:#ffffff;
  --ws-name:"Mono";
}
.theme-picker:has(#theme-pulsar-phosphor:checked), .theme-card[data-preset="pulsar-phosphor"] {
  --ws-bg:#040805; --ws-panel:#070d08; --ws-edge:#16241a; --ws-ink:#e4f2e6; --ws-dim:#a9bead;
  --ws-accent:#b6ff3c; --ws-active:#1d2b0d; --ws-star:#39ff88;
  --ws-name:"Phosphor";
}
.theme-picker:has(#theme-pulsar-gold:checked), .theme-card[data-preset="pulsar-gold"] {
  --ws-bg:#0a0805; --ws-panel:#100d08; --ws-edge:#2a2214; --ws-ink:#f6f0e2; --ws-dim:#c9bea6;
  --ws-accent:#f3e0b0; --ws-active:#2b261d; --ws-star:#d4a843;
  --ws-name:"Gold";
}
.theme-picker:has(#theme-pulsar-synthwave:checked), .theme-card[data-preset="pulsar-synthwave"] {
  --ws-bg:#0a0614; --ws-panel:#0f0a1c; --ws-edge:#241a3a; --ws-ink:#f1ecfa; --ws-dim:#bdb2d2;
  --ws-accent:#ff4fc3; --ws-active:#2c102d; --ws-star:#ff4fc3;
  --ws-name:"Synthwave";
}
.theme-picker:has(#theme-pulsar-deep-sea:checked), .theme-card[data-preset="pulsar-deep-sea"] {
  --ws-bg:#04090b; --ws-panel:#071013; --ws-edge:#12262b; --ws-ink:#e2f0f0; --ws-dim:#a3babb;
  --ws-accent:#2dd4d4; --ws-active:#0a2527; --ws-star:#1f8fa8;
  --ws-name:"Deep Sea";
}
.theme-picker:has(#theme-pulsar-mono-blue:checked), .theme-card[data-preset="pulsar-mono-blue"] {
  --ws-bg:#050505; --ws-panel:#0a0a0a; --ws-edge:#222222; --ws-ink:#f2f2f2; --ws-dim:#b4b4b4;
  --ws-accent:#5b9dff; --ws-active:#111a28; --ws-star:#ffffff;
  --ws-name:"Mono + Blue";
}
.theme-picker:has(#theme-pulsar-violet:checked) .shot-pulsar-violet { display:block }
.theme-picker:has(#theme-light:checked) .shot-light { display:block }
.theme-picker:has(#theme-dark-gray:checked) .shot-dark-gray { display:block }
.theme-picker:has(#theme-high-contrast:checked) .shot-high-contrast { display:block }
.theme-picker:has(#theme-soft-dark:checked) .shot-soft-dark { display:block }
.theme-picker:has(#theme-pulsar-crimson:checked) .shot-pulsar-crimson { display:block }
.theme-picker:has(#theme-pulsar-ember:checked) .shot-pulsar-ember { display:block }
.theme-picker:has(#theme-pulsar-mono:checked) .shot-pulsar-mono { display:block }
.theme-picker:has(#theme-pulsar-phosphor:checked) .shot-pulsar-phosphor { display:block }
.theme-picker:has(#theme-pulsar-gold:checked) .shot-pulsar-gold { display:block }
.theme-picker:has(#theme-pulsar-synthwave:checked) .shot-pulsar-synthwave { display:block }
.theme-picker:has(#theme-pulsar-deep-sea:checked) .shot-pulsar-deep-sea { display:block }
.theme-picker:has(#theme-pulsar-mono-blue:checked) .shot-pulsar-mono-blue { display:block }