/* ============================================================================
   NodeHeal AI — Obsidian & Steel Cobalt Institutional Security Design System
   Unified across Public Website, Customer Portal & Founder HQ Console
   ============================================================================ */

:root {
  --bg: #080a0f;
  --bg-alt: #0c0f17;
  --surface: #11151f;
  --surface-solid: #11151f;
  --surface-2: #171d2b;
  --surface-elevated: #1c2436;
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Unified Institutional Signal System */
  --accent: #f8fafc;
  --accent-ink: #080a0f;
  --steel: #3b82f6;
  --steel-soft: #60a5fa;
  --cyan: #60a5fa;
  --emerald: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.58);
  --inset-top: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .brand-name {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
  letter-spacing: -0.03em;
}

code, .mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  padding: 0.1em 0.42em;
  border-radius: 4px;
  font-size: 0.85em;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }

/* Architectural Studio Backdrop (subtle overhead light + crisp blueprint grid, zero neon orbs) */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 78% 42% at 50% -10%, rgba(59, 130, 246, 0.14), transparent 72%),
    var(--bg);
}
.cyber-canvas, .scan-beam, .orb { display: none !important; }
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.18) 52%, transparent 90%);
}

.container { width: min(1160px, 92%); margin: 0 auto; }

/* Restraint Entrance */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================================
   Navigation Bar — Crisp Single-Line Institutional Header
   ============================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 10, 15, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.navbar.scrolled {
  background: rgba(8, 10, 15, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.13);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}
.brand-ai {
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
}
.nav-links a { white-space: nowrap; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-actions .btn { white-space: nowrap; }

.nav-portal-pill {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-portal-pill.signed-in {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
}
.nav-portal-pill.signed-in:hover {
  border-color: rgba(16, 185, 129, 0.75);
  background: rgba(16, 185, 129, 0.18);
  color: #ecfdf5;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-toggle span { width: 20px; height: 1.5px; background: var(--text); }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--border);
  background: #0b0b0e;
}
.mobile-menu.open { display: flex; }

/* Remove scrolling crypto/AI-template ticker for cleaner executive hierarchy */
.soc-ticker { display: none !important; }
.soc-ticker-track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: tickerScroll 42s linear infinite;
}
.soc-ticker:hover .soc-ticker-track { animation-play-state: paused; }
.soc-ticker-track span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.soc-ticker .t-ok { color: var(--emerald); font-weight: 600; }
.soc-ticker .t-drop { color: #f87171; font-weight: 600; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================================
   Buttons — Crisp Solid Contrast (No Rainbow Gradients or Light-Sweep Gimmicks)
   ============================================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-sheen::before { display: none; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), inset 0 1px 0 #ffffff;
}
.btn-primary:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--inset-top);
}
.btn-secondary:hover {
  background: var(--surface-elevated);
  border-color: rgba(96, 165, 250, 0.42);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.7);
  color: #fff;
}

.btn-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fde68a;
}
.btn-warning:hover {
  background: rgba(245, 158, 11, 0.22);
  color: #fff;
}

.btn-lg { padding: 12px 22px; font-size: 0.93rem; }
.btn-sm { padding: 7px 13px; font-size: 0.83rem; }
.btn-xs { padding: 5px 10px; font-size: 0.77rem; }

/* ============================================================================
   Hero Section — Editorial Authority + Preserved Live Radar Instrument
   ============================================================================ */
.hero {
  padding: 76px 0 56px;
  text-align: center;
}
.hero-content { max-width: 960px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.hero h1 {
  margin: 0 auto 20px;
  max-width: 820px;
  font-size: clamp(2.45rem, 5vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--text);
}

/* Crisp Editorial Emphasis (replaces rainbow shimmer) */
.gradient-shimmer {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--text-muted);
  font-weight: 700;
  animation: none;
}

.hero-sub {
  margin: 0 auto 30px;
  max-width: 650px;
  font-size: 1.04rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

/* Preserved Differentiation Anchor: Live Cyber-Attack Interception Radar */
.radar-showcase {
  max-width: 960px;
  margin: 0 auto 36px;
  background: #090c14;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.65), var(--inset-top);
  text-align: left;
  transition: border-color 0.25s ease;
}
.radar-showcase:hover {
  border-color: rgba(96, 165, 250, 0.34);
}
.radar-showcase.under-attack {
  border-color: rgba(239, 68, 68, 0.65);
}

.radar-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.74rem;
}
.radar-title-group { display: flex; align-items: center; gap: 9px; }
.radar-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: radarPing 2.2s infinite;
}
.radar-showcase.under-attack .radar-pulse-dot { background: var(--red); }
@keyframes radarPing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.radar-title { font-weight: 600; letter-spacing: 0.05em; color: var(--text-secondary); }
.radar-counters { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-muted); }

#attackRadarCanvas {
  display: block;
  width: 100%;
  height: 228px;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08), #070a10 74%);
}

.mitre-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  background: #0d111a;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
}
.mitre-pill {
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 5px;
}
.mitre-pill.active-threat {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
}

.radar-feed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: #0b0b0e;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-secondary);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rf-tag {
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}
.radar-showcase.under-attack .rf-tag {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

/* Ecosystem & Metrics Strip */
.ecosystem-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}
.eco-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
}
.eco-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.eco-badges span {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 5px;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}
.metric-card {
  background: var(--surface);
  padding: 20px 16px;
}
.metric-val {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.48rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.metric-lbl { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================================
   Sections & Editorial Hierarchy
   ============================================================================ */
.section { padding: 88px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  text-align: left;
  max-width: 720px;
  margin: 0 0 44px;
}
.section-header-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.section-header-center .section-tag {
  border-left: none;
  padding-left: 0;
}
.section-tag {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel-soft);
  border-left: 2px solid var(--steel);
  padding-left: 10px;
  margin-bottom: 12px;
}
.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.14;
  color: var(--text);
}
.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Neutralize decorative mouse-spotlight blobs */
.spotlight-card { position: relative; }
.spotlight-card::before { display: none; }

/* ============================================================================
   Interactive Demo Console — Exact NodeHeal Desktop App Layout (Centered & Full-Size)
   ============================================================================ */
.demo-section { padding-top: 32px; }
.demo-container { width: min(1280px, 94%); margin: 0 auto; }

.ch-app-frame {
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.65), var(--inset-top);
}
.ch-titlebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: #0a0c12;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.ch-tb-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.ch-app-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.24);
}
.ch-demo-pill {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}
.ch-tb-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ch-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.ch-win-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 6px;
  color: var(--text-dim);
  font-size: 0.78rem;
  user-select: none;
}

