/* TribePeer for organisations — marketing + docs */

.btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 9999px;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-family: var(--ff-d);
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
  transition: border-color 0.18s, color 0.18s, background 0.18s, transform 0.18s;
}
.btn-ink:hover {
  border-color: rgba(88, 80, 236, 0.4);
  color: var(--c-pdark);
  background: var(--c-pmuted);
  transform: translateY(-1px);
}

.btn-hero-primary.btn-on-light,
.btn-on-light.btn-hero-primary {
  color: #fff;
}

.page-hero {
  min-height: auto;
  padding: 132px 5vw 72px;
  align-items: flex-end;
}
.page-hero .hero-inner {
  grid-template-columns: 1fr;
  max-width: 1100px;
  gap: 0;
}
.page-hero .hero-h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  max-width: 16ch;
}
.page-hero .hero-sub {
  max-width: 640px;
  margin-bottom: 28px;
}

.trust-strip {
  background: var(--c-ink2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.trust-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 5vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 32px;
}
.trust-item {
  color: rgba(240, 239, 254, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}
.trust-item strong {
  display: block;
  font-family: var(--ff-d);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 4px;
}

.section-head {
  margin-bottom: 48px;
  max-width: 640px;
}
.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head--center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.how-head { text-align: center; margin-bottom: 64px; }
.how-head .section-sub { margin: 0 auto; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.how-steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(16.66% + 12px);
  right: calc(16.66% + 12px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border) 20%, var(--c-border) 80%, transparent);
  pointer-events: none;
}
.how-step { text-align: center; padding: 0 8px; }
.how-step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: var(--c-light);
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.how-step:hover .how-step-num {
  background: var(--c-primary);
  border-color: var(--c-primary);
  box-shadow: 0 0 0 6px rgba(88, 80, 236, 0.12);
}
.how-step:hover .how-step-num svg { color: #fff !important; }
.how-step-label {
  font-family: var(--ff-d);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 8px;
}
.how-step-title {
  font-family: var(--ff-d);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.how-step-desc { font-size: 0.9rem; line-height: 1.65; color: var(--c-tsec); }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.audience-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  padding: 28px 28px 26px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.audience-card:hover {
  border-color: rgba(88, 80, 236, 0.28);
  box-shadow: 0 10px 36px rgba(88, 80, 236, 0.08);
  transform: translateY(-2px);
}
.audience-kicker {
  font-family: var(--ff-d);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 10px;
}
.audience-card h3 {
  font-family: var(--ff-d);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.audience-card p { font-size: 0.95rem; line-height: 1.7; color: var(--c-tsec); }

.check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}
.check-list li {
  position: relative;
  display: block;
  padding-left: 28px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--c-tsec);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-pmuted) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%233730a3' d='M6.2 11.2 3.4 8.4l1.1-1.1 1.7 1.7 4.3-4.3 1.1 1.1z'/></svg>") center / 12px no-repeat;
}
.check-list code {
  display: inline;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-stack { display: grid; gap: 64px; }
.product-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.product-row--flip { direction: rtl; }
.product-row--flip > * { direction: ltr; }
.product-row h3 {
  font-family: var(--ff-d);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.product-row .lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--c-tsec);
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.surface-panel {
  background: var(--c-ink2);
  border: 1px solid rgba(88, 80, 236, 0.28);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(12, 11, 20, 0.18);
  min-height: 260px;
  color: var(--c-off);
}
.surface-panel--light {
  background: #fff;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  box-shadow: 0 16px 40px rgba(88, 80, 236, 0.08);
}
.surface-panel-label {
  font-family: var(--ff-d);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-plight);
  margin-bottom: 14px;
}
.surface-panel--light .surface-panel-label { color: var(--c-primary); }
.surface-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}
.surface-panel--light .surface-line { border-bottom-color: var(--c-border); }
.surface-line:last-child { border-bottom: 0; }
.surface-line span { color: rgba(240, 239, 254, 0.5); }
.surface-panel--light .surface-line span { color: var(--c-muted); }
.surface-line strong { font-family: var(--ff-d); font-weight: 700; }
.surface-code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.65;
  color: #c7d2fe;
  background: #0c0b14;
  border-radius: 12px;
  padding: 16px;
  overflow: auto;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cap-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
}
.cap-card h3 {
  font-family: var(--ff-d);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 12px 0 8px;
}
.cap-card p { font-size: 0.86rem; line-height: 1.65; color: rgba(240, 239, 254, 0.62); }
.cap-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(88, 80, 236, 0.18);
  color: var(--c-plight);
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.path-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.path-card:hover {
  border-color: rgba(88, 80, 236, 0.3);
  box-shadow: 0 12px 40px rgba(88, 80, 236, 0.1);
  transform: translateY(-3px);
}
.path-card--featured {
  border-color: rgba(88, 80, 236, 0.45);
  box-shadow: 0 16px 48px rgba(88, 80, 236, 0.12);
}
.path-who {
  font-family: var(--ff-d);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 10px;
}
.path-card h3 {
  font-family: var(--ff-d);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.path-card .path-lead {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--c-tsec);
  margin-bottom: 16px;
}
.path-price {
  font-family: var(--ff-d);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
}
.path-price small {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-muted);
  margin-top: 4px;
}
.path-card .check-list { flex: 1; margin-bottom: 22px; }
.path-card .btn-hero-primary { justify-content: center; width: 100%; }

