/* Hallmark · macrostructure: desk-demo (the product working on the visitor's own desktop) · pre-emit critique: P5 H4 E4 S5 R4 V5 · nav: menubar on the wall · footer: one-line colophon · slop: pass, except gate 47 (drawn OS chrome) kept by the approved brief as a working demo */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* The desk by day: the icon's amber as wallpaper, graphite type. */
  --wall: oklch(0.8 0.15 72);
  --wall-deep: oklch(0.73 0.16 63);
  --wall-mark: oklch(0.99 0.01 85 / 0.55);
  --wall-ink: oklch(0.21 0.03 55);
  --wall-ink-2: oklch(0.31 0.05 55);
  --ground: oklch(0.985 0.005 80);
  --ground-2: oklch(0.962 0.008 78);
  --ink: oklch(0.23 0.012 270);
  --ink-2: oklch(0.41 0.014 270);
  --ink-3: oklch(0.5 0.013 270);
  --line: oklch(0.88 0.008 270);
  --line-strong: oklch(0.8 0.01 270);
  --accent: oklch(0.67 0.16 60);
  --accent-ink: oklch(0.47 0.13 55);
  --button: oklch(0.25 0.014 270);
  --button-hover: oklch(0.32 0.016 270);
  --on-button: oklch(0.985 0.004 80);
  --quiet: oklch(0.99 0.01 85 / 0.62);
  --quiet-hover: oklch(0.99 0.01 85 / 0.82);
  --field: oklch(0.995 0.002 80);
  --focus: oklch(0.55 0.17 255);
  --selection: oklch(0.84 0.12 75);

  --win-bg: oklch(0.995 0.002 270);
  --win-bar: oklch(0.955 0.004 270);
  --win-side: oklch(0.973 0.004 270);
  --win-line: oklch(0.86 0.006 270);
  --win-ink: oklch(0.25 0.012 270);
  --win-ink-2: oklch(0.5 0.012 270);
  --win-chip: oklch(0.93 0.01 270);
  --dock: oklch(0.97 0.01 80 / 0.55);
  --dock-line: oklch(0.99 0.01 80 / 0.7);
  --taskbar: oklch(0.96 0.006 80 / 0.82);
  --shadow-win: 0 28px 60px -22px oklch(0.25 0.07 55 / 0.5), 0 3px 8px oklch(0.25 0.05 55 / 0.16);
  --shadow-soft: 0 10px 30px -18px oklch(0.25 0.04 270 / 0.4);
  --shadow-chip: 0 2px 8px oklch(0.2 0.03 55 / 0.22);
  --shadow-dock: 0 14px 30px -14px oklch(0.25 0.06 55 / 0.45);
  --shadow-tile: inset 0 -2px 0 oklch(0.1 0.01 270 / 0.12), 0 2px 5px oklch(0.2 0.03 55 / 0.25);
  --focus-halo: oklch(0.55 0.17 255 / 0.22);
  --dash: oklch(0.25 0.01 270 / 0.82);
  --dash-line: oklch(0.5 0.01 270 / 0.3);

  /* Letter tiles for the apps in the illustration (no vendor marks). */
  --tile-1: oklch(0.6 0.13 45);
  --tile-2: oklch(0.52 0.15 275);
  --tile-3: oklch(0.6 0.12 235);
  --tile-4: oklch(0.52 0.13 250);
  --tile-5: oklch(0.52 0.15 300);
  --tile-6: oklch(0.55 0.02 270);
  --on-tile: oklch(0.99 0.004 80);
  --light-close: oklch(0.7 0.18 25);
  --light-min: oklch(0.82 0.15 85);
  --light-max: oklch(0.74 0.17 145);
  --select: oklch(0.55 0.17 255);
  --on-select: oklch(0.99 0.004 255);

  --st-tested: oklch(0.55 0.13 150);
  --st-supported: oklch(0.53 0.13 255);
  --st-limited: oklch(0.6 0.13 62);
  --st-wanted: oklch(0.55 0.02 270);
  --st-no: oklch(0.56 0.17 28);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Cantarell, Ubuntu, "Noto Sans", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;

  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --page: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    /* The same desk at night: graphite wallpaper, the amber mark glowing faintly. */
    --wall: oklch(0.255 0.016 270);
    --wall-deep: oklch(0.5 0.12 62 / 0.22);
    --wall-mark: oklch(0.95 0.01 80 / 0.14);
    --wall-ink: oklch(0.965 0.006 80);
    --wall-ink-2: oklch(0.8 0.012 80);
    --ground: oklch(0.19 0.01 270);
    --ground-2: oklch(0.215 0.011 270);
    --ink: oklch(0.95 0.005 80);
    --ink-2: oklch(0.79 0.01 270);
    --ink-3: oklch(0.7 0.01 270);
    --line: oklch(0.32 0.012 270);
    --line-strong: oklch(0.4 0.014 270);
    --accent: oklch(0.79 0.15 72);
    --accent-ink: oklch(0.82 0.13 75);
    --button: oklch(0.8 0.15 72);
    --button-hover: oklch(0.85 0.13 75);
    --on-button: oklch(0.2 0.03 55);
    --quiet: oklch(0.95 0.01 80 / 0.1);
    --quiet-hover: oklch(0.95 0.01 80 / 0.18);
    --field: oklch(0.23 0.01 270);
    --focus: oklch(0.72 0.14 255);
    --selection: oklch(0.45 0.1 65);
    --win-bg: oklch(0.235 0.01 270);
    --win-bar: oklch(0.275 0.012 270);
    --win-side: oklch(0.215 0.01 270);
    --win-line: oklch(0.36 0.012 270);
    --win-ink: oklch(0.93 0.006 80);
    --win-ink-2: oklch(0.72 0.01 270);
    --win-chip: oklch(0.32 0.012 270);
    --dock: oklch(0.35 0.012 270 / 0.6);
    --dock-line: oklch(0.6 0.01 270 / 0.35);
    --taskbar: oklch(0.22 0.01 270 / 0.88);
    --shadow-win: 0 28px 60px -20px oklch(0.05 0.01 270 / 0.75), 0 3px 8px oklch(0.05 0.01 270 / 0.4);
    --shadow-soft: 0 10px 30px -18px oklch(0 0 0 / 0.7);
    --st-tested: oklch(0.74 0.14 150);
    --st-supported: oklch(0.74 0.12 250);
    --st-limited: oklch(0.8 0.13 72);
    --st-wanted: oklch(0.72 0.02 270);
    --st-no: oklch(0.72 0.15 28);
  }
}

