/* AuthDuty — Base Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
}

/* Display / heading font */
.font-display {
  font-family: 'Inter', sans-serif;
}

/* ===== Hero staggered fade-in ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-badge    { animation: fadeUp 0.6s ease-out both; animation-delay: 0.1s; }
  .hero-h1       { animation: fadeUp 0.6s ease-out both; animation-delay: 0.2s; }
  .hero-subtitle { animation: fadeUp 0.6s ease-out both; animation-delay: 0.3s; }
  .hero-ctas     { animation: fadeUp 0.6s ease-out both; animation-delay: 0.4s; }
  .hero-image    { animation: fadeUp 0.8s ease-out both; animation-delay: 0.5s; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== View Transitions (HTMX page swaps) ===== */
@view-transition {
  navigation: auto;
}

::view-transition-old(main-content) {
  animation: fadeOut 0.15s ease-out;
}
::view-transition-new(main-content) {
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }

/* ===== Focus visible (a11y) ===== */
:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
  border-radius: 4px;
}
