/* Toolcue developer site. Plain CSS, system fonts, light and dark from the system setting. One accent: the green
   of a cue light ("go"), used for actions and highlights; text links use the darker or lighter shade for contrast. */

:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --surface: #F5F6F5;
  --surface-2: #ECEEEC;
  --card: #FFFFFF;
  --border: #E2E5E2;
  --border-strong: #CDD2CE;
  --text: #0B0D0C;
  --muted: #5E6762;
  --accent: #15803D;          /* links and accents on light (5.0:1) */
  --accent-fill: #16A34A;     /* button fill */
  --accent-on: #FFFFFF;
  --accent-soft: #E9F7EE;
  --warn-soft: #FFF6E0;
  --warn: #8A5300;
  --danger: #B42318;
  --code-bg: #F5F6F5;
  --tk-s: #0B7A3E; --tk-k: #7A3FD6; --tk-n: #B35900; --tk-w: #1D4ED8; --tk-c: #6E7772;
  --radius: 12px;
  --radius-sm: 8px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wide: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0B0B;
    --surface: #121414;
    --surface-2: #1A1D1C;
    --card: #101211;
    --border: #232826;
    --border-strong: #333A37;
    --text: #EEF1EF;
    --muted: #96A09A;
    --accent: #4ADE80;
    --accent-fill: #3DDC84;
    --accent-on: #04130A;
    --accent-soft: #10241A;
    --warn-soft: #2A2110;
    --warn: #F0C25A;
    --danger: #FF8F85;
    --code-bg: #101211;
    --tk-s: #7EE787; --tk-k: #D2A8FF; --tk-n: #FFA657; --tk-w: #79B8FF; --tk-c: #7D8782;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
code, pre, kbd { font-family: var(--mono); }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -48px; background: var(--text); color: var(--bg); padding: 8px 12px;
  border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------------------------------------- header, footer */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.top-inner { max-width: var(--wide); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; flex: none; }
.brand img { display: block; }
.wordmark { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 15px;
  white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.foot { border-top: 1px solid var(--border); margin-top: 96px; }
.foot-inner { max-width: var(--wide); margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between; font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot strong a, .foot span a { color: var(--text); }

/* ------------------------------------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px;
  border-radius: 10px; background: var(--accent-fill); color: var(--accent-on); font-weight: 650; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn-small { padding: 7px 14px; font-size: 14px; border-radius: 9px; flex: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); filter: none; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ------------------------------------------------------------------------------------------------ landing */
.section { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding-top: 88px; padding-bottom: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fill);
  box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.7rem); line-height: 1.04; letter-spacing: -0.035em; margin: 18px 0 20px;
  text-wrap: balance; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; margin: 0 0 28px; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.demo { margin: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--card); overflow: hidden;
  box-shadow: 0 1px 0 var(--border), 0 24px 48px -28px rgb(0 0 0 / .35); }
.demo-turn { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.demo-label { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  margin-bottom: 10px; display: flex; justify-content: space-between; }
.demo-msg { font-size: 15px; background: var(--surface); border-radius: 12px 12px 12px 4px; padding: 10px 14px;
  display: inline-block; }
.demo-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.demo-tools li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline;
  font-family: var(--mono); font-size: 13.5px; padding: 7px 10px; border-radius: 8px; background: var(--surface); }
.demo-tools li span { font-size: 11px; font-weight: 650; letter-spacing: .04em; color: var(--muted); }
.demo-tools li.hit { background: var(--accent-soft); }
.demo-tools li.hit span { color: var(--accent); }
.demo-tools .why { grid-column: 1 / -1; font-family: var(--font); font-size: 12.5px; color: var(--muted); }
.demo-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; font-size: 13px;
  color: var(--muted); background: var(--surface); }
.demo-foot b { color: var(--text); font-variant-numeric: tabular-nums; }

.band { padding-top: 96px; }
.band h2 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 14px;
  text-wrap: balance; }
.band .lead { margin-bottom: 36px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--card); }
.stat b { display: block; font-size: 2.5rem; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .label { font-weight: 650; margin-top: 8px; }
.stat p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.stats-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--card); }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent); font: 700 14px var(--mono); }
.two { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2316A34A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 550;
  background: var(--card); color: var(--text); text-decoration: none; }
