/* composmentis.legal: the site is the app's own macOS window, in the app's Slate theme.
   Sidebar, toolbar, content, notes rail, status bar. San Francisco only; oxblood for the brand and the one action. */

:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Slate, as the app resolves it: chrome is #AAB7B8 at 16% over the canvas, notes #2E4053 at 5%. */
  --desk: #DCE2E5;
  --window: #FFFFFF;
  --chrome: #F0F3F4;
  --chrome-2: #E5EAEC;
  --notes: #F5F7F9;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-chrome: rgba(240, 243, 244, 0.86);
  --capsule: rgba(255, 255, 255, 0.92);
  --ink: #1C2833;
  --ink-2: #47535E;
  --ink-3: #5F6B73;
  --accent: #2E4053;
  --hover: rgba(46, 64, 83, 0.06);
  --select: rgba(46, 64, 83, 0.10);
  --focus-entry: rgba(46, 64, 83, 0.065);
  --hair: rgba(28, 40, 51, 0.10);
  --hair-2: rgba(28, 40, 51, 0.17);
  --buy: #6B2A1F;
  --buy-hover: #5A2218;
  --on-buy: #FFFFFF;
  --brand: #6B2A1F;
  --ok: #176B31;
  --ok-fill: rgba(52, 199, 89, 0.16);
  --info: #0A58B8;
  --info-fill: rgba(0, 122, 255, 0.11);
  --live: #7D3BAA;
  --live-fill: rgba(175, 82, 222, 0.13);
  --warn: #945000;
  --warn-fill: rgba(255, 149, 0, 0.16);
  --danger: #B3261E;
  --danger-fill: rgba(255, 59, 48, 0.10);
  --star: #A86A0E;
  --lights: #FF5F57, #FEBC2E, #28C840;
  --window-shadow: 0 0 0 0.5px rgba(28, 40, 51, 0.18), 0 34px 80px -28px rgba(28, 40, 51, 0.34), 0 10px 24px -14px rgba(28, 40, 51, 0.18);
  --panel-shadow: 0 0 0 0.5px rgba(28, 40, 51, 0.09), 0 1px 3px rgba(28, 40, 51, 0.06);
  --capsule-shadow: 0 0 0 0.5px rgba(28, 40, 51, 0.11), 0 1px 2px rgba(28, 40, 51, 0.07);
  --buy-shadow: 0 1px 2px rgba(107, 42, 31, 0.26), 0 6px 16px -8px rgba(107, 42, 31, 0.45);

  --desk-gap: 20px;
  --toolbar-h: 52px;
  --status-h: 30px;
  --side-w: 248px;
  --rail-w: 320px;
  --gutter: 56px;
  --r-window: 18px;
  --r-panel: 12px;
  --r-shot: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --desk: #0C1015;
    --window: #1C1E21;
    --chrome: #26292D;
    --chrome-2: #303439;
    --notes: #202429;
    --glass: rgba(28, 30, 33, 0.78);
    --glass-chrome: rgba(38, 41, 45, 0.86);
    --capsule: rgba(255, 255, 255, 0.07);
    --ink: #E8ECEF;
    --ink-2: #B4BDC5;
    --ink-3: #939EA8;
    --accent: #A8BBD0;
    --hover: rgba(168, 187, 208, 0.08);
    --select: rgba(168, 187, 208, 0.15);
    --focus-entry: rgba(168, 187, 208, 0.08);
    --hair: rgba(255, 255, 255, 0.085);
    --hair-2: rgba(255, 255, 255, 0.15);
    --buy: #8E3627;
    --buy-hover: #A03E2D;
    --brand: #E9DFD3;
    --ok: #5FD07E;
    --ok-fill: rgba(52, 199, 89, 0.20);
    --info: #6EAAFF;
    --info-fill: rgba(10, 132, 255, 0.22);
    --live: #D293F2;
    --live-fill: rgba(191, 90, 242, 0.22);
    --warn: #FFB547;
    --warn-fill: rgba(255, 159, 10, 0.20);
    --danger: #FF8A80;
    --danger-fill: rgba(255, 69, 58, 0.18);
    --star: #E9B451;
    --window-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.10), 0 34px 80px -24px rgba(0, 0, 0, 0.70), 0 10px 24px -12px rgba(0, 0, 0, 0.50);
    --panel-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.07), 0 1px 3px rgba(0, 0, 0, 0.30);
    --capsule-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.10), 0 1px 2px rgba(0, 0, 0, 0.30);
    --buy-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 6px 16px -8px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --desk: #0C1015;
  --window: #1C1E21;
  --chrome: #26292D;
  --chrome-2: #303439;
  --notes: #202429;
  --glass: rgba(28, 30, 33, 0.78);
  --glass-chrome: rgba(38, 41, 45, 0.86);
  --capsule: rgba(255, 255, 255, 0.07);
  --ink: #E8ECEF;
  --ink-2: #B4BDC5;
  --ink-3: #939EA8;
  --accent: #A8BBD0;
  --hover: rgba(168, 187, 208, 0.08);
  --select: rgba(168, 187, 208, 0.15);
  --focus-entry: rgba(168, 187, 208, 0.08);
  --hair: rgba(255, 255, 255, 0.085);
  --hair-2: rgba(255, 255, 255, 0.15);
  --buy: #8E3627;
  --buy-hover: #A03E2D;
  --brand: #E9DFD3;
  --ok: #5FD07E;
  --ok-fill: rgba(52, 199, 89, 0.20);
  --info: #6EAAFF;
  --info-fill: rgba(10, 132, 255, 0.22);
  --live: #D293F2;
  --live-fill: rgba(191, 90, 242, 0.22);
  --warn: #FFB547;
  --warn-fill: rgba(255, 159, 10, 0.20);
  --danger: #FF8A80;
  --danger-fill: rgba(255, 69, 58, 0.18);
  --star: #E9B451;
  --window-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.10), 0 34px 80px -24px rgba(0, 0, 0, 0.70), 0 10px 24px -12px rgba(0, 0, 0, 0.50);
  --panel-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.07), 0 1px 3px rgba(0, 0, 0, 0.30);
  --capsule-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.10), 0 1px 2px rgba(0, 0, 0, 0.30);
  --buy-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 6px 16px -8px rgba(0, 0, 0, 0.6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--desk); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--toolbar-h) + 12px); }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "kern"; caret-color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 38%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
