:root {
  color-scheme: light;
  --ink: #18181b;
  --body: #303633;
  --muted: #71717a;
  --paper: #ffffff;
  --paper-soft: #f4f4f5;
  --paper-sunk: #ebebec;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --brand: #34474e;
  --accent: #87a188;
  --success: #15803d;
  --warning: #b45309;
  --danger: #dc2626;
  --info: #2563eb;
  --code-dark: #202523;
  --code-dark-border: #111412;
  --code-light: #f5f1e5;
  --chrome-dot: #9fa7a2;
  --shadow: 0 24px 90px rgba(52, 71, 78, 0.12);
  --tile-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 22px 70px rgba(48, 57, 52, 0.14);
  --cta-shadow: 0 18px 70px rgba(52, 71, 78, 0.1);
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(244, 244, 245, 0.74) 0, rgba(255, 255, 255, 0) 440px),
    var(--paper);
}

img {
  max-width: 100%;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--brand);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--ink);
  border-radius: 8px;
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.landing-nav,
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  padding: 0 52px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.landing-nav nav,
.site-nav nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-nav nav a,
.site-nav nav a,
.button-primary,
.button-secondary,
.oss-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition-property: background-color, border-color, color, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-ghost,
.button-secondary,
.oss-actions a {
  background: var(--paper);
  color: var(--brand);
}

.nav-ghost {
  background: transparent;
  border: 0;
}

.button-secondary,
.oss-actions a {
  border: 1px solid var(--line);
}

.nav-solid,
.button-primary {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: var(--paper);
}

.nav-ghost:hover,
.button-secondary:hover,
.oss-actions a:hover {
  color: var(--ink);
}

.nav-ghost:hover {
  background: transparent;
}

.button-secondary:hover,
.oss-actions a:hover {
  background: var(--paper-soft);
  border-color: var(--line-strong);
}

.nav-solid:hover,
.button-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.page-meta a {
  color: inherit;
}

.landing-page {
  background:
    linear-gradient(180deg, rgba(244, 244, 245, 0.9) 0, rgba(255, 255, 255, 0) 720px),
    var(--paper);
}

