/* Small additions on top of Tailwind */
html {
  scroll-behavior: smooth;
}

/* Never allow sideways scrolling on small screens (clip keeps the sticky header working) */
body {
  overflow-x: clip;
}
h1, h2, h3 {
  overflow-wrap: break-word;
}

/* Scroll reveal (only hides content when JS is running) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Subtle grid pattern for dark sections */
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* FAQ chevron rotation */
details[open] .faq-icon {
  transform: rotate(45deg);
}
details summary::-webkit-details-marker {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
