/* Shared by the round 2 directions: faces, the app's own colours, reset, and what a browser draws by itself. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/BricolageGrotesque.woff2?v=a79fdb52") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/HankenGrotesk.woff2?v=e9201edd") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono-Regular.woff2?v=8a06596f") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: linear(0, 0.36 9%, 0.74 18%, 0.98 27%, 1.08 36%, 1.09 44%, 1.04 56%, 1 70%, 0.995 84%, 1);
  --gutter: clamp(20px, 4.4vw, 64px);
  --wide: 1360px;
}
/* Trek's Paper by day and Night after dark, following the system. The thread is the window's white
   (--win); the sidebar and the closing floor are its tint (--bg). Ember is kept for the one thing that
   waits on the visitor: the download card and its button. */
:root { --bg: #F4F6FA; --win: #FFFFFF; --surface: #EDF0F6; --raised: #FFFFFF; --bd: #E1E6EE; --bd-2: #CDD5E1; --ink: #171B24; --ink-2: #566078; --ember: #EE5A24; --ember-hover: #F26A37; --ember-ink: #B73A0B; --on-ember: #1F1714; --work: #2563C9; --done: #177D4E; --shade: 23 27 36; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0E1522; --win: #0A101C; --surface: #172033; --raised: #1A2438; --bd: #223049; --bd-2: #33456A; --ink: #E3E8F2; --ink-2: #9AA6BD; --ember: #FF7A3D; --ember-hover: #FF8A52; --ember-ink: #FF8F5A; --on-ember: #1D1A2C; --work: #7DB3FF; --done: #45D394; --shade: 0 0 0; color-scheme: dark; }
}
body { background: var(--win); color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 84px; scrollbar-color: color-mix(in srgb, var(--ink) 30%, transparent) transparent; }
body { margin: 0; font: 400 17px/1.55 var(--text); font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, dt, figure, fieldset, pre { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; font-weight: 660; }
p, dd, li { text-wrap: pretty; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, kbd, pre { font-family: var(--mono); }
::selection { background: color-mix(in srgb, var(--work) 28%, transparent); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite .stroke, .stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lockup { display: inline-flex; align-items: center; gap: 9px; font: 700 26px/1 var(--display); letter-spacing: -0.035em; }
.lockup .mark { width: 26px; height: 26px; fill: currentColor; }
.tag { font: 600 11.5px/1 var(--text); letter-spacing: 0.01em; padding: 3px 7px; border-radius: 5px; margin-left: 6px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--bd-2); color: var(--ink-2); vertical-align: 1px; }

/* A text link's underline is drawn from the left when the pointer arrives and leaves to the right. */
.text-link { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat, linear-gradient(color-mix(in srgb, currentColor 30%, transparent), color-mix(in srgb, currentColor 30%, transparent)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
@media (hover: hover) {
  .text-link { background-size: 0 1px, 100% 1px; background-position: 100% 100%, 0 100%; transition: background-size 320ms var(--out); }
  .text-link:hover { background-size: 100% 1px, 100% 1px; background-position: 0 100%, 0 100%; }
}
/* "Read more" links: the arrow leaves to the right and comes back in from the left. */
.more-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.more-link .go { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
@media (hover: hover) {
  .more-link:hover .go { animation: go-round 520ms var(--out); }
}
@keyframes go-round { 0% { transform: none; opacity: 1; } 45% { transform: translateX(12px); opacity: 0; } 46% { transform: translateX(-12px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Things that arrive as they are scrolled to. Visible by default; script adds .is-armed first. */
.is-armed [data-rise] { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.is-armed [data-rise].is-in { opacity: 1; transform: none; filter: none; transition: opacity 700ms var(--out), transform 900ms var(--out), filter 700ms var(--out); transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .is-armed [data-rise] { opacity: 1; transform: none; filter: none; }
}

/* What the three directions share under their first screens: the bar, the sections, the closing
   page and the compare page. Each direction's own sheet sets its first screen and its accents. */
:root { interpolate-size: allow-keywords; }
.page { min-height: 100vh; }
/* ---- sections ---- */
.sec { max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(76px, 9vw, 136px) var(--gutter) 0; }
.say { font-family: var(--display); font-weight: 680; text-wrap: balance; }
.say, .doc-sec h2, .doc-also h2 { font-size: clamp(32px, 3.7vw, 54px); line-height: 1.03; letter-spacing: -0.032em; }
.body { margin-top: 18px; max-width: 56ch; font-size: 18.5px; color: var(--ink-2); }

.spot { display: grid; gap: clamp(28px, 3.4vw, 44px); }
.crop img { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px var(--bd-2), 0 24px 60px -24px rgb(var(--shade) / 0.3); }
.crop-wide img { max-width: 1260px; }
.sub { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 894px); gap: 16px; }
.sub-cap { max-width: 60ch; color: var(--ink-2); }
.sub-cap h3 { margin-bottom: 6px; font: 640 21px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.crop-mid img { max-width: 930px; }

.agents { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.agents-lists { display: grid; gap: 36px; }
.agents-lists h3 { font: 600 14.5px/1 var(--text); color: var(--ink-2); margin-bottom: 12px; }
.names { display: flex; flex-wrap: wrap; gap: 2px 0; margin-left: -10px; }
.names li { padding: 3px 10px; font: 600 clamp(19px, 1.75vw, 25px)/1.3 var(--display); letter-spacing: -0.02em; color: var(--ink); }

.every-head { margin-bottom: clamp(24px, 3vw, 40px); }
details.row, details.qa { border-top: 1px solid var(--bd-2); }
details.row:last-child, details.qa:last-child { border-bottom: 1px solid var(--bd-2); }
details summary { display: flex; align-items: center; gap: 14px; padding: 20px 0; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary h3 { font-size: clamp(21px, 2vw, 27px); letter-spacing: -0.022em; }
details.row .n { font: 550 15px/1 var(--text); color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* A row's plus: the upright stroke leans when the pointer arrives and lies down when the row opens. */
.pm { position: relative; flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--ink-2); }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 420ms var(--spring); }
.pm::after { transform: rotate(90deg); }
@media (hover: hover) {
  summary:hover .pm { color: var(--ink); }
  summary:hover .pm::after { transform: rotate(58deg); }
}
details[open] > summary .pm::after { transform: rotate(0deg); }
details::details-content { block-size: 0; overflow: clip; transition: block-size 420ms var(--out), content-visibility 420ms allow-discrete; }
details[open]::details-content { block-size: auto; }
.run { columns: 3 260px; column-gap: 40px; padding: 2px 0 28px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.run li { break-inside: avoid; padding: 5px 0; }
details.qa p { padding: 0 0 26px; max-width: 64ch; color: var(--ink-2); font-size: 18px; }

/* What stays on your computer gets a ground of its own: the one tinted band on the page. */
.private { max-width: none; margin-top: clamp(76px, 9vw, 136px); padding-block: clamp(56px, 6.4vw, 96px); background: var(--surface); }
.private > * { max-width: var(--wide); margin-inline: auto; }
.faq-list { margin-top: clamp(24px, 3vw, 40px); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3.4vw, 56px); margin-top: clamp(28px, 3.4vw, 44px); }
.facts > div { position: relative; padding-top: 20px; }
/* Ruled blocks arrive rule first: the line is drawn from the left, then the words settle under it. */
.is-armed .facts > div[data-rise] { opacity: 1; transform: none; filter: none; }
.is-armed .facts > div[data-rise]::before { transform: scaleX(0); }
.is-armed .facts > div[data-rise] > * { opacity: 0; transform: translateY(10px); }
.is-armed .facts > div[data-rise].is-in::before { transform: none; transition: transform 900ms var(--out) calc(var(--i, 0) * 110ms); }
.is-armed .facts > div[data-rise].is-in > * { opacity: 1; transform: none; transition: opacity 600ms var(--out), transform 800ms var(--out); transition-delay: calc(var(--i, 0) * 110ms + 240ms); }
/* A capture arrives the way a window opens: from a touch smaller, with no blur over its words. */
.is-armed figure[data-rise]:not(.is-in), .is-armed .sub[data-rise]:not(.is-in) { transform: scale(0.972); filter: none; }
figure[data-rise], .sub[data-rise] { transform-origin: 50% 0; }
/* The names come in one after the other, along their lines. */
.is-armed [data-names] li { opacity: 0; transform: translateY(6px); }
.is-armed .is-in [data-names] li { opacity: 1; transform: none; transition: opacity 420ms var(--out), transform 520ms var(--out); transition-delay: calc(var(--n, 0) * 22ms + 120ms); }
.facts dt { font: 640 21px/1.2 var(--display); letter-spacing: -0.02em; }
.facts dd { margin-top: 8px; color: var(--ink-2); }
.private-more { margin-top: 28px; font-weight: 600; }

/* Compare rows: the row's rule is drawn in ink from the left, and the arrow goes round. */
.vs-list { margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--bd-2); }
.vs-list a { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 24px; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--bd-2); }
.vs-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 520ms var(--out); }
.vs-name { font: 650 clamp(22px, 2.2vw, 30px)/1.1 var(--display); letter-spacing: -0.025em; }
.vs-line { color: var(--ink-2); }
.vs-list .go { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
@media (hover: hover) {
  .vs-list a:hover::after { transform: scaleX(1); }
  .vs-list a:hover .go { animation: go-round 520ms var(--out); }
}

@media (max-width: 900px) {
  .agents { grid-template-columns: minmax(0, 1fr); }
  .facts, .sub { grid-template-columns: minmax(0, 1fr); }
  .facts > div { padding-bottom: 22px; }
  .vs-list a { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 16px; }
  .vs-line { grid-column: 1; grid-row: 2; }
  .vs-list .go { grid-row: 1 / 3; grid-column: 2; }
}
/* A wide capture on a phone: shown at a size its words can be read at, scrolled sideways. */
@media (max-width: 720px) {
  .crop { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  /* More of the picture lies to the right: its edge fades, and a line under it says so. */
  .crop { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
  .crop::after { content: "Swipe the picture to see the rest"; display: block; position: sticky; left: 0; width: max-content; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
  /* A table too wide for a phone: each row becomes its question and the two answers, named. */
  .table { overflow: visible; margin-inline: 0; padding-inline: 0; }
  .table table { min-width: 0; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table tbody tr { display: grid; gap: 8px; padding: 16px 0 18px; border-bottom: 1px solid var(--bd-2); }
  .table tbody th, .table tbody td { display: block; width: auto; padding: 0; border: 0; }
  .table tbody th { font: 650 18px/1.3 var(--display); letter-spacing: -0.015em; color: var(--ink); }
  .table td:nth-child(2), .table td:nth-child(3) { width: auto; }
  .table tbody td::before { content: attr(data-h); display: block; font: 600 13.5px/1.4 var(--text); color: var(--ink-2); }
  .crop img { width: auto; max-width: none; height: 190px; box-shadow: 0 0 0 1px var(--bd-2); }
  .crop-mid img { width: auto; height: 300px; }
  .crop-pr img { width: auto; height: 200px; }
  .crop-menu { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .crop-menu::after { content: none; }
  .crop-menu img { height: auto; width: 253px; }
  .crop-term img { width: auto; height: 200px; }
  .crop-sub img { width: auto; height: 250px; }
  .crop-win img { width: auto; height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  details::details-content { transition: none; }
}

/* The download selector. Four radio keys (macOS, Windows, Linux, Command line) and one pane each.
   The keys are real radio buttons, so the switch works with no script (:has), arrows move along
   them, and a screen reader hears a radio group. Script only picks the visitor's system, slides
   the thumb and fills in the latest release's files. Each direction skins it; this is the frame. */
.get { display: grid; gap: 14px; justify-items: start; max-width: 100%; }
.get-os { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: inset 0 0 0 1px var(--bd); }
.os-k { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; border-radius: 10px; font: 550 15px/1 var(--text); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.os-k input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.os-k .os { width: 17px; height: 17px; fill: currentColor; flex: none; transform-origin: 50% 70%; }
.os-k:has(:checked) { color: var(--ink); background: var(--raised); box-shadow: 0 1px 2px rgb(var(--shade) / 0.12), 0 0 0 1px var(--bd); }
.os-k:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
/* With script the selected key's plate is one thumb that slides between them. */
.get.is-live .os-k:has(:checked) { background: none; box-shadow: none; }
.get.is-live .get-os::before { content: ""; position: absolute; left: 0; top: 4px; height: 40px; width: var(--tw, 0); transform: translateX(var(--tx, 0)); border-radius: 10px; background: var(--raised); box-shadow: 0 1px 2px rgb(var(--shade) / 0.12), 0 0 0 1px var(--bd); transition: transform 420ms var(--spring), width 420ms var(--spring); }
/* Each key's glyph answers the pointer in its own way. */
@media (hover: hover) {
  .os-k:hover { color: var(--ink); transition: color 200ms var(--out); }
  .os-k:hover .os { animation: 520ms var(--out); }
  .os-k:has([value="mac"]):hover .os { animation-name: os-rock; }
  .os-k:has([value="win"]):hover .os { animation-name: os-turn; }
  .os-k:has([value="linux"]):hover .os { animation-name: os-hop; }
  .os-k:has([value="cli"]):hover .os { animation-name: os-type; }
}
@keyframes os-rock { 30% { transform: rotate(-14deg); } 65% { transform: rotate(8deg); } }
@keyframes os-turn { 50% { transform: perspective(60px) rotateY(-42deg) scale(1.08); } }
@keyframes os-hop { 35% { transform: translateY(-5px); } 60% { transform: translateY(0) scaleY(0.9); } }
@keyframes os-type { 30% { transform: translateX(3px); } 60% { transform: translateX(-1px); } }

/* Only the chosen pane takes room, so the block is as tall as what it offers. */
.get-panes { position: relative; display: grid; width: 100%; }
.get-pane { position: absolute; left: 0; top: 0; width: 100%; display: grid; align-content: start; gap: 12px; visibility: hidden; opacity: 0; transform: translateY(6px); filter: blur(4px); transition: opacity 260ms var(--out), transform 420ms var(--out), filter 260ms var(--out), visibility 0s 260ms; }
.get:has([value="mac"]:checked) [data-os="mac"],
.get:has([value="win"]:checked) [data-os="win"],
.get:has([value="linux"]:checked) [data-os="linux"],
.get:has([value="cli"]:checked) [data-os="cli"] { position: relative; visibility: visible; opacity: 1; transform: none; filter: none; transition-delay: 60ms, 60ms, 60ms, 0s; }
.get-main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.btn-get { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 24px 0 20px; border-radius: 14px; background: var(--ember); color: var(--on-ember); font: 650 17px/1 var(--text); white-space: nowrap; transition: transform 160ms var(--out); }
.btn-get svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.btn-get:active { transform: scale(0.97); }
/* The main button: its arrow drops into the tray and a new one follows it down. */
@media (hover: hover) {
  .btn-get:hover { background: var(--ember-hover); transition: background-color 160ms var(--out), transform 160ms var(--out); }
  .btn-get:hover .arr { animation: arr-drop 620ms var(--out); }
  .btn-get:hover .tray { animation: tray-take 620ms var(--out); transform-origin: 12px 20px; }
}
@keyframes arr-drop { 0% { transform: none; opacity: 1; } 38% { transform: translateY(6px); opacity: 0; } 39% { transform: translateY(-9px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes tray-take { 36% { transform: none; } 50% { transform: translateY(1.5px) scaleX(1.12); } 100% { transform: none; } }
.get-meta { display: grid; gap: 1px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.get-meta .get-chip { font-weight: 500; color: var(--ink); }
.get-meta a, .get-files a { color: var(--ink); }
.get-note { font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 52ch; }
.get-files { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14.5px; color: var(--ink-2); }
/* Command line: each command on its own row, with its copy button. */
.get-cmds { display: grid; gap: 6px; width: 100%; max-width: 560px; }
.get-cmds li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 34px; align-items: center; gap: 0 10px; min-height: 38px; padding: 6px 4px 6px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); box-shadow: inset 0 0 0 1px var(--bd); }
.get-cmds .k { font: 550 13px/1 var(--text); color: var(--ink-2); }
/* A command is shown whole: it wraps before any of it is hidden. */
.get-cmds code { display: block; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; text-wrap: balance; }
.copy { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--ink-2); }
.copy svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy .c2 { stroke-dasharray: 18; stroke-dashoffset: 18; }
.copy.is-done { color: var(--done); }
.copy.is-done .c1 { opacity: 0; transition: opacity 120ms; }
.copy.is-done .c2 { stroke-dashoffset: 0; transition: stroke-dashoffset 320ms var(--out) 80ms; }
/* The copy button: the front sheet lifts off the back one. */
@media (hover: hover) {
  .copy:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); transition: background-color 160ms var(--out), color 160ms var(--out); }
  .copy rect.c1 { transition: transform 260ms var(--spring); }
  .copy:hover rect.c1 { transform: translate(1.5px, 1.5px); }
}
.get-rel { font-size: 14px; color: var(--ink-2); }
.get-phone { display: none; font-size: 14.5px; color: var(--ink-2); }

@media (max-width: 720px) {
  .get { justify-items: stretch; }
  /* Four keys of one width, each a glyph over its name, tall enough for a thumb. */
  .get-os { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .os-k { flex-direction: column; justify-content: center; gap: 6px; height: 60px; padding: 0 2px; font-size: 12.5px; }
  .get.is-live .get-os::before { height: 60px; }
  .btn-get { width: 100%; justify-content: center; }
  .get-cmds li { grid-template-columns: minmax(0, 1fr) 34px; padding: 7px 4px 7px 12px; row-gap: 2px; }
  .get-cmds .k { grid-column: 1 / -1; }
  .get-cmds .copy { grid-row: 2; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .get-pane { transform: none; filter: none; }
}

/* A visitor on another system never sees the Mac button first: the block waits a moment for the
   script that knows, and shows as written if it does not come. */
html.js[data-os0="win"] .get:not(.is-set) .get-top, html.js[data-os0="win"] .get:not(.is-set) .get-panes,
html.js[data-os0="linux"] .get:not(.is-set) .get-top, html.js[data-os0="linux"] .get:not(.is-set) .get-panes { visibility: hidden; animation: get-safe 1ms 2.4s forwards; }
@keyframes get-safe { to { visibility: visible; } }
/* On a phone the ember action is the one a phone can do; the installers stay, quieter, to read. */
.get-share[hidden] { display: none; }
.get-share { order: -1; width: 100%; justify-content: center; }
.get.is-phone .get-phone, [data-phone] .get .get-phone { order: -2; display: block; }
/* pre.js knows a phone before the first paint, so the card is laid out as a phone's from the start. */
[data-phone] .get-share[hidden] { display: inline-flex; }
@media (max-width: 720px) and (pointer: coarse) { html:not(.js) .get-phone { display: block; } }
.get.is-phone .btn-get[data-primary], [data-phone] .get .btn-get[data-primary] { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--bd-2); }

/* The explorable Trek window: real captures, one per state, and the places in them that answer a
   click. Without script it is one picture and its caption. */
.tw { display: grid; gap: 14px; width: min(100%, 1360px); margin-inline: auto; }
.tw-frame { position: relative; aspect-ratio: 1360 / 850; border-radius: clamp(8px, 1.25vw, 17px); background: var(--win); box-shadow: 0 0 0 1px var(--bd-2), 0 2px 6px rgb(var(--shade) / 0.06), 0 34px 80px -20px rgb(var(--shade) / 0.3); isolation: isolate; container-type: inline-size; }
.tw[data-shot="night"] .tw-frame { background: #0A101C; box-shadow: 0 0 0 1px #2A3A58, 0 34px 90px -20px rgb(0 0 0 / 0.7); }
.tw[data-shot="paper"] .tw-frame { background: #FFFFFF; }
.tw-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; opacity: 0; transition: opacity 280ms var(--out); }
.tw-img.is-on { opacity: 1; z-index: 1; }
.tw-img.is-under { opacity: 1; z-index: 0; }
.tw.is-swap .tw-img { transition: none; }
.tw.is-swapping .tw-frame { visibility: hidden; }
/* While the faint window waits behind the opening, a change of system theme hides it in the same
   frame as the page turns, until script has the other theme's picture ready (no slab of the old one). */
@media (prefers-color-scheme: light) { :root.op .tw[data-shot="night"] .tw-frame { visibility: hidden; } }
@media (prefers-color-scheme: dark) { :root.op .tw[data-shot="paper"] .tw-frame { visibility: hidden; } }
.tw-spots { position: absolute; inset: 0; z-index: 2; }
/* A place that answers: laid out in the window's own points, as a share of its width and height. */
.tw-spot { position: absolute; left: calc(var(--x) / 1360 * 100%); top: calc(var(--y) / 850 * 100%); width: calc(var(--w) / 1360 * 100%); height: calc(var(--h) / 850 * 100%); border-radius: calc(6 / 1360 * 100cqw); transition: transform 120ms var(--out); }
.tw-spot:focus-visible { outline: 2px solid var(--work); outline-offset: 1px; }
@media (hover: hover) {
  /* A row answers as it does in the app: a soft plate under the pointer. */
  .tw-spot:hover { background: rgb(95 104 128 / 0.13); transition: background-color 120ms var(--out), box-shadow 160ms var(--out), transform 120ms var(--out); }
  .tw[data-shot="night"] .tw-spot:hover { background: rgb(138 151 176 / 0.14); }
  .tw-spot[data-key="allow"]:hover { background: rgb(255 255 255 / 0.22); box-shadow: 0 0 0 2px rgb(37 99 201 / 0.45); }
}
.tw-spot:active { transform: scale(0.985); }
.tw-spot[data-key="allow"]:active { transform: translateY(1px) scale(0.97); background: rgb(31 23 20 / 0.16); }
/* Before the first click, the waiting thread's row breathes once in a while. */
.tw.is-fresh .tw-spot[data-nudge]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--work); opacity: 0; animation: tw-nudge 3.6s var(--out) 1.4s 3; }
@keyframes tw-nudge { 0%, 62%, 100% { opacity: 0; transform: scale(1); } 70% { opacity: 0.9; transform: scale(1); } 92% { opacity: 0; transform: scale(1.04, 1.18); } }
.tw-ring { position: absolute; z-index: 3; left: var(--rx, 50%); top: var(--ry, 50%); width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ring, rgb(23 27 36 / 0.55)); opacity: 0; pointer-events: none; }
.tw[data-shot="night"] .tw-ring { --ring: rgb(227 232 242 / 0.7); }
.tw-ring.is-go { animation: tw-ring 520ms var(--out); }
@keyframes tw-ring { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.5); } }

/* The caption and its tools sit above the window, in view while you click. */
.tw:not(.tw-stage) .tw-cap { order: -1; }
.tw-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 34px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.tw-say { min-width: 0; }
.tw-say [data-tw-say] { color: var(--ink); }
.tw-say.is-new [data-tw-say] { animation: tw-say 520ms var(--out); }
@keyframes tw-say { 0% { opacity: 0; filter: blur(5px); transform: translateY(4px); } 100% { opacity: 1; filter: none; transform: none; } }
.tw-tools { display: inline-flex; gap: 8px; margin-left: auto; }
.tw-tool { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; font: 550 14px/1 var(--text); color: var(--ink); box-shadow: inset 0 0 0 1px var(--bd-2); }
.tw-tool[hidden] { display: none; }
.tw-tool:active { transform: scale(0.97); }
/* The theme switch: a small sun that turns over to its dark side. */
.tw-sw { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, #F4F6FA 50%, #0A101C 50%); box-shadow: 0 0 0 1px var(--bd-2); transition: transform 520ms var(--spring); }
.tw-tool[aria-pressed="true"] .tw-sw { transform: rotate(180deg); }
@media (hover: hover) {
  .tw-tool:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); transition: background-color 160ms var(--out); }
  .tw-tool:hover .tw-sw { transform: rotate(35deg); }
  .tw-tool[aria-pressed="true"]:hover .tw-sw { transform: rotate(215deg); }
}
.tw:not(.is-live) .tw-tools, .tw:not(.is-live) .tw-hint { display: none; }
.tw-list { display: none; }

/* A phone can't show a 1360 point window whole and readable. It shows the window's top part at
   the app's own size, the Inbox first, and scrolls sideways inside the frame to the thread; the
   faded edges say there is more. Plain CSS, so it is the same with script off. */
@media (max-width: 720px) {
  .tw-frame { aspect-ratio: auto; height: 540px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent), linear-gradient(#000 calc(100% - 56px), transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent), linear-gradient(#000 calc(100% - 56px), transparent); mask-composite: intersect; }
  .tw-frame::-webkit-scrollbar { display: none; }
  .tw-img, .tw-spots { right: auto; bottom: auto; width: 1360px; max-width: none; height: 850px; object-fit: cover; border-radius: 0; }
  .tw-spot { border-radius: 6px; }
  .tw-tools { margin-left: 0; }
  .tw-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .tw-chip { height: 44px; padding: 0 14px; border-radius: 12px; font: 550 15px/1 var(--text); color: var(--ink); box-shadow: inset 0 0 0 1px var(--bd-2); }
  .tw-chip:active { transform: scale(0.97); background: color-mix(in srgb, var(--ink) 7%, transparent); }
  .tw-chip.is-allow { background: var(--ink); color: var(--win); box-shadow: none; font-weight: 650; }
  .tw-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tw.is-fresh .tw-spot[data-nudge]::after { animation: none; opacity: 0.8; }
}

/* Direction "ask": the page is a thread in Trek. The visitor's question is the prompt, the headline
   is the answer, and the download is the thing in the Inbox that waits on you, laid out as Trek lays
   out an approval. The sidebar lists the questions the page answers and marks the one on screen. */
.page-ask { display: grid; grid-template-columns: clamp(216px, 17vw, 286px) minmax(0, 1fr); align-items: start; }
/* The thread is the page itself, white as Trek's window; the sidebar is the tinted part. */
.thread { container: thread / inline-size; min-width: 0; min-height: 100vh; }
.thread main { max-width: 1440px; margin-inline: auto; }
.side-links { display: none; }

/* ---- the sidebar ---- */
.side-col { align-self: stretch; background: var(--bg); box-shadow: 1px 0 0 var(--bd); }
.side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 20px; height: 100vh; height: 100svh; padding: 20px 12px 18px; overflow-y: auto; scrollbar-width: none; }
.side .lockup { padding: 2px 10px; font-size: 24px; }
.side .lockup .mark { width: 24px; height: 24px; }
.side-nav { display: grid; gap: 6px; }
.side-h { display: flex; align-items: center; gap: 8px; padding: 4px 10px; font: 600 13.5px/1.3 var(--text); color: var(--ink-2); }
.side-h svg { width: 16px; height: 16px; }
.side-h span { margin-left: auto; font-variant-numeric: tabular-nums; }
.side-h2 { margin-top: 16px; }
/* The one thing that needs you, as an Inbox row. */
.side-need { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 1px 8px; padding: 9px 10px 10px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6.5%, transparent); }
.side-need span { font: 600 15px/1.3 var(--text); }
.side-need small { grid-column: 2; font: 550 13.5px/1.3 var(--text); color: var(--ember-ink); }
.side-need .p-dot { position: relative; display: block; width: 8px; height: 8px; margin-left: 3px; border-radius: 50%; background: var(--ember); }
.side-need .p-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--ember); opacity: 0; }
@media (hover: hover) {
  /* The waiting row: its dot rings out once, like a tap on the shoulder. */
  .side-need:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); transition: background-color 160ms var(--out); }
  .side-need:hover .p-dot::after { animation: side-ping 900ms var(--out); }
}
.side-need.is-ping .p-dot::after { animation: side-ping 900ms var(--out) 2; }
@keyframes side-ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }
.side-need.is-done .p-dot { background: var(--done); }
.side-need.is-done small { color: var(--done); }
.side-qs { position: relative; display: grid; gap: 1px; isolation: isolate; }
.side-qs a { display: block; text-wrap: pretty; padding: 7px 10px; border-radius: 8px; font: 450 14.5px/1.35 var(--text); color: var(--ink-2); }
.side-qs a.is-on { color: var(--ink); font-weight: 600; }
.side-qs:not(.is-live) a.is-on { background: color-mix(in srgb, var(--ink) 8%, transparent); }
@media (hover: hover) { .side-qs a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 4.5%, transparent); transition: color 160ms var(--out), background-color 160ms var(--out); } }
/* The selection plate slides from one question to the next as the page moves. */
.side-thumb { position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: var(--th, 0); transform: translateY(var(--ty, 0)); border-radius: 8px; background: color-mix(in srgb, var(--ink) 8%, transparent); opacity: 0; transition: transform 520ms var(--spring), height 320ms var(--out), opacity 200ms; }
.side-qs.is-live .side-thumb { opacity: 1; }
.side-gh { margin: auto 10px 0; align-self: start; font-size: 14.5px; color: var(--ink-2); }

/* ---- the thread ---- */
.d-ask .hero { container: askhero / inline-size; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 468px); column-gap: clamp(28px, 3.4vw, 52px); align-items: start; padding: clamp(18px, 3.4vh, 36px) clamp(24px, 5vw, 72px) 0; }
.d-ask .hero > .q-first { margin-bottom: clamp(14px, 2.4vh, 28px); }
.d-ask .hero > .q, .d-ask .hero > .answer, .d-ask .hero > .lede { grid-column: 1; }
.d-ask .hero > .q { grid-column: 1 / -1; }
.d-ask .hero > .ask-card { grid-column: 2; grid-row: 2 / 5; margin-top: 6px; }
.d-ask .agents > .q, .d-ask .spot > .q, .d-ask .wt > .q { grid-column: 1 / -1; }
.d-ask .sec, .d-ask .doc { padding-inline: clamp(24px, 5vw, 72px); max-width: none; margin-inline: 0; }
.d-ask .q { display: block; width: fit-content; max-width: min(100%, 34em); margin: 0 0 clamp(18px, 2.2vw, 30px) auto; padding: 11px 18px 12px; border-radius: 18px 18px 6px 18px; background: var(--surface); font: 500 clamp(16.5px, 1.3vw, 19px)/1.4 var(--text); letter-spacing: 0; color: var(--ink); text-wrap: balance; transform-origin: 100% 100%; }
.is-armed .d-ask .q:not(.q-first) { opacity: 0; transform: translateY(10px) scale(0.92); }
.is-armed .d-ask .q.is-in { opacity: 1; transform: none; transition: opacity 320ms var(--out), transform 620ms var(--spring); }
.d-ask [data-rise] { --lag: 180ms; }
.is-armed .d-ask [data-rise].is-in { transition-delay: calc(var(--lag) + var(--i, 0) * 70ms); }
/* The answer is always its three lines, sized from the room its column has beside the card. */
.answer { font: 700 clamp(40px, calc((100cqw - 468px - 3.4vw) / 6.45), 80px)/0.97 var(--display); letter-spacing: -0.032em; }
.answer .w { display: block; white-space: nowrap; }
.d-ask .hero .lede { margin-top: 22px; font-size: clamp(17.5px, 1.45vw, 20.5px); color: var(--ink-2); max-width: 46ch; }

/* The download, as the thing in the Inbox that waits on you: the same row the sidebar shows, opened. */
.ask-card { display: grid; gap: 14px; width: 100%; max-width: 468px; padding: 15px 18px 18px; border-radius: 16px; background: var(--win); box-shadow: 0 0 0 1px var(--bd-2), 0 1px 2px rgb(var(--shade) / 0.05), 0 26px 60px -34px rgb(var(--shade) / 0.34); }
.ask-card-h { display: flex; align-items: center; gap: 9px; font: 500 15px/1.3 var(--text); }
.ask-card-h b { font: 660 19px/1.2 var(--display); letter-spacing: -0.02em; }
.ask-card-h span { margin-left: auto; font-weight: 580; color: var(--ember-ink); }
.ask-card-h .p-dot { position: relative; flex: none; width: 9px; height: 9px; margin: 0 4px 0 3px; border-radius: 50%; background: var(--ember); }
.ask-card-h .p-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--ember); animation: side-ping 2.6s var(--out) 3; }
/* Inside the card the keys lie flat on it: no tray inside a tray. */
.ask-card .get-os { background: none; box-shadow: none; padding: 0; gap: 4px; }
.ask-card .get.is-live .get-os::before { top: 0; }
.ask-card .os-k { height: 38px; padding: 0 10px; gap: 7px; font-size: 14.5px; }
.ask-card .os-k:not(:has(:checked)) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); }
.ask-card .get.is-live .get-os::before { height: 38px; background: color-mix(in srgb, var(--ink) 9%, var(--win)); box-shadow: none; }
.ask-card .os-k:has(:checked) { background: color-mix(in srgb, var(--ink) 9%, var(--win)); box-shadow: none; }
.ask-card .btn-get { width: 100%; justify-content: center; }
.ask-card .get-main { display: grid; gap: 10px; }
.ask-card .get-cmds li { grid-template-columns: minmax(0, 1fr) 34px; row-gap: 1px; }
.ask-card .get-cmds .k { grid-column: 1 / -1; }
.ask-card .get-cmds .copy { grid-row: 2; grid-column: 2; }
.ask-card .get-rel { margin-top: -4px; }
.ask-card .get-panes { min-width: 0; }
.is-done ~ * .ask-card-h span, .ask-card.is-done .ask-card-h span { color: var(--done); }
.ask-card.is-done .ask-card-h .p-dot { background: var(--done); }
.ask-card.is-done .ask-card-h .p-dot::after { animation: none; opacity: 0; }
.js .d-ask .hero:not(.is-ready) > .ask-card { opacity: 0; animation: ask-safe 1ms 2.4s forwards; }
@keyframes ask-safe { to { opacity: 1; } }

