/*
 * Site layout, shaped like the app window: a fixed sidebar (Sidebar.svelte,
 * NavItem.svelte), a toolbar (Toolbar.svelte) and a main column on --panel.
 * Per-skin rules follow each block, as in the app's components.
 * No entrance animations; motion only for direct feedback.
 */

html {
  scroll-padding-top: calc(var(--toolbar-h) + 16px);
}
body {
  min-height: 100vh;
}
img {
  max-width: 100%;
}
code,
kbd {
  font-family: var(--mono);
  font-size: 0.86em;
}
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0 0.4em;
  border-radius: 5px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -1px 0 var(--stroke2);
  text-align: center;
  line-height: 1.6;
}
.icon {
  flex: none;
  display: block;
}
.muted {
  color: var(--muted);
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--r-btn);
  background: var(--card);
  box-shadow: var(--pop-shadow);
  color: var(--text);
}
.skip:focus {
  top: 12px;
}

/* ---------- sidebar ---------- */
.side {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--side-w);
  display: flex;
  flex-direction: column;
  padding: 0 10px 12px;
  background: var(--side);
  backdrop-filter: var(--side-blur);
  -webkit-backdrop-filter: var(--side-blur);
  border-right: 0.5px solid var(--side-line);
  overflow: hidden auto;
}
[data-platform="gnome"] .side {
  border-right: 1px solid var(--side-line);
}

/* brand header, per TitleBar.svelte (no window controls on the web) */
.head {
  height: var(--toolbar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  flex: none;
}
.apptitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
.logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: conic-gradient(from 200deg, var(--data-5), var(--data-7), var(--data-2), var(--data-1), var(--data-5));
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15);
}
[data-platform="mac"] .apptitle {
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
[data-platform="mac"] .logo,
[data-platform="gnome"] .logo {
  display: none;
}
[data-platform="win"] .head {
  padding-left: 6px;
}
[data-platform="gnome"] .head {
  justify-content: center;
  padding: 0;
}
[data-platform="gnome"] .apptitle {
  font-size: 14.5px;
  font-weight: 700;
}

/* nav items, per NavItem.svelte */
.nav-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--nav-gap);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--nav-py) 10px;
  border-radius: var(--r-nav);
  font-weight: 500;
  font-size: var(--nav-fs);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s;
}
.nav .icon {
  color: var(--accent);
}
.nav:hover {
  background: var(--hover);
}
.nav.on {
  background: var(--selected);
}
:root:not(.js) .nav.on {
  background: none;
}
.t {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ic-f {
  display: none;
}
[data-platform="win"] .ic-f {
  display: block;
}
[data-platform="win"] .ic-l {
  display: none;
}

/* Windows: NavigationView pill indicator. A static pill until site.js places the moving one. */
[data-platform="win"] .nav {
  font-weight: 400;
  padding: calc(var(--nav-py) + 2px) 12px;
}
[data-platform="win"] .nav .icon {
  color: var(--text);
}
.pill-ind {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent);
  pointer-events: none;
}
[data-platform="win"] .nav-list.pill-live .pill-ind {
  display: block;
}
.pill-ind.moving {
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
[data-platform="win"] .nav-list:not(.pill-live) .nav.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 16px;
  margin-top: -8px;
  border-radius: 2px;
  background: var(--accent);
}

/* GNOME: neutral icons, bold selected row */
[data-platform="gnome"] .nav {
  font-weight: 400;
}
[data-platform="gnome"] .nav .icon {
  color: currentColor;
}
[data-platform="gnome"] .nav.on {
  font-weight: 600;
}

