/* NetActuate Media Marketplace - "Try now for free" sandbox flow styles.
 * Loaded ONLY on the sandbox flow page (/marketplace/try/); the listing-page
 * "Try now" button/note styling lives in marketplace.css so listing pages stay
 * on a single stylesheet. Everything below reuses the netactuate.com Webflow
 * design tokens (--brand--*, --fg--*, --bg--*, .accent-button) so the flow
 * matches the rest of the marketplace rather than inventing its own scale.
 *
 * ONE page shell drives every screen: a single tidy breadcrumb bar (the only
 * branding row) sits above #sbx-app, and every SPA screen renders inside the
 * same centered `.sbx` column with a consistent type scale + card treatment, so
 * per-screen spacing gaps cannot drift. There is deliberately NO per-screen
 * co-brand header (that duplicate row used to overlap the breadcrumb).
 */

/* ---- design tokens local to the flow (the shared --md/--lg radii are 3-4px,
   too sharp for a marketing card; use explicit, tasteful radii here) ---- */
.sbx-flow { --sbx-radius: 14px; --sbx-radius-sm: 10px; --sbx-maxw: 660px;
  --sbx-line: var(--bg--base--surface-3, #e2e6ea); }

/* =================================================================== shell */
/* the breadcrumb bar is the single branding + co-brand row. It reuses the
   marketplace .mkt-breadcrumb look and folds the partner logo in, right-aligned
   with generous padding, so it never overlaps anything. */
.sbx-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  row-gap: 8px; }
.sbx-crumb .mkt-bc-home { font-weight: 600; color: var(--fg--base--medium); }
.sbx-crumb .mkt-bc-home:hover { color: var(--fg--link--primary--resting); }
.sbx-crumb .mkt-bc-current { color: var(--fg--base--weak); }
.sbx-crumb-logo { margin-left: auto; display: inline-flex; align-items: center;
  padding: 6px 4px 6px 18px; }
.sbx-crumb-logo img { height: 30px; max-width: 168px; width: auto; object-fit: contain;
  display: block; }
@media (max-width: 560px) {
  .sbx-crumb-logo { margin-left: 0; padding-left: 0; }
}

/* the centered content column every screen renders inside. The consistent top
   padding + the breadcrumb's own margin give one fixed, repeatable gap between
   the bar and the content on EVERY screen. */
.sbx { max-width: var(--sbx-maxw, 660px); margin: 0 auto; padding: 6px 0 32px; }

/* ---- ONE heading type scale, applied to every screen ---- */
.sbx-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--fg--brand--strong, #0f5ceb); margin: 0 0 10px; }
.sbx h1 { font-family: var(--accent-font); letter-spacing: -.02em; font-size: 29px;
  line-height: 1.18em; font-weight: 600; margin: 0 0 12px; color: var(--fg--base--strong); }
.sbx .sbx-lead { font-size: 16px; line-height: 1.55em; color: var(--fg--base--medium);
  margin: 0 0 22px; max-width: 60ch; }
.sbx h2, .sbx .sbx-h2 { font-family: var(--accent-font); font-size: 18px; font-weight: 600;
  letter-spacing: -.01em; margin: 0 0 6px; color: var(--fg--base--strong); }

/* =================================================================== cards */
.sbx-panel, .sbx-card { border: 1px solid var(--sbx-line, #e2e6ea);
  border-radius: var(--sbx-radius, 14px); background: var(--bg--base--surface);
  padding: 26px; margin: 20px 0; box-shadow: 0 1px 2px #0b111a08; }

/* ---- partner presentation (logo + blurb + a real CTA button) ---- */
.sbx-strip { border: 1px solid var(--sbx-line, #e2e6ea); border-radius: var(--sbx-radius, 14px);
  background: var(--bg--base--adapt-weak, #f4f6f8); padding: 20px 22px; margin: 0 0 24px; }
.sbx-strip-by { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--fg--base--weak); }
.sbx-strip-blurb { margin: 0; font-size: 14.5px; line-height: 1.6em; color: var(--fg--base--medium); }
.sbx-strip-actions { margin: 16px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.sbx-strip-cta { text-decoration: none; }

/* =================================================================== form */
.sbx-field { margin-bottom: 16px; }
.sbx-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px;
  color: var(--fg--base--strong); }
.sbx-field .req { color: var(--brand--700, #0f5ceb); }
.sbx-field input[type=text], .sbx-field input[type=email], .sbx-field input[type=tel],
.sbx-field input[type=url], .sbx-field input[type=number], .sbx-field select,
.sbx-field textarea { width: 100%; box-sizing: border-box; padding: 11px 13px; font: inherit;
  color: var(--fg--base--strong); background: var(--bg--base--surface);
  border: 1px solid var(--bg--base--surface-3, #d9dde1); border-radius: var(--sbx-radius-sm, 10px); }
.sbx-field textarea { min-height: 78px; resize: vertical; }
.sbx-field input:focus, .sbx-field select:focus, .sbx-field textarea:focus {
  outline: none; border-color: var(--brand--500, #3091ff); box-shadow: 0 0 0 3px var(--brand--50, #eef7ff); }

.sbx-consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 6px;
  font-size: 14px; color: var(--fg--base--medium); }
.sbx-consent input { margin-top: 3px; flex: none; width: 17px; height: 17px; }

.sbx-error { color: #b42318; font-size: 14px; margin: 10px 0 0; }
.sbx-hint { color: var(--fg--base--weak); font-size: 13px; margin: 6px 0 0; line-height: 1.5em; }

/* buttons: reuse the marketplace primitives; ensure they render well here too */
.sbx .btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sbx .accent-button, .sbx .secondary-button { text-decoration: none; }

/* =============================================================== status meta */
.sbx-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 4px 0 6px; }
.sbx-meta div { font-size: 14px; }
.sbx-meta .k { color: var(--fg--base--weak); display: block; font-size: 11px;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; font-weight: 600; }
.sbx-meta .v { font-weight: 600; color: var(--fg--base--strong); font-size: 16px; }
.sbx-status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--fg--base--weak); margin-right: 7px; vertical-align: middle; }
.sbx-status-dot.is-live { background: #12b76a; box-shadow: 0 0 0 3px #12b76a26; }
.sbx-status-dot.is-work { background: #f79009; animation: sbx-pulse 1.1s ease-in-out infinite; }
.sbx-status-dot.is-dead { background: #b42318; }
@keyframes sbx-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* =============================================================== progress */
.sbx-progress { height: 10px; border-radius: 999px; background: var(--bg--base--adapt-weak, #eceff2);
  overflow: hidden; margin: 6px 0 8px; }
.sbx-progress > span { display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--brand--700, #0f5ceb); transition: width .6s ease; }
.sbx-progress-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 0 0 4px; }
.sbx-elapsed { font-size: 13px; color: var(--fg--base--weak); font-variant-numeric: tabular-nums; }
.sbx-elapsed b { color: var(--fg--base--medium); font-weight: 600; }
.sbx-phase { font-size: 15px; color: var(--fg--base--medium); margin: 6px 0; }
.sbx-phase .on { color: var(--fg--base--strong); font-weight: 600; }

/* build progress checklist - custom marker ONLY (no native <li> bullet). */
.sbx-steps { list-style: none; margin: 18px 0 0; padding: 0; }
.sbx-steps li { list-style: none; display: flex; align-items: center; gap: 11px;
  padding: 8px 0; font-size: 15px; color: var(--fg--base--weak); }
.sbx-steps li::marker { content: ""; }
.sbx-steps li.active { color: var(--fg--base--strong); font-weight: 600; }
.sbx-steps li.done { color: var(--fg--base--medium); }
.sbx-steps .sbx-step-mark { display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex: none; font-size: 13px; }
.sbx-steps li.done .sbx-step-mark { color: #12b76a; font-weight: 700; }
.sbx-steps li.todo .sbx-step-mark { color: var(--bg--base--surface-3, #cbd2d9); }

/* =============================================================== countdown */
.sbx-countdown { font-family: var(--accent-font); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 40px; letter-spacing: -.01em; color: var(--fg--base--strong); line-height: 1; }
.sbx-countdown.is-low { color: #b42318; }

/* credentials (show-once) */
.sbx-creds { background: var(--bg--base--adapt-weak, #f4f6f8); border-radius: var(--sbx-radius-sm, 10px);
  padding: 16px 18px; margin: 18px 0; }
.sbx-creds .row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0;
  font-size: 15px; border-bottom: 1px solid var(--sbx-line, #e2e6ea); }
.sbx-creds .row:last-child { border-bottom: none; }
.sbx-creds .row .lbl { color: var(--fg--base--weak); }
.sbx-creds code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 600;
  color: var(--fg--base--strong); word-break: break-all; }
.sbx-creds .once { color: #f79009; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; }

.sbx-instructions { font-size: 15px; line-height: 1.55em; color: var(--fg--base--medium);
  margin: 14px 0; white-space: pre-wrap; }

.sbx-cta-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 0; }
.sbx-cta-list .accent-button, .sbx-cta-list .secondary-button { justify-content: center; width: 100%;
  box-sizing: border-box; text-decoration: none; }
.sbx-ext { font-size: 12px; opacity: .8; }

/* ended / "sandbox closed" card */
.sbx-end-card { text-align: center; padding: 36px 30px; }
.sbx-end-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: var(--fg--base--weak);
  background: var(--bg--base--adapt-weak, #f4f6f8); border-radius: 999px; padding: 6px 14px; margin: 0 0 10px; }
.sbx-end-card h1 { margin-top: 4px; }
.sbx-end-card .sbx-lead { margin-left: auto; margin-right: auto; max-width: 520px; }
.sbx-end-card .sbx-cta-list { max-width: 420px; margin-left: auto; margin-right: auto; }

/* credential rows: label hugs the left, value + Copy button hug the right */
.sbx-creds .row .lbl { margin-right: auto; }
.sbx-creds .row a { text-decoration: none; }
.sbx-creds .row a code { color: var(--brand--700, #0f5ceb); }
.sbx-copy { font: inherit; font-size: 12px; font-weight: 600; line-height: 1; cursor: pointer;
  color: var(--brand--700, #0f5ceb); background: transparent; border: 1px solid var(--sbx-line, #e2e6ea);
  border-radius: 6px; padding: 5px 9px; white-space: nowrap; flex: none; }
.sbx-copy:hover { background: var(--bg--base--adapt-weak, #f4f6f8); }

/* closed page: primary "what next" actions + optional "more info" email reveal */
.sbx-end-actions { justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.sbx-moreinfo { max-width: 420px; margin: 14px auto 0; text-align: left; }
.sbx-subhead { margin: 24px 0 0; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--fg--base--weak); text-align: center; }

.sbx-spinner { display: inline-block; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--brand--200, #c9ddff); border-top-color: var(--brand--700, #0f5ceb);
  animation: sbx-spin .7s linear infinite; vertical-align: -2px; }
@keyframes sbx-spin { to { transform: rotate(360deg); } }

.sbx-mock-note { font-size: 12px; color: var(--fg--base--weak); border: 1px dashed var(--bg--base--surface-3, #d9dde1);
  border-radius: var(--sbx-radius-sm, 10px); padding: 8px 12px; margin: 20px 0 0; }
.sbx-note { font-size: 13px; line-height: 1.5em; color: var(--fg--base--medium, #667);
  text-align: center; max-width: 520px; margin: 16px auto 0; }

/* =============================================================== VPU option */
/* lead-form opt-in checkbox: same alignment as .sbx-consent, but stacks a bold
   label over a hint so it reads as a distinct upgrade choice. */
.sbx-vpu-opt { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 6px;
  font-size: 14px; color: var(--fg--base--medium); }
.sbx-vpu-opt input { margin-top: 3px; flex: none; width: 17px; height: 17px; }
.sbx-vpu-opt strong { display: block; font-weight: 600; color: var(--fg--base--strong); }
.sbx-vpu-opt .sbx-hint { margin-top: 3px; }

/* ==================================================== live platform metrics */
/* Universal telemetry panel on the running page: a header + a single full-width column
   of chart cards (CPU/RAM, Network, Disk I/O, VPU - always shown). Dependency-free inline
   SVG; theme-aware via the shared design tokens. */
.sbx-metrics-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; }
.sbx-metrics-head-txt { flex: 1 1 260px; min-width: 0; }
.sbx-metrics-head .sbx-h2 { margin-bottom: 4px; }
.sbx-metrics-head .sbx-hint { margin-top: 0; }
.sbx-metrics-collecting { display: flex; align-items: center; gap: 8px; margin-top: 16px; }

/* real-time indicator: a pulsing "live" dot + cadence label, and a live "updated Ns ago". */
.sbx-metrics-live-wrap { flex: none; display: flex; flex-direction: column; align-items: flex-end;
  gap: 3px; }
.sbx-metrics-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px;
  font-weight: 700; color: var(--fg--base--medium); white-space: nowrap; }
.sbx-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; flex: none;
  box-shadow: 0 0 0 0 #12b76a66; animation: sbx-live-pulse 1.8s ease-out infinite; }
@keyframes sbx-live-pulse {
  0% { box-shadow: 0 0 0 0 #12b76a80; } 70% { box-shadow: 0 0 0 7px #12b76a00; }
  100% { box-shadow: 0 0 0 0 #12b76a00; } }
@media (prefers-reduced-motion: reduce) { .sbx-live-dot { animation: none; } }
.sbx-metrics-ago { font-size: 11px; color: var(--fg--base--weak); font-variant-numeric: tabular-nums;
  white-space: nowrap; }

/* card column: one graph per row, each full page width; charts never overflow horizontally. */
.sbx-metrics-grid { display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 14px; margin-top: 16px; }
.sbx-mx-card { border: 1px solid var(--sbx-line, #e2e6ea); border-radius: var(--sbx-radius-sm, 10px);
  background: var(--bg--base--adapt-weak, #f4f6f8); padding: 14px 14px 10px; min-width: 0; }
.sbx-mx-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sbx-mx-title { font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--fg--base--strong); }
.sbx-mx-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  font-size: 12px; color: var(--fg--base--medium); margin: 6px 0 8px; }
.sbx-mx-key { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sbx-mx-key .dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }
.sbx-mx-key b { color: var(--fg--base--strong); font-variant-numeric: tabular-nums; font-weight: 700; }
.sbx-mx-canvas { width: 100%; overflow-x: auto; }
.sbx-mx-svg { display: block; width: 100%; height: 140px; }

/* empty-state (e.g. a VM with no VPU): the card is always shown, with a clear message. */
.sbx-mx-card-empty { display: flex; flex-direction: column; }
.sbx-mx-empty { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; min-height: 96px; padding: 12px; }
.sbx-mx-empty-lbl { font-size: 13px; font-weight: 700; color: var(--fg--base--medium); }
.sbx-mx-empty-hint { font-size: 12px; color: var(--fg--base--weak); max-width: 42ch; line-height: 1.45em; }

/* chart marks */
.sbx-mx-grid { stroke: var(--sbx-line, #e2e6ea); stroke-width: 1; }
.sbx-mx-axis { fill: var(--fg--base--weak); font-size: 9px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.sbx-mx-plot { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke; }

/* per-series palette (accessible, distinguishable; VPU card reuses the same hues, its own card).
   legend .dot = HTML span (background); polyline = SVG stroke; single-point circle = SVG fill. */
.sbx-mx-dot { stroke: none; }
.sbx-mx-key.cpu .dot    { background: var(--brand--700, #0f5ceb); } .sbx-mx-plot.cpu    { stroke: var(--brand--700, #0f5ceb); } .sbx-mx-dot.cpu    { fill: var(--brand--700, #0f5ceb); }
.sbx-mx-key.mem .dot    { background: #f79009; } .sbx-mx-plot.mem    { stroke: #f79009; } .sbx-mx-dot.mem    { fill: #f79009; }
.sbx-mx-key.netin .dot  { background: #0e9384; } .sbx-mx-plot.netin  { stroke: #0e9384; } .sbx-mx-dot.netin  { fill: #0e9384; }
.sbx-mx-key.netout .dot { background: #7a5af8; } .sbx-mx-plot.netout { stroke: #7a5af8; } .sbx-mx-dot.netout { fill: #7a5af8; }
.sbx-mx-key.diskr .dot  { background: #12b76a; } .sbx-mx-plot.diskr  { stroke: #12b76a; } .sbx-mx-dot.diskr  { fill: #12b76a; }
.sbx-mx-key.diskw .dot  { background: #e04f6b; } .sbx-mx-plot.diskw  { stroke: #e04f6b; } .sbx-mx-dot.diskw  { fill: #e04f6b; }
.sbx-mx-key.vpuenc .dot { background: var(--brand--700, #0f5ceb); } .sbx-mx-plot.vpuenc { stroke: var(--brand--700, #0f5ceb); } .sbx-mx-dot.vpuenc { fill: var(--brand--700, #0f5ceb); }
.sbx-mx-key.vpudec .dot { background: #f79009; } .sbx-mx-plot.vpudec { stroke: #f79009; } .sbx-mx-dot.vpudec { fill: #f79009; }
.sbx-mx-key.vpuscl .dot { background: #0e9384; } .sbx-mx-plot.vpuscl { stroke: #0e9384; } .sbx-mx-dot.vpuscl { fill: #0e9384; }
.sbx-mx-key.vpuai .dot  { background: #7a5af8; } .sbx-mx-plot.vpuai  { stroke: #7a5af8; } .sbx-mx-dot.vpuai  { fill: #7a5af8; }

@media (max-width: 560px) {
  .sbx h1 { font-size: 25px; }
  .sbx-countdown { font-size: 32px; }
  .sbx-panel, .sbx-card { padding: 20px; }
  .sbx-metrics-live-wrap { align-items: flex-start; }
}
