:root {
  --bg: #f6f1e8;
  --paper: #fffdf7;
  --ink: #111827;
  --muted: #5f6776;
  --line: rgba(17, 24, 39, 0.12);
  --accent: #eb5d28;
  --accent-strong: #cc4717;
  --accent-soft: rgba(235, 93, 40, 0.12);
  --blue: #0d5bd7;
  --blue-soft: rgba(13, 91, 215, 0.1);
  --navy: #10243f;
  --card: rgba(255, 255, 255, 0.76);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 26px 60px rgba(16, 36, 63, 0.12);
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(13, 91, 215, 0.1), transparent 28%),
    linear-gradient(180deg, #f4ede1 0%, #f7f5ef 34%, #ffffff 100%);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 999px;
  transform: translateY(-140%);
  z-index: 200;
}

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

.site-frame {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(246, 241, 232, 0.88);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.site-header-inner,
.site-footer-inner,
.page-shell,
.page-width {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, var(--accent) 0%, #f19235 100%);
  font-family: "Space Grotesk", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-copy strong,
.nav-link,
.eyebrow,
.topic-count,
.chip,
.cta-button,
.outline-button {
  font-family: "Space Grotesk", "Arial Narrow", sans-serif;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.nav-button {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.95rem;
}

.nav-link.is-active {
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 36, 63, 0.08);
}

.nav-button {
  background: var(--navy);
  color: #fff;
}

.page-shell {
  padding: 2.1rem 0 5rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.75rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.surface-card,
.docs-shell,
.article-shell,
.index-shell,
.metric-panel {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -10% -24% auto;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(235, 93, 40, 0.24), transparent 60%);
  pointer-events: none;
}

.hero-copy h1,
.page-title,
.article-shell h1,
.docs-landing h1 {
  margin: 0;
  font-family: "Space Grotesk", "Arial Narrow", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero-copy p,
.article-shell p,
.docs-shell p,
.index-shell p,
.page-intro p {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero-actions,
.inline-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cta-button,
.outline-button,
.topic-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.cta-button {
  background: var(--accent);
  color: #fff;
}

.outline-button {
  border-color: rgba(16, 36, 63, 0.14);
  background: rgba(255, 255, 255, 0.74);
  color: var(--navy);
}

.hero-panel {
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(16, 36, 63, 0.94), rgba(14, 26, 46, 0.96));
  color: #f5f7fb;
}

.hero-panel h2,
.hero-panel p,
.hero-panel .eyebrow {
  color: inherit;
}

.metric-grid {
  display: grid;
  gap: 0.85rem;
}

.metric-panel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  padding: 1rem 1.1rem;
}

.metric-panel strong,
.surface-card h3,
.article-card h3,
.tile-card h3,
.docs-card h3,
.tool-card h3,
.archive-group h3 {
  display: block;
  font-family: "Space Grotesk", "Arial Narrow", sans-serif;
  font-size: 1.08rem;
  line-height: 1.15;
}

.metric-panel span,
.hero-panel .muted-note {
  color: rgba(245, 247, 251, 0.78);
  font-size: 0.92rem;
}

.surface-card span,
.article-meta,
.archive-meta,
.page-subtitle,
.muted-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-stack {
  display: grid;
  gap: 1.3rem;
  margin-top: 1.5rem;
}

.grid-two,
.grid-three,
.grid-four {
  display: grid;
  gap: 1rem;
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-shell > *,
.section-stack > *,
.grid-two > *,
.grid-three > *,
.grid-four > *,
.docs-shell > *,
.article-shell > *,
.index-shell > * {
  min-width: 0;
}

.surface-card,
.article-card,
.tile-card,
.docs-card,
.tool-card,
.topic-card,
.archive-group {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.surface-card h2,
.section-heading h2,
.section-heading h1,
.article-section h2,
.docs-layout h2,
.docs-section-title {
  margin: 0;
  font-family: "Space Grotesk", "Arial Narrow", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.section-heading p {
  margin: 0.45rem 0 0;
}

.chip-row,
.topics-row,
.meta-row,
.card-links,
.topic-grid,
.pagination,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip,
.topic-chip,
.topic-count,
.filter-chip {
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.84rem;
  padding: 0.46rem 0.8rem;
}

.topic-chip,
.filter-chip {
  border: 1px solid rgba(13, 91, 215, 0.16);
}

.filter-chip.is-active {
  background: var(--navy);
  color: #fff;
  border-color: transparent;
}

.docs-shell,
.article-shell,
.index-shell {
  padding: 1.4rem;
}

.docs-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 250px;
  gap: 1.25rem;
  align-items: start;
}

.docs-nav,
.docs-toc {
  position: sticky;
  top: 6.3rem;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.docs-nav ul,
.docs-toc ul,
.archive-list,
.footer-list,
.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav a,
.docs-toc a {
  display: block;
  padding: 0.48rem 0.62rem;
  border-radius: 0.8rem;
  color: var(--muted);
}

.docs-nav a.is-active,
.docs-toc a.is-active {
  color: var(--navy);
  background: rgba(16, 36, 63, 0.08);
}

.docs-content {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.docs-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

.docs-body h2,
.article-body h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.docs-body ul,
.article-body ul {
  padding-left: 1.2rem;
}

.docs-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.docs-body th,
.docs-body td {
  padding: 0.85rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.pricing-table th,
.pricing-table td {
  padding: 0.75rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  text-align: left;
  vertical-align: top;
}

.pricing-table th {
  width: 32%;
  color: var(--muted);
  font-weight: 600;
}

.article-shell {
  max-width: 880px;
  margin: 0 auto;
}

.article-body {
  margin-top: 1.4rem;
}

.article-inline-cta {
  margin: 1.6rem 0;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(13, 91, 215, 0.08), rgba(235, 93, 40, 0.08));
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.article-inline-cta p {
  margin-top: 0;
}

.archive-group + .archive-group,
.docs-related + .docs-related,
.footer-panel + .footer-panel {
  margin-top: 1rem;
}

.archive-entry {
  padding: 0.7rem 0;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.archive-entry:first-child {
  border-top: 0;
}

.topic-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.topic-card h3,
.topic-card ul li,
.docs-card h3,
.tool-card h3 {
  margin: 0;
}

.topic-card ul {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
}

.topic-card li + li,
.footer-list li + li {
  margin-top: 0.55rem;
}

.pagination {
  margin-top: 1.4rem;
}

.pagination a,
.pagination span {
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(16, 36, 63, 0.03));
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-panel {
  padding: 1rem 0;
}

.footer-panel h3 {
  font-family: "Space Grotesk", "Arial Narrow", sans-serif;
  margin-bottom: 0.8rem;
}

.footer-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-note {
  padding: 1rem;
  border: 1px dashed rgba(17, 24, 39, 0.18);
  border-radius: var(--radius-md);
  color: var(--muted);
}

.chip-live {
  background: rgba(22, 128, 61, 0.12);
  color: #14532d;
  border: 1px solid rgba(22, 128, 61, 0.22);
}

.chip-price {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(204, 71, 23, 0.2);
}

.chip-stat {
  background: rgba(16, 36, 63, 0.07);
  color: var(--navy);
}

.table-scroll {
  overflow-x: auto;
  margin: 0.9rem 0 0;
  max-width: 100%;
}

.fact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.fact-table th,
.fact-table td {
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  text-align: left;
  vertical-align: top;
}

.fact-table thead th {
  background: rgba(16, 36, 63, 0.05);
  font-family: "Space Grotesk", "Arial Narrow", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
}

.fact-table tbody th[scope="row"] {
  width: 28%;
  color: var(--muted);
  font-weight: 600;
}

.compare-table td {
  width: 38%;
}

.sample-table td {
  word-break: break-word;
}

.fact-panel {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.fact-panel h3 {
  margin: 0;
  font-family: "Space Grotesk", "Arial Narrow", sans-serif;
  font-size: 1.08rem;
  line-height: 1.15;
}

.fact-panel p {
  color: var(--muted);
  font-size: 0.92rem;
}

.json-box {
  margin: 0.75rem 0 0;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #10243f;
  color: #dbe7f7;
  font-size: 0.8rem;
  line-height: 1.55;
  overflow-x: auto;
  max-height: 26rem;
}

.json-details {
  margin-top: 0.9rem;
}

.json-details summary {
  cursor: pointer;
  font-family: "Space Grotesk", "Arial Narrow", sans-serif;
  color: var(--navy);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 36, 63, 0.14);
  background: rgba(255, 255, 255, 0.74);
  display: inline-block;
}

.schema-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.schema-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.66);
}

.schema-list li strong {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86rem;
}

.schema-list li span {
  font-size: 0.78rem;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  align-self: start;
}

.schema-list li p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.fineprint {
  font-size: 0.85rem;
  color: var(--muted);
}

.proof-figure {
  margin: 1rem 0 0;
}

.proof-figure img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.proof-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

details.surface-card summary {
  cursor: pointer;
}

@media (max-width: 1080px) {
  .hero-shell,
  .docs-shell,
  .site-footer-inner,
  .grid-three,
  .grid-four,
  .topic-index-grid {
    grid-template-columns: 1fr;
  }

  .docs-nav,
  .docs-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header-inner,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .hero-copy,
  .hero-panel,
  .surface-card,
  .docs-shell,
  .article-shell,
  .index-shell {
    padding: 1.2rem;
  }

  .hero-copy h1,
  .page-title,
  .article-shell h1,
  .docs-landing h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .grid-two {
    grid-template-columns: 1fr;
  }

  .cta-button,
  .outline-button,
  .topic-chip,
  .chip {
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
  }
}
