/* zqm.sh — the landing stylesheet.
 *
 * A stylesheet is served to every visitor, so its comments are public copy and are scanned
 * as such. Keep what is here to what someone editing this file needs.
 *
 * Two palettes, on purpose. The page chrome (nav, hero, frame, footer) is the dark set
 * below; the app shot inside the frame carries its own light palette inline, because it
 * is a picture of the product rather than part of the page's skin.
 *
 * The spectrum is the brand hairline, and the fill inside the mock's app tile. Never a
 * fill behind text — it fails contrast at most of its stops.
 */

:root {
  --bg: #14141c;
  --panel: #181822;
  --panel-2: #1b1b26;
  --line: #23232f;
  --line-2: #2c2c3a;
  --ink: #eceaf2;
  --ink-2: #f4f3f8;
  --muted: #b8b5c6;
  --muted-2: #9a97a8;
  --muted-3: #75727f;
  --accent: #7d7aef;
  --green: #5fae3a;
  --amber: #d29a3a;
  --spectrum: linear-gradient(90deg, #c4122f, #e6471d, #f29400, #f5cf00, #5fae3a, #0a8f8f, #1f6fb2, #5b3a96, #a8228a);
  --sans: 'Instrument Sans', ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
html { color-scheme: dark; }
body {
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }

.spectrum { height: 3px; background: var(--spectrum); }

/* ---- chrome ---------------------------------------------------------------- */

.page { min-height: 100vh; display: flex; flex-direction: column; }

nav.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; object-fit: contain; display: block; }
.wordmark { font-family: var(--mono); font-weight: 500; font-size: 15.5px; letter-spacing: -.02em; }
nav.top .links { display: flex; align-items: center; gap: 14px; }
.chip {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted-2);
  border: 1px solid var(--line-2); border-radius: 5px; padding: 4px 9px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #3a3a4c; background: #1e1e2a; color: var(--ink);
  font-size: 13.5px; font-weight: 500; padding: 8px 16px; border-radius: 8px;
}
.btn-ghost { background: transparent; }
.btn.me { font-family: var(--mono); font-size: 13px; padding: 6px 12px 6px 8px; }
.btn.me img { border-radius: 50%; display: block; }

/* ---- hero ------------------------------------------------------------------ */

.hero { position: relative; padding: 88px 56px 52px; }
.hero .accent {
  position: absolute; top: 0; left: 56px; width: 120px; height: 3px;
  border-radius: 2px; background: var(--spectrum); opacity: .9;
}
.kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em;
  color: var(--accent); margin-bottom: 34px;
}
.hero h1 {
  margin: 0; font-size: clamp(38px, 5.4vw, 80px); line-height: 1.02;
  font-weight: 600; letter-spacing: -.04em; color: var(--ink-2);
  text-wrap: balance; max-width: 14ch;
}
.hero p.lede { margin: 26px 0 0; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.hero p.runs { margin: 14px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted-3); max-width: 560px; }

/* ---- the framed app shot --------------------------------------------------- */

/* The caption is required, not decoration: the shot depicts sessions, teammates and
 * features that do not exist yet. It hides together with the shot below 1100px — a
 * caption with nothing above it reads as a broken page. */
.shot-note {
  flex: none; margin: 0 56px 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted-3);
}

.frame-wrap { flex: 1; min-height: 440px; position: relative; margin: 0 56px; }
.frame {
  position: absolute; inset: 0; border: 1px solid var(--line-2); border-bottom: none;
  border-radius: 12px 12px 0 0; overflow: hidden; background: var(--panel);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.frame-bar {
  display: flex; align-items: center; gap: 9px; padding: 11px 16px;
  background: var(--panel-2); border-bottom: 1px solid #262632;
}
.frame-bar .pip { width: 10px; height: 10px; border-radius: 50%; background: #33333f; }
.frame-bar .url {
  display: flex; align-items: center; gap: 7px; background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 14px;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted-2);
}
.frame-body { position: absolute; top: 37px; left: 0; right: 0; bottom: 0; overflow: hidden; }
.frame-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 170px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 20, 28, 0), rgba(20, 20, 28, .94));
}

/* ---- footer ---------------------------------------------------------------- */

footer.foot {
  margin-top: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 26px; padding: 16px 32px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted-3);
}
footer.foot .sep { color: var(--line-2); }

/* ---- document pages (/welcome) --------------------------------------------- */

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-2);
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.doc { width: 100%; max-width: 820px; margin: 0 auto; padding: 64px 32px 96px; }
.doc h1 {
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 600;
  letter-spacing: -.03em; margin: 10px 0 0; color: var(--ink-2);
}
.doc p { margin: 16px 0 0; font-size: 16px; line-height: 1.68; color: var(--muted); }
.doc strong { color: var(--ink); }
.doc a.link { border-bottom: 1px solid var(--line-2); }

code {
  font-family: var(--mono);
  font-size: .92em; color: var(--ink); background: var(--line);
  border-radius: 4px; padding: 1px 6px;
}

.note {
  margin: 24px 0 0; padding: 16px 18px; border: 1px solid var(--line-2);
  border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0;
  background: var(--panel); font-size: 14.5px; line-height: 1.6; color: var(--muted);
}
.note strong { font-weight: 600; color: var(--ink); }

/* ---- responsive ------------------------------------------------------------ */

@media (max-width: 900px) {
  nav.top { padding: 12px 20px; }
  .hero { padding: 56px 20px 36px; }
  .hero .accent { left: 20px; }
  .shot-note { margin: 0 20px 10px; }
  .frame-wrap { margin: 0 20px; min-height: 320px; }
  .doc { padding: 44px 20px 72px; }
  footer.foot { padding: 14px 20px; }
}

/* The mock is a fixed-width composition; below its natural width it is decoration, and a
   squashed version reads as a broken app rather than as a product shot. */
@media (max-width: 1100px) {
  .frame-wrap, .shot-note { display: none; }
}