.ch-shell {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 640px;
}
.ch-rail {
  background: #090b10;
  border-right: 1px solid var(--border);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.ch-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.ch-rail-item {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 4px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 0.69rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ch-rail-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.ch-rail-item.active {
  color: var(--text);
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(96, 165, 250, 0.35);
}
.ch-rail-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ch-rail-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #090b10;
}
.ch-rail-dot.healthy { background: var(--emerald); }
.ch-rail-dot.critical { background: var(--red); animation: blink 0.9s infinite; }

.ch-page {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #0e121b;
}
.ch-status-card {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
  background: #101521;
}
.ch-status-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ch-server-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ch-host-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 2px;
  border-radius: 6px;
  background: #0a0d14;
  border: 1px solid var(--border);
}
.ch-host-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ch-host-pill:hover { color: var(--text); }
.ch-host-pill.active {
  background: rgba(59, 130, 246, 0.22);
  color: #dbeafe;
  font-weight: 600;
}
.ch-server-row h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}
.ch-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}
.ch-badge.healthy {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.32);
}
.ch-badge.critical {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
}
.ch-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.ch-notice {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.82rem;
}
.ch-notice.hidden { display: none; }
.ch-notice-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  flex-shrink: 0;
}
.ch-notice-text { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.ch-notice-text strong { color: var(--text); }
.ch-notice-text span { color: var(--text-muted); font-size: 0.8rem; }

.ch-incident-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.11);
  border: 1px solid rgba(239, 68, 68, 0.45);
}
.ch-incident-banner.hidden { display: none; }
.ch-ib-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 2px; }
.ch-ib-sev {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}
.ch-ib-left strong { font-size: 0.9rem; color: var(--text); }
.ch-ib-left p { margin: 0; font-size: 0.8rem; color: var(--text-secondary); }

.ch-view { display: none; flex-direction: column; flex: 1; }
.ch-view.active { display: flex; }

.ch-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #0d111a;
}
.ch-ov-card {
  background: #131926;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 108px;
}
.ch-ov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ch-ov-name { font-size: 0.74rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.ch-ov-head strong { font-size: 0.92rem; color: var(--text); }
.ch-ov-chart { width: 100%; height: 34px; display: block; margin: 2px 0; }
.ch-ov-axis { display: flex; justify-content: space-between; font-size: 0.64rem; color: var(--text-dim); }
.ch-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.76rem;
}
.ch-checks li { display: flex; justify-content: space-between; gap: 8px; }
.ch-checks .k { color: var(--text-muted); }
.ch-checks .v { font-weight: 600; color: var(--text); }
.ch-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--steel-soft);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
.ch-link-btn:hover { text-decoration: underline; }
.ch-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--text-secondary);
}
.ch-activity li { display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.act-dot.ok { background: var(--emerald); }
.act-dot.err { background: var(--red); }
.act-dot.warn { background: var(--amber); }

.ch-split { min-height: 410px; flex: 1; }
.ch-split .terminal-output { max-height: 315px; margin-bottom: 10px; }
.ch-split .chat-feed { max-height: 315px; }

.demo-term-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.term-chip {
  background: #121724;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.term-chip:hover {
  border-color: var(--steel-soft);
  color: #fff;
  background: rgba(59, 130, 246, 0.14);
}
.demo-term-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #070709;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 11px;
}
.demo-term-form:focus-within { border-color: var(--steel-soft); }
.demo-term-prompt { color: var(--emerald); font-weight: 700; font-size: 0.8rem; }
.demo-term-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.78rem;
  outline: none;
}

.ch-subview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.ch-subview-head h4 { margin: 0 0 3px; font-size: 1.05rem; color: var(--text); }
.ch-subview-head p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }

