/* Pfizer Values Day — design tokens and base styles.
   Colours and type extracted from Values-Day-Game-Journey-v3.pdf. */

@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url('/assets/fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('/assets/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url('/assets/fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url('/assets/fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url('/assets/fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 700; font-display: swap; src: url('/assets/fonts/hanken-grotesk-latin-700-normal.woff2') format('woff2'); }

:root {
  --blue: #0f1fd0;
  --blue-press: #0b17a3;
  --blue-soft: #e2e7ff;
  --blue-mid: #8e97e8;
  --navy: #0b1033;
  --text: #0b1033;
  --muted: #565d87;
  --muted-2: #8b93c9;
  --bg: #f4f6ff;
  --surface: #ffffff;
  --surface-dim: #f8f9ff;
  --border: #c9cff0;
  --line: #d9def7;
  --success: #0b5a39;
  --success-strong: #13804f;
  --success-bg: #dff3e7;
  --danger: #8a1b15;
  --danger-strong: #b3261e;
  --danger-bg: #fbe4e2;
  --focus: #0f1fd0;
  --disabled: #b9bfdf;

  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 51, 0.04), 0 2px 8px rgba(11, 16, 51, 0.04);
  --shadow-md: 0 6px 24px rgba(15, 31, 208, 0.10);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 140ms;
  --t-med: 280ms;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

.eyebrow { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* Loading */
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--blue-soft); border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}
.loading { display: grid; place-items: center; gap: 14px; padding: 48px 16px; color: var(--muted); text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Motion primitives (all disabled under prefers-reduced-motion below) */
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(0.96); } 60% { transform: scale(1.015); } 100% { transform: scale(1); } }
@keyframes pulse-soft { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.enter { animation: fade-up var(--t-med) var(--ease) both; }
.enter-1 { animation-delay: 40ms; }
.enter-2 { animation-delay: 80ms; }
.enter-3 { animation-delay: 120ms; }
.enter-4 { animation-delay: 160ms; }
.enter-5 { animation-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .spinner { animation: spin 1.6s linear infinite !important; }
}
