/* ==========================================================================
   Momo Glow Up Planner 2027 — style
   Prinsip performa: animasi hanya transform & opacity; loop dekoratif pakai
   CSS keyframes (jalan di compositor) dan dipause saat di luar layar.
   ========================================================================== */

:root {
  --cream: #FFF4E6;
  --card: #FFFFFF;
  --blush: #F8C8D8;
  --soft: #FCE6EE;
  --rose: #B2456E;
  --rose-dark: #8C2F53;
  --gold: #E8B04B;
  --cocoa: #5A3E36;
  --muted: #7A5C54;
  --line: #EBD9CC;
  --sage: #7FBF9E;
  --sky: #A7BCE6;

  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-lg: 32px;
  --radius: 24px;
  --radius-sm: 16px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* scroll halus ke section diatur JS (main.js), bukan scroll-behavior */
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 12px; }
::selection { background: var(--blush); color: var(--cocoa); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 760px; }
.section { padding-block: clamp(72px, 12vw, 128px); }

/* ---------- Type ---------- */
.h2, .h3, h1, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.h2 { font-size: clamp(2rem, 6.4vw, 3.4rem); line-height: 1.08; text-wrap: balance; }
.h3 { font-size: clamp(1.5rem, 4.6vw, 2.1rem); line-height: 1.15; text-wrap: balance; }
.accent { color: var(--rose); }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.2rem); color: var(--muted); margin: 16px 0 0; text-wrap: pretty; }
.eyebrow { margin: 0; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 6vw, 56px); }
.section-head .chip { margin-bottom: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; padding: 7px 16px;
  font-weight: 800; font-size: .85rem; color: var(--rose);
  background: var(--card); border: 2px solid var(--line); border-radius: 999px;
}
.chip--white { border-color: #fff; }
.chip--sky { color: #4E6aa8; background: #EEF2FB; border-color: #DCE4F6; }
.chip--gold { color: #9A6A12; background: #FFF3D9; border-color: #F3D9A0; }

/* ---------- Button: pill rose dengan sisi bawah gelap (3D) ---------- */
.btn {
  --lift: 5px;
  display: inline-block;
  position: relative;
  padding-bottom: var(--lift);
  border-radius: 999px;
  background: var(--rose-dark);
  text-decoration: none;
  touch-action: manipulation;
  user-select: none;
}
.btn__face {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.1;
  white-space: nowrap;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22);
  transform: translateY(0);
  transition: transform .18s var(--ease-out);
}
@media (hover: hover) {
  .btn:hover .btn__face { transform: translateY(-2px); }
}
.btn:active .btn__face { transform: translateY(calc(var(--lift) - 1px)); transition-duration: .06s; }
.btn--sm { --lift: 4px; }
.btn--sm .btn__face { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn--lg .btn__face { min-height: 58px; padding: 16px 32px; font-size: 1.15rem; }
.btn--block { display: block; }

/* ---------- Slot badge ---------- */
.slot-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0; padding: 8px 14px;
  font-weight: 800; font-size: .9rem;
  background: var(--card); border: 2px solid var(--line); border-radius: 999px;
}
.slot-badge__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); position: relative; }
.slot-badge__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sage);
  animation: ping 1.8s var(--ease-out) infinite;
}
.slot-badge.is-out .slot-badge__dot,
.slot-badge.is-out .slot-badge__dot::after { background: var(--rose); }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Sparkle ---------- */
.spark { position: absolute; color: var(--gold); width: 24px; height: 24px; pointer-events: none; }

/* ---------- Loops (compositor only) ---------- */
.float { animation: float 4.2s ease-in-out infinite; }
.twinkle { animation: twinkle 2.6s ease-in-out infinite; }
.drift { animation: drift 16s ease-in-out infinite alternate; }
.drift--slow { animation-duration: 22s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(.55) rotate(45deg); opacity: .55; } }
@keyframes drift { from { transform: translateX(-24px); } to { transform: translateX(24px); } }
.is-offscreen .float,
.is-offscreen .twinkle,
.is-offscreen .drift,
.is-offscreen .wave__track,
.is-offscreen .marquee__track,
.is-offscreen .orbit,
.is-offscreen .rig *,
.is-offscreen .sky * { animation-play-state: paused; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 12px 12px 0;
  transition: transform .45s var(--ease-out);
}
.nav.is-hidden,
.is-pinning .nav { transform: translateY(-120%); }
.nav__inner {
  display: flex; align-items: center; gap: 12px;
  max-width: 1140px; margin-inline: auto;
  padding: 8px 8px 8px 10px;
  background: rgba(255, 255, 255, .94);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(90, 62, 54, .06);
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.nav__brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav__links { display: none; margin-left: auto; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--muted); transition: background-color .2s, color .2s; }
.nav__links a:hover { background: var(--soft); color: var(--rose); }
.nav .btn { margin-left: auto; }
@media (min-width: 820px) {
  .nav__links { display: flex; }
  .nav .btn { margin-left: 8px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: calc(var(--nav-h) + 36px); overflow: hidden; }
.hero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--blush) 2.2px, transparent 2.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 75%);
  opacity: .7;
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: 8px; align-items: center; padding-bottom: 28px; }
.hero__copy { text-align: center; }
.hero__title { margin: 18px 0 0; font-size: clamp(2.7rem, 11.5vw, 5.4rem); line-height: 1; letter-spacing: -.02em; }
.hero__title .line { display: block; }
.hero__title .word { display: inline-block; }
.hero__title-accent { position: relative; color: var(--rose); width: fit-content; margin-inline: auto; padding-bottom: 6px; }
.squiggle { position: absolute; left: 2%; bottom: -10px; width: 96%; height: 18px; color: var(--gold); }
/* garis bawah bergelombang di frasa judul section (mis. "59 hari glow up") */
.mark { position: relative; display: inline-block; padding-bottom: 4px; }
.squiggle--mark { bottom: -14px; height: 14px; }
.hero__lead { max-width: 460px; margin: 26px auto 0; font-size: clamp(1.05rem, 3vw, 1.25rem); color: var(--muted); text-wrap: pretty; }
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 26px; }

.hero__stage {
  position: relative;
  width: min(78vw, 360px);
  aspect-ratio: 1;
  margin: 8px auto 0;
}
.hero__blob {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0%, var(--soft) 55%, rgba(252, 230, 238, 0) 72%);
}
.hero__momo, .hero__ring { position: absolute; inset: 0; }
.hero__momo { display: grid; place-items: center; }
.hero__momo-follow { width: 82%; }

