/* Quadit's site. Dark only. The page takes its colours from the app: cool
   near-blacks, one blue, and the yellow the app keeps for "your move". Behind
   the hero a grid of small squares flickers, and now and then four of them
   light up as the icon does (site.js draws it). */

@font-face {
  font-family: "Instrument Sans";
  src: url(fonts/instrument-sans-latin.woff2) format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --bg: #08090d;
  --surface: #111319;
  --raised: #181b23;
  --sunk: #0c0d12;
  --line: #222632;
  --line-2: #333949;
  --ink: #f3f4f7;
  --ink-2: #abb1c0;
  --ink-3: #7a8193;
  --blue: #93a4ff;
  --blue-deep: #4b5dff;
  --violet: #9a6bff;
  --move: #ffd60a;
  --move-ink: #1c1700;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul { margin: 0; }
h1, h2 { font-weight: 600; font-stretch: 94%; letter-spacing: -0.022em; line-height: 1.05; text-wrap: balance; }
h3, h4 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: 0.875em; }
p code, dd code, figcaption code { color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 5px; padding: 0.08em 0.36em; }
pre { margin: 0; overflow-x: auto; font-size: 0.8125rem; line-height: 1.7; tab-size: 2; }
pre code { font-size: inherit; }
.wrap { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--move); color: var(--move-ink); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-row { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.mark { width: 26px; height: 26px; flex: none; }
.mark-bg { fill: #1b2030; }
.mark-line { stroke: #e9ecf5; }
.nav { display: none; gap: 26px; font-size: 0.9375rem; margin-right: auto; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: none; }
@media (min-width: 860px) { .nav { display: flex; } }
.gh { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--ink); font-size: 0.9375rem; font-weight: 500; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--raised) 60%, transparent); }
.gh svg { width: 16px; height: 16px; fill: currentColor; }
.gh:hover { text-decoration: none; border-color: var(--ink-3); }
@media (min-width: 860px) { .gh { margin-left: 0; } }

