/* QLLM commercial site in the Quoqo brand (quoqo.com): plum, plum-grey ink, lilac lines,
   warm off-white ground, amber accents, Manrope + IBM Plex Mono. Same design as app-qllm.quoqo.app.
   New file name on purpose: /assets/* is served immutable for a year (see _headers). */
:root {
  color-scheme: light;
  --ground: #fbf9f7;
  --paper: #ffffff;
  --wash: #f5f0f4;
  --soft: #efe9ee;
  --ink: #3b0a37;
  --body: #4a4250;
  --muted: #6b6270;
  --line: #eae3e8;
  --line-strong: #d9cdd6;
  --plum: #3b0a37;
  --plum-mid: #561650;
  --plum-light: #6a2a63;
  --plum-deep: #2e0729;
  --lilac: #e9dde7;
  --amber: #a35500;
  --amber-bright: #f5be1a;
  --amber-soft: #fdf1cc;
  --orange: #e8820c;
  --font: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 16px;
  --shadow: 0 24px 60px -32px rgba(59, 10, 55, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--ground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: 0.92em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 249, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  width: min(1200px, calc(100% - 48px)); margin: 0 auto; min-height: 72px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.nav-links { display: flex; gap: 6px; font-size: 15px; font-weight: 600; color: var(--body); }
.nav-links a { padding: 10px 12px; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--amber); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.button, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--plum); border-radius: 10px;
  background: var(--plum); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.button:hover, button:hover { background: var(--plum-mid); border-color: var(--plum-mid); }
.button.secondary { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--wash); }
.button.dark { background: var(--plum-deep); border-color: var(--plum-deep); }
.button.large { min-height: 50px; padding: 12px 22px; font-size: 16px; }

/* Labels */
.eyebrow, .kicker {
  display: inline-block; width: fit-content; margin-bottom: 14px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber);
}
.on-dark .eyebrow, .eyebrow.on-dark, .kicker.on-dark { color: var(--amber-bright); }

/* Hero */
.hero { padding: 88px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 22px; font-size: clamp(40px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; max-width: 640px; }
.hero-copy { margin: 0; max-width: 580px; color: var(--body); font-size: 19px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.hero-preview { border: 1px solid var(--line); border-radius: 18px; background: var(--wash); padding: 14px; box-shadow: var(--shadow); }
.preview-window { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.preview-bar, .preview-composer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.preview-bar { border-bottom: 1px solid var(--line); }
.preview-composer { border-top: 1px solid var(--line); }
.preview-model { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.preview-chip { font-size: 12px; font-weight: 700; color: var(--plum-mid); background: var(--soft); padding: 4px 10px; border-radius: 999px; }
.preview-body { padding: 18px 16px; display: grid; gap: 14px; }
.preview-question { justify-self: end; max-width: 78%; background: var(--plum); color: #fff; font-size: 14px; line-height: 1.5; padding: 10px 14px; border-radius: 14px 14px 4px 14px; }
.preview-answer { width: 86%; display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; }
.skeleton { display: block; height: 9px; background: var(--soft); border-radius: 6px; }
.preview-sources { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.preview-sources span { font-family: var(--mono); font-size: 11.5px; color: var(--body); background: var(--wash); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; }
.preview-composer > span:first-child { flex: 1; font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.preview-send { font-size: 14px; font-weight: 700; color: #fff; background: var(--plum); border-radius: 10px; padding: 10px 16px; }

.hero-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero-strip div { padding: 24px 18px 22px 0; }
.hero-strip strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.hero-strip span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--wash); }
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; margin-bottom: 32px; }
.section-head h2, .section h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 12px; }
.section-head h2 { max-width: 780px; }
.section-head p, .split p { max-width: 720px; color: var(--body); font-size: 17px; line-height: 1.6; }
.section-head p a, .notice a { color: var(--plum-mid); text-decoration: underline; }

.grid { display: grid; gap: 16px; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 24px; }
.card h3 { margin-bottom: 10px; font-size: 19px; letter-spacing: -0.01em; }
.card p, .card li { color: var(--body); font-size: 15px; line-height: 1.6; }
.card.dark { background: var(--plum); border-color: var(--plum); color: var(--lilac); }
.card.dark h3, .card.dark strong, .card.dark .price { color: #fff; }
.card.dark p, .card.dark li { color: var(--lilac); }
.card.featured { border: 2px solid var(--plum); }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--soft); color: var(--plum-mid); display: grid; place-items: center; margin-bottom: 14px; }
.feature-card .eyebrow { margin-bottom: 8px; }

.tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--soft); color: var(--plum-mid); font-size: 12px; font-weight: 700;
}
.tag.gold { background: var(--amber-soft); color: #7a4a00; }
.tag.blue { background: var(--plum); color: #fff; }
.card.dark .tag.gold { background: var(--amber-bright); color: var(--plum); }
.card .tag + h3 { margin-top: 14px; }

.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; }
.list li::before { content: "✓"; color: var(--amber); font-weight: 700; }
.card.dark .list li::before { color: var(--amber-bright); }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 40px; align-items: center; }
.split > * { min-width: 0; }

.terminal {
  margin: 0; padding: 22px; overflow: auto; white-space: pre;
  border: 1px solid var(--plum-mid); border-radius: var(--radius); background: var(--plum-deep); color: #f3eef2;
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
}

/* Dark band */
.band-dark { background: var(--plum); color: var(--lilac); }
.band-dark h2, .band-dark strong { color: #fff; }
.band-dark p { color: var(--lilac); }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: flex; gap: 16px; }
.steps p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; }
.step-num { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--plum-light); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; }

