@font-face {
  font-family: Gustavo;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Gustavo-Bold.woff) format("woff");
}

.api-portal--marketing {
  --api-bg: #fff;
  --api-text: #111;
  --api-muted: #4b5563;
  --api-border: #e5e5e5;
  --api-marketing-panel: #f2f2f2;
  --api-use-case-link: #f2f2f2;
  --api-step: #111;
  --api-step-text: #fff;
  font-family: Inter, system-ui, sans-serif;
  overflow-x: clip;
}
.api-portal--marketing.api-portal--dark {
  --api-bg: #000;
  --api-text: #fff;
  --api-muted: #a3a3a3;
  --api-border: #383838;
  --api-green: #cf0;
  --api-marketing-panel: #131313;
  --api-use-case-link: #cf0;
  --api-step: #cf0;
  --api-step-text: #000;
}
.api-portal--marketing .api-portal__inner { max-width: 80rem; }
.api-portal--marketing h1, .api-portal--marketing h2, .api-portal--marketing h3 { font-family: Gustavo, Figtree, system-ui, sans-serif; }
.api-portal--marketing h1 { max-width: 17ch; font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; margin: 12px 0 0; }
.api-portal--marketing h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.api-portal--marketing .api-portal__hero { align-items: center; gap: clamp(24px, 4vw, 48px); }
.api-portal--marketing .api-portal__lede { max-width: 46ch; margin-top: 16px; margin-bottom: 32px; font-size: 1.06rem; }
.api-portal--marketing .api-portal__eyebrow { text-transform: none; letter-spacing: 0; }
.api-portal--marketing .api-portal__steps { list-style: none; counter-reset: api-step; margin: 0 0 1.75rem; }
.api-portal--marketing .api-portal__steps li {
  counter-increment: api-step; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: .85rem; position: relative; margin: 0; padding-bottom: 1rem;
}
.api-portal--marketing .api-portal__steps li:last-child { padding-bottom: 0; }
.api-portal--marketing .api-portal__steps li::before {
  content: counter(api-step); display: grid; place-items: center; width: 1.75rem; height: 1.75rem;
  border-radius: 50%; background: var(--api-step); color: var(--api-step-text); font-size: .875rem; font-weight: 700;
}
.api-portal--marketing .api-portal__steps li:not(:last-child)::after {
  content: ""; position: absolute; inset: 1.75rem auto 0 calc(.875rem - .5px); border-left: 1px solid var(--api-border);
}
.api-portal--marketing .api-portal__steps span { display: block; color: var(--api-muted); font-size: .875rem; }
.api-portal--marketing.api-portal .btn.btn-primary:not(.btn-outline, .btn-ghost) { background: #cf0; border-color: #cf0; color: #000; }
.api-portal--marketing.api-portal .btn.btn-primary:hover:not(:disabled) { background: #84cc16; border-color: #84cc16; }

.api-portal__demo, .api-portal__product-box {
  --api-panel: #fff;
  --api-text: #111827;
  --api-muted: #4b5563;
  --api-border: #d9dce2;
  color: var(--api-text);
  min-width: 0;
}
.api-portal__demo { width: 100%; max-width: 560px; margin: 0 auto; background: #f3f4f6; border-radius: 12px; overflow: hidden; }
.api-portal__demo-tabs { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 8px; }
.api-portal__demo-tabs button { flex: 1; min-width: 0; text-align: center; padding: 10px 12px; border: 0; font-size: 14px; line-height: normal; }
.api-portal__demo-tabs button:hover { color: var(--api-text); }
.api-portal__demo-tabs button[aria-selected="true"] { color: var(--api-text); background: #fff; }
.api-portal__demo-body { min-width: 0; }
.api-portal__demo-pane { height: 392px; min-height: 0; overflow: hidden; }
.api-portal__demo-body > .api-portal__sample-endpoint { margin: 0; padding: 8px 16px 10px; font: 12px "JetBrains Mono", ui-monospace, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #6b7280; }
.api-portal__demo .api-portal__preview { border: 0; background: transparent; padding: 0; }
.api-portal__demo .api-portal__search { display: flex; align-items: center; gap: 10px; margin: 4px 14px 12px; padding: 12px 14px; flex-wrap: nowrap; background: #fff; border-radius: 8px; }
.api-portal__demo .api-portal__search input { padding: 0; border: 0; background: transparent; font-size: 14px; }
.api-portal__demo .api-portal__search svg { flex: none; opacity: .6; }
.api-portal__demo .api-portal__search button { font-size: .75rem; height: 2rem; min-height: 2rem; padding-inline: .6rem; }
.api-portal__demo .api-portal__search .api-portal__search-icon { width: 16px; height: 16px; min-height: 0; padding: 0; border: 0; background: transparent; color: #6b7280; flex: none; }
.api-portal__search-icon:hover:not(:disabled) { color: var(--api-blue); }
.api-portal__typing-caret { display: none; flex: none; width: 1px; height: 16px; background: var(--api-blue); }
.is-demo-animating .api-portal__typing-caret { display: block; animation: api-query-caret 1s steps(2) infinite; }
.api-portal .api-portal__demo-signup { margin: 12px 14px 0; color: var(--api-muted); font-size: 13px; }
.api-portal__demo.is-demo-animating .api-portal__sample-results li { opacity: 0; transform: translateY(4px); }
.api-portal__demo.is-demo-animating .api-portal__sample-results li.is-visible { opacity: 1; transform: none; }
.api-portal__demo .api-portal__preview > p { font-size: .875rem; }
.api-portal__demo .api-portal__search input:disabled { opacity: 1; }
.api-portal--marketing .api-portal__search .btn.btn-primary:disabled {
  background: #e5e7eb; border-color: #d9dce2; color: #4b5563; opacity: 1;
}
.api-portal__sample-endpoint { font: .75rem/1.45 ui-monospace, monospace; color: var(--api-muted); }
.api-portal__sample-endpoint strong { color: var(--api-blue); margin-right: .35rem; }
.api-portal__sample-caption { color: var(--api-muted); font-size: .75rem; font-weight: 600; }
.api-portal__sample-results { display: grid; gap: 8px; margin: 0 14px 14px; padding: 0; list-style: none; }
.api-portal__sample-results li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 2px 12px; background: #fff; border-radius: 8px; padding: 11px 14px; font-size: 14px;
  transition: opacity .25s, transform .25s;
}
.api-portal__sample-results img { width: auto; height: 48px; aspect-ratio: 5 / 7; object-fit: contain; margin-right: 2px; box-shadow: 0 2px 6px rgb(0 0 0 / 18%); }
.api-portal__sample-results small { display: block; color: #6b7280; font-size: 12px; }
.api-portal__sample-results li > span { border-radius: 999px; background: rgb(45 117 255 / 14%); color: var(--api-blue); padding: 5px 12px; font: 600 12px Inter, system-ui, sans-serif; white-space: nowrap; }
.api-portal pre.api-portal__sample-code { white-space: pre-wrap; overflow-wrap: normal; word-break: normal; font: 11px/1.55 Inter, system-ui, sans-serif; background: #fff; border: 0; padding: 14px 14px 24px; margin: 0 14px 22px; color: #6b7280; }
.api-portal__sample-code strong { font-size: 14px; line-height: 1.5; color: #111827; }
.api-portal__recognition-example { background: #f3f4f6; padding: 14px; border-radius: 12px; }
.api-portal__demo .api-portal__recognition-example { padding: 0; margin: 10px 14px 14px; }
.api-portal__sample-match { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.api-portal__scan { position: relative; width: 88px; aspect-ratio: 5 / 7; flex: none; margin: 8px; }
.api-portal__scan img { display: block; width: 100%; height: 100%; object-fit: contain; box-shadow: 0 6px 16px rgb(0 0 0 / 18%); }
.api-portal__scan svg { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); fill: none; stroke: #6b6e73; stroke-width: 2.2; stroke-linecap: round; }
.api-portal__scan svg path { vector-effect: non-scaling-stroke; }
.api-portal__scan-line { position: absolute; left: -4px; right: -4px; top: 0; height: 3px; background: #c8f31d; box-shadow: 0 0 12px 2px rgba(200,243,29,.7); opacity: 0; }
.api-portal__scan.is-scanning .api-portal__scan-line { animation: api-card-scan 1.1s ease-in-out forwards; }
.api-portal__animated-match { min-width: 0; transition: opacity .3s; }
.api-portal__animated-match strong { white-space: pre-line; font-size: 14px; line-height: 1.35; }
.api-portal__recognition-example.is-demo-animating .api-portal__animated-match { opacity: 0; }
.api-portal__recognition-example.is-demo-animating .api-portal__animated-match.is-visible { opacity: 1; }
.api-portal__recognition-example.is-demo-animating dd { opacity: 0; }
.api-portal__recognition-example.is-demo-animating .is-visible dd { opacity: 1; }
.api-portal__recognition-example dd { transition: opacity .25s; }
.api-portal__sample-match .api-portal__sample-caption { margin: 0 0 4px; font: 600 12px Inter, system-ui, sans-serif; color: var(--api-blue); }
.api-portal__sample-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 12px; }
.api-portal__sample-fields > div { padding: 5px 10px; background: #fff; border-radius: 8px; min-width: 0; }
.api-portal__sample-fields dt { color: #6b7280; font-size: 11px; line-height: 14px; }
.api-portal__sample-fields dd { font-size: 12.5px; line-height: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@keyframes api-card-scan {
  0% { top: 0; opacity: 1; }
  88% { top: 100%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes api-query-caret { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .api-portal__demo .api-portal__sample-results li { transition: none; }
  .api-portal__scan.is-scanning .api-portal__scan-line { animation: none; }
  .api-portal__animated-match, .api-portal__recognition-example dd { transition: none; }
  .api-portal__typing-caret { display: none; animation: none; }
}

.api-portal__proof { margin: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 6.5rem); }
.api-portal__proof > p { margin-bottom: 1.15rem; color: var(--api-green); font-size: .875rem; font-weight: 600; }
.api-portal__proof-band { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.4rem clamp(1rem, 2vw, 2.5rem); padding: 1.6rem 0; }
.api-portal__proof-band::before { content: ""; position: absolute; inset-block: 0; left: 50%; transform: translateX(-50%); width: 100vw; border-block: 1px solid currentColor; pointer-events: none; }
.api-portal__proof-band img { width: 10rem; height: 2.125rem; object-fit: contain; }

@media (max-width: 36rem) {
  .api-portal__proof-band { gap: 1rem 1.5rem; }
  .api-portal__proof-band img { width: 7rem; height: 1.5rem; }
}

@media (max-width: 600px) {
  .api-portal__demo-pane { height: auto; min-height: 392px; overflow: visible; }
}
