/* SoFloWare — shared base styles
   Loaded BEFORE the Tailwind Play CDN so first paint is coherent (FOUC guard).
   Tailwind utility classes do the heavy lifting in the HTML; this file holds
   only base tokens, accessibility helpers, and a few things utilities can't. */

:root {
  --brand: #453F78;
  --brand-dark: #353063;
  --accent: #BF4342;
  --accent-dark: #8C1C13;
  --steel: #658E9C;
  --ink: #1a1a1f;
  --paper: #fbfbfc;
  --muted: #6b7280;
  --line: #e5e7eb;
}

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

html { scroll-behavior: smooth; }

/* FOUC guard: establish the base canvas before Tailwind compiles in-browser. */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

/* Screen-reader-only utility + skip-link reveal on focus. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.focus\:not-sr-only:focus {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  width: auto; height: auto;
  margin: 0; padding: 0.625rem 1rem;
  clip: auto; white-space: normal;
  background: var(--brand);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* Visible, consistent focus ring for keyboard users. */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: rgba(69, 63, 120, 0.18); }

/* Soft animated status dot used in hero/status pills. */
@keyframes sfw-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
.sfw-pulse { animation: sfw-pulse 2s ease-in-out infinite; }

/* Subtle hero backdrop: faint indigo glow + dotted grid. Kept here so the
   markup stays clean and it degrades gracefully without Tailwind. */
.sfw-hero {
  background:
    radial-gradient(60rem 30rem at 75% -10%, rgba(69, 63, 120, 0.10), transparent 60%),
    radial-gradient(40rem 24rem at 0% 0%, rgba(101, 142, 156, 0.10), transparent 55%);
}
.sfw-grid {
  background-image: radial-gradient(rgba(69, 63, 120, 0.10) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Card lift on hover (works with or without Tailwind transitions). */
.sfw-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.sfw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -18px rgba(26, 27, 31, 0.28);
  border-color: rgba(69, 63, 120, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sfw-pulse { animation: none; }
  .sfw-card { transition: none; }
  .sfw-card:hover { transform: none; }
}