/* MARK: base */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--space-3xl); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
::selection { background: var(--selection); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
code, kbd { font-family: var(--font-mono); font-size: 0.9em; }
kbd { padding: 0 var(--space-2xs); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; }
html { scrollbar-color: var(--line-strong) transparent; }

.wrap { width: min(100%, var(--page)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: var(--space-md); top: -100px; z-index: 50; background: var(--button); color: var(--on-button); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-sm); }
.skip:focus { top: var(--space-md); }

/* MARK: buttons and controls (native push buttons, segmented controls) */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 44px; padding: 0 var(--space-lg);
  border: 0; border-radius: var(--radius);
  font: 600 1rem/1 var(--font-ui); white-space: nowrap; text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--button); color: var(--on-button); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--button-hover); }
.btn-primary:active { background: var(--button); box-shadow: none; }
.btn-quiet { background: var(--quiet); color: var(--wall-ink); }
.btn-quiet:hover { background: var(--quiet-hover); }
.btn-quiet:active { background: var(--quiet); }
.btn-plain { background: var(--ground-2); color: var(--ink); border: 1px solid var(--line); }
.btn-plain:hover { border-color: var(--line-strong); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-small { min-height: 36px; padding: 0 var(--space-md); font-size: 0.9375rem; }

.seg {
  display: inline-flex; padding: var(--space-3xs); gap: var(--space-3xs); max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
  border-radius: var(--radius); background: var(--quiet);
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none; min-height: 32px; padding: 0 var(--space-sm); white-space: nowrap;
  border: 0; border-radius: calc(var(--radius) - 2px); background: transparent;
  color: var(--wall-ink); font: 500 0.875rem/1 var(--font-ui); cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.seg button:hover { background: var(--quiet); }
.seg button[aria-checked="true"] { background: var(--win-bg); color: var(--win-ink); box-shadow: var(--shadow-chip); }
.seg-ground { background: var(--ground-2); border: 1px solid var(--line); }
.seg-ground button { color: var(--ink-2); }
.seg-ground button:hover { background: var(--line); }

/* MARK: the wall (hero) and its menu bar */

.wall {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--wall); color: var(--wall-ink);
}
/* The wallpaper is the mark itself: an outline square over a deeper amber square. */
.wall::before, .wall::after {
  content: ""; position: absolute; z-index: -1; border-radius: 22%;
  width: min(78vmax, 1100px); aspect-ratio: 1;
}
.wall::before { right: -22vmax; top: 18%; background: var(--wall-deep); }
.wall::after { right: -12vmax; top: -6%; border: clamp(10px, 1.6vmax, 22px) solid var(--wall-mark); }

.menubar { position: relative; z-index: 3; }
.menubar .wrap { display: flex; align-items: center; gap: var(--space-lg); min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); font: 700 1.0625rem/1 var(--font-display); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.menubar nav { display: flex; align-items: center; gap: var(--space-2xs); margin-left: var(--space-xs); }
.menubar nav a {
  padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--wall-ink-2);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.menubar nav a:hover, .menubar nav a[aria-current="page"] { background: var(--quiet); color: var(--wall-ink); }
.menubar .menubar-end { margin-left: auto; display: flex; align-items: center; gap: var(--space-xs); }
.menubar .menubar-end .btn { min-height: 36px; }
.github[hidden] { display: none; }
.menu-toggle { display: none; }

.hero {
  display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); grid-template-areas: "title title" "copy desk";
  gap: var(--space-xl) var(--space-2xl); align-items: start; padding-block: var(--space-lg) var(--space-3xl);
}
.hero h1 {
  grid-area: title;
  font: 700 clamp(2.4rem, 1.3rem + 3.6vw, 4.6rem)/1 var(--font-display);
  letter-spacing: -0.032em; overflow-wrap: break-word;
}
.hero h1 span { display: block; }
.hero-copy { grid-area: copy; padding-top: var(--space-2xl); }
.hero .desk { grid-area: desk; }
.hero .lede { max-width: 34ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.5; color: var(--wall-ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero-meta { margin-top: var(--space-md); font-size: 0.9375rem; color: var(--wall-ink-2); }

/* MARK: the desk: a working demo of two copies of one app */

.desk { margin: 0; }
.desk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-md); }
.desk-stage {
  position: relative; height: clamp(360px, 33vw, 470px);
  container-type: inline-size;
}
.desk figcaption { margin-top: var(--space-md); font-size: 0.8125rem; color: var(--wall-ink-2); max-width: 60ch; }

