@charset "UTF-8";

/* ==============================================
   Sudoku Prime - Custom Styles
   ============================================== */
html{
	scroll-behavior:smooth;
}

/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: #0c4a6e;
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---- Base ---- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Mobile Menu Open — Header Background ---- */
header:has(#mobile-menu.flex) {
  background-color: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}

/* ---- lite-youtube-embed overrides ---- */
lite-youtube {
  border-radius: 1rem;
}

/* ---- Focus Visible ---- */
:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Scrollbar (webkit) ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ---- List Reset (nav / feature list) ---- */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- Stats Description List ---- */
.stats-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- Phone Mockup Hover ---- */
.phone-mockup-wrapper {
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Animations ---- */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.3;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  .animate-pulse-slow {
    animation: none;
  }

  .phone-mockup-wrapper {
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