a.chip:hover { border-color: var(--accent); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.faq h3 { font-size: 1.02rem; margin: 0 0 6px; }
.faq p { margin: 0; color: var(--muted); font-size: 15px; }

/* waitlist */
.waitlist { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start;
  border: 1px solid var(--border); border-radius: 20px; padding: 40px; background: var(--card); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 9px; padding: 10px 12px; width: 100%; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0;
  border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { margin-top: 4px; accent-color: var(--accent-fill); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.form-foot p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; min-width: 220px; }
.form-msg { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.form-msg.ok { background: var(--accent-soft); }
.form-msg.err { background: var(--warn-soft); color: var(--text); }

/* -------------------------------------------------------------------------------------------------- docs */
.docs { max-width: 1320px; margin: 0 auto; padding: 40px 24px 0; display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 210px; gap: 48px; align-items: start; }
.narrow { max-width: 760px; margin: 0 auto; padding: 72px 24px 0; }
.side, .toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; font-size: 14px; }
.side-group + .side-group { margin-top: 24px; }
.side-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  margin-bottom: 8px; }
.side a, .toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 12px; border-left: 2px solid var(--border); }
.side a:hover, .toc a:hover { color: var(--text); }
.side a[aria-current="page"], .toc a.on { color: var(--text); border-left-color: var(--accent-fill); font-weight: 600; }
.toc a.toc-l3 { padding-left: 24px; font-size: 13px; }
.doc { min-width: 0; max-width: 780px; font-size: 16px; line-height: 1.7; }
.doc h1 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 20px;
  text-wrap: balance; }
.doc h2 { font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1.25; margin: 56px 0 14px; padding-top: 20px;
  border-top: 1px solid var(--border); }
.doc h3 { font-size: 1.18rem; margin: 36px 0 10px; letter-spacing: -0.01em; }
.doc h4 { font-size: 1rem; margin: 24px 0 8px; }
.doc .anchor { margin-left: 8px; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 400; }
.doc h2:hover .anchor, .doc h3:hover .anchor, .doc h4:hover .anchor, .doc .anchor:focus { opacity: 1; }
.doc p { margin: 12px 0; }
.doc ul, .doc ol { margin: 12px 0; padding-left: 24px; }
.doc li { margin: 6px 0; }
.doc li > p { margin: 6px 0; }
.doc :not(pre) > code { font-size: .86em; background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: .1em .4em; overflow-wrap: anywhere; }
.doc blockquote { margin: 20px 0; padding: 14px 18px; border-radius: 12px; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent-fill) 30%, transparent); }
.doc blockquote p { margin: 4px 0; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 18px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); }
th { background: var(--surface); font-size: 12.5px; font-weight: 650; color: var(--muted); text-transform: uppercase;
  letter-spacing: .04em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child code { white-space: nowrap; }
.codeblock { margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--code-bg);
  overflow: hidden; }
.codebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 8px 5px 14px;
  border-bottom: 1px solid var(--border); font: 12px var(--mono); color: var(--muted); }
.codeacts { display: flex; gap: 8px; align-items: center; }
.codebar .copy, .codebar .dl { font: 12px var(--font); color: var(--muted); background: var(--card); text-decoration: none;
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.codebar .copy:hover, .codebar .dl:hover { color: var(--text); border-color: var(--accent-fill); }
.codeblock pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; tab-size: 2; }
.tk-c { color: var(--tk-c); font-style: italic; } .tk-s { color: var(--tk-s); } .tk-k { color: var(--tk-k); }
.tk-n { color: var(--tk-n); } .tk-w { color: var(--tk-w); }

/* -------------------------------------------------------------------------------------------------- small */
@media (max-width: 1100px) {
  .docs { grid-template-columns: 190px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .hero, .two, .waitlist { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero { padding-top: 56px; }
  .stats, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .waitlist { padding: 24px; }
  .band { padding-top: 72px; }
}
@media (max-width: 760px) {
  .top-inner { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -10px; }
  .top-inner .btn-small { margin-left: auto; }
  .section, .narrow { padding-left: 16px; padding-right: 16px; }
  .docs { grid-template-columns: minmax(0, 1fr); padding: 24px 16px 0; gap: 20px; }
  .side { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .side-group + .side-group { margin-top: 0; }
  .side-title { display: none; }
  .side a { border: 0; padding: 4px 0; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .foot-inner { padding: 24px 16px; }
  html { scroll-padding-top: 120px; }
}