/* ---------- Rig karakter Momo (hero, 6 tahap, dan ngambek) ----------
   Setiap bagian tubuh = lapisan SVG sendiri; posisinya inline (hasil generator),
   gerakannya di sini. Semua loop hanya transform/opacity, jalan di compositor. */
.rig {
  --beat: 3.2s;
  position: relative; display: block; width: 100%; aspect-ratio: 1;
  padding: 0; border: 0; background: none;
}
button.rig { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.rig img, .rig span { position: absolute; display: block; }
.rig img { max-width: none; height: auto; }
.rig__bob { inset: 0; animation: rig-bob var(--beat) ease-in-out infinite; }
.rig__shadow { animation: rig-shadow var(--beat) ease-in-out infinite; }
.rig__aura { animation: rig-aura var(--beat) ease-in-out infinite; }
.rig__body { animation: rig-breathe var(--beat) ease-in-out infinite; }
.rig__armL { animation: rig-arm-l var(--beat) ease-in-out infinite; }
.rig__armR { animation: rig-arm-r var(--beat) ease-in-out infinite; }
.rig__head { animation: rig-head 6.4s ease-in-out infinite; }
.rig__earL { animation: rig-ear-l 4.8s ease-in-out infinite; }
.rig__earR { animation: rig-ear-r 4.8s ease-in-out infinite -.4s; }
.rig__eyes { animation: rig-blink 4.2s linear infinite; }
.rig__bow { animation: rig-bow 2.4s ease-in-out infinite; }
.rig__burst { inset: 0; pointer-events: none; }
.rig__burst svg { position: absolute; left: 50%; top: 40%; width: 20px; height: 20px; margin: -10px 0 0 -10px; color: var(--gold); opacity: 0; }

/* Tahap 1, telur: bergoyang, sesekali bergetar mau menetas */
.rig--egg .rig__egg { animation: egg-rock 3.4s ease-in-out infinite; }
.rig--egg .rig__shadow { animation: egg-shadow 3.4s ease-in-out infinite; }
/* Tahap 2, baru menetas: tidur, napas pelan, zzz melayang */
.rig--hatch .rig__head { animation: rig-sleep 3.6s ease-in-out infinite; }
.rig--hatch .rig__earL { animation: rig-ear-sleep 3.6s ease-in-out infinite; }
.rig--hatch .rig__earR { animation: rig-ear-sleep 3.6s ease-in-out infinite -1.8s; }
.rig--hatch .rig__shadow { animation: none; }
.rig__zzz { left: 64%; top: 30%; width: 20%; height: 20%; }
.rig__zzz i {
  position: absolute; left: 0; bottom: 0;
  font: 600 clamp(14px, 4.4vw, 26px)/1 var(--font-display); font-style: normal; color: var(--muted);
  opacity: 0; animation: rig-zzz 3.6s ease-out infinite;
}
.rig__zzz i:nth-child(2) { animation-delay: -1.2s; }
.rig__zzz i:nth-child(3) { animation-delay: -2.4s; }
/* Tahap 5, glow up: lebih ceria */
.rig--glow { --beat: 2.6s; }
.rig--glow .rig__armL { animation-name: rig-arm-l-big; }
.rig--glow .rig__armR { animation-name: rig-arm-r-big; }
/* Tahap 6, queen: melambai */
.rig--queen .rig__armR { animation: rig-wave 6.4s ease-in-out infinite; }
/* Ngambek: tidak melompat, telinga lesu, kepala "hmph", hujan turun */
.rig--sulk { --beat: 4s; }
.rig--sulk .rig__bob,
.rig--sulk .rig__shadow { animation: none; }
.rig--sulk .rig__head { animation: rig-hmph 5s ease-in-out infinite; }
.rig--sulk .rig__earL { animation: rig-ear-droop 3.8s ease-in-out infinite; }
.rig--sulk .rig__earR { animation: rig-ear-droop 3.8s ease-in-out infinite reverse; }
.rig--sulk .rig__cloud { animation: rig-cloud 3s ease-in-out infinite; }
.rig--sulk .rig__rain { animation: rig-rain .9s linear infinite; }

@keyframes rig-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.2%); } }
@keyframes rig-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.84); opacity: .6; } }
@keyframes rig-aura { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes rig-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(.985, 1.025); } }
@keyframes rig-arm-l { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(9deg); } }
@keyframes rig-arm-r { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-9deg); } }
@keyframes rig-arm-l-big { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(18deg); } }
@keyframes rig-arm-r-big { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-18deg); } }
@keyframes rig-head { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes rig-ear-l {
  0%, 100% { transform: rotate(0deg); } 35% { transform: rotate(-5deg); } 60% { transform: rotate(2deg); }
  /* kibasan kecil sesekali */
  78% { transform: rotate(-16deg); } 82% { transform: rotate(-2deg); } 86% { transform: rotate(-11deg); } 90% { transform: rotate(0deg); }
}
@keyframes rig-ear-r { 0%, 100% { transform: rotate(0deg); } 40% { transform: rotate(5deg); } 70% { transform: rotate(-2deg); } }
@keyframes rig-blink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.12); } 96% { transform: scaleY(1); } }
@keyframes rig-bow { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
/* lambaian: diam lama, lalu angkat tangan dan goyang dua kali */
@keyframes rig-wave {
  0%, 55%, 100% { transform: rotate(0deg); }
  62% { transform: rotate(-98deg); } 67% { transform: rotate(-72deg); } 72% { transform: rotate(-98deg); }
  77% { transform: rotate(-72deg); } 82% { transform: rotate(-92deg); } 90% { transform: rotate(0deg); }
}
@keyframes egg-rock {
  0%, 46%, 100% { transform: rotate(0deg); } 14% { transform: rotate(-4deg); } 30% { transform: rotate(4deg); }
  70% { transform: rotate(0deg) translateY(0); } 73% { transform: rotate(-7deg) translateY(-2%); } 76% { transform: rotate(7deg) translateY(-2%); }
  79% { transform: rotate(-6deg) translateY(-1%); } 82% { transform: rotate(5deg); } 86% { transform: rotate(0deg); }
}
@keyframes egg-shadow { 0%, 46%, 70%, 86%, 100% { transform: scaleX(1); } 14%, 30% { transform: scaleX(.94); } 76% { transform: scaleX(.86); } }
@keyframes rig-sleep { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-2%) scale(1.015, 1.03); } }
@keyframes rig-ear-sleep { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-4deg); } }
@keyframes rig-zzz {
  0% { transform: translate(0, 0) scale(.5); opacity: 0; } 20% { opacity: 1; }
  100% { transform: translate(60%, -170%) scale(1.15); opacity: 0; }
}
@keyframes rig-hmph {
  0%, 55%, 100% { transform: rotate(0deg); } 60% { transform: rotate(-9deg); } 66% { transform: rotate(-7deg); }
  76% { transform: rotate(-8deg); } 86% { transform: rotate(0deg); }
}
@keyframes rig-ear-droop { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(6deg); } }
@keyframes rig-cloud { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3%, -8%); } }
@keyframes rig-rain { 0% { transform: translateY(-25%); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(70%); opacity: 0; } }

