/* XZ Mods beta. Visual target: the 0.3.0 Windows app — near-black canvas, hairline borders, one restrained yellow. */
:root{color-scheme:dark;--bg:#0a0a0b;--surface:#111113;--surface-2:#161619;--line:#222225;--line-2:#2f2f34;--ink:#f4f4f2;--soft:#c9c9cc;--muted:#8f8f96;--yellow:#ffe01a;--yellow-hi:#fff07a;--yellow-wash:rgba(255,224,26,.07);--yellow-line:rgba(255,224,26,.38);--font-display:"Bricolage Grotesque",system-ui,sans-serif;--font-body:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,sans-serif;--font-mono:"Space Mono",ui-monospace,monospace;--maxw:1180px;font-family:var(--font-body);color:var(--ink);background:var(--bg);font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:var(--bg)}
body.is-viewing{overflow:hidden}
img{max-width:100%;height:auto}
a{color:var(--yellow);text-decoration:none}
a:hover{color:var(--yellow-hi)}
:focus-visible{outline:2px solid var(--yellow);outline-offset:4px;border-radius:4px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:16px;top:-100px;z-index:20;padding:12px 16px;border-radius:6px;background:var(--yellow);color:#141200;font-weight:650}
.skip:focus{top:12px}
.eyebrow{margin:0;font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--yellow);line-height:1.7}

/* Header */
.top,footer{max-width:var(--maxw);margin:auto;padding:22px 32px;display:flex;justify-content:space-between;align-items:center;gap:24px}
.top{border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:12px;font-family:var(--font-display);font-size:18px;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.brand:hover{color:var(--ink)}
.brand img{object-fit:contain}
.brand span{font-family:var(--font-body);font-size:11px;font-weight:600;letter-spacing:.04em;color:var(--yellow);background:var(--yellow-wash);border:1px solid var(--yellow-line);border-radius:4px;padding:3px 8px}
.top__nav{display:flex;gap:28px;font-size:14px}
.top__nav a{color:var(--muted);padding:8px 0}
.top__nav a:hover{color:var(--ink)}

main{max-width:var(--maxw);margin:auto;padding:0 32px}

/* Hero */
.hero{padding:88px 0 96px;max-width:820px}
h1{font-family:var(--font-display);font-size:clamp(40px,5.4vw,66px);font-weight:700;line-height:1.04;letter-spacing:-.045em;margin:20px 0 24px;text-wrap:balance}
h1 span{color:var(--muted)}
.hero--split{max-width:none;display:grid;grid-template-columns:minmax(0,10fr) minmax(0,11fr);gap:64px;align-items:center;padding:64px 0 88px}
.hero--split h1{font-size:clamp(38px,4.1vw,56px);margin:16px 0 20px}
.hero--split .intro{font-size:17px}
.hero--split .notice{margin:26px 0}
.hero__media{margin:0;min-width:0}
.hero__caption{align-items:center}
.hero__caption .shot__label{grid-row:1}
.hero__caption .shot__open{grid-row:1}
.hero__media .shot__screen{box-shadow:0 0 0 1px rgba(255,224,26,.06),0 30px 80px -30px rgba(255,224,26,.12)}
.intro{font-size:19px;line-height:1.6;color:var(--soft);max-width:640px;margin:0}
.notice{margin:32px 0;padding:18px 22px;max-width:700px;background:var(--surface);border:1px solid var(--line);border-left:2px solid var(--yellow);border-radius:8px}
.notice strong{font-weight:650}
.notice p{margin:6px 0 0;line-height:1.65;color:var(--muted);font-size:15px}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:28px}
.button{display:inline-flex;align-items:center;gap:28px;padding:14px 20px;border-radius:6px;background:var(--yellow);color:#141200;font-weight:650;font-size:15px}
.button:hover{background:var(--yellow-hi);color:#141200}
.secondary{display:inline-block;font-size:14px;line-height:1.7;color:var(--ink);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:5px}
.secondary:hover{color:var(--yellow);text-decoration-color:var(--yellow)}
.caption{font-size:13px;color:var(--muted);line-height:1.8;margin:18px 0 0}
.checksum{font-size:13px;color:var(--muted);margin-top:20px}
.checksum summary{cursor:pointer;color:var(--soft);padding:6px 0;width:max-content}
.checksum code{display:block;overflow-wrap:anywhere;font-family:var(--font-mono);font-size:12px;line-height:1.7;background:var(--surface);border:1px solid var(--line);padding:12px 14px;border-radius:6px;color:var(--soft)}

/* Feature tour */
.tour{border-top:1px solid var(--line)}
.tour__head{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:16px 72px;padding:96px 0 88px;align-items:start}
.tour__head>:not(ol){grid-column:1}
.tour__head h2{font-family:var(--font-display);font-size:clamp(32px,3.6vw,44px);font-weight:700;letter-spacing:-.04em;line-height:1.08;margin:6px 0 0}
.tour__head>p:not(.eyebrow){margin:8px 0 0;color:var(--muted);line-height:1.65;font-size:15px;max-width:440px}
.tour__index{grid-column:2;grid-row:1/span 3;list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden}
.tour__index li+li{border-top:1px solid var(--line)}
.tour__index a{display:flex;align-items:center;gap:18px;padding:15px 20px;color:var(--ink);font-size:15px;font-weight:550}
.tour__index a::after{content:"";margin-left:auto;width:7px;height:7px;border:solid var(--muted);border-width:1.5px 1.5px 0 0;transform:rotate(45deg);flex-shrink:0}
.tour__index a:hover{background:var(--surface-2);color:var(--ink)}
.tour__index a:hover::after{border-color:var(--yellow)}
.tour__index span{font-family:var(--font-mono);font-size:12px;color:var(--yellow)}

.feature{padding:104px 0;border-top:1px solid var(--line);scroll-margin-top:0}
.feature__index{display:flex;align-items:center;gap:14px;margin:0;font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.feature__index span{color:var(--yellow);letter-spacing:.04em}
.feature h2{font-family:var(--font-display);font-size:clamp(28px,3vw,38px);font-weight:700;line-height:1.1;letter-spacing:-.035em;margin:18px 0 0;text-wrap:balance}
.feature__desc{margin:18px 0 0;font-size:16px;line-height:1.7;color:var(--soft);max-width:560px}
.feature__note{margin-top:22px;padding:14px 16px;max-width:560px;border:1px solid var(--yellow-line);border-radius:8px;background:var(--yellow-wash)}
.feature__note strong{display:block;font-family:var(--font-mono);font-size:11px;font-weight:400;letter-spacing:.12em;text-transform:uppercase;color:var(--yellow)}
.feature__note p{margin:6px 0 0;font-size:14px;line-height:1.65;color:var(--soft)}

/* Solo: text beside one large capture, alternating sides */
.feature[data-layout="solo"]{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:72px;align-items:center}
.feature[data-layout="solo"][data-flip]{grid-template-columns:minmax(0,7fr) minmax(0,4fr)}
.feature[data-layout="solo"][data-flip] .feature__text{order:2}
/* Compare and switch: a header row, then a full-width stage */
.feature:is([data-layout="compare"],[data-layout="switch"]) .feature__text{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:72px;align-items:start}
.feature:is([data-layout="compare"],[data-layout="switch"]) .feature__index{grid-area:1/1}
.feature:is([data-layout="compare"],[data-layout="switch"]) h2{grid-area:2/1}
.feature:is([data-layout="compare"],[data-layout="switch"]) .feature__desc{grid-area:1/2/3/3;margin-top:0;align-self:end}
.feature:is([data-layout="compare"],[data-layout="switch"]) .feature__note{grid-area:3/2}
.feature__stage{margin-top:56px;min-width:0}
.feature[data-layout="solo"] .feature__stage{margin-top:0}
.compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}

/* Captures */
.shot{margin:0;min-width:0}
.shot__screen{position:relative;display:block;overflow:hidden;background:#000;border:1px solid var(--line-2);border-radius:10px;color:var(--ink)}
.shot__screen img,.shot__screen video{display:block;width:100%;height:auto}
a.shot__screen{transition:border-color .2s}
a.shot__screen:hover{border-color:var(--yellow-line)}
.shot--tall{aspect-ratio:4/3}
.shot--tall img{height:100%;object-fit:cover;object-position:top}
.shot--tall::after{content:"";position:absolute;inset:auto 0 0;height:72px;background:linear-gradient(transparent,rgba(10,10,11,.9));pointer-events:none}
.shot__screen--link{padding:48px 24px;text-align:center}
.shot figcaption{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 20px;margin-top:14px;align-items:start}
.shot__label{font-size:14px;font-weight:650;color:var(--ink)}
.shot__desc{grid-column:1;font-size:13px;line-height:1.55;color:var(--muted)}
.shot__open{grid-column:2;grid-row:1/span 2;font-size:12px;padding:5px 10px;border:1px solid var(--yellow-line);border-radius:5px;background:var(--yellow-wash);color:var(--yellow);white-space:nowrap}
.shot__open:hover{border-color:var(--yellow)}

/* Recording: poster frame until the visitor presses Play */
.shot__play{position:absolute;left:16px;bottom:16px;display:inline-flex;align-items:center;gap:10px;padding:10px 16px 10px 13px;font:inherit;font-size:14px;font-weight:600;color:var(--yellow);background:rgba(10,10,11,.88);border:1px solid var(--yellow-line);border-radius:6px;cursor:pointer;backdrop-filter:blur(6px)}
.shot__play:hover{border-color:var(--yellow)}
.shot__play[hidden]{display:none}
.shot__play-icon{width:0;height:0;border-style:solid;border-width:6px 0 6px 10px;border-color:transparent transparent transparent currentColor}
.shot__play[aria-pressed="true"] .shot__play-icon{width:10px;height:10px;border:0;background:currentColor;border-radius:1px}
.is-playing .shot__play{background:rgba(10,10,11,.6)}

/* Switch: app-style rail of labelled variants beside one large capture */
.switch__panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 24px}
.switch.is-ready{display:grid;grid-template-columns:216px minmax(0,1fr);gap:32px;align-items:start}
.switch.is-ready .switch__panels{display:block}
.switch__panel[hidden]{display:none}
.switch.is-ready .switch__panel:not([hidden]){animation:panel-in .22s ease-out}
.switch__tabs{display:flex;flex-direction:column;gap:10px}
.switch__tabs[hidden]{display:none}
.switch__tabs button{display:grid;gap:9px;padding:8px;font:inherit;text-align:left;color:var(--muted);background:transparent;border:1px solid var(--line);border-radius:8px;cursor:pointer;transition:border-color .2s,background .2s,color .2s}
.switch__tabs button:hover{border-color:var(--line-2);color:var(--soft)}
.switch__tabs button[aria-selected="true"]{border-color:var(--yellow-line);background:var(--yellow-wash);color:var(--ink);box-shadow:inset 2px 0 0 var(--yellow)}
.switch__thumb{display:block;aspect-ratio:5/3;overflow:hidden;border-radius:4px;background:#000}
.switch__thumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.switch__label{font-size:13px;font-weight:600;padding:0 2px 2px}
@keyframes panel-in{from{opacity:0}to{opacity:1}}

/* Full-size viewer */
.viewer{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(6,6,7,.96);color:var(--ink)}
.viewer::backdrop{background:rgba(0,0,0,.7)}
.viewer[open]{display:flex;flex-direction:column}
.viewer__bar{display:flex;align-items:center;gap:20px;padding:14px 24px;border-bottom:1px solid var(--line)}
.viewer__title{margin:0 auto 0 0;font-size:14px;font-weight:600}
.viewer__raw{font-size:13px}
.viewer__close{font:inherit;font-size:13px;font-weight:600;color:var(--ink);background:var(--surface-2);border:1px solid var(--line-2);border-radius:6px;padding:7px 14px;cursor:pointer}
.viewer__close:hover{border-color:var(--yellow-line)}
.viewer__body{flex:1;min-height:0;display:flex;padding:24px;overflow:auto}
.viewer__body img{margin:auto;max-width:100%;max-height:100%;width:auto;height:auto;border:1px solid var(--line-2);border-radius:6px;background:#000}

/* Fallback gallery when no showcase manifest is present */
.screenshots{padding:72px 0;border-top:1px solid var(--line)}
.screenshots h2{font-family:var(--font-display);font-size:34px;letter-spacing:-.035em;margin:8px 0 0}
.screenshots>p:not(.eyebrow){color:var(--muted);font-size:15px;line-height:1.7}
.screenshot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px;margin-top:28px}

/* Changelog */
.layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:72px;border-top:1px solid var(--line);padding:88px 0 96px}
.contents{position:sticky;top:28px;align-self:start}
.contents .eyebrow{margin-bottom:10px}
.contents a{display:block;font-size:13px;line-height:1.45;color:var(--muted);padding:8px 0 8px 12px;border-left:1px solid var(--line)}
.contents a:hover{color:var(--ink);border-left-color:var(--yellow)}
article{max-width:760px;min-width:0}
article h2{font-family:var(--font-display);font-size:26px;font-weight:700;letter-spacing:-.03em;line-height:1.2;margin:6px 0 20px}
h3{font-size:16px;font-weight:650;margin:30px 0 14px}
article p,article li{font-size:15px;line-height:1.8;color:var(--soft)}
article p{margin:0 0 16px}
article ul,article ol{padding-left:20px;margin:0 0 8px}
article li{padding-left:6px;margin-bottom:12px}
article li::marker{color:var(--yellow)}
article section{padding:40px 0;border-top:1px solid var(--line)}
.changelog-heading{padding-bottom:36px}
.changelog-heading h2{font-size:clamp(30px,3.2vw,40px);letter-spacing:-.04em}
.changelog-heading p:last-child{color:var(--muted)}
footer{border-top:1px solid var(--line);color:var(--muted);font-size:12px;padding-bottom:40px}

@media(max-width:1000px){
  .tour__head{grid-template-columns:1fr;gap:12px}
  .tour__index{grid-column:1;grid-row:auto;margin-top:28px}
  .hero--split{grid-template-columns:1fr;gap:40px;padding:56px 0 72px}
  .feature[data-layout="solo"],.feature[data-layout="solo"][data-flip]{grid-template-columns:1fr;gap:40px}
  .feature[data-layout="solo"][data-flip] .feature__text{order:0}
  .feature:is([data-layout="compare"],[data-layout="switch"]) .feature__text{display:block}
  .feature:is([data-layout="compare"],[data-layout="switch"]) .feature__desc{margin-top:18px}
  .feature__stage{margin-top:40px}
  .switch.is-ready{display:block}
  .switch__tabs{flex-direction:row;overflow-x:auto;gap:10px;padding:2px 2px 6px;margin-bottom:16px;scrollbar-width:thin}
  .switch__tabs button{flex:0 0 148px}
}
@media(max-width:760px){
  .top,footer{padding:18px 20px}
  .top{flex-wrap:wrap}
  .top__nav{width:100%;justify-content:space-between;gap:12px;font-size:13px}
  main{padding:0 20px}
  .hero{padding:52px 0 64px}
  .intro{font-size:17px}
  .notice{padding:16px 18px}
  .actions{gap:18px}
  .button{width:100%;justify-content:space-between}
  .caption{font-size:12px}
  .tour__head{padding:64px 0 56px}
  .feature{padding:72px 0}
  .feature__desc{font-size:15px}
  .compare,.switch__panels,.screenshot-grid{grid-template-columns:1fr;gap:32px}
  .shot__play{left:10px;bottom:10px;padding:8px 13px 8px 11px;font-size:13px}
  .viewer__bar{padding:12px 16px;gap:14px}
  .viewer__body{padding:12px}
  .layout{display:block;padding:56px 0 64px}
  .contents{position:static;display:flex;overflow-x:auto;gap:18px;padding:0 0 20px;margin-bottom:24px}
  .contents .eyebrow{display:none}
  .contents a{flex-shrink:0;border:0;padding:8px 0;font-size:12px}
  article p,article li{font-size:14px}
  footer{align-items:flex-start;flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