/* appearance block: sits where the app's capture block sits */
.appearance {
  margin-top: auto;
  padding: 10px 8px 10px;
  border-radius: 10px;
  background: rgba(127, 127, 140, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
:root:not(.js) .appearance {
  display: none;
}
.ap-title {
  margin: 0 2px 2px;
  font-size: 12px;
  font-weight: 550;
  color: var(--text);
}
.ap-label {
  margin: 4px 2px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
}
.ap-hint {
  margin: 6px 2px 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}
.det {
  display: none;
}
[data-detected="mac"] .det-mac,
[data-detected="win"] .det-win,
[data-detected="gnome"] .det-gnome {
  display: inline;
}
[data-platform="win"] .appearance {
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
}
[data-platform="win"] .ap-label {
  color: var(--text);
  font-weight: 400;
  font-size: 12px;
}
[data-platform="gnome"] .appearance {
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}
[data-platform="gnome"] .ap-label {
  color: var(--muted);
  font-weight: 700;
}

/* segmented control, per Segmented.svelte */
.seg {
  display: flex;
  background: var(--fill);
  border-radius: 8px;
  padding: 2px;
}
.seg button {
  flex: 1 1 auto;
  min-width: 0;
  height: 24px;
  padding: 0 3px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.seg button:active {
  transform: none;
}
/* selected segment from the stored choice (set before paint by skin-boot.js) */
[data-skin-pref="auto"] .seg[data-pref="skin"] [data-v="auto"],
[data-skin-pref="mac"] .seg[data-pref="skin"] [data-v="mac"],
[data-skin-pref="win"] .seg[data-pref="skin"] [data-v="win"],
[data-skin-pref="gnome"] .seg[data-pref="skin"] [data-v="gnome"],
[data-theme-pref="auto"] .seg[data-pref="theme"] [data-v="auto"],
[data-theme-pref="light"] .seg[data-pref="theme"] [data-v="light"],
[data-theme-pref="dark"] .seg[data-pref="theme"] [data-v="dark"] {
  color: var(--text);
  background: var(--seg-on-bg);
  box-shadow: var(--seg-on-shadow);
}
:root {
  --seg-on-bg: var(--card);
  --seg-on-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
:root[data-theme="dark"] {
  --seg-on-bg: color-mix(in srgb, var(--text) 16%, var(--card));
}
:root[data-platform="win"] {
  --seg-on-shadow: 0 0 0 1px var(--line), 0 1px 0 var(--stroke2);
}
:root[data-platform="gnome"] {
  --seg-on-shadow: 0 1px 2px rgba(0, 0, 6, 0.15);
}
[data-platform="win"] .seg {
  border-radius: 5px;
  background: var(--sunk);
  box-shadow: inset 0 0 0 1px var(--line);
}
[data-platform="win"] .seg button {
  border-radius: 4px;
}
[data-platform="gnome"] .seg {
  border-radius: 9px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

/* ---------- main column and toolbar ---------- */
.main {
  margin-left: var(--side-w);
  min-height: 100vh;
  background: var(--panel);
}
.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--toolbar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 22px;
  border-bottom: 0.5px solid var(--line);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
}
.tb-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.sp {
  flex: 1;
}

/* Windows: the toolbar sits on the Mica wall, the content panel below has the rounded corner */
[data-platform="win"] .main {
  background: transparent;
}
[data-platform="win"] .toolbar {
  background: var(--wall);
  background-attachment: fixed;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
  padding-left: 8px;
}
[data-platform="win"] .content {
  background: var(--panel);
  border-top-left-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
  min-height: calc(100vh - var(--toolbar-h));
}
/* GNOME: opaque headerbar */
[data-platform="gnome"] .toolbar {
  background: var(--panel);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--line);
  padding-right: 10px;
}

/* status pill, per StatusPill.svelte (the "paused" tone) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--pill-h);
  padding: 0 12px 0 11px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--warn) 12%, var(--card));
  box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--warn) 40%, transparent);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}
.status-pill .dot,
.status-line .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  flex: none;
}
[data-platform="win"] .status-pill {
  border-radius: 4px;
}
[data-platform="gnome"] .status-pill {
  background: color-mix(in srgb, var(--warn) 18%, transparent);
  box-shadow: none;
}

/* ---------- buttons, per Button.svelte ---------- */
.btn {
  height: var(--ctl-h);
  padding: 0 13px;
  border-radius: var(--r-btn);
  background: var(--card);
  color: var(--text);
  box-shadow: inset 0 0 0 0.5px var(--line), 0 1px 2px rgba(0, 0, 0, 0.05);
  font-weight: 500;
  font-size: var(--fs-ui);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform 0.12s cubic-bezier(0.3, 0.7, 0.4, 1.4),
    background 0.2s;
}
a.btn:hover {
  background: var(--sunk);
}
a.btn:active {
  transform: scale(0.95);
}
.btn .icon {
  color: var(--muted);
}
.btn.primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: none;
}
.btn.primary:hover {
  background: var(--accent);
  filter: brightness(1.08);
}
.btn.soon {
  color: var(--muted);
  cursor: default;
  background: transparent;
  box-shadow: none;
}
.soon-tag {
  font-size: 11px;
  color: var(--faint);
  font-weight: 500;
}
[data-platform="win"] .btn {
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -1px 0 var(--stroke2);
}
[data-platform="win"] a.btn:hover {
  background: color-mix(in srgb, var(--card) 70%, var(--sunk));
}
[data-platform="win"] .btn.primary {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
[data-platform="win"] .btn.primary:hover {
  filter: none;
  background: color-mix(in srgb, var(--accent) 90%, var(--panel));
}
[data-platform="win"] .btn.soon,
[data-platform="gnome"] .btn.soon {
  background: transparent;
  box-shadow: none;
}
[data-platform="gnome"] .btn {
  background: color-mix(in srgb, var(--text) 8%, transparent);
  box-shadow: none;
  font-weight: 600;
}
[data-platform="gnome"] a.btn:hover {
  background: color-mix(in srgb, var(--text) 13%, transparent);
}
[data-platform="gnome"] .btn.primary {
  border-radius: 99px;
  background: var(--accent);
  padding: 0 18px;
}
[data-platform="gnome"] .btn.primary:hover {
  background: var(--accent);
  filter: brightness(1.06);
}

/* ---------- content ---------- */
.content {
  padding: 0 48px;
}
.content:focus {
  outline: none;
}
.sec {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 0;
}
.sec + .sec {
  border-top: 1px solid var(--line);
}
.hero {
  padding-top: 56px;
}

.over {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
[data-platform="gnome"] .over {
  color: var(--muted);
}
h1,
h2 {
  margin: 0 0 16px;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 {
  font-size: 42px;
  line-height: 1.08;
}
h2 {
  font-size: 30px;
  line-height: 1.12;
}
[data-platform="win"] h1,
[data-platform="win"] h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
}
[data-platform="gnome"] h1,
[data-platform="gnome"] h2 {
  font-weight: 800;
  letter-spacing: -0.01em;
}
h3 {
  margin: 28px 0 6px;
  font-size: 16px;
  font-weight: 650;
}
[data-platform="win"] h3 {
  font-weight: 600;
}
[data-platform="gnome"] h3 {
  font-weight: 700;
}
.h3-first {
  margin-top: 0;
}
.prose {
  max-width: 600px;
}
.prose.wide {
  max-width: 820px;
}
.prose p {
  margin: 0 0 12px;
}
.lede {
  font-size: 18px;
  line-height: 1.5;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.cols > div > :first-child {
  margin-top: 0;
}
.points {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.points li {
  position: relative;
  padding-left: 18px;
  margin: 0 0 8px;
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
[data-platform="gnome"] .points li::before {
  border-radius: 50%;
  background: var(--faint);
}

.status-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.status-line .dot {
  transform: translateY(-1px);
}
.status-line b {
  color: var(--text);
  font-weight: 600;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}
.actions .btn {
  height: 36px;
  font-size: 14px;
  padding: 0 16px;
}
[data-platform="gnome"] .actions .btn.primary {
  padding: 0 20px;
}
.skin-note {
  display: none;
  margin: 16px 0 0 !important;
  font-size: 13.5px;
  color: var(--muted);
}
[data-platform="mac"] .skin-note-mac,
[data-platform="win"] .skin-note-win {
  display: block;
}

/* two-column section bodies; .flip puts the screenshot first */
/* the screenshot gets ~60% of the width so in-app text stays legible */
.split {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(0, 1.6fr);
  gap: 48px;
  align-items: center;
}
.split.flip {
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr);
}
.split.flip > .fig {
  order: -1;
}
/* a full-frame clip beside a narrow text column: the clip gets ~72% (about 780px at 1440) */
.split.clip {
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2.6fr);
  gap: 40px;
}
.split.clip.flip {
  grid-template-columns: minmax(0, 2.6fr) minmax(280px, 1fr);
}
/* below ~1380px the side column would squeeze the clip under ~760px: stack it under its text */
@media (max-width: 1379px) {
  .split.clip,
  .split.clip.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .split.clip.flip > .fig {
    order: 0;
  }
}
.split.even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  margin-top: 36px;
}

/* ---------- Ask: the clip, then what keeps it honest as settings rows ---------- */
.ask-trust {
  margin-top: 56px;
}

/* ---------- AI assist: an intro, then three sub-blocks with their own h3 ---------- */
.ai-block {
  margin-top: 64px;
}
.ai-block h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.ai-block .cols .points {
  margin: 0;
}
.ai-sum {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
}
.ai-inputs-h {
  margin: 4px 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ai-inputs .rows > div {
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 11px 16px;
}
.ai-foot {
  margin: 48px 0 0;
  font-size: 14px;
}

/* ---------- screenshots in a window frame (the shots carry their own window controls) ---------- */
.fig {
  margin: 0;
  min-width: 0;
}
.fig-hero {
  margin-top: 48px;
}
.fig-wide {
  margin-top: 36px;
}
.fig-mid {
  margin-top: 48px;
  max-width: 820px;
}
.fig figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
/* "Open a still" and "Enlarge" after a clip's caption */
.fig-links {
  white-space: nowrap;
}
.fig-link {
  margin-left: 12px;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.fig-link[hidden] {
  display: none;
}
.window {
  display: block;
  overflow: hidden;
  border-radius: var(--r-win);
  box-shadow: var(--win-shadow);
  background: var(--panel);
  cursor: zoom-in;
}
.window img {
  display: block;
  width: 100%;
  height: auto;
}
img[data-shot]:not([src]) {
  display: none;
}

/* feature clips: no zoom cursor, a play/pause button styled like the lightbox close button */
.window.vid {
  position: relative;
  cursor: default;
}
.vid video {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}
/* without JS a <noscript> still (sized like any .window img) stands in for the clip; posters are set by JS, lazily */
:root:not(.js) .vid video {
  display: none;
}
/* bottom left: over the app's static sidebar footer, never over a control a clip clicks */
.vid-btn {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--pop-shadow);
  transition: transform 0.12s cubic-bezier(0.3, 0.7, 0.4, 1.4);
}
.vid-btn[hidden] {
  display: none;
}
.vid-btn:hover {
  background: color-mix(in srgb, var(--card) 88%, var(--text));
}
.vid-btn:active {
  transform: scale(0.95);
}
.vid-btn .i-pause,
.vid-btn.playing .i-play {
  display: none;
}
.vid-btn.playing .i-pause {
  display: block;
}
[data-platform="win"] .vid-btn {
  border-radius: 4px;
}
[data-platform="mac"] .vid-btn {
  background: color-mix(in srgb, var(--card) 78%, transparent);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}

/* crops: show one region of a 1280x800 shot (CSS px of the capture) */
.crop {
  position: relative;
  aspect-ratio: var(--cw) / var(--ch);
}
.crop img,
.crop.vid video {
  position: absolute;
  max-width: none;
  width: calc(100% * 1280 / var(--cw));
  height: auto;
  left: calc(-100% * var(--cx) / var(--cw));
  top: calc(-100% * var(--cy) / var(--ch));
}
/*
 * The draft's content column, from the title down to Next step; the cut sits
 * midway between the Next step line and the Sources heading, which sit a few
 * px lower in mac and win.
 */
.crop-draft {
  --cx: 312;
  --cy: 82;
  --cw: 868;
  --ch: 678;
}
[data-platform="mac"] .crop-draft {
  --ch: 683;
}
[data-platform="win"] .crop-draft {
  --ch: 680;
}
.crop-settings {
  --cx: 0;
  --cy: 0;
  --cw: 1280;
  --ch: 460;
}
/*
 * The capture clip: the window's right half (x 640-1280) down to y 660. The
 * popover (x 769-1265 across the skins, down to y 637), the Recording pill and
 * the pointer's whole path stay inside it in every skin.
 */

/* ---------- privacy and status rows (the app's settings rows) ---------- */
.card {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
[data-platform="win"] .card {
  box-shadow: 0 0 0 1px var(--line);
}
.rows {
  margin: 0;
}
.rows > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--line);
  font-size: 14px;
}
.rows > div:last-child {
  border-bottom: 0;
}
.rows dt {
  font-weight: 600;
}
.rows dd {
  margin: 0;
  color: var(--muted);
}
.prose-card {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
}
.prose-card p {
  margin: 0;
}
.pgroup {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  margin-top: 36px;
}
.pgroup-head h3 {
  margin: 12px 0 4px;
}
.pgroup-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 12px 0 16px;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0 16px 40px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fill);
  font-size: 13px;
  font-weight: 600;
}
.steps li:first-child::before {
  background: var(--accent);
  color: var(--on-accent);
}
.steps li span {
  color: var(--muted);
  font-size: 14px;
}

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.foot p {
  margin: 0 0 4px;
}

/* ---------- lightbox ---------- */
.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 96vh;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.62);
}
.lb-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 92vh;
  border-radius: var(--r-win);
  box-shadow: var(--win-shadow);
}
/* an enlarged clip: as large as fits, keeping 16:10 */
.lb-vid {
  display: block;
  width: min(96vw, 92vh * 1.6);
  height: auto;
  border-radius: var(--r-win);
  box-shadow: var(--win-shadow);
  background: var(--panel);
  cursor: pointer;
}
.lb-img[hidden],
.lb-vid[hidden] {
  display: none;
}
.lb-close {
  z-index: 1;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--pop-shadow);
}
[data-platform="win"] .lb-close {
  border-radius: 4px;
}

