/* samo.host v2 — "STRATA" Architectural Survey Design System
 * Warm Bone Paper (#F3F0E8), Deep Ink (#141311), Real Basalt (#121210),
 * and ONE disciplined Oxide Vermilion accent (#D2431F / #E0532E).
 * Zero gradients, zero drop shadows, square 0px corners, uniform 1px hairlines.
 */

:root {
  --bg: #f3f0e8;
  --surface: #eae5d9;
  --surface-raised: #f8f6f0;
  --ink: #141311;
  --ink-muted: #5c5852;
  --ink-subtle: #767168;
  --rule: rgba(20, 19, 17, 0.14);
  --rule-strong: rgba(20, 19, 17, 0.34);
  --basalt: #121210;
  --basalt-surface: #1b1b18;
  --basalt-frame: #121210;
  --basalt-ink: #f0ece3;
  --basalt-muted: #9c968b;
  --basalt-rule: rgba(240, 236, 227, 0.16);
  --vermilion: #d2431f;
  --vermilion-ink: #faf8f4;
  --ok-bg: rgba(15, 106, 71, 0.08);
  --ok-ink: #0f6a47;
  --ok-rule: rgba(15, 106, 71, 0.3);
  --warn-bg: rgba(161, 98, 7, 0.09);
  --warn-ink: #854d0e;
  --warn-rule: rgba(161, 98, 7, 0.32);
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #10100e;
  --surface: #181815;
  --surface-raised: #141411;
  --ink: #ede9df;
  --ink-muted: #9c968b;
  --ink-subtle: #78736a;
  --rule: rgba(237, 233, 223, 0.14);
  --rule-strong: rgba(237, 233, 223, 0.34);
  --basalt: #050504;
  --basalt-surface: #11110e;
  --basalt-frame: rgba(237, 233, 223, 0.22);
  --basalt-ink: #ede9df;
  --basalt-muted: #8e887e;
  --basalt-rule: rgba(237, 233, 223, 0.16);
  --vermilion: #e0532e;
  --vermilion-ink: #10100e;
  --ok-bg: rgba(110, 231, 183, 0.09);
  --ok-ink: #6ee7b7;
  --ok-rule: rgba(110, 231, 183, 0.28);
  --warn-bg: rgba(252, 211, 77, 0.09);
  --warn-ink: #fcd34d;
  --warn-rule: rgba(252, 211, 77, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 1px solid var(--vermilion);
  outline-offset: -1px;
}

code,
pre,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

p code,
li code,
td code,
.plate-footnote code {
  font-size: 0.86em;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 0.08em 0.32em;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.is-hidden {
  display: none !important;
}

/* Disciplined Vermilion Live Pulse Dot (max 2px radius) */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--vermilion);
  flex-shrink: 0;
}

/* ==================== TOP BAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.topbar-inner {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-size: 15px;
}

.brand-version {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  border: 1px solid var(--rule);
  padding: 1px 6px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.nav-tab {
  height: 100%;
  padding: 0 14px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.nav-tab:hover {
  color: var(--ink);
}

.nav-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--vermilion);
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle-btn {
  min-width: 74px;
  text-align: center;
  justify-content: center;
}

/* ==================== BUTTONS & COPY PILLS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 0;
  border: 1px solid var(--rule-strong);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  background: var(--surface-raised);
  color: var(--ink);
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.btn-vermilion {
  background: var(--vermilion);
  color: var(--vermilion-ink);
  border-color: var(--vermilion);
  font-weight: 600;
}

.btn-vermilion:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-secondary {
  background: var(--surface-raised);
  color: var(--ink);
}

.btn-ghost {
  border-color: var(--rule);
  background: transparent;
  padding: 6px 10px;
  font-size: 12px;
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
}

.copy-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 0;
  border: 1px solid var(--rule-strong);
  background: var(--surface-raised);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.copy-pill:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.copy-pill.is-copied {
  background: var(--vermilion);
  color: var(--vermilion-ink);
  border-color: var(--vermilion);
}

/* ==================== MAIN & HERO SPLIT ==================== */
.main-content {
  padding-top: 48px;
  padding-bottom: 96px;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}

.hero-left {
  min-width: 0;
  padding-top: 4px;
}

.survey-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.055em;
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  background: var(--surface-raised);
  padding: 5px 10px;
  margin-bottom: 18px;
  max-width: 100%;
  line-height: 1.4;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.45rem, 4.8vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.hero-subtitle {
  margin: 0 0 24px;
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-muted);
  max-width: 600px;
}