/* ---------- Langit: awan & kilau acak (dibuat JS), parallax saat scroll ---------- */
.sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky__c, .sky__s { position: absolute; display: block; }
.sky__c svg { width: 100%; height: auto; color: #fff; animation: sky-drift var(--dur, 18s) ease-in-out var(--delay, 0s) infinite alternate; }
.sky--soft .sky__c svg { color: #F9D7E3; }
.sky__s svg { width: 100%; height: 100%; color: var(--gold); animation: twinkle var(--dur, 2.6s) ease-in-out var(--delay, 0s) infinite; }
@keyframes sky-drift { from { transform: translateX(calc(var(--dx, 24px) * -1)); } to { transform: translateX(var(--dx, 24px)); } }

.hero__hint {
  position: absolute; left: 50%; bottom: -6px; margin: 0; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 99px; background: var(--card); border: 2px solid var(--line);
  font-size: .78rem; font-weight: 800; color: var(--muted); white-space: nowrap; pointer-events: none;
}
.orbit {
  position: absolute; width: 22%;
  filter: drop-shadow(0 6px 10px rgba(178, 69, 110, .12));
  animation: float 5s ease-in-out infinite;
}
.orbit--1 { left: -2%; top: 12%; animation-delay: -1s; }
.orbit--2 { right: -3%; top: 6%; animation-delay: -2.4s; width: 19%; }
.orbit--3 { left: 2%; bottom: 8%; animation-delay: -3.1s; width: 17%; }
.orbit--4 { right: 0; bottom: 14%; animation-delay: -.4s; width: 20%; }
.spark--1 { left: 18%; top: 4%; width: 26px; height: 26px; }
.spark--2 { right: 16%; top: 30%; width: 18px; height: 18px; animation-delay: -1s; }
.spark--3 { left: 10%; top: 52%; width: 14px; height: 14px; animation-delay: -1.8s; }
.spark--4 { right: 22%; bottom: 4%; width: 22px; height: 22px; animation-delay: -.6s; }

@media (min-width: 900px) {
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .hero__inner { grid-template-columns: 1.1fr .9fr; gap: 32px; padding-bottom: 56px; }
  .hero__copy { text-align: left; }
  .hero__title { font-size: clamp(3.2rem, 6.2vw, 5.4rem); }
  .hero__title .line { white-space: nowrap; }
  .hero__title-accent { margin-inline: 0; }
  .hero__lead { margin-inline: 0; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hero__stage { width: 100%; max-width: 480px; }
}

/* Marquee */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  background: var(--card);
  border-block: 2px solid var(--line);
  transform: rotate(-1.5deg);
  margin: 12px -10px 34px;
}
.marquee__track {
  display: flex; align-items: center; gap: 22px;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--cocoa);
  white-space: nowrap;
}
.marquee__track svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   WAVES
   ========================================================================== */
.wave { position: relative; height: 56px; overflow: hidden; margin-bottom: -1px; }
.wave--bottom { margin-top: -1px; margin-bottom: 0; transform: scaleY(-1); background: var(--cream); }
.wave__track {
  position: absolute; inset: 0 auto 0 0; width: 200%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 56' preserveAspectRatio='none'%3E%3Cpath d='M0 28c50 0 50-20 100-20s50 20 100 20 50-20 100-20 50 20 100 20 50-20 100-20 50 20 100 20v28H0z' fill='%23FCE6EE'/%3E%3C/svg%3E") repeat-x 0 0 / 50% 100%;
  animation: marquee 14s linear infinite;
}
.wave--bottom .wave__track { animation-duration: 18s; animation-direction: reverse; }

/* ==========================================================================
   WORLD / KENALAN SAMA MOMO
   ========================================================================== */
.world {
  position: relative;
  overflow-x: clip; /* awan dekoratif tidak boleh melebarkan halaman di HP */
  background-color: var(--soft);
  background-image: radial-gradient(rgba(248, 200, 216, .7) 2px, transparent 2.4px);
  background-size: 34px 34px;
  padding-top: clamp(40px, 8vw, 80px);
  padding-bottom: clamp(56px, 9vw, 96px);
}
.world__intro { text-align: center; max-width: 720px; position: relative; z-index: 1; }
.world__intro .chip { margin-bottom: 16px; }


/* Tinggi mengikuti isi (bukan 100vh), lalu di-pin di TENGAH layar: tidak ada ruang kosong
   besar di atas/bawah, di HP maupun layar tinggi. */
.grow { position: relative; }
.grow .sky--grow { top: -35svh; bottom: -35svh; } /* awan tetap memenuhi layar saat di-pin */
.grow__inner, .world > .container, .hero__inner { position: relative; z-index: 1; }
.grow__inner {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.grow__visual { position: relative; width: min(68vw, 40svh, 380px); aspect-ratio: 1; }
.grow__halo {
  position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, .6) 45%, rgba(255, 255, 255, 0) 70%);
}
.grow__stack { position: absolute; inset: 0; }
.stage { position: absolute; inset: 0; }
.js-motion .stage:not(:first-child),
.js-motion .grow__label:not(:first-child) { visibility: hidden; opacity: 0; }
/* efek "poof" saat berganti tahap (dibuat JS) */
.poof { position: absolute; inset: 0; pointer-events: none; }
.poof__ring { position: absolute; left: 22%; top: 22%; width: 56%; height: 56%; border-radius: 50%; border: 6px solid #fff; opacity: 0; }
.poof svg { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; color: var(--gold); opacity: 0; }
.poof svg:nth-child(3n) { color: #fff; }
.poof svg:nth-child(4n) { color: var(--rose); width: 14px; height: 14px; margin: -7px 0 0 -7px; }

.grow__panel {
  width: 100%; max-width: 440px;
  background: var(--card);
  border: 2px solid #fff;
  border-radius: var(--radius-lg);
  padding: 18px 20px 20px;
  box-shadow: 0 10px 30px rgba(178, 69, 110, .1);
}
.grow__meter { position: relative; height: 14px; margin: 4px 6px 16px; }
.grow__meter::before { content: ""; position: absolute; inset: 4px 0; border-radius: 99px; background: var(--soft); }
.grow__meter-fill {
  position: absolute; inset: 4px 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--blush), var(--rose));
  transform: scaleX(0); transform-origin: left center;
}
.grow__dots { position: absolute; inset: 0; display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; }
.grow__dots li { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blush); }
.grow__labels { display: grid; }
.grow__label { grid-area: 1 / 1; text-align: center; }
.grow__lv { display: inline-block; font-weight: 800; font-size: .8rem; color: var(--rose); background: var(--soft); padding: 3px 10px; border-radius: 99px; }
.grow__label h3 { font-size: clamp(1.6rem, 5.5vw, 2.2rem); margin-top: 6px; }
.grow__label p { margin: 4px 0 0; color: var(--muted); font-size: 1rem; }

