/* ============================================================================
   Halaman Pembelian — MBG Punya Cerita (https://mbgpunyacerita.com/?tab=checkout)
   v2: bersih. Layar 1 = hitung mundur satu layar penuh. Layar 2 = harga.
   ============================================================================ */
:root {
  --teal-800: #115e59; --teal-700: #0f766e; --teal-600: #0d9488; --teal-300: #5eead4; --teal-100: #ccfbf1; --teal-50: #f0fdfa;
  --ink: #0f172a; --teks: #334155; --redup: #64748b; --samar: #94a3b8; --garis: #eef2f6;
  --font-teks: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-judul: 'Plus Jakarta Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--teks); font-family: var(--font-teks); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, p { margin: 0; }
a { color: inherit; text-decoration: none; }
template { display: none; }

/* ===== Layar 1: hitung mundur ===== */
.pb-layar { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 0 24px;
  background: radial-gradient(60% 45% at 50% 38%, #f0fdfa 0%, rgb(240 253 250 / 0) 100%), #fff; }
.pb-atas { display: flex; align-items: center; justify-content: space-between; height: 72px; width: 100%; max-width: 1080px; margin: 0 auto; }
.pb-merek { display: inline-flex; align-items: center; gap: 10px; }
.pb-merek strong { font-family: var(--font-judul); font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.pb-logo { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-700), var(--teal-600)); }
.pb-logo svg { width: 25px; height: 25px; }
.pb-masuk { font-size: 13.5px; font-weight: 700; color: var(--teal-700); padding: 8px 4px; }
.pb-masuk:hover { color: var(--teal-800); }

.pb-tengah { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 24px 0 72px; }
.pb-capai { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--teal-50); color: var(--teal-800); font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
.pb-titik { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-600); animation: pb-nadi 1.8s ease-out infinite; }
.pb-layar h1 { font-family: var(--font-judul); font-weight: 800; color: var(--ink); letter-spacing: -.035em; line-height: 1.08; font-size: clamp(32px, 6.2vw, 64px); }
.pb-layar h1 span { color: var(--samar); }
.pb-pilar { list-style: none; padding: 0; margin: -4px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 14px; font-weight: 600; color: var(--redup); }
.pb-pilar li { position: relative; }
.pb-pilar li + li::before { content: ''; position: absolute; left: -12px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--samar); }

.pb-hitung { display: flex; align-items: flex-start; justify-content: center; gap: clamp(6px, 2vw, 18px); margin-top: 14px; }
.pb-hitung div { display: flex; flex-direction: column; align-items: center; min-width: clamp(58px, 15vw, 120px); }
.pb-hitung b { font-family: var(--font-judul); font-weight: 800; color: var(--ink); font-size: clamp(46px, 11vw, 104px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pb-hitung span { margin-top: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--samar); }
.pb-hitung i { font-style: normal; font-family: var(--font-judul); font-weight: 700; color: var(--teal-300); font-size: clamp(32px, 7vw, 72px); line-height: 1.15; }
.pb-tanggal { font-size: 14px; font-weight: 600; color: var(--redup); }

.pb-turun { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--samar); }
.pb-turun svg { width: 22px; height: 22px; animation: pb-turun 1.8s ease-in-out infinite; }
.pb-turun:hover { color: var(--teal-700); }

/* Setelah penjualan dibuka */
.pb-layar.is-buka .pb-hitung, .pb-layar.is-buka .pb-turun { display: none; }
.pb-beli-atas { margin-top: 8px; }

/* ===== Layar 2: harga ===== */
.pb-bawah { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 24px 24px; background: #fafbfc; }
.pb-kartu { width: 100%; max-width: 440px; text-align: center; }
.pb-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--samar); }
.pb-harga { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 14px; }
.pb-rp { font-family: var(--font-judul); font-size: clamp(20px, 4vw, 26px); font-weight: 800; color: var(--teal-700); }
.pb-angka-rahasia { font-family: var(--font-judul); font-weight: 800; color: var(--ink); letter-spacing: -.03em; font-size: clamp(54px, 15vw, 88px); line-height: 1; }
.pb-tiga { list-style: none; padding: 0; margin: 36px 0 32px; display: flex; flex-direction: column; gap: 14px; text-align: left; border-top: 1px solid var(--garis); padding-top: 28px; }
.pb-tiga li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: baseline; }
.pb-tiga strong { font-family: var(--font-judul); font-size: 14px; color: var(--ink); }
.pb-tiga span { font-size: 14px; color: var(--redup); line-height: 1.55; }
@media (max-width: 420px) { .pb-tiga li { grid-template-columns: 1fr; gap: 2px; } }