/* ---------- hero */
.hero { position: relative; padding: 88px 0 0; text-align: center; overflow-x: clip; }
.sky { position: absolute; inset: -60px 0 auto; height: 1080px; overflow: hidden; pointer-events: none; -webkit-mask-image: radial-gradient(90% 78% at 50% 22%, #000 35%, transparent 82%); mask-image: radial-gradient(90% 78% at 50% 22%, #000 35%, transparent 82%); }
/* Light behind the field: three lamps, two cool and one a little of the yellow, each on its own slow round. */
.lamp { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.lamp-a { left: 4%; top: 2%; width: 46%; height: 520px; background: radial-gradient(closest-side, rgb(75 93 255 / 0.62), transparent); animation: lamp-a 19s ease-in-out infinite alternate; }
.lamp-b { right: 2%; top: 6%; width: 44%; height: 480px; background: radial-gradient(closest-side, rgb(154 107 255 / 0.5), transparent); animation: lamp-b 23s ease-in-out infinite alternate; }
.lamp-c { left: 38%; top: 34%; width: 30%; height: 340px; background: radial-gradient(closest-side, rgb(255 214 10 / 0.16), transparent); animation: lamp-c 27s ease-in-out infinite alternate; }
@keyframes lamp-a { from { transform: translate3d(-8%, -6%, 0) scale(1); } to { transform: translate3d(28%, 16%, 0) scale(1.2); } }
@keyframes lamp-b { from { transform: translate3d(6%, 10%, 0) scale(1.1); } to { transform: translate3d(-30%, -6%, 0) scale(0.9); } }
@keyframes lamp-c { from { transform: translate3d(-40%, 10%, 0); } to { transform: translate3d(46%, -24%, 0) scale(1.3); } }
.field { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The words are read against a quieter patch of the field. */
.sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(44% 280px at 50% 300px, rgb(8 9 13 / 0.7), transparent); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.hero h1 { margin: 0; font-size: clamp(2.5rem, 7.2vw, 5.25rem); background: linear-gradient(180deg, #fff 35%, #b4bcd6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 span { display: block; }
.sub { margin-top: 22px; max-width: 40em; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); text-wrap: balance; }

/* The download: one button for this computer's system, the others in a row under it. */
.get { margin-top: 34px; display: grid; justify-items: center; gap: 14px; scroll-margin-top: 96px; }
.get-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* Both buttons one size, set here: .btn's own size comes later in this file and would win over a single class. */
.get-row .btn { min-height: 54px; padding: 0 28px; border-radius: 13px; font-size: 1.0625rem; }
@media (max-width: 559px) { .get-row { flex-direction: column; align-items: stretch; width: min(100%, 300px); } }
.team .install { width: 100%; margin-top: 0; }
.team .install .cmd code { font-size: 0.8125rem; }
.dl-all { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-size: 0.9375rem; }
.dl-all li { padding: 0 13px; }
.dl-all li + li { border-left: 1px solid var(--line-2); }
.dl-all a { color: var(--ink-2); }
.dl-all a:hover { color: var(--ink); }
.dl-what { max-width: 36em; font-size: 0.9375rem; color: var(--ink-3); text-wrap: balance; }
.or { margin-top: 44px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 559px) { .dl-all li { padding: 0 9px; } .dl-all li + li { border-left: 0; } }

.install { margin-top: 14px; width: min(100%, 840px); text-align: left; border: 1px solid var(--line-2); border-radius: 16px; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 80px -40px rgb(0 0 0 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.05); }
.tablist { display: flex; gap: 4px; padding: 8px 8px 0; }
[role="tab"] { font: 500 0.875rem var(--sans); color: var(--ink-3); background: none; border: 0; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
[role="tab"]:hover { color: var(--ink); }
[role="tab"][aria-selected="true"] { color: var(--ink); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabpanel { padding: 10px 12px 14px; }
.cmd { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 11px; background: var(--sunk); overflow: hidden; }
.cmd code { flex: 1; min-width: 0; padding: 13px 16px; font-size: 0.875rem; line-height: 1.5; white-space: nowrap; overflow-x: auto; color: var(--ink); scrollbar-width: none; }
.cmd code::before { content: "$ "; color: var(--ink-3); }
.copy { flex: none; min-width: 78px; padding: 0 16px; font: 500 0.8125rem var(--sans); color: var(--ink); background: var(--raised); border: 0; border-left: 1px solid var(--line); cursor: pointer; }
.copy:hover { background: var(--line); }
.copy[data-done] { color: var(--move); }
.after { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-3); }
.install .after { padding: 0 4px; }
/* Under the film: what the app is, and the server's facts in one line. */
.hero-foot { margin-top: 44px; padding-bottom: 72px; display: grid; justify-items: center; gap: 20px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; font-size: 0.9375rem; color: var(--ink-3); }
.facts li { padding: 0 16px; }
.facts li + li { border-left: 1px solid var(--line-2); }
@media (max-width: 559px) { .facts li { padding: 0 10px; } .facts li + li { border-left: 0; } }

.hero-fig { margin-top: 72px; width: 100%; }
.hero-stage { position: relative; animation: rise 0.9s 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-stage::before { content: ""; position: absolute; inset: -7% -5% 6%; background: radial-gradient(50% 60% at 40% 30%, rgb(75 93 255 / 0.55), transparent 70%), radial-gradient(40% 50% at 78% 60%, rgb(255 214 10 / 0.22), transparent 70%); filter: blur(70px); z-index: -1; }
.hero-in > h1, .hero-in > .sub, .hero-in > .get, .hero-in > .or, .hero-in > .install { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-in > .sub { animation-delay: 0.06s; }
.hero-in > .get { animation-delay: 0.1s; }
.hero-in > .or, .hero-in > .install { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lamp, .hero-stage, .hero-in > * { animation: none; }
}

/* ---------- screenshots */
.frame { position: relative; border-radius: 14px; overflow: hidden; background: #131419; box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -40px rgb(0 0 0 / 0.95); }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08); pointer-events: none; }
.frame img { width: 100%; }
figcaption { margin: 18px auto 0; max-width: 46em; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }

/* ---------- sections */
.sec { position: relative; padding: 120px 0; isolation: isolate; }
.sec::before { content: ""; position: absolute; top: 0; left: 50%; width: min(100% - 40px, 1180px); height: 1px; translate: -50% 0; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.sec-head { max-width: 780px; margin: 0 auto 72px; text-align: center; }
.sec-head h2, .closing h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
.lede { margin-top: 18px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

/* ---------- what it does: words beside a screenshot, the sides taking turns */
.features { display: grid; gap: 96px; }
.feature { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .feature:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature:nth-child(even) .feature-text { order: 2; }
}
.feature { position: relative; }
/* Each screenshot is lit from behind, from the side its words are not on. */
.feature::before { content: ""; position: absolute; top: 10%; right: 4%; width: 46%; height: 80%; background: radial-gradient(closest-side, rgb(75 93 255 / 0.3), transparent); filter: blur(60px); z-index: -1; }
.feature:nth-child(even)::before { right: auto; left: 4%; background: radial-gradient(closest-side, rgb(154 107 255 / 0.26), transparent); }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-stretch: 94%; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.feature-text > p { margin-top: 14px; color: var(--ink-2); line-height: 1.6; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 0.9875rem; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 11px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); rotate: -45deg; }
.feature-text > .works { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-3); }

/* ---------- self-host */
.frame video { display: block; width: 100%; height: auto; }
.ways { display: grid; gap: 16px; max-width: 1040px; margin: 0 auto; }
@media (min-width: 820px) { .ways { grid-template-columns: 1fr 1fr; } }
.way { padding: 32px; border-radius: 18px; background: linear-gradient(180deg, var(--raised), var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }
.way-kind { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.way h3 { margin-top: 10px; font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.15; }
.way h3 + p { margin-top: 12px; color: var(--ink-2); line-height: 1.6; }
.facts-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .facts-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .facts-grid { grid-template-columns: repeat(3, 1fr); } }
.facts-grid > div { padding: 22px 24px; border-radius: 14px; background: linear-gradient(180deg, var(--raised), var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }
.facts-grid dt { font-weight: 600; margin-bottom: 6px; }
.facts-grid dd { color: var(--ink-2); font-size: 0.9875rem; line-height: 1.55; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 0.9875rem; }
.btn:hover { text-decoration: none; }
.btn-ink { background: var(--move); color: var(--move-ink); }
.btn-ink:hover { box-shadow: 0 0 26px rgb(255 214 10 / 0.4); }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); background: var(--raised); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- closing: the three steps */
.closing { overflow: clip; text-align: center; }
.closing::after { content: ""; position: absolute; left: 50%; bottom: -260px; width: 1100px; height: 520px; translate: -50% 0; background: radial-gradient(closest-side, rgb(75 93 255 / 0.32), transparent); pointer-events: none; z-index: -1; }
.closing h2 { margin-bottom: 48px; }
.setup { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 16px; counter-reset: step; text-align: left; }
.setup li { counter-increment: step; position: relative; padding: 24px 24px 24px 70px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 85%, transparent); box-shadow: inset 0 0 0 1px var(--line-2); }
.setup li::before { content: counter(step); position: absolute; left: 24px; top: 24px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; font: 600 0.875rem var(--sans); color: var(--move-ink); background: var(--move); }
.setup h3 { font-size: 1.125rem; margin-bottom: 12px; }
.setup p { color: var(--ink-2); }
.setup p code { white-space: nowrap; }
.setup .cmd + .cmd { margin-top: 8px; }
.setup p + .cmd { margin-top: 12px; }
.team { max-width: 820px; margin: 44px auto 0; padding-top: 32px; border-top: 1px solid var(--line); text-align: left; }
.team h3 { font-size: 1.125rem; margin-bottom: 14px; }
.team p { color: var(--ink-2); margin-top: 12px; }
.team .cmd + .cmd { margin-top: 8px; }
.team p + .cmd { margin-top: 12px; }

/* ---------- foot */
.foot { border-top: 1px solid var(--line); padding: 36px 0 56px; font-size: 0.9375rem; color: var(--ink-3); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

/* ---------- the page that is not there */
.lost { min-height: 100vh; display: grid; align-items: center; text-align: center; }
.lost h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.lost .sub { margin-inline: auto; }

/* ---------- docs: a column to read, its sections listed beside it on a wide screen */
.doc { padding: 72px 0 120px; }
.doc-grid { display: grid; gap: 40px; }
@media (min-width: 1020px) { .doc-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 72px; } }
.doc-nav { display: none; font-size: 0.9375rem; }
@media (min-width: 1020px) { .doc-nav { display: block; position: sticky; top: 96px; align-self: start; } }
.doc-nav p { font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.doc-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; border-left: 1px solid var(--line); }
.doc-nav a { display: block; padding-left: 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-3); line-height: 1.35; }
.doc-nav a:hover { color: var(--ink); border-left-color: var(--ink-3); text-decoration: none; }
.doc-nav .back { display: inline-block; margin-top: 28px; color: var(--ink-2); }
.doc-body { max-width: 46rem; }
.doc-crumb { font-size: 0.9375rem; color: var(--ink-3); margin-bottom: 18px; }
.doc-crumb a { color: var(--ink-2); }
.doc-body h1 { font-size: clamp(2.125rem, 4.6vw, 3.25rem); }
.doc-body .lede { margin-top: 20px; }
.doc-body h2 { margin-top: 76px; padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.15; scroll-margin-top: 84px; }
.doc-body h3 { margin-top: 36px; font-size: 1.125rem; }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body h2 + p, .doc-body h3 + p, .doc-body p + p, .doc-body ul + p, .doc-body ol + p, .doc-body dl + p, .doc-body .who + p { margin-top: 14px; }
.doc-body ul, .doc-body ol { margin-top: 14px; padding-left: 1.3em; display: grid; gap: 8px; }
.doc-body li::marker { color: var(--ink-3); }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body p code, .doc-body li code, .doc-body dd code { white-space: nowrap; }
.doc-body li code { color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 5px; padding: 0.08em 0.36em; }

/* What a person types in a chat, set as the tools show a prompt: the yellow is theirs, "your move". */
.says { margin-top: 20px; display: grid; gap: 10px; }
.says > div { display: grid; gap: 8px 28px; padding: 18px 20px; border-radius: 12px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 720px) { .says > div { grid-template-columns: 16.5rem minmax(0, 1fr); align-items: baseline; } }
.says dt { font: 500 0.9375rem/1.5 var(--mono); color: var(--ink); }
.says dt::before { content: "\276F\00a0"; color: var(--move); }
.says dd { color: var(--ink-2); font-size: 0.9875rem; line-height: 1.55; }

/* Who answers: one row for each, read across on a wide screen and down on a narrow one. */
.who { margin-top: 22px; display: grid; gap: 10px; }
.who > div { padding: 20px 22px; border-radius: 12px; background: linear-gradient(180deg, var(--raised), var(--surface)); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px 28px; }
@media (min-width: 720px) { .who > div { grid-template-columns: 11rem minmax(0, 1fr); } }
.who h3 { margin: 0; font-size: 1.0625rem; }
.who p { font-size: 0.9875rem; line-height: 1.55; }
.who p + p { margin-top: 8px; }

/* The docs' first page: its guides, one under another. */
.doc-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; }
.doc-body .doc-list { padding-left: 0; gap: 0; }
.doc-list li + li { border-top: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 1px solid var(--line); }
.doc-list a { display: grid; gap: 4px; padding: 20px 0; color: var(--ink); }
.doc-list a:hover { text-decoration: none; }
.doc-list a:hover b { color: var(--blue); }
.doc-list b { font-weight: 600; font-size: 1.125rem; }
.doc-list span { color: var(--ink-2); font-size: 0.9875rem; }
.doc-list small { color: var(--ink-3); font-size: 0.875rem; }
