/* ==========================================================================
   Rindu Pustaka: gaya halaman buku
   Dipakai bersama oleh halaman rezeki, parenting, dan pasangan.
   Urutan: token > dasar > komponen umum > tiap bagian halaman (atas ke bawah)
   ========================================================================== */

/* 1. Token: warna, huruf, ukuran yang dipakai berulang ------------------- */
:root {
  --hijau: #1F3B2D;          /* hijau pustaka, warna utama */
  --hijau-hover: #284A39;
  --emas: #E2BC72;           /* tombol emas di area gelap */
  --emas-hover: #EBCB8C;
  --emas-tua: #8A6324;       /* teks dan ikon emas di area terang */
  --emas-angka: #B0843A;     /* angka bab */
  --tinta: #1D2420;          /* teks utama */
  --teks-2: #4E5148;         /* teks pendukung */
  --teks-3: #5B5E55;
  --teks-4: #6B6459;         /* keterangan kecil */
  --krem: #FBF1DD;
  --garis: #EFE6D3;
  --merah: #A3402E;          /* pesan salah isi form */

  --huruf-judul: 'Instrument Serif', Georgia, serif;
  --huruf-isi: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --huruf-arab: 'Amiri', 'Traditional Arabic', serif;

  --lebar-isi: 520px;        /* lebar maksimal kolom isi di layar besar */
}

/* 2. Dasar ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #13231A;       /* sama dengan tanah paling bawah di footer */
  color: var(--tinta);
  font-family: var(--huruf-isi);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--emas-tua); outline-offset: 2px; }
.hero :focus-visible,
.cerita :focus-visible,
.kaki :focus-visible,
.bar-beli :focus-visible { outline-color: var(--emas); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 3. Komponen umum -------------------------------------------------------- */

/* Kolom isi di tengah: penuh di HP (sisa 24px kiri-kanan), maksimal 520px */
.wadah { width: min(100% - 48px, var(--lebar-isi)); margin-inline: auto; }

.judul-bagian {
  font-family: var(--huruf-judul);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.12;
  text-wrap: balance;
}

.teks-pengantar { font-size: 15.5px; line-height: 1.6; color: var(--teks-2); }

.tombol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}

.tombol--emas {
  height: 52px;
  padding: 0 30px;
  background: var(--emas);
  color: #16271D;
  font-size: 16px;
  box-shadow: 0 10px 24px -10px rgba(226, 188, 114, .7);
}
.tombol--emas:hover { background: var(--emas-hover); }

.tombol--hijau {
  width: 100%;
  height: 56px;
  background: var(--hijau);
  color: var(--krem);
  font-size: 16.5px;
  font-weight: 700;
  box-shadow: 0 10px 22px -10px rgba(31, 59, 45, .6);
}
.tombol--hijau:hover { background: var(--hijau-hover); }

.tombol--lembut {
  flex: none;
  height: 44px;
  padding: 0 16px;
  background: #EEF2E8;
  color: var(--hijau);
  font-size: 14px;
}
.tombol--lembut:hover { background: #E2EADA; }

/* Baris yang bisa digeser ke samping (intip isi, testimoni) */
.geser {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: max(24px, (100% - var(--lebar-isi)) / 2);
  scroll-padding-inline: max(24px, (100% - var(--lebar-isi)) / 2);
}
.geser::-webkit-scrollbar { display: none; }
.geser > * { flex: none; scroll-snap-align: start; }

/* 4. Hero: menjelang subuh ------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 844px;
  overflow: hidden;
  color: #FBF3DC;
  /* Gradasi menempel di bawah setinggi 844px; kalau hero lebih tinggi, atasnya tetap langit gelap */
  background:
    linear-gradient(180deg, #0C1E16 0%, #10251A 24%, #17301F 42%, #2C4127 55%, #695F35 66%, #B88A48 75%, #E3B26B 81%, #F0C886 85%)
    bottom / 100% 844px no-repeat,
    #0C1E16;
}

.hero__langit {
  position: absolute;
  top: 0;
  left: 50%;
  width: 390px;
  height: 420px;
  margin-left: -195px;
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--lebar-isi) + 16px);
  height: 56px;
  margin: 16px auto 0;
  padding: 0 6px 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #FBF3DC;
  text-decoration: none;
}
.logo__nama { font-family: var(--huruf-judul); font-size: 21px; line-height: 1; }

