@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f0e5;
  --paper-deep: #ece1cf;
  --surface: #fffdf8;
  --ink: #17130f;
  --ink-soft: #362f28;
  --muted: #74695f;
  --line: #ddd0bd;
  --line-strong: #bfae98;
  --blue: #e65322;
  --blue-soft: #fff0e8;
  --green: #285c4d;
  --green-soft: #e8f2ec;
  --amber: #a45c16;
  --amber-soft: #ffefd6;
  --coral: #e65322;
  --shadow: 0 22px 54px rgba(45, 32, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Avenir Next", Avenir, ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% 6%, rgba(230, 83, 34, 0.12), transparent 29%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), rgba(40, 92, 77, 0.04) 52%, rgba(230, 83, 34, 0.07)),
    var(--paper);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(23, 32, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 42, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 74%);
}

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

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 3px solid rgba(31, 91, 216, 0.42);
  outline-offset: 3px;
}

code,
pre {
  font-family: "IBM Plex Mono", SFMono-Regular, Consolas, Liberation Mono, monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1200px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(185, 200, 210, 0.56);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(18px);
}

:where(section[id], article[id]) {
  scroll-margin-top: 104px;
}

.brand,
.nav-links,
.header-actions,
.account-link,
.header-cta,
.hero-proof,
.agent-strip,
.upload-controls,
.result-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(135deg, #fff 0 62%, var(--blue-soft) 63% 100%);
  box-shadow: 6px 6px 0 rgba(36, 87, 230, 0.18);
}

.brand-mark::after {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-radius: 0 8px 0 3px;
  background: var(--paper);
  content: "";
}

.brand-mark span {
  position: absolute;
  left: 8px;
  bottom: 9px;
  width: 16px;
  height: 3px;
  border-radius: 99px;
  background: var(--coral);
  box-shadow: 0 -8px 0 var(--blue), 0 8px 0 var(--green);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
}

.nav-links {
  gap: 28px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
}

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

.header-actions {
  gap: 10px;
  justify-content: flex-end;
  min-width: max-content;
}

.account-link {
  max-width: 220px;
  min-height: 44px;
  justify-content: center;
  overflow: hidden;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-link.is-authenticated {
  border-color: rgba(31, 91, 216, 0.34);
  background: var(--blue-soft);
  color: var(--blue);
}

.account-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.header-cta,
.primary-action,
.result-actions a,
.result-actions button,
.plan-row a,
.price-card .plan-action,
.doc-link {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 820;
  box-shadow: 0 12px 26px rgba(21, 28, 36, 0.16);
}

.header-cta {
  padding: 12px 18px;
}

.hero-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.82fr);
  gap: 54px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4.1vw, 3.45rem);
  font-weight: 850;
  line-height: 1.02;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-lede {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  font-weight: 620;
  line-height: 1.44;
}

.hero-note {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.46;
}

.hero-proof {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-metrics,
.pricing-choice,
.docs-overview,
.availability-grid,
.step-list {
  display: grid;
  gap: 12px;
}

.hero-proof span,
.agent-strip a,
.agent-strip span,
.mode-toggle span,
.mini-icon,
.lane-label,
.metric-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 760;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.hero-proof svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 580px;
  margin-top: 30px;
}