.num, time, .key, td.num, .amount { font-variant-numeric: tabular-nums; }
.ic { width: 16px; height: 16px; flex: none; }
.ic .knock { stroke: var(--window); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--window); padding: 9px 14px; border-radius: 999px; font: 600 13px var(--font); text-decoration: none; transition: top 0.2s var(--ease); }
.skip:focus { top: 12px; }

/* ---------- The window ---------- */
.desk { padding: var(--desk-gap); min-height: 100vh; }
.window {
  position: relative; max-width: 1600px; margin: 0 auto; min-height: calc(100vh - 2 * var(--desk-gap));
  display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr);
  background: var(--window); border-radius: var(--r-window); box-shadow: var(--window-shadow);
  overflow: clip;
}

/* Sidebar: an inset floating panel, as in macOS 26. */
.sidebar { position: sticky; top: 0; align-self: start; height: calc(100vh - var(--desk-gap)); height: calc(100dvh - var(--desk-gap)); padding: 8px 0 8px 8px; z-index: 30; }
.side-panel { height: 100%; display: flex; flex-direction: column; background: var(--chrome); border-radius: var(--r-panel); box-shadow: var(--panel-shadow); overflow: hidden; }
.lights { display: flex; gap: 8px; padding: 15px 15px 4px; flex: none; }
.lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.16); }
.lights i:nth-child(1) { background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.side-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 16px; scrollbar-width: thin; scrollbar-color: var(--hair-2) transparent; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 22px), transparent 100%); }
.side-head { padding: 14px 10px 5px; font: 600 12px/1.2 var(--font); color: var(--ink-3); letter-spacing: 0.01em; }
.side-list { list-style: none; }
.side-group > summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; border-radius: 6px; }
.side-group > summary::-webkit-details-marker { display: none; }
.side-group > summary::after { content: ""; width: 6px; height: 6px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.2s var(--ease); }
.side-group[open] > summary::after { transform: rotate(45deg) translate(-1px, -1px); }
.side-group > summary:hover { color: var(--ink); }
.side-link { position: relative; display: flex; align-items: center; gap: 9px; min-height: 29px; padding: 4px 10px; border-radius: 8px; color: var(--ink); font: 400 13.5px/1.25 var(--font); text-decoration: none; transition: background-color 0.15s; }
.side-link .ic { width: 17px; height: 17px; color: var(--accent); }
.side-link:hover { background: var(--hover); }
.side-link[aria-current] { background: var(--select); font-weight: 600; }
.side-link[aria-current]::before { content: ""; position: absolute; left: 3px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--accent); }
.side-count { margin-left: auto; font: 500 12px/1 var(--font); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.side-sub { list-style: none; margin: 2px 0 6px 14px; padding-left: 8px; border-left: 1px solid var(--hair); }
.side-sub .side-link { min-height: 28px; font-size: 13px; gap: 8px; }
.side-sub .side-link .ic { width: 15px; height: 15px; }
.side-sub .side-link[aria-current]::before { left: -9px; top: 7px; bottom: 7px; width: 2px; }
/* A section row selected under its page: the page row steps back, as in the app's source list. */
li:has(.side-sub [aria-current]) > .side-link { background: transparent; font-weight: 400; }
li:has(.side-sub [aria-current]) > .side-link::before { display: none; }
.side-foot .theme-toggle { display: none; }
.side-scroll:has([data-spy][aria-current]) .side-link[aria-current="page"] { background: transparent; font-weight: 400; }
.side-scroll:has([data-spy][aria-current]) .side-link[aria-current="page"]::before { display: none; }
.side-foot { flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 12px 12px 18px; border-top: 1px solid var(--hair); font: 400 12px/1 var(--font); }
.side-foot a { color: var(--ink-3); text-decoration: none; }
.side-foot a:hover { color: var(--ink); }
.side-foot .theme-toggle { margin-left: auto; }

/* Pane: toolbar, content, status bar. */
.pane { min-width: 0; display: flex; flex-direction: column; min-height: 100%; }
.toolbar {
  position: sticky; top: 0; z-index: 20; height: var(--toolbar-h); flex: none;
  display: flex; align-items: center; gap: 12px; padding: 0 14px 0 22px;
  background: var(--glass); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.tb-menu { display: none; width: 34px; height: 34px; border: 0; border-radius: 999px; background: var(--capsule); box-shadow: var(--capsule-shadow); align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.tb-menu .ic { width: 18px; height: 18px; }
.tb-title { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; }
.tb-title .tile { width: 28px; height: 28px; border-radius: 7px; }
.tb-title .tile .ic { width: 16px; height: 16px; }
.tb-name { font: 600 14px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-brand { display: none; align-items: center; gap: 8px; text-decoration: none; color: var(--brand); }
.tb-brand img { width: 26px; height: 26px; }
.tb-brand .lettering { height: 17px; }
.capsule { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 3px; border-radius: 999px; background: var(--capsule); box-shadow: var(--capsule-shadow); }
.capsule a { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 999px; color: var(--ink); font: 500 13px/1 var(--font); text-decoration: none; white-space: nowrap; transition: background-color 0.15s; }
.capsule a .ic { width: 15px; height: 15px; color: var(--accent); }
.capsule a:hover { background: var(--hover); }
.capsule a[aria-current] { background: var(--select); }
.tb-center { margin: 0 auto; }
.tb-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tb-center + .tb-actions { margin-left: 0; }
.tb-buy { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--buy); color: var(--on-buy); font: 600 13px/1 var(--font); text-decoration: none; white-space: nowrap; box-shadow: var(--buy-shadow), inset 0 0.5px 0 rgba(255, 255, 255, 0.18); transition: background-color 0.15s; }
.tb-buy:hover { background: var(--buy-hover); }
.tb-buy .amount { font-weight: 500; opacity: 0.86; }

.statusbar {
  position: sticky; bottom: 0; z-index: 15; height: var(--status-h); flex: none; margin-top: auto;
  display: flex; align-items: center; gap: 20px; padding: 8px 10px 8px 16px;
  background: var(--glass-chrome); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px);
  border-top: 1px solid var(--hair); font: 500 12px/1 var(--font); color: var(--ink-2); white-space: nowrap; overflow: hidden;
}
.statusbar .item { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.statusbar a.item:hover { color: var(--ink); }
.statusbar .ic { width: 13px; height: 13px; color: var(--accent); }
.statusbar .right { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 12px/1 var(--font); cursor: pointer; }
.theme-toggle:hover { background: var(--hover); color: var(--ink); }
.theme-toggle .ic { width: 13px; height: 13px; }
.theme-toggle .moon, :root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.scrim { display: none; }

/* ---------- Content grid: lead, rail, body ---------- */
.content { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "body"; flex: 1 0 auto; }
.content.has-rail { grid-template-columns: minmax(0, 1fr) var(--rail-w); grid-template-areas: "lead rail" "body rail"; }
.lead { grid-area: lead; min-width: 0; }
.body { grid-area: body; min-width: 0; }
.rail { grid-area: rail; min-width: 0; background: var(--notes); border-left: 1px solid var(--hair); }
.rail-inner { position: sticky; top: var(--toolbar-h); height: calc(100vh - var(--toolbar-h) - var(--status-h) - var(--desk-gap)); height: calc(100dvh - var(--toolbar-h) - var(--status-h) - var(--desk-gap)); display: flex; flex-direction: column; }

/* ---------- Type ---------- */
h1 { font: 600 clamp(32px, 3.15vw, 46px)/1.06 var(--font-display); letter-spacing: -0.026em; text-wrap: balance; color: var(--ink); }
h2 { font: 600 clamp(24px, 2.1vw, 30px)/1.16 var(--font-display); letter-spacing: -0.019em; text-wrap: balance; color: var(--ink); }
h3 { font: 600 16px/1.35 var(--font); letter-spacing: -0.005em; color: var(--ink); }
.lede { font: 400 17px/1.55 var(--font); color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.meta { font: 400 13px/1.5 var(--font); color: var(--ink-3); }

/* Tiles: the app's pane-header icon square. */
.tile { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--chrome); box-shadow: inset 0 0 0 0.5px var(--hair-2); color: var(--accent); }
.tile .ic { width: 22px; height: 22px; }

/* Brand lettering as a mask, so it takes any color on any ground. */
.lettering { display: inline-block; aspect-ratio: 984.5 / 176.2; background: currentColor; -webkit-mask: var(--mask) no-repeat center / contain; mask: var(--mask) no-repeat center / contain; }

/* ---------- Buttons, keys, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color 0.15s, box-shadow 0.15s; }
.btn--primary { background: var(--buy); color: var(--on-buy); box-shadow: var(--buy-shadow), inset 0 0.5px 0 rgba(255, 255, 255, 0.2); }
.btn--primary:hover { background: var(--buy-hover); }
.btn--secondary { background: var(--chrome); color: var(--ink); box-shadow: inset 0 0 0 0.5px var(--hair-2); }
.btn--secondary:hover { background: var(--chrome-2); }
.btn .amount { font-weight: 500; padding-left: 10px; border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 32%, transparent); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.key { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; background: var(--chrome); box-shadow: inset 0 0 0 0.5px var(--hair); color: var(--ink-3); font: 500 12px/1 var(--font); letter-spacing: 0.04em; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font: 600 12px/1 var(--font); white-space: nowrap; background: var(--chrome); color: var(--ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--offered { background: var(--info-fill); color: var(--info); }
.pill--admitted, .pill--yes { background: var(--ok-fill); color: var(--ok); }
.pill--presented { background: var(--live-fill); color: var(--live); }
.pill--warn { background: var(--warn-fill); color: var(--warn); }

/* ---------- Home: the lead ---------- */
.hero { padding: 52px var(--gutter) 0; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; gap: 6px; color: var(--brand); }
.brand-text .lettering { height: 24px; }
.brand-line { font: 500 13.5px/1.2 var(--font); color: var(--ink-3); }
.hero h1 { margin-top: 34px; max-width: 16ch; }
.subhead { margin-top: 14px; font: 400 clamp(17px, 1.35vw, 19.5px)/1.5 var(--font); color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.hero .actions { margin-top: 28px; }
.req { margin-top: 16px; font: 400 13px/1.55 var(--font); color: var(--ink-3); max-width: 64ch; }
.req a { color: inherit; }
.hero-shot { margin-top: 40px; }

/* Figures: the app's own screens, a hairline and the window's corner. */
.shot { margin: 0; max-width: var(--w, 100%); }
.shot img { width: 100%; height: auto; border-radius: var(--r-shot); background: var(--chrome); box-shadow: 0 0 0 0.5px var(--hair-2), 0 1px 2px rgba(28, 40, 51, 0.05); }
.shot figcaption { margin-top: 10px; font: 400 13px/1.45 var(--font); color: var(--ink-3); }
.figure-links { display: inline-block; margin-left: 0.4em; }
.palette-gallery { margin-top: 32px; }
.palette-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.palette-choice { min-height: 44px; padding: 0 18px; border: 1px solid var(--hair-2); border-radius: var(--r-row, 8px); background: var(--chrome); color: var(--ink); font: 500 14px/1.4 var(--font); cursor: pointer; }
.palette-choice:hover { background: var(--chrome-2); }
.palette-choice[aria-pressed="true"] { background: var(--select); border-color: var(--accent); }
.palette-gallery > .meta { margin-top: 16px; }
.palette-gallery:not(.is-enhanced) [data-palette-panel] + [data-palette-panel] { margin-top: 24px; }
[hidden] { display: none !important; }

/* ---------- Home: sections ---------- */
.section { padding: 80px var(--gutter) 84px; border-top: 1px solid var(--hair); scroll-margin-top: var(--toolbar-h); }
.hero + .body .section:first-child { margin-top: 72px; }
.sec-head h2 { max-width: 30ch; }
.sec-head .lede { margin-top: 12px; }
.sec-figs { margin-top: 36px; display: grid; gap: 28px; }
.claims { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; }
.claim { border-top: 1px solid var(--hair); padding-top: 16px; }
.claim dt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font: 600 15px/1.35 var(--font); color: var(--ink); }
.claim dt .key { transform: translateY(-1px); }
.claim dd { margin-top: 6px; font: 400 14.5px/1.55 var(--font); color: var(--ink-2); text-wrap: pretty; }
.split { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 44px; align-items: start; }
.split .claims { margin-top: 0; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.claims--list { gap: 0; border-radius: 12px; background: var(--window); box-shadow: 0 0 0 1px var(--hair); overflow: hidden; }
.split .claims--list { gap: 0; }
.claims--list .claim { border-top: 1px solid var(--hair); padding: 14px 16px 15px; }
.claims--list .claim:first-child { border-top: 0; }
.claims--list .claim dt { font-size: 14.5px; }
.claims--list .claim dd { font-size: 14px; }
.split .sec-figs { gap: 20px; }
.claims--rows { grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--hair); }
.claims--rows .claim { display: grid; grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr); gap: 24px; padding: 15px 0; }
.claims--rows .claim dt { align-items: flex-start; flex-direction: column; justify-content: flex-start; gap: 8px; }
.claims--rows .claim dd { margin-top: 0; }
.split--left { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); }
.split--left .sec-figs { order: -1; }
.split .sec-figs { margin-top: 0; }
.second { margin-top: 36px; }

/* The walkthrough slot: the app at rest until play. */
.player { position: relative; margin-top: 36px; border-radius: 12px; overflow: hidden; background: var(--chrome); box-shadow: 0 0 0 0.5px var(--hair-2); aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player-start { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 18px; border: 0; background: transparent; cursor: pointer; }
.player-chip { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 8px; border-radius: 999px; background: rgba(28, 40, 51, 0.74); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); color: #FFFFFF; font: 600 14px/1 var(--font); box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.45); transition: background-color 0.15s, transform 0.2s var(--ease); }
.player-chip .glyph { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); }
.player-chip .glyph svg { width: 14px; height: 14px; margin-left: 2px; }
.player-start:hover .player-chip { background: rgba(28, 40, 51, 0.86); transform: translateY(-1px); }
.player.is-playing .player-start { display: none; }
.player-note { margin-top: 12px; font: 400 13px/1.45 var(--font); color: var(--ink-3); }

/* Pay once: the inspector form, then the years. */
.group { margin-top: 32px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.group .row { display: grid; grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--hair); font: 400 14.5px/1.45 var(--font); }
.group .row:first-child { border-top: 0; }
.group .row > span:first-child { color: var(--ink-2); }
.group .row--price { padding: 18px 0; align-items: center; }
.group .row--price > span:first-child { color: var(--ink); font-weight: 600; font-size: 15px; }
.price-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-big .amount { font: 600 34px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.price-big .what { color: var(--ink-2); font-size: 14.5px; }
.group .row--actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px 0; }
.seats { font: 400 13px/1.4 var(--font); color: var(--ink-3); }
.seats:empty { display: none; }
.years { margin-top: 44px; }
.years h3 { margin-bottom: 16px; max-width: 46ch; font: 600 clamp(19px, 1.6vw, 22px)/1.3 var(--font-display); letter-spacing: -0.012em; text-wrap: balance; }
.years-link { margin-top: 12px; }
.close-links { margin-top: 16px; }

/* Lists: the app's table views. */
.list-wrap { border-radius: 12px; box-shadow: 0 0 0 1px var(--hair); overflow-x: auto; background: var(--window); }
.list { width: 100%; border-collapse: separate; border-spacing: 0; font: 400 14px/1.5 var(--font); }
.list caption { caption-side: bottom; text-align: left; padding: 12px 16px; font: 400 12.5px/1.5 var(--font); color: var(--ink-3); border-top: 1px solid var(--hair); }
.list th { text-align: left; padding: 10px 16px; font: 600 12px/1.3 var(--font); color: var(--ink-3); background: var(--chrome); border-bottom: 1px solid var(--hair); white-space: nowrap; }
.list td { padding: 12px 16px; border-bottom: 1px solid var(--hair); vertical-align: top; color: var(--ink-2); }
.list tbody tr:last-child td { border-bottom: 0; }
.list td:first-child { color: var(--ink); font-weight: 600; }
.lifetime td:first-child { white-space: nowrap; }
.list .num { text-align: right; white-space: nowrap; }
.list th.num { text-align: right; }
.list .ours { background: var(--select); color: var(--ink); font-weight: 600; }
.list tbody th { text-align: left; vertical-align: top; padding: 12px 16px; background: transparent; border-bottom: 1px solid var(--hair); font: 600 14px/1.5 var(--font); color: var(--ink); white-space: normal; }
.list tbody tr:last-child th { border-bottom: 0; }
.list tfoot td { font: 400 12.5px/1.5 var(--font); color: var(--ink-3); border-top: 1px solid var(--hair); border-bottom: 0; font-weight: 400; }

/* The close. */
.close { padding: 84px var(--gutter) 72px; border-top: 1px solid var(--hair); }
.close-grid { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.byline { font: 600 clamp(19px, 1.6vw, 22px)/1.35 var(--font-display); letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
.byline-more { margin-top: 14px; color: var(--ink-2); max-width: 52ch; }
.close .actions { margin-top: 26px; }
.hotkeys { border-radius: 12px; box-shadow: 0 0 0 1px var(--hair); overflow: hidden; }
.hotkeys-title { padding: 12px 16px; background: var(--chrome); font: 600 12px/1.4 var(--font); color: var(--ink-3); border-bottom: 1px solid var(--hair); }
.hotkeys-list { list-style: none; }
.hotkeys-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--hair); font: 400 14px/1.35 var(--font); }
.hotkeys-list li:first-child { border-top: 0; }

.colophon { padding: 28px var(--gutter) 40px; border-top: 1px solid var(--hair); font: 400 12.5px/1.6 var(--font); color: var(--ink-3); }
.colophon-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.colophon-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.colophon-links a:hover { color: var(--ink); }
.colophon p { max-width: 96ch; }

/* ---------- The notes rail ---------- */
.rail-head { flex: none; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--hair); }
.rail-head .ic { color: var(--accent); width: 17px; height: 17px; }
.rail-title { font: 600 13.5px/1.25 var(--font); color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-saved { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font: 500 12px/1 var(--font); color: var(--ok); white-space: nowrap; }
.rail-saved .ic { width: 12px; height: 12px; color: var(--ok); }
.entries { list-style: none; flex: 1; overflow-y: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px); mask-image: linear-gradient(to bottom, transparent 0, #000 18px); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--hair-2) transparent; padding-bottom: 8px; }
.entries:focus-visible { outline-offset: -3px; }
.rail-foot { flex: none; padding: 10px 16px 12px; border-top: 1px solid var(--hair); font: 400 12px/1.45 var(--font); color: var(--ink-3); }
.entry { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; padding: 13px 16px 14px; border-bottom: 1px solid var(--hair); transition: background-color 0.6s var(--ease); }
.entry.is-latest { background: var(--focus-entry); }
.entry-time { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font: 500 12px/1.2 var(--font); color: var(--ink-3); }
.entry-time .key { height: 19px; font-size: 12px; }
.entry-ic { padding-top: 1px; color: var(--accent); }
.entry-ic .ic { width: 16px; height: 16px; }
.entry--question .entry-ic, .entry--check .entry-ic { color: var(--ok); }
.entry--issue .entry-ic { color: var(--warn); }
.entry--star .entry-ic { color: var(--star); }
.entry-title { font: 600 13.5px/1.4 var(--font); color: var(--ink); text-wrap: pretty; }
.entry--note .entry-title, .entry--ruling .entry-title, .entry--check .entry-title { font-weight: 400; }
.entry--star .entry-title { font-weight: 600; }
.entry-meta { grid-column: 2; margin-top: 3px; font: 400 12px/1.4 var(--font); color: var(--ink-3); }
.entry-answer { grid-column: 2; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--window); box-shadow: inset 0 0 0 0.5px var(--hair-2); font: 400 13px/1.4 var(--font); color: var(--ink); }
.entry-pills { grid-column: 2; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.entry-link { grid-column: 2; margin-top: 7px; display: inline-flex; align-items: center; gap: 5px; justify-self: start; font: 500 12px/1 var(--font); color: var(--accent); }
.entry-link .ic { width: 13px; height: 13px; }
/* The notes keep up: entries past the reader's place wait until their section is read. */
.rail.is-live .entry[data-pending] { display: none; }
.rail.is-live .entry.is-arriving { animation: arrive 0.26s var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

.inline-notes { display: none; list-style: none; margin-top: 20px; }
.inline-note { display: grid; grid-template-columns: auto 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--notes); box-shadow: inset 0 0 0 0.5px var(--hair); font: 400 13.5px/1.4 var(--font); color: var(--ink); }
.inline-note + .inline-note { margin-top: 6px; }
.inline-note .num { font: 500 12px/1 var(--font); color: var(--ink-3); }
.inline-note .entry-ic { padding-top: 0; }
.entry--star.inline-note .t { font-weight: 600; }

/* ---------- Inner pages ---------- */
.page { padding: 52px var(--gutter) 84px; }
.page-head h1 { font-size: clamp(28px, 2.6vw, 38px); max-width: 24ch; }
.page-head .lede { margin-top: 14px; }
.page-section { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--hair); scroll-margin-top: var(--toolbar-h); }
.page-section > h2 + .lede, .page-section > h2 + p { margin-top: 10px; }
.page-body { margin-top: 36px; max-width: 760px; }
.page .actions { margin-top: 28px; }
.lead.page { padding-bottom: 0; }
.body.page { padding-top: 0; }
.page-wait { margin-top: 18px; }

.prose { margin-top: 28px; max-width: 68ch; font: 400 15.5px/1.6 var(--font); color: var(--ink-2); }
.prose h2, .prose h3 { margin: 32px 0 8px; font: 600 17px/1.35 var(--font); letter-spacing: -0.005em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p + p, .prose ul + p, .prose ol + p { margin-top: 12px; }
.prose ol, .prose ul { padding-left: 1.3em; display: grid; gap: 8px; }
.prose li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.prose strong { color: var(--ink); font-weight: 600; }
.download-actions .btn--primary { flex-wrap: wrap; padding-block: 12px; }
.download-actions .amount { white-space: nowrap; }
.download-prose h2 { font: 600 clamp(24px, 2.1vw, 30px)/1.16 var(--font-display); letter-spacing: -0.019em; color: var(--ink); }
.plain-list { list-style: none; margin-top: 24px; max-width: 72ch; display: grid; }
.plain-list li { padding: 13px 0; border-top: 1px solid var(--hair); color: var(--ink-2); }
.plain-list li:last-child { border-bottom: 1px solid var(--hair); }
.ui-note { font: 500 0.95em var(--font); color: var(--ink); }

.notice { margin-top: 24px; padding: 13px 16px; border-radius: 10px; background: var(--chrome); color: var(--ink-2); font: 400 14.5px/1.5 var(--font); max-width: 68ch; }
.notice--ok { background: var(--ok-fill); color: var(--ink); }
.notice--error { background: var(--danger-fill); color: var(--ink); }
.notice--error::before { content: "Problem: "; font-weight: 600; color: var(--danger); }

/* Forms: System Settings fields. */
.form { margin-top: 28px; max-width: 480px; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font: 600 13px/1.2 var(--font); color: var(--ink); }
.field input { height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--chrome); box-shadow: inset 0 0 0 0.5px var(--hair-2); color: var(--ink); font: 400 15px var(--font); transition: box-shadow 0.15s, background-color 0.15s; }
.field input::placeholder { color: var(--ink-3); }
.field input:focus { outline: none; background: var(--window); box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--danger); }
.hint { font: 400 12.5px/1.45 var(--font); color: var(--ink-3); }
.form .actions { margin-top: 4px; }

