:root {
  --ink: #111827;
  --muted: #566174;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --line: #d7dee9;
  --signal-blue: #2563eb;
  --signal-dark: #173f9f;
  --signal-wash: #eaf2ff;
  --verified: #0f766e;
  --warning: #9a5b13;
  --shadow: 0 18px 54px rgba(22, 44, 84, 0.09);
  --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--signal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal-blue);
}

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid rgba(215, 222, 233, 0.88);
  background: rgba(247, 249, 252, 0.9);
  backdrop-filter: blur(12px);
}

.site-header .shell {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--signal-blue);
  border-radius: 9px 2px 9px 2px;
  color: var(--signal-blue);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.68rem;
  box-shadow: 4px 4px 0 var(--signal-wash);
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
}

.hero {
  padding: 92px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 740;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(1.85rem, 4vw, 3rem);
}

h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.endpoint {
  display: inline-flex;
  margin-top: 32px;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(22, 44, 84, 0.05);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.method {
  padding: 3px 7px;
  border-radius: 4px;
  color: #fff;
  background: var(--signal-blue);
  font-weight: 750;
}

.trace-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px 5px 22px 5px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.trace-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 7px;
  height: 100%;
  background: linear-gradient(var(--signal-blue), var(--verified));
  content: "";
}

.trace-label {
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trace-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 13px;
  position: relative;
  padding-bottom: 25px;
}

.trace-step:last-child {
  padding-bottom: 0;
}

.trace-step:not(:last-child)::after {
  position: absolute;
  top: 30px;
  bottom: 2px;
  left: 14px;
  width: 1px;
  background: var(--line);
  content: "";
}

.trace-node {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.36);
  border-radius: 50%;
  color: var(--signal-blue);
  background: var(--signal-wash);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
}

.trace-step p,
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 48px;
  margin-bottom: 38px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px 18px 4px 18px;
  background: rgba(255, 255, 255, 0.82);
}

.card-tag {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--verified);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boundary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.boundary > div {
  padding: 34px;
}

.boundary > div + div {
  border-left: 1px solid var(--line);
}

.boundary ul {
  margin: 18px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.policy-hero {
  padding: 72px 0 42px;
}

.policy-hero h1 {
  max-width: none;
  margin-bottom: 15px;
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.policy-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.review-note {
  margin-top: 28px;
  padding: 15px 18px;
  border-left: 4px solid var(--warning);
  color: #6f430f;
  background: #fff7e8;
  font-size: 0.9rem;
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 64px;
  padding: 34px 0 92px;
}

.policy-index {
  position: sticky;
  top: 28px;
  align-self: start;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.policy-index strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-index a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.policy-copy section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.policy-copy section:first-child {
  padding-top: 0;
  border-top: 0;
}

.policy-copy h2 {
  margin-bottom: 15px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.policy-copy p,
.policy-copy li {
  color: #3f4b5e;
}

.policy-copy ul {
  padding-left: 1.25rem;
}

code {
  padding: 0.12em 0.35em;
  border-radius: 4px;
  color: var(--signal-dark);
  background: var(--signal-wash);
  font-family: var(--mono);
  font-size: 0.88em;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
}

.site-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 0.8rem;
}

@media (max-width: 820px) {
  .hero-grid,
  .section-heading,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 44px;
  }

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

  .policy-index {
    position: static;
    display: none;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 26px, 1120px);
  }

  .site-header .shell,
  .site-footer .shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header .shell {
    padding: 16px 0;
  }

  .site-nav {
    gap: 16px;
  }

  .hero {
    padding: 64px 0 54px;
  }

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

  .boundary > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .endpoint {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .site-footer,
  .policy-index {
    display: none;
  }

  body {
    background: #fff;
  }

  .policy-layout {
    display: block;
  }
}

/* Marketplace onboarding: preserve the site's type and color system. */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--signal-dark);
  border-radius: 8px;
  color: white;
  background: var(--signal-dark);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  color: white;
  background: #12337f;
}

.button-secondary {
  color: var(--signal-dark);
  background: white;
}

.button-secondary:hover {
  color: var(--signal-dark);
  background: var(--signal-wash);
}

.text-action { font-size: 0.92rem; }
.action-note, .plan-note { color: var(--muted); font-size: 0.88rem; }
.action-note { margin: 12px 0 0; }
.plan-note { max-width: 75ch; margin: 20px 0 0; }
.hero-grid > *, .quickstart-layout > * { min-width: 0; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); text-wrap: balance; }

.result-preview {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.result-preview h2 { margin-bottom: 20px; font-size: 1.15rem; letter-spacing: -0.01em; }
.result-preview p { color: var(--muted); font-size: 0.83rem; margin: 18px 0 0; }
.result-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; }

pre {
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.8;
}

pre code { padding: 0; color: var(--ink); background: none; font-size: inherit; }
.quickstart-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; }
.request-example pre { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.request-example p, .quickstart-help p, .quickstart-help li { color: var(--muted); font-size: 0.91rem; }
.quickstart-help details { margin-top: 28px; }
.quickstart-help summary { min-height: 44px; padding: 9px 0; cursor: pointer; font-weight: 650; }
.quickstart-help summary:focus-visible { outline: 3px solid var(--signal-blue); outline-offset: 4px; }
.quickstart-help ul { padding-left: 20px; }
#quickstart, #pricing { scroll-margin-top: 24px; }
.plan-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.plan-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.94rem; }
.plan-table caption { padding: 20px 22px 0; text-align: left; font-weight: 700; }
.plan-table th, .plan-table td { padding: 18px 22px; }
.plan-table thead { color: var(--muted); font-size: 0.8rem; }
.plan-table tbody tr { border-top: 1px solid var(--line); }
.plan-table tbody th { font-weight: 600; }
.integration-help { max-width: 1120px; }
.integration-help p { max-width: 65ch; color: var(--muted); }
.card { min-height: 150px; border-radius: 12px; }
.brand { max-width: 420px; }
.brand-mark { flex-shrink: 0; }

@media (max-width: 820px) {
  .quickstart-layout { grid-template-columns: 1fr; gap: 28px; }
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .plan-table { font-size: 0.82rem; }
  .plan-table th, .plan-table td { padding: 14px 10px; }
  .plan-table caption { padding: 16px 10px 0; }
  .result-preview { padding: 18px; }
  .request-example pre { padding: 16px; }
  .actions { gap: 14px; }
  .button { width: 100%; }
}