/* Interactive Basalt CLI Command Bar */
.hero-cli {
  margin-bottom: 22px;
}

.cmd-tabs {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--rule);
  border-bottom: none;
  background: var(--surface);
}

.cmd-tab {
  border: none;
  border-right: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-muted);
  padding: 7px 11px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: pointer;
}

.cmd-tab:last-child {
  border-right: none;
}

.cmd-tab:hover {
  color: var(--ink);
  background: var(--surface-raised);
}

.cmd-tab.is-active {
  background: var(--basalt);
  color: var(--basalt-ink);
}

.basalt-cmd-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--basalt);
  color: var(--basalt-ink);
  border: 1px solid var(--basalt-frame);
  padding: 11px 12px;
}

.terminal-prompt {
  color: var(--vermilion);
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
}

.basalt-cmd-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}

.btn-basalt-copy {
  flex-shrink: 0;
  background: transparent;
  color: var(--basalt-ink);
  border: 1px solid var(--basalt-rule);
  padding: 5px 10px;
  font-size: 11.5px;
  cursor: pointer;
}

.btn-basalt-copy:hover {
  border-color: var(--basalt-ink);
}

.btn-basalt-copy.is-copied {
  background: var(--vermilion);
  color: var(--vermilion-ink);
  border-color: var(--vermilion);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==================== RIGHT HERO: INTERACTIVE STRATA CROSS-SECTION ==================== */
.hero-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strata-plate {
  border: 1px solid var(--rule-strong);
  background: var(--surface-raised);
}

.plate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.strata-diagram-wrap {
  padding: 12px;
  background: var(--surface-raised);
}

.strata-svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--ink);
}

.svg-label-strong {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  fill: currentColor;
  letter-spacing: 0.03em;
}

.svg-label-muted {
  font-family: var(--font-mono);
  font-size: 9.2px;
  fill: var(--ink-muted);
}

.svg-label-vermilion {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  fill: var(--vermilion);
  letter-spacing: 0.04em;
}

.svg-metric {
  font-family: var(--font-mono);
  font-size: 9.8px;
  font-weight: 700;
  fill: var(--vermilion);
}

.strata-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--rule);
  background: var(--surface);
}

.strata-meta {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-muted);
}

/* Real Basalt Terminal Output Panel (zero fake macOS window dots) */
.basalt-output-panel {
  background: var(--basalt);
  color: var(--basalt-ink);
  border: 1px solid var(--basalt-frame);
}

.basalt-output-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--basalt-muted);
  border-bottom: 1px solid var(--basalt-rule);
}

.terminal-output {
  margin: 0;
  padding: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--basalt-ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 92px;
}

/* ==================== SURVEY PLATES § 01 – § 04 ==================== */
.section-block {
  margin-top: 92px;
}

.section-header-rule {
  margin-bottom: 24px;
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-index {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.section-copy {
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-size: 14.5px;
}

.plates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
}

.plate-cell {
  background: var(--surface-raised);
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: 28px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.plate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.055em;
  color: var(--ink-subtle);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.plate-tag {
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 1px 6px;
  font-size: 10px;
}

.plate-title {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.plate-copy {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 14px;
}

/* § 01 AAA Flow + Interactive SAE L0-L5 */
.aaa-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.aaa-node {
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  padding: 8px 9px;
  min-width: 0;
}

.aaa-step {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
}

.aaa-desc {
  display: block;
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.aaa-arrow {
  color: var(--vermilion);
  font-weight: 700;
  font-size: 13px;
}

.sae-selector {
  margin-top: auto;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
}

.sae-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--rule);
}

.sae-tab {
  border: none;
  border-right: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-muted);
  padding: 7px 4px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.sae-tab:last-child {
  border-right: none;
}

.sae-tab:hover {
  color: var(--ink);
}

.sae-tab.is-active {
  background: var(--vermilion);
  color: var(--vermilion-ink);
}

.sae-readout {
  padding: 11px 12px;
}

.sae-readout-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 4px;
}

.sae-readout-head span {
  color: var(--vermilion);
  font-weight: 600;
}

.sae-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* § 02 Preview Pipeline */
.preview-pipeline {
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  margin-bottom: 12px;
}

.pipe-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--rule);
  font-size: 11.5px;
}

.pipe-row:last-child {
  border-bottom: none;
}

.pipe-key {
  color: var(--ink-subtle);
  font-weight: 600;
}

