:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 4% 8%, rgba(161, 211, 255, 0.28), transparent 24rem),
    radial-gradient(circle at 95% 20%, rgba(255, 210, 139, 0.28), transparent 22rem),
    #f8fafc;
}

button,
a,
input,
textarea,
select,
summary {
  outline-color: #356a9f;
  outline-offset: 3px;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

#site-header nav {
  scrollbar-width: none;
}

#site-header nav::-webkit-scrollbar {
  display: none;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  border-radius: 0.55rem;
  background: #17324d;
  color: white;
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.surface {
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 45px rgba(43, 73, 102, 0.08);
}

.lift {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.lift:hover,
.lift:focus-within {
  transform: translateY(-3px);
  border-color: rgba(63, 120, 181, 0.42);
  box-shadow: 0 20px 50px rgba(43, 73, 102, 0.13);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.76)),
    linear-gradient(#dbeafe 1px, transparent 1px),
    linear-gradient(90deg, #dbeafe 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.score-ring {
  display: grid;
  width: 5.1rem;
  height: 5.1rem;
  place-items: center;
  border-radius: 9999px;
  background: conic-gradient(var(--ring-color, #356a9f) calc(var(--score) * 1%), #e5e7eb 0);
  position: relative;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 0.42rem;
  border-radius: inherit;
  background: white;
}

.score-ring > span {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 1.25rem;
}

[data-tip] {
  cursor: help;
  position: relative;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 80;
  left: 50%;
  bottom: calc(100% + 0.65rem);
  width: max-content;
  max-width: min(18rem, 80vw);
  transform: translate(-50%, 0.3rem);
  border-radius: 0.55rem;
  background: #17324d;
  color: white;
  padding: 0.55rem 0.7rem;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(23, 50, 77, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 140ms ease;
}

[data-tip]:hover::after,
[data-tip]:focus::after,
[data-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  max-width: calc(100vw - 2rem);
  border-radius: 0.7rem;
  background: #17324d;
  color: white;
  padding: 0.8rem 1rem;
  box-shadow: 0 15px 40px rgba(23, 50, 77, 0.3);
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-shell {
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(46rem, calc(100vh - 2rem));
  border: 0;
  border-radius: 0.9rem;
  padding: 0;
  color: #17324d;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
}

.modal-shell::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.bar-grow {
  animation: grow 650ms ease-out both;
  transform-origin: left;
}

.pulse-dot {
  animation: pulse-dot 1s ease-in-out infinite;
}

.fade-in {
  animation: fade-in 240ms ease-out both;
}

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  color: #64748b;
}

details[open] > summary::after {
  content: "−";
}

@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(0.35rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  [data-tip]::after {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    max-width: none;
    transform: translateY(0.5rem);
  }

  [data-tip]:hover::after,
  [data-tip]:focus::after,
  [data-tip]:focus-visible::after {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
