/* D4 Builder landing page (/). Dark sanctuary palette: soot black, blood-red and ember accents, aged-gold hairlines.
   The overlay colours (guide yellow, taken green) are the app's own. Motion is opt-in: landing.js adds .mo to <html>
   only when prefers-reduced-motion is not set, and every animation below is transform/opacity. */
:root {
  --bg: #0d0b0a; --bg-2: #120e0c; --panel: #16120f; --panel-2: #211a16; --hover: rgb(255 236 214 / .045);
  --line: #2a221d; --line-2: #3d322b; --fg: #efe7db; --fg-2: #b9ac9c; --fg-3: #877a69;
  --accent: #e8603a; --on-accent: #fff2e6; --blood: #a3251a; --blood-2: #6c140c; --gold: #c19a5b; --gold-dim: #5d4a31;
  --guide: #f5c518; --ok: #55d282; --no: #ec6d5f; --warn: #d8972b; --shot: #070605;
  --hero-glow: rgb(163 37 26 / .26); --hero-glow-2: rgb(232 96 58 / .09);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --orn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 .8 13.2 7 7 13.2.8 7z' fill='none' stroke='%23c19a5b' stroke-width='1.3'/%3E%3Cpath d='M7 4.6 9.4 7 7 9.4 4.6 7z' fill='%23c19a5b'/%3E%3C/svg%3E");
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3eee6; --bg-2: #ece5da; --panel: #fffcf7; --panel-2: #ebe3d6; --hover: rgb(60 30 10 / .04);
  --line: #e0d6c7; --line-2: #c9bba7; --fg: #1d1713; --fg-2: #4e4339; --fg-3: #776a5c;
  --accent: #b2341c; --on-accent: #fff6ee; --blood: #a3251a; --blood-2: #74160d; --gold: #8f6a2e; --gold-dim: #cdb894;
  --guide: #b98e00; --ok: #1d8544; --no: #c23a2c; --warn: #a86a0c; --shot: #17120f;
  --hero-glow: rgb(163 37 26 / .10); --hero-glow-2: rgb(193 154 91 / .16);
  --orn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 .8 13.2 7 7 13.2.8 7z' fill='none' stroke='%238f6a2e' stroke-width='1.3'/%3E%3Cpath d='M7 4.6 9.4 7 7 9.4 4.6 7z' fill='%238f6a2e'/%3E%3C/svg%3E");
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15.5px/1.75 var(--sans); overflow-x: hidden; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -40px; z-index: 9; padding: 6px 10px; background: var(--accent); color: var(--on-accent); border-radius: 4px; font-weight: 650; text-decoration: none; }
.skip:focus { top: 10px; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num, code { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wrap { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
p { margin: 0; }

/* header */
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.top::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--line) 0, var(--gold-dim) 50%, var(--line) 100%); }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 15px/1 var(--display); letter-spacing: .06em; text-decoration: none; }
.mark { width: 22px; height: 22px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 6px 9px; border-radius: 4px; font-size: 13.5px; color: var(--fg-2); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--fg); background: var(--hover); }
.nav a.out { color: var(--fg); font-weight: 650; }
.tools { display: flex; gap: 6px; align-items: center; margin-left: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.seg button { border: 0; background: none; padding: 4px 10px; font-size: 12.5px; color: var(--fg-3); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--fg); font-weight: 650; }
.iconbtn { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 4px; background: none; color: var(--fg-2); cursor: pointer; }
.iconbtn:hover, .seg button:hover { color: var(--fg); }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: 60px; margin-top: -60px; padding-bottom: 8px;
  background:
    radial-gradient(60% 70% at 78% 38%, var(--hero-glow), transparent 70%),
    radial-gradient(40% 50% at 8% 10%, var(--hero-glow-2), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 85%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 180px; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
:root[data-theme="light"] .embers { display: none; }
.fog { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fog i { position: absolute; width: 900px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgb(120 32 20 / .20), transparent); will-change: transform; }
.fog i:first-child { left: -200px; bottom: -120px; }
.fog i:last-child { right: -260px; top: 80px; background: radial-gradient(closest-side, rgb(90 70 55 / .16), transparent); }
:root[data-theme="light"] .fog i { opacity: .35; }
.mo .fog i:first-child { animation: drift 34s ease-in-out infinite alternate; }
.mo .fog i:last-child { animation: drift 46s ease-in-out -12s infinite alternate-reverse; }
.hero.off .fog i { animation-play-state: paused; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(220px, -40px, 0) scale(1.15); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; padding-top: 104px; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 18px; font: 600 12.5px/1.4 var(--sans); color: var(--gold); letter-spacing: .04em; }
.eyebrow span + span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 12px; transform: translateY(-1px) rotate(45deg); border: 1px solid var(--gold-dim); }
h1 { position: relative; margin: 0; padding-bottom: 22px; font: 700 clamp(46px, 5.4vw, 74px)/.95 var(--display); letter-spacing: .015em; color: var(--fg);
  text-shadow: 0 0 34px rgb(232 96 58 / .22), 0 2px 0 rgb(0 0 0 / .35); }