.key-display { margin-top: 24px; display: flex; align-items: center; gap: 12px; max-width: 640px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--chrome); box-shadow: inset 0 0 0 0.5px var(--hair-2); }
.key-display span { flex: 1; min-width: 0; font: 500 14px/1.4 var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.key-display button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--capsule); box-shadow: var(--capsule-shadow); font: 600 13px var(--font); cursor: pointer; }
.key-display button .ic { width: 14px; height: 14px; color: var(--accent); }

/* Pricing. */
.price-layout { margin-top: 40px; display: grid; gap: 0; border-bottom: 1px solid var(--hair); }
.plan { border-top: 1px solid var(--hair); }
.plan-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding: 22px 0 6px; }
.plan-head h2, .plan-head h3 { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1.25 var(--font-display); letter-spacing: -0.01em; }
.plan-head .price-big .amount { font-size: 30px; }
.plan-body { padding: 8px 0 26px; display: grid; gap: 16px; }
.plan-summary { color: var(--ink-2); max-width: 64ch; }
.includes { list-style: none; display: grid; gap: 9px; }
.includes li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--ink); font-size: 14.5px; }
.includes .ic { color: var(--ok); margin-top: 3px; }
.plan-note { font: 400 13px/1.5 var(--font); color: var(--ink-3); }
.terms-list { margin-top: 24px; border-radius: 12px; box-shadow: 0 0 0 1px var(--hair); overflow: hidden; }
.terms-list > div { display: grid; grid-template-columns: minmax(160px, 0.36fr) minmax(0, 1fr); gap: 20px; padding: 14px 18px; border-top: 1px solid var(--hair); }
.terms-list > div:first-child { border-top: 0; }
.terms-list dt { font-weight: 600; color: var(--ink); }
.terms-list dd { color: var(--ink-2); }
.faq { margin-top: 24px; border-radius: 12px; box-shadow: 0 0 0 1px var(--hair); overflow: hidden; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; font: 600 15px/1.4 var(--font); color: var(--ink); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq summary:hover { background: var(--hover); }
.faq details p { padding: 0 18px 16px; color: var(--ink-2); max-width: 72ch; }

/* The order inspector in the rail. */
.inspector { padding: 22px 20px; display: grid; gap: 16px; align-content: start; overflow-y: auto; }
.inspector h2 { font: 600 15px/1.3 var(--font); letter-spacing: 0; }
.inspector .price-big .amount { font-size: 32px; }
.inspector .includes li { font-size: 13.5px; }
.inspector .btn { width: 100%; }
.inspector .rows { display: grid; border-radius: 10px; box-shadow: 0 0 0 1px var(--hair); background: var(--window); }
.inspector .rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--hair); font-size: 13px; }
.inspector .rows div:first-child { border-top: 0; }
.inspector .rows dt { color: var(--ink-3); }
.inspector .rows dd { color: var(--ink); font-weight: 600; text-align: right; }