.nav__harga {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #FBF3DC;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.nav__harga:hover { background: rgba(255, 255, 255, .16); }

.hero__isi {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.hero__judul {
  font-family: var(--huruf-judul);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.hero__sub {
  max-width: 330px;
  font-size: 15px;
  line-height: 1.55;
  color: #D2CBB3;
  text-wrap: pretty;
}

.hero__aksi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.hero__cuplikan {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: #F3E9D2;
  text-underline-offset: 4px;
  text-decoration-color: rgba(243, 233, 210, .4);
}

/* Panggung: bukit, masjid, cahaya, dan buku. Semua menempel ke bawah. */
.hero__panggung {
  position: relative;
  flex: 1;
  min-height: 330px;
  margin-top: 16px;
}

.hero__bukit-jauh { position: absolute; left: 0; bottom: 0; width: 100%; height: 164px; }
.hero__masjid { position: absolute; left: calc(50% + 76px); bottom: 150px; width: 98px; height: 69px; }
.hero__bukit-dekat { position: absolute; left: 0; bottom: 0; width: 100%; height: 124px; }

.hero__cahaya {
  position: absolute;
  left: 50%;
  bottom: 110px;
  width: 300px;
  height: 300px;
  margin-left: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 204, 132, .5) 0%, rgba(246, 204, 132, .18) 38%, rgba(246, 204, 132, 0) 66%);
}

.hero__bayangan {
  position: absolute;
  left: 50%;
  bottom: 92px;
  width: 180px;
  height: 22px;
  margin-left: -90px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 70%);
  animation: bayangan 6s ease-in-out infinite;
}

.hero__buku {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 102px;
  display: flex;
  justify-content: center;
}

/* Buku 3D: sampul depan, tebal halaman, sampul belakang */
.buku3d-wadah { perspective: 1100px; animation: melayang 6s ease-in-out infinite; }
.buku3d {
  position: relative;
  width: 138px;
  height: 196px;
  transform: rotateY(-26deg);
  transform-style: preserve-3d;
}
.buku3d__belakang {
  position: absolute;
  inset: 0;
  transform: translateZ(-7px);
  background: #0F2219;
  border-radius: 3px;
}
.buku3d__halaman {
  position: absolute;
  left: 131px;
  top: 3px;
  width: 14px;
  height: 190px;
  transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #F6E5BE 0 1px, #D9C190 1px 2px);
}
.buku3d__sampul {
  position: absolute;
  inset: 0;
  width: 138px;
  height: 196px;
  object-fit: cover;
  border-radius: 2px 4px 4px 2px;
  transform: translateZ(7px);
  box-shadow: 0 0 0 1px rgba(240, 200, 134, .4);
}
.buku3d__punggung {
  position: absolute;
  left: 0;
  top: 0;
  width: 11px;
  height: 196px;
  transform: translateZ(7.5px);
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .12) 55%, rgba(255, 255, 255, 0));
}

@keyframes melayang { 50% { transform: translateY(-4px); } }
@keyframes bayangan { 50% { transform: scaleX(.94); opacity: .85; } }

.hero__jaminan {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #D6CDB4;
}
.hero__jaminan li { display: flex; align-items: center; gap: 6px; }