.window {
  position: absolute; width: 64%; height: 78%;
  display: grid; grid-template-rows: auto 1fr;
  background: var(--win-bg); color: var(--win-ink);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-win), 0 0 0 1px var(--win-line);
  font-size: 13px; line-height: 1.35;
  transform-origin: var(--from-x, 70%) 110%;
  transition: transform 520ms var(--ease-out), opacity 360ms var(--ease-out), filter 360ms var(--ease-out);
}
.w-original { left: 0; top: 0; z-index: 1; }
.w-copy { right: 0; top: 13%; z-index: 2; }
.desk[data-front="original"] .w-original { z-index: 3; }
.window.is-closed { opacity: 0; transform: scale(0.08) translateY(30%); filter: blur(6px); pointer-events: none; }
.window.is-restaging { opacity: 0; transform: translateY(8px); }

.titlebar { display: flex; align-items: center; gap: var(--space-sm); height: 34px; padding: 0 var(--space-sm); background: var(--win-bar); border-bottom: 1px solid var(--win-line); }
.titlebar .title { flex: 1; font-weight: 600; font-size: 12.5px; text-align: center; color: var(--win-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titlebar .account { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--win-chip); color: var(--win-ink); white-space: nowrap; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--light-close); }
.lights i:nth-child(2) { background: var(--light-min); }
.lights i:nth-child(3) { background: var(--light-max); }
.wincontrols { display: none; gap: 2px; }
.wincontrols svg { width: 28px; height: 22px; padding: 6px 9px; color: var(--win-ink-2); }
.gnome-close { display: none; width: 22px; height: 22px; border-radius: 50%; background: var(--win-chip); padding: 6px; color: var(--win-ink); }

