/* Bagian "Satu toko, banyak jalan pintas": tab kiri, HP tengah, angka besar kanan.
   Di laptop/PC bagian ini menempel dan isinya berganti saat discroll.
   Di HP/tablet tegak: tab jadi deretan tombol di atas dan berganti sendiri. */
.cerita { background: linear-gradient(180deg, #ffffff 0%, #f2f8f9 100%); padding: var(--s-9) 0 0; height: auto !important; min-height: 0 !important; }
.cr-intro { text-align: center; display: grid; gap: var(--s-4); justify-items: center; margin-bottom: var(--s-6); }
.cr-intro h2 { font-weight: 800; max-width: none; width: 100%; margin-inline: auto; text-align: center; font-size: clamp(42px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -0.045em; color: #10171f; }
.cr-intro h2 br { display: block; }
.cr-intro p { color: var(--p-muted); font-size: clamp(17px, 1.55vw, 22px); line-height: 1.5; max-width: 52ch; }
.cr-intro > * { justify-self: center !important; margin-inline: auto !important; text-align: center; }

.cr-track { position: relative; }
.cr-grid { display: grid; grid-template-columns: minmax(170px, 250px) auto minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }

/* tab kiri */
.cr-tabs { display: grid; gap: 12px; align-content: center; }
.cr-tabs button { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 999px; border: 0; background: #e8f1f3; color: #33454a; font: 700 clamp(17px, 1.5vw, 22px)/1 var(--font-text); letter-spacing: -0.01em; cursor: pointer; text-align: left; transition: background .35s, color .35s, transform .2s; }
.cr-tabs button:hover { transform: translateX(3px); color: var(--p-ink); }
.cr-tabs button[aria-selected="true"] { background: #043f49; color: #fff; box-shadow: 0 14px 30px -16px rgb(4 63 73 / .7); }
.cr-tabs button[aria-selected="true"]:hover { transform: none; }
.cr-ic { width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.cr-ic--sheet { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9.5h18M9.5 9.5V20'/%3E%3C/svg%3E"); }
.cr-ic--term { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='m7 10 3 2.5L7 15M12.5 15H17'/%3E%3C/svg%3E"); }
.cr-ic--konten { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='6' y='3' width='12' height='18' rx='2.5'/%3E%3Cpath d='m10.5 9.5 4 2.5-4 2.5z'/%3E%3C/svg%3E"); }
.cr-ic--belajar { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2 9.5 12 5l10 4.5-10 4.5z'/%3E%3Cpath d='M6 11.5V16c2.5 2.2 9.5 2.2 12 0v-4.5'/%3E%3C/svg%3E"); }

/* HP tengah */
.cr-phone { display: grid; place-items: center; }
.cr-hp { --ph: min(calc(100svh - var(--nav) - 72px), 660px); height: var(--ph); aspect-ratio: 9 / 19.2; padding: calc(var(--ph) * .016); border-radius: calc(var(--ph) * .085); background: #0f151b; box-shadow: 0 0 0 3px #2a343d inset, 0 50px 80px -40px rgb(4 40 48 / .55); }
.cr-scr { position: relative; height: 100%; border-radius: calc(var(--ph) * .07); background: #fff; overflow: hidden; font-size: calc(var(--ph) * .0215); color: #13202a; display: flex; flex-direction: column; }
.cr-status { display: flex; justify-content: space-between; align-items: center; padding: 1.3em 1.9em .6em; font-size: 1.05em; }
.cr-island { width: 34%; height: 1.9em; border-radius: 99px; background: #0f151b; }
.cr-sig { display: flex; gap: .25em; } .cr-sig i { width: 1em; height: .7em; border-radius: .15em; background: #13202a; } .cr-sig i:first-child { width: .8em; clip-path: polygon(100% 0, 100% 100%, 0 100%); border-radius: 0; }
.cr-v { position: absolute; inset: 3.6em 1.3em 4.6em; display: flex; flex-direction: column; gap: .8em; opacity: 0; transform: translateY(1.2em) scale(.98); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.cr-v.is-on { opacity: 1; transform: none; }
.cr-back { font-weight: 600; color: #4f6168; font-size: .95em; display: flex; align-items: center; gap: .4em; }
.cr-back::before { content: ""; width: .5em; height: .5em; border-left: .14em solid currentColor; border-bottom: .14em solid currentColor; transform: rotate(45deg); }
/* layar 1: spreadsheet */
.cr-sheet { border: 1px solid #e3eaec; border-radius: 1em; overflow: hidden; }
.cr-sheet__t { display: flex; justify-content: space-between; align-items: center; padding: .8em 1em; background: #f2f8f9; border-bottom: 1px solid #e3eaec; }
.cr-sheet__t b { font-weight: 700; } .cr-sheet__t small { font-size: .8em; color: #0a8ea3; font-weight: 600; background: #e2f6f9; padding: .25em .6em; border-radius: 99px; }
.cr-tb p { display: flex; justify-content: space-between; padding: .55em 1em; border-bottom: 1px solid #eef2f3; font-size: .95em; }
.cr-tb p span:last-child { font-family: var(--font-mono); }
.cr-tb__h { color: #5a6676; font-size: .82em !important; font-weight: 600; }
.cr-tb__sum { font-weight: 800; background: #f1fbe1; border-bottom: 0 !important; }
.cr-tb__sum span:last-child { color: #1f6b33; }
.cr-lbl { display: flex; justify-content: space-between; font-size: .9em; color: #5a6676; margin-top: .3em; }
.cr-lbl b { color: #0a8ea3; }
.cr-chart { flex: 1; min-height: 5em; display: flex; align-items: flex-end; gap: .6em; padding: .8em; border-radius: 1em; background: #f2f8f9; }
.cr-chart i { flex: 1; height: var(--h); border-radius: .4em .4em .15em .15em; background: #0bb1cb; transform-origin: bottom; }
.cr-chart i:nth-child(2) { background: #043f49; }
.cr-v.is-on .cr-chart i { animation: crBar .9s cubic-bezier(.2,.8,.2,1) both; }
.cr-chart i:nth-child(2) { animation-delay: .08s !important; } .cr-chart i:nth-child(3) { animation-delay: .16s !important; } .cr-chart i:nth-child(4) { animation-delay: .24s !important; } .cr-chart i:nth-child(5) { animation-delay: .32s !important; } .cr-chart i:nth-child(6) { animation-delay: .4s !important; }
@keyframes crBar { from { transform: scaleY(.05); } to { transform: none; } }
/* layar 2: terminal */
.cr-term { background: #16191b; color: #e7ebee; border-radius: 1em; padding: 1.2em; font: 400 .95em/1.9 var(--font-mono); }
.cr-term p { white-space: nowrap; overflow: hidden; }
.cr-term span { color: #8fb8bb; }
.cr-term .ok::before { content: "\2713  "; color: #8fd0a8; }
.cr-v.is-on .cr-term p { animation: crType .4s ease both; }
.cr-term p:nth-child(2) { animation-delay: .25s !important; } .cr-term p:nth-child(3) { animation-delay: .6s !important; } .cr-term p:nth-child(4) { animation-delay: .85s !important; } .cr-term p:nth-child(5) { animation-delay: 1.1s !important; } .cr-term p:nth-child(6) { animation-delay: 1.35s !important; }
@keyframes crType { from { opacity: 0; transform: translateX(-.6em); } to { opacity: 1; transform: none; } }
.cr-reel { flex: 1; min-height: 6em; border-radius: 1em; background: linear-gradient(160deg, #043f49, #0a8ea3); position: relative; display: grid; place-items: center; overflow: hidden; }
.cr-reel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgb(214 253 145 / .35), transparent 50%); }
.cr-reel__play { width: 3.2em; height: 3.2em; border-radius: 50%; background: #fff; position: relative; z-index: 1; }
.cr-reel__play::after { content: ""; position: absolute; left: 1.2em; top: .95em; border-left: 1.1em solid #043f49; border-top: .65em solid transparent; border-bottom: .65em solid transparent; }
.cr-reel__cap { position: absolute; left: 50%; bottom: 1em; translate: -50% 0; z-index: 1; background: #d6fd91; color: #24410b; font-weight: 800; padding: .3em .7em; border-radius: .4em; white-space: nowrap; }
/* layar 3: hook */
.cr-pack { display: grid; gap: .2em; padding: .9em 1em; border-radius: 1em; background: #fdeee6; }
.cr-pack b { font-size: 1.15em; font-weight: 800; } .cr-pack small { color: #7a3a18; font-size: .85em; }
.cr-hooks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.cr-hooks li { display: grid; grid-template-columns: 2.4em 1fr 1.4em; align-items: center; gap: .7em; padding: .7em .8em; border-radius: .8em; border: 1px solid #e9eef0; }
.cr-hooks b { font: 500 .85em/1 var(--font-mono); color: #5a6676; }
.cr-hooks i { height: .55em; border-radius: 99px; background: #d7e0e6; }
.cr-hooks span { width: 1.2em; height: 1.2em; border-radius: .3em; border: .14em solid #b9c6cb; }
.cr-v.is-on .cr-hooks li { animation: crType .5s ease both; }
.cr-hooks li:nth-child(2) { animation-delay: .06s !important; } .cr-hooks li:nth-child(3) { animation-delay: .12s !important; } .cr-hooks li:nth-child(4) { animation-delay: .18s !important; } .cr-hooks li:nth-child(5) { animation-delay: .24s !important; } .cr-hooks li:nth-child(6) { animation-delay: .3s !important; } .cr-hooks li:nth-child(7) { animation-delay: .36s !important; }
.cr-more { font-size: .85em; color: #5a6676; text-align: center; }
/* layar 4: belajar */
.cr-video { position: relative; height: 34%; min-height: 7em; border-radius: 1em; background: linear-gradient(140deg, #0b2a31, #0a8ea3); overflow: hidden; display: grid; place-items: center; }
.cr-video__bars { position: absolute; left: 1.2em; right: 1.2em; bottom: 2.4em; height: 45%; display: flex; align-items: flex-end; gap: .5em; }
.cr-video__bars i { flex: 1; height: var(--h); background: #8fd0a8; opacity: .55; border-radius: .2em .2em 0 0; }
.cr-video__play { position: relative; width: 3em; height: 3em; border-radius: 50%; background: #fff; z-index: 1; box-shadow: 0 .6em 1.4em -.6em rgb(0 0 0 / .6); }
.cr-video__play::after { content: ""; position: absolute; left: 1.15em; top: .9em; border-left: 1em solid #0f151b; border-top: .6em solid transparent; border-bottom: .6em solid transparent; }
.cr-video small { position: absolute; left: 1em; bottom: .7em; color: #fff; font-weight: 600; font-size: .8em; }
.cr-prog { display: flex; justify-content: space-between; font-size: .9em; color: #5a6676; }
.cr-prog b { color: #13202a; }
.cr-bar { height: .5em; border-radius: 99px; background: #e8eef0; overflow: hidden; }
.cr-bar i { display: block; height: 100%; width: 38%; border-radius: 99px; background: linear-gradient(90deg, #0bb1cb, #0a8ea3); transform-origin: left; }
.cr-v.is-on .cr-bar i { animation: crGrow 1.1s cubic-bezier(.2,.8,.2,1) .2s both; }
@keyframes crGrow { from { transform: scaleX(0); } }
.cr-les { list-style: none; margin: 0; padding: 0; display: grid; }
.cr-les li { display: grid; grid-template-columns: 1.5em 1fr auto; gap: .7em; align-items: center; padding: .65em 0; border-bottom: 1px solid #eef2f3; font-size: .92em; font-weight: 600; }
.cr-les li::before { content: ""; width: 1.4em; height: 1.4em; border-radius: 50%; border: .13em solid #c9d4d8; box-sizing: border-box; }
.cr-les li.done::before { border: 0; background: #1fa462 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }
.cr-les li.now::before { border: 0; background: #0f151b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='white'/%3E%3C/svg%3E") center / 80% no-repeat; }
.cr-les small { color: #5a6676; font-weight: 500; font-size: .85em; }
/* menu bawah HP */
.cr-nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: .8em .5em 1.5em; border-top: 1px solid #eef2f3; background: #fff; }
.cr-nav span { display: grid; justify-items: center; gap: .35em; color: #8a989d; transition: color .3s; }
.cr-nav i { width: 1.4em; height: 1.4em; border-radius: .4em; background: currentColor; opacity: .35; transition: opacity .3s; }
.cr-nav b { font-size: .75em; font-weight: 600; }
.cr-nav span.on { color: #043f49; } .cr-nav span.on i { opacity: 1; }

/* teks kanan: angka besar + judul, paragraf, link */
.cr-text { display: grid; }
.cr-st { grid-area: 1 / 1; display: grid; gap: clamp(16px, 2vw, 26px); align-content: center; opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1), filter .5s ease; pointer-events: none; }
.cr-st.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; transition-delay: .08s; }
.cr-num { display: flex; align-items: flex-end; gap: clamp(10px, 1.2vw, 18px); margin: 0; }
.cr-num b { font-size: clamp(84px, 10vw, 156px); line-height: .8; font-weight: 800; letter-spacing: -0.06em; color: #043f49; }
.cr-num span { font-size: clamp(22px, 2.3vw, 36px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; color: var(--p-ink); padding-bottom: .1em; }
.cr-p { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.6; color: var(--p-muted); max-width: 36ch; margin: 0; }
.cr-p strong { color: var(--p-ink); font-weight: 700; }
.cr-link { justify-self: start; display: inline-flex; gap: 10px; align-items: center; font-weight: 700; font-size: clamp(17px, 1.4vw, 20px); color: var(--p-ink); text-decoration: none; background: linear-gradient(#0bb1cb, #0bb1cb) no-repeat 0 100% / 0 2px; padding-bottom: 4px; transition: background-size .3s ease; }
.cr-link:hover { background-size: 100% 2px; }

/* ---------- laptop & PC: menempel, berganti saat discroll ---------- */
@media (min-width: 900px) and (min-height: 560px) {
  .cr-track { height: 420svh; }
  .cr-pin { position: sticky; top: var(--nav); height: calc(100svh - var(--nav)); display: grid; align-items: center; }
}
/* layar lebar sedang (laptop kecil, tablet mendatar) */
@media (min-width: 900px) and (max-width: 1180px) {
  .cr-grid { grid-template-columns: minmax(150px, 200px) auto minmax(0, 1fr); gap: 28px; }
  .cr-tabs button { padding: 13px 16px; gap: 10px; }
  .cr-hp { --ph: min(calc(100svh - var(--nav) - 72px), 560px); }
}

/* ---------- HP & tablet tegak ---------- */
@media (max-width: 899px), (max-height: 559px) {
  .cerita { padding: var(--s-8) 0 var(--s-8); }
  .cr-grid { grid-template-columns: 1fr; gap: 24px; justify-items: center; }
  .cr-tabs { display: flex; gap: 8px; overflow-x: auto; width: 100%; justify-content: flex-start; padding: 4px 2px 8px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .cr-tabs::-webkit-scrollbar { display: none; }
  .cr-tabs button { flex: none; padding: 11px 16px; font-size: 15px; gap: 8px; scroll-snap-align: start; }
  .cr-tabs button:hover { transform: none; }
  .cr-ic { width: 18px; height: 18px; }
  .cr-hp { --ph: min(540px, 118vw, 78svh); }
  .cr-text { width: 100%; max-width: 560px; }
  .cr-p { max-width: none; }
}
@media (min-width: 600px) and (max-width: 899px) { .cr-tabs { justify-content: center; } }
@media (max-width: 380px) { .cr-hp { --ph: min(480px, 122vw, 78svh); } .cr-num b { font-size: 76px; } }

@media (prefers-reduced-motion: reduce) {
  .cr-v, .cr-st { transition: none; filter: none; }
  .cr-v.is-on *, .cr-v.is-on .cr-chart i, .cr-v.is-on .cr-bar i { animation: none !important; }
}