.pipe-val {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.pipe-vermilion {
  color: var(--vermilion);
  font-weight: 700;
}

.plate-footnote {
  margin-top: auto;
  font-size: 11px;
  color: var(--ink-subtle);
}

/* § 03 Credential Proxy Diagram */
.proxy-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin-bottom: 12px;
}

.proxy-box {
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  padding: 10px;
  min-width: 0;
}

.proxy-box-host {
  background: var(--basalt);
  color: var(--basalt-ink);
  border-color: var(--basalt-frame);
}

.proxy-box-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.proxy-box-sub {
  font-size: 10.5px;
  opacity: 0.72;
  margin-top: 2px;
}

.proxy-box-tok {
  margin-top: 8px;
  font-size: 11px;
  padding: 3px 6px;
  border: 1px solid currentColor;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.proxy-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--vermilion);
  text-align: center;
}

.proxy-mid-sub {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-subtle);
  margin-top: 2px;
}

/* § 04 CVE Core Sample + PQC Posture */
.core-sample-grid {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: auto;
}

.core-svg {
  display: block;
  width: 88px;
  height: 126px;
  color: var(--ink);
}

.svg-core-lbl {
  font-family: var(--font-mono);
  font-size: 8.8px;
  font-weight: 700;
  fill: currentColor;
}

.svg-core-inv {
  font-family: var(--font-mono);
  font-size: 8.8px;
  font-weight: 700;
  fill: var(--vermilion-ink);
}

.pqc-posture-list {
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.posture-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
}

.posture-row:last-child {
  border-bottom: none;
}

.posture-ok {
  color: var(--ok-ink);
  font-weight: 700;
}

.posture-ready {
  color: var(--vermilion);
  font-weight: 700;
}

/* ==================== § 05 TRANSPARENT PRICING STUDIO ==================== */
.segmented {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
}

.seg-btn {
  border: none;
  border-right: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-muted);
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.seg-btn:last-child {
  border-right: none;
}

.seg-btn:hover {
  color: var(--ink);
}

.seg-btn.is-active {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

.pricing-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.plan-plates-col {
  min-width: 0;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rule-strong);
  background: var(--surface-raised);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.pricing-table {
  table-layout: fixed;
}

.pricing-table .col-provider { width: 22%; }
.pricing-table .col-instance { width: 26%; }
.pricing-table .col-specs { width: 34%; }
.pricing-table .col-total { width: 18%; }

.data-table td.price-cell {
  white-space: nowrap;
  overflow-wrap: normal;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-subtle);
  background: var(--surface);
  padding: 10px 11px;
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}

.data-table td {
  padding: 11px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.data-table td.mono,
.data-table .cell-sub.mono {
  overflow-wrap: anywhere;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-row {
  cursor: pointer;
}

.pricing-row:hover td {
  background: var(--surface);
}

.pricing-row.is-selected td {
  background: var(--ink);
  color: var(--bg);
}

.pricing-row.is-selected .cell-sub {
  color: var(--basalt-muted);
}

.cell-sub {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-subtle);
}

/* Mono Invoice Sheet */
.invoice-sheet {
  border: 1px solid var(--rule-strong);
  background: var(--surface-raised);
  min-width: 0;
}

.invoice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.invoice-body {
  padding: 16px;
}

.invoice-selectors {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.field-qty {
  flex: 0 0 108px;
}

.field-grow {
  flex: 1;
}

.field-label {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-subtle);
}

.input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 12.5px;
}

.qty-stepper {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  height: 36px;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
}

.qty-btn {
  border: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}

.qty-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.qty-input {
  width: 100%;
  border: none;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  text-align: center;
  font-size: 13px;
}

/* Native <progress> Proportional Split Bar & Fleet Pulse Gauges (zero inline styles) */
.strata-progress {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  border-radius: 0;
}

.split-block {
  margin-bottom: 14px;
}

.split-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--ink-subtle);
  margin-bottom: 5px;
}

.split-progress {
  height: 8px;
  border: 1px solid var(--rule-strong);
  background-color: var(--vermilion);
}

.split-progress::-webkit-progress-bar {
  background-color: var(--vermilion);
}

.split-progress::-webkit-progress-value {
  background-color: var(--ink);
}

.split-progress::-moz-progress-bar {
  background-color: var(--ink);
}

.invoice-lines {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  margin-bottom: 12px;
}

.invoice-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.invoice-line:last-child {
  margin-bottom: 0;
}

.invoice-discount {
  color: var(--ok-ink);
  font-weight: 600;
}