@media (min-width: 900px) {
  .grow__inner { grid-template-rows: none; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding-block: 32px; }
  .grow__visual { width: min(42vw, 70vh, 460px); justify-self: end; }
  .grow__panel { justify-self: start; padding: 28px; }
  .grow__label { text-align: left; }
}

/* Tanpa animasi (reduced motion / GSAP gagal): semua tahap tampil sebagai grid */
html:not(.js-motion) .grow { height: auto; }
html:not(.js-motion) .grow__inner { display: block; height: auto; padding-block: 24px; }
html:not(.js-motion) .grow__visual { width: 100%; max-width: 720px; aspect-ratio: auto; margin-inline: auto; }
html:not(.js-motion) .grow__halo,
html:not(.js-motion) .grow__panel { display: none; }
html:not(.js-motion) .grow__stack { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
html:not(.js-motion) .stage { position: relative; inset: auto; }

/* Momo ngambek */
.sulk {
  display: grid; gap: 8px; align-items: center;
  max-width: 880px; margin: clamp(24px, 6vw, 56px) auto 0;
  background: var(--card); border-radius: var(--radius-lg); border: 2px solid #fff;
  padding: 24px; text-align: center;
  box-shadow: 0 10px 30px rgba(178, 69, 110, .1);
}
.sulk__img { width: min(56vw, 220px); margin-inline: auto; }
.sulk__img .rig { width: 100%; }
.sulk__copy .chip { margin-bottom: 12px; }
.sulk__copy p:last-child { color: var(--muted); margin: 12px 0 0; }
@media (min-width: 760px) {
  .sulk { grid-template-columns: 240px 1fr; text-align: left; padding: 28px 40px 28px 24px; gap: 24px; }
  .sulk__img { width: 100%; }
}

/* ==========================================================================
   COBA SENDIRI
   ========================================================================== */
.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 0 var(--blush);
}
.try__grid { display: grid; gap: 28px; max-width: 960px; margin-inline: auto; }
@media (min-width: 860px) { .try__grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }

.try__habits { padding: 22px; }
.try__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.try__count { margin: 2px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.try__lvl {
  font-weight: 800; font-size: .85rem; color: var(--rose);
  background: var(--soft); padding: 6px 12px; border-radius: 99px; white-space: nowrap;
}
.try__momo { position: relative; width: min(60vw, 220px); aspect-ratio: 1; margin: 6px auto 0; }
.try__momo-pop { width: 100%; height: 100%; transform-origin: 50% 90%; }
.try__momo-pop img { width: 100%; height: 100%; }
.burst { position: absolute; inset: 0; pointer-events: none; }
.burst svg { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; color: var(--gold); opacity: 0; }
.try__bar { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 8px 0 16px; }
.try__bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blush), var(--rose)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-back); }

.habits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.habit {
  width: 100%; display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 10px 14px;
  background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 700; text-align: left;
  touch-action: manipulation;
  transition: background-color .2s, border-color .2s, transform .15s var(--ease-out);
}
.habit:active { transform: scale(.98); }
.habit__box {
  flex: none; width: 28px; height: 28px; border-radius: 9px;
  background: #fff; border: 2px solid var(--blush);
  display: grid; place-items: center; color: #fff;
  transition: background-color .2s, border-color .2s;
}
.habit__box svg { width: 18px; height: 18px; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s var(--ease-out) .05s; }
.habit[aria-pressed="true"] { background: var(--soft); border-color: var(--blush); }
.habit[aria-pressed="true"] .habit__box { background: var(--rose); border-color: var(--rose); }
.habit[aria-pressed="true"] .habit__box svg { stroke-dashoffset: 0; }

/* Panduan: habit pertama bergoyang + kotaknya berdenyut sampai ada yang dicentang */
.habit__hint { display: none; }
.habit.is-hint { position: relative; border-color: var(--blush); }
.habit.is-hint .habit__box { position: relative; }
.habit.is-hint .habit__box::after {
  content: ""; position: absolute; inset: -4px; border-radius: 12px;
  border: 2px solid var(--rose); opacity: 0;
  animation: ping 1.6s var(--ease-out) infinite;
}
/* label kecil menempel di garis atas baris (tidak memakan ruang teks) */
.habit.is-hint .habit__hint {
  display: block; position: absolute; top: -12px; right: 14px;
  padding: 3px 10px; border-radius: 99px;
  background: var(--rose); color: #fff; font-size: .74rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 2px 0 var(--rose-dark);
  animation: hint-poke 1.2s ease-in-out infinite;
}
.js-motion .habit.is-hint { animation: habit-nudge 3s ease-in-out infinite 1.2s; }
@keyframes hint-poke { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes habit-nudge {
  0%, 70%, 100% { transform: none; }
  74% { transform: translateX(-5px) rotate(-1deg); }
  78% { transform: translateX(5px) rotate(1deg); }
  82% { transform: translateX(-4px); }
  86% { transform: translateX(3px); }
  90% { transform: none; }
}
.is-offscreen .habit.is-hint,
.is-offscreen .habit.is-hint *,
.is-offscreen .habit.is-hint *::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .habit.is-hint, .habit.is-hint .habit__hint, .habit.is-hint .habit__box::after { animation: none; }
}

