/* Queue Tidy site. Layout: one centred column, a two-part hero with a live-looking queue, then plain sections. */
:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --sunk: #edf2ef;
  --line: #d7e0dc;
  --ink: #12211d;
  --muted: #4f625c;
  --brand: #14322b;
  --accent: #1d8a63;
  --accent-soft: #dff3ea;
  --warn-soft: #fbefd9;
  --warn: #8a5a00;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1715;
    --surface: #15201d;
    --sunk: #1b2925;
    --line: #2a3a35;
    --ink: #e5eeea;
    --muted: #9db0aa;
    --brand: #7fd6b0;
    --accent: #5fcc9c;
    --accent-soft: #173a2e;
    --warn-soft: #33280f;
    --warn: #e8bb5c;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0f1715; } }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }

/* Hero */
.hero { padding-block: 64px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: .9rem; color: var(--muted); }

/* The queue illustration */
.queue { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 18px 40px -24px rgba(18, 33, 29, .35); min-width: 0; }
.queue-head { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); padding: 0 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.ticket { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 10px; border-radius: 10px; }
.ticket + .ticket { margin-top: 4px; }
.ticket .key { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.ticket .title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip-open { background: var(--sunk); color: var(--muted); }
.chip-dup { background: var(--warn-soft); color: var(--warn); }
.chip-merged { background: var(--accent-soft); color: var(--accent); }
.ticket.dup { background: var(--warn-soft); }
.ticket.merged { opacity: .55; }
.ticket.merged .title { text-decoration: line-through; }
.queue-note { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: .9rem; }

/* Sections */
section { padding-block: 56px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; max-width: 46em; }
.section-head p { color: var(--muted); }
.band { background: var(--surface); border-block: 1px solid var(--line); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 1.1rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.steps p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feature p { color: var(--muted); font-size: .96rem; }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.trust ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .96rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--sunk); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* Document pages (support, privacy, EULA) */
.doc { padding-block: 48px 64px; }
.doc .wrap { display: flex; flex-direction: column; gap: 18px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.doc h2 { font-size: 1.3rem; margin-top: 18px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.meta { color: var(--muted); font-size: .95rem; }
.callout { background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap, .trust { grid-template-columns: 1fr; }
  .steps, .features { grid-template-columns: 1fr; }
  .hero { padding-block: 40px; }
}
@media (max-width: 520px) {
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
}