.d-ask .sec .say { font-size: clamp(30px, 3.3vw, 48px); }
/* Here the visitor asks to be shown, so the window follows the bubble with nothing between. */
/* The window takes all the room the thread has, so its words can be read. */
.d-ask .look { padding-top: clamp(20px, 3.2vh, 38px); padding-inline: clamp(16px, 2vw, 28px); }
.d-ask .private > * { margin-inline: 0; }
/* On the tinted band the visitor's bubble is the window's colour, on the right like every other. */
.d-ask .private > .q { max-width: min(100%, 34em); margin-left: auto; background: var(--win); }
.d-ask .look .q { margin-bottom: 14px; margin-right: calc(clamp(24px, 5vw, 72px) - clamp(16px, 2vw, 28px)); }
.d-ask .sec:not(.look) { padding-top: clamp(64px, 7vw, 108px); }
.side-back { margin: 10px 10px 0; font: 550 14px/1.3 var(--text); color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { .side-back:hover { color: var(--ink); } }

@container thread (max-width: 860px) {
  .d-ask .hero { grid-template-columns: minmax(0, 1fr); }
  .d-ask .hero > .ask-card { grid-column: 1; grid-row: auto; margin-top: 22px; }
  .answer { font-size: clamp(36px, calc(100cqw / 6.6), 76px); }
}
@media (max-width: 1100px) {
  .page-ask { grid-template-columns: minmax(0, 1fr); }
  .side-col { display: contents; }
  .side-links { display: flex; gap: 24px; margin-left: auto; font: 550 15px/1 var(--text); color: var(--ink-2); }
  .side-links a { padding: 10px 0; }
  .side .side-nav { margin-left: 0; }
  .side { position: sticky; z-index: 30; flex-direction: row; align-items: center; gap: 12px; height: 60px; padding: 0 var(--gutter); background: var(--bg); overflow: visible; box-shadow: 0 1px 0 var(--bd); }
  .side-nav { margin-left: auto; }
  .side .lockup { margin-right: 0; }
  .side-h, .side-qs, .side-gh, .side-back { display: none; }
  .side-need { grid-template-columns: 14px auto; padding: 8px 12px; }
  .side-need small { display: none; }
  .thread { box-shadow: none; }
}
@media (max-width: 640px) {
  .side-links { display: none; }
  .side .side-nav { margin-left: auto; }
}
@media (max-width: 360px) {
  .ask-card-h b { font-size: 17px; }
  .ask-card-h span { font-size: 13.5px; white-space: nowrap; }
}

/* ---- sections new to the home page ---- */
.spot-text .body, .agents-text .body, .wt-text .body, .every-head .body { margin-top: 16px; }
/* Each agent in its own worktree: the words, then the two places it shows in the app, side by side. */
.wt { display: grid; gap: clamp(28px, 3.4vw, 44px); }
.wt-text .body { max-width: 62ch; }
.wt-more { margin-top: 20px; font-weight: 600; }
.wt-pics { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 28px; }
.wt-pics > figure { min-width: 0; }
.wt-pics figcaption { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.crop-menu img { width: 253px; max-width: 253px; }
.crop-pr { flex: 1 1 380px; }
.crop-pr img { max-width: 611px; }
/* Terminal, Browser and editor: the words beside one capture at its real size. */
.spot-side { grid-template-columns: minmax(0, 1fr) minmax(0, 611px); align-items: center; column-gap: clamp(28px, 4vw, 64px); }
.crop-term img { max-width: 611px; }

/* ---- the last exchange and the footer: across the whole page, on the sidebar's tint, so the
   sidebar ends where the thread does and nothing beside it is left empty ---- */
.thread main { padding-bottom: clamp(56px, 6vw, 96px); }
.close { --pad: clamp(24px, 5vw, 72px); padding-inline: var(--pad); background: var(--bg); box-shadow: inset 0 1px 0 var(--bd); }
/* Its right edge is the thread's: past 1440 the thread centres its content, so the band follows it. */
@media (min-width: 1101px) {
  .close { --side: clamp(216px, 17vw, 286px); --centre: max(0px, (100vw - var(--side) - 1440px) / 2); padding-left: calc(var(--side) + var(--centre) + var(--pad)); padding-right: calc(var(--centre) + var(--pad)); }
}
.close-in { container: close / inline-size; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); column-gap: clamp(32px, 5vw, 96px); align-items: center; padding: clamp(36px, 4.4vw, 64px) 0 clamp(44px, 5vw, 72px); }
.close-in > .q { grid-column: 1 / -1; margin-bottom: clamp(18px, 2.4vw, 32px); }
/* Two lines, sized from the room beside the card, as the first answer is. */
.close-h { font: 700 clamp(44px, calc((100cqw - 500px - 5vw) / 5.3), 112px)/0.96 var(--display); letter-spacing: -0.032em; }
.close-h .w { display: block; white-space: nowrap; }
.close-lede { margin-top: 20px; max-width: 34ch; font-size: clamp(17.5px, 1.45vw, 20.5px); color: var(--ink-2); }
.close .ask-card { justify-self: end; max-width: 500px; }
/* Side by side only while the line has room beside the card; else the card goes under it. */
.close { container: band / inline-size; }
@container band (max-width: 900px) {
  .close-in { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .close .ask-card { justify-self: stretch; max-width: 560px; }
  .close-h { font-size: clamp(44px, calc(100cqw / 6.6), 96px); }
}

.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 22px 0 26px; border-top: 1px solid var(--bd-2); font-size: 15px; color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .lockup { color: var(--ink); font-size: 22px; }
.foot .lockup .mark { width: 22px; height: 22px; }
.foot .who { margin-left: auto; }

/* ---- the compare pages ---- */
.doc { padding-top: clamp(18px, 3.4vh, 36px); }
.doc > .q-first { margin-bottom: clamp(18px, 2.4vh, 30px); }
.doc-head { display: grid; gap: 22px; }
.doc h1 { font-size: clamp(44px, 6.2vw, 96px); line-height: 0.96; letter-spacing: -0.032em; font-weight: 700; }
.doc-intro p { max-width: 62ch; font-size: clamp(17.5px, 1.45vw, 20.5px); color: var(--ink-2); }
.doc-intro p + p { margin-top: 12px; }
.doc-window { margin-top: clamp(40px, 5vw, 72px); }
.doc-body { display: grid; gap: clamp(56px, 6vw, 96px); padding-top: clamp(56px, 6vw, 96px); }
.doc-sec h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 18px; }
.doc-sec h3 { font-size: 21px; letter-spacing: -0.018em; margin-top: 26px; }
.doc-sec p { max-width: 66ch; color: var(--ink-2); font-size: 18px; }
.doc-sec p + p { margin-top: 12px; }
.doc-sec ul { display: grid; gap: 10px; font-size: 18px; }
.doc-sec ul li { position: relative; padding-left: 26px; overflow-wrap: anywhere; }
.doc-sec ul li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink-2); }
/* Two answers that belong together sit side by side, so the page uses its width under the table. */
.doc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.doc-picks { align-items: stretch; }
.doc-picks .pick { padding: 24px 26px 28px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--bd-2); }
.doc-picks .pick h2 { font-size: clamp(24px, 2.4vw, 32px); }
.doc-faq .qa:first-of-type { border-top: 1px solid var(--bd-2); }
.doc-faq details.qa p { padding: 0 0 24px; max-width: 70ch; font-size: 18px; }
.doc-faq summary h3 { margin-top: 0; }
.doc-sources ul { gap: 6px; font-size: 15px; color: var(--ink-2); }
.doc-sources h2 { font-size: 22px; letter-spacing: -0.02em; }
.doc-sources ul li::before { display: none; }
.doc-sources ul li { padding-left: 0; }
.doc-also { padding-top: clamp(64px, 7vw, 104px); }
.table { overflow-x: auto; scrollbar-width: thin; }
.table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16.5px; line-height: 1.45; }
.table th, .table td { text-align: left; vertical-align: top; padding: 15px 22px 15px 0; border-bottom: 1px solid var(--bd-2); }
.table thead th { font: 650 19px/1.2 var(--display); letter-spacing: -0.015em; padding-bottom: 12px; border-bottom-color: var(--ink); }
.table tbody th { width: 20%; font-weight: 600; color: var(--ink-2); }
.table td:nth-child(2) { width: 40%; color: var(--ink); }
.table td:nth-child(3) { color: var(--ink-2); }
.table tbody tr { transition: box-shadow 200ms var(--out); }
@media (hover: hover) {
  .table tbody tr:hover { box-shadow: inset 0 -1px 0 var(--ink); }
  .table tbody tr:hover th { color: var(--ink); }
}

