/* =============================================================================
   demo.css — VerifAIer v1.33.0 · Localhost Enterprise Demo Surface
   Design system: tokens, reset, typography, grid, utilities, responsive
   No external dependencies. No CDN. No network calls.
   ============================================================================= */

/* ── Design Tokens ─────────────────────────────────────────────────────────── */

:root {
  /* Backgrounds */
  --bg-base:     #0a0d12;
  --bg-surface:  #111620;
  --bg-elevated: #1a2030;
  --bg-overlay:  #222d40;
  --bg-input:    #0f1419;

  /* Text */
  --text-primary:   #e8edf5;
  --text-secondary: #8b97a8;
  --text-muted:     #4a5568;
  --text-inverse:   #0a0d12;

  /* Governance status — matches runtime green/yellow/red */
  --color-green:       #00e5a0;
  --color-green-dim:   #00b87e;
  --color-green-bg:    rgba(0, 229, 160, 0.08);
  --color-green-glow:  rgba(0, 229, 160, 0.15);

  --color-yellow:      #f5a623;
  --color-yellow-dim:  #c47d0d;
  --color-yellow-bg:   rgba(245, 166, 35, 0.08);
  --color-yellow-glow: rgba(245, 166, 35, 0.15);

  --color-red:         #e53e3e;
  --color-red-dim:     #b91c1c;
  --color-red-bg:      rgba(229, 62, 62, 0.08);
  --color-red-glow:    rgba(229, 62, 62, 0.15);

  /* Info / neutral */
  --color-blue:    #60a5fa;
  --color-blue-bg: rgba(96, 165, 250, 0.08);
  --color-purple:  #a78bfa;
  --color-slate:   #64748b;

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.09);
  --border-strong:  rgba(255, 255, 255, 0.16);
  --border-green:   rgba(0, 229, 160, 0.25);
  --border-yellow:  rgba(245, 166, 35, 0.25);
  --border-red:     rgba(229, 62, 62, 0.25);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", "Consolas",
               "Courier New", monospace;

  /* Type scale */
  --text-xs:   0.6875rem;  /* 11px */
  --text-sm:   0.8125rem;  /* 13px */
  --text-base: 0.9375rem;  /* 15px */
  --text-lg:   1.0625rem;  /* 17px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */

  /* Font weights */
  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;

  /* Line heights */
  --lh-tight:   1.2;
  --lh-snug:    1.35;
  --lh-normal:  1.5;
  --lh-relaxed: 1.65;

  /* Spacing scale */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.25rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;

  /* Border radius */
  --r-sm:   0.25rem;
  --r-md:   0.5rem;
  --r-lg:   0.75rem;
  --r-xl:   1rem;
  --r-2xl:  1.5rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md:     0 4px 12px rgba(0, 0, 0, 0.55);
  --shadow-lg:     0 8px 28px rgba(0, 0, 0, 0.65);
  --shadow-xl:     0 16px 48px rgba(0, 0, 0, 0.7);
  --shadow-green:  0 0 0 1px var(--border-green), 0 4px 16px var(--color-green-glow);
  --shadow-yellow: 0 0 0 1px var(--border-yellow), 0 4px 16px var(--color-yellow-glow);
  --shadow-red:    0 0 0 1px var(--border-red), 0 4px 16px var(--color-red-glow);

  /* Transitions */
  --t-fast:   100ms ease;
  --t-base:   180ms ease;
  --t-slow:   320ms ease;
  --t-spring: 280ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --nav-h:       60px;
  --footer-h:    80px;
  --max-w:       1280px;
  --max-w-prose: 720px;
  --page-px:     var(--s-6);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ol, ul {
  list-style: none;
}

a {
  color: var(--color-green);
  text-decoration: none;
  transition: color var(--t-fast), opacity var(--t-fast);
}

a:hover {
  color: var(--color-green-dim);
  opacity: 0.9;
}

/* ── Typography ────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); font-weight: var(--fw-bold); letter-spacing: -0.03em; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

p + p {
  margin-top: var(--s-4);
}

strong {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

code {
  background: var(--bg-elevated);
  color: var(--color-green);
  padding: 0.15em 0.45em;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
}

pre {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  overflow-x: auto;
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: var(--text-sm);
}

blockquote {
  border-left: 3px solid var(--color-green);
  padding-left: var(--s-5);
  color: var(--text-secondary);
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--border-default);
  margin: var(--s-8) 0;
}

small {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Layout ────────────────────────────────────────────────────────────────── */

