/* Quill landing page. Tokens mirror the app's theme.css so the site and the
   app read as one thing: IBM Plex, a single indigo accent, light and dark. */
:root {
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --bg: #fbfbfa;
  --bg-canvas: #ecebe7;
  --bg-elevated: #ffffff;
  --bg-sidebar: #f4f3f1;
  --text: #1c1c1a;
  --text-strong: #1a1a1a;
  --text-muted: rgba(0, 0, 0, 0.55);
  --text-faint: rgba(0, 0, 0, 0.42);
  --accent: #4338ca;
  --accent-hover: #3730a3;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(67, 56, 202, 0.09);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --shadow-window: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 24px 60px rgba(0, 0, 0, 0.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131315;
    --bg-canvas: #0f0f10;
    --bg-elevated: #1b1b1d;
    --bg-sidebar: #151517;
    --text: #e8e6e1;
    --text-strong: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-faint: rgba(255, 255, 255, 0.4);
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-soft: rgba(99, 102, 241, 0.22);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --shadow-window: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 5px;
}
.muted { color: var(--text-muted); font-weight: 400; }

main { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 17px;
}
.brand img { border-radius: 7px; }
.top-download {
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
}
.top-download:hover { background: var(--accent-soft); color: var(--text-strong); }

/* Hero */
.hero { text-align: center; padding: 56px 0 40px; }
.hero-icon { border-radius: 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14); }
h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text-strong);
  margin: 26px auto 14px;
  max-width: 16em;
}
.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 34em;
  margin: 0 auto;
}
.cta { margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 500;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: 10px;
  transition: background 0.12s ease, transform 0.12s ease;
}
.button:hover { background: var(--accent-hover); color: var(--accent-contrast); transform: translateY(-1px); }
.cta-meta { margin: 12px 0 0; font-size: 13.5px; color: var(--text-faint); }

/* Screenshot / mock */
.shot { margin: 24px auto 0; }
.shot picture, .shot img { display: block; width: 100%; height: auto; }
.shot img, .mock {
  border-radius: 12px;
  box-shadow: var(--shadow-window);
}
.mock {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 480px;
  background: var(--bg-elevated);
  overflow: hidden;
  font-size: 13px;
  text-align: left;
}
.mock-sidebar { background: var(--bg-sidebar); border-right: 1px solid var(--border); padding: 14px 12px; }
.mock-lights { display: flex; gap: 8px; margin: 0 0 22px 2px; }
.mock-lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.mock-lights i:nth-child(1) { background: #ff736a; }
.mock-lights i:nth-child(2) { background: #febc2e; }
.mock-lights i:nth-child(3) { background: #19c332; }
.mock-h { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-faint); padding: 0 6px 6px; }
.mock-dir, .mock-file { padding: 4px 6px; border-radius: 6px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-dir { font-weight: 500; }
.mock-file.in { padding-left: 18px; color: var(--text-muted); }
.mock-file.sel { background: var(--accent-soft); color: var(--text-strong); }
.mock-main { display: flex; flex-direction: column; min-width: 0; }
.mock-tabs { display: flex; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.mock-tabs span { padding: 11px 16px; color: var(--text-muted); border-right: 1px solid var(--border); }
.mock-tabs span.on { color: var(--text-strong); box-shadow: inset 0 -2px 0 var(--accent); }
.mock-doc { flex: 1; padding: 34px 48px; overflow: hidden; font-size: 15px; line-height: 1.65; max-width: 640px; }
.mock-doc p { margin: 0 0 8px; }
.mock-h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-strong); margin-bottom: 10px; }
.mock-h2 { font-size: 18px; font-weight: 600; color: var(--text-strong); margin: 22px 0 6px; }
.mock .mark { font-family: var(--font-mono); font-size: 0.85em; color: var(--text-faint); opacity: 0.8; margin-right: 6px; }
.mock-quote { border-left: 2px solid var(--border-strong); padding-left: 14px; color: var(--text-muted); font-style: italic; margin-top: 14px; }
.mock-status { display: flex; justify-content: space-between; padding: 8px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-faint); }

/* Real window captures carry their own macOS shadow and transparent margin:
   no extra frame, and pull the margin in a little. */
.shot picture.real img { box-shadow: none; border-radius: 0; }
.shot picture.real { display: block; margin: -2% -4% -6%; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 24px 0 8px;
}
.gallery figure { margin: 0; }
.gallery picture, .gallery img { display: block; width: 100%; height: auto; }
.gallery picture.real { margin: -2% -4% -4%; width: 108%; }
.gallery figcaption { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
}

/* Why */
.why { max-width: 40em; padding: 72px 0 8px; }
.why h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-strong); margin: 0 0 12px; }
.why p { margin: 0 0 12px; font-size: 16.5px; color: var(--text-muted); }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 40px;
  padding: 40px 0 24px;
}
.feature h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
  margin: 0 0 6px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  line-height: 1.3;
}
.feature p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* Install */
.install { padding: 40px 0 72px; max-width: 34em; }
.install h2 { font-size: 20px; font-weight: 600; color: var(--text-strong); margin: 0 0 10px; }
.install ol { margin: 0; padding-left: 22px; color: var(--text-muted); }
.install li { margin: 4px 0; }

footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
}

@media (max-width: 760px) {
  .hero { padding-top: 32px; }
  .features { grid-template-columns: 1fr; gap: 26px; padding-top: 48px; }
  .mock { grid-template-columns: 1fr; height: 420px; }
  .mock-sidebar { display: none; }
  .mock-doc { padding: 24px 22px; }
}