.try__mood { padding: 22px; text-align: center; }
.mood-face {
  position: relative;
  width: min(48vw, 180px); aspect-ratio: 1; margin: 14px auto 0;
  display: grid; place-items: center;
}
.mood-face::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: var(--mood); opacity: .45;
  transition: background-color .35s;
}
.mood-face img { position: relative; width: 88%; }
.mood-name { margin: 6px 0 14px; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mood {
  display: grid; justify-items: center; gap: 4px;
  padding: 8px 2px; border-radius: 14px;
  background: transparent; border: 2px solid transparent;
  font-size: .72rem; font-weight: 800; color: var(--muted);
  touch-action: manipulation;
  transition: background-color .2s, border-color .2s, transform .15s var(--ease-out);
}
.mood img { width: 100%; max-width: 54px; border-radius: 50%; background: color-mix(in srgb, var(--mood) 45%, #fff); }
.mood:active { transform: scale(.94); }
.mood.is-active { border-color: var(--mood); background: color-mix(in srgb, var(--mood) 18%, #fff); color: var(--cocoa); }
.try__note { margin: 16px 0 0; font-size: .92rem; color: var(--muted); }

/* ==========================================================================
   FITUR
   ========================================================================== */
.features { background: var(--card); border-radius: 48px 48px 0 0; }
.feat-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  /* sedikit lebih ringkas supaya 2 baris kartu muat satu layar laptop setelah klik menu Fitur */
  .feat { padding: 14px 20px 18px; }
  .feat .feat__art { height: 112px; }
  .feat h3 { margin-top: 12px; }
}

.feat {
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px 24px;
  box-shadow: 0 8px 0 var(--blush);
}
/* Transisi hover baru aktif setelah GSAP selesai reveal, supaya tidak saling tarik */
.feat.is-ready, html:not(.js-motion) .feat { transition: transform .35s var(--ease-back); }
@media (hover: hover) {
  .feat:hover { transform: translateY(-6px) rotate(-.6deg); }
  .feat:nth-child(even):hover { transform: translateY(-6px) rotate(.6deg); }
}
.feat h3 { font-size: 1.4rem; margin-top: 18px; }
.feat p { margin: 8px 0 0; color: var(--muted); font-size: 1rem; }
.feat__art {
  height: 150px; border-radius: 20px; background: var(--card);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  overflow: hidden; position: relative; padding: 12px;
}
.feat__art--stages img { width: 25%; }
.feat__art--moods { gap: 6px; }
.feat__art--moods span { width: 17%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--mood) 50%, #fff); display: grid; place-items: center; }
.feat__art--moods img { width: 92%; }
.feat__art--bars { flex-direction: column; align-items: stretch; justify-content: center; gap: 12px; padding: 16px 20px; }
.rbar span { display: block; font-size: .8rem; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.rbar i { display: block; height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.rbar b { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blush), var(--rose)); transform: scaleX(var(--w)); transform-origin: left; }
.feat__art--dash { justify-content: space-between; padding: 12px 8px 12px 16px; }
.dash-stat { display: grid; padding: 10px 12px; background: var(--soft); border-radius: 14px; line-height: 1.1; }
.dash-stat b { font-family: var(--font-display); font-size: 1.5rem; color: var(--rose); }
.dash-stat span { font-size: .72rem; font-weight: 800; color: var(--muted); }
.feat__art--dash img { width: 38%; }
.feat__art--chips { flex-wrap: wrap; align-content: center; gap: 8px; padding: 16px; }
.hchip { padding: 7px 12px; border-radius: 99px; background: var(--soft); font-weight: 800; font-size: .85rem; color: var(--rose); }
.hchip--add { background: var(--rose); color: #fff; }
.feat__art--count { flex-direction: column; gap: 0; background: linear-gradient(160deg, #fff 0%, var(--soft) 100%); }
.count-num { font-family: var(--font-display); font-weight: 700; font-size: 4rem; line-height: 1; color: var(--rose); font-variant-numeric: tabular-nums; }
.count-cap { font-weight: 800; color: var(--muted); font-size: .9rem; }

/* ==========================================================================
   SCREENSHOT PREVIEW
   ========================================================================== */
.preview { background: var(--card); padding-top: 0; }
.device-wrap { perspective: 1400px; max-width: 980px; margin-inline: auto; }

/* iPad landscape: bodi hitam + bingkai aluminium, kamera depan di sisi panjang atas.
   Ukuran bar di dalam layar pakai cqw supaya proporsinya sama di HP maupun desktop. */
.device {
  --bezel: clamp(9px, 1.7cqw, 17px);
  position: relative;
  container-type: inline-size;
  padding: var(--bezel);
  border-radius: calc(var(--bezel) * 2.1);
  background: #111113;
  box-shadow:
    0 0 0 1.5px #d4d4d8,
    0 0 0 3px #a9a9ae,
    0 0 0 4px #e9e9ec,
    0 34px 70px -18px rgba(90, 62, 54, .38),
    0 12px 24px -12px rgba(90, 62, 54, .25),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
  transform-origin: 50% 100%;
}
.device__cam {
  position: absolute; left: 50%; top: calc(var(--bezel) / 2); z-index: 2;
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3b4a63 0%, #121418 60%);
  box-shadow: 0 0 0 1px #26262a;
}
.device__screen {
  position: relative; aspect-ratio: 2388 / 1668;
  display: flex; flex-direction: column;
  border-radius: calc(var(--bezel) * 1.15); overflow: hidden;
  background: var(--cream);
}
/* kilau kaca tipis */
.device__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 32%);
}
.device__status {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8cqw 2.4cqw .2cqw;
  font: 700 max(6px, 1.15cqw)/1 var(--font-body); color: var(--cocoa);
  background: #fff;
}
.device__icons { display: inline-flex; align-items: center; gap: .5cqw; }
.device__icons svg { width: max(8px, 1.5cqw); height: auto; }
.device__icons b { font-weight: 700; }
.device__batt {
  position: relative; display: inline-block;
  width: max(14px, 2.3cqw); height: max(7px, 1.1cqw);
  border: 1px solid currentColor; border-radius: 3px; padding: 1px;
}
.device__batt::after { content: ""; position: absolute; right: -3px; top: 30%; width: 1.5px; height: 40%; border-radius: 1px; background: currentColor; }
.device__batt i { display: block; width: 87%; height: 100%; border-radius: 1.5px; background: var(--sage); }
.device__app {
  display: flex; align-items: center; gap: 1.4cqw;
  padding: .7cqw 2.4cqw 1cqw;
  background: #fff; border-bottom: 1px solid var(--line);
  color: var(--rose);
}
.device__back { width: max(6px, 1cqw); height: auto; flex: none; }
.device__file { flex: 1; font: 600 max(8px, 1.5cqw)/1.2 var(--font-display); color: var(--cocoa); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device__more { display: inline-flex; gap: max(2px, .35cqw); }
.device__more i { width: max(3px, .45cqw); height: max(3px, .45cqw); border-radius: 50%; background: currentColor; }
.device__view { position: relative; flex: 1; min-height: 0; }
.device__sheets {
  display: flex; gap: .4cqw; overflow: hidden;
  padding: .7cqw 1.6cqw .9cqw;
  background: #F7EFE8; border-top: 1px solid var(--line);
  font: 700 max(7px, 1.12cqw)/1 var(--font-body); color: var(--muted); white-space: nowrap;
}
.device__sheets span { padding: .55cqw 1.2cqw; border-radius: .7cqw; transition: background-color .25s, color .25s; }
.device__sheets span[data-for] { cursor: pointer; }
.device__sheets span.is-active { background: #fff; color: var(--rose); box-shadow: 0 1px 0 var(--line); }

/* tombol perbesar: menutupi layar, label kecil di pojok kanan bawah */
.device__zoom {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 1.8cqw; border: 0; background: none;
  cursor: zoom-in; -webkit-tap-highlight-color: transparent;
}
.device__zoom[hidden] { display: none; }
.device__zoom span {
  display: inline-flex; align-items: center; gap: max(4px, .6cqw);
  padding: max(5px, .7cqw) max(9px, 1.3cqw); border-radius: 99px;
  background: rgba(90, 62, 54, .82); color: #fff;
  font: 800 max(10px, 1.35cqw)/1 var(--font-body);
  box-shadow: 0 4px 12px rgba(90, 62, 54, .25);
  transition: opacity .25s, transform .25s var(--ease-out);
}
.device__zoom svg { width: max(12px, 1.6cqw); height: auto; }
@media (hover: hover) and (pointer: fine) {
  /* desktop: cukup ikon kaca pembesar, muncul saat kursor di atas layar */
  .device__zoom span { opacity: 0; transform: translateY(6px); font-size: 0; gap: 0; }
  .device__zoom:hover span, .device__zoom:focus-visible span { opacity: 1; transform: none; }
}
.device__zoom:focus-visible { outline: 3px solid var(--rose); outline-offset: -3px; border-radius: inherit; }

/* layar zoom */
.zoom {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(46, 30, 26, .985); color: #fff;
}
.zoom::backdrop { background: transparent; }
.zoom[open] { display: flex; flex-direction: column; animation: zoom-fade .25s ease-out; }
.zoom__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
}
.zoom__title { font: 600 1.15rem/1.2 var(--font-display); }
.zoom__close {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
}
.zoom__close svg { width: 18px; height: 18px; }
.zoom__scroll {
  flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain;
  display: grid; place-items: center; padding: 0 16px;
}
.zoom__img {
  display: block; width: min(100%, 1800px); height: auto; border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.zoom[open] .zoom__img { animation: zoom-pop .35s var(--ease-out); }
.zoom__hint { display: none; margin: 0; padding: 12px 16px max(16px, env(safe-area-inset-bottom)); text-align: center; font-weight: 700; font-size: .9rem; opacity: .75; }
@keyframes zoom-fade { from { opacity: 0; } }
@keyframes zoom-pop { from { opacity: 0; transform: scale(.92); } }
/* HP tegak: gambar dibuat tinggi supaya tulisannya terbaca, lalu digeser ke samping */
@media (max-width: 759px) {
  .zoom__scroll { place-items: center start; }
  .zoom__img { width: auto; max-width: none; height: min(64dvh, 560px); }
  .zoom__hint { display: block; }
}
html.is-zoom { overflow: hidden; }
.shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .4s var(--ease-out); }
.shot.is-active { opacity: 1; }
.shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; transition: opacity .3s; }
.shot.is-loaded > img { opacity: 1; }
.shot.is-loaded .shot__ph { display: none; }
.shot__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center; align-content: center; gap: 4px;
  background-color: var(--cream);
  background-image:
    linear-gradient(var(--line) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--line) 1.5px, transparent 1.5px);
  background-size: 64px 32px;
  font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: clamp(.9rem, 2.4vw, 1.2rem);
}
.shot__ph img { width: clamp(80px, 22%, 160px); }
.shot__ph span { background: var(--card); padding: 4px 14px; border-radius: 99px; border: 2px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.tab {
  min-height: 44px; padding: 8px 18px; border-radius: 99px;
  background: var(--cream); border: 2px solid var(--line);
  font-weight: 800; color: var(--muted);
  touch-action: manipulation;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab.is-active { background: var(--rose); border-color: var(--rose); color: #fff; }

/* ==========================================================================
   HARGA (satu kartu + bonus 2027 + tangga harga)
   ========================================================================== */
.pricing { overflow-x: clip; }
.price-card {
  position: relative;
  max-width: 520px; margin-inline: auto;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 36px;
  box-shadow: 0 10px 0 var(--blush);
}
/* pita bonus kecil di atas kartu */
.price-card__bonus {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0; padding: 10px 16px;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(170deg, #FFF8EA 0%, #FFEFD3 100%);
  border-bottom: 2px dashed #F3D9A0;
  color: #8A5E10; font-size: .92rem; font-weight: 700; text-align: center; line-height: 1.35;
}
.price-card__bonus svg { flex: none; width: 18px; height: 18px; color: var(--gold); }
.price-card__bonus b { font-weight: 800; }

.price-card__body { padding: 20px 18px 18px; }

/* panel harga: pusat perhatian kartu */
.price-hero {
  position: relative;
  display: grid; justify-items: center; gap: 10px;
  padding: 18px 14px 16px;
  border-radius: 26px;
  background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, var(--soft) 70%);
  border: 2px solid #F6D3DF;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.price-hero__tier {
  margin: 0; padding: 5px 12px; border-radius: 99px;
  background: #fff; color: var(--rose);
  font-weight: 700; font-size: .85rem;
  box-shadow: 0 2px 0 #F6D3DF;
}
.price-hero__tier b { font-weight: 800; }
.price-hero__price { display: grid; justify-items: center; gap: 2px; margin: 0; }

/* harga normal yang dicoret: garisnya digambar (bukan text-decoration) supaya bisa dianimasikan */
.price-was {
  position: relative; display: inline-block;
  text-decoration: none;
  color: var(--muted); font-weight: 800; font-size: 1.1rem;
}
.price-was__line {
  position: absolute; left: -6%; right: -6%; top: 52%;
  height: 3px; border-radius: 3px;
  background: var(--rose);
  transform: rotate(-9deg); transform-origin: left center;
}

.price-big { position: relative; display: inline-block; transform-origin: 50% 85%; }
.price-big__num {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700; color: var(--rose);
  font-size: clamp(3.3rem, 16vw, 4.5rem); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 0 #F6D3DF;
}
/* baris harga normal dicoret + stiker "Hemat" */
.price-hero__was { display: flex; align-items: center; justify-content: center; gap: 10px; }
.price-hero__was[hidden] { display: none; }
.price-save { display: inline-block; }
.price-save__in {
  display: inline-block;
  padding: 5px 10px; border-radius: 12px;
  background: var(--sage); color: #fff;
  font-weight: 800; font-size: .82rem; white-space: nowrap;
  box-shadow: 0 3px 0 #3E8A63;
  transform: rotate(-6deg);
}
.price-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.price-burst i {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--rose); opacity: 0;
}
.price-burst i:nth-child(3n+2) { background: var(--gold); border-radius: 2px; }
.price-burst i:nth-child(3n) { background: var(--sage); width: 8px; height: 8px; }

/* meter slot (angka asli dari config) */
.slots { display: grid; justify-items: center; gap: 6px; }
.slots[hidden] { display: none; }
.slots__dots { display: flex; gap: 5px; }
.slots__dots i { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #F0C7D5; }
.slots__dots i.is-open { background: var(--rose); border-color: var(--rose); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3); }
.slots__dots--bar { width: min(220px, 70vw); height: 10px; border-radius: 99px; background: #fff; border: 2px solid #F0C7D5; overflow: hidden; }
.slots__dots--bar i { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; transform-origin: left; }
.slots__text { font-size: .82rem; font-weight: 800; color: var(--ink); }

.price-card__note { margin: 12px 0 0; color: var(--muted); font-size: .9rem; text-align: center; }

/* loop kecil setelah animasi masuk selesai (hanya transform) */
.price-card.is-live .price-big__num { animation: price-nudge 4.5s ease-in-out infinite; }
.price-card.is-live .price-save__in { animation: save-rock 2.8s ease-in-out infinite; }
.price-card.is-live .slots__dots i.is-next { animation: slot-blink 1.6s ease-in-out infinite; }
@keyframes price-nudge {
  0%, 78%, 100% { transform: none; }
  82% { transform: rotate(-4deg) scale(1.05); }
  86% { transform: rotate(3deg) scale(1.05); }
  90% { transform: rotate(-2deg) scale(1.02); }
  94% { transform: rotate(1deg); }
}
@keyframes save-rock { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(4deg) scale(1.08); } }
@keyframes slot-blink { 0%, 100% { transform: scale(1); } 50% { transform: scale(.7); } }

/* kilau lewat di tombol beli */
.btn--shine .btn__face { position: relative; overflow: hidden; isolation: isolate; }
.btn--shine .btn__face::after {
  content: ""; position: absolute; inset: -20% auto -20% 0; width: 38%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .45) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
  z-index: -1; pointer-events: none;
}
.price-card.is-live .btn--shine .btn__face::after { animation: shine 3.6s ease-in-out infinite 0.6s; }
@keyframes shine { 0%, 60% { transform: translateX(-160%) skewX(-18deg); } 85%, 100% { transform: translateX(330%) skewX(-18deg); } }

.is-offscreen .price-card *,
.is-offscreen .price-card *::after { animation-play-state: paused; }

.price-card__list { list-style: none; margin: 18px 0 22px; padding: 16px 0 0; border-top: 2px solid var(--soft); display: grid; gap: 10px; }
.price-card__list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: .98rem; }
.price-card__list svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--sage); color: #fff; margin-top: 1px; }
.price-card__fine { margin: 12px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* tangga harga: 3 tahap dalam satu baris kecil */
.ladder {
  position: relative;
  padding: 16px 12px 18px;
  border-top: 2px solid var(--soft);
  background: #FFFBF6;
  border-radius: 0 0 34px 34px;
  text-align: center;
}
.ladder__steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.ladder__line { position: absolute; left: calc(16.67% + 4px); right: calc(16.67% + 4px); top: 25px; height: 4px; border-radius: 99px; background: var(--line); }
.ladder__line i { display: block; height: 100%; border-radius: 99px; background: var(--rose); transform: scaleX(0); transform-origin: left; }
.ladder__step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 2px; }
.ladder__dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--line); margin-bottom: 6px; }
.ladder__step b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--muted); }
.ladder__step > span:last-child { font-size: .72rem; font-weight: 700; color: var(--muted); line-height: 1.3; }
.ladder__step.is-passed b { text-decoration: line-through; opacity: .6; }
.ladder__step.is-passed .ladder__dot { background: var(--rose); border-color: var(--rose); }
.ladder__step.is-active .ladder__dot { position: relative; background: var(--rose); border-color: var(--blush); transform: scale(1.35); }
.ladder__step.is-active .ladder__dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--rose); opacity: 0;
}
.price-card.is-live .ladder__step.is-active .ladder__dot::after { animation: ping 1.8s var(--ease-out) infinite; }
.ladder__step.is-active b { color: var(--rose); font-size: 1.1rem; }
.ladder__step.is-active > span:last-child { color: var(--ink); }

