/* ==========================================================================
   Aksara Institute, template demo
   Palet: hutan, krem, emas. Tidak ada merah.
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background-color: #f7f3ea;
  color: #14231f;
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background-color: #1e3d33;
  color: #f7f3ea;
}

[x-cloak] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #1e3d33;
  outline-offset: 3px;
}

/* Motion: satu kurva, satu arah, hanya transform dan opacity. */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 750ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.word {
  opacity: 0.26;
  transition: opacity 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.word.is-visible {
  opacity: 1;
}

/* Detail accordion tanpa marker bawaan. */
summary::-webkit-details-marker {
  display: none;
}

summary {
  list-style: none;
}

.faq-icon {
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

details[open] .faq-icon {
  transform: rotate(45deg);
}

/* Swiper: navigasi manual, tanpa autoplay. */
.cerita-swiper {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.cerita-swiper .swiper-slide {
  height: auto;
}

.cerita-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #1e3d33;
  opacity: 0.2;
  transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cerita-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Teks legal. */
.legal-prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.legal-prose p,
.legal-prose li {
  color: #5f6f68;
  line-height: 1.8;
}

.legal-prose p + p {
  margin-top: 1rem;
}

.legal-prose ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-prose li + li {
  margin-top: 0.35rem;
}

.legal-prose a {
  color: #1e3d33;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sembunyikan scrollbar pada daftar horizontal. */
.no-scrollbar {
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Input bawaan tetap terbaca di semua browser. */
select,
input,
textarea {
  color: #14231f;
}

select {
  background-image: none;
}

/* Angka statistik dan harga memakai lebar digit tetap. */
.tabular {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .word {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