.hero-metrics p {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(185, 200, 210, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.upload-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(21, 28, 36, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.upload-panel input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.dropzone {
  display: grid;
  min-width: 0;
  min-height: 248px;
  cursor: pointer;
  place-items: center;
  gap: 13px;
  padding: 34px;
  border: 2px dashed #9bb5c8;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(234, 241, 255, 0.58)),
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(36, 87, 230, 0.045) 22px);
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.dropzone.is-active,
.dropzone:hover {
  border-color: var(--blue);
  background: linear-gradient(180deg, #fff, #eef5ff);
  transform: translateY(-2px);
}

.file-glyph {
  position: relative;
  display: grid;
  width: 76px;
  height: 94px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 9px 9px 4px 4px;
  background: #fff;
  box-shadow: 9px 9px 0 rgba(21, 155, 103, 0.18);
}

.file-glyph::after {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-radius: 0 8px 0 4px;
  background: var(--blue-soft);
  content: "";
}

.file-glyph span {
  width: 34px;
  height: 4px;
  border-radius: 99px;
  background: var(--coral);
  box-shadow: 0 13px 0 var(--blue), 0 26px 0 var(--green);
}

.drop-title {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 860;
}

.drop-subtitle,
.status-line,
.bundle-grid p,
.developer-lanes p,
.site-footer,
.price-card li,
.doc-section p,
.app-card p,
.quality-rows span {
  color: var(--muted);
}

.upload-controls {
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.mode-toggle {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.mode-toggle label {
  cursor: pointer;
}

.mode-toggle input {
  position: absolute;
  opacity: 0;
}

.mode-toggle span {
  display: inline-flex;
  min-width: 88px;
  justify-content: center;
  padding: 11px 14px;
}

.mode-toggle input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.primary-action {
  min-width: 148px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 0.98rem;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status-line {
  min-height: 22px;
  margin: 14px 2px 0;
  font-size: 0.92rem;
}

.status-line.is-error {
  color: var(--coral);
  font-weight: 760;
}

.quota-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(184, 109, 24, 0.34);
  border-radius: 8px;
  background: var(--amber-soft);
}

.quota-action strong,
.quota-action span {
  display: block;
}

.quota-action strong {
  color: #7d470d;
}

.quota-action span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.42;
}

.quota-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.quota-action-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 820;
}

.quota-action-links a.secondary {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.agent-strip {
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  margin: 28px auto 0;
}

.agent-strip span,
.agent-strip a {
  padding: 9px 13px;
}

.agent-strip a {
  border-color: rgba(36, 87, 230, 0.24);
  color: var(--blue);
}

.result-panel {
  display: grid;
  gap: 20px;
  width: min(920px, 100%);
  margin: 34px auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.is-hidden {
  display: none !important;
}

.result-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.result-actions a,
.result-actions button {
  padding: 10px 13px;
  cursor: pointer;
}

.result-actions a.secondary,
.result-actions button.secondary {
  background: #fff;
  color: var(--ink);
}

.preview {
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101820;
  color: #f2f7fb;
  white-space: pre-wrap;
}

.section-band {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 30px;
}

.bundle-grid,
.developer-lanes,
.plan-row,
.price-grid,
.doc-grid,
.app-grid {
  display: grid;
  gap: 18px;
}

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

.bundle-grid article,
.developer-lanes article,
.plan-row article,
.price-card,
.doc-section,
.app-card,
.quality-rows p {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.bundle-grid article,
.plan-row article,
.price-card,
.doc-section,
.app-card {
  min-width: 0;
  padding: 22px;
}

.mini-icon,
.lane-label,
.metric-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 10px;
}

.output-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid rgba(31, 91, 216, 0.16);
  border-radius: 12px;
  color: #a93815;
  background: #eef5ff;
}

.output-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.output-icon-tables {
  color: #16794b;
  background: #ecf8f1;
  border-color: rgba(22, 121, 75, 0.18);
}

.output-icon-images {
  color: #874800;
  background: #fff5df;
  border-color: rgba(183, 100, 5, 0.2);
}

.output-icon-json {
  color: #7757c7;
  background: #f3efff;
  border-color: rgba(119, 87, 199, 0.2);
}

.output-icon-chunks {
  color: #0f6f7f;
  background: #eaf8fb;
  border-color: rgba(15, 111, 127, 0.18);
}

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 50px;
  align-items: start;
}

.product-flow {
  display: grid;
  gap: 26px;
}

.product-flow .section-heading {
  max-width: 760px;
}

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

.flow-steps article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 42px rgba(18, 25, 34, 0.06);
}

.flow-steps span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--amber);
  font-weight: 850;
}

.flow-steps p {
  max-width: 30rem;
  color: var(--muted);
}

.pricing-preview {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan-row,
.developer-lanes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-row a,
.doc-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 10px 13px;
}

.developer-lanes pre,
.doc-section pre {
  position: relative;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid #223141;
  border-radius: 8px;
  background: #111923;
  color: #eef6ff;
  font-size: 0.86rem;
  line-height: 1.6;
}

.developer-lanes pre.copyable-code,
.doc-section pre.copyable-code {
  padding-top: 48px;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border: 1px solid rgba(238, 246, 255, 0.2);
  border-radius: 8px;
  background: rgba(238, 246, 255, 0.08);
  color: #eef6ff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 820;
  padding: 6px 10px;
}

.copy-button:hover {
  background: rgba(238, 246, 255, 0.16);
}

.developer-lanes pre code,
.doc-section pre code {
  display: block;
  width: max-content;
  min-width: 100%;
  color: inherit;
  white-space: pre;
}

.doc-section :not(pre) > code,
.app-card :not(pre) > code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.docs-actions button,
.docs-actions a,
.copy-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 91, 216, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1;
  padding: 10px 12px;
  text-decoration: none;
}

