/* ============================================================
   Unclaimed Stimulus — shared site styles
   Loaded after the Tailwind CDN on every page.
   ============================================================ */

*, *::before, *::after {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

/* ---- Type scale ---- */
.type-display {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.type-heading {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.type-body { font-size: 1rem; font-weight: 400; line-height: 1.65; }
.type-body-medium { font-size: 1rem; font-weight: 500; line-height: 1.6; }

.type-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- Background grid ---- */
.bg-flat-grid {
  background-color: #FFFFFF;
  background-image:
    linear-gradient(to right, #F1F5F9 1px, transparent 1px),
    linear-gradient(to bottom, #F1F5F9 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ---- Entrance animation ---- */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }

/* ---- Cards ---- */
.flat-card {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.flat-card:hover {
  border-color: #0A3161;
  background-color: #FFFFFF;
  transform: translateY(-2px);
}

/* ---- Header ---- */
.site-nav a[aria-current="page"] {
  color: #0A3161;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 0 #B31942;
}

/* ---- Wordmark logo ---- */
.brand-wordmark {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
}
.brand-wordmark .wm-1 { color: #0A3161; }
.brand-wordmark .wm-2 { color: #B31942; margin-left: 0.22em; }
.brand-wordmark--header { font-size: 1.05rem; }
.brand-wordmark--footer { font-size: 0.85rem; }

/* ---- Hero background video ---- */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

/* ---- FAQ accordions ---- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-chevron { transform: rotate(180deg); }

/* ---- Newsletter modal ---- */
.nl-dialog {
  border: 0;
  padding: 0;
  width: min(440px, calc(100vw - 32px));
  max-width: 440px;
  border-radius: 18px;
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 24px 70px rgba(7, 34, 71, 0.35);
  overflow: visible;
}

.nl-dialog::backdrop {
  background: rgba(7, 34, 71, 0.55);
}

.nl-dialog[open] {
  animation: nlIn 0.22s ease-out;
}

@keyframes nlIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nl-inner { position: relative; padding: 28px; }

.nl-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #475569;
  font-size: 1.25rem;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nl-close:hover { background: #F1F5F9; color: #0A3161; }

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .animate-fade-up { animation: none; opacity: 1; }
  .nl-dialog[open] { animation: none; }
  html { scroll-behavior: auto; }
}