/* Tables and notices */
.metric-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.metric-table th, .metric-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
.metric-table th { background: var(--wash); color: var(--muted); font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.metric-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.notice { border-top: 4px solid var(--amber-bright); background: var(--paper); border-radius: 12px; padding: 18px 20px; color: var(--body); line-height: 1.6; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price { margin: 8px 0; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.card .price + p { margin-top: 8px; }
.card .list + .button { margin-top: 24px; }
.pricing-note { margin: 24px 0 0; }

/* Quoqo SSO band */
.sso-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: 48px; border-radius: 24px; background: var(--soft); border-top: 5px solid var(--amber-bright);
}
.sso-band h2 { font-size: 32px; margin-bottom: 8px; }
.sso-band p { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.6; }
.sso-band .hero-actions { margin-top: 0; }

/* Footer */
.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--amber); }

/* Model catalog (rendered from the JSON block in /models/) */
.family-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.family-nav a, .family-count {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600;
}
.family-nav a:hover { background: var(--wash); }
.family-count { border-color: var(--plum); background: var(--plum); color: #fff; }
.family-nav a span { color: var(--muted); }
.model-family { padding-top: 44px; scroll-margin-top: 96px; }
.family-head { margin-bottom: 18px; }
.family-head h3 { margin-bottom: 6px; font-size: 26px; letter-spacing: -0.02em; }
.family-head p { margin: 0; color: var(--body); line-height: 1.6; }
.model-card { display: grid; gap: 14px; }
.model-card .meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.model-card h3 { margin: 0; }
.model-card.catalog { display: flex; flex-direction: column; gap: 12px; }
.model-card.catalog h3 { font-size: 18px; line-height: 1.3; }
.model-card.catalog .tag { flex: none; white-space: nowrap; }
.model-card.catalog p { margin: 0; }
.model-id { align-self: flex-start; max-width: 100%; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--wash); color: var(--body); font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.model-detail strong { color: var(--ink); }
.model-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.model-facts dt { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.model-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }

@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr; padding: 14px 0; gap: 10px; }
  .nav-links, .nav-actions { flex-wrap: wrap; }
  .nav-links a { padding: 8px 10px 8px 0; }
  .hero { padding-top: 48px; }
  .hero-grid, .split, .grid.four, .grid.three, .grid.two, .pricing { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 64px 0; }
  .section-head { display: block; }
  .sso-band { padding: 28px; }
  .preview-answer { width: 100%; }
}