.winbody { display: grid; grid-template-columns: 34% 1fr; min-height: 0; }
.winbody .side { background: var(--win-side); border-right: 1px solid var(--win-line); padding: var(--space-sm) var(--space-xs); overflow: hidden; }
.winbody .side h4 { margin: 0 0 var(--space-xs); padding: 0 var(--space-xs); font-size: 11px; font-weight: 600; text-transform: none; color: var(--win-ink-2); }
.winbody .side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.winbody .side li { padding: 5px var(--space-xs); border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--win-ink-2); }
.winbody .side li.on { background: var(--win-chip); color: var(--win-ink); font-weight: 600; }
.winbody .main { padding: var(--space-md); display: grid; align-content: start; gap: var(--space-sm); overflow: hidden; }
.msg { display: grid; grid-template-columns: 26px 1fr; gap: var(--space-xs); }
.msg .avatar { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--on-tile); background: var(--av, var(--tile-6)); }
.msg b { display: block; font-size: 12px; }
.msg p { color: var(--win-ink); }
.code-line { font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap; overflow: hidden; color: var(--win-ink-2); }
.code-line span { color: var(--win-ink); }
.code-line em { font-style: normal; color: var(--tint, var(--st-supported)); }
.winbody .main:has(.statusbar) { display: flex; flex-direction: column; gap: var(--space-xs); }
.statusbar { margin: auto calc(var(--space-md) * -1) calc(var(--space-md) * -1); padding: 4px var(--space-md); font-size: 11px; color: var(--on-tile); background: var(--tint, var(--st-supported)); }

/* The Dock (macOS), the taskbar (Windows), the dash (GNOME). */
.dock {
  position: absolute; z-index: 5; left: 50%; bottom: -6px; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 10px; padding: 8px 10px;
  background: var(--dock); border: 1px solid var(--dock-line); border-radius: 20px;
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-dock);
}
.dock .tile { position: relative; width: 46px; height: 46px; border: 0; padding: 0; background: none; cursor: default; }
.dock .tile .face { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 22%; font: 700 20px/1 var(--font-display); color: var(--on-tile); background: var(--face, var(--tile-6)); box-shadow: var(--shadow-tile); }
.dock .tile.blank .face { background: var(--win-chip); box-shadow: none; }
.dock button.tile { cursor: pointer; }
.dock .tile .label {
  opacity: 0; transition: opacity 160ms var(--ease-out);
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
  font: 500 12px/1.3 var(--font-ui); color: var(--win-ink); background: var(--win-bg);
  box-shadow: var(--shadow-chip), 0 0 0 1px var(--win-line);
}
.dock .tile:hover .label, .dock .tile:focus-visible .label, .dock .tile.t-copy .label { opacity: 1; }
.dock .tile .dot { position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--win-ink); opacity: 0; transition: opacity 200ms var(--ease-out); }
.dock .tile.running .dot { opacity: 0.75; }
.dock .tile.launching .face { animation: bounce 900ms var(--ease-out) 1; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-18px); }
  55% { transform: translateY(0); }
  72% { transform: translateY(-7px); }
}

.desk[data-os="windows"] .dock {
  left: 0; right: 0; bottom: -6px; transform: none; justify-content: center; gap: 6px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 6px; background: var(--taskbar);
}
.desk[data-os="windows"] .dock .tile { width: 40px; height: 40px; padding: 5px; border-radius: 6px; }
.desk[data-os="windows"] .dock .tile .face { border-radius: 6px; font-size: 15px; }
.desk[data-os="windows"] .dock .tile:hover .label, .dock .tile:focus-visible .label, .dock .tile.t-copy .label { opacity: 1; }
.dock .tile .dot { width: 6px; height: 3px; border-radius: 2px; bottom: 0; margin-left: -3px; }
.desk[data-os="windows"] .dock .tile.running .dot { opacity: 0.6; }
.desk[data-os="windows"] .dock .tile.front .dot { width: 16px; margin-left: -8px; opacity: 1; background: var(--accent-ink); }
.desk[data-os="windows"] .lights, .desk[data-os="linux"] .lights { display: none; }
.desk[data-os="windows"] .wincontrols { display: flex; margin-left: auto; }
.desk[data-os="windows"] .titlebar { gap: var(--space-xs); }
.desk[data-os="windows"] .titlebar .title { text-align: left; }
.desk[data-os="windows"] .window { border-radius: 8px; }
.desk[data-os="linux"] .dock { border-radius: 18px; background: var(--dash); border-color: var(--dash-line); }
.desk[data-os="linux"] .dock .tile.running .dot { background: var(--on-tile); }
.desk[data-os="linux"] .titlebar { height: 38px; }
.desk[data-os="linux"] .gnome-close { display: block; }
.desk[data-os="linux"] .window { border-radius: 12px 12px 8px 8px; }

