.content-page { color: var(--ink); background: #fff; }
.content-page .site-header { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(15,23,42,.08); }
.content-page .desktop-nav a.active { color: var(--teal-dark); }
.content-main { padding-top: 76px; }
.content-hero { overflow: hidden; border-bottom: 1px solid var(--line); background-color: #f7fafa; background-image: linear-gradient(rgba(25,80,78,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(25,80,78,.035) 1px, transparent 1px); background-size: 44px 44px; }
.content-hero-inner { min-height: 430px; display: flex; align-items: flex-end; justify-content: space-between; gap: 70px; padding-top: 96px; padding-bottom: 72px; }
.content-hero-copy { max-width: 760px; }
.content-hero h1 { max-width: 760px; margin: 0; color: #0b1322; font-size: 52px; line-height: 1.12; }
.content-hero p { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.content-hero-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 10px; }
.content-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: #66758a; font-size: 12px; font-weight: 700; }
.content-meta span { display: inline-flex; align-items: center; gap: 7px; }
.content-meta svg { width: 15px; height: 15px; color: var(--teal-dark); stroke-width: 1.9; }

.docs-shell { display: grid; grid-template-columns: 240px minmax(0,1fr); align-items: start; gap: 64px; padding-top: 64px; padding-bottom: 104px; }
.docs-sidebar { position: sticky; top: 108px; padding-right: 28px; border-right: 1px solid var(--line); }
.docs-sidebar strong { display: block; margin-bottom: 13px; color: #172033; font-size: 12px; text-transform: uppercase; }
.docs-sidebar nav { display: flex; flex-direction: column; gap: 3px; }
.docs-sidebar a { padding: 9px 11px; color: #66758a; border-left: 2px solid transparent; font-size: 13px; font-weight: 650; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.docs-sidebar a:hover, .docs-sidebar a.active { color: var(--teal-dark); border-color: var(--teal); background: #f3faf8; }
.docs-sidebar .sidebar-help { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.docs-sidebar .sidebar-help p { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.docs-sidebar .sidebar-help a { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; font-weight: 800; }
.docs-sidebar .sidebar-help svg { width: 15px; }

.docs-content { min-width: 0; }
.docs-content > section { padding: 0 0 52px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.docs-content > section + section { padding-top: 52px; }
.docs-content > section:last-child { border-bottom: 0; }
.docs-content h2 { margin: 0; color: #101827; font-size: 31px; line-height: 1.25; }
.docs-content h3 { margin: 32px 0 11px; color: #182235; font-size: 19px; }
.docs-content p { max-width: 790px; margin: 13px 0 0; color: var(--muted); line-height: 1.75; }
.docs-content ul, .docs-content ol { margin: 18px 0 0; padding-left: 22px; color: #4d5b6f; line-height: 1.8; }
.docs-content li + li { margin-top: 5px; }
.section-intro { max-width: 760px; }
.endpoint-bar { display: grid; grid-template-columns: 90px minmax(0,1fr) auto; align-items: center; gap: 18px; margin-top: 24px; padding: 14px 16px; border: 1px solid #dce3e7; border-radius: 6px; background: #f7f9fa; }
.method { display: inline-flex; min-height: 28px; align-items: center; justify-content: center; padding: 0 10px; color: #fff; background: var(--teal-dark); border-radius: 4px; font-size: 11px; font-weight: 800; }
.endpoint-bar code { overflow: auto; color: #172033; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.endpoint-bar span:last-child { color: #718094; font-size: 11px; font-weight: 700; }
.flow-grid { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 28px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.flow-grid article { min-height: 178px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow-grid span { color: var(--teal-dark); font-size: 11px; font-weight: 800; }
.flow-grid h3 { margin: 24px 0 7px; font-size: 15px; }
.flow-grid p { margin: 0; font-size: 12px; line-height: 1.65; }
.code-panel { overflow: hidden; margin-top: 24px; border: 1px solid #26374c; border-radius: 6px; background: #0c1523; }
.code-toolbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 13px 0 18px; border-bottom: 1px solid #26374c; background: #111e30; }
.code-tabs { display: flex; align-items: center; gap: 20px; overflow-x: auto; }
.code-tabs button { height: 48px; padding: 0; color: #8190a5; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.code-tabs button.active { color: #78dfd1; border-color: #4fc7b7; }
.code-copy { width: 32px; height: 32px; display: grid; flex: 0 0 32px; place-items: center; color: #9cabbc; border: 1px solid #34465c; border-radius: 5px; background: #17263a; cursor: pointer; }
.code-copy:hover { color: #fff; border-color: #5c718a; }
.code-copy svg { width: 15px; height: 15px; stroke-width: 1.8; }
.code-panel pre { min-height: 250px; margin: 0; padding: 22px; overflow: auto; color: #dbe6ef; font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.code-panel pre[hidden] { display: none; }
.response-block { margin-top: 18px; padding: 18px 20px; overflow: auto; color: #314157; border-left: 3px solid var(--teal); background: #f4f8f7; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.doc-note { margin-top: 22px; padding: 16px 18px; color: #67501b; border: 1px solid #eadfbf; border-radius: 6px; background: #fcfaf3; font-size: 13px; line-height: 1.7; }
.doc-note strong { color: #4f3d12; }
.field-table { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 13px; }
.field-table th, .field-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.field-table th { color: #566579; background: #f7f9fa; font-size: 11px; text-transform: uppercase; }
.field-table td { color: #59677a; line-height: 1.6; }
.field-table code { color: #152033; font-weight: 700; }
.integration-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 25px; }
.integration-grid article { min-height: 220px; padding: 25px; border: 1px solid var(--line); border-radius: 7px; }
.integration-grid .icon-box { margin-bottom: 26px; }
.integration-grid h3 { margin: 0 0 8px; font-size: 17px; }
.integration-grid p { margin: 0; font-size: 13px; }
.integration-grid a { display: inline-flex; align-items: center; gap: 6px; margin-top: 19px; color: var(--teal-dark); font-size: 12px; font-weight: 800; }
.integration-grid a svg { width: 14px; }
.check-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 34px; margin-top: 24px; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 0; padding-left: 26px; }
.check-list li::before { position: absolute; top: 8px; left: 0; width: 14px; height: 14px; content: ""; border: 1px solid #8fcfc5; border-radius: 50%; background: #e9f7f4; }

.pricing-shell { padding-top: 68px; padding-bottom: 104px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; min-height: 520px; padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 16px 44px rgba(17,24,39,.06); }
.price-card.featured { border-color: rgba(15,159,143,.45); background: #f7fbfa; box-shadow: 0 22px 54px rgba(15,159,143,.12); }
.plan-label { display: inline-flex; width: max-content; min-height: 28px; align-items: center; padding: 0 10px; color: var(--teal-dark); border: 1px solid #bfe3de; border-radius: 4px; background: #eefaf7; font-size: 11px; font-weight: 800; }
.price-card h2 { margin: 22px 0 0; color: #101827; font-size: 28px; line-height: 1.2; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.plan-price strong { color: #0b1322; font-size: 56px; line-height: 1; }
.plan-price span { color: #657387; font-size: 13px; font-weight: 800; }
.price-card p { margin: 18px 0 0; color: var(--muted); line-height: 1.7; }
.price-card ul { display: flex; flex-direction: column; gap: 10px; margin: 26px 0 30px; padding: 0; list-style: none; color: #45556b; font-size: 14px; }
.price-card li { position: relative; padding-left: 24px; }
.price-card li::before { position: absolute; top: 7px; left: 0; width: 12px; height: 12px; content: ""; border: 1px solid #7fcac0; border-radius: 50%; background: #e8f7f4; }
.price-card .button { width: 100%; margin-top: auto; }
.pricing-note-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 20px; }
.pricing-note-grid article { min-height: 220px; padding: 25px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.pricing-note-grid span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--teal-dark); border: 1px solid #cce6e1; border-radius: 6px; background: #f3faf8; }
.pricing-note-grid svg { width: 19px; height: 19px; stroke-width: 1.8; }
.pricing-note-grid h3 { margin: 24px 0 8px; color: #182235; font-size: 17px; }
.pricing-note-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.pricing-compare { padding-top: 76px; }
.pricing-compare .section-heading { margin-bottom: 30px; }
.doc-table-wrap { width: 100%; overflow-x: auto; }

.legal-shell { display: grid; grid-template-columns: 220px minmax(0,760px); justify-content: center; align-items: start; gap: 68px; padding-top: 64px; padding-bottom: 112px; }
.legal-content { min-width: 0; }
.legal-content section { padding-bottom: 34px; scroll-margin-top: 110px; }
.legal-content section + section { padding-top: 34px; border-top: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 14px; color: #142034; font-size: 24px; }
.legal-content p, .legal-content li { color: #58667a; line-height: 1.85; }
.legal-content p { margin: 0 0 13px; }
.legal-content ul { margin: 0; padding-left: 20px; }
.legal-content li + li { margin-top: 7px; }
.legal-summary { margin-bottom: 38px; padding: 20px 22px; border-left: 3px solid var(--teal-dark); background: #f4f8f7; }
.legal-summary p { margin: 0; color: #3f5063; }
.page-contact { padding: 70px 0; color: #fff; background: var(--navy); }
.page-contact .shell { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.page-contact h2 { margin: 0; color: #fff; font-size: 29px; }
.page-contact p { margin: 10px 0 0; color: #9fadc0; }
.page-contact .button { flex: 0 0 auto; color: #102033; background: #fff; }
.content-footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.content-footer-links a:hover { color: #6fd8cb; }
.content-toast { position: fixed; z-index: 160; left: 50%; bottom: 26px; padding: 10px 14px; color: #fff; border-radius: 5px; background: var(--navy); box-shadow: var(--shadow); opacity: 0; transform: translate(-50%,12px); transition: opacity .2s ease, transform .2s ease; font-size: 12px; pointer-events: none; }
.content-toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 900px) {
  .content-hero-inner { min-height: 390px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 32px; padding-top: 72px; padding-bottom: 58px; }
  .content-hero h1 { font-size: 44px; }
  .content-hero-actions { width: 100%; flex-direction: row; }
  .docs-shell, .legal-shell { grid-template-columns: 1fr; gap: 38px; }
  .docs-sidebar { position: static; padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .docs-sidebar nav { display: grid; grid-template-columns: repeat(3,1fr); }
  .docs-sidebar .sidebar-help { display: none; }
  .flow-grid { grid-template-columns: repeat(2,1fr); }
  .integration-grid { grid-template-columns: 1fr; }
  .pricing-grid, .pricing-note-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 0; }
}

@media (max-width: 640px) {
  .content-main { padding-top: 68px; }
  .content-hero { background-size: 36px 36px; }
  .content-hero-inner { min-height: 0; padding-top: 60px; padding-bottom: 48px; }
  .content-hero h1 { font-size: 36px; }
  .content-hero p { font-size: 16px; }
  .content-hero-actions { flex-direction: column; }
  .content-hero-actions .button { width: 100%; }
  .docs-shell, .legal-shell { padding-top: 42px; padding-bottom: 76px; }
  .docs-sidebar nav { grid-template-columns: repeat(2,1fr); }
  .docs-content > section { padding-bottom: 40px; }
  .docs-content > section + section { padding-top: 40px; }
  .docs-content h2 { font-size: 26px; }
  .endpoint-bar { grid-template-columns: 72px minmax(0,1fr); gap: 10px; }
  .endpoint-bar span:last-child { grid-column: 1 / -1; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-grid article { min-height: 150px; }
  .code-toolbar { align-items: flex-start; }
  .code-tabs { gap: 16px; }
  .code-panel pre { min-height: 300px; padding: 17px; font-size: 10px; }
  .field-table { display: block; overflow-x: auto; }
  .field-table th, .field-table td { min-width: 120px; }
  .check-list { grid-template-columns: 1fr; }
  .page-contact .shell { align-items: stretch; flex-direction: column; }
  .page-contact .button { width: 100%; }
}