.price-compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.price-compare th,
.price-compare td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.price-compare th {
  font-family: var(--ff-d);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  background: var(--c-light);
}
.price-compare tr:last-child td { border-bottom: 0; }
.price-compare strong {
  font-family: var(--ff-d);
  font-size: 1rem;
}
.price-compare .muted {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--c-tsec);
  font-weight: 400;
}
.price-compare a {
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: none;
}
.price-compare a:hover { text-decoration: underline; }

.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-head { text-align: center; margin-bottom: 48px; }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--ff-d);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
}
.faq-q:hover { color: var(--c-primary); }
.faq-chevron { flex-shrink: 0; transition: transform 0.3s var(--ease-smooth); color: var(--c-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--c-primary); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out), padding 0.35s;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--c-tsec);
}
.faq-item.open .faq-a { max-height: 520px; padding-bottom: 22px; }

.prose-page {
  padding: 0 0 96px;
}
.prose-page .page-body {
  max-width: 820px;
}
.prose-page h2 {
  font-family: var(--ff-d);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 48px 0 14px;
}
.prose-page p + p { margin-top: 14px; }
.prose-page .lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--c-tsec);
}
.include-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.include-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 22px;
}
.include-card h3 {
  font-family: var(--ff-d);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.include-card p { font-size: 0.9rem; line-height: 1.65; color: var(--c-tsec); }

.sibling-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.sibling-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--ff-d);
  color: var(--c-tsec);
}
.sibling-nav a:hover { border-color: var(--c-primary); color: var(--c-primary); }