.landing-hero {
  position: relative;
  min-height: 1120px;
  display: block;
  overflow: hidden;
  padding: 108px 52px 58px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  inset: 66px 0 0;
  opacity: 0.72;
  background:
    linear-gradient(rgba(25, 28, 27, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 28, 27, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0, #000 46%, transparent 88%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(970px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  max-width: 970px;
  margin: 18px auto 18px;
  color: var(--ink);
  font-size: 4.3rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-lede {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.hero-note {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button-primary,
.button-secondary,
.oss-actions a {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 0.9375rem;
}

.float-tile {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  background: linear-gradient(145deg, #ffffff, #f4f4f5);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--tile-shadow);
  color: var(--brand);
  font-family: var(--mono);
  font-size: 1.1875rem;
  font-weight: 800;
}

.float-tile img {
  width: 52px;
  height: 52px;
}

.tile-yahoo {
  top: 172px;
  left: 7%;
  color: var(--info);
  transform: rotate(-9deg);
}

.tile-sec {
  top: 492px;
  left: 5%;
  color: var(--ink);
  transform: rotate(4deg);
}

.tile-fred {
  top: 456px;
  right: 5%;
  color: var(--success);
  transform: rotate(-7deg);
}

.tile-logo {
  top: 128px;
  right: 7%;
  transform: rotate(7deg);
}

.hero-product {
  position: relative;
  z-index: 2;
  width: min(1176px, 100%);
  margin: 24px auto 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-product::before {
  content: "";
  display: block;
  height: 42px;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.hero-product img {
  display: block;
  width: 100%;
  height: auto;
}

.window-dots {
  position: absolute;
  top: 15px;
  left: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--chrome-dot);
}

.landing-band,
.evidence-band,
.cta-band {
  padding: 92px 52px;
  border-bottom: 1px solid var(--line);
}

.landing-band h2,
.evidence-band h2,
.cta-band h2 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
  text-wrap: balance;
}

.social-proof h2,
.social-proof p {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.social-proof p,
.provider-section p,
.open-source-section p,
.evidence-band p,
.cta-band p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.5;
}

.proof-marquee {
  display: flex;
  gap: 12px;
  margin: 58px -52px 0;
  padding: 0 52px;
  overflow-x: auto;
  scrollbar-width: none;
}

.proof-marquee article {
  flex: 0 0 282px;
  min-height: 132px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9375rem;
}

.provider-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 72px;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.provider-grid div {
  min-height: 96px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.provider-grid div:nth-child(4n),
.provider-grid div:last-child {
  border-right: 0;
}

.provider-grid div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.provider-grid strong,
.provider-grid code,
.oss-grid strong,
.oss-grid span {
  display: block;
}

.provider-grid strong,
.oss-grid strong {
  color: var(--ink);
  font-size: 1rem;
}

.provider-grid code {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.provider-checks {
  grid-column: 1 / -1;
  display: flex;
  gap: 42px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.provider-checks span::before,
.evidence-band li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--success);
}

.evidence-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 64px;
}

.terminal-panel,
.code-window,
.oss-grid div,
.docs-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.terminal-panel {
  overflow: hidden;
}

.terminal-panel div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.terminal-panel div:last-child {
  border-bottom: 0;
}

.terminal-panel .terminal-title,
.terminal-panel .workflow-action {
  grid-template-columns: 1fr auto;
}

.terminal-title span {
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid var(--success);
  border-radius: 999px;
  color: var(--success);
}

.terminal-panel span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.terminal-panel strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.workflow-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.workflow-action a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.evidence-band ul {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.open-source-section {
  text-align: center;
}

.faq-section h2 {
  max-width: 900px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.faq-grid article {
  min-height: 142px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.faq-grid div {
  margin: 14px 0 0;
  color: var(--body);
  font-size: 1rem;
}

.open-source-section .section-kicker,
.docs-hero .section-kicker {
  margin-bottom: 18px;
}

.open-source-section h2,
.open-source-section p {
  margin-right: auto;
  margin-left: auto;
}

.oss-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.8fr);
  gap: 22px;
  margin-top: 54px;
  text-align: left;
}

.code-window {
  display: grid;
  gap: 12px;
  min-height: 320px;
  padding: 58px 24px 24px;
}

.code-title {
  margin: -38px -24px 18px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-align: center;
}

.code-window code {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 0.875rem;
}

.code-window .success {
  color: var(--info);
}

.oss-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.oss-grid div {
  min-height: 150px;
  padding: 22px;
}

.oss-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.oss-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.cta-band {
  margin: 72px 52px;
  padding: 110px 52px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--cta-shadow);
  text-align: center;
}

.cta-band h2 {
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
}

.cta-band p {
  margin: 22px auto 0;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 52px;
  color: var(--muted);
  font-size: 0.875rem;
}

.landing-footer nav {
  display: flex;
  gap: 26px;
}

.landing-footer a {
  color: var(--muted);
  text-decoration: none;
}

.docs-page {
  background:
    linear-gradient(180deg, rgba(244, 244, 245, 0.94) 0, rgba(255, 255, 255, 0) 520px),
    var(--paper);
}

.docs-shell {
  padding: 98px 52px 86px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 780px) 220px;
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
  align-items: start;
}

.sidebar,
.toc {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.nav-group {
  margin-bottom: 22px;
}

.nav-group:last-child {
  margin-bottom: 0;
}

.nav-group p,
.toc p {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-group a,
.toc a,
.toc span {
  display: block;
  padding: 7px 10px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 0.875rem;
  text-decoration: none;
}

.nav-group a:hover,
.toc a:hover {
  background: var(--paper-soft);
  color: var(--ink);
}

.nav-group a[aria-current="page"] {
  background: var(--brand);
  color: var(--paper);
  font-weight: 700;
}

.content {
  min-width: 0;
  padding: 34px;
}

.content h1 {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 3.25rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
  text-wrap: balance;
  scroll-margin-top: 96px;
}

.content h2,
.content h3 {
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.15;
  scroll-margin-top: 96px;
}

.content h2 {
  margin: 42px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 1.625rem;
}

.content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.content h3 {
  margin: 28px 0 10px;
  font-size: 1.1875rem;
}

.content p,
.content li,
.content td {
  color: var(--body);
  font-size: 1rem;
}

.content p {
  max-width: 72ch;
  margin: 0 0 18px;
}

.content ul,
.content ol {
  max-width: 72ch;
  padding-left: 22px;
}

.content li + li {
  margin-top: 7px;
}

code {
  padding: 2px 5px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
}

pre {
  overflow-x: auto;
  margin: 20px 0;
  padding: 16px;
  background: var(--code-dark);
  border: 1px solid var(--code-dark-border);
  border-radius: 8px;
}

pre code {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--code-light);
  font-size: 0.8125rem;
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

th,
td {
  min-width: 150px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  background: var(--paper-soft);
  font-size: 0.8125rem;
}

tr:last-child td {
  border-bottom: 0;
}

blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  color: var(--muted);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

@media (max-width: 1120px) {
  .docs-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .toc {
    display: none;
  }
}

@media (max-width: 860px) {
  .landing-nav,
  .site-nav {
    padding: 0 18px;
  }

  .landing-nav nav,
  .site-nav nav {
    gap: 6px;
  }

  .landing-nav nav a,
  .site-nav nav a {
    min-height: 38px;
    padding: 0 12px;
  }

  .landing-hero {
    min-height: auto;
    padding: 118px 16px 48px;
  }

  .float-tile {
    display: none;
  }

  .hero-copy h1 {
    max-width: 11ch;
    font-size: 3.5rem;
  }

  .hero-lede {
    font-size: 1.125rem;
  }

  .hero-actions,
  .oss-actions,
  .provider-checks,
  .landing-footer {
    flex-direction: column;
  }

  .hero-product {
    margin-top: 38px;
  }

  .hero-product::before {
    height: 36px;
  }

  .landing-band,
  .evidence-band,
  .cta-band {
    padding: 72px 18px;
  }

  .landing-band h2,
  .evidence-band h2,
  .cta-band h2 {
    font-size: 3rem;
  }

  .proof-marquee {
    margin-right: -18px;
    margin-left: -18px;
    padding: 0 18px;
  }

  .provider-section,
  .evidence-band,
  .oss-layout {
    display: block;
  }

  .provider-grid,
  .oss-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .provider-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .provider-grid div:last-child {
    border-bottom: 0;
  }

  .terminal-panel {
    margin-bottom: 34px;
  }

  .terminal-panel div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cta-band {
    margin: 44px 18px;
  }

  .docs-shell {
    padding: 92px 18px 56px;
  }

  .docs-layout {
    display: block;
  }

  .sidebar {
    position: static;
    max-height: min(48vh, 420px);
    overflow-y: auto;
    margin-bottom: 18px;
  }

  .nav-group a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .content {
    padding: 24px 18px;
  }

  .landing-footer {
    padding: 28px 18px;
  }
}

@media (max-width: 560px) {
  .landing-nav,
  .site-nav {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px;
  }

  .landing-nav nav,
  .site-nav nav {
    flex-wrap: wrap;
  }

  .landing-nav nav a,
  .site-nav nav a {
    min-height: 44px;
  }

  .landing-hero,
  .docs-shell {
    padding-top: 42px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .landing-band h2,
  .evidence-band h2,
  .cta-band h2 {
    font-size: 2.5rem;
  }

  .content h1 {
    font-size: 2.5rem;
  }

  .button-primary,
  .button-secondary,
  .oss-actions a {
    width: 100%;
  }
}