/* MARK: sections */

.section { padding-block: var(--space-4xl); }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--ground-2); }
.section h2 { font: 700 clamp(1.875rem, 1.4rem + 1.8vw, 2.875rem)/1.06 var(--font-display); letter-spacing: -0.025em; max-width: 22ch; }
.section .intro { margin-top: var(--space-md); max-width: 60ch; font-size: 1.125rem; color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-3xl); align-items: start; }

/* How it works: the real New instance sheet, step by step. */
.steps { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; gap: var(--space-xs); counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: var(--space-sm); padding: var(--space-md); border-radius: var(--radius); cursor: default; transition: background-color 200ms var(--ease-out); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); font: 600 0.875rem/1 var(--font-ui); color: var(--ink-2); }
.steps li.on { background: var(--ground-2); }
.steps li.on::before { background: var(--button); border-color: var(--button); color: var(--on-button); }
.steps h3 { font: 600 1.0625rem/1.3 var(--font-ui); }
.steps p { margin-top: var(--space-2xs); color: var(--ink-2); }

.sheet { background: var(--win-bg); color: var(--win-ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft), 0 0 0 1px var(--win-line); overflow: hidden; font-size: 13px; }
.sheet .titlebar { justify-content: flex-start; }
.sheet .titlebar .title { text-align: center; }
.sheet-body { padding: var(--space-md); display: grid; gap: var(--space-sm); min-height: 330px; }
.sheet-search { display: flex; align-items: center; gap: var(--space-xs); padding: 7px 10px; border-radius: 8px; background: var(--win-chip); color: var(--win-ink-2); }
.sheet-search svg { width: 14px; height: 14px; }
.sheet-group { font-size: 11px; font-weight: 600; color: var(--win-ink-2); margin-top: var(--space-2xs); }
.sheet-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: var(--space-sm); padding: 6px 8px; border-radius: 8px; }
.sheet-row .face { width: 28px; height: 28px; border-radius: 22%; display: grid; place-items: center; font: 700 13px/1 var(--font-display); color: var(--on-tile); background: var(--face); }
.sheet-row small { color: var(--win-ink-2); font-size: 12px; }
.sheet-row.on { background: var(--select); color: var(--on-select); }
.sheet-row.on small { color: var(--on-select); opacity: 0.85; }
.sheet-form { display: none; gap: var(--space-sm); }
.sheet-field { display: grid; grid-template-columns: 9.5em 1fr; align-items: center; gap: var(--space-sm); }
.sheet-field label { text-align: right; color: var(--win-ink-2); }
.sheet-field output { padding: 6px 9px; border-radius: 6px; border: 1px solid var(--win-line); background: var(--win-bg); }
.sheet-toggle { width: 34px; height: 20px; border-radius: 10px; background: var(--select); position: relative; }
.sheet-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--on-select); }
.sheet-actions { display: flex; justify-content: flex-end; gap: var(--space-xs); margin-top: var(--space-xs); }
.sheet-actions span { padding: 5px 14px; border-radius: 6px; background: var(--win-chip); }
.sheet-actions span.go { background: var(--select); color: var(--on-select); }
.sheet-done { display: none; place-items: center; gap: var(--space-md); text-align: center; padding-block: var(--space-xl); }
.sheet-done .pair { display: flex; gap: var(--space-lg); }
.sheet-done .pair div { display: grid; justify-items: center; gap: var(--space-xs); font-size: 12px; }
.sheet-done .face { width: 56px; height: 56px; border-radius: 22%; display: grid; place-items: center; font: 700 24px/1 var(--font-display); color: var(--on-tile); background: var(--face); }
.sheet[data-step="2"] .sheet-pick, .sheet[data-step="3"] .sheet-pick { display: none; }
.sheet[data-step="2"] .sheet-form { display: grid; }
.sheet[data-step="3"] .sheet-done { display: grid; }

