/* Kok Berubah, palet clay */
:root {
  --cream: #f6ecdd;
  --cream-2: #f3e7d3;
  --cream-3: #ead9bf;
  --amber: #ffb800;
  --amber-deep: #e9a200;
  --ink: #3a2a1a;
  --ink-soft: #6b5640;
  --clay: #c8643c;
  --white: #fffaf2;
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(58, 42, 26, .06), 0 10px 30px -12px rgba(58, 42, 26, .22);
  --shadow-lift: 0 2px 4px rgba(58, 42, 26, .08), 0 22px 44px -18px rgba(58, 42, 26, .32);
  --font-head: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 64px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--amber); color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem;
  text-decoration: none; padding: .85em 1.5em; border-radius: 999px;
  box-shadow: 0 4px 0 var(--amber-deep), 0 12px 24px -10px rgba(233, 162, 0, .7);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--amber-deep), 0 16px 28px -10px rgba(233, 162, 0, .75); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--amber-deep), 0 6px 14px -8px rgba(233, 162, 0, .6); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:active { box-shadow: inset 0 0 0 2px var(--ink); }
.btn--small { font-size: .95rem; padding: .55em 1.1em; box-shadow: 0 3px 0 var(--amber-deep); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 236, 221, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .25s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(58, 42, 26, .08), 0 8px 24px -16px rgba(58, 42, 26, .35); }
.nav__inner { width: min(1160px, 100% - 40px); margin-inline: auto; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--shadow); }

.nav__toggle {
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--cream-2); cursor: pointer;
  display: grid; place-content: center; gap: 6px;
}
.nav__toggle span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.nav__menu {
  position: absolute; left: 12px; right: 12px; top: calc(var(--nav-h) - 4px);
  display: grid; gap: 4px; padding: 12px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lift);
  opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.nav__menu a:not(.btn) { text-decoration: none; font-weight: 500; padding: 12px 14px; border-radius: 12px; }
.nav__menu a:not(.btn):hover { background: var(--cream-2); }
.nav__menu .btn { justify-content: center; margin-top: 6px; }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; display: flex; align-items: center; gap: 4px; padding: 0;
    background: none; box-shadow: none; opacity: 1; transform: none; pointer-events: auto; visibility: visible;
  }
  .nav__menu a:not(.btn) { font-size: .95rem; padding: 8px 12px; }
  .nav__menu .btn { margin: 0 0 0 8px; }
}

/* Hero */
.hero { padding: 36px 0 56px; overflow: hidden; }
.hero__inner { display: grid; gap: 36px; }
.hero__text { text-align: center; display: grid; justify-items: center; }
.hero__logo { width: 96px; height: 96px; border-radius: 26px; box-shadow: var(--shadow-lift); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.8rem, 11vw, 5.2rem); font-weight: 700; color: var(--ink); }
.hero__tagline { font-size: clamp(1.15rem, 3.6vw, 1.45rem); color: var(--ink-soft); margin: 12px 0 26px; max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__art { display: grid; justify-items: center; gap: 14px; }
.hero__art figcaption { font-size: .88rem; color: var(--ink-soft); }
.phone {
  width: min(300px, 64vw); aspect-ratio: 9 / 16; padding: 10px; border-radius: 38px;
  background: var(--ink); box-shadow: var(--shadow-lift), 0 40px 80px -40px rgba(58, 42, 26, .55);
  transform: rotate(2.5deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 88px; }
  .hero__inner { grid-template-columns: 7fr 5fr; align-items: center; gap: 48px; }
  .hero__text { text-align: left; justify-items: start; }
  .hero__actions { justify-content: flex-start; }
  .hero h1 { white-space: nowrap; }
  .phone { width: 340px; }
}

/* Entrance (hero) */
.js .hero__text > *, .js .hero__art { animation: rise .8s var(--ease) both; }
.js .hero__text > :nth-child(2) { animation-delay: .06s; }
.js .hero__text > :nth-child(3) { animation-delay: .12s; }
.js .hero__text > :nth-child(4) { animation-delay: .18s; }
.js .hero__art { animation: settle 1s var(--ease) .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes settle { from { opacity: 0; transform: translateY(24px) scale(.97); } }

/* Sections */
.section { padding: 72px 0; }
.section--tint { background: var(--cream-2); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__intro { color: var(--ink-soft); margin-top: 14px; font-size: 1.1rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--clay); margin-bottom: 12px;
}
@media (min-width: 900px) { .section { padding: 104px 0; } }

/* Tentang */
.about { display: grid; gap: 24px; }
.about__body { display: grid; gap: 18px; color: var(--ink-soft); }
.about__body .lead { font-size: clamp(1.15rem, 3vw, 1.35rem); color: var(--ink); line-height: 1.55; }
.about__banner img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 7fr; gap: 40px 64px; }
  .about__banner { grid-column: 1 / -1; margin-top: 16px; }
}

/* Steps */
.steps { display: grid; gap: 22px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; align-content: start;
  background: var(--white); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow);
}
.step__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream-3); }
.step__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s var(--ease); }
.step__media--low img { object-position: center 80%; }
.step__media--high img { object-position: center 8%; }
.step:hover .step__media img { transform: scale(1.04); }
.step__text { padding: 0 8px 10px; }
.step__num {
  display: inline-grid; place-items: center; min-width: 42px; height: 30px; padding: 0 10px;
  border-radius: 999px; background: var(--amber); font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 1rem; }