/* 5. Cerita: masih gelap -------------------------------------------------- */
.cerita {
  padding: 48px 0 36px;
  background: linear-gradient(180deg, #0B1711 0%, #0F1E16 100%);
  color: #FBF3DC;
}
.cerita .wadah { display: flex; flex-direction: column; gap: 28px; }

.keluhan li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(251, 243, 220, .12);
}
.keluhan li:last-child { border-bottom: 1px solid rgba(251, 243, 220, .12); }
.keluhan p { font-size: 15.5px; line-height: 1.55; color: #E8E1CB; }

.ikon-kotak {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(226, 188, 114, .12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cerita__penutup { font-size: 16px; line-height: 1.6; }

/* 6. Matahari terbit (peralihan gelap ke terang) ------------------------- */
.fajar {
  position: relative;
  height: 256px;
  overflow: hidden;
  background: linear-gradient(180deg, #0F1E16 0%, #3A4128 26%, #C28A49 50%, #EDBE7C 68%, #F8DDAA 84%, #FBEBD0 100%);
}
.fajar__sinar {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 300px;
  height: 300px;
  margin-left: -150px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, #FFF6DE 0%, rgba(255, 230, 174, .75) 30%, rgba(248, 215, 156, 0) 100%);
}
.fajar__matahari {
  position: absolute;
  left: 50%;
  top: 144px;
  width: 68px;
  height: 68px;
  margin-left: -34px;
  border-radius: 50%;
  background: #FFF7E4;
}
.fajar__burung { position: absolute; left: 50%; top: 90px; width: 390px; height: 40px; margin-left: -195px; }
.fajar__bukit { position: absolute; left: 0; bottom: 0; width: 100%; height: 96px; }

/* 7. Rezeki lebih luas ---------------------------------------------------- */
.wawasan {
  padding: 4px 0 40px;
  background: linear-gradient(180deg, #FBEBD0 0%, #FDF3E2 100%);
}
.wawasan .wadah { display: flex; flex-direction: column; gap: 20px; }

.chip-rezeki { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chip-rezeki li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 13px 6px;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 1px 0 rgba(120, 90, 40, .08);
  font-size: 13px;
  font-weight: 600;
}

/* 8. Ayat dan rujukan ----------------------------------------------------- */
.dalil {
  padding: 4px 0 48px;
  background: linear-gradient(180deg, #FDF3E2 0%, #FFF9F0 100%);
}
.dalil .wadah { display: flex; flex-direction: column; gap: 28px; }

.kartu-ayat {
  padding: 32px 22px 24px;
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 1px 0 rgba(120, 90, 40, .06), 0 18px 40px -24px rgba(120, 90, 40, .35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.kartu-ayat__arab {
  font-family: var(--huruf-arab);
  font-size: 26px;
  line-height: 2.05;
  text-wrap: balance;
}
.kartu-ayat__arti { font-size: 15.5px; line-height: 1.6; color: #3F4239; }
.kartu-ayat figcaption { font-size: 13px; font-weight: 600; color: var(--emas-tua); }

.rujukan { display: flex; flex-direction: column; gap: 14px; }
.rujukan .judul-bagian { font-size: 28px; line-height: 1.15; }

.daftar-rujukan { margin-top: 4px; display: flex; flex-direction: column; gap: 10px; }
.daftar-rujukan li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px #F0E6D2;
}
.daftar-rujukan__ikon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F7EEDC;
  display: flex;
  align-items: center;
  justify-content: center;
}
.daftar-rujukan__kitab { display: block; font-size: 14.5px; font-weight: 600; }
.daftar-rujukan__ulama { display: block; font-size: 13px; color: var(--teks-4); }
.rujukan__tambahan { font-size: 13.5px; line-height: 1.55; color: var(--teks-3); }

/* 9. Isi ebook ------------------------------------------------------------ */
.isi { padding: 48px 0 40px; background: #FFFFFF; }
.isi__kepala { display: flex; flex-direction: column; gap: 10px; }

.daftar-bab { margin-top: 22px; }
.daftar-bab li { display: flex; gap: 16px; padding: 13px 0; border-top: 1px solid var(--garis); }
.daftar-bab li:last-child { border-bottom: 1px solid var(--garis); }
.daftar-bab__no {
  flex: none;
  width: 28px;
  font-family: var(--huruf-judul);
  font-size: 26px;
  line-height: 1;
  color: var(--emas-angka);
}
.daftar-bab__judul { display: block; font-size: 15.5px; font-weight: 600; }
.daftar-bab__ket { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--teks-3); }

.intip { margin-top: 22px; }
.intip h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.intip__geser { font-size: 12.5px; font-weight: 500; color: var(--teks-4); }
.intip .geser { gap: 14px; padding-top: 18px; padding-bottom: 18px; }

.intip__sampul {
  width: 124px;
  height: 176px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 14px 26px -16px rgba(60, 45, 15, .55);
}

/* Halaman contoh. Nanti diganti gambar halaman asli dari ebook. */
.intip__halaman {
  width: 124px;
  height: 176px;
  padding: 14px 12px;
  border-radius: 6px;
  background: #FFFDF8;
  box-shadow: inset 0 0 0 1px var(--garis), 0 14px 26px -16px rgba(60, 45, 15, .45);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.intip__bab { font-size: 10px; font-weight: 600; line-height: 1.3; color: var(--emas-tua); }
.intip__judul { margin-bottom: 4px; font-family: var(--huruf-judul); font-size: 15px; line-height: 1.15; }
.intip__garis { height: 4px; border-radius: 2px; background: #ECE4D3; }
.intip__sorot { align-self: center; width: 70%; height: 6px; margin: 4px 0; border-radius: 3px; background: #E9D3A2; }

/* 10. Cocok untuk siapa --------------------------------------------------- */
.cocok { padding: 0 0 48px; background: #FFFFFF; }
.cocok .wadah { display: flex; flex-direction: column; gap: 14px; }

.kartu-cocok { padding: 20px; border-radius: 20px; display: flex; flex-direction: column; gap: 14px; }
.kartu-cocok--ya { background: #EEF2E8; }
.kartu-cocok--tidak { background: #F6F1E8; }
.kartu-cocok .judul-bagian { font-size: 26px; line-height: 1.15; }
.kartu-cocok ul { display: flex; flex-direction: column; gap: 12px; }
.kartu-cocok li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.kartu-cocok--tidak li { color: var(--teks-2); }
.kartu-cocok li svg { flex: none; margin-top: 1px; }

/* 11. Bonus --------------------------------------------------------------- */
.bonus { padding: 44px 0; background: #FBF8F2; }
.bonus .wadah { display: flex; flex-direction: column; gap: 16px; }

.kartu-bonus {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px var(--garis);
}
.kartu-bonus__sampul {
  flex: none;
  width: 60px;
  height: 80px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kartu-bonus__sampul--1 { background: #1F3B2D; box-shadow: inset 0 0 0 3px #1F3B2D, inset 0 0 0 4px #C9A35C; }
.kartu-bonus__sampul--2 { background: #8A6324; box-shadow: inset 0 0 0 3px #8A6324, inset 0 0 0 4px #F0D29A; }
.kartu-bonus__gambar {
  flex: none;
  width: 60px;
  height: 85px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--garis), 0 8px 16px -10px rgba(60, 45, 15, .5);
}
.kartu-bonus__teks { display: flex; flex-direction: column; gap: 4px; }
.kartu-bonus__label { font-size: 12px; font-weight: 600; color: var(--emas-tua); }
.kartu-bonus__nama { font-size: 15.5px; font-weight: 600; }
.kartu-bonus__ket { font-size: 13.5px; line-height: 1.45; color: var(--teks-3); }

/* 12. Testimoni ----------------------------------------------------------- */
.testimoni { padding: 48px 0; background: #FFFFFF; }
.testimoni .geser { gap: 12px; margin-top: 16px; }
.testimoni figure { width: 168px; display: flex; flex-direction: column; gap: 8px; }
.testimoni figcaption { font-size: 12.5px; line-height: 1.4; color: var(--teks-4); }

/* Tempat screenshot. Nanti diganti gambar screenshot asli dari pembeli. */
.testimoni__layar {
  height: 184px;
  padding: 12px;
  border-radius: 18px;
  background: #E9E3D6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.gelembung { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.gelembung span { height: 4px; border-radius: 2px; }
.gelembung--masuk { align-self: flex-start; width: 80%; border-radius: 4px 12px 12px 12px; background: #FFFFFF; }
.gelembung--masuk span { background: #E2DACA; }
.gelembung--keluar { align-self: flex-end; width: 58%; border-radius: 12px 4px 12px 12px; background: #D7EBCB; }
.gelembung--keluar span { background: #BFD8AF; }
.gelembung .pendek { width: 62%; }

/* 13. Penawaran dan form -------------------------------------------------- */
.penawaran { position: relative; padding-bottom: 40px; background: #F7F1E4; }

.pagi {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFEFA 0%, #FBEBC9 51%, #F6DDAA 100%);
}
.pagi__sinar {
  position: absolute;
  left: calc(50% + 90px);
  top: 72px;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, #FFFBEF 0%, rgba(255, 237, 196, .8) 35%, rgba(248, 221, 164, 0) 100%);
}
.pagi__matahari {
  position: absolute;
  left: calc(50% + 90px);
  top: 72px;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: #FFF8E6;
}
.pagi__bukit { position: absolute; left: 0; bottom: 0; width: 100%; height: 130px; }

.kartu-beli {
  position: relative;
  width: min(100% - 32px, var(--lebar-isi) - 32px);
  margin: -56px auto 0;
  padding: 24px 20px;
  border-radius: 28px;
  background: #FFFFFF;
  box-shadow: 0 1px 0 rgba(120, 90, 40, .06), 0 24px 48px -28px rgba(80, 60, 20, .45);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.produk { display: flex; align-items: center; gap: 16px; }
.produk img {
  flex: none;
  width: 72px;
  height: 102px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 10px 18px -10px rgba(60, 45, 15, .55);
}
.produk__teks { display: flex; flex-direction: column; gap: 4px; }
.produk .judul-bagian { font-size: 26px; line-height: 1.15; }
.produk__format { font-size: 13.5px; color: var(--teks-3); }

.daftar-centang { display: flex; flex-direction: column; gap: 10px; }
.daftar-centang li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.daftar-centang svg { flex: none; margin-top: 2px; }

.harga {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border-radius: 18px;
  background: #FBF4E4;
}
.harga__angka { font-family: var(--huruf-judul); font-size: 42px; line-height: 1.05; }
.harga__ket { font-size: 13.5px; color: var(--teks-3); }

.form-beli { display: flex; flex-direction: column; gap: 14px; }
.form-beli h3 { margin-top: 4px; font-size: 15px; font-weight: 600; }

.isian { display: flex; flex-direction: column; gap: 6px; }
.isian label { font-size: 13.5px; font-weight: 600; }
.isian input,
.isian-wa {
  height: 52px;
  border: 1.5px solid #E2D8C4;
  border-radius: 14px;
  background: #FFFFFF;
}
.isian input {
  width: 100%;
  padding: 0 16px;
  font-size: 16px;   /* 16px supaya iPhone tidak zoom otomatis saat mengetik */
  color: var(--tinta);
}
.isian input::placeholder { color: #8C877C; }
.isian input:focus,
.isian-wa:focus-within {
  outline: none;
  border-color: var(--hijau);
  box-shadow: 0 0 0 3px rgba(31, 59, 45, .15);
}
.isian input[aria-invalid="true"],
.isian-wa:has(input[aria-invalid="true"]) { border-color: var(--merah); }

.isian-wa { display: flex; overflow: hidden; }
.isian-wa span {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: #FBF6EC;
  border-right: 1.5px solid #E2D8C4;
  font-size: 15px;
  font-weight: 600;
  color: var(--teks-2);
}
.isian .isian-wa input { flex: 1; min-width: 0; height: auto; border: 0; border-radius: 0; padding: 0 14px; box-shadow: none; }

.isian__bantuan { font-size: 12.5px; color: var(--teks-4); }
.isian__galat { font-size: 12.5px; font-weight: 500; color: var(--merah); }
.isian__galat:empty { display: none; }

.tambahan {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1.5px dashed #D9B76C;
  background: #FFFBF1;
  cursor: pointer;
}
.tambahan input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--hijau); }
.tambahan__teks { display: flex; flex-direction: column; gap: 3px; }
.tambahan__nama { font-size: 14.5px; font-weight: 600; }
.tambahan__ket { font-size: 13px; line-height: 1.45; color: var(--teks-3); }

.metode { display: flex; flex-direction: column; gap: 8px; }
.metode__label { font-size: 13px; color: var(--teks-3); }
.metode ul { display: flex; flex-wrap: wrap; gap: 8px; }
.metode li { padding: 7px 12px; border-radius: 999px; background: #F5F2EC; font-size: 13px; font-weight: 600; }

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--garis);
}
.total__label { font-size: 15px; font-weight: 600; }
.total__angka { font-size: 18px; font-weight: 700; }

.form-beli__pesan { font-size: 13.5px; line-height: 1.5; color: var(--hijau); font-weight: 500; }
.form-beli__pesan:empty { display: none; }
.form-beli__pesan--galat { color: var(--merah); }
.tombol--hijau:disabled { opacity: .7; cursor: progress; }

.catatan-aman { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--teks-3); }
.catatan-aman svg { flex: none; margin-top: 1px; }

.persetujuan { font-size: 12px; line-height: 1.5; color: var(--teks-4); }
.persetujuan a { color: var(--hijau); }

.bantuan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--garis);
}
.bantuan p { font-size: 13.5px; line-height: 1.4; color: var(--teks-2); }

/* 14. FAQ ----------------------------------------------------------------- */
.faq { padding: 48px 0; background: #FFFFFF; }
.faq .wadah { display: flex; flex-direction: column; gap: 12px; }
.faq__daftar { border-bottom: 1px solid var(--garis); }
.faq details { border-top: 1px solid var(--garis); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding-bottom: 16px; font-size: 14.5px; line-height: 1.6; color: var(--teks-2); }

/* Ikon plus yang berubah jadi minus saat dibuka */
.faq__ikon { position: relative; flex: none; width: 20px; height: 20px; }
.faq__ikon::before,
.faq__ikon::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 9px;
  height: 1.8px;
  border-radius: 1px;
  background: currentColor;
}
.faq__ikon::after { transform: rotate(90deg); transition: transform .2s ease; }
.faq details[open] .faq__ikon::after { transform: rotate(0deg); }

/* 15. Footer: malam yang tenang ------------------------------------------- */
.kaki { background: var(--hijau); color: var(--krem); text-align: center; }

.kaki__atas {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.kaki__merek { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.kaki__logo { display: flex; align-items: center; gap: 8px; }
.kaki__logo span { font-family: var(--huruf-judul); font-size: 22px; line-height: 1; }
.kaki__slogan { font-size: 14px; line-height: 1.55; color: #CFD6C9; }

.kaki__tautan { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 20px; font-size: 14px; }
.kaki__tautan a { min-height: 44px; display: flex; align-items: center; color: var(--krem); text-decoration: none; }
.kaki__tautan a:hover { text-decoration: underline; text-underline-offset: 4px; }

.malam {
  position: relative;
  height: 184px;
  margin-top: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.malam__bukit-jauh { position: absolute; left: 0; bottom: 0; width: 100%; height: 74px; }
.malam__langit { position: absolute; left: 50%; bottom: 0; width: 390px; height: 184px; margin-left: -195px; }
.malam__bukit-dekat { position: absolute; left: 0; bottom: 0; width: 100%; height: 40px; }
.malam__doa {
  position: relative;
  width: min(100% - 48px, 342px);
  margin: 0 auto 116px;
  font-family: var(--huruf-judul);
  font-size: 22px;
  line-height: 1.25;
  color: #F3E9D2;
  text-wrap: balance;
}

.kaki__hak { padding: 0 24px 24px; background: #13231A; font-size: 12.5px; color: #AEB9AA; }

/* 16. Bar beli yang melayang saat digulir --------------------------------- */
.bar-beli {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 20;
  max-width: 480px;
  margin-inline: auto;
  padding: 10px 10px 10px 12px;
  border-radius: 22px;
  background: var(--hijau);
  box-shadow: 0 18px 36px -12px rgba(20, 32, 24, .55), 0 2px 6px rgba(20, 32, 24, .18);
  display: flex;
  align-items: center;
  gap: 12px;
  /* Awalnya tersembunyi di bawah layar; JavaScript menambah kelas "tampil" */
  transform: translateY(calc(100% + 40px));
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.bar-beli.tampil { transform: none; visibility: visible; transition: transform .3s ease; }

.bar-beli img {
  flex: none;
  width: 34px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(240, 200, 134, .35);
}
.bar-beli__teks { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bar-beli__nama { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; font-weight: 500; line-height: 1.3; color: #CFD6C9; }
.bar-beli__harga { font-size: 16.5px; font-weight: 700; line-height: 1.3; color: var(--krem); }
.bar-beli .tombol--emas { flex: none; height: 48px; padding: 0 20px; font-size: 15px; font-weight: 700; box-shadow: none; }

/* 17. Harga promo -------------------------------------------------------- */
.coret { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.lencana {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #A3402E;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}

.hero__harga {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 14px;
  border-radius: 999px;
  background: rgba(8, 18, 13, .55);
  border: 1px solid rgba(251, 243, 220, .12);
  font-size: 14px;
  color: #D2CBB3;
}
.hero__harga strong { font-size: 16px; color: #FBF3DC; }
.hero__harga .coret { color: #C9C2AC; }

.harga__atas { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--teks-3); }
.bar-beli__harga .coret { margin-left: 4px; font-size: 12.5px; font-weight: 500; color: #AEB9AA; }
.isian__opsional { font-weight: 400; color: var(--teks-4); }

/* 18. Tablet --------------------------------------------------------------- */
@media (min-width: 768px) {
  .hero__judul { font-size: 50px; }
  .hero__sub { max-width: 420px; font-size: 16.5px; }
  .judul-bagian { font-size: 38px; }
}

/* 19. Laptop dan desktop: tata letak dua kolom ---------------------------- */
@media (min-width: 1024px) {
  :root { --lebar-isi: 1120px; }
  .wadah { width: min(100% - 96px, var(--lebar-isi)); }
  .judul-bagian { font-size: 44px; line-height: 1.08; }
  .teks-pengantar { font-size: 17px; }

  /* Hero: teks di kiri, buku di kanan */
  .hero { min-height: 780px; }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0 0 45% 0;
    background-image:
      radial-gradient(circle, rgba(246, 235, 207, .55) 0 1px, transparent 1.6px),
      radial-gradient(circle, rgba(246, 235, 207, .35) 0 .8px, transparent 1.4px);
    background-size: 230px 170px, 310px 230px;
    background-position: 40px 60px, 150px 20px;
    pointer-events: none;
  }
  .nav { width: min(100% - 64px, var(--lebar-isi) + 32px); }
  .hero__isi {
    margin-top: 110px;
    align-items: flex-start;
    text-align: left;
    padding-right: min(50%, 560px);
    gap: 20px;
  }
  .hero__judul { font-size: 62px; line-height: 1.02; }
  .hero__sub { max-width: 480px; font-size: 18px; }
  .hero__aksi { flex-direction: row; align-items: center; gap: 16px; }
  .hero__aksi .tombol--emas { height: 56px; padding: 0 34px; font-size: 17px; }
  .hero__panggung { position: absolute; inset: 0; margin: 0; }
  .hero__langit { left: calc(50% + 260px); }
  .hero__buku { left: calc(50% + 280px); right: auto; transform: translateX(-50%) scale(1.55); transform-origin: 50% 100%; }
  .hero__cahaya { left: calc(50% + 280px); bottom: 150px; width: 520px; height: 520px; margin-left: -260px; }
  .hero__bayangan { left: calc(50% + 280px); width: 260px; margin-left: -130px; bottom: 90px; }
  .hero__masjid { left: calc(50% + 430px); }
  .hero__jaminan {
    left: max(48px, (100% - var(--lebar-isi)) / 2);
    right: auto;
    justify-content: flex-start;
    gap: 10px 22px;
    font-size: 14px;
  }

  /* Cerita: judul kiri, keluhan kanan */
  .cerita { padding: 96px 0 72px; }
  .cerita .wadah { display: grid; grid-template-columns: 5fr 7fr; column-gap: 80px; row-gap: 28px; align-items: start; }
  .cerita .judul-bagian { grid-row: 1 / span 2; }
  .cerita__penutup { grid-column: 2; font-size: 18px; }
  .keluhan p { font-size: 17px; }

  .fajar { height: 300px; }

  /* Rezeki lebih luas: teks kiri, kartu kanan */
  .wawasan { padding: 16px 0 72px; }
  .wawasan .wadah { display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; row-gap: 20px; align-items: start; }
  .wawasan .chip-rezeki { grid-column: 2; grid-row: 1 / span 3; gap: 14px; }
  .chip-rezeki li { padding: 24px 8px; font-size: 15px; }

  /* Ayat kiri, rujukan kanan */
  .dalil { padding: 24px 0 96px; }
  .dalil .wadah { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .kartu-ayat { padding: 48px 40px 36px; }
  .kartu-ayat__arab { font-size: 32px; }
  .kartu-ayat__arti { font-size: 17px; }

  /* Isi: judul menempel di kiri, daftar jawaban di kanan */
  .isi { padding: 96px 0 72px; }
  .isi > .wadah { display: grid; grid-template-columns: 5fr 7fr; column-gap: 80px; align-items: start; }
  .isi__kepala { position: sticky; top: 32px; }
  .daftar-bab { margin-top: 0; }
  .daftar-bab li { padding: 20px 0; gap: 22px; }
  .daftar-bab__no { font-size: 34px; width: 32px; }
  .daftar-bab__judul { font-size: 18px; }
  .daftar-bab__ket { font-size: 15.5px; }
  .intip { margin-top: 56px; }
  .intip__geser { display: none; }
  .intip .geser { gap: 20px; }
  .intip__sampul { width: 170px; height: 241px; }

  /* Cocok dan kurang cocok berdampingan */
  .cocok { padding-bottom: 96px; }
  .cocok .wadah { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .kartu-cocok { padding: 32px; }
  .kartu-cocok li { font-size: 16.5px; }

  /* Bonus tiga kolom */
  .bonus { padding: 96px 0; }
  .bonus .wadah { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .bonus .judul-bagian, .bonus .teks-pengantar { grid-column: 1 / -1; }
  .bonus .teks-pengantar { margin: -12px 0 8px; }
  .kartu-bonus { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; }
  .kartu-bonus__gambar { width: 100%; height: 220px; object-fit: cover; object-position: top; }
  .kartu-bonus__nama { font-size: 18px; }
  .kartu-bonus__ket { font-size: 15px; }

  /* Penawaran: ringkasan kiri, form kanan */
  .pagi { height: 280px; }
  .kartu-beli {
    width: min(100% - 96px, 1000px);
    margin-top: -96px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    column-gap: 56px;
    row-gap: 22px;
    align-content: start;
  }
  .kartu-beli > .produk, .kartu-beli > .daftar-centang, .kartu-beli > .harga { grid-column: 1; }
  .kartu-beli > .form-beli { grid-column: 2; grid-row: 1 / span 4; }
  .kartu-beli > .bantuan { grid-column: 1; align-self: end; }
  .produk img { width: 96px; height: 136px; }
  .produk .judul-bagian { font-size: 32px; }
  .daftar-centang li { font-size: 16px; }
  .harga__angka { font-size: 56px; }
  .penawaran { padding-bottom: 96px; }

  /* FAQ: judul kiri, pertanyaan kanan */
  .faq { padding: 96px 0; }
  .faq .wadah { display: grid; grid-template-columns: 5fr 7fr; column-gap: 80px; align-items: start; }
  .faq summary { font-size: 17px; min-height: 64px; }
  .faq details p { font-size: 16px; }

  .malam__doa { font-size: 26px; width: min(100% - 48px, 440px); }
  .malam__langit { margin-left: -105px; }
  .kaki__tautan { column-gap: 32px; }
}

/* 20. Halaman terima kasih ------------------------------------------------- */
.halaman-tk {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #0C1E16 0%, #17301F 30%, #695F35 52%, #E3B26B 66%, #F7F1E4 80%) top / 100% 760px no-repeat,
    #F7F1E4;
}
.tk {
  width: min(100% - 32px, 560px);
  margin-inline: auto;
  padding: 24px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.tk__logo { align-self: flex-start; }
.tk__kartu {
  width: 100%;
  padding: 32px 24px 28px;
  border-radius: 28px;
  background: #FFFFFF;
  box-shadow: 0 1px 0 rgba(120, 90, 40, .06), 0 28px 56px -30px rgba(20, 32, 24, .55);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tk__isi { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tk__isi[hidden] { display: none; }
.tk__ikon { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tk__ikon--berhasil { background: #E5EFE3; color: var(--hijau); box-shadow: 0 0 0 8px #F2F7F0; }
.tk__ikon--menunggu { background: #FBF1DD; color: var(--emas-tua); box-shadow: 0 0 0 8px #FDF8EE; }
.tk__judul { margin-top: 8px; font-family: var(--huruf-judul); font-weight: 400; font-size: 32px; line-height: 1.1; text-wrap: balance; }
.tk__sub { font-size: 15.5px; line-height: 1.6; color: var(--teks-2); }
.tk__email { overflow-wrap: anywhere; color: var(--tinta); }

.tk__pesanan { margin: 0; padding: 4px 16px; border-radius: 18px; background: #FBF4E4; }
.tk__pesanan div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #F0E3C6; font-size: 14.5px; }
.tk__pesanan div:first-child { border-top: 0; }
.tk__pesanan dt { color: var(--teks-3); }
.tk__pesanan dd { margin: 0; font-weight: 600; text-align: right; }
#tk-nomor { white-space: nowrap; font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; letter-spacing: .02em; }

.tk__langkah h2 { margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.tk__langkah ol { display: flex; flex-direction: column; gap: 12px; }
.tk__langkah li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.55; color: var(--teks-2); }
.tk__no {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--hijau);
  color: var(--krem);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tk__aksi { display: flex; flex-direction: column; gap: 10px; }
.tk__aksi .tombol { width: 100%; }
.tk__wa { height: 52px; font-size: 15px; }
.tk__catatan { font-size: 12.5px; line-height: 1.5; color: var(--teks-4); text-align: center; }
.tk__kembali { min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--hijau); }

@media (min-width: 768px) {
  .tk { padding-top: 32px; }
  .tk__kartu { padding: 44px 44px 36px; }
  .tk__judul { font-size: 40px; }
}