/* Features: color identifies the work, paired with a topic icon and heading.
   These aliases follow the existing app-derived light/dark palette; they are
   wayfinding on this page, never exhibit-status indicators. */
.features-page { --feature-prepare: var(--info); --feature-prepare-fill: var(--info-fill); --feature-court: var(--live); --feature-court-fill: var(--live-fill); --feature-recovery: var(--ok); --feature-recovery-fill: var(--ok-fill); }
.feature-tone--prepare { --feature-color: var(--feature-prepare); --feature-fill: var(--feature-prepare-fill); }
.feature-tone--court { --feature-color: var(--feature-court); --feature-fill: var(--feature-court-fill); }
.feature-tone--recovery { --feature-color: var(--feature-recovery); --feature-fill: var(--feature-recovery-fill); }
.feature-tone--personal { --feature-color: var(--accent); --feature-fill: var(--select); }
.feature-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin-top: 32px; }
.feature-jump { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 4px; border-bottom: 1px solid var(--hair); color: var(--ink); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.feature-jump > .ic:first-child { width: 23px; height: 23px; color: var(--feature-color); }
.feature-jump > .ic:last-child { width: 16px; height: 16px; margin-left: auto; color: var(--feature-color); }
.feature-jump:hover { color: var(--feature-color); background: var(--feature-fill); text-decoration: none; }
.features-page .feature-section { margin-top: 56px; padding-top: 0; border-top: 0; }
.feature-heading { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--r-panel); background: var(--feature-fill); color: var(--feature-color); }
.feature-heading > .ic { width: 34px; height: 34px; }
.feature-heading h2 { color: var(--feature-color); max-width: none; }
.feature-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; padding: 4px 4px 0; }
.feature-entry { padding: 24px 0; border-bottom: 1px solid var(--hair); }
.feature-entry h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.feature-entry p { max-width: 70ch; }
.feature-benefit { margin-top: 8px; color: var(--ink); }
.feature-detail { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.feature-section .section-intro { margin: 18px 4px 0; }
.section-intro { margin-top: 10px; color: var(--ink-2); max-width: 70ch; }
.page-section .list-wrap { margin-top: 22px; }
.spec { margin-top: 22px; border-radius: 12px; box-shadow: 0 0 0 1px var(--hair); overflow: hidden; }
.spec > div { display: grid; grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr); gap: 20px; padding: 12px 18px; border-top: 1px solid var(--hair); font-size: 14.5px; }
.spec > div:first-child { border-top: 0; }
.spec dt { color: var(--ink-3); }
.spec dd { color: var(--ink); }