@media (min-width: 640px) {
  .price-card__body { padding: 26px 30px 22px; }
  .price-hero { padding: 22px 20px 18px; }
  .ladder__step > span:last-child { font-size: .78rem; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding-top: 0; }
.faq__list { display: grid; gap: 12px; }
.qa { background: var(--card); border: 2px solid var(--line); border-radius: 22px; }
.qa__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 16px 20px;
  background: none; border: 0; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  touch-action: manipulation;
}
.qa__icon { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); }
.qa__icon::before, .qa__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; margin: -1.25px 0 0 -6px;
  background: var(--rose); border-radius: 2px;
  transition: transform .35s var(--ease-back);
}
.qa__icon::after { transform: rotate(90deg); }
.qa__q[aria-expanded="true"] .qa__icon::after { transform: rotate(0deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.qa__a > div { overflow: hidden; min-height: 0; }
.qa__a p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }

/* ==========================================================================
   FOOTER BESAR: langit senja → awan berlapis → wordmark → Momo naik dari balik awan
   Awan dibuat JS (lingkaran ber-gradien, seeded) sesuai lebar layar.
   ========================================================================== */
.bigfoot {
  --word: clamp(54px, 14vw, 220px);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: clamp(640px, 100svh, 940px);
  /* mulai dari krem halaman → menyambung mulus, makin ke bawah makin pink */
  background: linear-gradient(180deg, var(--cream) 0%, #FDEBEE 14%, #F8D3DE 32%, #EFAFC5 52%, #F4BFD0 68%, #FFE6EE 86%);
  color: var(--cocoa);
}
@media (max-width: 759px) {
  .bigfoot { --word: clamp(50px, 14.5vw, 120px); min-height: clamp(620px, 90svh, 760px); }
}
.bigfoot__glow {
  position: absolute; left: 50%; bottom: 14%; z-index: 0;
  width: 130vw; height: 58%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 244, 248, .95), rgba(255, 244, 248, 0));
  pointer-events: none;
}
.sky--dusk { bottom: 46%; }
.sky--dusk .sky__c svg { color: rgba(255, 255, 255, .55); }

