/* brixlab.dev. Same forest-and-mint identity as the dashboard; the hero
   demo is the one loud element, everything else stays typographic. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f3f6f4;
  --ink: #13201d;
  --ink-2: #34443f;
  --muted: #5f716c;
  --line: #dde5e1;
  --brand: #17624d;
  --brand-hover: #12503f;
  --brand-soft: #e5f0ea;
  --forest: #0f3a31;
  --forest-2: #164a3e;
  --mint: #7fd1ad;
  --font:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-family: var(--font);
  font-size: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1513;
    --bg-alt: #121c19;
    --ink: #e4ede9;
    --ink-2: #c2d0ca;
    --muted: #93a6a0;
    --line: #24322d;
    --brand: #4bb088;
    --brand-hover: #5fc29a;
    --brand-soft: #18302a;
    --forest: #0a1f1a;
    --forest-2: #12302a;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--bg);
  padding: 8px 12px;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 640px;
}
h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}
h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
}
h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 680;
  margin-bottom: 28px;
}
h3 {
  font-size: 18px;
  font-weight: 640;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 14px;
  color: var(--ink-2);
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--brand-soft);
  border-radius: 5px;
  padding: 2px 6px;
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 600px;
}
.lede.small {
  font-size: 17px;
}
.fine {
  font-size: 14px;
  color: var(--muted);
  margin-top: 18px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 9px;
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  font-weight: 620;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
@media (prefers-color-scheme: dark) {
  .button {
    color: #07120f;
  }
}
.button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button.ghost:hover {
  background: var(--bg-alt);
}
.button.light {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--forest);
}
.button.light:hover {
  background: #98dcbd;
  border-color: #98dcbd;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.text-link {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 550;
  font-size: 15px;
}
.text-link:hover {
  color: var(--ink);
}
.text-link.strong {
  color: var(--brand);
  display: inline-block;
  margin-top: 8px;
}

/* Header and footer */
.site-header {
  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(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.mark {
  width: 26px;
  height: 26px;
  fill: var(--brand);
}
.site-header nav {
  display: flex;
  gap: 24px;
}
.site-header nav a,
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 550;
  font-size: 15px;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"],
.site-footer nav a:hover {
  color: var(--ink);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.footer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 32px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.site-footer p {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 14px;
}

/* Hero */
.hero {
  padding: 84px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  margin-bottom: 22px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--brand);
  margin-bottom: 18px;
}
.kicker .mark {
  width: 22px;
  height: 22px;
}
.product-hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
}

/* Hero demo */
.demo {
  margin: 0;
  background: var(--forest);
  border-radius: 20px;
  padding: 28px;
  position: relative;
}
.demo-window {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgb(0 0 0 / 28%);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.demo-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.demo-bar span {
  margin-left: 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 550;
}
.demo-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}
.demo-ask {
  margin: 0;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--ink);
}
.demo-ask span {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 4px;
}
.demo-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.demo-steps li {
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
}
.demo-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: inset 0 0 0 3px var(--brand-soft);
}
.demo-brick {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--mint);
  color: var(--forest);
}
.demo-brick-mark .mark {
  fill: var(--forest);
  width: 24px;
  height: 24px;
  display: block;
}
.demo-brick strong {
  display: block;
  font-size: 15px;
}
.demo-brick small {
  font-size: 12.5px;
  opacity: 0.8;
}
@media (prefers-reduced-motion: no-preference) {
  .demo-brick {
    animation: lay 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 500ms both;
  }
}
@keyframes lay {
  from {
    transform: translateY(-60px) rotate(-2deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* Sections */
.section {
  padding: 88px 0;
}
.section.alt,
.band {
  background: var(--bg-alt);
}
.band {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cols {
  display: grid;
  gap: 40px 48px;
}
.cols.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cols.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cols p {
  color: var(--muted);
  margin: 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}
.flow {
  list-style: none;
  counter-reset: flow;
  margin: 0;
  padding: 0;
}
.flow li {
  counter-increment: flow;
  position: relative;
  padding: 0 0 26px 52px;
}
.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.flow strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}
.flow p {
  color: var(--muted);
  margin: 0;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
}
.checks li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.code {
  margin: 0;
  background: var(--forest);
  color: #d9ebe2;
  border-radius: 14px;
  padding: 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
}
.code code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.code .k {
  color: #7fd1ad;
}
.code .s {
  color: #f2d49b;
}
.code .c {
  color: #8fb3a3;
}

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.product {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
}
a.product:hover {
  border-color: var(--brand);
}
.product strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}
.product > span:nth-child(2) > span {
  color: var(--muted);
  font-size: 15px;
}
.product-mark {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
}
.product-mark.empty {
  background: var(--bg-alt);
  border: 1px dashed var(--line);
}
.muted-product strong {
  color: var(--ink-2);
}
.tag {
  font-size: 12.5px;
  font-weight: 650;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--brand-soft);
  color: var(--brand);
  white-space: nowrap;
}
.tag.quiet {
  background: var(--bg-alt);
  color: var(--muted);
}

/* Closing call to action */
.cta {
  background: var(--forest);
  padding: 64px 0;
}
.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta h2 {
  color: #fff;
  margin: 0;
  max-width: 640px;
}

/* Docs */
.docs-index {
  padding-top: 64px;
}
.docs-index h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 12px;
}
.docs-index .products {
  margin-top: 32px;
}
.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 80px;
}
.toc {
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  font-size: 14px;
}
.toc-title {
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 12px;
}
.toc-title a {
  color: inherit;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.toc li a {
  display: block;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.4;
}
.toc li a:hover {
  background: var(--bg-alt);
  color: var(--ink);
}
.prose h1 {
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 20px;
}
.prose h2 {
  font-size: 26px;
  margin: 56px 0 16px;
  scroll-margin-top: 90px;
}
.prose h2 a {
  color: inherit;
  text-decoration: none;
}
.prose h3 {
  margin: 32px 0 10px;
}
.prose section {
  scroll-margin-top: 90px;
}
.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.prose li {
  margin: 6px 0;
}
.prose pre {
  background: var(--forest);
  color: #d9ebe2;
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
}
.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.prose th {
  background: var(--bg-alt);
}
.prose blockquote {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--brand);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .cols.three {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .toc {
    position: static;
    max-height: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
  }
}
@media (max-width: 720px) {
  .wrap {
    padding: 0 16px;
  }
  .header-row {
    gap: 16px;
  }
  .site-header nav {
    gap: 16px;
  }
  .header-actions .text-link {
    display: none;
  }
  .hero {
    padding: 48px 0 64px;
  }
  .section {
    padding: 64px 0;
  }
  .cols.two,
  .products {
    grid-template-columns: minmax(0, 1fr);
  }
  .demo {
    padding: 14px;
  }
  .demo-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .product {
    grid-template-columns: auto 1fr;
  }
  .product .tag {
    grid-column: 2;
    justify-self: start;
  }
  .site-footer p {
    margin-left: 0;
  }
}