@container thread (max-width: 980px) {
  .wt, .spot-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .doc-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .close-in { padding-top: 32px; }
  .close-h { font-size: clamp(40px, 13vw, 64px); }
  .close .ask-card { max-width: none; }
  .foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 16px; padding: 20px 0 28px; }
  .foot nav { grid-column: 1 / -1; grid-row: 2; gap: 6px 20px; }
  .foot .who { grid-column: 2; grid-row: 1; margin: 0; font-size: 14px; }
  .wt-pics { display: grid; grid-template-columns: minmax(0, 1fr); }
  .doc-picks .pick { padding: 20px 18px 22px; }
  .table { overflow: visible; }
  .table table { min-width: 0; }
  .table tbody th, .table tbody td { display: block; width: auto; padding: 0; border: 0; }
  .table tbody th { font: 650 18px/1.3 var(--display); letter-spacing: -0.015em; color: var(--ink); }
  .table td:nth-child(2), .table td:nth-child(3) { width: auto; }
  .ask-card .os-k { height: 56px; padding: 0 2px; gap: 6px; font-size: 12.5px; }
  .ask-card .get.is-live .get-os::before { height: 56px; }
}
/* The shorter of the two stays in view beside the longer one. */
@media (min-width: 861px) { .doc-pair:not(.doc-picks) > .doc-sec:first-child { position: sticky; top: 32px; } }
/* Once the visitor has said yes nothing waits on them: the card's button gives up its ember. */
.ask-card.is-done .btn-get { background: var(--ink); color: var(--win); }
@media (hover: hover) { .ask-card.is-done .btn-get:hover { background: color-mix(in srgb, var(--ink) 86%, var(--win)); } }