/* ---------- mobile: compact top bar, sections and appearance in a sheet ---------- */
.mbar {
  display: none;
}
@media (max-width: 999px) {
  :root {
    --mbar-h: 52px;
  }
  html {
    scroll-padding-top: calc(var(--mbar-h) + 12px);
  }
  .mbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--mbar-h);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 0 16px;
    background: color-mix(in srgb, var(--panel) 82%, transparent);
    backdrop-filter: saturate(1.8) blur(20px);
    -webkit-backdrop-filter: saturate(1.8) blur(20px);
    border-bottom: 0.5px solid var(--line);
  }
  [data-platform="win"] .mbar {
    background: var(--wall);
    background-attachment: fixed;
    border-bottom: 1px solid var(--line);
  }
  [data-platform="gnome"] .mbar {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
  }
  .mbrand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 650;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    margin-right: auto;
  }
  .status-pill {
    height: 26px;
    font-size: 12px;
  }
  .menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--r-btn);
  }
  .js .menu-btn {
    display: grid;
  }
  .menu-btn:hover,
  .menu-btn[aria-expanded="true"] {
    background: var(--hover);
  }

  .side {
    display: none;
  }
  .menu-open .side {
    display: flex;
    inset: calc(var(--mbar-h) + 6px) 8px auto 8px;
    width: auto;
    max-height: calc(100dvh - var(--mbar-h) - 14px);
    padding: 8px;
    border: 0;
    border-radius: var(--r-pop);
    background: var(--card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: var(--pop-shadow);
    z-index: 40;
  }
  [data-platform="mac"].menu-open .side {
    background: color-mix(in srgb, var(--card) 78%, transparent);
    backdrop-filter: blur(30px) saturate(1.6);
    -webkit-backdrop-filter: blur(30px) saturate(1.6);
  }
  .menu-open .head {
    display: none;
  }
  .menu-open .appearance {
    margin-top: 10px;
  }
  [data-platform="gnome"] .menu-open .appearance,
  [data-platform="win"] .menu-open .appearance {
    background: var(--sunk);
    box-shadow: none;
  }

  .main {
    margin-left: 0;
  }
  .toolbar {
    display: none;
  }
  [data-platform="win"] .main {
    background: var(--panel);
  }
  [data-platform="win"] .content {
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
  }
  .content {
    padding: 0 20px;
  }
  .sec {
    padding: 52px 0;
  }
  .hero {
    padding-top: 32px;
  }
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 25px;
  }
  .lede {
    font-size: 17px;
  }
  .split,
  .split.flip,
  .split.even,
  .cols,
  .pgroup {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .pgroup {
    gap: 10px;
    margin-top: 28px;
  }
  .split.flip > .fig {
    order: 0;
  }
  .fig-hero {
    margin-top: 32px;
  }
  .ai-block {
    margin-top: 44px;
  }
  .ai-block h3 {
    font-size: 19px;
  }
  .rows > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}
/* ---------- 404 ---------- */
.nf-body {
  display: grid;
  place-items: center;
  padding: 24px;
}
.nf {
  width: min(520px, 100%);
  padding: 40px 36px 36px;
  border-radius: var(--r-win);
  background: var(--panel);
  box-shadow: var(--win-shadow);
}
.nf img {
  display: block;
  margin-bottom: 20px;
  border-radius: 12px;
}
.nf h1 {
  font-size: 30px;
}
.nf p {
  margin: 0 0 8px;
}

@media (max-width: 1250px) and (min-width: 1000px) {
  .content {
    padding: 0 36px;
  }
  .btn.soon .soon-tag {
    display: none;
  }
}
