/* F004 — minimal market-site components, layered on style.css. */

/* ---------- Hero proof number ---------- */
.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.35rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--muted);
}
.hero-stat b { color: var(--text); font-weight: 500; }
.hero-stat .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}

/* ---------- Availability labels -----------------------------------------
   One label per state, used the same way here as on the home page and in the
   console. The words carry the meaning; the dot only repeats it. */
.avail {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .24rem .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}
.avail::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.avail-approved { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); background: var(--accent-soft); }
.avail-onboarding { color: var(--amber-ink, #8a5a04); border-color: color-mix(in srgb, var(--amber, #b4780a) 38%, var(--line)); background: var(--amber-soft, rgba(180,120,10,.12)); }
.avail-sandbox { border-style: dashed; }
.avail-verify, .avail-planned { color: var(--muted); }
.avail-planned { border-style: dotted; }

/* ---------- Product jobs ------------------------------------------------ */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1px;
  margin-top: 2rem;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
}
.infra-card {
  display: grid;
  gap: .6rem;
  align-content: start;
  padding: 1.3rem 1.25rem 1.45rem;
  background: var(--surface);
}
.infra-card h3 { display: flex; align-items: baseline; gap: .5rem; font-size: 1.02rem; margin: 0; }
.infra-card h3 span { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); font-weight: 400; }
.infra-card p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--muted); }

.avail-band {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface-2);
}
.avail-list { display: grid; gap: .55rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.avail-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; font-size: .82rem; color: var(--muted); }

/* ---------- Customer quote specimen ------------------------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.25rem, 4vw, 2.75rem);
  align-items: start;
  margin-top: 2rem;
}
.quote-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
}
.quote-list { margin: 0; padding: .35rem 0; }
.quote-list > div {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .55rem 1rem;
  border-bottom: 1px solid var(--line-2);
}
.quote-list > div:last-child { border-bottom: 0; }
.quote-list dt { flex: 1; margin: 0; color: var(--muted); font-size: .82rem; }
.quote-list dd { margin: 0; font-family: var(--font-mono); font-size: .84rem; color: var(--text); }
.quote-points { display: grid; gap: .5rem; margin: .6rem 0 0; padding: 0; }
.quote-points li {
  display: flex;
  gap: .6rem;
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--muted);
}
.quote-points li::before { content: "—"; flex: none; color: var(--muted); opacity: .7; }
@media (max-width: 900px) {
  .quote-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Proof strip ---------- */
.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
}
.proof-item { min-width: 0; }
.proof-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.05;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.proof-label {
  margin-top: .35rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- Status pills ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .6rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1;
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.status-live { color: var(--accent-ink); background: var(--accent-soft); }
.status-amber { color: var(--amber-ink); background: var(--amber-soft); }
.status-muted { color: var(--faint); background: var(--line-2); }
.status-blue { color: var(--blue); background: var(--blue-soft); }
.status-none { color: var(--faint); background: var(--line-2); }

/* ---------- Capability status table ---------- */
.cap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.cap-table th, .cap-table td {
  text-align: left;
  padding: .8rem .7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cap-table th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .74rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cap-table td:first-child { color: var(--text); font-weight: 500; }
.cap-table td:last-child { text-align: right; }

/* ---------- Code snippet ---------- */
.code-snippet {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--code-bg);
  overflow: hidden;
}
.code-snippet .code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem .85rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--faint);
}
.code-snippet pre {
  margin: 0;
  padding: 1rem .85rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.55;
  color: var(--text);
}
.code-snippet pre .c { color: var(--faint); }

/* ---------- Build-on-it layout ---------- */
.build-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.build-col { min-width: 0; }
.verb-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.verb-list li {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .82rem;
}
.verb-list code { color: var(--text); }
.verb-list .scope { color: var(--faint); font-size: .74rem; }