/* ---- the reading pages (blog, privacy, terms, the missing page): the thread's bubble and title,
   then one reading column in the site's type ---- */
.read-date { display: block; margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.prose { max-width: 68ch; padding-top: clamp(40px, 5vw, 72px); font-size: 18px; line-height: 1.65; color: var(--ink); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: clamp(48px, 5vw, 72px); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; letter-spacing: -0.028em; scroll-margin-top: 84px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 + * { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--ink-2); }
.prose a:not(.text-link) { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
@media (hover: hover) { .prose a:not(.text-link):hover { text-decoration-color: currentColor; } }
.prose strong { font-weight: 600; }
.prose code { padding: 2px 5px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 7%, transparent); font: 400 0.86em/1.3 var(--mono); }
.prose pre { padding: 14px 16px; overflow-x: auto; border-radius: 12px; background: var(--surface); font: 400 14px/1.6 var(--mono); tab-size: 2; }
.prose pre code { padding: 0; background: none; font: inherit; }
.prose .table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px 12px 0; border-top: 1px solid var(--bd-2); text-align: left; vertical-align: top; }
.prose thead th { padding-top: 0; border-top: 0; font-weight: 600; color: var(--ink-2); }
.prose tbody th { font-family: var(--display); font-weight: 650; }
.prose .updated { margin-top: 40px; font-size: 15px; color: var(--ink-2); }
.read-list { margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 720px) {
  .prose { font-size: 17px; }
  .prose pre { margin-inline: calc(var(--gutter) * -1); border-radius: 0; padding-inline: var(--gutter); }
  .prose tbody th { white-space: normal; }
}