/* What a copy keeps apart. */
.ledger { margin-top: var(--space-2xl); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 2px solid var(--ink); }
.ledger > div { padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; }
.ledger > div + div { padding-left: var(--space-lg); border-left: 1px solid var(--line); }
.ledger h3 { font: 700 1.25rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.ledger ul { margin: var(--space-md) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-xs); }
.ledger li { display: grid; grid-template-columns: 18px 1fr; gap: var(--space-xs); color: var(--ink-2); }
.ledger li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent-ink); }
.recipes { margin-top: var(--space-2xl); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 var(--space-xl); }
.recipes div { padding-block: var(--space-md); border-top: 1px solid var(--line); }
.recipes b { display: block; font-weight: 600; }
.recipes span { color: var(--ink-2); font-size: 0.9375rem; }

/* Status words, exactly as the app uses them. */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-tested { color: var(--st-tested); }
.status-supported { color: var(--st-supported); }
.status-limited { color: var(--st-limited); }
.status-wanted { color: var(--st-wanted); }
.status-no { color: var(--st-no); }

/* The register, as a list view. */
.listview { margin-top: var(--space-xl); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ground); }
.listview-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); padding: var(--space-sm); border-bottom: 1px solid var(--line); background: var(--ground-2); }
.search { flex: 1 1 220px; display: flex; align-items: center; gap: var(--space-xs); padding: 0 var(--space-sm); min-height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--field); color: var(--ink-3); }
.search svg { width: 16px; height: 16px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 0.9375rem; color: var(--ink); outline: none; }
.search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-halo); }
.listview table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.listview th { text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); padding: var(--space-xs) var(--space-md); border-bottom: 1px solid var(--line); background: var(--ground); position: sticky; top: 0; }
.listview td { padding: 10px var(--space-md); border-bottom: 1px solid var(--line); vertical-align: top; }
.listview tbody tr:last-child td { border-bottom: 0; }
.listview tbody tr:nth-child(even) td { background: color-mix(in oklch, var(--ground-2) 55%, var(--ground)); }
.listview td.note { color: var(--ink-2); max-width: 52ch; }
.listview .empty { padding: var(--space-xl) var(--space-md); text-align: center; color: var(--ink-2); }
.listview-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-top: 1px solid var(--line); background: var(--ground-2); font-size: 0.875rem; color: var(--ink-2); }

/* Private by design: plain statements, set like a colophon. */
.promises { margin-top: var(--space-2xl); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: var(--space-xl) var(--space-2xl); }
.promises div { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-sm); }
.promises svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-ink); }
.promises b { display: block; font-weight: 600; }
.promises p { color: var(--ink-2); }

/* Downloads: one row per system. */
.downloads { margin-top: var(--space-2xl); border-top: 2px solid var(--ink); }
.dl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: var(--space-lg); align-items: center; padding-block: var(--space-lg); border-bottom: 1px solid var(--line); }
.dl h3 { font: 700 1.375rem/1.15 var(--font-display); letter-spacing: -0.015em; }
.dl .os-mark { display: block; font: 500 0.875rem/1.3 var(--font-ui); color: var(--ink-3); margin-top: var(--space-2xs); }
.dl p { color: var(--ink-2); font-size: 0.9375rem; }
.dl p code { color: var(--ink); }
.dl .btn { justify-self: end; }
.dl.is-yours { position: relative; }
.dl.is-yours h3::after { content: "Your system"; margin-left: var(--space-sm); vertical-align: middle; font: 600 0.75rem/1 var(--font-ui); padding: 4px 8px; border-radius: 99px; background: var(--wall); color: var(--wall-ink); }
.release-note { margin-top: var(--space-lg); color: var(--ink-2); font-size: 0.9375rem; max-width: 70ch; }

/* MARK: footer */

.colophon { border-top: 1px solid var(--line); padding-block: var(--space-xl); font-size: 0.9375rem; color: var(--ink-2); }
.colophon .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-xl); }
.colophon .brand { color: var(--ink); }
.colophon nav { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); margin-left: auto; }
.colophon a { text-decoration: none; }
.colophon a:hover { text-decoration: underline; }

/* MARK: inner pages (apps, report, privacy) */