.docs-actions button:first-child {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.docs-actions button:hover,
.docs-actions a:hover,
.copy-chip:hover {
  border-color: rgba(31, 91, 216, 0.36);
  box-shadow: 0 10px 22px rgba(18, 25, 34, 0.08);
}

.docs-action-status {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.copy-chip {
  width: fit-content;
  margin-top: 8px;
  padding: 7px 9px;
  font-size: 0.76rem;
}

.developer-lanes article {
  min-width: 0;
  padding: 18px;
}

.quality-rows {
  display: grid;
  gap: 12px;
}

.quality-rows p {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  margin: 0;
  padding: 18px 22px;
}

.site-footer {
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 54px;
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--ink);
  font-weight: 850;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 72px;
}

.docs-page {
  width: min(1120px, calc(100% - 40px));
}

.page-hero {
  max-width: 900px;
  margin-bottom: 34px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.compact-hero {
  max-width: 820px;
  margin-bottom: 28px;
}

.compact-hero h1 {
  max-width: 820px;
}

.compact-hero .hero-lede {
  max-width: 720px;
}

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

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

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

.pricing-mode {
  padding: 28px 0 58px;
}

.pricing-choice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 28px;
}

.pricing-choice a {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.pricing-choice a:hover {
  border-color: rgba(31, 91, 216, 0.36);
  box-shadow: 0 14px 34px rgba(18, 25, 34, 0.08);
  transform: translateY(-2px);
}

.pricing-choice span,
.pricing-choice strong,
.pricing-choice small {
  display: block;
}

.pricing-choice span {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pricing-choice strong {
  margin-bottom: 6px;
  font-size: 1.18rem;
}

.pricing-choice small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pricing-note {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 8px;
  padding: 18px 22px;
  border: 1px solid rgba(20, 123, 91, 0.24);
  border-radius: 8px;
  background: rgba(234, 248, 240, 0.7);
}

.pricing-note strong {
  color: var(--green);
}

.pricing-note span {
  color: var(--ink-soft);
  line-height: 1.5;
}

.pricing-flow {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 8px;
  padding: 22px;
  border: 1px solid rgba(31, 91, 216, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 241, 255, 0.64), rgba(234, 248, 240, 0.52)),
    rgba(255, 255, 255, 0.78);
}

.pricing-flow h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
}

.pricing-flow ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-flow li {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(185, 200, 210, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.pricing-flow strong,
.pricing-flow span {
  display: block;
}

.pricing-flow strong {
  color: var(--ink);
  line-height: 1.28;
}

.pricing-flow span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.section-heading.tight {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-heading.tight h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.price-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(31, 91, 216, 0.36);
  box-shadow: 0 18px 52px rgba(31, 91, 216, 0.1);
}

.price-card.muted-plan {
  background: rgba(255, 255, 255, 0.52);
}

.plan-name {
  color: var(--blue);
  font-weight: 850;
}

.plan-price {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 2.8rem;
  font-weight: 850;
  line-height: 0.95;
}

.plan-price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 740;
}

.price-card ul,
.doc-section ul,
.app-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.price-card .plan-action {
  width: fit-content;
  margin-top: auto;
  padding: 10px 13px;
}

.price-card .plan-action.secondary {
  background: #fff;
  color: var(--ink);
}

.doc-grid {
  grid-template-columns: 176px minmax(0, 860px);
  gap: 24px;
  align-items: start;
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto;
}

.docs-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1080px;
  margin: 0 auto 18px;
}

.docs-overview article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.docs-overview h2 {
  margin-bottom: 8px;
  font-size: clamp(1.22rem, 1.8vw, 1.7rem);
  line-height: 1.08;
}

.docs-overview p {
  color: var(--muted);
  line-height: 1.5;
}

.docs-overview p strong {
  color: var(--ink);
}

.docs-page .page-hero h1 {
  max-width: 720px;
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
}

.doc-nav,
.app-nav {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.doc-nav a,
.app-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 740;
}

.doc-nav a:hover,
.app-nav a:hover {
  background: var(--blue-soft);
  color: var(--ink);
}

.doc-stack,
.app-stack {
  display: grid;
  gap: 14px;
}

.doc-stack {
  width: 100%;
  max-width: 860px;
}

.doc-section h2,
.app-card h2 {
  font-size: clamp(1.28rem, 1.8vw, 1.75rem);
  line-height: 1.08;
}

.doc-section p,
.doc-section li,
.app-card p,
.app-card li {
  font-size: 0.98rem;
  line-height: 1.55;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.step-list li:first-child {
  border-top: 0;
}

.step-list strong,
.step-list span {
  display: block;
}

.step-list strong {
  color: var(--ink);
}

.step-list span {
  color: var(--muted);
}

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

.availability-grid p {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 251, 247, 0.78);
}

.availability-grid strong,
.availability-grid span {
  display: block;
}

.availability-grid strong {
  margin-bottom: 6px;
  color: var(--ink);
}

.availability-grid span {
  color: var(--muted);
}

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

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

.app-card.wide {
  grid-column: 1 / -1;
}

.app-card-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.app-card-head h2 {
  margin-bottom: 8px;
}

.auth-screen {
  display: grid;
  align-items: start;
  justify-items: center;
  min-height: calc(100vh - 190px);
  padding: 38px 0 70px;
}

.auth-card-title {
  margin-bottom: 20px;
  text-align: center;
}

.auth-card-title h1 {
  max-width: 460px;
  margin: 0 auto 12px;
  font-size: clamp(2rem, 3.2vw, 2.72rem);
  line-height: 1.03;
}

.auth-card-title p:last-child {
  max-width: 410px;
  margin-inline: auto;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.42;
}

.auth-card {
  align-self: start;
  width: min(100%, 480px);
  min-width: 0;
  padding: 30px;
  border: 1px solid rgba(185, 200, 210, 0.76);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 247, 0.88)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 54px rgba(18, 25, 34, 0.12);
}