/* ---- guides, feature pages and the hubs: the reading page, with a capture that may be wider than
   the column, then questions, sources and what to read next ---- */
.prose > .fig { margin-block: clamp(28px, 3vw, 40px); width: min(100cqw - 2 * clamp(24px, 5vw, 72px), 1260px); }
.prose > .fig.crop-mid { max-width: 930px; }
.prose > .fig.crop-sub { max-width: 894px; }
.prose > .fig.crop-pr, .prose > .fig.crop-term { max-width: 611px; }
.prose > .fig.crop-menu { max-width: 253px; }
.prose > .fig figcaption { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.table-even td:nth-child(2), .table-even td:nth-child(3) { width: auto; color: var(--ink); }
.prose h3 { margin-top: 32px; font: 640 21px/1.2 var(--display); letter-spacing: -0.02em; }
.prose h3 + * { margin-top: 10px; }
.prose ol > li::marker { font-weight: 600; }
.read-after { display: grid; gap: clamp(48px, 5vw, 72px); max-width: 68ch; padding-top: clamp(56px, 6vw, 88px); }
.read-after.read-wide { max-width: none; }
.read-after .doc-sec h2 { margin-bottom: 18px; }
.read-after .doc-faq h2, .read-after .hub-table h2 { font-size: clamp(26px, 2.6vw, 36px); }
.doc-hub { margin-top: 28px; font-size: 16px; color: var(--ink-2); }
.hub-note { margin-top: 16px; max-width: 70ch; font-size: 15px; color: var(--ink-2); }
.table-hub table { min-width: 860px; font-size: 15.5px; }
.table-hub tbody th { width: 14%; }
.table-hub td:nth-child(2) { width: 38%; }
.table-hub td:nth-child(3), .table-hub td:nth-child(4), .table-hub td:nth-child(5) { color: var(--ink-2); }
.table-hub tbody tr:first-child th, .table-hub tbody tr:first-child td { color: var(--ink); }
/* A table of four or more products in a reading column: it runs past the column's 68ch, up to
   the page's own width, so every column shows without scrolling. Phones stack it as any table. */
.read:has(.table-wide) { container: readcol / inline-size; }
@media (min-width: 721px) {
  .prose > .table-wide { width: min(1080px, 100cqi); }
  .table-wide .table table { min-width: 0; font-size: 15.5px; table-layout: fixed; }
  .table-wide .table th, .table-wide .table td { padding-right: 18px; }
  .table-wide .table tbody th { width: 13%; }
  .table-wide .table td { width: auto; color: var(--ink); }
  .table-wide .table code { overflow-wrap: anywhere; }
}
@media (max-width: 720px) {
  .prose > .fig { width: auto; margin-inline: calc(var(--gutter) * -1); }
  .table-hub table { min-width: 0; }
}

/* ---- the opening ----
   On a first visit to the home page the first exchange plays as a live thread (pre.js adds .op,
   ask.js runs it): the composer types the question and sends it, the agent works, the answer
   streams in, the download arrives in the Inbox, and "Show me." brings the window up. Every box
   is laid out from the first paint; only opacity and transform change, so nothing moves. If
   ask.js never runs, all of it shows at 2.6s. */
.op-comp, .op-work { display: none; }
.d-ask .hero { position: relative; }
.op .op-comp { display: flex; position: absolute; z-index: 2; grid-area: 1 / 1 / 2 / -1; top: -3px; left: 0; right: 0; align-items: flex-start; gap: 12px; padding: 8px 9px 8px 18px; border-radius: 18px; background: var(--win); box-shadow: 0 0 0 1px var(--bd-2), 0 1px 2px rgb(var(--shade) / 0.05), 0 18px 40px -28px rgb(var(--shade) / 0.3); }
.op-line { flex: 1; min-width: 0; margin: 0; padding-top: 7px; font: 500 clamp(16.5px, 1.3vw, 19px)/1.4 var(--text); color: var(--ink); }
/* The caret is painted on the typed words' own box, at its end, so it never moves a box. */
.op-text { padding-right: 3px; background: linear-gradient(var(--work), var(--work)) 100% 50% / 2px 1.15em no-repeat; -webkit-box-decoration-break: slice; box-decoration-break: slice; animation: op-blink 1.06s steps(1) infinite; }
.op-comp.is-typing .op-text { animation: none; }
.op-ph::before { content: attr(data-t); color: var(--ink-2); }
.op-comp.has-text .op-ph { display: none; }
.op-ph { transition: opacity 200ms var(--out); }
.op-comp.is-quiet .op-ph { opacity: 0; transition: none; }
.op-comp.is-quiet .op-text { background: none; }
.op-send { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface); color: var(--ink-2); }
.op-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.op-comp.has-text .op-send { background: var(--ember); color: var(--on-ember); transition: background-color 140ms, color 140ms; }
@keyframes op-blink { 50% { background-size: 0 1.15em; } }
/* While the agent works: Trek's own trail word, shimmering, where the answer will be. */
.op .op-work { display: block; position: absolute; grid-area: 2 / 1 / 3 / 2; top: 6px; left: 0; margin: 0; font: 550 clamp(15.5px, 1.2vw, 17.5px)/1.3 var(--text); opacity: 0; pointer-events: none; }
.op-work::before { content: attr(data-t); background: linear-gradient(90deg, var(--ink-2) 0 38%, var(--ink) 50%, var(--ink-2) 62% 100%) 0 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.op-work.is-on::before { animation: op-shim 0.5s linear infinite; }
@keyframes op-shim { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* The thread's first question isn't marked in the sidebar until it has been asked. */
:root.op:not(.op-asked) .side-qs .side-thumb { opacity: 0; }
:root.op:not(.op-asked) .side-qs a.is-on { color: var(--ink-2); background: none; }
.op-t { display: inline-block; }
.op-t.op-lw { display: inline; }
/* What arrives later waits, in its own place. */
/* (Raised above the rules that rise things on scroll, which would show them.) */
:root.op .d-ask :is(.hero > .q-first, .hero .answer .w, .hero > .lede, .hero > .ask-card, .side-need, .side-h [data-inbox-n], .look > .q) { opacity: 0; }
/* The window is there from the first paint, faint and a little low, behind the typing; "Show me."
   brings it up to full. (Its picture is the largest thing on the page, so it counts as painted
   from the start.) */
:root.op .d-ask .look > .tw { opacity: 0.3; transform: translateY(28px); will-change: opacity, transform; }
@media (prefers-color-scheme: dark) { :root.op .d-ask .look > .tw { opacity: 0.26; } }
.op .ask-card-h .p-dot::after { animation: none; }
.op .ask-card.is-here .ask-card-h .p-dot::after { animation: side-ping 2.6s var(--out) 3; }
/* Without ask.js it all shows anyway, and the composer goes. */
.op:not(.op-run) :is(.hero > .q-first, .hero .answer .w, .hero > .lede, .hero > .ask-card, .side-need, .side-h [data-inbox-n], .look > .q) { animation: op-safe 1ms 2.6s forwards; }
.op:not(.op-run) .look > .tw { animation: op-safe-tw 1ms 2.6s forwards; }
@keyframes op-safe-tw { to { opacity: 1; transform: none; } }
.op:not(.op-run) :is(.op-comp, .op-work) { animation: op-gone 1ms 2.6s forwards; }
@keyframes op-safe { to { opacity: 1; } }
@keyframes op-gone { to { visibility: hidden; } }
/* The frame the opening hands over: nothing transitions into the end state. Colour transitions
   live on hover states only, never on base rules, so a change of system theme has nothing to fade
   through; is-retheme is the backstop for any that still start. */
.op-end, .op-end *, .is-retheme, .is-retheme * { transition: none !important; }
.get-share.is-nudge { animation: op-nudge 700ms var(--out); }
@keyframes op-nudge { 0% { transform: none; } 30% { transform: scale(1.035); } 100% { transform: none; } }

/* At desktop widths, with the sidebar, the window starts higher, so more of it is on the first
   screen: less room above the first question and before "Show me.", and its caption goes under
   it instead of over it. */
@media (min-width: 1101px) {
  .d-ask .hero { padding-top: clamp(14px, 2vh, 24px); }
  .d-ask .hero > .q-first { margin-bottom: clamp(12px, 1.8vh, 20px); }
  .d-ask .look { padding-top: clamp(12px, 1.6vh, 20px); }
  .d-ask .look .q { margin-bottom: 12px; }
  .tw:not(.tw-stage) .tw-cap { order: 0; }
}