.coupon-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 6px;
}

.promo-caption {
  margin: 0 0 14px;
  font-size: 11.5px;
  color: var(--ink-subtle);
}

.invoice-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-strong);
  margin-bottom: 14px;
}

.invoice-total-label {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  font-weight: 600;
}

.invoice-total-val {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--vermilion);
}

.checkout-submit {
  width: 100%;
}

.checkout-status {
  margin: 9px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
  min-height: 18px;
}

/* ==================== LIVE CONSOLE / MISSION CONTROL ==================== */
.dashboard-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dash-title {
  margin: 0 0 4px;
  font-size: 28px;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.dash-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.dash-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Real Basalt Fleet Pulse & Resource Pool Bar */
.pulse-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--basalt);
  color: var(--basalt-ink);
  border: 1px solid var(--basalt-frame);
  margin-bottom: 14px;
}

.pulse-item {
  padding: 13px 15px;
  border-right: 1px solid var(--basalt-rule);
  min-width: 0;
}

.pulse-item:last-child {
  border-right: none;
}

.pulse-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pulse-label {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--basalt-muted);
}

.pulse-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--basalt-ink);
}

.pulse-progress {
  height: 6px;
  border: 1px solid var(--basalt-rule);
  background-color: var(--basalt-surface);
}

.pulse-progress::-webkit-progress-bar {
  background-color: var(--basalt-surface);
}

.pulse-progress::-webkit-progress-value {
  background-color: var(--vermilion);
}

.pulse-progress::-moz-progress-bar {
  background-color: var(--vermilion);
}

/* KPI Strip */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
  margin-bottom: 18px;
}

.kpi-card {
  background: var(--surface-raised);
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: 14px 16px;
}

.kpi-label {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-subtle);
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.kpi-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* Dashboard Panels */
.panel {
  background: var(--surface-raised);
  border: 1px solid var(--rule-strong);
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.panel-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.dash-panel {
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 0;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink-muted);
  white-space: nowrap;
}

.badge-ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
  border-color: var(--ok-rule);
}

.badge-info {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--rule-strong);
}

.badge-warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-color: var(--warn-rule);
}

.aaa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.aaa-card {
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  padding: 13px;
}

.aaa-card h3 {
  margin: 0 0 4px;
  font-size: 13.5px;
}

.aaa-card p {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.aaa-list {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: var(--ink-subtle);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.check-item {
  border: 1px solid var(--rule-strong);
  padding: 12px 14px;
  background: var(--bg);
  min-width: 0;
}

.check-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.check-item-title {
  font-weight: 600;
  font-size: 13px;
}

.check-item-policy {
  font-size: 11.5px;
  color: var(--ink);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.check-item-detail {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ==================== FOOTER ==================== */
.footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  padding: 18px 0;
  font-size: 11px;
  color: var(--ink-subtle);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-inner span {
  overflow-wrap: anywhere;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1024px) {
  .hero-split,
  .pricing-studio {
    grid-template-columns: 1fr;
  }
  .plates-grid,
  .aaa-grid,
  .checklist-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid,
  .pulse-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pulse-bar > :last-child:nth-child(odd),
  .kpi-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .pulse-item {
    border-bottom: 1px solid var(--basalt-rule);
  }
  .pricing-table {
    table-layout: auto;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .pulse-bar > :last-child:nth-child(odd),
  .kpi-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .topbar-inner {
    height: 50px;
    gap: 8px;
  }
  .brand {
    gap: 6px;
  }
  .brand-name {
    font-size: 14px;
  }
  .brand-version {
    display: none;
  }
  .nav-tabs {
    gap: 2px;
    min-width: 0;
  }
  .nav-tab {
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  .topbar-join-link {
    display: none;
  }
  .theme-toggle-btn {
    padding: 5px 8px;
    font-size: 11.5px;
    flex-shrink: 0;
  }
  .main-content {
    padding-top: 24px;
    padding-bottom: 48px;
  }
  .section-block {
    margin-top: 56px;
  }
  .panel,
  .plate-cell {
    padding: 16px;
  }
  .aaa-flow,
  .proxy-diagram,
  .core-sample-grid {
    grid-template-columns: 1fr;
  }
  .aaa-arrow {
    display: none;
  }
  .invoice-selectors,
  .coupon-row {
    flex-direction: column;
    align-items: stretch;
  }
  .field-qty {
    flex: 1;
  }
  .segmented {
    max-width: 100%;
    overflow-x: auto;
  }
}