.auth-card.account-entry {
  margin: 0 auto;
}

.social-login,
.auth-tabs {
  display: grid;
  gap: 10px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(21, 28, 36, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 820;
  padding: 13px 14px;
  box-shadow: 0 8px 18px rgba(18, 25, 34, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.social-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.github-icon svg {
  fill: currentColor;
}

.social-button:not(:disabled):hover {
  border-color: rgba(31, 91, 216, 0.42);
  box-shadow: 0 14px 30px rgba(18, 25, 34, 0.1);
  transform: translateY(-1px);
}

.social-button:disabled,
.social-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.social-login p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.auth-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(245, 248, 250, 0.8);
}

.auth-tabs.single-option {
  grid-template-columns: 1fr;
}

.auth-tabs button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 820;
  padding: 10px;
}

.auth-tabs button.is-hidden {
  display: none;
}

.auth-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(18, 25, 34, 0.08);
}

.email-auth-note {
  margin: -2px 0 14px;
}

.auth-form {
  border: 0;
  padding: 0;
  background: transparent;
}

.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.auth-intent,
.billing-intent-card {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(31, 91, 216, 0.24);
  border-radius: 8px;
  background: rgba(234, 241, 255, 0.72);
}

.auth-intent {
  display: grid;
  gap: 4px;
}

.auth-intent strong,
.billing-intent-card strong,
.auth-intent span,
.billing-intent-card span {
  display: block;
}

.auth-intent strong,
.billing-intent-card strong {
  color: var(--blue);
}

.auth-intent span,
.billing-intent-card span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.42;
}

