/* OpenForBots visual system — professional diagnostic product */
:root {
  --color-page: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-subtle: #eef2f7;
  --color-surface-muted: #e7ecf3;
  --color-ink: #111827;
  --color-ink-raised: #182235;
  --color-ink-soft: #263247;
  --color-panel-border: #d8e0eb;
  --color-panel-border-strong: #b9c4d3;
  --color-paper: #ffffff;
  --color-signal-amber: #b96f0b;
  --color-signal-amber-soft: #fff4dd;
  --color-pass: #147a5a;
  --color-pass-soft: #e7f5ef;
  --color-block: #c94639;
  --color-block-soft: #fff0ee;
  --color-review: #8b5d16;
  --color-review-soft: #fff5df;
  --color-text-onink: #111827;
  --color-text-onink-muted: #5d687a;
  --color-text-onpaper: #111827;
  --color-text-inverse: #f8fafc;
  --color-text-inverse-muted: #b9c4d3;
  --color-evidence-observed: #2468b4;
  --color-evidence-documented: #6252b8;
  --color-evidence-simulated: #3575b9;
  --color-evidence-heuristic: #8b641e;
  --color-evidence-inferred: #626c7d;
  --color-evidence-manual: #68758a;

  --font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --type-scale-hero: clamp(3rem, 5.2vw, 4.75rem);
  --type-scale-page-title: clamp(2.35rem, 4vw, 3.55rem);
  --type-scale-h1: clamp(1.9rem, 2.7vw, 2.6rem);
  --type-scale-h2: clamp(1.35rem, 1.8vw, 1.75rem);
  --type-scale-h3: 1.125rem;
  --type-scale-body: 1rem;
  --type-scale-lead: clamp(1.08rem, 1.3vw, 1.25rem);
  --type-scale-small: 0.875rem;
  --type-scale-caption: 0.75rem;
  --line-height-heading: 1.08;
  --line-height-body: 1.68;
  --tracking-heading: -0.035em;
  --tracking-label: 0.075em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-card: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --border-hairline: 1px solid var(--color-panel-border);
  --shadow-card: 0 1px 2px rgba(17, 24, 39, 0.04), 0 16px 40px rgba(17, 24, 39, 0.07);
  --shadow-card-hover: 0 2px 4px rgba(17, 24, 39, 0.05), 0 22px 56px rgba(17, 24, 39, 0.1);
  --shadow-popover: 0 18px 50px rgba(17, 24, 39, 0.16);
  --focus-ring-color: #d68a19;
  --focus-ring: 0 0 0 3px rgba(214, 138, 25, 0.28);

  --container-narrow: 760px;
  --container-default: 1080px;
  --container-wide: 1220px;
  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --control-height-sm: 32px;
  --control-height-md: 42px;
  --control-height-lg: 52px;
  --control-padding-x: 18px;

  --motion-duration-fast: 120ms;
  --motion-duration-default: 200ms;
  --motion-duration-slow: 360ms;
  --motion-easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);

  /* Retained for future report UI; the homepage uses restrained status rows. */
  --flap-cell-bg: var(--color-ink-raised);
  --flap-cell-seam: #0d1525;
  --flap-cell-gap: 3px;
  --flap-cell-radius: 5px;
  --flap-cell-perspective: 600px;
  --flap-flip-duration: 180ms;
  --flap-flip-easing: cubic-bezier(0.5, 0, 0.5, 1);
  --flap-resolved-open: var(--color-pass);
  --flap-resolved-blocked: var(--color-block);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-duration-fast: 0ms;
    --motion-duration-default: 0ms;
    --motion-duration-slow: 0ms;
    --flap-flip-duration: 0ms;
  }
}
