@font-face {
  font-family: Inter;
  src: url("/inter-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/inter-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/inter-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/inter-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #272a3b;
  --muted: #697287;
  --purple: #7450cf;
  --line: #e8e9f0;
  --sidebar: 244px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font:
    14px/1.8 Inter,
    system-ui,
    sans-serif;
}
button,
input {
  font: inherit;
}
a {
  color: var(--purple);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
a,
input,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--purple);
}
.docs-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #ffffffed;
  backdrop-filter: blur(16px);
  padding: 0 32px;
}
.docs-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.docs-logo img {
  width: 113px;
}
.docs-logo > span {
  border-left: 1px solid #d8d7e2;
  padding-left: 14px;
  color: #828495;
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 600;
}
.header-links {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 12px;
  font-weight: 500;
}
.header-links > a:first-child {
  color: #737a8a;
}
.workspace-link {
  color: #5c467f;
}
.workspace-link span {
  margin-left: 12px;
}
.docs-sidebar {
  position: fixed;
  top: 74px;
  bottom: 0;
  left: 0;
  width: var(--sidebar);
  overflow-y: auto;
  background: #fafafe;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
}
.docs-search {
  border: 1px solid #e2e2ee;
  background: #fff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  margin-bottom: 32px;
}
.docs-search > span {
  color: #9694a6;
  font-size: 20px;
  line-height: 1;
}
.docs-search input {
  border: 0;
  outline: none;
  background: none;
  min-width: 0;
  width: 100%;
  font-size: 11px;
  color: #475066;
}
.docs-search input::placeholder {
  color: #9294a5;
}
.docs-search kbd {
  font-size: 10px;
  color: #9a9eae;
  border: 1px solid #e7e7ef;
  border-radius: 4px;
  padding: 0 5px;
}
.nav-heading {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: #a0a2b3;
  margin: 25px 12px 10px;
}
.docs-sidebar nav {
  display: grid;
  gap: 4px;
}
.docs-sidebar nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #71768b;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 12px;
}
.docs-sidebar nav a:hover {
  background: #f1edf9;
  text-decoration: none;
  color: #69499d;
}
.docs-sidebar nav a.active {
  background: #ece6f8;
  color: #7350b0;
  font-weight: 600;
}
.docs-sidebar nav span {
  font-size: 10px;
  color: #a09aae;
}
.sidebar-note {
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
  padding: 20px 8px 0;
  margin-top: 35px;
  color: #6d6c80;
  font-size: 11px;
}
.sidebar-note i {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #85b8a1;
}
.sidebar-note small {
  font-size: 10px;
  color: #9a9aaa;
}
.docs-main {
  margin-left: var(--sidebar);
  max-width: 1270px;
  padding: 134px 70px 24px;
}
.docs-hero {
  padding-bottom: 38px !important;
  border: 0 !important;
}
.eyebrow,
.section-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #8d71b4;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
}
.eyebrow span {
  letter-spacing: 0.5px;
  font-weight: 400;
  color: #a9a6b5;
  background: #f8f6fc;
  padding: 3px 9px;
  border-radius: 5px;
}
h1 {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -2px;
  font-weight: 600;
  margin: 24px 0 19px;
  color: #2e293d;
}
.hero-copy {
  font-size: 15px;
  line-height: 1.95;
  color: #838497;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 27px 0 33px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  justify-content: center;
  background: #7c59c2;
  color: #fff;
  padding: 11px 18px;
  border: 1px solid #7c59c2;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
}
.button:hover {
  background: #6b49ad;
  color: #fff;
  text-decoration: none;
}
.button.secondary {
  background: #fff;
  border-color: #e5dfed;
  color: #7b6d92;
}
.button.secondary:hover {
  background: #faf8ff;
}
.base-url {
  display: flex;
  gap: 15px;
  align-items: center;
  border: 1px solid #ece8f4;
  background: #fcfbff;
  border-radius: 9px;
  padding: 13px 16px;
  min-width: 0;
}
.base-url > span {
  color: #9c8fac;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.base-url code {
  font-size: 11px;
  overflow-wrap: anywhere;
  color: #776787;
  min-width: 0;
}
.copy-button {
  background: transparent;
  border: 1px solid #ddd8e9;
  color: #9c8bb3;
  border-radius: 5px;
  font-size: 10px;
  padding: 3px 9px;
  cursor: pointer;
  white-space: nowrap;
}
.base-url button {
  margin-left: auto;
}
.copy-button:hover {
  background: #f2edf9;
  color: #7555a4;
}
.flow-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 53px;
}
.flow-cards article {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 21px;
  background: linear-gradient(150deg, #fff, #fdfbff);
}
.flow-cards b {
  font-size: 10px;
  color: #a18abf;
  letter-spacing: 1px;
}
.flow-cards h3 {
  font-size: 14px;
  margin: 9px 0 7px;
}
.flow-cards p {
  font-size: 11px;
  line-height: 1.8;
  color: #9794a5;
  margin: 0;
}
section {
  padding: 0 0 47px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
section p {
  color: var(--muted);
  margin: 14px 0 20px;
}
section h2 {
  font-size: 29px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.9px;
  margin: 13px 0 16px;
}
section h3 {
  font-size: 14px;
  font-weight: 600;
}
code {
  font:
    11px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
p code,
td code {
  background: #f5f3fa;
  color: #8d719c;
  border-radius: 4px;
  padding: 2px 5px;
}
.code-panel {
  background: #242331;
  border: 1px solid #302d42;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
}
.code-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 9px 14px;
  border-bottom: 1px solid #3a354a;
  color: #a89ab9;
  font-size: 10px;
}
.code-toolbar > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.code-toolbar a {
  color: #bbacd3;
  font-size: 10px;
}
.code-tabs {
  display: flex;
  gap: 5px;
}
.code-tabs button {
  border: 0;
  background: none;
  color: #8c829e;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 10px;
  cursor: pointer;
}
.code-tabs button[aria-selected="true"] {
  background: #3f344f;
  color: #e1d3f5;
}
.code-panel pre {
  margin: 0;
  padding: 20px 23px;
  overflow: auto;
  max-height: 580px;
  scrollbar-width: thin;
}
.code-panel code {
  font-size: 11px;
  line-height: 1.95;
  color: #c5b8dc;
  white-space: pre;
}
.code-panel.light {
  background: #fbfafd;
  border-color: #ede8f5;
}
.code-panel.light code {
  color: #8c799f;
}
.small-note {
  font-size: 11px;
  line-height: 1.9;
  color: #9296a5 !important;
}
.response-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
}
.response-heading h3 {
  font-size: 12px;
  margin: 0;
  color: #79798f;
}
.status-pill {
  font-size: 9px;
  color: #6b9b87;
  background: #f0f8f4;
  padding: 3px 9px;
  border-radius: 4px;
}
.callout {
  background: #f7f4fd;
  border: 1px solid #eae3f6;
  border-left: 3px solid #bca4da;
  border-radius: 8px;
  padding: 17px 20px;
  margin: 24px 0;
  font-size: 12px;
}
.callout b {
  font-size: 12px;
  color: #80708f;
  font-weight: 600;
}
.callout p {
  font-size: 11px;
  color: #9a8da8;
  margin: 7px 0 0;
  line-height: 1.95;
}
.callout.amber {
  background: #fdfbf6;
  border-color: #eee7d6;
  border-left-color: #d9c6a0;
}
.callout.amber b {
  color: #9e8a69;
}
.callout.amber p {
  color: #a5967d;
}
.architecture {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1px solid #ece7f5;
  border-radius: 9px;
  padding: 26px;
  margin: 26px 0;
}
.architecture span {
  font-size: 11px;
  color: #8a7a9f;
  background: #f9f6fe;
  padding: 9px 14px;
  border: 1px solid #ede6f8;
  border-radius: 6px;
}
.architecture b {
  color: #c0b0d5;
  font-weight: 400;
}
.step-list {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: 30px 0;
}
.step-list li {
  position: relative;
  padding: 0 0 14px 42px;
  counter-increment: steps;
}
.step-list li::before {
  content: counter(steps);
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  font-size: 10px;
  border-radius: 8px;
  background: #f1ebfa;
  color: #9b83ba;
}
.step-list li b {
  font-size: 12px;
  color: #646278;
  font-weight: 500;
}
.step-list li p {
  font-size: 12px;
  margin: 7px 0 12px;
  color: #8c90a0;
}
.invoice-states {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin: 20px 0 27px;
}
.invoice-states span {
  font-size: 11px;
  background: #f4f1fa;
  color: #9f8db4;
  border: 1px solid #ebe4f4;
  padding: 6px 16px;
  border-radius: 6px;
}
.invoice-states .paid {
  color: #6ea38d;
  background: #f0f8f4;
  border-color: #e1efe8;
}
.invoice-states .muted-state {
  color: #a4a0ac;
  background: transparent;
  border: 0;
  padding-left: 5px;
}
.invoice-states b {
  color: #bdb2cb;
  font-weight: 400;
}
.table-scroll {
  overflow-x: auto;
  margin: 20px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
th {
  text-align: left;
  color: #9a92a9;
  font-weight: 500;
  font-size: 10px;
  padding: 12px;
  border-bottom: 1px solid #e7e2ee;
  background: #fcfaff;
}
td {
  padding: 14px 12px;
  color: #8c899b;
  border-bottom: 1px solid #eeebf3;
  vertical-align: top;
  line-height: 1.9;
}
td:first-child {
  color: #756c85;
}
td code {
  white-space: nowrap;
  font-size: 10px;
}
.payload-details > summary {
  cursor: pointer;
  color: #9b86b7;
  font-size: 12px;
  margin: 18px 0;
}
.api-endpoint {
  border: 1px solid #e7e3ee;
  border-radius: 10px;
  margin: 13px 0;
  overflow: hidden;
  background: #fff;
}
.api-endpoint > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
  flex-wrap: wrap;
}
.api-endpoint > summary::-webkit-details-marker {
  display: none;
}
.api-endpoint > summary > span:last-child {
  font-size: 10px;
  color: #a6a0af;
  margin-left: auto;
}
.api-endpoint > summary > code {
  font-size: 11px;
  color: #82718c;
  overflow-wrap: anywhere;
}
.api-method {
  display: inline-block;
  min-width: 43px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 4px;
  padding: 3px 6px;
  background: #eef6f2;
  color: #80a492;
}
.api-method.post {
  background: #f1ebfa;
  color: #ad90cc;
}
.api-method.put {
  background: #fcf5e8;
  color: #bda577;
}
.endpoint-content {
  padding: 0 20px 15px;
  border-top: 1px solid #f2eef7;
}
.endpoint-content > p {
  font-size: 12px;
  color: #858294;
}
.endpoint-content h4 {
  font-size: 11px;
  color: #9a8da7;
  margin: 22px 0 8px;
  font-weight: 500;
}
.endpoint-auth {
  display: inline-block;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f8f5fc;
  color: #a394b6;
}
.required {
  font-size: 8px;
  font-weight: 500;
  color: #bda0ba;
  margin-left: 5px;
}
.field-type {
  font-size: 9px;
  color: #aaa2b7;
  display: block;
}
.schema-detail > summary {
  font-size: 11px;
  cursor: pointer;
  color: #aa93c2;
  padding: 14px 0;
}
.endpoint-content .code-panel {
  margin-bottom: 10px;
}
.endpoint-content th,
.endpoint-content td {
  padding: 10px;
  font-size: 10px;
}
.endpoint-content .code-toolbar span {
  font-size: 9px;
}
.api-endpoint[hidden] {
  display: none;
}
#search-result {
  font-size: 11px;
  color: #9a8ca9;
}
.limits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.limits-grid article {
  border: 1px solid #eae4f2;
  border-radius: 9px;
  padding: 18px;
}
.limits-grid strong {
  display: block;
  font-size: 19px;
  font-weight: 500;
  color: #837094;
}
.limits-grid span {
  display: block;
  font-size: 10px;
  color: #a397ad;
  margin-top: 5px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #a29aac;
  padding-bottom: 25px;
}
#docs-toast {
  position: fixed;
  z-index: 30;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: #423450;
  color: #fff;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 11px;
  transition: 0.18s;
}
#docs-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.loading {
  color: #9f92b0;
  font-size: 12px;
}
@media (max-width: 1150px) {
  :root {
    --sidebar: 215px;
  }
  .docs-main {
    padding: 125px 35px 20px;
  }
  h1 {
    font-size: 40px;
  }
  .docs-logo > span {
    display: none;
  }
  .flow-cards article {
    padding: 17px;
  }
}
@media (max-width: 850px) {
  :root {
    --sidebar: 190px;
  }
  .docs-main {
    padding: 118px 24px 20px;
  }
  .docs-sidebar {
    padding: 25px 12px;
  }
  .base-url {
    gap: 8px;
    padding: 12px;
  }
  .base-url > span {
    display: none;
  }
  .eyebrow {
    font-size: 8px;
    gap: 7px;
  }
  .hero-copy {
    font-size: 13px;
  }
  .flow-cards {
    gap: 9px;
  }
  .flow-cards article {
    padding: 14px;
  }
  .hero-actions {
    gap: 9px;
  }
  .button {
    padding: 10px 12px;
    gap: 9px;
    font-size: 10px;
  }
  .code-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .code-tabs {
    gap: 0;
  }
  .code-tabs button {
    padding: 4px 7px;
  }
  section h2 {
    font-size: 26px;
  }
}
@media (max-width: 640px) {
  .docs-header {
    height: 64px;
    padding: 0 18px;
  }
  .docs-logo img {
    width: 90px;
  }
  .header-links {
    gap: 14px;
    font-size: 10px;
  }
  .docs-sidebar {
    position: relative;
    top: 64px;
    width: 100%;
    bottom: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px 18px;
  }
  .docs-search {
    margin: 0 0 12px;
  }
  .docs-sidebar .nav-heading,
  .docs-sidebar nav:last-of-type,
  .sidebar-note {
    display: none;
  }
  .docs-sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    white-space: nowrap;
  }
  .docs-sidebar nav a {
    font-size: 10px;
    padding: 6px 9px;
  }
  .docs-sidebar nav span {
    display: none;
  }
  .docs-main {
    margin: 64px 0 0;
    padding: 32px 20px;
  }
  .docs-hero {
    padding-bottom: 26px !important;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  h1 {
    font-size: 36px;
    letter-spacing: -1.4px;
  }
  .hero-copy {
    font-size: 12px;
  }
  .hero-copy br {
    display: none;
  }
  .flow-cards {
    margin-bottom: 38px;
  }
  .flow-cards article {
    padding: 13px;
  }
  .flow-cards h3 {
    font-size: 12px;
  }
  .flow-cards p {
    font-size: 10px;
  }
  .base-url code {
    font-size: 9px;
  }
  .copy-button {
    font-size: 9px;
    padding: 3px 7px;
  }
  section p {
    font-size: 12px;
  }
  section h2 {
    font-size: 25px;
  }
  .callout {
    padding: 14px;
  }
  .architecture {
    padding: 18px 10px;
    gap: 7px;
  }
  .architecture span {
    padding: 7px;
    font-size: 9px;
  }
  .limits-grid article {
    padding: 12px;
  }
  .limits-grid strong {
    font-size: 15px;
  }
  .api-endpoint > summary {
    gap: 9px;
    padding: 13px;
  }
  .api-endpoint > summary > span:last-child {
    width: 100%;
    margin: 0;
    padding-left: 51px;
  }
  .api-endpoint > summary > code {
    font-size: 10px;
  }
  .endpoint-content {
    padding: 0 12px 12px;
  }
  .code-panel pre {
    padding: 16px;
  }
  footer {
    flex-direction: column;
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.setup-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 32px;
  padding: 20px 24px;
  border: 1px solid #e3d9f7;
  border-radius: 14px;
  background: #f5f0fd;
}
.setup-help strong {
  color: var(--purple);
  font-size: 14px;
}
.setup-help p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  max-width: 760px;
}
.setup-help .button {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .setup-help {
    flex-direction: column;
    align-items: flex-start;
  }
}
