/* styles.css — Prufe Pre-flight Security Inspector
   Self-hosted WOFF2 fonts (zero third-party font CDN requests). */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
}

:root {
  --font-sans: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  /* Ink Neutral Ramp (WCAG AA >= 4.5:1) */
  --bg-deep: #07080d;
  --bg-page: #0b0d14;
  --bg-card: #11141c;
  --bg-raised: #1a1e28;

  /* Hairlines */
  --hairline: rgba(238, 240, 245, 0.10);
  --hairline-strong: rgba(238, 240, 245, 0.18);

  /* Three Text Roles */
  --text-primary: #eef0f5;
  --text-secondary: #b0b7c7;
  --text-muted: #939bb0;

  /* Accent */
  --accent: #f59e0b;

  /* Semantic Diagnostic Colors */
  --pos: #4cc38a;
  --pos-tint: rgba(76, 195, 138, 0.10);
  --pos-line: rgba(76, 195, 138, 0.24);

  --warn: #f59e0b;
  --warn-tint: rgba(245, 158, 11, 0.10);
  --warn-line: rgba(245, 158, 11, 0.24);

  --neg: #ff7075;
  --neg-tint: rgba(229, 72, 77, 0.12);
  --neg-line: rgba(229, 72, 77, 0.34);

  /* Radii (nested radius math, no 9999px pills) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;

  --max-w: 1200px;
}

/* --- Reset & Base ------------------------------------------------------ */

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

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

.font-mono {
  font-family: var(--font-mono);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.icon-16 {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -64px;
  left: 24px;
  background: var(--text-primary);
  color: var(--bg-page);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 500;
  z-index: 1000;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--accent);
}

/* --- Layout Shell & Top Navigation (56px height) ----------------------- */

.site-wrapper {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--hairline);
}

.nav-container {
  max-width: var(--max-w);
  height: 56px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-glyph {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

.brand-title {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: 8px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  transition: color var(--dur-fast) var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
}

.btn-secondary-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background-color: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.btn-secondary-nav svg {
  color: var(--text-muted);
}

.btn-secondary-nav:hover {
  border-color: var(--hairline-strong);
}

.btn-secondary-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Language Switcher (32px height, 4px inner keycaps) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 4px;
  background-color: var(--bg-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  gap: 4px;
}

.lang-btn {
  height: 24px;
  padding: 0 8px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background-color: var(--bg-raised);
  color: var(--text-primary);
  font-weight: 500;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
}

/* --- Asymmetric Split Hero --------------------------------------------- */

.hero-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.hero-title {
  font-size: 44px;
  line-height: 48px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 16px;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 32px;
}

/* Clean HTTP URL Inspector Bar */
.inspector-form {
  width: 100%;
  margin-bottom: 24px;
}

.inspector-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-field-shell {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  background-color: var(--bg-deep);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease);
}

.inspector-field-shell:focus-within {
  border-color: var(--accent);
}

.protocol-prefix {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
  user-select: none;
  margin-right: 4px;
}

#url-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  padding: 0;
}

#url-input::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
}

.btn-clear {
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--dur-fast) var(--ease);
}

.btn-clear:hover {
  color: var(--text-primary);
}

/* Primary Action Button: Off-white from ramp with dark ink text */
.btn-primary-inspect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  background-color: var(--text-primary);
  color: var(--bg-page);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.btn-primary-inspect:hover:not(:disabled) {
  background-color: #ffffff;
}

.btn-primary-inspect:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary-inspect:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary-inspect:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Sample Target Chips */
.samples-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.samples-title {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.chip-sample {
  height: 24px;
  padding: 0 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.chip-sample:hover {
  background-color: var(--bg-raised);
  border-color: var(--hairline-strong);
  color: var(--text-primary);
}

/* Form Error Banner */
.error-banner {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--neg-tint);
  border: 1px solid var(--neg-line);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 20px;
}

.error-banner svg {
  color: var(--neg);
}

/* Supported Workflows Strip */
.tech-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  width: 100%;
}

.tech-label {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.tech-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}

.tech-sep {
  color: var(--text-muted);
}

/* --- Right Hero Column: Live Pre-flight Inspection Sheet (Moment) ------ */