.pb-beli { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 12px 20px; border-radius: 999px; font-family: var(--font-judul); font-weight: 800; font-size: 15px; line-height: 1.3; text-align: center;
  background: var(--ink); color: #fff; transition: transform .15s ease, background .2s ease; }
.pb-beli:hover { background: var(--teal-700); }
.pb-beli:active { transform: scale(.98); }
.pb-beli:focus-visible { outline: none; box-shadow: 0 0 0 4px rgb(94 234 212 / .55); }
.pb-beli.is-tutup { background: #eef2f6; color: var(--redup); cursor: default; }
.pb-beli.is-tutup:hover { background: #eef2f6; }
.pb-beli.is-buka { background: var(--teal-700); }
.pb-beli-atas { width: auto; padding: 12px 34px; }
.pb-beli-atas[hidden] { display: none; }
.pb-bonus { margin-top: 16px; font-size: 13px; color: var(--redup); }
.pb-kaki { margin-top: auto; padding-top: 56px; font-size: 12px; color: var(--samar); }

/* Animasi */
@keyframes pb-nadi { 0% { box-shadow: 0 0 0 0 rgb(13 148 136 / .5); } 100% { box-shadow: 0 0 0 9px rgb(13 148 136 / 0); } }
@keyframes pb-turun { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pb-titik, .pb-turun svg { animation: none; }
}

/* ===== v5: Edisi Perintis — kartu harga premium 50 pembeli pertama ===== */
:root { --emas-1: #fde68a; --emas-2: #fbbf24; --emas-3: #f59e0b; --malam-1: #0b3b38; --malam-2: #0f172a; }
.pb-bawah { background: radial-gradient(55% 40% at 50% 30%, rgb(251 191 36 / .14) 0%, rgb(251 191 36 / 0) 100%), radial-gradient(60% 50% at 50% 70%, rgb(20 184 166 / .10) 0%, rgb(20 184 166 / 0) 100%), #fafbfc; }
.pb-bawah .pb-kartu { max-width: 480px; }
.pb-vip-judul { margin: 10px 0 0; font-family: var(--font-judul); font-weight: 800; font-size: clamp(30px, 7vw, 42px); line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.pb-vip-judul span { display: block; margin-top: 8px; font-family: var(--font-teks); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--redup); }

.pb-vip { position: relative; margin-top: 40px; padding: 44px 26px 28px; border-radius: 28px; color: #e2e8f0; text-align: center; overflow: hidden; overflow: clip; isolation: isolate;
  background: radial-gradient(90% 55% at 50% 0%, rgb(251 191 36 / .22) 0%, rgb(251 191 36 / 0) 70%), linear-gradient(165deg, var(--malam-1) 0%, var(--malam-2) 62%);
  box-shadow: 0 30px 60px -24px rgb(15 23 42 / .55), 0 0 0 1px rgb(251 191 36 / .35), inset 0 1px 0 rgb(255 255 255 / .08); }
.pb-vip::before { content: ''; position: absolute; inset: -40% -60%; z-index: -1; background: linear-gradient(115deg, transparent 42%, rgb(253 230 138 / .10) 50%, transparent 58%); animation: pb-kilau 6s ease-in-out infinite; }
.pb-pita { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 16px; border-radius: 0 0 14px 14px;
  background: linear-gradient(90deg, var(--emas-3), var(--emas-2), var(--emas-1)); color: #422006; font-family: var(--font-judul); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.pb-pita svg { width: 13px; height: 13px; }
.pb-vip-kecil { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--emas-1); }
.pb-vip-harga { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin-top: 8px; filter: drop-shadow(0 6px 24px rgb(251 191 36 / .35)); }
.pb-vip-rp { margin-top: .5em; font-family: var(--font-judul); font-weight: 800; font-size: clamp(18px, 4.6vw, 26px); color: var(--emas-2); }
.pb-vip-angka { font-family: var(--font-judul); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-size: clamp(54px, 16vw, 96px); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff7d6 0%, var(--emas-1) 35%, var(--emas-2) 70%, var(--emas-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pb-vip-coret { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pb-vip-coret s { font-size: 16px; font-weight: 600; color: #94a3b8; text-decoration-thickness: 2px; text-decoration-color: #f87171; }
.pb-hemat { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: rgb(52 211 153 / .16); color: #6ee7b7; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.pb-vip-ket { margin-top: 10px; font-size: 13px; color: #94a3b8; }
.pb-vip-ket strong { color: #e2e8f0; font-weight: 700; }

.pb-kursi-blok { margin: 24px 0 0; padding: 16px; border-radius: 18px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .08); }
.pb-kursi { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; max-width: 230px; margin: 0 auto; }
.pb-kursi i { aspect-ratio: 1; border-radius: 5px; background: linear-gradient(180deg, var(--emas-1), var(--emas-3)); box-shadow: 0 0 10px rgb(251 191 36 / .35); animation: pb-kursi 2.6s ease-in-out infinite; animation-delay: calc(var(--n) * 45ms); }
.pb-kursi-blok p { margin-top: 12px; font-size: 13px; line-height: 1.5; color: #cbd5e1; }
.pb-kursi-blok strong { color: var(--emas-1); }

.pb-vip-sub { margin-top: 26px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--emas-1); }
.pb-vip-benefit { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.pb-vip-benefit li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .08); }
.pb-ikon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--emas-2), var(--emas-3)); color: #422006; }
.pb-ikon svg { width: 22px; height: 22px; }
.pb-vip-benefit strong { display: block; font-family: var(--font-judul); font-size: 14.5px; font-weight: 800; color: #fff; line-height: 1.3; }
.pb-vip-benefit span:not(.pb-ikon) { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: #94a3b8; }

.pb-vip .pb-beli { margin-top: 26px; }
.pb-vip .pb-beli.is-tutup, .pb-vip .pb-beli.is-tutup:hover { background: rgb(255 255 255 / .10); color: #cbd5e1; }
.pb-vip .pb-beli.is-buka, .pb-vip .pb-beli:not(.is-tutup) { background: linear-gradient(90deg, var(--emas-3), var(--emas-2), var(--emas-1)); color: #422006; box-shadow: 0 10px 30px -8px rgb(251 191 36 / .6); }
.pb-vip .pb-beli:not(.is-tutup):hover { filter: brightness(1.06); }
.pb-vip-buka { margin-top: 12px; font-size: 12.5px; color: #94a3b8; }
.pb-bawah .pb-tiga { margin-top: 36px; }

@keyframes pb-kilau { 0%, 100% { transform: translateX(-30%); } 50% { transform: translateX(30%); } }
@keyframes pb-kursi { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (max-width: 420px) {
  .pb-vip { padding: 42px 18px 24px; border-radius: 24px; }
  .pb-vip-benefit li { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) { .pb-vip::before, .pb-kursi i { animation: none; } }
