/* ClaimCured design system. Shared by index.html and audit-readout-sample.html.
   Contrast notes (WCAG AA, checked):
   - ink, body, muted and accent pass 4.5:1 on white and on --band.
   - --money passes 3:1 only, so use it for large figures (24px+ bold) and check marks, never small text.
   - --accent fails on --navy, so use --accent-on-dark for links and highlights on dark bands. */

:root {
  color-scheme: light;

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Palette */
  --ink: #0f172a;
  --body: #334155;
  --muted: #5f6b7e;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --band: #F6F7F9;
  --navy: #0A1F44;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-on-dark: #93c5fd;
  --money: #0E9F6E;
  --on-dark: #ffffff;
  --on-dark-soft: rgba(255, 255, 255, 0.8);

  /* Depth */
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 16px rgba(15, 23, 42, 0.06);
  --radius: 10px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 450ms;
}

body {
  font-family: var(--font-body);
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
}

/* Buttons: hover states only, layout stays page-specific */
.btn {
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: none;
}

/* Reveal on scroll. Gated on html.js so content never hides without JavaScript.
   Uses opacity and transform only, so there is no layout shift. */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {

  html.js .reveal,
  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }
}