.page-head { background: var(--wall); color: var(--wall-ink); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before, .page-head::after { content: ""; position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 22%; width: clamp(150px, 17vw, 230px); top: 50%; }
.page-head::before { right: calc(var(--gutter) + 2vw); transform: translateY(-38%); background: var(--wall-deep); }
.page-head::after { right: calc(var(--gutter) + 5vw); transform: translateY(-62%); border: clamp(8px, 0.9vw, 12px) solid var(--wall-mark); }
.page-head .title { padding-block: var(--space-xl) var(--space-2xl); }
.page-head h1 { font: 700 clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem)/1.04 var(--font-display); letter-spacing: -0.03em; max-width: 20ch; }
.page-head p { margin-top: var(--space-md); max-width: 58ch; font-size: 1.125rem; color: var(--wall-ink-2); }
.page { padding-block: var(--space-3xl) var(--space-4xl); }
.prose { max-width: 68ch; }
.prose h2 { font: 700 1.5rem/1.2 var(--font-display); letter-spacing: -0.015em; margin-top: var(--space-2xl); }
.prose p, .prose ul { margin-top: var(--space-md); color: var(--ink-2); }
.prose li + li { margin-top: var(--space-xs); }

.legend { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--space-md) var(--space-xl); }
.legend div p { margin-top: var(--space-2xs); font-size: 0.9375rem; color: var(--ink-2); }

/* The report form, laid out like a settings pane. */
.report { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-3xl); align-items: start; }
.form { display: grid; gap: var(--space-lg); }
.field { display: grid; gap: var(--space-xs); }
.field > label, .field > legend { font-weight: 600; font-size: 0.9375rem; padding: 0; }
.field .hint { font-size: 0.875rem; color: var(--ink-2); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: grid; gap: var(--space-xs); }
.choice { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-sm); align-items: start; padding: var(--space-sm) var(--space-md); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.choice:hover { border-color: var(--line-strong); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--ground-2); }
.choice input { margin: 3px 0 0; accent-color: var(--button); width: 16px; height: 16px; }
.choice span { font-weight: 500; }
.choice small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.875rem; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); }
.input, .textarea {
  width: 100%; min-height: 44px; padding: 10px var(--space-sm);
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--field); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-halo); }
.input:disabled, .textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--st-no); }
.error-text { color: var(--st-no); font-size: 0.875rem; }
.check { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: 0.9375rem; }
.check input { margin-top: 3px; accent-color: var(--button); width: 16px; height: 16px; }

.preview { position: sticky; top: var(--space-lg); }
.preview .sheet-body { min-height: 0; }
.preview pre { margin: 0; padding: var(--space-md); max-height: 360px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 12.5px/1.55 var(--font-mono); color: var(--win-ink); background: var(--win-bg); }
.preview .send { display: grid; gap: var(--space-sm); padding: var(--space-md); border-top: 1px solid var(--win-line); background: var(--win-side); }
.preview .send .btn { width: 100%; }
.preview .send p { font-size: 0.8125rem; color: var(--win-ink-2); }
.preview .send .done { color: var(--st-tested); font-weight: 600; }

/* MARK: responsive */

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "copy" "desk"; padding-block: var(--space-md) var(--space-2xl); }
  .hero-copy { padding-top: 0; }
  .hero .lede { max-width: 46ch; }
  .split, .report { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .preview { position: static; }
  .desk-stage { height: clamp(330px, 62vw, 470px); }
}
@media (max-width: 760px) {
  .wall::before { top: auto; bottom: -40vmax; right: -50vmax; }
  .wall::after { top: auto; bottom: -10vmax; right: -60vmax; }
  .page-head::before, .page-head::after { display: none; }
  .menubar nav { display: none; }
  .menubar nav.open { display: grid; position: absolute; top: 56px; left: var(--gutter); right: var(--gutter); padding: var(--space-xs); border-radius: var(--radius); background: var(--win-bg); box-shadow: var(--shadow-win); }
  .menubar nav.open a { color: var(--win-ink); padding: var(--space-sm); }
  .menu-toggle { display: inline-flex; }
  .menubar .menubar-end .btn-primary { display: none; }
  .section { padding-block: var(--space-3xl); }
  .window { width: 84%; height: 70%; font-size: 12px; }
  .w-copy { top: 18%; }
  .winbody { grid-template-columns: 1fr; }
  .winbody .side { display: none; }
  .dock { gap: 8px; padding: 6px 8px; }
  .dock .tile { width: 38px; height: 38px; }
  .dock .tile.blank:nth-child(n+3) { display: none; }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .dl { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .dl .btn { justify-self: start; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .listview td.note { display: none; }
  .colophon nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