.auth-alert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(216, 85, 69, 0.28);
  border-radius: 8px;
  background: rgba(255, 244, 241, 0.86);
}

.auth-alert.is-error {
  box-shadow: 0 14px 30px rgba(216, 85, 69, 0.1);
}

.auth-alert strong,
.auth-alert span {
  display: block;
}

.auth-alert strong {
  color: #9f2b1f;
}

.auth-alert span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.42;
}

.auth-alert button {
  border: 1px solid rgba(159, 43, 31, 0.26);
  border-radius: 8px;
  background: #fff;
  color: #9f2b1f;
  cursor: pointer;
  font: inherit;
  font-weight: 820;
  padding: 10px 12px;
  white-space: nowrap;
}

.app-card.is-focus {
  border-color: rgba(31, 91, 216, 0.5);
  box-shadow: 0 18px 42px rgba(31, 91, 216, 0.14);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.verification-form {
  margin-top: 12px;
  border-color: rgba(31, 91, 216, 0.28);
  background: rgba(234, 241, 255, 0.58);
}

.verification-form strong {
  font-size: 1rem;
}

.auth-form.is-hidden {
  display: none;
}

.account-dashboard {
  display: block;
}

.account-dashboard.is-hidden {
  display: none;
}

.app-card button,
.compact-form button,
.lookup-form button {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 11px 14px;
  white-space: nowrap;
}

.app-card button:disabled,
.compact-form button:disabled,
.lookup-form button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.app-card button.ghost-action,
.ghost-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 11px 14px;
  white-space: nowrap;
}

.auth-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.compact-form,
.lookup-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.compact-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 251, 247, 0.8);
}

.compact-form strong {
  color: var(--ink);
}

.compact-form label,
.select-row {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 740;
}

.compact-form input,
.lookup-form input,
.select-row select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.select-row + .select-row {
  margin-top: 12px;
}

.account-strip,
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.account-strip span,
.overview-grid span {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(36, 87, 230, 0.06);
}

.account-strip strong,
.account-strip em,
.overview-grid strong,
.overview-grid em {
  display: block;
}

.account-strip strong,
.overview-grid strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.account-strip em,
.overview-grid em {
  overflow: hidden;
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-grid {
  margin-top: 18px;
}

.overview-grid span {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(234, 248, 240, 0.54)),
    rgba(255, 255, 255, 0.66);
}

.overview-grid strong {
  margin-bottom: 5px;
}

.app-status,
.empty-state {
  margin: 18px 0 0;
  color: var(--muted);
}

.app-status.is-error,
.status-line.is-error {
  color: #b42318;
}

.secret-box {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(55, 126, 91, 0.32);
  border-radius: 8px;
  background: rgba(234, 247, 239, 0.9);
}

.secret-box span {
  color: var(--green);
  font-weight: 850;
}

.secret-box code {
  overflow-x: auto;
  padding: 10px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
}

.api-quickstart {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(31, 91, 216, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 241, 255, 0.7), rgba(234, 248, 240, 0.54)),
    rgba(255, 255, 255, 0.72);
}

.api-quickstart-copy strong,
.api-quickstart-copy span {
  display: block;
}

.api-quickstart-copy strong {
  color: var(--ink);
  font-size: 1rem;
}

.api-quickstart-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.api-route-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.api-route-list span {
  padding: 6px 9px;
  border: 1px solid rgba(31, 91, 216, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
}

.api-quickstart pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  border-radius: 8px;
  background: #111927;
  color: #eef4ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.api-quickstart code {
  display: block;
  width: max-content;
  min-width: 100%;
  padding: 14px;
  color: inherit;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre;
}

.developer-setup {
  align-content: start;
}