.vrf-container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-px);
  padding-right: var(--page-px);
}

.vrf-container--narrow {
  max-width: var(--max-w-prose);
}

.vrf-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.vrf-page__main {
  flex: 1;
  padding-top: var(--s-12);
  padding-bottom: var(--s-16);
}

/* Grid */
.vrf-grid {
  display: grid;
  gap: var(--s-6);
}

.vrf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.vrf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.vrf-grid--4 { grid-template-columns: repeat(4, 1fr); }
.vrf-grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.vrf-grid--sidebar {
  grid-template-columns: 240px 1fr;
  gap: var(--s-8);
}

/* Flex helpers */
.vrf-flex         { display: flex; }
.vrf-flex-center  { display: flex; align-items: center; justify-content: center; }
.vrf-flex-between { display: flex; align-items: center; justify-content: space-between; }
.vrf-flex-col     { display: flex; flex-direction: column; }
.vrf-gap-2        { gap: var(--s-2); }
.vrf-gap-3        { gap: var(--s-3); }
.vrf-gap-4        { gap: var(--s-4); }
.vrf-gap-6        { gap: var(--s-6); }

/* ── Section ───────────────────────────────────────────────────────────────── */

.vrf-section {
  margin-bottom: var(--s-16);
}

.vrf-section__header {
  margin-bottom: var(--s-8);
}

.vrf-section__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: var(--s-3);
}

.vrf-section__title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.025em;
  margin-bottom: var(--s-3);
}

.vrf-section__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: var(--lh-relaxed);
}

/* ── Utilities ─────────────────────────────────────────────────────────────── */

/* Text */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-green     { color: var(--color-green); }
.text-yellow    { color: var(--color-yellow); }
.text-red       { color: var(--color-red); }
.text-blue      { color: var(--color-blue); }

.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }

.font-mono     { font-family: var(--font-mono); }
.font-medium   { font-weight: var(--fw-medium); }
.font-semibold { font-weight: var(--fw-semibold); }
.font-bold     { font-weight: var(--fw-bold); }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.uppercase   { text-transform: uppercase; letter-spacing: 0.08em; }

/* Spacing */
.mt-2  { margin-top: var(--s-2); }
.mt-4  { margin-top: var(--s-4); }
.mt-6  { margin-top: var(--s-6); }
.mt-8  { margin-top: var(--s-8); }
.mt-12 { margin-top: var(--s-12); }
.mb-2  { margin-bottom: var(--s-2); }
.mb-4  { margin-bottom: var(--s-4); }
.mb-6  { margin-bottom: var(--s-6); }
.mb-8  { margin-bottom: var(--s-8); }

/* Display */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Focus visible ─────────────────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */

::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-overlay); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-slate); }

/* ── Selection ─────────────────────────────────────────────────────────────── */

::selection {
  background: var(--color-green-bg);
  color: var(--color-green);
}

/* ── Responsive breakpoints ────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  :root { --page-px: var(--s-5); }

  .vrf-grid--4  { grid-template-columns: repeat(2, 1fr); }
  .vrf-grid--3  { grid-template-columns: repeat(2, 1fr); }
  .vrf-grid--sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --page-px: var(--s-4); }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

  .vrf-grid--2,
  .vrf-grid--3,
  .vrf-grid--4 { grid-template-columns: 1fr; }

  .vrf-section__title { font-size: var(--text-2xl); }
}

@media (max-width: 480px) {
  :root { --page-px: var(--s-3); }
  h1 { font-size: var(--text-3xl); }
}

/* ── Page heading utilities ────────────────────────────────────────────────── */

.vrf-heading-xl {
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: var(--lh-tight);
  color: var(--text-primary);
}

.vrf-heading-lg {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.025em;
  line-height: var(--lh-tight);
  color: var(--text-primary);
}

.vrf-text-lg         { font-size: var(--text-lg); line-height: var(--lh-relaxed); }
.vrf-color-secondary { color: var(--text-secondary); }

@media (max-width: 768px) {
  .vrf-heading-xl { font-size: var(--text-3xl); }
  .vrf-heading-lg { font-size: var(--text-2xl); }
}

/* ── Print ─────────────────────────────────────────────────────────────────── */

@media print {
  .vrf-nav,
  .vrf-nav-spacer,
  .vrf-footer { display: none !important; }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .vrf-card,
  .vrf-panel {
    border: 1px solid #ccc;
    box-shadow: none;
    background: white;
    color: black;
  }
}