/* Compare. */
.compare th .t { display: block; color: var(--ink); font-size: 13px; }
.compare th .s { display: block; margin-top: 2px; font-weight: 400; white-space: normal; }
.compare th.ours { box-shadow: inset 0 -2px 0 var(--accent); }
.compare td { min-width: 170px; }
.compare td:first-child { min-width: 150px; }
.cell { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
.cell .ic { margin-top: 2px; }
.cell--yes .ic { color: var(--ok); }
.cell--part .ic { color: var(--warn); }
.cell--no .ic { color: var(--ink-3); }

/* Licensing. */
.license-facts { margin-top: 28px; border-radius: 12px; box-shadow: 0 0 0 1px var(--hair); overflow: hidden; max-width: 720px; }
.license-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 13px 18px; border-top: 1px solid var(--hair); }
.license-facts > div:first-child { border-top: 0; }
.license-facts dt { color: var(--ink-3); }
.license-facts dd { color: var(--ink); }
.machines { list-style: none; margin-top: 10px; display: grid; gap: 8px; }
.machines li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--chrome); }
.m-name { display: block; font-weight: 600; }
.m-meta { display: block; font-size: 12.5px; color: var(--ink-3); }
.machines button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--capsule); box-shadow: var(--capsule-shadow); font: 600 12.5px var(--font); color: var(--danger); cursor: pointer; }
.license-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.license-actions form { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1440px) { :root { --gutter: 48px; } }
@media (max-width: 1340px) { :root { --side-w: 232px; --rail-w: 296px; --gutter: 44px; } }