.hero-preview-col {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.inspection-sheet {
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background-color: var(--bg-deep);
  border-bottom: 1px solid var(--hairline);
}

.sheet-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sheet-title {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.sheet-target {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-mode {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  white-space: nowrap;
}

.sheet-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}

.sheet-verdict-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.sheet-verdict-tag.fail {
  background-color: var(--neg-tint);
  border: 1px solid var(--neg-line);
  color: var(--neg);
}

.status-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-dot-sm.fail {
  background-color: var(--neg);
}

.sheet-stacks {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sheet-stack-tag {
  height: 20px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}

.sheet-coverage {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  margin-left: auto;
}

/* Signature: HTTP & Bundle Trace Rows */
.trace-list {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  gap: 8px;
  border-bottom: 1px solid var(--hairline);
}

.trace-row {
  padding: 12px;
  background-color: var(--bg-deep);
  border: 1px solid var(--hairline);
  border-left-width: 2px;
  border-radius: var(--radius-md);
}

.trace-row.trace-crit {
  border-left-color: var(--neg);
}

.trace-row.trace-warn {
  border-left-color: var(--warn);
}

.trace-row.trace-pass {
  border-left-color: var(--pos);
}

.trace-path-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 4px;
}

.trace-method {
  color: var(--text-muted);
}

.trace-path {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trace-status {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.trace-sev {
  padding: 0 6px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 16px;
}

.trace-sev.crit {
  background-color: var(--neg-tint);
  color: var(--neg);
}

.trace-sev.warn {
  background-color: var(--warn-tint);
  color: var(--warn);
}

.trace-sev.pass {
  background-color: var(--pos-tint);
  color: var(--pos);
}

.trace-detail {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 20px;
  color: var(--text-secondary);
  padding-left: 44px;
}

.sheet-prompt-preview {
  padding: 16px 20px;
  background-color: var(--bg-deep);
  border-bottom: 1px solid var(--hairline);
}

.sheet-prompt-top {
  margin-bottom: 8px;
}

.sheet-prompt-label {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.sheet-prompt-code {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}

.sheet-footer {
  padding: 12px 20px;
  background-color: var(--bg-card);
}

.btn-sheet-open {
  width: 100%;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background-color: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.btn-sheet-open svg {
  color: var(--text-muted);
}

.btn-sheet-open:hover {
  border-color: var(--hairline-strong);
}

/* --- Live Telemetry Loader --------------------------------------------- */

.telemetry-section {
  max-width: var(--max-w);
  margin: 0 auto 48px;
  padding: 0 32px;
}

.telemetry-card {
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
}

.telemetry-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.telemetry-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

.telemetry-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  margin: 0;
  color: var(--text-primary);
}

.telemetry-sub {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
  margin: 0;
}

.telemetry-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-item {
  display: grid;
  grid-template-columns: 8px 24px 1fr;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  background-color: var(--bg-deep);
  border: 1px solid transparent;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.step-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.step-code {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.step-item.active {
  color: var(--text-primary);
  background-color: var(--bg-raised);
  border-color: var(--hairline);
}

.step-item.active .step-bullet {
  background-color: var(--accent);
}

.step-item.done {
  color: var(--text-secondary);
}

.step-item.done .step-bullet {
  background-color: var(--pos);
}

/* --- Security Audit Results Dashboard ---------------------------------- */

.results-section {
  max-width: var(--max-w);
  margin: 0 auto 64px;
  padding: 0 32px;
}

.dashboard-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-heading-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-main-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  margin: 0;
  color: var(--text-primary);
}

.demo-tag {
  height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  background-color: var(--warn-tint);
  border: 1px solid var(--warn-line);
  color: var(--warn);
  font-size: 12px;
  line-height: 16px;
}

.view-switch-tabs {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 4px;
  background-color: var(--bg-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  gap: 4px;
}

.tab-btn {
  height: 24px;
  padding: 0 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background-color: var(--bg-raised);
  color: var(--text-primary);
  font-weight: 500;
}

/* JSON Display Panel */
.terminal-display-card {
  background-color: var(--bg-deep);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.terminal-display-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 16px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--hairline);
}

.terminal-prompt {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}

.btn-copy-json {
  height: 24px;
  padding: 0 8px;
  background-color: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.btn-copy-json:hover {
  border-color: var(--hairline-strong);
  color: var(--text-primary);
}

.terminal-raw-code {
  margin: 0;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 20px;
  max-height: 480px;
  overflow-y: auto;
}

/* Verdict Card */
.verdict-card {
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  margin-bottom: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-top-width: 2px;
  border-radius: var(--radius-lg);
}

.verdict-card.pass { border-top-color: var(--pos); }
.verdict-card.warn { border-top-color: var(--warn); }
.verdict-card.fail { border-top-color: var(--neg); }
.verdict-card.inconclusive { border-top-color: var(--text-muted); }

.verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.verdict-outcome-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.verdict-symbol {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.verdict-symbol svg {
  width: 18px;
  height: 18px;
}

.verdict-card.pass .verdict-symbol { color: var(--pos); }
.verdict-card.warn .verdict-symbol { color: var(--warn); }
.verdict-card.fail .verdict-symbol { color: var(--neg); }
.verdict-card.inconclusive .verdict-symbol { color: var(--text-muted); }

.verdict-tag {
  height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.verdict-card.pass .verdict-tag {
  background-color: var(--pos-tint);
  color: var(--pos);
  border: 1px solid var(--pos-line);
}

.verdict-card.warn .verdict-tag {
  background-color: var(--warn-tint);
  color: var(--warn);
  border: 1px solid var(--warn-line);
}

.verdict-card.fail .verdict-tag {
  background-color: var(--neg-tint);
  color: var(--neg);
  border: 1px solid var(--neg-line);
}

.verdict-card.inconclusive .verdict-tag {
  background-color: var(--bg-raised);
  color: var(--text-muted);
  border: 1px solid var(--hairline);
}

.verdict-meta {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-url {
  color: var(--text-primary);
}

.cached-tag {
  height: 20px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  background-color: var(--bg-raised);
  color: var(--text-muted);
}

.verdict-heading {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--text-primary);
}

/* Coverage Panel */
.coverage-panel {
  background-color: var(--bg-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.coverage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.coverage-title {
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-secondary);
}

.coverage-fraction {
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.coverage-track {
  width: 100%;
  height: 4px;
  background-color: var(--bg-raised);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}

.coverage-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  background-color: var(--pos);
  width: 0%;
  transition: width 350ms var(--ease);
}

.coverage-details {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
  margin: 0;
}

/* Stacks Detected */
.stacks-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.stacks-heading {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
}

.stacks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-badge {
  height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  background-color: var(--bg-raised);
  color: var(--text-primary);
  border: 1px solid var(--hairline);
}

/* Findings Stack */
.findings-container, .neutral-container {
  margin-bottom: 32px;
}

.findings-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.findings-heading, .neutral-heading {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  margin: 0;
  color: var(--text-primary);
}

.count-tag {
  height: 20px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  background-color: var(--neg-tint);
  color: var(--neg);
  border: 1px solid var(--neg-line);
  font-size: 12px;
  line-height: 16px;
}

.findings-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Finding Card */
.finding-card {
  min-width: 0;
  max-width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--hairline);
  border-left-width: 2px;
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color var(--dur-fast) var(--ease);
}

.finding-card:hover {
  border-color: var(--hairline-strong);
}

.finding-card.sev-critical { border-left-color: var(--neg); }
.finding-card.sev-high { border-left-color: var(--warn); }
.finding-card.sev-medium { border-left-color: var(--warn); }
.finding-card.sev-low { border-left-color: var(--text-secondary); }
.finding-card.sev-info, .finding-card.neutral { border-left-color: var(--hairline-strong); }

.finding-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.finding-item-title {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.sev-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  height: 20px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
}

.sev-badge.sev-critical {
  background-color: var(--neg-tint);
  color: var(--neg);
  border: 1px solid var(--neg-line);
}

.sev-badge.sev-high, .sev-badge.sev-medium {
  background-color: var(--warn-tint);
  color: var(--warn);
  border: 1px solid var(--warn-line);
}

.sev-badge.sev-low, .sev-badge.sev-info {
  background-color: var(--bg-raised);
  color: var(--text-muted);
  border: 1px solid var(--hairline);
}

.finding-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.finding-evidence-box {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  margin: 12px 0 0;
  padding: 8px 12px;
  background-color: var(--bg-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
}

.finding-evidence-box code {
  color: var(--text-primary);
  background-color: var(--bg-raised);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Remediation Drawer */
.finding-actions {
  margin-top: 16px;
}

.btn-toggle-fix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background-color: var(--bg-raised);
  color: var(--text-primary);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.btn-toggle-fix:hover {
  border-color: var(--hairline-strong);
}

.btn-toggle-fix.active {
  background-color: var(--bg-deep);
  color: var(--text-secondary);
}

.remediation-drawer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.remediation-guide h3, .remediation-guide h4 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 12px 0 8px;
}

.remediation-guide h4:first-child {
  margin-top: 0;
}

.remediation-guide p, .remediation-guide li {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.remediation-guide ul, .remediation-guide ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

.remediation-guide code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  background-color: var(--bg-raised);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
}

.remediation-prompt-block {
  margin-top: 16px;
  background-color: var(--bg-deep);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prompt-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 12px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--hairline);
}

.prompt-block-title {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}

.btn-copy-prompt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  background-color: var(--text-primary);
  color: var(--bg-page);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.btn-copy-prompt:hover {
  background-color: #ffffff;
}

.btn-copy-prompt.copied {
  background-color: var(--pos);
  color: var(--bg-page);
}

.prompt-block-code {
  margin: 0;
  padding: 16px;
  color: var(--text-primary);
  font-size: 12px;
  line-height: 20px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
}

/* Empty State */
.empty-findings-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--pos-line);
  border-radius: var(--radius-md);
}

.empty-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background-color: var(--pos-tint);
  color: var(--pos);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.empty-text {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

/* --- Architectural Content Sections ------------------------------------ */

.content-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 32px;
  border-top: 1px solid var(--hairline);
}

.section-header {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-title {
  font-size: 28px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.section-subtitle {
  font-size: 15px;
  line-height: 24px;
  color: var(--text-secondary);
  margin: 0;
}

/* Checks Ledger (2-column hairline matrix, no decorative icon boxes) */
.checks-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.ledger-cell {
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  background-color: var(--bg-page);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background-color var(--dur-fast) var(--ease);
}

.ledger-cell:hover {
  background-color: var(--bg-card);
}

.ledger-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 12px;
}

.ledger-index {
  color: var(--text-muted);
}

.ledger-sig {
  color: var(--text-muted);
  background-color: var(--bg-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.ledger-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
  margin: 0;
}

/* Workflow 3-Step Rail */
.workflow-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  overflow: hidden;
}

.workflow-step {
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  border-right: 1px solid var(--hairline);
}

.workflow-step:last-child {
  border-right: none;
}

.workflow-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.workflow-num {
  color: var(--text-primary);
  font-weight: 500;
}

.workflow-trace {
  color: var(--text-muted);
}

.workflow-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.workflow-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
  margin: 0;
}

/* FAQ Hairline List */
.faq-list {
  max-width: 760px;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-q {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--text-primary);
}

.faq-content {
  padding: 0 0 20px;
}

.faq-a {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 680px;
}

/* --- Footer ------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--hairline);
  background-color: var(--bg-deep);
  padding: 48px 32px 32px;
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
}

.footer-disclaimers {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  margin: 0;
}

.footer-trademarks {
  font-size: 11px;
  line-height: 16px;
  color: var(--text-muted);
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.footer-version {
  font-size: 12px;
  line-height: 16px;
}

/* Global visible focus indicator for keyboard navigation (WCAG 2.1 AA) */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Ownership attestation & Terms clickwrap */
.attest-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-secondary);
  cursor: pointer;
}

.attest-row input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.inline-legal-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* AI disclosure badge inside remediation drawer (EU AI Act Art. 50) */
.ai-disclosure-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-deep);
  color: var(--text-secondary);
}

/* Studio swatches without inline style attribute (strict CSP compatible) */
.swatch-blueprint {
  background-color: #facc15;
  border-color: #061326;
}

.swatch-orbital {
  background-color: #00f0ff;
  border-color: #03090c;
}

/* Footer legal links */
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  line-height: 16px;
}

.footer-legal-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Legal & compliance static document pages */
.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 20px;
  font-size: 13px;
}

.legal-draft-banner {
  padding: 12px 16px;
  margin-bottom: 24px;
  border: 1px solid var(--warn-line);
  background-color: var(--warn-tint);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 20px;
}

.legal-doc h1 {
  font-size: 32px;
  line-height: 38px;
  margin: 0 0 12px;
}

.legal-doc h2 {
  font-size: 20px;
  line-height: 26px;
  margin: 28px 0 10px;
}

.legal-doc p,
.legal-doc li {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-secondary);
}