.setup-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.copy-block {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(31, 91, 216, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.copy-block strong,
.copy-block span {
  display: block;
}

.copy-block strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.copy-block span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.copy-block pre {
  position: relative;
  max-width: 100%;
  margin: 4px 0 0;
  overflow-x: auto;
  border-radius: 8px;
  background: #111927;
  color: #eef4ff;
}

.copy-block pre.copyable-code {
  padding-top: 40px;
}

.copy-block code {
  display: block;
  width: max-content;
  min-width: 100%;
  padding: 13px;
  color: inherit;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre;
}

.table-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.table-row strong,
.table-row small {
  display: block;
  min-width: 0;
}

.table-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 850;
  padding: 7px 10px;
}

.button-row,
.lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.lookup-form input {
  flex: 1 1 260px;
}

.meter {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.meter span {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.meter span::before {
  display: block;
  width: var(--value, 42%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  content: "";
}

.meter small {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    min-height: auto;
    padding: 18px 0;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .editorial,
  .product-flow,
  .doc-grid,
  .app-shell,
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  .bundle-grid,
  .plan-row,
  .developer-lanes,
  .docs-overview,
  .price-grid,
  .price-grid.three,
  .price-grid.two,
  .pricing-choice,
  .availability-grid,
  .app-grid,
  .auth-panel,
  .account-strip,
  .overview-grid,
  .setup-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-nav,
  .app-nav {
    position: static;
  }

  .doc-nav {
    display: flex;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .doc-nav a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero-shell,
  .section-band,
  .page-shell,
  .site-footer {
    width: min(100% - 24px, 1200px);
  }

  .site-header {
    gap: 10px;
  }

  .brand-copy small {
    display: none;
  }

  .header-actions {
    gap: 8px;
    min-width: 0;
  }

  .account-link {
    max-width: 118px;
    min-height: 42px;
    padding: 9px 10px;
  }

  .header-cta {
    padding: 10px 12px;
  }

  .hero-shell,
  .page-shell {
    padding-top: 24px;
  }

  .hero-shell {
    padding-bottom: 0;
  }

  .hero-grid {
    gap: 22px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  h2 {
    font-size: clamp(1.85rem, 8vw, 2.8rem);
  }

  .upload-controls,
  .quota-action,
  .quality-rows p,
  .pricing-note,
  .pricing-flow,
  .step-list li {
    grid-template-columns: 1fr;
  }

  .quota-action-links {
    justify-content: stretch;
  }

  .quota-action-links a {
    flex: 1 1 100%;
  }

  .upload-controls {
    display: grid;
  }

  .upload-panel {
    padding: 12px;
  }

  .mode-toggle,
  .primary-action {
    width: 100%;
  }

  .mode-toggle label,
  .mode-toggle span {
    width: 100%;
  }

  .bundle-grid,
  .flow-steps,
  .plan-row,
  .developer-lanes,
  .pricing-flow ol,
  .docs-overview,
  .price-grid,
  .price-grid.three,
  .price-grid.two,
  .pricing-choice,
  .availability-grid,
  .app-grid,
  .auth-panel,
  .account-strip,
  .overview-grid,
  .setup-command-grid {
    grid-template-columns: 1fr;
  }

  .auth-screen {
    min-height: auto;
    padding-top: 18px;
  }

  .app-card-head,
  .billing-intent-card,
  .table-row {
    grid-template-columns: 1fr;
  }

  .app-card-head {
    display: grid;
  }

  .app-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .app-nav a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .billing-intent-card {
    display: grid;
  }

  .price-card {
    min-height: auto;
  }

  .dropzone {
    min-height: 160px;
    padding: 18px 14px;
  }

  .hero-proof {
    display: none;
  }

  .hero-metrics {
    display: none;
  }

  .agent-strip {
    display: none;
  }

  .file-glyph {
    width: 52px;
    height: 66px;
  }

  .file-glyph span {
    width: 26px;
    height: 3px;
    box-shadow: 0 10px 0 var(--blue), 0 20px 0 var(--green);
  }

  .drop-title {
    font-size: 1.35rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #17130f;
    --paper-deep: #211a14;
    --surface: #251e17;
    --ink: #fff8eb;
    --ink-soft: #e7d9c8;
    --muted: #baa996;
    --line: #47392d;
    --line-strong: #685544;
    --blue: #ff7345;
    --blue-soft: #422319;
    --green: #76bca1;
    --green-soft: #18362d;
    --amber-soft: #3b2918;
  }

  body::before {
    opacity: 0.35;
  }

  .site-header,
  .account-link,
  .hero-proof span,
  .mode-toggle span {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  .brand-copy {
    display: none;
  }

  .account-link {
    max-width: 104px;
  }
}