/* The rail folds into the page: the morning's entries follow the hero. */
@media (max-width: 1179px) {
  .content.has-rail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "rail" "body"; }
  .rail { margin: 44px var(--gutter) 0; border: 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--hair); overflow: hidden; }
  .rail-inner { position: static; height: auto; }
  .rail .entry:not([data-at="top"]) { display: none; }
  .inline-notes { display: block; }
  .entries { -webkit-mask-image: none; mask-image: none; }
  .rail .entries { overflow: visible; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail .entry { border-bottom: 0; border-top: 1px solid var(--hair); }
  .rail .entry:nth-child(even) { border-left: 1px solid var(--hair); }
  .rail .entry.is-latest { background: transparent; }
  .rail-foot { display: none; }
  .hero + .rail + .body .section:first-child, .rail + .body .section:first-child { margin-top: 64px; }
  .inspector { padding: 20px; }
  .tb-center { display: none; }
  .tb-actions, .tb-center + .tb-actions { margin-left: auto; }
  .statusbar .hide-narrow { display: none; }
}

@media (max-width: 1023px) {
  .claims { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .claims--rows .claim { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .claims--rows .claim dt { flex-direction: row; justify-content: space-between; }
  .split, .split--left { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split--left .sec-figs { order: 0; }
  .close-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* The sidebar becomes a sheet. */
@media (max-width: 899px) {
  :root { --desk-gap: 12px; --gutter: 32px; }
  .window { grid-template-columns: minmax(0, 1fr); }
  .side-link, .side-sub .side-link, .side-group > summary { min-height: 44px; }
  .tb-menu { width: 44px; height: 44px; flex: none; }
  .tb-buy, .tb-brand, .theme-toggle { min-height: 44px; }
  .theme-toggle { min-width: 44px; }
  .side-foot a, .colophon-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); height: 100dvh; padding: 8px; z-index: 60; transform: translateX(-104%); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0s linear 0.3s; }
  .sidebar-open .sidebar { transform: none; visibility: visible; transition: transform 0.3s var(--ease); }
  .side-panel { box-shadow: var(--window-shadow); }
  .lights { display: none; }
  .side-scroll { padding-top: 10px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(12, 16, 21, 0.34); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
  .sidebar-open .scrim { opacity: 1; pointer-events: auto; }
  .tb-menu { display: inline-flex; }
  .side-foot .theme-toggle { display: inline-flex; }
  .toolbar { padding: 0 12px; gap: 10px; }
  .tb-title { display: none; }
  .tb-brand { display: inline-flex; }
  .statusbar .hide-narrow { display: none; }
}

/* A phone: the window is the screen. */
@media (max-width: 759px) {
  :root { --desk-gap: 0px; --gutter: 20px; --toolbar-h: 54px; }
  body, html { background: var(--window); }
  .desk { padding: 0; }
  .window { border-radius: 0; box-shadow: none; min-height: 100vh; }
  .statusbar { display: none; }
  .tb-try { display: none; }
  .hero { padding-top: 32px; }
  .brand img { display: none; }
  .is-home .tb-brand .lettering { display: none; }
  .brand-text .lettering { height: 21px; }
  .hero h1 { margin-top: 26px; font-size: clamp(30px, 8.4vw, 36px); }
  .hero .actions .btn, .page .actions .btn { flex: 1 1 100%; }
  .hero-shot { margin-top: 32px; }
  .rail { margin: 36px var(--gutter) 0; }
  .rail .entries { grid-template-columns: minmax(0, 1fr); }
  .rail .entry:nth-child(even) { border-left: 0; }
  .section { padding: 56px var(--gutter) 60px; }
  .hero + .body .section:first-child, .rail + .body .section:first-child { margin-top: 48px; }
  .lede { font-size: 16px; }
  .player { border-radius: 10px; }
  .player-chip { height: 40px; font-size: 13px; }
  .group .row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; }
  .group .row--price { gap: 8px; }
  .close { padding: 60px var(--gutter) 52px; }
  .page { padding: 32px var(--gutter) 60px; }
  .terms-list > div, .spec > div, .license-facts > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .feature-index, .feature-entries { grid-template-columns: minmax(0, 1fr); }
  .feature-heading { padding: 20px 18px; gap: 14px; }
  .feature-heading > .ic { width: 28px; height: 28px; }
  .feature-entry { padding: 20px 0; }
  .list td, .list th { padding-left: 12px; padding-right: 12px; }
  .lifetime { font-size: 12.5px; }
  .lifetime th, .lifetime th.num { white-space: normal; vertical-align: bottom; font-size: 12px; }
  .lifetime th, .lifetime td { padding: 10px 5px; }
  .lifetime th:first-child, .lifetime td:first-child { padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skip, .side-group > summary::after, .player-chip, .faq summary::after,
  .sidebar, .sidebar-open .sidebar, .scrim { transition: none; }
  .rail.is-live .entry.is-arriving { animation: none; }
}

@media print {
  .sidebar, .toolbar, .statusbar, .rail, .player-start, .scrim { display: none !important; }
  .desk { padding: 0; }
  .window { display: block; box-shadow: none; border-radius: 0; }
}
