/* Copperlight, "Lamplight": a warm dark room, and the only light is copper. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Arial sized like Geist, so the text barely moves when the font arrives. */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  size-adjust: 104.76%;
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0%;
}

:root {
  --bg: #0E0C0B;
  --surface: #151210;
  --line: rgba(255, 236, 218, 0.075);
  --text: #F3EDE6;
  --text-2: #A69C92;
  --copper-light: #FEBA7A;
  --copper-deep: #B36E42;
  --glow: #E88C4A;
  --btn-from: #F2A564;
  --btn-to: #D06E30;
  --btn-text: #1A0E06;

  --sans: "Geist", "Geist Fallback", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --column: 1100px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(104px, 15vw, 176px);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* A whisper of grain, so the glows don't band. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(232, 140, 74, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

/* The glows spill past the column on purpose; clip them at the page's sides so it never scrolls sideways. */
main { overflow-x: clip; }
.container { width: min(var(--column), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding-block: calc(var(--section) * 0.55); }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: -0.01em; }
.copper {
  background: linear-gradient(180deg, var(--copper-light) 10%, var(--glow) 55%, var(--copper-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* The icon set at the top of the page: drawn once, used by every row. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The light behind a section: a lamp in a dark room. */
.glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--glow-y, 62%);
  width: min(1100px, 150vw);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(232, 140, 74, var(--glow-strength, 0.26)), rgba(232, 140, 74, 0.06) 55%, transparent);
  pointer-events: none;
  z-index: -1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn--primary {
  color: var(--btn-text);
  background: linear-gradient(180deg, var(--btn-from), var(--btn-to));
  box-shadow: 0 8px 28px rgba(226, 128, 60, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(226, 128, 60, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.12); }
.btn--ghost { border: 1px solid rgba(255, 236, 218, 0.16); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255, 236, 218, 0.32); background: rgba(255, 236, 218, 0.03); }
.btn--small { height: 34px; padding: 0 15px; font-size: 13.5px; }
.btn svg { width: 15px; height: 15px; flex: none; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 12, 11, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 15.5px; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--text-2); }
.nav__links a { transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__star { display: inline-flex; align-items: center; gap: 6px; }
.nav__star svg { width: 14px; height: 14px; fill: var(--copper-light); }
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__inner .btn { margin-left: auto; }
}

/* Hero */
.hero { position: relative; padding-block: clamp(72px, 11vw, 128px) clamp(96px, 13vw, 152px); text-align: center; isolation: isolate; --glow-y: 70%; --glow-strength: 0.3; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.hero h1 { margin-top: 22px; font-size: clamp(2.9rem, 7.2vw, 5.6rem); line-height: 0.98; letter-spacing: -0.045em; }
.lead { margin: 26px auto 0; max-width: 34em; font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.55; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.meta { margin-top: 16px; font-size: 13px; color: var(--text-2); }
.meta a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(232, 140, 74, 0.6); text-underline-offset: 3px; }
.meta a:hover { text-decoration-color: var(--copper-light); }

/* Keycaps; a combination is one unit that never breaks across lines */
.keys { display: inline-flex; gap: 3px; white-space: nowrap; vertical-align: -1px; }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  font: 500 12px/1 -apple-system, system-ui, sans-serif; /* Geist has no ⌥ or ⌘ */
  color: var(--text);
  background: linear-gradient(180deg, #2A2522, #1C1917);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(255, 236, 218, 0.12);
}

/* The launcher, as the app draws it: a glass pill with a copper edge, and a card of results under it. */
.launcher { width: min(620px, 100%); text-align: left; }
.bar {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 22px;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(30, 26, 23, 0.92), rgba(24, 21, 19, 0.92)) padding-box,
    linear-gradient(90deg, #E8A06A, var(--copper-deep)) border-box;
  box-shadow: 0 0 0 7px rgba(232, 140, 74, 0.06), 0 24px 70px -10px rgba(0, 0, 0, 0.7), 0 0 60px -12px rgba(232, 140, 74, 0.35);
}
.bar__text { white-space: pre; overflow: hidden; text-overflow: clip; }
.bar__text:empty + .caret { margin-left: 0; }
.caret { width: 2px; height: 26px; margin-left: 2px; flex: none; border-radius: 1px; background: var(--copper-light); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.results {
  margin-top: 12px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(24, 21, 19, 0.86);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
}
.results:empty { display: none; }
.row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 13px; border: 0.5px solid transparent; }
.row.is-selected {
  background: linear-gradient(90deg, rgba(232, 140, 74, 0.22), rgba(232, 140, 74, 0.07));
  border-color: rgba(240, 160, 100, 0.38);
}
.row__icon {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 14px; font-weight: 500; color: var(--text);
  background: rgba(255, 236, 218, 0.06);
  box-shadow: inset 0 0 0 0.5px rgba(255, 236, 218, 0.1);
}
.row__swatch { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.row__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.row__text { flex: 1; min-width: 0; }
.row__title { display: block; font-size: 15.5px; line-height: 1.3; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; vertical-align: 1px; color: var(--copper-light); background: rgba(232, 140, 74, 0.18); }
.bar__text--placeholder { color: rgba(166, 156, 146, 0.75); }
.row__subtitle { display: block; margin-top: 1px; font-size: 13px; line-height: 1.35; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__action { flex: none; font: 500 11.5px/1 var(--mono); padding: 5px 8px; border-radius: 6px; color: var(--text); background: rgba(255, 236, 218, 0.08); visibility: hidden; }
.row.is-selected .row__action { visibility: visible; }
@media (max-width: 520px) {
  .bar { height: 56px; padding: 0 20px; font-size: 19px; }
  .caret { height: 22px; }
  .row { gap: 11px; padding: 9px 10px; }
  .row__icon { width: 30px; height: 30px; font-size: 13px; }
  .row__title { font-size: 14.5px; }
  .row__subtitle { font-size: 12.5px; }
}

/* Sections fade in as they arrive. demo.js sets .reveals when it runs, so nothing hides if it does not. */
.reveals .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveals .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveals .reveal { opacity: 1; transform: none; }
}

/* Section headings */
.section h2 { font-size: clamp(2.15rem, 4.8vw, 3.6rem); line-height: 1.03; letter-spacing: -0.042em; }
.section-lead { margin: 20px auto 0; max-width: 34em; font-size: clamp(16.5px, 1.5vw, 18.5px); line-height: 1.55; color: var(--text-2); }
.principles, .download { text-align: center; }

/* The hero's launcher, live: the examples over it, then rows, or an answer's own card (the app's, rendered). */
.demo { position: relative; width: min(682px, 100%); margin: clamp(48px, 7vw, 72px) auto 0; }
.demo .launcher { width: 100%; }
.bar--input { cursor: text; }
.bar--input input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; padding: 0; background: transparent;
  font: inherit; letter-spacing: inherit; color: var(--text);
  caret-color: var(--copper-light);
}
.bar--input input::placeholder { color: rgba(166, 156, 146, 0.75); }
/* A name that takes text, as a chip at the start of the field: as far in as it is round, so its curve follows the bar's. */
.bar__mode {
  flex: none; display: inline-flex; align-items: center;
  height: 36px; padding: 0 15px; margin: 0 12px 0 -12px;
  border-radius: 999px; border: 0.5px solid rgba(240, 160, 100, 0.38);
  background: linear-gradient(90deg, rgba(232, 140, 74, 0.22), rgba(232, 140, 74, 0.07));
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap; color: var(--text);
  transform-origin: left center; animation: mode-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar__mode[hidden] { display: none; }
@keyframes mode-in { from { opacity: 0; transform: scale(0.8); } }
@media (max-width: 520px) { .bar__mode { height: 32px; padding: 0 12px; margin-left: -8px; font-size: 14px; } }
.bar--small .bar__mode { height: 32px; padding: 0 13px; margin: 0 10px 0 -12px; font-size: 14.5px; animation: none; }
.bar--input:focus-within { box-shadow: 0 0 0 7px rgba(232, 140, 74, 0.12), 0 24px 70px -10px rgba(0, 0, 0, 0.7), 0 0 70px -10px rgba(232, 140, 74, 0.45); }
.demo .results { min-height: 0; position: relative; overflow: hidden; transition: height 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); animation: results-in 0.2s ease; }
.demo .results.is-empty { display: none; }
@keyframes results-in { from { opacity: 0; transform: translateY(-4px); } }
.demo .row { position: relative; cursor: pointer; } /* over the wash */
.demo .row.is-selected { background: none; border-color: transparent; }
/* The selected row's wash, one for the list: it slides from row to row, as in the app. */
.wash {
  position: absolute; top: 0; left: 8px; right: 8px; border-radius: 13px; pointer-events: none;
  background: linear-gradient(90deg, rgba(232, 140, 74, 0.22), rgba(232, 140, 74, 0.07));
  border: 0.5px solid rgba(240, 160, 100, 0.38);
  transition: transform 0.16s cubic-bezier(0.3, 0.9, 0.35, 1), height 0.16s ease;
}
/* The launcher springs in, as it does on ⌥ Space. */
.demo .launcher { transform-origin: 50% 0; animation: launcher-in 0.5s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes launcher-in { from { opacity: 0; transform: scale(0.96); } }
/* The tour selects what's there before typing over it, as ⌘A would. */
.demo.is-selecting .bar--input input {
  background: linear-gradient(rgba(232, 140, 74, 0.4), rgba(232, 140, 74, 0.4)) no-repeat 0 50% / var(--selected) 1.3em;
}
.toast {
  position: absolute; left: 50%; bottom: -54px;
  transform: translate(-50%, 6px);
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; white-space: nowrap; color: var(--text);
  background: rgba(36, 31, 28, 0.95); border: 1px solid rgba(240, 160, 100, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: "✓"; margin-right: 8px; color: var(--copper-light); font-family: system-ui, sans-serif; }
.chips { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 26px; }
.chip {
  font: 400 13.5px/1 var(--mono); letter-spacing: -0.01em;
  padding: 9px 13px; border-radius: 10px; cursor: pointer;
  color: #D8CEC4; background: var(--surface); border: 1px solid rgba(255, 236, 218, 0.1);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.chip:hover, .chip.is-current { color: var(--text); border-color: rgba(240, 160, 100, 0.55); background: #1A1613; }

/* Chapters: one idea per screen, text and picture alternating */
.chapters { display: grid; gap: clamp(112px, 14vw, 168px); }
.chapter { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.chapter--flip .chapter__text { order: 2; }
.chapter h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.chapter__text p:not(.commands) { margin-top: 18px; max-width: 30em; color: var(--text-2); font-size: 17px; }
.commands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.commands .mono { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: #D8CEC4; }
.chapter__visual { position: relative; isolation: isolate; }
.chapter__visual::before {
  content: ""; position: absolute; inset: -18% -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 140, 74, 0.13), transparent 70%);
}
.chapter__visual .launcher { margin-inline: auto; }
.bar--small { height: 52px; font-size: 18px; padding: 0 22px; }

/* Find: three queries, three answers */
.stack { display: grid; gap: 14px; }
.mini {
  padding: 8px; border-radius: 20px;
  background: rgba(24, 21, 19, 0.86); border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
}
.stack .mini:nth-child(1) { margin-right: 10%; }
.stack .mini:nth-child(2) { margin-inline: 5%; }
.stack .mini:nth-child(3) { margin-left: 10%; }
.mini__bar {
  display: flex; align-items: center; height: 42px; padding: 0 16px; margin-bottom: 6px;
  border-radius: 999px; font-size: 15.5px; letter-spacing: -0.01em;
  border: 1.2px solid transparent;
  background:
    linear-gradient(rgba(32, 28, 25, 0.95), rgba(26, 23, 21, 0.95)) padding-box,
    linear-gradient(90deg, #E8A06A, var(--copper-deep)) border-box;
}

/* Windows: a desk, a window snapped left, where it was */
.desk {
  position: relative; aspect-ratio: 16 / 10.5; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 0%, #2A211B, #15110F 60%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.desk__menubar { height: 22px; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; background: rgba(0, 0, 0, 0.25); }
.desk__window {
  position: absolute; left: 2.5%; top: calc(22px + 3%); width: 46.5%; bottom: 3%;
  border-radius: 10px; padding: 12px 14px; display: grid; align-content: start; gap: 10px;
  background: linear-gradient(180deg, #2B2521, #221D1A); border: 1px solid rgba(255, 236, 218, 0.09);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
}
.desk__ghost { position: absolute; left: 30%; top: calc(22px + 14%); width: 44%; height: 58%; border-radius: 10px; border: 1px dashed rgba(255, 236, 218, 0.16); }
.desk__dots { display: inline-flex; gap: 6px; }
.desk__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 236, 218, 0.16); }
.desk__line { height: 7px; border-radius: 4px; background: rgba(255, 236, 218, 0.08); }
.desk__line--short { width: 60%; }
.desk__launcher { position: absolute; right: 5%; bottom: 9%; width: min(300px, 54%); }
.desk__launcher .row { padding: 7px 9px; background: rgba(24, 21, 19, 0.92); }
.desk__launcher .row.is-selected { background: linear-gradient(90deg, rgba(232, 140, 74, 0.28), rgba(30, 26, 23, 0.95)); }

/* Yours: the config file */
.file {
  border-radius: 16px; overflow: hidden;
  background: #120F0D; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}
.file__title { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.file__title .mono { font-size: 12px; }
.file__body { margin: 0; padding: 20px 22px 24px; font-size: 13px; line-height: 1.75; color: #CFC5BB; overflow-x: auto; }
.t-k { color: var(--copper-light); }
.t-s { color: #D9C2A3; }
.t-c { color: var(--text-2); }

/* Answers in their own shape: under the field, the card of an answer that has one. Without demo.js, the first shows.
   With it, the card for what's typed cross-fades in while the height eases from one shape to the next, and to nothing
   for rows. */
.answers__cards { list-style: none; margin: 0; padding: 0; }
.answers__card { padding-top: 12px; }
.answers__card img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }
.answers__card p { margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-2); text-align: center; }
.answers__card .mono { margin-right: 8px; font-size: 12.5px; padding: 3px 8px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); color: #D8CEC4; white-space: nowrap; }
.demo:not(.is-live) .answers__card:not(:first-child) { display: none; }
.demo.is-live .answers__cards { position: relative; transition: height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.22s ease; }
.demo.is-live .answers__card {
  position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(10px) scale(0.985); pointer-events: none;
  transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.demo.is-live .answers__card.is-current { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.05s; }
/* As it types, what showed fades, and what the query brings fades in once it's typed. */
.demo .chip { position: relative; overflow: hidden; }
/* While it tours, the example showing fills its chip from the left; it waits, filling, when the tour does. */
.demo .chip::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--copper-light); transform: scaleX(0); transform-origin: left;
}
.demo.is-touring .chip.is-current::after { animation: answer-hold var(--hold) linear forwards; }
.demo.is-paused .chip.is-current::after { animation-play-state: paused; }
/* On a phone, the examples are one row that scrolls sideways, edge to edge, so the launcher stays near the top. */
@media (max-width: 640px) {
  .demo .chips {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .demo .chips::-webkit-scrollbar { display: none; }
  .demo .chip { flex: none; }
}
/* The answers chapter's picture: a card on its own, no field over it. */
.chapter__card { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }
@keyframes answer-hold { to { transform: scaleX(1); } }

/* The built-in tools, in groups: the heading, a card from the app and the tools in two even columns, the card opening
   one group and closing the next */
.tools { text-align: center; }
.tools__group { columns: 2; column-gap: clamp(36px, 5vw, 72px); margin-top: clamp(64px, 8vw, 104px); text-align: left; }
.tools__card { display: block; width: 100%; height: auto; margin: 6px 0 26px; break-inside: avoid; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }
.tools__card:last-child { margin: 26px 0 0; }
.tools__group h3 { margin-bottom: 14px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.035em; }
.tools__list { margin: 0; }
.tool {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 16px;
  padding: 12px 2px; border-top: 1px solid var(--line); break-inside: avoid;
}
.tool dt { font-weight: 500; font-size: 15.5px; letter-spacing: -0.015em; }
.tool dd { margin: 0; }
.tool .mono { font-size: 12.5px; padding: 3px 8px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); color: #D8CEC4; white-space: nowrap; }
.tool dd:last-child { grid-column: 1 / -1; font-size: 14px; line-height: 1.45; color: var(--text-2); }
/* One column: the heading, its card, then the tools, in every group */
@media (max-width: 860px) {
  .tools__group { display: flex; flex-direction: column; margin-top: 64px; }
  .tools__group h3 { order: -2; }
  .tools__card, .tools__card:last-child { order: -1; margin: 0 0 22px; }
}

/* Principles */
.principles__list {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  text-align: left;
}
.principles__list li { background: var(--bg); padding: 28px 26px 30px; }
.principles__list strong { display: block; font-weight: 500; font-size: 19px; letter-spacing: -0.02em; }
.principles__list span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.principles__source { margin-top: 32px; font-size: 15px; color: var(--text-2); }
.principles__source a, .download__alt a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(232, 140, 74, 0.6); text-underline-offset: 3px; }
.principles__source a:hover, .download__alt a:hover { text-decoration-color: var(--copper-light); }

/* Download */
.download { --glow-y: 58%; --glow-strength: 0.2; isolation: isolate; }
.steps {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left;
}
.steps li { position: relative; display: flex; flex-direction: column; padding: 24px 24px 26px; border-radius: 18px; background: rgba(21, 18, 16, 0.85); border: 1px solid var(--line); }
.steps__n { font: 500 12px/1 var(--mono); color: var(--copper-light); letter-spacing: 0.04em; }
.steps strong { margin-top: 16px; font-weight: 500; font-size: 18px; letter-spacing: -0.015em; }
.steps li > span:not(.steps__n):not(.blocked) { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.blocked {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.35; color: #CFC5BB;
  background: #1D1917; border: 1px solid rgba(255, 236, 218, 0.08);
}
.blocked__btn { flex: none; padding: 5px 10px; border-radius: 7px; font-size: 12px; color: var(--text); background: rgba(255, 236, 218, 0.12); box-shadow: 0 0 0 1.5px rgba(240, 160, 100, 0.6); }
.download__cta { margin-top: 48px; display: grid; justify-items: center; }
.download__alt { margin: 28px auto 0; max-width: 44em; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.download__alt .mono { color: #D8CEC4; overflow-wrap: anywhere; }
.cmdspace { margin: 72px auto 0; max-width: 680px; padding: 26px 30px 28px; border-radius: 18px; text-align: left; background: rgba(21, 18, 16, 0.85); border: 1px solid var(--line); }
.cmdspace h3 { font-size: 18px; letter-spacing: -0.015em; }
.cmdspace p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.cmdspace kbd { margin: 0 1px; vertical-align: 1px; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 36px; font-size: 14px; color: var(--text-2); }
.footer__brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 500; }
.footer__brand span { color: var(--text-2); font-weight: 400; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer__links a:hover { color: var(--text); }

/* Narrow screens */
@media (max-width: 860px) {
  .chapter, .chapter--flip { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .chapter--flip .chapter__text { order: 0; }
  .principles__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .stack .mini:nth-child(n) { margin-inline: 0; }
}
@media (max-width: 520px) {
  .principles__list { grid-template-columns: minmax(0, 1fr); }
  .cmdspace { padding: 22px; }
  .bar--small { height: 48px; font-size: 16.5px; }
  .desk__launcher { width: 64%; right: 4%; }
}


/* Questions: the homepage's, and each comparison page's */
.faq { text-align: center; }
.faq__list { max-width: 760px; margin: 48px auto 0; text-align: left; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 2px;
  font-weight: 500; font-size: 17px; letter-spacing: -0.015em; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font: 400 20px/1 var(--mono); color: var(--copper-light); transition: transform 0.2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: #fff; }
.faq__item p { margin: -4px 0 0; padding: 0 40px 22px 2px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.faq__more { margin-top: 32px; font-size: 15px; }
.faq__more a, .doc p a, .doc li a, .compare a, .sources a, .section-lead a {
  color: var(--text); text-decoration: underline; text-decoration-color: rgba(232, 140, 74, 0.6); text-underline-offset: 3px;
}
.faq__more a:hover, .doc p a:hover, .doc li a:hover, .compare a:hover, .sources a:hover, .section-lead a:hover { text-decoration-color: var(--copper-light); }

/* Comparison pages */
.page-hero { position: relative; isolation: isolate; text-align: center; padding-block: clamp(56px, 8vw, 96px) clamp(72px, 9vw, 112px); --glow-y: 36%; --glow-strength: 0.22; }
.page-hero h1 { margin-top: 20px; font-size: clamp(2.5rem, 5.8vw, 4.4rem); line-height: 1.02; letter-spacing: -0.044em; }
.crumbs { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; font-size: 13px; color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.doc { padding-top: 0; }
.doc .container { width: min(780px, 100% - 2 * var(--gutter)); }
.doc h2 { margin-top: clamp(80px, 10vw, 112px); font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.08; letter-spacing: -0.035em; }
.doc .container > h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; color: var(--text-2); }
.doc p { margin-top: 16px; }
.doc strong { font-weight: 500; color: var(--text); }
.doc ul, .doc ol { margin: 16px 0 0; padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--copper-deep); }
.doc .mono { color: #D8CEC4; }
.compare-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(21, 18, 16, 0.6); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; padding-block: 16px; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); background: var(--surface); }
.compare thead th:nth-child(2) { color: var(--copper-light); }
.compare tbody th { width: 24%; font-weight: 500; color: var(--text); }
.compare td { width: 38%; color: var(--text-2); }
.compare td:first-of-type { color: var(--text); background: rgba(232, 140, 74, 0.035); }
.doc__sub { margin-top: 44px; font-weight: 500; font-size: 18px; letter-spacing: -0.015em; color: var(--text); }
.compare--list thead th:nth-child(2) { color: var(--text-2); }
.compare--list tbody th { width: 28%; }
.compare--list td { width: auto; }
.compare--list td:first-of-type { color: var(--text-2); background: none; }
.compare__note, .sources { margin-top: 14px; font-size: 13.5px; color: var(--text-2); }
.picks, .others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.pick, .other { padding: 24px 24px 26px; border-radius: 18px; background: rgba(21, 18, 16, 0.85); border: 1px solid var(--line); }
.pick--ours { border-color: rgba(240, 160, 100, 0.32); }
.pick h3, .other strong { display: block; font-weight: 500; font-size: 18px; letter-spacing: -0.015em; color: var(--text); }
.doc .pick p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; }
.other { display: block; transition: border-color 0.2s ease, transform 0.2s ease; }
.other:hover { border-color: rgba(240, 160, 100, 0.45); transform: translateY(-1px); }
.other span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.code { margin: 18px 0 0; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font: 13px/1.75 var(--mono); color: #CFC5BB; overflow-x: auto; }
.doc .faq__list { margin: 24px 0 0; }
.cta { text-align: center; }
@media (max-width: 640px) {
  .picks, .others { grid-template-columns: minmax(0, 1fr); }
  .faq__item p { padding-right: 8px; }
  /* Each row becomes a card: the feature, then each app's answer under its name. */
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tr { display: block; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
  .compare tbody tr:first-child { border-top: 0; }
  .compare th, .compare td, .compare tbody th { display: block; width: auto; padding: 0; border: 0; background: none; }
  .compare td:first-of-type { background: none; }
  .compare td { margin-top: 10px; }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 3px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
  .compare td:first-of-type::before { color: var(--copper-light); }
}

/* Touch screens: every control a fingertip tall */
@media (pointer: coarse) {
  .chip, .brand { min-height: 44px; }
  .btn--small { height: 44px; }
  .footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
}
