/* Page-specific styles for marketplace pages */

/* Hero crumb + status footer */
.market-crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.28);
  padding: 6px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  color: #fff;
}
.market-crumb a {
  color: #fff;
  text-decoration: none;
  opacity: 0.78;
}
.market-crumb a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.crumb-sep { opacity: 0.5; }

.hero-cta { align-items: center; flex-wrap: wrap; }
.hero-foot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  opacity: 0.92;
  padding: 7px 12px;
  margin-left: 6px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}
.hero-foot b { color: #6ee787; }
.hero-foot-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6ee787;
  box-shadow: 0 0 0 3px rgba(110, 231, 135, 0.25);
  animation: pulse 1.6s steps(2, end) infinite;
}
.hero-foot-sep { opacity: 0.45; }

/* Coverage row — reuses .stat / .stat-value / .stat-label styles */
.coverage {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--ink);
  background: var(--ink);
}
.coverage .stat {
  background: var(--card-bg);
  padding: 22px 22px;
  border-right: 2px solid var(--ink);
}
.coverage .stat:last-child { border-right: none; }

/* Feature grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px dashed var(--ink);
}
.feat {
  padding: 20px 22px;
  border-right: 1px dashed var(--ink);
  border-bottom: 1px dashed var(--ink);
}
.feat:nth-child(3n) { border-right: none; }
.feat:nth-last-child(-n+3) { border-bottom: none; }
.feat-title {
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 8px;
}
.feat-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Endpoint table */
.endpoint-table {
  border: 2px solid var(--ink);
  background: var(--page-bg);
}
.endpoint-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 18px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px dashed var(--ink);
  font-size: 13.5px;
}
.endpoint-row:last-child { border-bottom: none; }
.endpoint-head {
  background: var(--ink);
  color: var(--page-bg);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.endpoint-method {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border: 1.5px solid currentColor;
  justify-self: start;
}
.method-get { color: #2a8a45; }
.method-post { color: #bf5b04; }
.method-ws  { color: #9b51e0; }
.endpoint-path {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.06);
  padding: 3px 8px;
  display: inline-block;
  word-break: break-all;
}
.endpoint-blurb {
  font-size: 13px;
  color: var(--ink-soft);
}

/* Use-case grid */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.usecase {
  background: var(--page-bg);
  border: 2px solid var(--ink);
  padding: 18px 20px;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.usecase-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  background: var(--ink);
  color: var(--page-bg);
  padding: 3px 8px;
  margin-bottom: 10px;
}
.usecase-title {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 6px;
}
.usecase-body {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Sister-markets grid */
.sisters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.sister {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--page-bg);
  border: 1.5px dashed var(--ink);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13.5px;
  transition: transform 80ms ease, box-shadow 80ms ease, background 80ms ease;
}
.sister:hover {
  background: var(--card-bg);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 var(--ink);
}
.sister-name { font-weight: 700; }
.sister-p50  { margin-left: auto; opacity: 0.65; font-size: 12px; }
.sister-arrow { font-weight: 700; opacity: 0.6; }

/* Start CTA banner */
.start-cta {
  background: var(--ink);
  color: var(--page-bg);
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--ink);
}
/* faint dotted ground line */
.start-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 6px 6px;
  pointer-events: none;
}
.start-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.start-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.start-sub {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.78;
  max-width: 56ch;
  margin: 0 auto 28px;
}
.start-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.start-input {
  flex: 1;
  min-width: 240px;
  max-width: 360px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 14px;
  background: var(--page-bg);
  color: var(--ink);
  border: 2px solid var(--page-bg);
  outline: none;
  border-radius: 2px;
  box-shadow: 4px 4px 0 0 var(--accent);
}
.start-input::placeholder { color: var(--ink-soft); opacity: 0.7; }
.start-input:focus { box-shadow: 5px 5px 0 0 var(--accent); }
.start-btn {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--page-bg);
  box-shadow: 4px 4px 0 0 var(--page-bg);
}
.start-btn:hover { box-shadow: 5px 5px 0 0 var(--page-bg); }
.start-thanks {
  font-size: 15px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.3);
}
.start-check {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}
.start-foot {
  margin-top: 18px;
  font-size: 12px;
  opacity: 0.55;
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 1024px) {
  .coverage { grid-template-columns: repeat(2, 1fr); }
  .coverage .stat:nth-child(2) { border-right: none; }
  .coverage .stat:nth-child(1), .coverage .stat:nth-child(2) {
    border-bottom: 2px solid var(--ink);
  }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat:nth-child(3n) { border-right: 1px dashed var(--ink); }
  .feat:nth-child(2n) { border-right: none; }
  .feat:nth-last-child(-n+3) { border-bottom: 1px dashed var(--ink); }
  .feat:nth-last-child(-n+2) { border-bottom: none; }
  .usecase-grid { grid-template-columns: 1fr; }
  .endpoint-row { grid-template-columns: 64px minmax(0, 1fr); }
  .endpoint-row > :nth-child(3) { grid-column: 1 / -1; padding-left: 84px; opacity: 0.85; }
  .endpoint-head > :nth-child(3) { display: none; }
  .sisters { grid-template-columns: repeat(2, 1fr); }
  .start-cta { padding: 56px 28px; }
}

@media (max-width: 640px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat { border-right: none !important; border-bottom: 1px dashed var(--ink); }
  .feat:last-child { border-bottom: none; }
  .sisters { grid-template-columns: 1fr; }
  .coverage { grid-template-columns: 1fr; }
  .coverage .stat {
    border-right: none;
    border-bottom: 2px solid var(--ink);
  }
  .coverage .stat:last-child { border-bottom: none; }
}