/* ---------- Use-case cards ---------- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.usecase-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--surface);
}
.usecase-card h3 { font-size: var(--text-lg); line-height: 1.25; margin: 0 0 .6rem; }
.usecase-card .pain { color: var(--muted); font-size: var(--text-sm); margin: 0 0 1rem; }
.usecase-card .changes { font-size: var(--text-sm); color: var(--text); margin: 0; }
.usecase-card .surfaces {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--faint);
}

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 7rem 0 3.5rem; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.05;
  margin: 1rem 0 .8rem;
  max-width: 20ch;
}
.page-hero .lede { max-width: 62ch; }

/* ---------- Security blocks ---------- */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.sec-block {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  background: var(--surface);
}
.sec-block h2 { font-size: var(--text-lg); margin: 0 0 .65rem; }
.sec-block p, .sec-block li { font-size: var(--text-sm); color: var(--muted); line-height: 1.6; }
.sec-block ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.sec-block strong { color: var(--text); }

/* ---------- Slim disclosure band ---------- */
.disclosure-band {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--faint);
}

/* ---------- Corridor rate / fee / partners strip ---------- */
.cor-under {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.cor-under-k {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--faint);
  margin: 0 0 .45rem;
}
.cor-under p:last-child {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 760px) {
  .cor-under { grid-template-columns: 1fr; }
}

/* ---------- Hero product-UI card ---------- */
.hero-ui {
  margin-top: 1.75rem;
  max-width: 32rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}
.hero-ui-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.hero-ui-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); display: inline-block;
}
.hero-ui-bar em {
  margin-left: auto;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .72rem;
  color: var(--faint);
}
.hero-ui-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--line-2);
  font-size: var(--text-sm);
}
.hero-ui-row:last-child { border-bottom: 0; }
.hero-ui-row .mono {
  color: var(--faint);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-ui-row b { color: var(--text); font-weight: 500; }
.hero-ui-row .tag { font-size: .7rem; color: var(--accent-ink); }
.hero-ui-foot {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: .8rem;
  color: var(--muted);
}
.hero-ui-foot .ava {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: .62rem; font-weight: 500;
  flex: none;
}
@media (max-width: 520px) {
  .hero-ui-row { grid-template-columns: 1fr; gap: .15rem; }
}

/* ---------- Governed-corridor map (technical visual) ---------- */
.corridor-map {
  margin: 1.75rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  --cm-bg: #F4F3EF;
  --cm-node: #FFFFFF;
  --cm-ink: #1D3E42;
  --cm-line: #A8A6A1;
}
[data-theme="dark"] .corridor-map {
  --cm-bg: #12151c;
  --cm-node: #151922;
  --cm-ink: #8fc7c0;
  --cm-line: #6d7787;
}
.corridor-map svg { display: block; width: 100%; height: auto; }
.corridor-map .cm-panel { fill: var(--cm-bg); }
.corridor-map .cm-rule { stroke: var(--cm-line); stroke-width: 1; }
.corridor-map .cm-node { fill: var(--cm-node); stroke: var(--cm-line); stroke-width: 1.25; }
.corridor-map .cm-node.is-accent { fill: var(--cm-ink); stroke: var(--cm-ink); }
.corridor-map .cm-node.is-partner { stroke-dasharray: 5 4; }
.corridor-map .cm-flow { stroke: var(--cm-ink); stroke-width: 2; fill: none; }
.corridor-map .cm-dot { fill: var(--cm-line); }
.corridor-map .cm-title {
  fill: var(--cm-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
}
.corridor-map .cm-tag {
  fill: var(--cm-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
}
.corridor-map .cm-node-t {
  fill: var(--cm-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
}
.corridor-map .cm-node-s {
  fill: var(--cm-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .02em;
}
.corridor-map .cm-node-t.cm-on-accent,
.corridor-map .cm-node-s.cm-on-accent { fill: var(--cm-bg); }
@media (max-width: 720px) {
  .corridor-map { display: none; }
}

/* ---------- Footer (market pages) ---------- */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.footer-top .brand { display: inline-flex; align-items: center; gap: .75rem; }
.footer-h {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .2rem;
  font-size: .72rem;
}
.footer .shell { padding-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .build-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .cap-table { display: block; overflow-x: auto; }
}
@media (max-width: 520px) {
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