.req-shell {
  padding: 48px 5vw 96px;
}
.req-card {
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 16px 48px rgba(88, 80, 236, 0.08);
}
.req-form { display: grid; gap: 16px; margin-top: 8px; }
.req-form label {
  display: grid;
  gap: 7px;
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: 0.88rem;
}
.req-form input,
.req-form select {
  font-family: var(--ff-b);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: #fff;
}
.req-form input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(88, 80, 236, 0.12);
}
.req-note {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--c-tsec);
  margin: 8px 0 18px;
}
.err { color: #b91c1c; font-size: 0.9rem; }

/* Docs portal */
.dev-portal {
  margin-top: 68px;
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  background: #f4f3fb;
}
.dev-mobile-bar {
  display: none;
}
.dev-side-backdrop {
  display: none;
}
.dev-side-close {
  display: none;
}
.dev-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-right: 4px;
}
.dev-side {
  background: #0f0e18;
  color: rgba(255, 255, 255, 0.72);
  padding: 28px 18px 48px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.dev-side-brand {
  font-family: var(--ff-d);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-plight);
  padding: 0 10px 18px;
}
.dev-side-group {
  margin-bottom: 22px;
}
.dev-side-group h4 {
  font-family: var(--ff-d);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  padding: 0 10px 8px;
}
.dev-side a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
}
.dev-side a:hover,
.dev-side a.active {
  background: rgba(88, 80, 236, 0.22);
  color: #fff;
}
.dev-body {
  padding: 40px 48px 96px;
  max-width: 880px;
  min-width: 0;
  width: 100%;
}
.dev-cta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dev-kicker {
  font-family: var(--ff-d);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 10px;
}
.dev-body h1 {
  font-family: var(--ff-d);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.dev-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--c-tsec);
  margin-bottom: 28px;
}
.dev-body h2 {
  font-family: var(--ff-d);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 52px 0 12px;
  scroll-margin-top: 96px;
}
.dev-body h3 {
  font-family: var(--ff-d);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 10px;
}
.dev-body p { font-size: 0.98rem; line-height: 1.75; color: var(--c-tsec); }
.dev-body p + p { margin-top: 12px; }
.dev-callout {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--c-tsec);
}
.dev-callout--warn {
  background: #fffbeb;
  border-color: #fde68a;
}
.dev-steps {
  display: grid;
  gap: 14px;
  margin: 22px 0 8px;
}
.dev-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 16px 18px;
}
.dev-step b {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--c-pmuted);
  color: var(--c-pdark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-d);
  font-size: 0.85rem;
}
.dev-step h3 { margin: 0 0 6px; }
.dev-step p { margin: 0; font-size: 0.9rem; }

