/* CPQbot — YC SaaS landing. White, air, one wordmark. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --pill: #f4f4f5;
  --pill-ink: #3f3f46;
  --btn: #0a0a0a;
  --btn-ink: #ffffff;
  --shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 24px 64px -28px rgba(10, 10, 10, 0.18);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --measure: 68rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #e4e4e7; color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 0.18em; }
a:hover { color: #27272a; }
a:focus-visible, button:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--pill);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.35em;
  word-break: break-all;
  color: var(--ink-2);
}
.sr, .skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
}
.skip {
  background: var(--ink);
  color: var(--btn-ink);
  padding: 0.4rem 0.7rem;
  z-index: 20;
  text-decoration: none;
  font-weight: 550;
  border-radius: 8px;
}
.skip:focus { top: 0.6rem; }
.wrap {
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.bar-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.5rem;
}
.mark {
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
}
.mark:hover { color: var(--ink); }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.35rem; margin-left: auto; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 450;
}
nav a:hover { color: var(--ink); }
.bar .btn-sm { margin-left: 0.25rem; }

.hero { padding: 5.5rem 0 4.5rem; }
.hero-copy {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}
h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.35rem, 1.6rem + 3.4vw, 4.15rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.lede {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}
.cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn);
  color: var(--btn-ink);
  text-decoration: none;
  border: 1px solid var(--btn);
  font: 500 0.9rem/1 var(--sans);
  padding: 0.7rem 1rem;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: #262626; border-color: #262626; color: var(--btn-ink); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--pill); color: var(--ink); border-color: var(--line-strong); }
.btn-sm {
  padding: 0.42rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #fcfcfc;
}
.demo-chrome .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #e4e4e7;
}
.demo-title {
  margin-left: 0.55rem;
  font-size: 0.75rem;
  color: var(--faint);
  letter-spacing: -0.01em;
}
.demo-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 22rem;
}
.demo-in, .demo-out { padding: 1.1rem 1.15rem 1.2rem; }
.demo-in { border-right: 1px solid var(--line); }
.samples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 0.15rem;
}
.samples button {
  background: var(--pill);
  color: var(--pill-ink);
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 0.78rem/1 var(--sans);
  padding: 0.32rem 0.65rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.samples button:hover {
  background: #ececee;
  color: var(--ink);
}
textarea {
  width: 100%;
  min-height: 14.5rem;
  resize: vertical;
  background: #fafafa;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 0.86rem/1.5 var(--sans);
  padding: 0.75rem 0.85rem;
}
textarea::placeholder { color: var(--faint); }
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.demo-out { background: #fcfcfc; }
.out-empty {
  margin: 0;
  color: var(--faint);
  font-size: 0.92rem;
}
.out-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.8rem;
}
.pill {
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  color: var(--pill-ink);
}
.pill.kind { background: var(--ink); color: var(--btn-ink); border-color: var(--ink); }
.pill.warn { color: #7c2d12; border-color: #fed7aa; background: #fff7ed; }
.out-reply {
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.85rem;
  margin: 0;
}
.out-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.demo-caption {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--faint);
}
#engine-tag { color: var(--muted); }

.features { padding: 1rem 0 5rem; }
.features .label { margin: 0 0 0.25rem; }
.feature {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1.25rem 2.5rem;
  padding: 2.1rem 0;
  border-top: 1px solid var(--line);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 575;
  letter-spacing: -0.03em;
}
.feature p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.02rem;
}

.install { padding: 0 0 5.5rem; }
.install-h {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  letter-spacing: -0.035em;
  font-weight: 600;
}
.install-lede {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: var(--muted);
}
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.4rem;
}
.card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.card ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-2);
}
.card li + li { margin-top: 0.55rem; }
.card-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.foot {
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}
.foot-meta, .foot p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.65rem 1.05rem; }
.foot .mark { font-size: 0.95rem; color: var(--ink); }

@media (max-width: 880px) {
  .hero { padding: 3.25rem 0 3.25rem; }
  .bar-inner { min-height: 3.15rem; }
  .bar nav { display: none; }
  .demo-body, .install-grid, .feature {
    grid-template-columns: 1fr;
  }
  .demo-in { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature { gap: 0.4rem; padding: 1.5rem 0; }
  .cta .btn { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  .bar .btn-sm { display: none; }
  textarea { min-height: 12rem; }
}