@media (min-width: 600px) {
  .step { grid-template-columns: 200px 1fr; padding: 16px; gap: 24px; }
  .step__media { aspect-ratio: 3 / 4; }
  .step__text { padding: 10px 8px 0 0; }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .step { grid-template-columns: 1fr; padding: 14px 14px 26px; gap: 18px; }
  .step__media { aspect-ratio: 4 / 5; }
  .step__text { padding: 0 10px; }
}

/* Episodes */
.episodes { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.ep { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ep > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.ep:has(> a):hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ep__thumb { aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-3); }
.ep__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.ep__body { padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ep h3 { font-size: 1.05rem; line-height: 1.25; }
.ep__cta { align-self: flex-start; white-space: nowrap; margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--clay); display: inline-flex; align-items: center; gap: 6px; }
.ep__cta::after { content: "→"; transition: transform .2s var(--ease); }
.ep a:hover .ep__cta::after { transform: translateX(4px); }
.ep__meta { color: var(--ink-soft); font-size: .92rem; }
.badge {
  align-self: flex-start; background: var(--ink); color: var(--amber);
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px;
}

/* Featured upcoming card spans full row */
.ep--soon { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 3fr; background: var(--ink); color: var(--white); }
.ep--soon .ep__thumb { aspect-ratio: auto; min-height: 220px; }
.ep--soon .ep__body { justify-content: center; padding: 20px; gap: 12px; }
.ep--soon h3 { font-size: clamp(1.3rem, 4.5vw, 2rem); }
.ep--soon .ep__meta { color: #e8d8bf; }
.ep--soon .badge { background: var(--amber); color: var(--ink); }

/* CSS-art thumbnails for episodes without frames */
.ep__thumb--art {
  position: relative; display: grid; place-content: center; text-align: center; padding: 16px;
  background: radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.5), transparent 60%), var(--tone, var(--cream-3));
}
.ep__thumb--art::before, .ep__thumb--art::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .28);
  box-shadow: inset -6px -8px 14px rgba(58, 42, 26, .12);
}
.ep__thumb--art::before { width: 46%; aspect-ratio: 1; right: -12%; bottom: -10%; }
.ep__thumb--art::after { width: 22%; aspect-ratio: 1; left: 10%; bottom: 14%; }
.art__q {
  position: relative; z-index: 1; font-family: var(--font-head); font-weight: 700; font-size: clamp(3rem, 12vw, 4.4rem); line-height: 1;
  color: var(--clay); text-shadow: 0 2px 0 rgba(255,255,255,.6), 0 8px 16px rgba(58, 42, 26, .25);
}
.art__word {
  position: relative; z-index: 1; margin-top: 10px; font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  font-size: clamp(.78rem, 3.2vw, 1.05rem); letter-spacing: .03em; color: var(--ink); white-space: nowrap;
  background: rgba(255, 250, 242, .85); padding: 4px 12px; border-radius: 999px; justify-self: center;
}
.art--kunci { --tone: #f2c879; }
.art--alarm { --tone: #f4a98a; }
.art--magic { --tone: #c9dcb0; }
.art--kipas { --tone: #b9d6e3; }
.art--wc { --tone: #e5cfe0; }

@media (min-width: 640px) {
  .episodes { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .ep--soon { grid-template-columns: 1fr 1.4fr; }
  .ep--soon .ep__body { padding: 32px; }
}
@media (min-width: 1000px) {
  .episodes { grid-template-columns: repeat(4, 1fr); }
  .ep--soon { grid-column: span 2; grid-template-columns: 1fr 1.2fr; }
  .ep--soon .ep__thumb { min-height: 0; aspect-ratio: auto; }
}

/* Platforms */
.platforms { display: grid; gap: 14px; }
.platform {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  text-decoration: none; background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.platform:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.platform__icon {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.7rem;
}
.platform__icon--yt { background: #e62117; }
.platform__icon--fb { background: #1877f2; }
.platform__icon--tt { background: #111; }
.platform__name { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.platform__handle { color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 760px) { .platforms { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* Collab */
.collab {
  background: var(--amber); border-radius: var(--radius-lg); padding: 40px 24px; text-align: center;
  display: grid; justify-items: center; gap: 16px; box-shadow: var(--shadow-lift); position: relative; overflow: hidden;
}
.collab::before {
  content: ""; position: absolute; width: 340px; aspect-ratio: 1; border-radius: 50%; right: -120px; top: -160px;
  background: rgba(255, 255, 255, .22);
}
.collab > * { position: relative; }
.collab .eyebrow { color: var(--ink); margin: 0; }
.collab p:not(.eyebrow) { max-width: 60ch; }
.collab .btn { background: var(--ink); color: var(--white); box-shadow: 0 4px 0 #1f160c, 0 12px 24px -10px rgba(58, 42, 26, .6); margin-top: 8px; }
.collab .btn:hover { box-shadow: 0 6px 0 #1f160c, 0 16px 28px -10px rgba(58, 42, 26, .6); }
@media (min-width: 900px) { .collab { padding: 72px 48px; } }

/* Footer */
.footer { padding: 40px 0 48px; border-top: 1px solid rgba(58, 42, 26, .1); }
.footer__inner { display: grid; gap: 10px; justify-items: center; text-align: center; }
.footer__slogan { font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; }
.footer__copy { color: var(--ink-soft); font-size: .92rem; }
@media (min-width: 760px) {
  .footer__inner { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; align-items: center; gap: 24px; }
  .footer__slogan { justify-self: center; }
}

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

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