.legal-doc ul {
  padding-left: 20px;
}

/* --- Responsive Adjustments ------------------------------------------- */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .checks-ledger {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-step {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }

  .workflow-step:last-child {
    border-bottom: none;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .nav-container {
    padding: 0 20px;
  }

  .nav-menu {
    display: none;
  }

  .hero-section {
    padding: 48px 20px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .inspector-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary-inspect {
    width: 100%;
  }

  .telemetry-section,
  .results-section {
    padding: 0 20px;
  }

  .content-section {
    padding: 48px 20px;
  }

  .site-footer {
    padding: 32px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =========================================================================
   BRAND & DESIGN STUDIO SWITCHER + 4 EXTRA COMPLETE BRAND EDITIONS
   ========================================================================= */

.brand-edition-tag {
  font-size: 11px;
  line-height: 16px;
  padding: 1px 6px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background-color: var(--bg-deep);
  letter-spacing: 0.04em;
}

.site-footer {
  padding-bottom: 32px;
}

.brand-studio {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: #0d1017;
  color: #eef0f5;
  border-bottom: 2px solid #f59e0b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  padding: 8px 32px 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.studio-inner {
  max-width: 1200px;
  margin: 0 auto;
}

body:has(#brand-studio) .top-nav {
  position: relative;
}

.studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 8px;
}

.studio-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.studio-badge {
  font-size: 11px;
  line-height: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.studio-note {
  font-size: 12px;
  line-height: 16px;
  color: #a3a9b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-toggle {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: #161b26;
  color: #eef0f5;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.studio-toggle:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.brand-studio.collapsed .studio-head {
  padding-bottom: 2px;
}

.brand-studio.collapsed .studio-options {
  display: none;
}

.studio-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.studio-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background-color: #151923;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #a3a9b8;
  font-size: 13px;
  line-height: 18px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.studio-btn-wow {
  border-color: rgba(0, 240, 255, 0.25);
  background: linear-gradient(120deg, #151923 0%, #11242d 50%, #151923 100%);
  background-size: 200% 100%;
  animation: wowShimmer 4.5s linear infinite;
}

.studio-wow-pill {
  margin-left: auto;
  font-size: 10px;
  line-height: 14px;
  padding: 1px 6px;
  border-radius: 3px;
  background-color: rgba(250, 204, 21, 0.14);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.35);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.studio-btn-wow[data-edition="orbital"] .studio-wow-pill {
  background-color: rgba(0, 240, 255, 0.14);
  color: #38f6ff;
  border-color: rgba(0, 240, 255, 0.42);
}

@keyframes wowShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.studio-btn:hover {
  background-color: #1c2230;
  border-color: rgba(255, 255, 255, 0.24);
  color: #eef0f5;
}

.studio-btn.active {
  background-color: #212838;
  border-color: #f59e0b;
  color: #ffffff;
  font-weight: 500;
}

.studio-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.studio-num {
  font-size: 11px;
  color: #939bb0;
  flex-shrink: 0;
}

.studio-btn.active .studio-num {
  color: #f59e0b;
}

.studio-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   EDITION 01: BLUEPRINT LAB (Prussian CAD Grid + Signal Yellow)
   ------------------------------------------------------------------------- */

html[data-edition="blueprint"] {
  color-scheme: dark;
  --font-sans: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg-deep: #040d1b;
  --bg-page: #061326;
  --bg-card: #0a1c38;
  --bg-raised: #112a52;
  --hairline: rgba(147, 197, 253, 0.22);
  --hairline-strong: rgba(147, 197, 253, 0.45);
  --text-primary: #f0f7ff;
  --text-secondary: #b9d6fc;
  --text-muted: #8eb5ea;
  --accent: #facc15;
  --pos: #34d399;
  --pos-tint: rgba(52, 211, 153, 0.12);
  --pos-line: rgba(52, 211, 153, 0.38);
  --warn: #facc15;
  --warn-tint: rgba(250, 204, 21, 0.12);
  --warn-line: rgba(250, 204, 21, 0.38);
  --neg: #ff8599;
  --neg-tint: rgba(251, 113, 133, 0.14);
  --neg-line: rgba(251, 113, 133, 0.42);
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
}

html[data-edition="blueprint"] body {
  background-color: var(--bg-page);
  background-image:
    linear-gradient(to right, rgba(147, 197, 253, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(147, 197, 253, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

html[data-edition="blueprint"] .top-nav {
  background-color: rgba(6, 19, 38, 0.94);
  border-bottom: 1px dashed var(--hairline-strong);
}

html[data-edition="blueprint"] .brand-edition-tag {
  color: var(--accent);
  border-color: var(--warn-line);
  background-color: var(--warn-tint);
}

html[data-edition="blueprint"] .inspection-sheet,
html[data-edition="blueprint"] .verdict-card,
html[data-edition="blueprint"] .workflow-rail {
  border-style: dashed;
}

html[data-edition="blueprint"] .ledger-cell {
  background-color: rgba(10, 28, 56, 0.72);
  border-right-style: dashed;
  border-bottom-style: dashed;
}

html[data-edition="blueprint"] .ledger-cell:hover {
  background-color: rgba(17, 42, 82, 0.9);
}

html[data-edition="blueprint"] .btn-primary-inspect,
html[data-edition="blueprint"] .btn-copy-prompt {
  background-color: var(--accent);
  color: #040d1b;
  font-weight: 600;
  box-shadow: none;
}

html[data-edition="blueprint"] .btn-primary-inspect:hover:not(:disabled),
html[data-edition="blueprint"] .btn-copy-prompt:hover {
  background-color: #fde047;
}

html[data-edition="blueprint"] .btn-copy-prompt.copied {
  background-color: var(--pos);
  color: #040d1b;
}

/* =========================================================================
   MOTION STAGE, MARQUEE, HUD & EDITION 02: ORBITAL LiDAR (3D + MOBILE READY)
   ========================================================================= */

.motion-stage,
.motion-marquee,
.motion-hud-bar,
.sheet-laser-beam {
  display: none;
}

html[data-edition="orbital"] .site-wrapper {
  position: relative;
  isolation: isolate;
}

html[data-edition="orbital"] .motion-stage {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.motion-bg-video,
.motion-stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.motion-bg-video {
  opacity: 0.92;
}

.motion-stage-canvas {
  opacity: 0.98;
}

.motion-vignette,
.motion-scanline-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* View Transitions API smooth crossfade between Blueprint Lab & Orbital LiDAR */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 360ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Kinetic Marquee Ticker Strip */
html[data-edition="orbital"] .motion-marquee {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  height: 32px;
  border-bottom: 1px solid var(--hairline-strong);
  user-select: none;
  background-color: rgba(0, 240, 255, 0.06);
  color: var(--accent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  padding-right: 20px;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  will-change: transform;
  animation: marqueeScroll 32s linear infinite;
}

.motion-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-sep {
  opacity: 0.55;
}

html[data-edition="orbital"] .hero-preview-col {
  position: relative;
  perspective: 1200px;
}

/* Interactive Telemetry HUD Bar */
html[data-edition="orbital"] .motion-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background-color: var(--bg-deep);
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hud-rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: recBlink 1.3s ease-in-out infinite;
  flex-shrink: 0;
}

.hud-mode-label {
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hud-timecode {
  color: var(--text-muted);
  white-space: nowrap;
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-btn {
  height: 26px;
  padding: 0 10px;
  background-color: var(--bg-raised);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.hud-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hud-btn:active {
  transform: scale(0.96);
}

.hud-btn-pulse {
  background-color: var(--accent);
  color: #03090c;
  border-color: var(--accent);
  font-weight: 600;
}

.hud-btn-pulse:hover {
  color: #03090c;
  filter: brightness(1.12);
}

/* Synchronized Laser Beam & 3D Tilt on Inspection Sheet */
html[data-edition="orbital"] .inspection-sheet {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease, border-color 260ms ease;
  will-change: transform;
  border: 1px solid var(--accent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 42px rgba(0, 240, 255, 0.14), inset 0 0 24px rgba(0, 240, 255, 0.05);
}

html[data-edition="orbital"] .inspection-sheet::before,
html[data-edition="orbital"] .inspection-sheet::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 9;
}

html[data-edition="orbital"] .inspection-sheet::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
}

html[data-edition="orbital"] .inspection-sheet::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}

html[data-edition="orbital"] .sheet-laser-beam {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  height: 54px;
  pointer-events: none;
  z-index: 6;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 240, 255, 0.06) 55%,
    rgba(0, 240, 255, 0.42) 96%,
    #00f0ff 100%
  );
  border-bottom: 1.5px solid var(--accent);
  animation: laserSweep 4.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  opacity: 0.72;
}

html[data-edition="orbital"] .inspection-sheet.pulse-active {
  animation: pulseShockwave 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-edition="orbital"] .inspection-sheet.pulse-active .sheet-laser-beam {
  animation-duration: 0.7s;
  opacity: 1;
}

html.motion-paused .marquee-track,
html.motion-paused .sheet-laser-beam,
html.motion-paused .hud-rec-dot {
  animation-play-state: paused !important;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes laserSweep {
  0% { transform: translateY(-10%); opacity: 0; }
  12% { opacity: 0.78; }
  85% { opacity: 0.78; }
  100% { transform: translateY(820%); opacity: 0; }
}

@keyframes recBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.75); }
}

@keyframes pulseShockwave {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.65);
    transform: scale(1);
  }
  40% {
    box-shadow: 0 0 0 22px rgba(0, 240, 255, 0);
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    transform: scale(1);
  }
}

@keyframes editionEnter {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

html[data-edition="orbital"] .hero-copy-col {
  animation: editionEnter 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Orbital LiDAR Theme Tokens (WCAG AA >= 4.5:1 contrast) */
html[data-edition="orbital"] {
  color-scheme: dark;
  --font-sans: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;
  --bg-deep: rgba(3, 12, 16, 0.86);
  --bg-page: #03090c;
  --bg-card: rgba(6, 20, 26, 0.78);
  --bg-raised: rgba(11, 34, 44, 0.88);
  --hairline: rgba(0, 240, 255, 0.20);
  --hairline-strong: rgba(0, 240, 255, 0.45);
  --text-primary: #e4fbff;
  --text-secondary: #a2d8e2;
  --text-muted: #78aeb9;
  --accent: #00f0ff;
  --pos: #00f59b;
  --pos-tint: rgba(0, 245, 155, 0.12);
  --pos-line: rgba(0, 245, 155, 0.42);
  --warn: #facc15;
  --warn-tint: rgba(250, 204, 21, 0.12);
  --warn-line: rgba(250, 204, 21, 0.42);
  --neg: #ff5c85;
  --neg-tint: rgba(255, 42, 95, 0.14);
  --neg-line: rgba(255, 42, 95, 0.48);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 4px;
}

html[data-edition="orbital"] body {
  background-color: #03090c;
}

html[data-edition="orbital"] .motion-vignette {
  background:
    radial-gradient(circle at 75% 38%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 45%, rgba(2, 7, 10, 0.86) 100%);
}

html[data-edition="orbital"] .top-nav {
  background-color: rgba(3, 9, 12, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-strong);
}

html[data-edition="orbital"] .brand-edition-tag {
  background-color: rgba(0, 240, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

html[data-edition="orbital"] .hero-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 0 32px rgba(0, 240, 255, 0.24);
}

html[data-edition="orbital"] .btn-primary-inspect,
html[data-edition="orbital"] .btn-copy-prompt {
  background-color: var(--accent);
  color: #03090c;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.42);
}

html[data-edition="orbital"] .btn-primary-inspect:hover:not(:disabled),
html[data-edition="orbital"] .btn-copy-prompt:hover {
  background-color: #67f8ff;
  box-shadow: 0 0 36px rgba(0, 240, 255, 0.65);
}

html[data-edition="orbital"] .checks-ledger {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border: none;
}

@media (max-width: 960px) {
  html[data-edition="orbital"] .checks-ledger {
    grid-template-columns: minmax(0, 1fr);
  }
}

html[data-edition="orbital"] .ledger-cell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  border-top: 2px solid var(--accent);
  background-color: rgba(6, 20, 26, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, background-color 220ms ease, box-shadow 240ms ease;
}

html[data-edition="orbital"] .ledger-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 240, 255, 0.12),
    transparent 70%
  );
}

html[data-edition="orbital"] .ledger-cell:hover::after {
  opacity: 1;
}

html[data-edition="orbital"] .ledger-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 240, 255, 0.18);
  border-color: #67f8ff;
}

html[data-edition="orbital"] .ledger-index,
html[data-edition="orbital"] .workflow-num {
  color: var(--accent);
}

/* =========================================================================
   COMPREHENSIVE MOBILE PHONE ADAPTATION (320px - 768px + Touch Devices)
   ========================================================================= */

@media (hover: none), (pointer: coarse) {
  html[data-edition="orbital"] .inspection-sheet {
    transform: none !important;
  }
  html[data-edition="orbital"] .ledger-cell:hover {
    transform: none;
  }
  html[data-edition="orbital"] .ledger-cell::after {
    display: none;
  }
}

@media (max-width: 780px) {
  .studio-note {
    display: none;
  }
}

@media (max-width: 680px) {
  .brand-studio {
    padding: 8px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-right));
  }

  .studio-head {
    padding: 0 0 6px;
  }

  .studio-badge {
    font-size: 10px;
    padding: 2px 5px;
  }

  .studio-btn {
    height: 36px;
    padding: 0 8px;
    font-size: 12px;
    gap: 6px;
  }

  .nav-container {
    height: auto;
    min-height: 52px;
    padding: 8px max(16px, env(safe-area-inset-left)) 8px max(16px, env(safe-area-inset-right));
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav-actions {
    gap: 8px;
  }

  .btn-secondary-nav {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    gap: 6px;
  }

  .lang-switch {
    height: 32px;
  }

  .hero-section {
    padding: 28px max(16px, env(safe-area-inset-left)) 40px max(16px, env(safe-area-inset-right));
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-title {
    font-size: 28px;
    line-height: 33px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 20px;
  }

  /* 16px prevents iOS Safari zoom on input focus */
  #url-input {
    font-size: 16px;
  }

  .inspector-field-shell {
    height: 48px;
    padding: 0 12px;
  }

  .btn-primary-inspect {
    height: 48px;
    font-size: 15px;
  }

  /* Wrap sample chips cleanly inside viewport without horizontal overflow */
  .samples-bar {
    flex-wrap: wrap;
    overflow: hidden;
    gap: 6px;
    margin-top: 10px;
    max-width: 100%;
  }

  .samples-title {
    flex-shrink: 0;
    width: 100%;
  }

  .chip-sample {
    max-width: 100%;
    height: auto;
    min-height: 30px;
    padding: 4px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sheet-header {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .sheet-header-left {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .sheet-mode {
    white-space: normal;
  }

  .sheet-summary-row {
    padding: 12px 14px;
    gap: 8px;
  }

  .sheet-coverage {
    margin-left: 0;
  }

  .trace-list {
    padding: 10px 14px;
  }

  .trace-row {
    padding: 10px 12px;
  }

  .trace-path-line {
    grid-template-columns: 30px minmax(0, 1fr) auto auto;
    gap: 6px;
    font-size: 11px;
  }

  .trace-detail {
    padding-left: 0;
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 18px;
  }

  .sheet-prompt-preview,
  .sheet-footer {
    padding: 12px 14px;
  }

  .sheet-prompt-code {
    overflow-wrap: anywhere;
  }

  .tech-bar {
    padding-top: 12px;
    gap: 6px;
  }

  .telemetry-section,
  .results-section {
    padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
  }

  .content-section {
    padding: 40px max(16px, env(safe-area-inset-left)) 40px max(16px, env(safe-area-inset-right));
  }

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

  .section-title {
    font-size: 24px;
    line-height: 28px;
  }

  .ledger-cell,
  .workflow-step {
    padding: 18px 16px;
  }

  .verdict-card,
  .finding-card {
    padding: 16px;
  }

  .site-footer {
    padding: 28px max(16px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  }

  /* Blueprint Lab scaled grid on mobile */
  html[data-edition="blueprint"] body {
    background-size: 24px 24px;
  }

  /* Orbital LiDAR phone backdrop positioning */
  html[data-edition="orbital"] .motion-vignette {
    background:
      radial-gradient(circle at 50% 28%, rgba(0, 240, 255, 0.09) 0%, transparent 52%),
      radial-gradient(ellipse 100% 90% at 50% 45%, transparent 35%, rgba(2, 7, 10, 0.90) 100%);
  }

  html[data-edition="orbital"] .marquee-track {
    font-size: 10px;
    animation-duration: 24s;
  }
}

@media (max-width: 560px) {
  html[data-edition="orbital"] .motion-hud-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }

  .hud-left {
    justify-content: space-between;
    width: 100%;
  }

  .hud-controls {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 8px;
    width: 100%;
  }

  .hud-btn {
    height: 36px;
    font-size: 11px;
    text-align: center;
  }

  .btn-sheet-open,
  .btn-toggle-fix,
  .btn-copy-prompt {
    height: 40px;
    width: 100%;
    justify-content: center;
  }

  .prompt-block-header {
    height: auto;
    padding: 8px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 15px;
  }
}

@media (max-width: 400px) {
  #demo-report-btn svg {
    display: none;
  }

  .hud-mode-label {
    font-size: 10px;
  }

  .hud-timecode {
    font-size: 10px;
  }
}

/* Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .sheet-laser-beam,
  .hud-rec-dot,
  .studio-btn-wow {
    animation: none !important;
  }
}
