/**
 * Marketplace API landing — page-specific styles
 * Shell (header/footer/shared chrome): layout.css
 */

/* Who is this for — center header like value-stack */
.who-for--outchat .who-for__header {
  text-align: center;
}

.who-for--outchat .who-for__heading {
  margin-left: auto;
  margin-right: auto;
}

.who-for--outchat .who-for__lead {
  margin-left: auto;
  margin-right: auto;
}

/* Catalogue API — hero response panel */
.api-hero-panel {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 12px;
  background: #1c1917;
  color: #f5f5f4;
  box-shadow: 0 18px 40px rgba(32, 27, 22, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.api-hero-panel__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: #292524;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.api-hero-panel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #78716c;
}

.api-hero-panel__dot:nth-child(1) { background: #f87171; }
.api-hero-panel__dot:nth-child(2) { background: #fbbf24; }
.api-hero-panel__dot:nth-child(3) { background: #4ade80; }

.api-hero-panel__label {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #a8a29e;
  text-transform: lowercase;
}

.api-hero-panel__code {
  margin: 0;
  padding: 24px 22px 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(12px, 1.35vw, 14px);
  line-height: 1.55;
  overflow: auto;
  flex: 1;
  white-space: pre;
}

.api-hero-panel__code .tok-key { color: #fdba74; }
.api-hero-panel__code .tok-str { color: #86efac; }
.api-hero-panel__code .tok-num { color: #93c5fd; }
.api-hero-panel__code .tok-bool { color: #c4b5fd; }
.api-hero-panel__code .tok-cmt { color: #a8a29e; }

@media (max-width: 900px) {
  .api-hero-panel {
    min-height: 280px;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* Buyer API — soft editor card, fills the hero column */
.api-hero-panel--soft {
  background: #ffffff;
  color: #3f3f46;
  border: 1px solid #e4e4e7;
  box-shadow: 0 18px 44px rgba(24, 24, 27, 0.08);
  min-height: 0;
}

.api-hero-panel--soft .api-hero-panel__chrome {
  background: #fafafa;
  border-bottom: 1px solid #e4e4e7;
  padding: 12px 16px;
}

.api-hero-panel--soft .api-hero-panel__tab {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #3f3f46;
}

.api-hero-panel--soft .api-hero-panel__lines {
  list-style: none;
  margin: 0;
  padding: 20px 20px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  counter-reset: hero-line;
}

.api-hero-panel--soft .api-hero-panel__lines li {
  position: relative;
  padding-left: 36px;
  min-height: 1.7em;
  counter-increment: hero-line;
  white-space: pre;
}

.api-hero-panel--soft .api-hero-panel__lines li::before {
  content: counter(hero-line);
  position: absolute;
  left: 0;
  width: 24px;
  text-align: right;
  color: #d4d4d8;
  font-size: 12px;
}

.api-hero-panel--soft .api-hero-panel__result {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 14px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #e4e4e7;
}

.api-hero-panel--soft .api-hero-panel__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #71717a;
}

.api-hero-panel--soft .api-hero-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.api-hero-panel--soft .api-hero-panel__meta span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  font-size: 12px;
  font-weight: 500;
  color: #52525b;
}

.api-hero-panel--soft .api-hero-panel__codes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #3f3f46;
}

.api-hero-panel--soft .api-hero-panel__codes li {
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  letter-spacing: 0.04em;
}

.api-hero-panel--soft .api-hero-panel__ok {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.api-hero-panel--soft .tok-fn { color: #71717a; }
.api-hero-panel--soft .tok-str { color: #c2410c; }
.api-hero-panel--soft .tok-num { color: #c2410c; }
.api-hero-panel--soft .tok-bool { color: #a16207; }
.api-hero-panel--soft .tok-cmt { color: #a1a1aa; }

.hero-realm__visual--code {
  aspect-ratio: auto;
  display: flex;
}

.hero-realm__visual--code .api-hero-panel {
  height: 100%;
  min-height: 420px;
}

/* Scope note */
.scope-note {
  background: #ffffff;
  padding-top: 20px;
  padding-bottom: 40px;
}

.scope-note__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.scope-note__heading {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #201b16;
  margin: 16px 0 24px;
}

.scope-note__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 14px;
}

.scope-note__list li {
  font-size: 16px;
  line-height: 1.55;
  color: #64748b;
  padding: 16px 18px;
  border: 1px solid #eadfd4;
  border-radius: 12px;
  background: #fffbf7;
}

.scope-note__list strong {
  color: #201b16;
  font-weight: 500;
}

.btn-hero--outline {
  background: #ffffff;
  color: #F07E13;
  border: 1px solid #F07E13;
}

.btn-hero--outline:hover {
  background: #fff7ed;
  color: #d96b0f;
  border-color: #d96b0f;
}

/* BSV Business cross-link — dark band (business.bsvmarket.com) */
.business-alt {
  position: relative;
  overflow: hidden;
  padding: 72px 20px 80px;
  background:
    radial-gradient(ellipse 55% 70% at 85% 50%, rgba(253, 81, 8, 0.14), transparent 70%),
    #0a0a0a;
  font-family: "Manrope", system-ui, sans-serif;
  color-scheme: dark;
}

.business-alt__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.business-alt__copy {
  min-width: 0;
}

.business-alt__tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fd5108;
  margin-bottom: 14px;
}

.business-alt__heading {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #f5f5f5;
  margin: 0 0 14px;
  max-width: 16ch;
}

.business-alt__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #a3a3a3;
  max-width: 38rem;
}

.business-alt__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  justify-self: end;
}

.business-alt__logo {
  display: block;
  width: 200px;
  height: auto;
}

.business-alt__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  background: #fd5108;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}

.business-alt__cta:hover {
  background: #ff6a2a;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .business-alt {
    padding: 56px 20px 64px;
  }

  .business-alt__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .business-alt__heading {
    max-width: none;
  }

  .business-alt__aside {
    justify-self: start;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .business-alt__aside {
    width: 100%;
  }

  .business-alt__cta {
    width: 100%;
  }
}

/* Buyer API — hero checks + CTA wrap */
.hero-realm__cta-wrap {
  margin-bottom: 22px;
}

.hero-realm__checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-realm__checks li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.45;
  color: #64748b;
}

.hero-realm__checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #c2410c;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-realm__checks {
    text-align: left;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Buyer API — four capability cards */
.value-cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.value-cards--4 .value-card--winden {
  min-height: 0;
  padding: 28px 20px 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.value-cards--4 .value-card--winden:hover {
  border-color: #fdba74;
  box-shadow: 0 16px 36px rgba(32, 27, 22, 0.07);
  transform: translateY(-3px);
}

.value-cards--4 .value-card__icon--winden {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  margin-top: 0;
  border-radius: 14px;
  background: #fff7ed;
}

.value-cards--4 .value-card__icon--winden svg {
  width: 26px;
  height: 26px;
}

.value-cards--4 .value-card__title--winden {
  padding-top: 16px;
}

.value-stack--winden .value-stack__heading {
  max-width: 28ch;
}

@media (max-width: 1100px) {
  .value-cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .value-cards--4 {
    grid-template-columns: 1fr;
  }
}

/* Buyer API — version timeline */
.version-rail {
  background: #ffffff;
  padding: 80px 20px 40px;
}

.version-rail__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.version-rail__header {
  text-align: center;
  margin-bottom: 48px;
}

.version-rail__heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #000;
  margin: 0 0 12px;
}

.version-rail__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #64748b;
}

.version-rail__lead strong {
  color: #201b16;
  font-weight: 500;
}

.version-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.version-rail__item {
  position: relative;
  background: #fffbf7;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 20px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.version-rail__item:hover {
  border-color: #fdba74;
  box-shadow: 0 10px 24px rgba(32, 27, 22, 0.05);
  transform: translateY(-2px);
}

.version-rail__ver {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2410c;
}

.version-rail__title {
  font-size: 18px;
  font-weight: 500;
  color: #201b16;
  margin: 0 0 8px;
}

.version-rail__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
}

.version-rail__body code {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #201b16;
}

.version-rail__item--current {
  border-color: #fdba74;
  background: #fff7ed;
}

@media (max-width: 900px) {
  .version-rail {
    padding: 48px 20px 24px;
  }

  .version-rail__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
