/* Landing page Play Calistung — mengikuti bahasa visual beranda portal
   (apps/portal/src/styles/global.css) dan tm-ai-workspace/resources/style-guide.md:
   header putih + merek, hero putih dengan judul besar tegas, latar krem di bawahnya,
   kartu putih radius 16px, baris bidang bertinta, tombol ungu radius 12px. */
@font-face { font-family: Poppins; src: url("./assets/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url("./assets/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url("./assets/fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --purple: #563f7a; --purple-mid: #8562a8; --purple-deep: #3d2c5a; --purple-eyebrow: #5b3c88;
  --pink: #f5818f; --cream: #fcfbf8; --ink: #201c23; --copy: #4a3859; --muted: #6b6270; --border: #e5e5e5;
  --gold: #deae53; --teal: #0a7473;
  --radius-button: .75rem; --radius-card: 1rem; --radius-pill: 9999px;
  --shadow-card: 0 1px 2px rgba(32,28,35,.04), 0 4px 12px rgba(32,28,35,.06);
  --shadow-pop: 0 8px 24px rgba(86,63,122,.18);
  font-family: Poppins, "Avenir Next", "Segoe UI", sans-serif; text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--purple-deep); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 50; padding: .6rem 1rem; background: var(--purple-deep); color: #fff; border-radius: var(--radius-button); transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 2.5rem, 75rem); margin-inline: auto; }
.eyebrow { margin: 0 0 .5rem; color: var(--purple-eyebrow); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; line-height: 1.15; }
.lede { max-width: 40rem; margin: .7rem 0 0; color: var(--copy); font-size: 1.05rem; }
.section { padding: 3.5rem 0; }
@media (min-width: 1024px) { .section { padding: 4.5rem 0; } }

/* tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.5rem; border: 0; border-radius: var(--radius-button); font: 600 .9rem Poppins, sans-serif; color: #fff; text-decoration: none; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.15); transition: transform .15s ease, box-shadow .2s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-pop); }
.btn:active { transform: none; }
.btn-ungu { background: var(--purple); }
.btn-light { background: #fff; color: var(--purple); box-shadow: 0 0 0 1px var(--border), var(--shadow-card); }
.btn-wa { background: #1f8f4e; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* header (sama dengan portal) */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 12px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: .9rem; color: var(--ink); }
.brand small { font-size: .7rem; font-weight: 500; color: #613330; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink); text-decoration: none; transition: background-color .15s, color .15s; }
.nav a:hover { background: rgba(86,63,122,.08); color: var(--purple); }
.nav a.nav-cta { background: var(--purple); color: #fff; margin-left: .35rem; } .nav a.nav-cta:hover { background: var(--purple-deep); color: #fff; }
@media (max-width: 720px) { .nav a:not(.nav-cta) { display: none; } .brand small { display: none; } }

/* hero (putih, judul besar) */
.hero { background: #fff; padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }
.hero h1 { max-width: 15ch; font-size: clamp(2.35rem, 5vw, 4.1rem); font-weight: 700; line-height: 1.03; }
.hero .lede { font-size: 1.05rem; line-height: 1.7; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.facts li { padding: .5rem .9rem; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-card); font-size: .8rem; color: var(--muted); line-height: 1.25; }
.facts b { display: block; font-size: 1.25rem; color: var(--ink); }
.hero-art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 36rem; margin-inline: auto; }
.art-glow { position: absolute; inset: 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, #f2ecfa, rgba(242,236,250,0)); }
.ha { position: absolute; height: auto; filter: drop-shadow(0 16px 16px rgba(61,44,90,.22)); animation: bob 6s ease-in-out infinite; }
.ha.m1 { width: 40%; left: 3%; top: 26%; animation-delay: -1.5s; } .ha.m2 { width: 44%; right: 3%; top: 18%; animation-delay: -3s; } .ha.m3 { width: 42%; left: 26%; bottom: 4%; animation-delay: -.5s; }
.ha.f { filter: drop-shadow(0 8px 9px rgba(61,44,90,.25)); animation-duration: 5s; }
.f1 { width: 15%; left: 22%; top: 4%; --r: -8deg; animation-delay: -1s; } .f2 { width: 11%; right: 4%; top: 0; --r: 5deg; animation-delay: -2.2s; }
.f3 { width: 19%; left: 0; bottom: 16%; --r: -4deg; animation-delay: -3.4s; } .f4 { width: 12%; right: 2%; bottom: 24%; --r: 12deg; animation-delay: -.6s; }
.f5 { width: 14%; right: 14%; bottom: 3%; --r: 8deg; animation-delay: -4s; } .f6 { width: 15%; left: 0; top: 10%; --r: -10deg; animation-delay: -2.7s; }
.f7 { width: 8%; left: 48%; top: 2%; animation-delay: -1.8s; } .f8 { width: 10%; right: 0; top: 48%; animation-delay: -3.6s; }
.f9 { width: 10%; left: 6%; top: 58%; animation-delay: -2.4s; } .f10 { width: 10%; left: 64%; bottom: 0; --r: 10deg; animation-delay: -4.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--r, 0deg)); } }

/* baris bidang (bertinta, seperti beranda) */
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 1.5rem; }
.rows { display: grid; gap: .85rem; margin-top: 1.5rem; }
.row { display: grid; grid-template-columns: 1fr; gap: .9rem; align-items: center; padding: .65rem; border-radius: var(--radius-card); background: var(--tint); border: 1px solid var(--line); }
@media (min-width: 760px) { .row { grid-template-columns: 13rem 1fr auto; gap: 1.4rem; padding-right: 1.1rem; } }
.row img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 12px; }
.row h3 { font-size: 1.35rem; color: var(--ink-c); } .row p { margin: .2rem 0 0; color: var(--copy); font-size: .95rem; }
.row .link { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.1rem; border-radius: var(--radius-button); background: #fff; color: var(--purple); font-weight: 600; font-size: .9rem; text-decoration: none; box-shadow: 0 0 0 1px var(--border), var(--shadow-card); white-space: nowrap; }
.row .link:hover { box-shadow: 0 0 0 1px var(--purple), var(--shadow-card); }
.r-membaca { --tint: #eaf6f3; --line: #cfe7e2; --ink-c: #1f6b66; }
.r-menulis { --tint: #fdf6e7; --line: #f1e1b8; --ink-c: #8a5a0a; }
.r-berhitung { --tint: #f2ecfa; --line: #ddd0ef; --ink-c: #53287f; }

/* tampilan sebenarnya (GIF) */
.demo { background: #fff; border-block: 1px solid var(--border); }
.demo-grid { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; } }
.device { margin: 0; }
.device .who { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .8rem; padding: .3rem .85rem; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 700; }
.who.anak { background: #eaf6f3; color: #1f6b66; } .who.ortu { background: #f2ecfa; color: #53287f; }
.bezel { position: relative; padding: .7rem; border-radius: 20px; background: #26202e; box-shadow: 0 20px 36px -14px rgba(38,32,46,.4), inset 0 0 0 2px #433a4f; }
.bezel::after { content: ""; position: absolute; left: 50%; top: .28rem; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #5b5066; }
.bezel img { width: 100%; height: auto; border-radius: 8px; background: #fff; }
.device figcaption { margin-top: .9rem; color: var(--copy); font-size: .95rem; } .device figcaption b { color: var(--ink); }

/* solo / duo */
.mode-grid { display: grid; gap: 1rem; margin-top: 1.6rem; }
@media (min-width: 800px) { .mode-grid { grid-template-columns: 1fr 1fr; } }
.mode { overflow: hidden; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.mode .art { display: flex; align-items: center; justify-content: center; gap: .9rem; min-height: 10rem; padding: 1rem 1.2rem; background: var(--tint); overflow: hidden; }
.mode .art img { flex: 0 1 auto; min-width: 0; width: auto; height: auto; max-height: 7.5rem; filter: drop-shadow(0 8px 8px rgba(0,0,0,.16)); }
.mode .art .hat { max-width: 58%; } .mode .art .key { max-width: 24%; max-height: 7.2rem; }
.mode-solo { --tint: #eaf6f3; } .mode-duo { --tint: #f2ecfa; }
.mode .body { padding: 1.2rem 1.4rem 1.4rem; }
.mode h3 { font-size: 1.35rem; } .mode p { margin: .35rem 0 0; color: var(--copy); }
.mode ul { margin: .8rem 0 0; padding: 0; list-style: none; display: grid; gap: .4rem; font-size: .95rem; }
.mode li::before { content: "✓"; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; margin-right: .55rem; border-radius: 50%; background: var(--purple); color: #fff; font-size: .7rem; font-weight: 700; }

/* lemari lencana (acak) */
.cab-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; align-items: center; }
@media (min-width: 900px) { .cab-grid { grid-template-columns: 1.2fr .8fr; gap: 2.5rem; } }
.cabinet { padding: 1.1rem; border-radius: var(--radius-card); background: #f4eefa; border: 1px solid #ddd0ef; box-shadow: var(--shadow-card); }
.cab-bar { display: flex; align-items: center; gap: 1rem; padding: .2rem .3rem .8rem; font-weight: 700; color: var(--purple); }
.cab-bar small { font-weight: 400; color: var(--muted); }
.progress { flex: 1; height: 8px; border-radius: 99px; background: #fff; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.1); }
.progress i { display: block; width: 0; height: 100%; border-radius: 99px; background: var(--purple); transition: width .4s cubic-bezier(.3,1.4,.5,1); }
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: .9rem .6rem; border-radius: 12px; background: #fbf9fe; box-shadow: inset 0 2px 8px rgba(86,63,122,.08); }
@media (min-width: 560px) { .shelf { grid-template-columns: repeat(6, 1fr); } }
.slot { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.slot img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) brightness(1.1) opacity(.35); transform: scale(.88); transition: filter .3s, transform .3s; }
.slot::after { content: "🔒"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1rem; opacity: .7; }
.slot.on img { filter: drop-shadow(0 5px 5px rgba(61,44,90,.28)); transform: scale(1); } .slot.on::after { content: none; }
.slot.pop img { animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(.7) rotate(-12deg); } 60% { transform: scale(1.2) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
.cab-note { min-height: 1.6rem; margin: .8rem .3rem 0; font-size: .9rem; color: var(--copy); } .cab-note b { color: var(--purple); }
.cab-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; }
.cab-actions .btn { min-height: 40px; padding: .5rem 1.1rem; font-size: .85rem; }
.cab-text .steps { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: .7rem; counter-reset: s; }
.cab-text li { counter-increment: s; position: relative; padding-left: 2.8rem; color: var(--copy); }
.cab-text li::before { content: counter(s); position: absolute; left: 0; top: .1rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 700; font-size: .85rem; }
.cab-text li b { display: block; color: var(--ink); }

/* stiker (promo) */
.sticker { position: relative; overflow: hidden; color: #fff; background: radial-gradient(48rem 26rem at 12% 0%, #6b4d98, transparent 60%), radial-gradient(40rem 26rem at 100% 100%, #7a3f7b, transparent 62%), var(--purple-deep); }
.sticker h2 { color: #fff; } .sticker .eyebrow { color: #f3d58b; } .sticker .lede { color: #e4d9f1; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti img { position: absolute; width: 4.2rem; filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); opacity: .95; }
.sticker > .wrap { position: relative; z-index: 1; }
.stk-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .stk-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.bundles { display: grid; gap: .75rem; margin-top: 1.6rem; }
.bundle { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: var(--radius-card); background: #fff; color: var(--ink); box-shadow: 0 14px 28px -12px rgba(0,0,0,.45); }
.bundle h3 { font-size: 1.05rem; color: var(--purple); } .bundle p { grid-column: 1; margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.bundle .btn { grid-column: 2; grid-row: 1 / span 2; min-height: 42px; padding: .55rem 1.1rem; font-size: .85rem; }
.bundle.best { outline: 3px solid var(--gold); position: relative; }
.bundle.best::before { content: "Paling lengkap"; position: absolute; top: -.8rem; right: 1rem; padding: .15rem .7rem; border-radius: 99px; background: var(--gold); color: #3a2503; font-size: .72rem; font-weight: 700; }
@media (max-width: 520px) { .bundle { grid-template-columns: 1fr; } .bundle .btn { grid-column: 1; grid-row: auto; margin-top: .5rem; } }
.small-note { margin: 1rem 0 0; font-size: .8rem; color: #cdbfe0; }
.sheets { position: relative; width: 100%; aspect-ratio: 1 / .98; max-width: 40rem; margin-inline: auto; }
.sheet-set { position: absolute; top: 44%; width: 50%; aspect-ratio: 210 / 297; }
.sheet-set.a { left: 27%; transform: translate(-50%, -50%) rotate(-4deg); z-index: 1; } .sheet-set.b { left: 73%; transform: translate(-50%, -48%) rotate(4deg); z-index: 2; }
.sheet { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 210 / 297; border-radius: 4px; background: #fff; box-shadow: 0 20px 36px -12px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.08); transition: transform .55s cubic-bezier(.2,.9,.3,1.1); overflow: hidden; }
.sheet img { width: 100%; height: 100%; object-fit: cover; }
.sheet:nth-child(1) { transform: translate(-7%, 3%) rotate(-3deg); } .sheet:nth-child(2) { transform: translate(3%, 1%) rotate(1.5deg); } .sheet:nth-child(3) { transform: none; z-index: 3; }
.sheets:hover .sheet-set.a .sheet:nth-child(1) { transform: translate(-30%, 4%) rotate(-9deg); } .sheets:hover .sheet-set.a .sheet:nth-child(2) { transform: translate(-12%, 1%) rotate(-3deg); }
.sheets:hover .sheet-set.b .sheet:nth-child(1) { transform: translate(8%, 4%) rotate(3deg); } .sheets:hover .sheet-set.b .sheet:nth-child(2) { transform: translate(24%, 1%) rotate(9deg); }
.sheet-label { position: absolute; left: 50%; bottom: -2.6rem; transform: translateX(-50%); white-space: nowrap; padding: .35rem .9rem; border-radius: 99px; background: #fff; color: var(--purple); font-size: .8rem; font-weight: 700; box-shadow: 0 6px 12px rgba(0,0,0,.25); z-index: 5; }
.peel { position: absolute; z-index: 6; filter: drop-shadow(0 10px 10px rgba(0,0,0,.4)); }
.peel.p1 { width: 17%; left: 40%; top: 3%; transform: rotate(-14deg); } .peel.p2 { width: 15%; right: 1%; top: 6%; transform: rotate(12deg); }
.peel.p3 { width: 14%; left: 0; bottom: 14%; transform: rotate(-8deg); } .peel.p4 { width: 16%; right: -1%; bottom: 17%; transform: rotate(9deg); }
.how { display: grid; gap: .75rem; margin: 2.6rem 0 0; padding: 0; list-style: none; counter-reset: h; }
@media (min-width: 720px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { counter-increment: h; position: relative; padding: 1rem 1.1rem 1rem 3.4rem; border-radius: var(--radius-card); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: .92rem; color: #e4d9f1; }
.how li::before { content: counter(h); position: absolute; left: 1rem; top: 1rem; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--gold); color: #3a2503; font-weight: 700; }
.how b { display: block; color: #fff; }

/* penutup & footer */
.closing { text-align: center; background: #fff; border-top: 1px solid var(--border); }
.closing .lede { margin-inline: auto; } .closing .btn-row { justify-content: center; }
.site-footer { padding: 1.6rem 0; background: var(--cream); border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.site-footer a { color: var(--purple); font-weight: 600; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 640px) { .confetti { display: none; } .hero { padding-top: 1.8rem; } .hero-art { max-width: 24rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }
