/* Qrow landing page.
   Colors: Qrow "One Dark" theme (src/one-dark.json).
   Fonts: the app defaults. */

@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #27292e; /* the panel color as stored in the screenshot, so both render the same */
  --chrome: #30343c;
  --hover: #3b414c;
  --border: #3b414c;
  --fg: #abb2bf;
  --fg-strong: #d7dae0;
  --muted: #969eae;
  --primary: #61afef;
  --primary-fg: #1e2024;
  --primary-hover: #78baf2;
  --primary-active: #528bcc;

  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 6px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
/* No scroll anchoring: content that a selection adds or removes must not move the view. */
html { -webkit-text-size-adjust: 100%; overflow-anchor: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* Buttons (GPUI Kit Button: 6 px radius, medium label, 16 px icon) */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border: 0; border-radius: var(--radius);
  font: 500 14px/1 var(--sans);
  color: var(--fg); background: transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.12s, color 0.12s;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-active); }
.btn-lg { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-secondary { background: var(--chrome); color: var(--fg-strong); box-shadow: inset 0 0 0 1px var(--border); }
.btn-secondary:hover { background: var(--hover); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { background: var(--hover); color: var(--fg-strong); }
.btn-sm { height: 24px; padding: 0 8px; font-size: 13px; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { position: relative; padding: 80px var(--gutter) 0; text-align: center; }
.app-icon { margin: 0 auto; border-radius: 22px; }
h1 { margin: 20px 0 0; color: var(--fg-strong); font-size: clamp(40px, 6vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; }
.lede { margin: 12px 0 0; font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 24px; }
.install a:not(.btn) { color: var(--primary); }
.install a:not(.btn):hover { text-decoration: underline; }

/* Screenshot with a soft shadow. */
.stage {
  max-width: 1200px; margin: 40px auto 0;
  margin-inline: max(var(--gutter), calc((100% - 1200px) / 2));
}
.shot { margin: 0; }
.shot img { width: 100%; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5)); }

/* Install */
.install { max-width: calc(720px + 2 * var(--gutter)); margin: 96px auto 0; padding: 0 var(--gutter); scroll-margin-top: 24px; }
h2 { margin: 0; color: var(--fg-strong); font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.selectors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.segmented {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--chrome); border-radius: calc(var(--radius) + 3px); box-shadow: inset 0 0 0 1px var(--border);
}
.segment {
  height: 28px; padding: 0 14px; border: 0; border-radius: var(--radius);
  font: 500 14px/1 var(--sans); color: var(--muted); background: transparent; cursor: pointer;
  transition: background-color 0.12s, color 0.12s;
}
.segment:hover { color: var(--fg-strong); }
.segment[aria-selected="true"], .segment[aria-checked="true"] { background: var(--hover); color: var(--fg-strong); }
.panel { margin-top: 24px; }
.panel-title { margin: 40px 0 0; color: var(--fg-strong); font-size: 18px; font-weight: 600; }
.has-script .panel-title { display: none; }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.has-script .downloads { margin-top: 0; align-items: center; column-gap: 12px; }
.has-script .panel-title + .command { margin-top: 0; }
.alternative > .downloads { margin-top: 12px; }
.file-name { min-width: 0; overflow-wrap: anywhere; font-size: 13px; color: var(--muted); }
.steps { margin: 20px 0 0; padding-left: 22px; }
.steps li + li { margin-top: 4px; }
b { color: var(--fg-strong); font-weight: 500; }
code { font: 13px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--fg-strong); }
.note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
/* A package manager is another way to install, so it stays closed until the visitor asks for it. */
.alternative { margin-top: 20px; }
.alternative summary {
  display: inline-flex; align-items: center; gap: 6px; margin-left: -8px; padding: 4px 8px;
  border-radius: var(--radius); list-style: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--fg);
  transition: background-color 0.12s, color 0.12s;
}
.alternative summary::-webkit-details-marker { display: none; }
.alternative summary:hover { background: var(--hover); color: var(--fg-strong); }
.chevron { transition: transform 0.12s; }
.alternative[open] .chevron { transform: rotate(90deg); }
.command {
  position: relative; margin-top: 12px; padding: 10px 12px;
  background: var(--chrome); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--border);
}
.command-label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
/* Keep the first line clear of the Copy button. */
.command pre { margin: 0 52px 0 0; overflow-x: auto; }
.command .copy { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); }

/* Status bar footer */
.statusbar { margin-top: 96px; background: var(--chrome); border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.statusbar-inner {
  /* Same width as the screenshot, so the text lines up with its edges. */
  max-width: calc(1200px + 2 * var(--gutter)); min-height: 36px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.status-right { display: flex; align-items: center; gap: 2px; margin-right: -8px; }
.statusbar-inner > .status-item { padding-left: 0; }
.status-item { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--radius); color: var(--muted); }
a.status-item:hover { background: var(--hover); color: var(--fg-strong); }

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 48px; }
  .app-icon { width: 80px; height: 80px; border-radius: 18px; }
  .lede { font-size: 16.5px; }
  .stage { margin-top: 32px; }
  .install { margin-top: 64px; }
  .statusbar { margin-top: 64px; }
}