.dx-code {
  margin: 16px 0 22px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f0e18;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.dx-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #161427;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dx-code-bar span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}
.dx-copy {
  font-family: var(--ff-d);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 4px 8px;
  border-radius: 6px;
}
.dx-copy:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.dx-code pre {
  margin: 0;
  padding: 16px 16px 18px;
  overflow: auto;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #e2e8f0;
  background: transparent;
}
.dx-code code { font-family: inherit; }

.ep-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 8px;
  border-radius: 14px;
  border: 1px solid var(--c-border);
  background: #fff;
}
.ep-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: #fff;
  margin: 0;
}
.ep-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.88rem;
  color: var(--c-tsec);
  vertical-align: top;
}
.ep-table td:first-child {
  white-space: nowrap;
}
.ep-table tr:last-child td { border-bottom: 0; }
.ep-table code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--c-text);
  word-break: break-all;
  white-space: normal;
}
.m {
  display: inline-block;
  min-width: 52px;
  text-align: center;
  font-family: var(--ff-d);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 6px;
  padding: 3px 6px;
  margin-right: 8px;
}
.m-get { background: #dcfce7; color: #166534; }
.m-post { background: #ede9fe; color: #3730a3; }
.m-patch { background: #fef3c7; color: #92400e; }
.m-del { background: #fee2e2; color: #991b1b; }

.dev-inline code,
.dev-body code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.84em;
  background: var(--c-pmuted);
  color: var(--c-pdark);
  padding: 1px 6px;
  border-radius: 6px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.dx-code code { background: none; color: inherit; padding: 0; }

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 8px;
}
.docs-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.docs-card:hover {
  border-color: rgba(88, 80, 236, 0.35);
  box-shadow: 0 10px 28px rgba(88, 80, 236, 0.1);
  transform: translateY(-2px);
}
.docs-card strong {
  font-family: var(--ff-d);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.docs-card span {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--c-tsec);
}
.docs-card--accent {
  border-color: rgba(88, 80, 236, 0.35);
  background: linear-gradient(180deg, #fff 0%, #f5f3ff 100%);
}

.dx-ep {
  margin: 28px 0 36px;
  padding: 20px 20px 8px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
}
.dx-ep-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.dx-ep-path {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86rem;
  color: var(--c-text);
  word-break: break-all;
}
.dx-ep-meta {
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-bottom: 10px;
}
.dx-ep-summary {
  font-size: 0.95rem !important;
  margin-bottom: 14px !important;
}
.dx-ep h3 {
  font-family: var(--ff-d);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 18px 0 10px;
}

.dx-sample { margin: 14px 0 18px; }
.dx-sample .dx-code-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.dx-lang-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}
.dx-lang {
  font-family: var(--ff-d);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 5px 9px;
  border-radius: 7px;
}
.dx-lang.is-active,
.dx-lang:hover {
  color: #fff;
  background: rgba(88, 80, 236, 0.35);
}
.dx-lang-pane {
  margin: 0;
  padding: 16px 16px 18px;
  overflow: auto;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #e2e8f0;
  background: #0f0e18;
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 0;
}
.dx-sample .dx-code-bar {
  background: #161427;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px 14px 0 0;
  padding: 10px 14px;
}
.dx-lang-pane.is-hidden { display: none; }

@media (max-width: 980px) {
  .docs-card-grid { grid-template-columns: 1fr; }
  .dx-ep { padding: 16px 14px 6px; }
}

@media (max-width: 980px) {
  .trust-strip-inner,
  .audience-grid,
  .product-row,
  .product-row--flip,
  .cap-grid,
  .path-grid,
  .include-grid {
    grid-template-columns: 1fr;
  }
  .product-row--flip { direction: ltr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
  .price-compare { display: block; overflow-x: auto; }

  /* Docs: keep real sidenav as off-canvas drawer */
  .dev-portal {
    display: flex;
    flex-direction: column;
  }
  .dev-mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 68px;
    z-index: 120;
    padding: 10px 16px;
    background: rgba(244, 243, 251, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
  }
  .dev-toc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #0f0e18;
    color: #fff;
    font-family: var(--ff-d);
    font-size: 0.8rem;
    font-weight: 700;
  }
  .dev-mobile-bar-label {
    font-family: var(--ff-d);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-muted);
  }
  .dev-side-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 240;
    background: rgba(12, 11, 20, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-smooth);
  }
  .dev-portal.dev-nav-open .dev-side-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .dev-side {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 250;
    width: min(300px, 86vw);
    height: 100vh;
    height: 100dvh;
    padding: 20px 14px 40px;
    transform: translateX(-105%);
    transition: transform 0.28s var(--ease-out);
    box-shadow: none;
  }
  .dev-portal.dev-nav-open .dev-side {
    transform: translateX(0);
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.35);
  }
  .dev-side-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
  }
  .dev-side-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
  .dev-side-brand { padding-bottom: 12px; }
  .dev-side-group { margin-bottom: 18px; }
  .dev-side a { padding: 10px 12px; }
  .dev-body {
    padding: 24px 16px 80px;
    max-width: none;
  }
  .dev-body h2 { scroll-margin-top: 140px; margin-top: 40px; }
  .dev-lead { font-size: 1rem; }
  .dx-code-bar {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .dx-code-bar span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .dx-code pre {
    font-size: 0.74rem;
    padding: 14px;
  }
  .ep-table {
    min-width: 0;
  }
  .ep-table,
  .ep-table tbody,
  .ep-table tr,
  .ep-table td {
    display: block;
    width: 100%;
  }
  .ep-table-wrap {
    overflow: visible;
  }
  .ep-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--c-border);
  }
  .ep-table tr:last-child { border-bottom: 0; }
  .ep-table td {
    padding: 0;
    border-bottom: 0;
  }
  .ep-table td:first-child {
    white-space: normal;
    margin-bottom: 6px;
  }
  .ep-table td:first-child .m {
    display: inline-block;
    margin-bottom: 4px;
  }
  .ep-table code {
    display: inline;
    word-break: break-word;
  }
  body.dev-nav-lock {
    overflow: hidden;
    touch-action: none;
  }
}

@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr; }
  .trust-strip-inner { grid-template-columns: 1fr; }
  .page-hero { padding-top: 120px; }
  .dev-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