.ch-audit-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  overflow-y: auto;
  max-height: 430px;
}
.ch-audit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #131926;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.aud-id { color: var(--text-dim); font-weight: 600; }
.aud-ok { color: #6ee7b7; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.28); padding: 1px 6px; border-radius: 4px; font-size: 0.68rem; font-weight: 600; }
.aud-alert { color: #fca5a5; background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.35); padding: 1px 6px; border-radius: 4px; font-size: 0.68rem; font-weight: 600; }

.ch-seg {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #0a0d14;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.ch-seg-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 5px;
  cursor: pointer;
}
.ch-seg-btn.active {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}
.ch-audit-list.hidden { display: none; }
.aud-hash { margin-left: auto; font-size: 0.68rem; color: var(--text-dim); }
.ch-preflight-box {
  margin: 0 20px 20px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #0b0e15;
  border: 1px solid var(--border);
}
.pf-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.pf-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pf-item {
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #6ee7b7;
}
.pf-item.checking {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

.ch-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 20px;
}
.ch-set-card {
  background: #131926;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.ch-set-label { display: block; font-size: 0.66rem; color: var(--steel-soft); letter-spacing: 0.08em; margin-bottom: 6px; font-weight: 600; }
.ch-set-card strong { display: block; font-size: 0.94rem; color: var(--text); margin-bottom: 6px; }
.ch-set-card p { margin: 0; font-size: 0.81rem; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 960px) {
  .ch-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-seg {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #0a0d14;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.ch-seg-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 5px;
  cursor: pointer;
}
.ch-seg-btn.active {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}
.ch-audit-list.hidden { display: none; }
.aud-hash { margin-left: auto; font-size: 0.68rem; color: var(--text-dim); }
.ch-preflight-box {
  margin: 0 20px 20px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #0b0e15;
  border: 1px solid var(--border);
}
.pf-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.pf-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pf-item {
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #6ee7b7;
}
.pf-item.checking {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

.ch-settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ch-shell { grid-template-columns: 1fr; }
  .ch-rail {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 8px 10px;
  }
  .ch-rail-nav { flex-direction: row; width: auto; }
  .ch-rail-item { flex-direction: row; padding: 6px 10px; width: auto; }
  .ch-overview { grid-template-columns: 1fr; }
  .ch-win-controls { display: none; }
}
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.control-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.control-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.provider-pills, .sim-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.provider-btn {
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.provider-btn:hover { color: var(--text); border-color: var(--border-strong); }
.provider-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.health-bar-widget {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 0.82rem;
}
.health-bar-widget.critical { border-color: rgba(239, 68, 68, 0.65); }
.hb-left, .hb-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hb-app-name { font-weight: 600; color: var(--text); }
.hb-divider { color: #3f3f46; }
.hb-host { color: var(--text-muted); font-size: 0.78rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.healthy { background: var(--emerald); }
.status-dot.critical { background: var(--red); animation: blink 0.9s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hb-badge { font-size: 0.68rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; letter-spacing: 0.05em; }
.hb-badge.healthy { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.hb-badge.critical { background: rgba(239, 68, 68, 0.14); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.45); }
.hb-metrics { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.78rem; color: var(--text-muted); }
.hb-metrics strong { color: var(--text); }
.text-green, .text-emerald { color: #34d399 !important; }
.text-red { color: #f87171 !important; }
.text-amber { color: #fbbf24 !important; }
.text-cyan { color: #60a5fa !important; }

.win-toast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #171113;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 12px;
}
.win-toast.hidden { display: none; }
.toast-left { display: flex; align-items: flex-start; gap: 12px; }
.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.toast-badge { font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; font-weight: 600; color: #fca5a5; margin-bottom: 2px; }
.toast-body strong { display: block; font-size: 0.93rem; margin-bottom: 2px; }
.toast-body p { margin: 0; color: var(--text-muted); font-size: 0.83rem; }
.toast-actions { display: flex; align-items: center; gap: 10px; }
.toast-close { background: none; border: none; color: var(--text-muted); font-size: 1.25rem; cursor: pointer; }

.app-window {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.window-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: #0d0d10;
  border-bottom: 1px solid var(--border);
  font-size: 0.74rem;
}
.chrome-dots { display: flex; gap: 6px; }
.chrome-dots .dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.8; }
.chrome-dots .red { background: #ef4444; }
.chrome-dots .yellow { background: #f59e0b; }
.chrome-dots .green { background: #10b981; }
.chrome-title { color: var(--text-muted); }
.chrome-provider {
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 4px;
}

.app-split { display: grid; grid-template-columns: 1fr 1.08fr; min-height: 475px; }
.pane { display: flex; flex-direction: column; padding: 16px; }
.pane-terminal { border-right: 1px solid var(--border); background: #0a0a0c; }
.pane-chat { background: #111114; }
.pane-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.pane-heading { display: inline-flex; align-items: center; gap: 7px; }
.tag-pill {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.tag-safe {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

.facts-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 11px; }
.fact-item { background: #121216; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.fact-label { display: block; font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.fact-val { font-size: 0.76rem; font-weight: 600; }

.rollback-banner {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 7px;
  padding: 8px 11px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  color: #fde68a;
}
.rollback-banner.hidden { display: none; }
.rollback-banner.confirmed { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.4); color: #6ee7b7; }
.rollback-banner.reverted { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.45); color: #fca5a5; }
.rb-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.rb-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.rb-fill { height: 100%; width: 100%; background: var(--amber); transition: width 0.25s linear; }
.rollback-banner.confirmed .rb-fill { background: var(--emerald); }

.terminal-output {
  flex: 1;
  background: #070709;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px;
  font-size: 0.75rem;
  line-height: 1.58;
  max-height: 345px;
  overflow-y: auto;
}
.t-line { margin-bottom: 4px; word-break: break-word; }
.t-line.muted { color: var(--text-dim); }
.t-line.green { color: #34d399; }
.t-line.red { color: #f87171; }
.t-line.amber { color: #fbbf24; }
.t-line.cyan { color: #d4d4d8; }

.chat-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 10px;
}
.msg { padding: 11px 13px; border-radius: 8px; font-size: 0.84rem; line-height: 1.52; }
.msg p { margin: 0; }
.msg-ai { background: var(--surface-2); border: 1px solid var(--border); }
.msg-user { background: #1e1e24; border: 1px solid var(--border-strong); align-self: flex-end; max-width: 86%; }
.msg-meta { font-family: "IBM Plex Mono", monospace; font-size: 0.69rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.tool-chip {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 2px 7px;
  border-radius: 4px;
  margin: 0 5px 6px 0;
}

.approval-card { background: #0c0c0f; border: 1px solid var(--border-strong); border-radius: 8px; padding: 12px; margin-top: 8px; }
.approval-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.diff-box { background: #070709; border: 1px solid var(--border); border-radius: 5px; padding: 8px 10px; font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; margin-bottom: 10px; }
.diff-del { color: #f87171; }
.diff-add { color: #34d399; }
.approval-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.quick-prompts { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 0; border-top: 1px solid var(--border); }
.q-btn {
  padding: 5px 10px;
  font-family: inherit;
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
}
.q-btn:hover { border-color: var(--border-strong); color: #fff; }
.chat-input-bar { display: flex; gap: 8px; }
.chat-input-bar input {
  flex: 1;
  background: #0a0a0d;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.83rem;
}
.chat-input-bar input:focus { outline: none; border-color: var(--border-strong); }

/* ============================================================================
   Architecture, Bento, Threats, Guardrails — Architectural Precision Cards
   ============================================================================ */
.arch-diagram { display: grid; grid-template-columns: 1fr auto 1.08fr auto 1fr; align-items: stretch; gap: 12px; }
.arch-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s ease;
}
.arch-node:hover { border-color: var(--border-strong); }
.arch-node-core { border-color: rgba(255, 255, 255, 0.2); background: #141418; }
.arch-step { font-size: 0.69rem; font-weight: 600; letter-spacing: 0.09em; color: var(--emerald); margin-bottom: 8px; }
.arch-node h3 { margin: 0 0 5px; font-size: 1.05rem; }
.arch-tech { font-size: 0.73rem; color: var(--text-dim); margin: 0 0 14px; }
.arch-node ul { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 7px; font-size: 0.85rem; color: var(--text-muted); }

.arch-connector { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 78px; }
.conn-line { position: relative; width: 100%; height: 1px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.conn-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  animation: packetFlow 2.6s linear infinite;
}
@keyframes packetFlow { 0% { left: -35%; } 100% { left: 100%; } }
.conn-label { font-size: 0.64rem; color: var(--text-dim); text-align: center; line-height: 1.25; }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--border-strong); }
.icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.04rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.89rem; }
.card strong { color: var(--text); font-weight: 600; }

.threat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.threat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}
.threat-card:hover { border-color: var(--border-strong); }
.threat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.threat-code { font-size: 0.67rem; color: var(--text-dim); letter-spacing: 0.05em; }
.threat-sev { font-size: 0.63rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.06em; }
.threat-sev.sev-crit { color: #fca5a5; background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.32); }
.threat-sev.sev-high { color: #fcd34d; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.32); }
.threat-card h3 { margin: 0; font-size: 0.98rem; line-height: 1.3; color: var(--text); }
.threat-card p { margin: 0; font-size: 0.83rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.threat-action {
  font-size: 0.71rem;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 5px;
  padding: 6px 8px;
  line-height: 1.4;
}

.sd-tag {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.guardrail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.guardrail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.guardrail-card.good { border-top: 2px solid var(--emerald); }
.guardrail-card.bad { border-top: 2px solid var(--red); }
.gr-head { margin-bottom: 16px; }
.gr-badge {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.gr-badge.good { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.gr-badge.bad { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.guardrail-card h3 { margin: 0; font-size: 1.14rem; }
.guardrail-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--text-muted); font-size: 0.9rem; }
.guardrail-card strong { color: var(--text); }

/* ============================================================================
   Pricing & Interactive Quotation Calculator
   ============================================================================ */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-top: 20px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.bill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}
.bill-btn.active {
  background: var(--surface-elevated);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.save-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
  font-weight: 600;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: border-color 0.2s ease;
}
.price-card:hover { border-color: var(--border-strong); }
.price-card.featured {
  background: #141418;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: var(--inset-top);
}
.popular-pill {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.34);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.plan-name { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; }
.plan-desc { margin: 0 0 18px; font-size: 0.87rem; color: var(--text-muted); }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price-amount .currency { font-family: "IBM Plex Mono", monospace; font-size: 1.25rem; font-weight: 600; color: var(--text-muted); }
.price-amount .amount { font-family: "IBM Plex Mono", monospace; font-size: 2.55rem; font-weight: 700; line-height: 1; color: var(--text); }
.price-amount .custom-amt { font-size: 2rem; font-family: "Plus Jakarta Sans", sans-serif; }
.price-amount .period { font-size: 0.85rem; color: var(--text-muted); }
.price-sub { margin: 0 0 20px; font-size: 0.75rem; color: var(--text-dim); }
.plan-features { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.87rem; color: var(--text-secondary); flex: 1; }
.plan-features li { position: relative; padding-left: 18px; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.plan-features strong { color: var(--text); }
.plan-cta { width: 100%; }

.quote-calc {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  align-items: center;
}
.qc-left h3 { margin: 0 0 6px; font-size: 1.35rem; }
.qc-sub { margin: 0 0 22px; color: var(--text-muted); font-size: 0.9rem; }
.qc-control { margin-bottom: 18px; }
.qc-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 0.87rem; font-weight: 600; }
.qc-val { color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); padding: 3px 10px; border-radius: 5px; font-size: 0.82rem; }
#serverSlider { width: 100%; accent-color: #fafafa; cursor: pointer; height: 5px; }
.qc-scale { display: flex; justify-content: space-between; font-size: 0.71rem; color: var(--text-dim); margin-top: 6px; }
.qc-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; margin-bottom: 14px; }
.qc-checkbox input { margin-top: 3px; accent-color: var(--emerald); }
.qc-note { font-size: 0.73rem; color: var(--text-dim); }
.qc-right { background: #0c0c0f; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.qc-summary-tag { font-size: 0.69rem; font-weight: 600; color: var(--emerald); margin-bottom: 10px; letter-spacing: 0.06em; }
.qc-total { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 8px; }
.qc-price { font-family: "IBM Plex Mono", monospace; font-size: 2.7rem; font-weight: 700; color: var(--text); }
.qc-per { font-size: 0.88rem; color: var(--text-muted); }
.qc-breakdown { font-size: 0.76rem; color: var(--text-secondary); margin-bottom: 6px; }
.qc-annual { font-size: 0.74rem; color: var(--emerald); margin-bottom: 18px; }
.qc-btn { width: 100%; }

/* ============================================================================
   Steps, Roadmap, Download, About, FAQ, CTA, Legal & Footer
   ============================================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step-num {
  display: inline-block;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.step-card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.step-card p { margin: 0; font-size: 0.87rem; color: var(--text-muted); line-height: 1.58; }
.step-card strong { color: var(--text); }

.roadmap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.roadmap-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.roadmap-card.current { border-top: 2px solid var(--emerald); }
.roadmap-card.next { border-top: 2px solid rgba(255, 255, 255, 0.25); }
.rm-head { margin-bottom: 14px; }
.rm-head h3 { margin: 8px 0 0; font-size: 1.14rem; }
.rm-badge { display: inline-block; font-size: 0.67rem; font-weight: 600; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 4px; }
.rm-badge.current { color: #6ee7b7; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); }
.rm-badge.next { color: var(--text-secondary); background: var(--surface-2); border: 1px solid var(--border); }
.roadmap-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.87rem; color: var(--text-muted); line-height: 1.55; }
.roadmap-card li { position: relative; padding-left: 18px; }
.roadmap-card.current li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.roadmap-card.next li::before { content: "→"; position: absolute; left: 0; color: var(--text-dim); font-weight: 700; }
.roadmap-card strong { color: var(--text); }

.download-card {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.dl-left h2 { margin: 0 0 12px; font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.15; }
.dl-left p { margin: 0 0 18px; color: var(--text-muted); font-size: 0.94rem; }
.dl-left strong { color: var(--text); }
.dl-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.dl-specs span { font-size: 0.73rem; color: var(--text-secondary); background: var(--surface-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 5px; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.dl-verify-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 9px 12px;
  margin-bottom: 10px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 7px;
  font-size: 0.72rem;
}
.dl-verify-label { color: #6ee7b7; font-weight: 700; }
.dl-verify-hash { color: #e2e8f0; word-break: break-all; user-select: all; background: transparent; padding: 0; }
.pal-vt-row {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  color: #94a3b8;
}
.pal-vt-link { color: #6ee7b7; text-decoration: none; font-weight: 700; }
.pal-vt-link:hover { text-decoration: underline; }
.dl-hint { font-size: 0.72rem !important; color: var(--text-dim) !important; margin-bottom: 0 !important; }
.dl-checklist { background: #0c0c0f; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.dl-check-title { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.09em; color: var(--emerald); margin-bottom: 14px; }
.dl-checklist ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.85rem; color: var(--text-muted); }
.dl-checklist li { position: relative; padding-left: 18px; }
.dl-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.dl-checklist strong { color: var(--text); }

.about-grid { display: grid; grid-template-columns: 1.15fr 0.95fr; gap: 20px; align-items: stretch; }
.about-story { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.about-story h3 { margin: 4px 0 14px; font-size: 1.35rem; line-height: 1.25; }
.about-story p { margin: 0 0 14px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }
.about-story strong { color: var(--text); }
.about-proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.about-proof-strip div { background: #0c0c0f; border: 1px solid var(--border); border-radius: 7px; padding: 10px 8px; text-align: center; }
.about-proof-strip strong { display: block; font-size: 1.02rem; color: var(--text); margin-bottom: 3px; }
.about-proof-strip span { display: block; font-size: 0.67rem; color: var(--text-muted); line-height: 1.3; }
.about-pillars { display: flex; flex-direction: column; gap: 12px; }
.pillar-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; flex: 1; }
.pillar-num { flex-shrink: 0; font-size: 0.8rem; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); padding: 5px 9px; border-radius: 5px; }
.pillar-card h4 { margin: 0 0 5px; font-size: 1rem; }
.pillar-card p { margin: 0; font-size: 0.87rem; color: var(--text-muted); line-height: 1.55; }

.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 17px 20px; transition: border-color 0.15s ease; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 0.96rem; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: "IBM Plex Mono", monospace; font-size: 1.1rem; color: var(--text-muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; color: var(--emerald); }
.faq-item p { margin: 12px 0 0; font-size: 0.89rem; color: var(--text-muted); line-height: 1.62; }
.faq-item strong { color: var(--text); }

.cta-box {
  text-align: center;
  padding: 48px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.cta-box h2 { margin: 0 0 10px; font-size: clamp(1.65rem, 3vw, 2.2rem); }
.cta-box p { margin: 0 auto 24px; max-width: 560px; color: var(--text-muted); }
.waitlist-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 720px; margin: 0 auto 12px; }
.waitlist-form input[type="email"], .waitlist-form input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 11px 14px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #0a0a0d;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}
.waitlist-form input:focus { outline: none; border-color: var(--border-strong); }
.tc-consent { flex-basis: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; cursor: pointer; }
.tc-consent input { accent-color: var(--emerald); cursor: pointer; }
.inline-link { background: none; border: none; padding: 0; color: var(--text); font: inherit; text-decoration: underline; cursor: pointer; }
.form-note { font-size: 0.79rem !important; color: var(--text-dim); margin-bottom: 0 !important; }

.legal-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.legal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.legal-tag { font-size: 0.67rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 4px; }
.legal-card h4 { margin: 0; font-size: 1rem; }
.legal-card p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; flex: 1; }

.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; color: var(--text-muted); font-size: 0.86rem; background: #09090b; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.footer-brand p { margin: 8px 0 0; font-size: 0.84rem; max-width: 310px; line-height: 1.55; }
.footer-meta { font-size: 0.72rem !important; color: var(--text-dim); margin-top: 12px !important; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { margin: 0 0 6px; font-size: 0.72rem; letter-spacing: 0.09em; color: var(--text-secondary); }
.footer-col a, .footer-link-btn { color: var(--text-muted); font-size: 0.84rem; text-align: left; background: none; border: none; padding: 0; font-family: inherit; cursor: pointer; }
.footer-col a:hover, .footer-link-btn:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: 0.77rem; color: var(--text-dim); }
.footer-disclaimer { max-width: 560px; }

/* Interactive Legal Modal */
.legal-modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.legal-modal-backdrop.hidden { display: none; }
.legal-modal { width: 100%; max-width: 740px; max-height: 86vh; display: flex; flex-direction: column; background: #111114; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.lm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px 14px; border-bottom: 1px solid var(--border); }
.lm-eyebrow { display: block; font-size: 0.69rem; letter-spacing: 0.09em; color: var(--emerald); margin-bottom: 4px; }
.lm-head h3 { margin: 0; font-size: 1.25rem; }
.lm-close { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-secondary); width: 30px; height: 30px; border-radius: 6px; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.lm-close:hover { background: rgba(239, 68, 68, 0.18); color: #fff; border-color: rgba(239, 68, 68, 0.4); }
.lm-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 22px; background: #0c0c0f; border-bottom: 1px solid var(--border); }
.lm-tab { background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 6px 12px; border-radius: 6px; font-family: inherit; font-size: 0.8rem; font-weight: 500; cursor: pointer; }
.lm-tab.active { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.lm-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.lm-panel { display: none; }
.lm-panel.active { display: block; }
.lm-updated { font-size: 0.73rem; color: var(--emerald); margin: 0 0 14px; }
.lm-panel h4 { margin: 16px 0 6px; font-size: 0.94rem; color: var(--text); }
.lm-panel h4:first-of-type { margin-top: 0; }
.lm-panel p, .lm-panel li { font-size: 0.87rem; color: var(--text-muted); line-height: 1.62; margin: 0 0 8px; }
.lm-panel ul { padding-left: 18px; margin: 6px 0 12px; }
.lm-panel strong { color: var(--text); }
.lm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--border); background: #0c0c0f; }
.lm-foot-note { font-size: 0.73rem; color: var(--text-dim); }

/* Floating Bottom-Right Link to Customer Portal & Encrypted Chat */
.e2ee-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 920;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #141418;
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.e2ee-launcher:hover { background: #1c1c22; border-color: rgba(255, 255, 255, 0.35); }
.e2ee-launch-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }

/* ============================================================================
   Shared E2EE Chat Components & Dedicated Customer Portal (portal.html)
   ============================================================================ */
.e2ee-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  background: #0d0d10;
  border-bottom: 1px solid var(--border);
}
.e2ee-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.e2ee-lock-badge {
  font-size: 0.63rem;
  font-weight: 600;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}
.e2ee-fp { font-size: 0.66rem; color: var(--text-dim); }
.e2ee-head h4 { margin: 0; font-size: 0.96rem; color: var(--text); }

.e2ee-feed {
  padding: 14px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.e2ee-msg {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.e2ee-msg p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.e2ee-msg.bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.e2ee-msg.founder {
  align-self: flex-start;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #ecfdf5;
}
.e2ee-msg.user {
  align-self: flex-end;
  background: #1f1f25;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.e2ee-meta { font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.04em; }
.e2ee-msg.founder .e2ee-meta { color: #6ee7b7; }
.e2ee-msg.user .e2ee-meta { color: var(--text-muted); }

.e2ee-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0d0d10;
}
.e2ee-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.e2ee-chip:hover { border-color: var(--border-strong); color: #fff; }

.e2ee-cycle-switch {
  display: inline-flex;
  background: #0a0a0d;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px;
  gap: 3px;
}
.e2ee-cycle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}
.e2ee-cycle-btn.active { background: var(--surface-elevated); color: var(--text); font-weight: 600; }

.e2ee-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.e2ee-checks label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.38;
  cursor: pointer;
}
.e2ee-checks input { accent-color: var(--emerald); margin-top: 2px; cursor: pointer; }
.e2ee-checks input:disabled { cursor: default; }

.e2ee-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: #0d0d10;
}
.e2ee-input-bar input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #09090b;
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
}
.e2ee-input-bar input:focus { outline: none; border-color: var(--border-strong); }

/* Portal Page Layout */
.portal-body { min-height: 100vh; padding-top: 0; padding-bottom: 64px; }
.portal-nav-tag {
  font-size: 0.67rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-left: 8px;
}
.portal-top-actions { display: flex; align-items: center; gap: 8px; }
.portal-main { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; }

.portal-selection-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-secondary);
}
.psb-left { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.psb-user {
  font-size: 0.76rem;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 5px;
}

.portal-auth-wrap { display: flex; justify-content: center; padding: 14px 0 36px; }
.portal-auth-wrap.hidden,
.portal-workspace.hidden,
.portal-field.hidden,
.portal-invoice-card.hidden,
.hidden { display: none !important; }

.portal-auth-card {
  width: 100%;
  max-width: 500px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}
.portal-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #0a0a0d;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
}
.portal-auth-tab {
  padding: 9px 14px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.portal-auth-tab.active { background: var(--surface-elevated); color: var(--text); font-weight: 600; }

.portal-auth-header h1 { font-size: 1.38rem; margin: 0 0 8px; color: var(--text); }
.portal-auth-header p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.55; margin: 0 0 18px; }
.portal-auth-form { display: flex; flex-direction: column; gap: 14px; }

.portal-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: var(--text-secondary); }
.portal-field input {
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #0a0a0d;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}
.portal-field input:focus { outline: none; border-color: var(--border-strong); }

.portal-auth-status {
  font-size: 0.73rem;
  color: var(--text-muted);
  padding: 8px 11px;
  border-radius: 6px;
  background: #0c0c0f;
  border: 1px solid var(--border);
}
.portal-submit-btn { width: 100%; justify-content: center; }

.portal-workspace { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 20px; align-items: start; }
.portal-panel {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.portal-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.portal-panel-head h2 { font-size: 1.18rem; margin: 4px 0 0; color: var(--text); }

.portal-status-pill {
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}
.portal-status-pill.active { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.36); color: #6ee7b7; }
.portal-status-pill.cancelled { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }

.portal-tier-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.portal-tier-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0c0c0f;
  color: var(--text-secondary);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.portal-tier-btn:hover { border-color: var(--border-strong); }
.portal-tier-btn.active { border-color: var(--text); background: var(--surface-2); }
.pt-name { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.pt-price { font-size: 1.12rem; color: var(--text); }
.pt-price span { font-size: 0.72rem; color: var(--text-muted); }
.pt-sub { font-size: 0.68rem; color: var(--text-dim); }

.portal-calc-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.portal-checks-box {
  padding: 12px 14px;
  border-radius: 8px;
  background: #0c0c0f;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.portal-checks-title { font-size: 0.67rem; color: var(--text-dim); letter-spacing: 0.06em; }

.portal-price-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: #0c0c0f;
  border: 1px solid var(--border-strong);
}
.pps-label { font-size: 0.69rem; color: var(--emerald); }
.pps-price { font-size: 1.8rem; font-weight: 700; color: var(--text); }
.pps-per { font-size: 0.84rem; color: var(--text-muted); }
.pps-sub { font-size: 0.73rem; color: var(--text-muted); }
.portal-order-feedback { font-size: 0.76rem; margin: 0; }

.portal-invoice-card {
  padding: 16px;
  border-radius: var(--radius);
  background: #0c0c0f;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pic-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.pic-actions { display: flex; align-items: center; gap: 8px; }
.pic-head h4 { margin: 5px 0 0; font-size: 1rem; color: var(--text); }

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.btn-danger-outline:hover { background: rgba(239, 68, 68, 0.22); border-color: rgba(239, 68, 68, 0.75); color: #fff; }

.pic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 11px 12px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.pic-grid span { color: var(--text-dim); }
.pic-pay-box { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }
.pic-pay-box strong { color: var(--text); }
.pic-pay-box ul { margin: 6px 0 0 18px; padding: 0; }
.pic-pay-box a { color: var(--text); text-decoration: underline; }

.pic-app-link {
  padding: 11px 13px;
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #d1fae5;
  font-size: 0.74rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pal-head { font-weight: 600; color: #34d399; letter-spacing: 0.04em; }
.pal-creds { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text); }
.pal-license { color: #a7f3d0; word-break: break-all; }

.portal-chat-panel { padding: 0; overflow: hidden; min-height: 580px; }
.portal-chat-head { padding: 16px 18px; }
.portal-chat-head h2 { font-size: 1.1rem; margin: 4px 0 0; color: var(--text); }
.portal-chat-feed { min-height: 390px; max-height: 480px; }
.portal-chat-form { padding: 12px 14px; }

/* ============================================================================
   Unified Obsidian & Steel Cobalt Surface Elevation & Tactile Polish
   ============================================================================ */
.card, .arch-node, .threat-card, .guardrail-card, .price-card, .quote-calc,
.step-card, .roadmap-card, .download-card, .about-story, .pillar-card,
.faq-item, .cta-box, .legal-card, .portal-card, .portal-auth-card,
.app-window, .demo-controls, .health-bar-widget {
  box-shadow: var(--inset-top);
}
.card:hover, .arch-node:hover, .threat-card:hover, .price-card:hover,
.step-card:hover, .pillar-card:hover, .legal-card:hover {
  border-color: rgba(96, 165, 250, 0.34);
}
.price-card.featured {
  border-color: rgba(96, 165, 250, 0.42);
  border-top: 2px solid var(--steel);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), var(--surface) 45%);
}
.arch-node-core {
  border-color: rgba(96, 165, 250, 0.36);
  border-top: 2px solid var(--steel);
}
.arch-step, .portal-eyebrow {
  color: var(--steel-soft);
}
.portal-tier-btn.active {
  border-color: var(--steel);
  background: rgba(59, 130, 246, 0.12);
}
.portal-auth-card {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.62), var(--inset-top);
}
.footer {
  background: #06080c;
}
.qc-right, .dl-checklist, .about-proof-strip div, .lm-tabs {
  background: #0b0e15;
}
.waitlist-form input[type="email"], .waitlist-form input[type="text"],
.portal-auth-form input, .portal-calc-field input, .chat-input-bar input {
  background: #0a0d14;
}
.waitlist-form input:focus, .portal-auth-form input:focus,
.portal-calc-field input:focus, .chat-input-bar input:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

/* ============================================================================
   User-Friendly Customer Portal Login & Sticky Workspace Refinements
   ============================================================================ */
.portal-auth-wrap {
  max-width: 500px;
  margin: 28px auto 56px;
}
.portal-auth-card {
  padding: 28px 30px;
}
.portal-auth-header h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.portal-auth-header p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 22px;
}
.field-hint {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.78rem;
}
.pw-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pw-input-wrap input {
  width: 100%;
  padding-right: 64px;
}
.pw-toggle-btn {
  position: absolute;
  right: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.pw-toggle-btn:hover {
  border-color: var(--steel);
  color: var(--text);
}
.portal-auth-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-dim);
}
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--steel-soft);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.link-btn:hover { color: var(--text); text-decoration: underline; }
.otp-input {
  letter-spacing: 0.35em;
  text-align: center;
  font-size: 1.15rem !important;
  font-weight: 700;
}
.portal-back-btn { width: 100%; margin-top: 2px; }

/* Balanced 2-Column Equal-Size Portal (Plan Selector Left + Active Plan Right) + Floating Bottom-Right Chat */
.portal-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto 64px;
}
.portal-workspace > .portal-col {
  display: flex;
  flex-direction: column;
}
.portal-workspace > .portal-col > .portal-panel {
  flex: 1;
  height: 100%;
}
.portal-panel .portal-price-summary {
  margin-top: auto;
}
.portal-status-panel .portal-invoice-card {
  margin-top: 0;
  padding: 0;
  border: none;
  background: transparent;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.portal-status-panel .pic-app-link {
  margin-top: auto;
}
.portal-chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.55);
  background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(59, 130, 246, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.portal-chat-fab:hover {
  transform: translateY(-2px);
  border-color: #60a5fa;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65), 0 0 18px rgba(59, 130, 246, 0.28);
}
.portal-chat-fab .fab-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}
.portal-chat-fab .fab-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.portal-chat-float {
  position: fixed;
  right: 24px;
  bottom: 82px;
  width: min(420px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 110px));
  z-index: 1200;
  animation: chatPopIn 0.18s ease-out;
}
@keyframes chatPopIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.portal-chat-float .portal-chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
  background: #0b0f17;
}
.portal-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.portal-chat-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.portal-chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.portal-chat-feed {
  flex: 1;
  min-height: 180px;
  max-height: none;
  overflow-y: auto;
  padding: 14px 16px;
}
.formal-invoice-sheet {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 14mm 16mm;
  }

  /* Invoice print layout: only while portal.js marks a verified invoice as printable */
  body.can-print-invoice,
  body.can-print-invoice * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.portal-body.can-print-invoice {
    background: #ffffff !important;
    color: #0f172a !important;
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  }

  body.can-print-invoice .ambient-bg,
  body.can-print-invoice .navbar,
  body.can-print-invoice #portalPlanBanner,
  body.can-print-invoice .portal-subnav,
  body.can-print-invoice .portal-auth-wrap,
  body.can-print-invoice #portalFeedbackSection,
  body.can-print-invoice .portal-chat-float,
  body.can-print-invoice .portal-chat-fab,
  body.can-print-invoice footer.footer,
  body.can-print-invoice #portalWorkspace > .portal-col:first-child,
  body.can-print-invoice .portal-status-panel > .portal-panel-head,
  body.can-print-invoice #portalInvoiceCard > .pic-head,
  body.can-print-invoice #portalInvoiceCard > .pic-grid,
  body.can-print-invoice #portalInvoiceCard > #invAppLinkBox,
  body.can-print-invoice #portalInvoiceCard > #picPayBox {
    display: none !important;
  }

  body.can-print-invoice .portal-main,
  body.can-print-invoice #portalWorkspace,
  body.can-print-invoice #portalWorkspace > .portal-col,
  body.can-print-invoice .portal-status-panel,
  body.can-print-invoice #portalInvoiceCard {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.can-print-invoice .formal-invoice-sheet {
    display: flex !important;
    flex-direction: column;
    min-height: 252mm;
    color: #0f172a !important;
    font-size: 9.5pt;
    line-height: 1.45;
  }

  /* Formal Letterhead Top Bar */
  .fi-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 2.5px solid #0f172a;
    margin-bottom: 22px;
  }

  .fi-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .fi-logo-mark {
    flex-shrink: 0;
  }

  .fi-company {
    font-size: 14.5pt;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #0f172a;
    line-height: 1.15;
  }

  .fi-product {
    font-size: 8.8pt;
    font-weight: 600;
    color: #334155;
    margin-top: 2px;
  }

  .fi-company-meta {
    margin-top: 8px;
    font-size: 8.2pt;
    color: #475569;
    line-height: 1.5;
  }

  .fi-doc-block {
    text-align: right;
  }

  .fi-doc-title {
    font-size: 22pt;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #0f172a;
    line-height: 1;
  }

  .fi-status-stamp {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 12px;
    border: 1.5px solid #065f46;
    color: #065f46;
    background: #ecfdf5;
    font-family: "IBM Plex Mono", monospace;
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .fi-status-stamp.is-cancelled {
    border-color: #991b1b;
    color: #991b1b;
    background: #fef2f2;
  }

  /* Two-Column Bill-To & Invoice Metadata */
  .fi-parties-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 26px;
  }

  .fi-party-col {
    flex: 1;
  }

  .fi-section-label {
    font-size: 7.5pt;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
  }

  .fi-party-name {
    font-size: 11.5pt;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
  }

  .fi-party-detail {
    font-size: 8.8pt;
    color: #334155;
    line-height: 1.5;
  }

  .fi-muted {
    color: #64748b !important;
    font-size: 8pt !important;
  }

  .fi-meta-col {
    width: 265px;
    flex-shrink: 0;
  }

  .fi-meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8.5pt;
  }

  .fi-meta-table th,
  .fi-meta-table td {
    padding: 5px 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .fi-meta-table th {
    text-align: left;
    font-weight: 600;
    color: #475569;
  }

  .fi-meta-table td {
    text-align: right;
    font-weight: 600;
    color: #0f172a;
  }

  /* Formal Line-Item Table */
  .fi-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 8.8pt;
  }

  .fi-items-table thead tr {
    background: #0f172a;
    color: #ffffff;
  }

  .fi-items-table th {
    padding: 9px 10px;
    font-size: 7.6pt;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    color: #ffffff;
  }

  .fi-items-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #cbd5e1;
    vertical-align: top;
    color: #0f172a;
  }

  .fi-col-num { width: 32px; text-align: center !important; }
  .fi-col-cycle { width: 88px; }
  .fi-col-qty { width: 46px; text-align: center !important; }
  .fi-col-rate,
  .fi-col-amt { width: 105px; text-align: right !important; white-space: nowrap; }

  .fi-item-title {
    font-weight: 700;
    font-size: 9.4pt;
    color: #0f172a;
    margin-bottom: 3px;
  }

  .fi-item-sub {
    font-size: 8.1pt;
    color: #475569;
    line-height: 1.45;
  }

  /* Summary: Left Notes + Right Financial Totals */
  .fi-summary-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 28px;
  }

  .fi-notes-box {
    flex: 1;
    border-left: 3px solid #cbd5e1;
    padding: 2px 0 2px 14px;
  }

  .fi-notes-box p {
    margin: 0 0 6px;
    font-size: 8.3pt;
    color: #334155;
    line-height: 1.5;
  }

  .fi-totals-table {
    width: 265px;
    flex-shrink: 0;
    border-collapse: collapse;
    font-size: 8.8pt;
  }

  .fi-totals-table th,
  .fi-totals-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #e2e8f0;
  }

  .fi-totals-table th {
    text-align: left;
    font-weight: 500;
    color: #475569;
  }

  .fi-totals-table td {
    text-align: right;
    font-weight: 600;
    color: #0f172a;
  }

  .fi-totals-table tr.fi-total-row th,
  .fi-totals-table tr.fi-total-row td {
    border-top: 1.5px solid #0f172a;
    border-bottom: 1px solid #cbd5e1;
    padding-top: 8px;
    padding-bottom: 8px;
    font-weight: 800;
    font-size: 9.6pt;
    color: #0f172a;
  }

  .fi-totals-table tr.fi-balance-row th,
  .fi-totals-table tr.fi-balance-row td {
    background: #f8fafc;
    border-top: 1px solid #cbd5e1;
    border-bottom: 2.5px double #0f172a;
    padding-top: 8px;
    padding-bottom: 8px;
    font-weight: 800;
    font-size: 9.6pt;
    color: #0f172a;
  }

  /* Formal Document Footer */
  .fi-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #cbd5e1;
    text-align: center;
    font-size: 7.8pt;
    color: #64748b;
    line-height: 1.55;
  }

  .fi-footer strong {
    color: #334155;
  }
}

/* Signed-In Customer Portal Sub-Navigation & Feedback Studio */
.portal-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto 18px;
}
.portal-subnav-btn {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.portal-subnav-btn:hover {
  border-color: rgba(96, 165, 250, 0.5);
  color: var(--text);
}
.portal-subnav-btn.active {
  background: rgba(59, 130, 246, 0.16);
  border-color: #60a5fa;
  color: #f8fafc;
}
.portal-fb-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.portal-select,
.portal-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0a0d14;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
}
.portal-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.fb-stars {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fb-star {
  background: transparent;
  border: none;
  font-size: 1.55rem;
  line-height: 1;
  color: #334155;
  cursor: pointer;
  padding: 2px;
  transition: transform 0.12s ease, color 0.12s ease;
}
.fb-star.active,
.fb-star:hover {
  color: #fbbf24;
  transform: scale(1.08);
}
.fb-star-label {
  margin-left: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.fb-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fb-file-input {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.fb-photo-preview {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0a0d14;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fb-photo-preview img {
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
  align-self: flex-start;
}
.fb-photo-preview span {
  font-size: 0.72rem;
  color: var(--text-dim);
}
.fb-my-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
}
.fb-empty {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
}
.fb-my-card {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0a0d14;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fb-my-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
}
.fb-my-stars {
  color: #fbbf24;
  letter-spacing: 1px;
}
.fb-my-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  border: 1px solid var(--border);
  color: #7dd3fc;
}
.fb-my-status.resolved {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}
.fb-my-msg {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.fb-my-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Clean Stacked Invoice Metric Grid (zero awkward inline text wrapping) */
.pic-grid-stacked {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.pic-cell {
  background: #0a0d14;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pic-cell span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-family: "IBM Plex Mono", monospace;
}
.pic-cell strong {
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-word;
}
.pal-desc {
  margin: 6px 0 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

@media (max-width: 980px) {
  .portal-workspace {
    grid-template-columns: 1fr;
  }
  .portal-chat-float {
    right: 12px;
    bottom: 76px;
    width: calc(100vw - 24px);
    height: min(520px, calc(100vh - 100px));
  }
  .portal-chat-fab {
    right: 14px;
    bottom: 14px;
  }
  .pic-grid-stacked {
    grid-template-columns: 1fr;
  }
}

.pricing-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px;
}
.pricing-grid-4 .price-card {
  padding: 24px 20px;
}
.portal-tier-cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px;
}
@media (max-width: 1120px) {
  .pricing-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 680px) {
  .pricing-grid-4,
  .portal-tier-cards-4 {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================================
   Live Ubuntu Lab Proof Slideshow & Full-Screen Lightbox
   ============================================================================ */
.proof-slider {
  background: rgba(11, 16, 28, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.55);
}

.proof-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 18px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border);
}

.proof-topbar-left,
.proof-topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.proof-step-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 3px 9px;
  border-radius: 999px;
}

.proof-sev-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
}
.proof-sev-badge.crit {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.35);
}
.proof-sev-badge.info {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.proof-sev-badge.ok {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.proof-env-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.proof-stage {
  position: relative;
  background: #060911;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof-viewport {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  padding: 10px;
}

.proof-viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.22s ease, transform 0.22s ease;
  image-rendering: -webkit-optimize-contrast;
}

.proof-viewport img.is-fading {
  opacity: 0.35;
}

.proof-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(10, 15, 28, 0.84);
  color: #f8fafc;
  font-size: 1.65rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.proof-arrow:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  transform: translateY(-50%) scale(1.06);
}

.proof-prev { left: 14px; }
.proof-next { right: 14px; }

.proof-caption-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
}

.proof-caption-copy {
  flex: 1;
  min-width: 0;
}

.proof-caption-copy h3 {
  font-size: 1.06rem;
  color: #f8fafc;
  margin-bottom: 6px;
}

.proof-caption-copy p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.proof-evidence-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  max-width: 290px;
}

.proof-evidence-chips span {
  font-size: 0.72rem;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.28);
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border);
  background: rgba(9, 13, 24, 0.92);
}

.proof-thumb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.proof-thumb:hover {
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-1px);
}

.proof-thumb.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  color: #f8fafc;
}

.proof-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.proof-thumb span {
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Full-Screen Lightbox */
.proof-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.proof-lightbox.hidden {
  display: none !important;
}

.proof-lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 12px;
  color: #e2e8f0;
  font-size: 0.82rem;
}

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

.proof-lb-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.proof-lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}

@media (max-width: 860px) {
  .proof-caption-bar {
    flex-direction: column;
  }
  .proof-evidence-chips {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .proof-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }
}

/* ============================================================================
   Responsive & Reduced-Motion Support
   ============================================================================ */
@media (max-width: 980px) {
  .app-split, .guardrail-grid, .pricing-grid, .quote-calc, .download-card,
  .arch-diagram, .about-grid, .legal-strip, .footer-grid, .steps-grid,
  .roadmap-grid, .portal-workspace { grid-template-columns: 1fr; }
  .threat-grid { grid-template-columns: repeat(2, 1fr); }
  .pane-terminal { border-right: none; border-bottom: 1px solid var(--border); }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .about-proof-strip { grid-template-columns: repeat(2, 1fr); }
  .arch-connector { flex-direction: row; min-height: 36px; }
  .conn-line { width: 36px; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .portal-tier-cards, .portal-calc-controls, .pic-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-actions { display: none; }
  /* Keep Customer Portal top actions (Back / Download / Sign Out) visible on phones */
  .nav-actions.portal-top-actions {
    display: flex !important;
    gap: 6px;
  }
  .portal-top-actions .btn-sm {
    padding: 6px 9px;
    font-size: 0.74rem;
  }
  .portal-nav-tag { display: none; }
  .mobile-toggle { display: flex; }
  .bento-grid, .facts-strip, .threat-grid, .e2ee-checks { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 36px; }
  .section { padding: 56px 0; }
  .sparkline { display: none; }

  /* Phone Radar Polish: balanced 3-col counters, wrapped feed text (zero mid-word clipping) */
  .radar-header { padding: 12px 14px; gap: 10px; }
  .radar-counters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 0.68rem;
  }
  .radar-counters span {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .radar-counters strong { font-size: 0.82rem; }
  #attackRadarCanvas { height: 190px; }
  .mitre-bar { padding: 8px 12px; gap: 6px; }
  .mitre-pill { font-size: 0.64rem; padding: 3px 7px; }
  .radar-feed {
    white-space: normal;
    align-items: flex-start;
    line-height: 1.45;
    padding: 10px 12px;
    font-size: 0.72rem;
  }
  .radar-feed #radarFeedText {
    min-width: 0;
    word-break: break-word;
  }

  /* Compact floating chat launcher + bottom footer clearance on phones */
  .e2ee-launcher {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  .footer { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