.bigfoot__top {
  position: relative; z-index: 3;
  display: grid; justify-items: center; gap: 20px;
  padding-top: clamp(64px, 10vw, 112px);
  text-align: center;
}
.bigfoot__title {
  margin: 0; max-width: 16ch;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.75rem, 5vw, 3rem); line-height: 1.1;
}
.bigfoot__title span { color: var(--rose); }

.bigfoot__scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bigfoot__layer { position: absolute; left: -48px; right: -48px; bottom: 0; }
.bigfoot__layer svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bigfoot__layer--back { height: 58%; }
.bigfoot__layer--mid { height: 44%; }
.bigfoot__layer--front { height: 22%; }

.bigfoot__word {
  position: absolute; left: 0; right: 0; bottom: 24%;
  margin: 0; text-align: center; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--word); line-height: .8; letter-spacing: -.03em;
  color: var(--cocoa);
}
.bigfoot__word-in { display: inline-block; }
.bigfoot__ch { display: inline-block; transform-origin: 50% 100%; }
.bigfoot__gap { display: inline-block; width: .2em; }

/* Momo berdiri di belakang huruf & awan; wrapper luar = posisi, dalam = animasi naik */
.bigfoot__momo {
  position: absolute; left: 50%; bottom: calc(24% + var(--word) * .42);
  width: clamp(150px, 44vw, 210px);
  transform: translateX(-50%);
}
.bigfoot__rig { pointer-events: auto; }
.bigfoot__burst { inset: 0; pointer-events: none; }
.bigfoot__burst svg { position: absolute; left: 50%; top: 40%; width: 20px; height: 20px; margin: -10px 0 0 -10px; color: var(--gold); opacity: 0; }
@media (min-width: 760px) {
  .bigfoot__momo { left: 76%; bottom: calc(24% + var(--word) * .3); width: clamp(180px, 21vw, 300px); }
}