:root[data-theme="light"] h1 { text-shadow: none; }
h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 220px; height: 14px; background: var(--orn) 0 50% / 14px no-repeat, linear-gradient(90deg, var(--gold), transparent) 22px 50% / 198px 1px no-repeat; }
.lede { margin-top: 28px; max-width: 26em; font-size: 21px; line-height: 1.55; font-weight: 600; letter-spacing: -.015em; color: var(--fg); }
.lede-2 { margin-top: 12px; max-width: 30em; color: var(--fg-2); font-size: 15.5px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 4px; border: 1px solid var(--line-2); font-size: 15px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.btn.go { background: linear-gradient(180deg, #b02b1d, #6f150d); border-color: #d9563a; color: #fff3e8; text-shadow: 0 1px 0 rgb(0 0 0 / .45);
  box-shadow: inset 0 1px 0 rgb(255 205 170 / .28), inset 0 -2px 0 rgb(0 0 0 / .25), 0 8px 22px -8px rgb(200 45 25 / .7); transition: box-shadow .2s, filter .2s; }
.btn.go:hover { filter: brightness(1.12); box-shadow: inset 0 1px 0 rgb(255 205 170 / .35), inset 0 -2px 0 rgb(0 0 0 / .25), 0 10px 30px -6px rgb(232 80 40 / .85); }
.btn.go .ic { transition: transform .15s; }
.btn.go:hover .ic { transform: translateX(3px); }
.btn.soon { background: var(--panel); color: var(--fg-2); cursor: not-allowed; }
.btn.dl { background: var(--panel); border-color: var(--gold-dim); color: var(--fg); transition: border-color .2s, background .2s; }
.btn.dl:hover { border-color: var(--gold, #c9a45c); background: var(--panel-2, var(--panel)); }
.note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.note { margin-top: 16px; font-size: 13px; color: var(--fg-3); display: flex; align-items: center; gap: 8px; }
.note::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-dim); flex: none; }
.tag { padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 3px; font-size: 12px; font-weight: 650; color: var(--fg-3); }

/* compact labelled facts (hero spec, compatibility) */
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; margin-top: 0; margin-bottom: 0; }
.kv div { padding-top: 14px; border-top: 1px solid var(--line); }
.kv dt { color: var(--fg-3); font-size: 12px; letter-spacing: .03em; }
.kv dd { margin: 3px 0 0; color: var(--fg-2); font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.hero .kv { margin-top: 80px; padding-bottom: 8px; }
/* build sources: each site's icon next to its name (icons are decorative, alt="") */
.kv dd.sites { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.site { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.site img { flex: none; width: 16px; height: 16px; border-radius: 3px; object-fit: contain; }
.kv.compat { margin-top: 72px; }
.specline { margin-top: 72px; padding-top: 20px; padding-bottom: 8px; color: var(--fg-3); font-size: 13px; letter-spacing: .01em; text-align: center; }
#features .specline { margin-top: 40px; padding: 0; }

/* animated overlay demo: always a dark "game window", whatever the theme */
.stage { margin: 0; }
.st-win { border: 1px solid #3b2f27; border-radius: 10px; overflow: hidden; background: #0a0807;
  box-shadow: 0 0 0 1px rgb(193 154 91 / .07), 0 40px 90px -30px rgb(0 0 0 / .85), 0 0 80px -20px rgb(163 37 26 / .45); }
:root[data-theme="light"] .st-win { box-shadow: 0 30px 70px -30px rgb(40 20 10 / .55); }
.st-bar { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; background: #1c1917; border-bottom: 1px solid #2a2421; font: 600 11.5px/1 var(--sans); color: #9a928a; }
.st-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.st-bar i:nth-child(2) { background: #febc2e; }
.st-bar i:nth-child(3) { background: #28c840; }
.st-bar span { flex: 1; margin-right: 44px; text-align: center; }
.st-view { position: relative; aspect-ratio: 640 / 400; overflow: hidden; color: #efe7db; font-family: var(--sans);
  background: radial-gradient(ellipse 70% 65% at 50% 52%, #1d1714, #0b0908 78%); container-type: inline-size; }
.st-view::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px #2a211c, inset 0 0 0 5px #0b0908, inset 0 0 0 6px #3a2d24, inset 0 0 70px rgb(0 0 0 / .85); }
.st-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-tabs { position: absolute; z-index: 1; left: 50%; top: 3.2%; display: flex; gap: 4px; transform: translateX(-50%); }
.st-tabs span { padding: 4px 12px; border: 1px solid #55504a; border-radius: 2px; background: linear-gradient(#4a4642, #2d2a27); color: #d9d3cb; font-size: clamp(9px, 1.9cqw, 12px); font-weight: 700; transition: background .3s, border-color .3s; }
.st-tabs span.on { border-color: #e2563d; background: linear-gradient(#a52a1d, #6a130c); color: #fff; }
.st-pts { position: absolute; left: 3.4%; top: 10%; display: grid; gap: 2px; min-width: 21%; padding: 6px 10px; border: 1px solid #4a3d33; border-radius: 3px; background: rgb(12 10 9 / .92); text-align: center; font-size: clamp(8px, 1.65cqw, 11px); }
.st-pts small { color: #a79f95; font-style: italic; font-size: 1em; }
.st-pts b { font-size: 1.25em; }
.st-panel { position: absolute; right: 3%; bottom: 4.5%; display: grid; gap: 1px; max-width: 54%; padding: 7px 12px; border: 1px solid rgb(255 255 255 / .16); border-radius: 6px; background: rgb(7 6 5 / .9); text-align: center; font-size: clamp(8px, 1.75cqw, 11.5px); line-height: 1.45; }
.st-panel b { color: #fff; font-weight: 700; }
.st-panel .y { color: #f5c518; }
.st-panel .g { color: #63e08f; }
.st-panel .k { margin-top: 2px; color: #8b847c; font: 500 .85em var(--mono); }
.st-cur { position: absolute; left: 0; top: 0; z-index: 2; width: 22px; height: 22px; fill: #fff; stroke: #000; stroke-width: 1.4; stroke-linejoin: round; opacity: 0; transform: translate3d(50%, 80%, 0);
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / .6)); transition: transform .75s cubic-bezier(.35, .7, .25, 1), opacity .3s; will-change: transform; }
.st-cur.on { opacity: 1; }
.st-cur.click { animation: tap .22s ease-out; }
@keyframes tap { 50% { scale: .82; } }

/* svg scene parts (built by landing.js) */
.scene { transition: opacity .6s ease; }
.scene.hide { opacity: 0; }
.st-svg text { font-family: var(--sans); }
.ring { fill: none; stroke: #2a211c; stroke-width: 1; }
.trunk { fill: none; stroke: #7e170f; stroke-width: 6; stroke-linecap: round; }
.trunk-g { fill: none; stroke: rgb(220 50 28 / .22); stroke-width: 18; stroke-linecap: round; }
.ln { fill: none; stroke: #3b322c; stroke-width: 2; transition: stroke .5s; }
.ln.on { stroke: #c62d1e; }
.hub { fill: #2a1210; stroke: #c23a2b; stroke-width: 2; }
.hub-i { fill: #8d8780; }
.pas { fill: #1b1613; stroke: #5d4d40; stroke-width: 1.2; transition: fill .5s, stroke .5s; }
.pas.on { fill: #b3301f; stroke: #f07a52; }
.sn .fr { fill: #120e0c; stroke: #6a573f; stroke-width: 1.6; transition: stroke .4s; }
.sn .dim { fill: #0b0908; opacity: .62; transition: opacity .5s; }
.sn .glyph { fill: none; stroke: #8c7a62; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sn .halo, .pg .halo { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; transition: opacity .6s, transform .6s; }
.sn .pv { fill: #8e877f; font-size: 8px; font-weight: 700; text-anchor: middle; }
.sn.on .dim { opacity: 0; }
.sn.on .halo, .pg.on .halo { opacity: 1; transform: none; }
.sn.on .pv { fill: #b9a5ff; }
.tb { fill: none; stroke: #f5c518; stroke-width: 2.2; opacity: 0; transition: opacity .3s, stroke .3s; }
.bdg, .lbl { opacity: 0; transition: opacity .3s; }
.bdg circle { fill: #f5c518; stroke: #111; stroke-width: 1; }
.bdg text { fill: #111; font-size: 9.5px; font-weight: 800; text-anchor: middle; }
.lbl { fill: #f5c518; font-size: 10.5px; font-weight: 600; paint-order: stroke; stroke: rgb(0 0 0 / .85); stroke-width: 3px; }
.tgt .tb, .tgt .bdg, .tgt .lbl { opacity: 1; }
.mo .tgt .tb { animation: glint 1.1s ease-in-out infinite alternate; }
@keyframes glint { from { opacity: 1; } to { opacity: .7; } }
.sn.tgt .dim { opacity: .18; }
.done .tb { opacity: 1; stroke: #48d17a; animation: none; }
.ck { opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: center; transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ck circle { fill: #34c063; stroke: #0b0908; stroke-width: 1.2; }
.ck path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.done .ck { opacity: 1; transform: none; }
.tl { fill: url(#tg); stroke: #2e2520; stroke-width: 1; transition: stroke .5s; }
.nd { stroke-width: 1.5; fill: #0e0b09; transition: fill .5s, stroke .5s; }
.nd.n { stroke: #5f5750; } .nd.m { stroke: #4a82d6; fill: #111d33; } .nd.r { stroke: #d6ac45; fill: #2a200b; } .nd.l { stroke: #e0472d; fill: #34120e; stroke-width: 2; }
.dot { fill: #6f665e; transition: fill .5s; } .dot.m { fill: #4a82d6; } .dot.r { fill: #d6ac45; } .dot.l { fill: #f06a45; }
.pg.on .tl { stroke: #a8341f; fill: #2a120e; }
.pg.on .nd { fill: #8f2416; stroke: #ff7a52; }
.pg.on .nd.m { fill: #2d5aa8; stroke: #8fb8ff; } .pg.on .nd.r { fill: #b88a24; stroke: #ffe08a; }
.pg.on .dot { fill: #ffd9c4; }
.pl { opacity: 0; transition: opacity .45s; }
.pl.on { opacity: 1; }
.pl-g { stroke: rgb(255 80 40 / .28); stroke-width: 9; stroke-linecap: round; }
.pl-c { stroke: #f05a33; stroke-width: 2.4; stroke-linecap: round; }
.sock { fill: #18120f; stroke: #c19a5b; stroke-width: 1.5; }
.gate { fill: none; stroke: #c19a5b; stroke-width: 1.6; }

/* sections */
section { padding-top: 152px; }
.sh { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; margin-bottom: 64px; padding-top: 32px;
  background: var(--orn) 0 0 / 14px no-repeat, linear-gradient(90deg, var(--gold-dim), var(--line) 40%, transparent) 22px 6.5px / calc(100% - 22px) 1px no-repeat; }
.label { display: flex; align-items: baseline; gap: 10px; font: 650 13px/1.9 var(--sans); color: var(--fg-3); }
.rn { min-width: 26px; font: 700 15px/1 var(--display); color: var(--gold); letter-spacing: .04em; }
h2 { margin: 0; font-size: 31px; line-height: 1.25; font-weight: 780; letter-spacing: -.03em; }
.sh p { margin-top: 14px; max-width: 60ch; color: var(--fg-2); font-size: 16.5px; }
h3 { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 720; letter-spacing: -.02em; }

/* class strip */
/* the strip sits in its own full-bleed band: a warmer, slightly lighter surface (darker cream in light mode), gold
   hairlines top and bottom and a soft glow behind the portraits; --fg-3 is raised inside it to keep 4.5:1 */
#classes.band { --band: #1c1511; --fg-3: #988a78; margin-top: 96px; padding: 56px 0 64px;
  background: radial-gradient(ellipse 60% 70% at 50% 62%, rgb(193 154 91 / .07), transparent 70%), var(--band);
  border-block: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--gold-dim) 20%, var(--gold-dim) 80%, transparent) 1; }
:root[data-theme="light"] #classes.band { --band: #e9e0d1; --fg-3: #655a4d;
  background: radial-gradient(ellipse 60% 70% at 50% 62%, rgb(143 106 46 / .08), transparent 70%), var(--band); }
.cls-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 28px; }
.cls-head h2 { font-size: 22px; }
.cls-meta { color: var(--fg-3); font-size: 13.5px; }
.cls-meta .num { color: var(--fg-2); margin-left: 4px; }
.cls { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cls a { --cc: var(--gold); position: relative; display: block; overflow: hidden; border: 1px solid var(--line-2); border-radius: 5px; background: #0c0a09; color: #f3ebdf; text-decoration: none; transition: border-color .25s, transform .25s; }
.cls .pt { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: radial-gradient(circle at 50% 35%, #2a211c, #0c0a09 70%); }
.cls .pt::before { content: attr(data-l); font: 700 34px/1 var(--display); color: var(--cc); opacity: .7; }
.cls .pt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; filter: saturate(.82) brightness(.92); }
.cls .pt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(8 6 5 / .92)); }
.cls .cn { position: absolute; left: 10px; right: 10px; bottom: 22px; z-index: 1; font-size: 14px; font-weight: 700; letter-spacing: -.01em; text-shadow: 0 1px 2px #000; }
.cls .ct { position: absolute; left: 10px; bottom: 7px; z-index: 1; font-size: 11px; color: #b5a998; }
.cls .ct:empty::before { content: "\00a0"; }
.cls a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w, 0%); background: var(--cc); transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.cls a:hover, .cls a:focus-visible { border-color: var(--cc); transform: translateY(-2px); }
.cls a:hover img { transform: scale(1.07); filter: none; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.steps li { position: relative; padding: 32px 32px 0 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.glyph { display: block; width: 46px; height: 46px; margin-bottom: 12px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 140; stroke-dashoffset: 0; }
.mo .steps .glyph { stroke-dashoffset: 140; transition: stroke-dashoffset 1.6s cubic-bezier(.4, .1, .2, 1); }
.mo .steps.in .glyph { stroke-dashoffset: 0; }
.mo .steps.in li:nth-child(2) .glyph { transition-delay: .25s; }
.mo .steps.in li:nth-child(3) .glyph { transition-delay: .5s; }
.steps .n { font: 700 12px var(--mono); color: var(--accent); }
.steps h3 { margin-top: 4px; }
.steps p { margin-top: 6px; color: var(--fg-2); font-size: 15px; }
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; margin-top: 56px; padding: 0; font-size: 13px; color: var(--fg-2); }
.keys > strong { color: var(--fg); font-weight: 650; }
.keys span { display: inline-flex; align-items: center; gap: 7px; }
kbd { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", var(--sans); display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; background: var(--panel-2); color: var(--fg); font-size: 12px; font-weight: 600; text-align: center; }

/* framed screenshots: aged-gold corner brackets */
.shot { position: relative; margin: 0; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: var(--shot); }
.shot img { width: 100%; }
.frame::after { content: ""; position: absolute; inset: 4px; pointer-events: none; opacity: .75; --c: var(--gold); --s: 16px; --t: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--s) var(--t), linear-gradient(var(--c), var(--c)) 0 0 / var(--t) var(--s),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--s) var(--t), linear-gradient(var(--c), var(--c)) 100% 0 / var(--t) var(--s),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--s) var(--t), linear-gradient(var(--c), var(--c)) 0 100% / var(--t) var(--s),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--s) var(--t), linear-gradient(var(--c), var(--c)) 100% 100% / var(--t) var(--s);
  background-repeat: no-repeat; }
.hero-fig { margin: 120px 0 0; }
/* the big annotated screenshot and the II (features) rows run at 80% of the column on tablet and up (centred),
   full width on phones */
@media (min-width: 761px) { .hero-fig, #features .feat, #features .duo, #features .pbox, #features .kv.compat, #guides .gcards, #guides .gmore { width: 80%; margin-inline: auto; } }
.pin { position: absolute; left: var(--l); top: var(--t); display: grid; place-items: center; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #f3e9d8; color: #140f0c; border: 2px solid #140f0c; box-shadow: 0 0 0 3px rgb(193 154 91 / .55); font: 700 12px/1 var(--mono); pointer-events: none; }
html[lang="en"] .pin { left: var(--le, var(--l)); top: var(--te, var(--t)); }
.mo .hero-fig.in .pin { animation: pinpop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.mo .hero-fig.in .pin:nth-of-type(2) { animation-delay: .15s; } .mo .hero-fig.in .pin:nth-of-type(3) { animation-delay: .3s; } .mo .hero-fig.in .pin:nth-of-type(4) { animation-delay: .45s; } .mo .hero-fig.in .pin:nth-of-type(5) { animation-delay: .6s; }
@keyframes pinpop { from { opacity: 0; transform: scale(.4); } }
.legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; background: var(--panel); }
.hero-fig .shot { border-radius: 6px 6px 0 0; }
.legend li { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 10px; padding: 14px 18px; font-size: 13px; color: var(--fg-3); line-height: 1.45; }
.legend li + li { border-left: 1px solid var(--line); }
.legend b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--gold-dim); font: 700 11px/1 var(--mono); color: var(--fg); }
.legend strong { display: block; color: var(--fg); font-weight: 650; }
.figcap { margin-top: 14px; font-size: 12.5px; color: var(--fg-3); }

/* feature rows */
.feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: start; }
.feat > .ft { padding-top: 28px; }  /* heading near the top of its screenshot, not floating mid-row */
.feat + .feat, .duo + .feat { margin-top: 128px; }
.ft h2 { margin-top: 6px; font-size: 26px; }
.ft .cta { margin-top: 28px; }
.feat.rev { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.feat.rev .shot { order: 2; }
.feat .shot img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.feat .shot:hover img { transform: scale(1.018); }
.ft p { margin-top: 12px; max-width: 46ch; color: var(--fg-2); }
.ft h3 { font-size: 22px; }
.ft ul { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ft li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ft li::before { content: ""; position: absolute; left: 3px; top: 18px; width: 7px; height: 7px; transform: rotate(45deg); border: 1.5px solid var(--accent); }
.ft .k { font-size: 12.5px; color: var(--fg-3); }
.duo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; margin-top: 48px; align-items: start; }
.ft q { color: var(--fg); }
.ft .soonnote { font-size: 13.5px; color: var(--fg-3); }
.soonnote .tag { margin-right: 6px; }
/* Windows / macOS tabs in Features: a segmented control (as on /wintest/), full width on phones; Windows panel first */
.ptabs { display: flex; gap: 4px; max-width: 560px; margin: 128px auto 0; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.ptabs a { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 12px; border-radius: 7px;
  font-weight: 700; font-size: 15.5px; text-decoration: none; color: var(--fg-2); text-align: center; }
.ptabs a .ic { width: 18px; height: 18px; flex: none; }
.ptabs a small { font: 500 12px var(--sans); color: var(--fg-3); }
.ptabs a:hover { color: var(--fg); background: var(--hover); }
.ptabs a[aria-selected="true"] { color: var(--on-accent); background: var(--accent); }
.ptabs a[aria-selected="true"] small { color: inherit; opacity: .8; }
.ppanel { margin-top: 56px; }
.ppanel + .ppanel { margin-top: 128px; }  /* without JS both panels show, one after the other */
.ppanel[hidden] { display: none; }
.ptabs[role="tablist"] ~ .ppanel { margin-top: 56px; }
.cap { padding: 9px 12px; border-top: 1px solid var(--line-2); background: var(--panel); font-size: 12.5px; color: var(--fg-3); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 136px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); transition: border-color .25s; }
.card:hover { border-color: var(--gold-dim); }
.media { aspect-ratio: 16 / 11; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.media.dark { background: radial-gradient(circle at 50% 40%, #1d1613, #0a0807 75%); }
.media.dark img { width: auto; height: auto; max-width: 72%; object-fit: contain; border-radius: 4px; }
.media.white { background: #fff; }
.card .body { padding: 20px 22px 22px; }
.card p { margin-top: 4px; font-size: 14.5px; color: var(--fg-3); }

/* safety */
.safe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.box { padding: 26px 28px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, var(--hover), transparent 60%), var(--panel); }
.box h3 { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.box h3 .ic { width: 18px; height: 18px; }
.box.do h3 .ic { color: var(--ok); }
.box.dont h3 .ic { color: var(--no); }
.box ul { margin: 12px 0 0; padding: 0; list-style: none; }
.box li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--fg-2); }
.box li strong { color: var(--fg); font-weight: 650; }
.tipcols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); }
.tiph { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.tiph .ic { width: 18px; height: 18px; color: var(--accent); }
.tiph.warn .ic { color: var(--warn); }
.tl2 { margin: 14px 0 0; padding: 0; list-style: none; }
.tl2 li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; padding: 7px 0; font-size: 14.5px; color: var(--fg-2); line-height: 1.55; }
.tl2 li > .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--gold); }
.tl2 strong { color: var(--fg); font-weight: 650; }
.mini h3 { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.mini h3 .ic { width: 17px; height: 17px; color: var(--gold); }
.mini p { margin-top: 8px; font-size: 14px; color: var(--fg-2); max-width: 44ch; }
.mini code { font-size: 12.5px; color: var(--fg); overflow-wrap: anywhere; }
.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.tip { display: flex; gap: 12px; align-items: flex-start; max-width: 60ch; color: var(--fg-2); }
.tip > .ic { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.tip strong { color: var(--fg); font-weight: 650; }
.more { grid-column: 1 / -1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#safety > .more { margin-top: 40px; }
.more summary { display: flex; align-items: center; gap: 10px; padding: 14px 0; color: var(--fg-2); font-weight: 650; font-size: 14px; cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary .ic { color: var(--fg-3); transition: transform .15s; }
.more[open] summary .ic { transform: rotate(90deg); color: var(--accent); }
.more summary:hover { color: var(--fg); }
.more ul { margin: 0; padding: 0 0 18px 18px; color: var(--fg-2); font-size: 14.5px; columns: 2; column-gap: 40px; }
.more li { padding: 4px 0; break-inside: avoid; }
.more li::marker { color: var(--gold-dim); }
.more code { font-size: 12.5px; overflow-wrap: anywhere; }
.caveats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; margin-top: 48px; }
.caveats p { display: flex; gap: 12px; align-items: flex-start; max-width: 60ch; color: var(--fg-2); }
.caveats .ic { width: 18px; height: 18px; margin-top: 4px; color: var(--warn); }
.caveats strong { color: var(--fg); font-weight: 650; }
.tips .box ul { margin-top: 8px; }
.tips li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.tips li > .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.tips .warn h3 .ic { color: var(--warn); }
.tips .box:first-child h3 .ic { color: var(--accent); }
.audit { margin-top: 24px; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--blood); border-radius: 4px; font-size: 14px; color: var(--fg-2); }
.s3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.s3 p { margin-top: 10px; font-size: 14px; color: var(--fg-2); }
.s3 h3 .ic { color: var(--gold); }
.audit code, .box code { font-size: 12.5px; color: var(--fg); overflow-wrap: anywhere; }
.risk { margin-top: 32px; font-size: 13.5px; color: var(--fg-3); }

/* read-only data flow */
.flow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 0 18px; margin-bottom: 40px; padding: 36px 32px; border: 1px solid var(--line); border-radius: 6px;
  background: radial-gradient(50% 120% at 50% 50%, rgb(163 37 26 / .10), transparent 70%), var(--panel); }
.fn { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg); font-size: 14px; white-space: nowrap; }
.fn .ic { width: 20px; height: 20px; color: var(--gold); }
.fn .ic.big { stroke-width: 3.2; }
.fn.hot { border-color: #b8432c; box-shadow: 0 0 0 3px rgb(184 67 44 / .14), 0 0 26px -6px rgb(232 96 58 / .55); font-family: var(--display); font-weight: 700; letter-spacing: .05em; }
.fn.hot .mark { width: 20px; height: 20px; }
.fc { position: relative; display: grid; grid-template-rows: 20px 10px 18px; gap: 7px; min-width: 0; text-align: center; font-size: 12.5px; }
.fl { color: var(--fg-2); }
.wire { position: relative; display: block; height: 10px; overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 10'%3E%3Cpath d='M0 0l8 5-8 5z' fill='%23c19a5b'/%3E%3C/svg%3E") 100% 50% / 8px 10px no-repeat,
    repeating-linear-gradient(90deg, var(--gold-dim) 0 6px, transparent 6px 11px) 0 50% / calc(100% - 8px) 2px no-repeat; }
.wire::after { content: ""; position: absolute; left: 0; right: 8px; top: 4px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent) 40%, #ffd2a8 50%, var(--accent) 60%, transparent); transform: translateX(-100%); }
.mo .flow.in .wire::after { animation: flowx 2.4s cubic-bezier(.45, 0, .3, 1) infinite; }
.mo .flow.in .fc + .fn + .fc .wire::after { animation-delay: 1.2s; }
@keyframes flowx { to { transform: translateX(100%); } }
@keyframes flowy { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.fx { display: inline-flex; justify-content: center; align-items: center; gap: 6px; color: var(--no); font-size: 12px; }
.fx .ic { width: 14px; height: 14px; }

/* requirements + faq */
.two { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 96px; }
h2.label { margin: 0 0 24px; font: 650 14px/1.9 var(--sans); letter-spacing: 0; }
.req { margin: 0; border-top: 1px solid var(--line-2); }
.req div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.req dt { font-size: 13.5px; color: var(--fg-3); }
.req dd { margin: 0; font-weight: 600; }
.req dd small { display: block; font-weight: 400; font-size: 13px; color: var(--fg-3); }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--fg-3); transition: transform .15s; }
.faq details[open] summary .ic { transform: rotate(90deg); color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 28px 16px 0; color: var(--fg-2); font-size: 14.5px; }

/* footer */
footer { margin-top: 160px; padding: 30px 0 48px; font-size: 13px; color: var(--fg-3);
  background: var(--orn) 50% 0 / 14px no-repeat, linear-gradient(90deg, transparent, var(--gold-dim) 30%, var(--gold-dim) 70%, transparent) 50% 6.5px / 100% 1px no-repeat; }
.fgrid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 40px; }  /* row 1: brand | links */
.flinks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
/* row 2, full width under a thin gold rule: disclaimer + build sources */
.fmeta { grid-column: 1 / -1; margin-top: 22px; padding-top: 20px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 18%, var(--gold-dim) 82%, transparent) 0 0 / 100% 1px no-repeat; }
.fmeta > p:first-child { margin-top: 0; }
.flinks a { color: var(--fg-2); text-decoration: none; }
.flinks a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
footer p { margin-top: 8px; }
footer .fb { color: var(--fg); font: 700 14px var(--display); letter-spacing: .06em; display: inline-flex; gap: 8px; align-items: center; }
.srcs { margin-top: 10px; }
.srcs span { margin-right: 6px; }
.srcs a { white-space: nowrap; }
.srcs a img { display: inline-block; width: 14px; height: 14px; margin-right: 5px; border-radius: 3px; object-fit: contain; vertical-align: -2px; }

/* scroll reveal (only with .mo) */
.mo .rv { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.mo .rv.in { opacity: 1; transform: none; }
.mo .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.mo .hero-copy > :nth-child(2) { animation-delay: .08s; } .mo .hero-copy > :nth-child(3) { animation-delay: .16s; }
.mo .hero-copy > :nth-child(4) { animation-delay: .24s; } .mo .hero-copy > :nth-child(n+5) { animation-delay: .32s; }
.mo .stage { animation: rise 1.1s .2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 72px; }
  .tips, .caveats, .tipcols, .s3 { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
  .feat + .feat, .duo + .feat { margin-top: 96px; }
  .ft p { max-width: 60ch; }
  .stage { max-width: 760px; }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend li:nth-child(odd) { border-left: 0; }
  .legend li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .legend li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feat { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .feat.rev { grid-template-columns: minmax(0, 1fr); }
  .feat.rev .shot { order: 0; }
  .feat > .ft { padding-top: 0; }
  .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); gap: 80px; }
  .s3 { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; }
  .fc { width: 100%; max-width: 360px; justify-items: center; grid-template-rows: none; }
  .wire { order: -1; width: 10px; height: 34px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M0 0h10l-5 8z' fill='%23c19a5b'/%3E%3C/svg%3E") 50% 100% / 10px 8px no-repeat,
      repeating-linear-gradient(180deg, var(--gold-dim) 0 6px, transparent 6px 11px) 50% 0 / 2px calc(100% - 8px) no-repeat; }
  .wire::after { left: 4px; right: auto; top: 0; bottom: 8px; width: 2px; height: auto; background: linear-gradient(180deg, transparent, var(--accent) 40%, #ffd2a8 50%, var(--accent) 60%, transparent); transform: translateY(-100%); }
  .mo .flow.in .wire::after { animation-name: flowy; }
  .sh { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 760px) {
  .nav a:not(.out):not(.iconbtn) { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top::after { left: 16px; right: 16px; }
  body { font-size: 14.5px; }
  .top { height: 56px; }
  .tools { margin-left: 4px; }
  .nav a.out { padding: 6px 4px; font-size: 13px; }
  .hero { padding-top: 56px; margin-top: -56px; }
  .hero-grid { padding-top: 48px; gap: 44px; }
  section { padding-top: 88px; }
  #classes.band { margin-top: 64px; padding: 40px 0 44px; }
  .hero-fig { margin-top: 72px; }
  .specline { margin-top: 48px; text-align: left; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv div { padding: 10px 0; }
  .hero .kv { margin-top: 56px; }
  .kv.compat { margin-top: 56px; }
  .duo { gap: 20px; margin-top: 32px; }
  .sh { margin-bottom: 40px; }
  .feat { gap: 24px; }
  .feat + .feat, .duo + .feat { margin-top: 72px; }
  .cards { margin-top: 88px; gap: 20px; }
  .ptabs { max-width: none; margin-top: 88px; }
  .ptabs a { flex-direction: column; gap: 0; padding: 8px 6px; line-height: 1.3; }
  .ptabs a .ic { display: none; }
  .ppanel, .ptabs[role="tablist"] ~ .ppanel { margin-top: 36px; }
  .keys { justify-content: flex-start; gap: 10px 20px; margin-top: 40px; }
  .tips { margin-top: 44px; }
  .more ul { columns: 1; }
  footer { margin-top: 112px; }
  h1 { font-size: 44px; }
  .lede { font-size: 18px; }
  .btn { width: 100%; justify-content: center; }
  .st-panel { max-width: 70%; padding: 5px 8px; }
  .st-panel .k { display: none; }
  .lbl { display: none; }
  .pin { width: 18px; height: 18px; margin: -9px 0 0 -9px; font-size: 10px; border-width: 1.5px; box-shadow: 0 0 0 2px rgb(193 154 91 / .55); }
  .legend li { padding: 12px; font-size: 12.5px; }
  .cls { gap: 8px; }
  .cls .cn { left: 7px; right: 4px; bottom: 19px; font-size: 12.5px; }
  .cls .ct { left: 7px; bottom: 5px; font-size: 10px; }
  h2 { font-size: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; padding: 26px 0; border-left: 0; }
  .steps .glyph { grid-row: 1 / span 3; margin: 2px 0 0; width: 40px; height: 40px; }
  .media { aspect-ratio: 16 / 8; }
  .steps li + li { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .safe, .duo { grid-template-columns: minmax(0, 1fr); }
  .req div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .flinks { justify-content: flex-start; gap: 0 20px; margin-top: 8px; }
  .flinks a { display: inline-block; padding: 8px 0; }  /* tap targets */
}
@media (max-width: 440px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* guides (VIII): the five /guide/ articles as cards */
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.gcards .card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.gcards .media { aspect-ratio: 16 / 10; }
.gcards .card .body { padding: 16px 16px 18px; }
.gcards h3 { font-size: 15px; line-height: 1.4; }
.gcards .card p { margin-top: 6px; font-size: 13px; line-height: 1.55; }
.gcards .card > a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
.gcards .card:hover h3 { color: var(--gold); }
.gmore { margin-top: 28px; text-align: right; font-size: 15px; }
.gmore a { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-weight: 650; text-decoration: underline; text-decoration-color: var(--gold-dim); text-underline-offset: 4px; }
.gmore a:hover { text-decoration-color: var(--accent); }
.gmore .ic { width: 16px; height: 16px; color: var(--gold); }
@media (max-width: 1100px) { .gcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 480px) { .gcards { grid-template-columns: minmax(0, 1fr); } .gcards .media { aspect-ratio: 16 / 7; } .gmore { text-align: left; } }

/* download: two platform cards, side by side from 900px (Windows left), stacked below; centred in the column */
.dlcards { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); justify-content: center; gap: 24px; }
.dlcard { padding: 26px 28px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, var(--hover), transparent 60%), var(--panel); }
.dlcard .btn { width: 100%; justify-content: center; }
/* platform cards: Windows (private beta) = accent outline + tinted panel; macOS (released) = neutral card, solid button */
.dlhead, .platline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 16px; }
.plat { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--sans); letter-spacing: .02em; color: var(--fg); }
.plat .ic { width: 20px; height: 20px; color: var(--gold); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.badge.beta { border: 1px solid var(--accent); color: var(--accent); background: rgb(232 96 58 / .1); }
.badge.rel { border: 1px solid var(--ok); color: var(--ok); background: rgb(85 210 130 / .1); }
.dlcard.win { border: 1.5px solid var(--accent); background: linear-gradient(180deg, rgb(232 96 58 / .08), transparent 70%), var(--panel); }
.dlcard.win .plat .ic { color: var(--accent); }
.dlver { margin-top: 12px; font: 650 14px/1.5 var(--sans); color: var(--fg); }
.dlcard .btn.dl.big { height: auto; min-height: 56px; padding: 10px 20px; font-size: 17px; white-space: normal; flex-wrap: wrap; row-gap: 4px;
  background: var(--fg); border-color: var(--fg); color: var(--bg); box-shadow: 0 8px 22px -10px rgb(0 0 0 / .6); }
.dlcard .btn.dl.big:hover { filter: brightness(1.1); background: var(--fg); border-color: var(--fg); }
.dlcard .btn.dl.big .tag { border-color: currentColor; color: inherit; opacity: .72; }
.dlcard .btn.dl.big .ic { width: 20px; height: 20px; }
/* Features platform panels (#features-windows / #features-mac): one skeleton for both — head, lead, 3 screenshots,
   4 facts, 되는 것/남은 일, links; Windows = accent outline + tint, macOS = gold outline */
.pbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; padding: 32px; border-radius: 12px; }
.pbox.win { border: 1.5px solid var(--accent); background: linear-gradient(180deg, rgb(232 96 58 / .07), rgb(232 96 58 / .02)); }
.pbox.mac { border: 1.5px solid var(--gold-dim); background: linear-gradient(180deg, rgb(193 154 91 / .07), rgb(193 154 91 / .02)); }
.pbox > .phead, .pbox > .plead, .pbox > .pshots, .pbox > .plinks { grid-column: 1 / -1; }
.phead .platline { margin-bottom: 10px; }
.phead h3 { font-size: 22px; }
.pbox.win .plat .ic { color: var(--accent); }
.plead { margin-top: 12px; max-width: 72ch; color: var(--fg-2); }
.pshots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.pshots img { aspect-ratio: 16 / 11; object-fit: contain; }
.pshots .cap { padding: 9px 12px; border-top: 1px solid var(--line); background: var(--panel); color: var(--fg-3); font-size: 12.5px; line-height: 1.45; }
.pfacts { margin: 26px 0 0; border-top: 1px solid var(--line-2); }
.pfacts div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pfacts dt { color: var(--fg-3); font-size: 13px; }
.pfacts dd { margin: 0; color: var(--fg-2); }
.pfacts .k { font-size: 12.5px; }
.wstat { margin: 26px 0 0; display: grid; gap: 8px; align-content: start; }
.wstat div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 14px; }
.wstat dt { font-weight: 700; color: var(--ok); }
.wstat div + div dt { color: var(--warn); }
.wstat dd { margin: 0; color: var(--fg-2); }
.plinks { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); }
.plinks a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--fg); font-weight: 650; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.pbox.mac .plinks a { text-decoration-color: var(--gold); }
@media (max-width: 1100px) { .pshots { gap: 14px; } }
@media (max-width: 760px) { .pbox { grid-template-columns: minmax(0, 1fr); } .pshots { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .pbox { padding: 18px 14px; } .pshots { gap: 16px; margin-top: 20px; } .pfacts div, .wstat div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* hero platform selector (radiogroup) — the page-wide state on html[data-platform] (win | mac); hidden without JS */
.pselrow { display: flex; justify-content: center; margin-top: 72px; }
.psel { display: flex; gap: 4px; width: min(100%, 380px); padding: 4px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); }
html:not([data-platform]) .pselrow { display: none; }
.psel button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 7px; background: none; color: var(--fg-2); font-weight: 650; cursor: pointer; transition: background .2s, color .2s; }
.psel button .ic { width: 18px; height: 18px; }
.psel button:hover { color: var(--fg); background: var(--hover); }
.psel button[aria-checked="true"] { color: var(--on-accent); background: var(--accent); }
.hero .pselrow + .kv { margin-top: 28px; }
/* spec rows per platform: both (labelled) without JS, the selected one with it */
.kv [data-plat] { display: block; }
.plab { margin-right: 6px; color: var(--fg); font-weight: 700; }
html[data-platform] .plab { display: none; }
html[data-platform="win"] [data-plat="mac"], html[data-platform="mac"] [data-plat="win"] { display: none; }
/* hero note: both platforms' first-launch hints without JS, separated */
html:not([data-platform]) .note [data-plat="mac"]::before { content: " · "; }
/* download cards: the selected platform's card stands out, the other is dimmed (both stay usable) */
.dlcard { transition: opacity .25s, box-shadow .25s; }
html[data-platform="win"] .dlcard.mac, html[data-platform="mac"] .dlcard.win { opacity: .62; }
html[data-platform="win"] .dlcard.mac:hover, html[data-platform="mac"] .dlcard.win:hover,
html[data-platform="win"] .dlcard.mac:focus-within, html[data-platform="mac"] .dlcard.win:focus-within { opacity: 1; }
html[data-platform="win"] .dlcard.win { box-shadow: 0 0 0 3px rgb(232 96 58 / .18), 0 18px 40px -24px rgb(0 0 0 / .7); }
html[data-platform="mac"] .dlcard.mac { border-color: var(--gold); box-shadow: 0 0 0 3px rgb(193 154 91 / .2), 0 18px 40px -24px rgb(0 0 0 / .7); }
@media (max-width: 899px) { html[data-platform="mac"] .dlcard.mac { order: -1; } }
/* requirements: the selected platform's rows get an accent bar */
.req [data-plat-row] { transition: background .25s, box-shadow .25s; }
html[data-platform="win"] .req [data-plat-row="win"], html[data-platform="mac"] .req [data-plat-row="mac"] {
  padding-left: 12px; box-shadow: inset 3px 0 0 var(--accent); background: linear-gradient(90deg, rgb(232 96 58 / .08), transparent 70%); }
html[data-platform="win"] .req [data-plat-row="win"] dt, html[data-platform="mac"] .req [data-plat-row="mac"] dt { color: var(--fg); font-weight: 700; }
.dlreq { margin-top: 14px; font-size: 13.5px; color: var(--fg-2); }
.dlinks { margin: 16px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.dlinks li { display: inline-flex; align-items: center; gap: 7px; }
.dlinks .ic { color: var(--gold); }
.dlinks a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--gold-dim); text-underline-offset: 3px; }
.dlinks a:hover { text-decoration-color: var(--accent); }
.dlsha { margin-top: 14px; font-size: 12.5px; color: var(--fg-3); }
.dlsha code { font-size: 12px; color: var(--fg-2); }
.dlsha .cmd { display: block; margin-top: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2); overflow-wrap: anywhere; }
@media (max-width: 899px) { .dlcards { grid-template-columns: minmax(0, 560px); gap: 16px; } }
@media (max-width: 640px) { .dlcard { padding: 20px 18px; } .pselrow { margin-top: 48px; } .psel { width: 100%; } }

/* side rail ads (assets/ads.js sets html.rails only when config.js has ADSENSE_SLOT_RAIL_LEFT/_RIGHT and the viewport is >= 1360px):
   the content column leaves room for a 160px rail + 56px gap + 32px edge on each side and is capped at 1120px, so the
   rails never crowd the content (1366 -> 870px column, 1440 -> 944px, >= 1616 -> 1120px) */
:root { --rail-w: 160px; --rail-gap: 56px; --rail-edge: 32px; --rail-cap: 1120px;
        --rail-room: calc(2 * (var(--rail-w) + var(--rail-gap) + var(--rail-edge))); }
.rails body { position: relative; }
.rails .wrap { max-width: min(var(--rail-cap), calc(100% - var(--rail-room))); }
.rails h1 { font-size: clamp(44px, calc((100vw - var(--rail-room)) * .056), 70px); }
.rails .hero-grid { gap: clamp(32px, calc((100vw - var(--rail-room)) * .05), 64px); }
.rails .legend li { padding: 12px 14px; }
.rails .feat { gap: 40px; }
/* five guide cards need the whole (narrowed) column, not 80% of it */
.rails #guides .gcards, .rails #guides .gmore { width: auto; }