.bigfoot__meta {
  position: relative; z-index: 3; margin-top: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  color: var(--cocoa); font-size: .85rem; font-weight: 700;
}
.bigfoot__brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.bigfoot__brand img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 2px 0 rgba(90, 62, 54, .15); }
.bigfoot__brand b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.bigfoot__fine { margin: 0; opacity: .8; font-weight: 600; }
@media (max-width: 759px) { .bigfoot__meta { justify-content: center; text-align: center; } }

/* Sticky CTA (mobile) */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px;
  background: rgba(255, 255, 255, .97);
  border: 2px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(90, 62, 54, .14);
  transform: translateY(calc(100% + 40px));
  transition: transform .5s var(--ease-out);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__info { display: grid; line-height: 1.15; }
.sticky-cta__info b { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--rose); }
.sticky-cta__info span { font-size: .78rem; font-weight: 800; color: var(--muted); }
.sticky-cta .btn__face { min-height: 44px; padding: 10px 20px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ==========================================================================
   HALAMAN TERIMA KASIH
   ========================================================================== */
.ty-hero { position: relative; overflow: hidden; text-align: center; padding: 28px 0 40px; }
.ty-hero__inner { position: relative; max-width: 640px; }
.ty-hero__momo { position: relative; width: min(56vw, 230px); aspect-ratio: 1; margin: 0 auto 10px; }
.ty-hero__jump img { width: 100%; }
.ty-confetti { position: absolute; left: 50%; top: 55%; width: 0; height: 0; }
.ty-confetti svg { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; opacity: 0; }
.ty-title { margin: 16px 0 0; font-size: clamp(2.2rem, 8.5vw, 3.6rem); line-height: 1.05; text-wrap: balance; }

.ty-steps { display: grid; gap: 20px; max-width: 720px; padding-bottom: 24px; }
.ty-step { position: relative; padding: 24px 20px 22px; display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.ty-step__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--rose); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
}
.ty-step__body p { margin: 8px 0 0; color: var(--muted); }
.ty-step__body b { color: var(--cocoa); }
.ty-step__actions { display: grid; gap: 12px; margin-top: 18px; }
.ty-hint { font-size: .9rem; }
.btn-ghost {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid var(--rose); background: var(--card);
  color: var(--rose); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-decoration: none;
  touch-action: manipulation;
  transition: background-color .2s;
}
.btn-ghost:hover { background: var(--soft); }
.btn--tele { background: #1F6E9C; }
.btn--tele .btn__face { background: #2AABEE; }
@media (max-width: 520px) { .ty-step { grid-template-columns: 1fr; } }

.ty-video { margin-top: 16px; position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--soft); }
.ty-video.is-vertical { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }
.ty-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ty-video__empty, .ty-video__link {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; color: var(--muted); text-decoration: none;
}
.ty-video__empty img, .ty-video__link img { width: clamp(90px, 30%, 150px); }
.ty-video__play { position: absolute; inset: 0; padding: 0; border: 0; background: #000; }
.ty-video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.ty-video__btn {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  display: grid; place-items: center; border-radius: 50%; background: var(--rose); color: #fff;
  box-shadow: 0 6px 0 var(--rose-dark);
  transition: transform .2s var(--ease-back);
}
.ty-video__btn svg { width: 34px; height: 34px; margin-left: 4px; }
.ty-video__play:hover .ty-video__btn { transform: scale(1.08); }

.ty-guide { padding-top: clamp(48px, 8vw, 80px); }
.guide { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.guide__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 18px; }
.guide__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--rose); font-family: var(--font-display); font-weight: 600; }
.guide__item b { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.guide__item p { margin: 4px 0 0; color: var(--muted); }
.guide__item p b { font-family: var(--font-body); font-size: 1rem; color: var(--cocoa); }
.ty-safe { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 18px; border-radius: 22px; background: #EAF6EF; border: 2px solid #CBE8D7; }
.ty-safe svg { flex: none; width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: var(--sage); color: #fff; }
.ty-safe p { margin: 0; }
.ty-tip { margin-top: 16px; padding: 18px; border-radius: 22px; background: var(--card); border: 2px dashed var(--blush); }
.ty-tip p:last-child { margin: 6px 0 0; color: var(--muted); }
.ty-tip b { color: var(--cocoa); }

/* ==========================================================================
   Status awal animasi (hanya jika motion diizinkan & JS aktif)
   ========================================================================== */
.js-motion [data-reveal],
.js-motion [data-feat],
.js-motion [data-hero] { opacity: 0; }
.js-motion .squiggle path { stroke-dasharray: 340; stroke-dashoffset: 340; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
