/* ============================================================
   INSOMDREAMS — Akademi Farmasi
   Design: Swiss modular grid / technical-brutalist.
   Hairline rules, exposed grid, one hot accent, mono utility type.
   ============================================================ */

:root {
  /* ground + paper */
  --ground:      #E8E8E4;
  --paper:       #F2F2EF;
  --paper-2:     #FBFBF9;
  --sunken:      #DEDEDA;

  /* ink */
  --ink:         #16160F;
  --ink-2:       #4A4A42;
  --ink-3:       #7C7C72;
  --ink-4:       #A6A69C;

  /* rules */
  --rule:        #D0D0C9;
  --rule-strong: #B4B4AC;

  /* the one hot accent */
  --hot:         #FF5A1F;
  --hot-ink:     #1A0A03;
  --hot-soft:    rgba(255, 90, 31, 0.10);
  --hot-line:    rgba(255, 90, 31, 0.38);

  /* semantic — separate from the accent */
  --ok:          #0B6B4F;
  --ok-soft:     rgba(11, 107, 79, 0.11);
  --warn:        #8A5A00;
  --warn-soft:   rgba(138, 90, 0, 0.12);
  --bad:         #A3231C;
  --bad-soft:    rgba(163, 35, 28, 0.11);
  --info:        #1F4F8F;
  --info-soft:   rgba(31, 79, 143, 0.11);

  --shadow:      0 1px 0 rgba(22,22,15,.04);

  /* type */
  --f-display: "Michroma", "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --f-head:    "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-body:    "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --cell: 1px;
  --gut: 20px;
  --rad: 3px;
  --topbar-h: 58px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #121210;
    --paper:       #1A1A17;
    --paper-2:     #212120;
    --sunken:      #0C0C0B;
    --ink:         #EFEFE9;
    --ink-2:       #B6B6AD;
    --ink-3:       #83837A;
    --ink-4:       #5E5E56;
    --rule:        #2C2C28;
    --rule-strong: #43433D;
    --hot:         #FF6A33;
    --hot-ink:     #1A0A03;
    --hot-soft:    rgba(255, 106, 51, 0.13);
    --hot-line:    rgba(255, 106, 51, 0.42);
    --ok:          #3FBE93;
    --ok-soft:     rgba(63, 190, 147, 0.13);
    --warn:        #E0A63C;
    --warn-soft:   rgba(224, 166, 60, 0.14);
    --bad:         #F0685E;
    --bad-soft:    rgba(240, 104, 94, 0.13);
    --info:        #6FA8F0;
    --info-soft:   rgba(111, 168, 240, 0.13);
    --shadow:      0 1px 0 rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --ground:      #121210;
  --paper:       #1A1A17;
  --paper-2:     #212120;
  --sunken:      #0C0C0B;
  --ink:         #EFEFE9;
  --ink-2:       #B6B6AD;
  --ink-3:       #83837A;
  --ink-4:       #5E5E56;
  --rule:        #2C2C28;
  --rule-strong: #43433D;
  --hot:         #FF6A33;
  --hot-ink:     #1A0A03;
  --hot-soft:    rgba(255, 106, 51, 0.13);
  --hot-line:    rgba(255, 106, 51, 0.42);
  --ok:          #3FBE93;
  --ok-soft:     rgba(63, 190, 147, 0.13);
  --warn:        #E0A63C;
  --warn-soft:   rgba(224, 166, 60, 0.14);
  --bad:         #F0685E;
  --bad-soft:    rgba(240, 104, 94, 0.13);
  --info:        #6FA8F0;
  --info-soft:   rgba(111, 168, 240, 0.13);
  --shadow:      0 1px 0 rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- lapisan latar tetap di belakang semua isi: hanya butiran kertas
   (garis kisi dihapus 26 Sep 2026 atas permintaan pemilik) ---- */
#gridfield {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}
/* butiran halus seperti serat kertas */
#gridfield::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .035;   /* tanpa mix-blend-mode: lapisan layar penuh yang dicampur memperberat gulir */
}

/* ---- latar sketsa: buku catatan lab (lihat latar.js) ---- */
#doodle {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
  color: var(--ink); --tinta: 0ms;
}
.dd-lapis { position: absolute; top: 0; left: 0; right: 0; will-change: transform; }
.dd-ulang { position: relative; }
.dd-lapis.jauh { --o: .05; }
.dd-lapis.dekat { --o: .085; }
:root:not([data-theme="dark"]) .dd-lapis.jauh { --o: .08; }
:root:not([data-theme="dark"]) .dd-lapis.dekat { --o: .125; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dd-lapis.jauh { --o: .05; }
  :root:not([data-theme="light"]) .dd-lapis.dekat { --o: .085; }
}
.dd {
  position: absolute; display: block; line-height: 0;
  rotate: var(--r); opacity: var(--o);
}
/* melayang per kelompok (4 animasi), bukan per sketsa (±80 animasi): jauh lebih ringan */
.dd-lapis.jauh .dd-ulang { animation: ddMelayang 15s ease-in-out -4s infinite alternate; }
.dd-lapis.dekat .dd-ulang { animation: ddMelayang 11s ease-in-out -7s infinite alternate; }
.dd svg { overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
/* aksen jingga sedikit lebih jelas daripada garis tinta biasa, tapi tetap samar */
.dd.aksen { color: var(--hot); opacity: calc(var(--o) * 2.4); }
@keyframes ddMelayang {
  from { translate: -3px -5px; }
  to   { translate: 3px 6px; }
}
/* saat tema diganti: garis tergambar ulang, menyusul gelombang dari tombol tema */
#doodle.tinta .dd svg > * { stroke-dasharray: 1 1; animation: ddTinta 1.05s cubic-bezier(.55, 0, .2, 1) var(--tinta) both; }
#doodle.tinta .dd svg > :nth-child(2) { animation-delay: calc(var(--tinta) + 120ms); }
#doodle.tinta .dd svg > :nth-child(n+3) { animation-delay: calc(var(--tinta) + 240ms); }
@keyframes ddTinta { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
#doodle.tinta-tunggu .dd svg > * { stroke-dasharray: 1 1; stroke-dashoffset: 1; }

/* ---- ganti tema: gelombang melingkar dari tombol tema ----
   Lingkarannya dianimasikan dari latar.js (Web Animations, nilai px pasti),
   di sini hanya mematikan pudar bawaan View Transitions. */
html.tema-gelombang::view-transition-old(root),
html.tema-gelombang::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.tema-gelombang::view-transition-group(root) { animation-duration: 0s; }
/* peramban tanpa View Transitions: warna berpindah lembut */
html.tema-halus body, html.tema-halus body * {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease, stroke .5s ease !important;
}
#temaBtn svg.ikon-tema-tunggu { opacity: 0; transform: rotate(-110deg) scale(.3); }
#temaBtn svg.ikon-tema-masuk { animation: ikonTema .6s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes ikonTema {
  from { transform: rotate(-110deg) scale(.3); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .dd-ulang { animation: none !important; }
  #doodle.tinta .dd svg > * { animation: none; }
}

#app { position: relative; z-index: 1; }

/* ---------------- typography ---------------- */
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(30px, 5.4vw, 60px); line-height: 1.02; }
h2 { font-size: clamp(22px, 3vw, 34px); line-height: 1.1; }
h3 { font-size: clamp(17px, 2vw, 21px); line-height: 1.2; }
h4 { font-size: 15px; line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
.prose a, table.data a, .kv a {
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 2px;
}
.prose a:hover, table.data a:hover, .kv a:hover { text-decoration-color: var(--hot); }

.mono { font-family: var(--f-mono); }
/* Angka besar memakai Chakra Petch, bukan Michroma: nol pada Michroma
   berbentuk persegi membulat dan terbaca seperti kotak kosong. */
.figure {
  font-family: var(--f-mono);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
}
.figure.lg { font-size: clamp(28px, 4vw, 40px); }
.figure.xl { font-size: clamp(40px, 8vw, 68px); }
.figure sub { font-size: .52em; color: var(--ink-4); vertical-align: baseline; font-weight: 600; }
.eyebrow {
  font-family: var(--f-body);
  font-size: 12.5px;
  letter-spacing: .005em;
  text-transform: none;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--hot);
  flex: none;
}
.eyebrow.plain::before { display: none; }
.lede { font-size: clamp(15px, 1.6vw, 17.5px); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; font-family: var(--f-mono); }

/* ---------------- layout primitives ---------------- */
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding-inline: var(--gut); }
.bleed-rule { border-top: 1px solid var(--rule); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1 1 auto; min-width: 0; }
.wrapf { flex-wrap: wrap; }

/* crosshair corner marks — structural, marks a grid intersection */
.xmark { position: absolute; width: 11px; height: 11px; pointer-events: none; opacity: .75; }
.xmark::before, .xmark::after { content: ""; position: absolute; background: var(--rule-strong); }
.xmark::before { left: 5px; top: 0; width: 1px; height: 11px; }
.xmark::after { top: 5px; left: 0; height: 1px; width: 11px; }

/* ---------------- top bar ---------------- */
#topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--ground); background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
}
.topbar-in { display: flex; align-items: stretch; height: var(--topbar-h); max-width: 1400px; margin: 0 auto; }
.brandcell {
  display: flex; align-items: center; gap: 10px;
  padding-inline: var(--gut);
  border-right: 1px solid var(--rule);
  flex: none;
  cursor: pointer;
  background: none; border-top: 0; border-bottom: 0; border-left: 0;
  color: inherit;
  font: inherit;
}
.brandcell:hover .logomark { transform: rotate(-8deg) scale(1.06); }
.logomark { flex: none; transition: transform .35s cubic-bezier(.2,.9,.25,1); }
.wordmark {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: .01em;
  line-height: 1;
  text-align: left;
}
.wordmark small {
  display: block;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: .22em;
  color: var(--ink-3);
  margin-top: 4px;
  font-weight: 500;
}
#navmain {
  display: flex; align-items: stretch; flex: 1 1 auto;
  overflow-x: auto; scrollbar-width: none;
  /* tepi kanan memudar sebagai isyarat masih ada menu yang tergulir */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
}
#navmain::-webkit-scrollbar { display: none; }
@media (max-width: 1120px) { .navlink { padding: 0 11px; font-size: 11px; } }
.navlink {
  font-family: var(--f-body);
  font-size: 13.0px;
  letter-spacing: .005em;
  color: var(--ink-2);
  background: none; border: 0;
  padding: 0 15px;
  display: inline-flex; align-items: center;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color .18s;
}
.navlink::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 0;
  height: 2px; background: var(--hot);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.9,.25,1);
}
.navlink:hover { color: var(--ink); }
.navlink:hover::after, .navlink[aria-current="page"]::after { transform: scaleX(1); }
.navlink[aria-current="page"] { color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 8px; padding-inline: 12px var(--gut); border-left: 1px solid var(--rule); flex: none; }

/* ---------------- buttons ---------------- */
.btn {
  font-family: var(--f-body);
  font-size: 13.0px;
  letter-spacing: .005em;
  text-transform: none;
  font-weight: 500;
  padding: 11px 18px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--rad);
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  line-height: 1;
  text-decoration: none;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.hot { background: var(--hot); border-color: var(--hot); color: #fff; border-radius: 7px; }
.btn.hot:hover { background: var(--hot); background: color-mix(in srgb, var(--hot) 86%, #000); border-color: var(--hot); border-color: color-mix(in srgb, var(--hot) 86%, #000); }
.btn.solid { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn.solid:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.sm { padding: 7px 12px; font-size: 10.5px; }
.btn.tiny { padding: 5px 9px; font-size: 12px; letter-spacing: .005em; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn.danger { color: var(--bad); border-color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }

.iconbtn {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong); background: transparent; color: var(--ink-2);
  cursor: pointer; border-radius: var(--rad); transition: color .18s, border-color .18s;
  flex: none;
}
.iconbtn:hover { color: var(--ink); border-color: var(--ink); }

:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }

/* ---------------- panels ---------------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  position: relative;
}
.panel-pad { padding: 20px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

/* chip */
button.chip { background: transparent; -webkit-appearance: none; appearance: none; margin: 0; }
.chip {
  font-family: var(--f-body);
  font-size: 12.0px;
  letter-spacing: .005em;
  text-transform: none;
  padding: 4px 8px;
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
  border-radius: 2px;
  white-space: nowrap;
  display: inline-block;
  line-height: 1.35;
}
.chip.hot   { color: var(--hot); border-color: var(--hot-line); background: var(--hot-soft); }
.chip.ok    { color: var(--ok);  border-color: var(--ok); border-color: color-mix(in srgb, var(--ok) 42%, transparent); background: var(--ok-soft); }
.chip.warn  { color: var(--warn);border-color: var(--warn); border-color: color-mix(in srgb, var(--warn) 42%, transparent); background: var(--warn-soft); }
.chip.bad   { color: var(--bad); border-color: var(--bad); border-color: color-mix(in srgb, var(--bad) 42%, transparent); background: var(--bad-soft); }
.chip.info  { color: var(--info);border-color: var(--info); border-color: color-mix(in srgb, var(--info) 42%, transparent); background: var(--info-soft); }
.chip.solid { background: var(--ink); color: var(--ground); border-color: var(--ink); }

/* ---------------- forms ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-family: var(--f-body); font-size: 12.0px; letter-spacing: .005em;
  text-transform: none; color: var(--ink-3); font-weight: 500;
}
.input, .select, .textarea {
  font-family: var(--f-body);
  font-size: 14px;
  padding: 11px 13px;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  border-radius: var(--rad);
  width: 100%;
  transition: border-color .18s, background .18s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--hot); outline: none; background: var(--paper-2); }
.input::placeholder { color: var(--ink-4); }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.textarea { min-height: 90px; resize: vertical; font-family: var(--f-body); }
.hint { font-size: 13.0px; color: var(--ink-3); font-family: var(--f-body); }
.err { font-size: 13.0px; color: var(--bad); font-family: var(--f-body); }

/* ---------------- progress ---------------- */
.bar { height: 5px; background: var(--sunken); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--hot); border-radius: 99px; transition: width .7s cubic-bezier(.2,.9,.25,1); }
.bar.ok > i { background: var(--ok); }

/* ---------------- motion ---------------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sweepIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes popIn { from { opacity:0; transform: scale(.96); } to { opacity:1; transform:none; } }
@keyframes pulseDot { 0%,100% { opacity:1; } 50% { opacity:.25; } }
@keyframes spin { to { transform: rotate(360deg); } }

.anim-rise { animation: riseIn .6s cubic-bezier(.2,.9,.25,1) backwards; }
.anim-fade { animation: fadeIn .5s ease backwards; }
.anim-sweep { animation: sweepIn .8s cubic-bezier(.2,.9,.25,1) backwards; }
.anim-pop { animation: popIn .34s cubic-bezier(.2,.9,.25,1) backwards; }
.d1{animation-delay:.05s}.d2{animation-delay:.11s}.d3{animation-delay:.17s}.d4{animation-delay:.23s}
.d5{animation-delay:.29s}.d6{animation-delay:.35s}.d7{animation-delay:.41s}.d8{animation-delay:.47s}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------- hero ---------------- */
.hero { position: relative; border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero-top { border-bottom: 1px solid var(--rule); padding-block: 26px 22px; position: relative; }
.hero-display {
  font-family: var(--f-display);
  font-size: 1em;
  line-height: .86;
  letter-spacing: -0.035em;
  margin: 0;
  white-space: nowrap;
  color: var(--ink);
}
.hero-display .lite { color: var(--ink-4); }
/* ruang ekstra atas-bawah agar lengkung huruf (S, O) yang melewati garis dasar tidak ikut terpotong;
   margin negatif mengembalikan jarak tata letak seperti semula */
.hero-marquee {
  font-size: clamp(38px, 11.2vw, 168px);
  overflow: hidden;
  margin: -.1em calc(var(--gut) * -1) -.14em;
  padding: .1em var(--gut) .14em;
}
.hero-sub { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.hero-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.hero-left { padding: 30px var(--gut) 34px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 20px; justify-content: space-between; }
.hero-right { position: relative; min-height: 340px; overflow: hidden; }
/* animasi latar pada hero mengisi selnya, tanpa kendali dan tanpa bingkai */
.hero-right .player { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border: 0; background: transparent; }
.hero-right .stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; aspect-ratio: auto; height: 100%; background: transparent; }
.hero-right .controls, .hero-right .caption { display: none; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.statstrip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.statstrip > div { padding: 16px var(--gut); border-right: 1px solid var(--rule); }
.statstrip > div:last-child { border-right: 0; }
.statstrip b { font-family: var(--f-head); font-size: clamp(22px, 2.6vw, 30px); display: block; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.statstrip span { font-family: var(--f-body); font-size: 11.5px; letter-spacing: .005em; text-transform: none; color: var(--ink-3); }

/* section frame */
.section { border-bottom: 1px solid var(--rule); position: relative; }
.section-head { padding: 34px var(--gut) 20px; display: flex; flex-direction: column; gap: 12px; }

/* card grid with shared hairlines */
.cardgrid { display: grid; border-top: 1px solid var(--rule); }
.cardgrid > * { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 22px var(--gut); background: transparent; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.feat { display: flex; flex-direction: column; gap: 10px; transition: background .25s; position: relative; }
.feat:hover { background: var(--paper); }
.feat .idx { font-family: var(--f-body); font-size: 11.5px; color: var(--hot); letter-spacing: .005em; }
.feat h3 { font-size: 17px; }
.feat p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* ---------------- app shell (post-login) ---------------- */
.appmain { padding-block: 26px 90px; }
.pagehead { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.pagehead .between { align-items: flex-end; }

.tabbar { display: flex; gap: 0; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; position: relative; -webkit-overflow-scrolling: touch; }
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  font-family: var(--f-body); font-size: 13.0px; letter-spacing: .005em; text-transform: none;
  padding: 11px 15px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--ink-3); cursor: pointer; white-space: nowrap; transition: color .18s, border-color .18s;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--hot); }

/* data table */
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--paper); }
table.data { border-collapse: collapse; width: 100%; min-width: 620px; }
table.data th {
  font-family: var(--f-body); font-size: 11.5px; letter-spacing: .005em; text-transform: none;
  color: var(--ink-3); text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule-strong);
  font-weight: 500; white-space: nowrap; background: var(--paper);
}
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--rule); font-size: 13.5px; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .15s; }
table.data tbody tr:hover { background: var(--paper-2); }

/* ---------------- animation player ---------------- */
.player { border: 1px solid var(--rule); background: var(--sunken); position: relative; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 10; max-width: 100%; background: var(--paper-2); overflow: hidden; }
.stage canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; display: block; }
.caption {
  padding: 13px 16px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
  min-height: 74px;
}
.caption b { color: var(--hot); font-family: var(--f-body); font-size: 12.0px; letter-spacing: .005em; text-transform: none; display: block; margin-bottom: 3px; font-weight: 500; }
.controls { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--rule); background: var(--paper); }
.scrub { flex: 1 1 auto; height: 22px; position: relative; cursor: pointer; display: flex; align-items: center; min-width: 60px; }
.scrub .track { height: 3px; width: 100%; background: var(--sunken); border-radius: 99px; overflow: hidden; }
.scrub .fill { height: 100%; background: var(--hot); width: 0; }
.scrub .marks { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.scrub .marks i { position: absolute; top: 50%; width: 1px; height: 9px; background: var(--rule-strong); transform: translateY(-50%); }
.tcode { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; }

/* ---------------- lesson reading ---------------- */
.prose { max-width: 66ch; }
.prose h3 { margin: 28px 0 8px; }
.prose p { font-size: 15px; line-height: 1.72; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 1em; color: var(--ink-2); }
.prose li { margin-bottom: 6px; line-height: 1.65; }
.prose strong { color: var(--ink); font-weight: 600; }
.callout { border-left: 3px solid var(--hot); background: var(--hot-soft); padding: 13px 16px; margin: 18px 0; font-size: 13.5px; }
.callout .eyebrow { margin-bottom: 5px; }

/* keyvalue */
.kv { display: grid; grid-template-columns: 148px minmax(0,1fr); gap: 0; border-top: 1px solid var(--rule); }
.kv > dt { font-family: var(--f-body); font-size: 12.0px; letter-spacing: .005em; text-transform: none; color: var(--ink-3); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.kv > dd { margin: 0; padding: 10px 0; font-size: 13.5px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }

/* toast */
#toaster { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(460px, calc(100% - 32px)); }
.toast {
  background: var(--ink); color: var(--ground);
  font-family: var(--f-body); font-size: 13.0px; letter-spacing: .005em;
  padding: 11px 16px; border-radius: var(--rad);
  animation: popIn .3s cubic-bezier(.2,.9,.25,1);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
  max-width: 100%;
}
.toast.bad { background: var(--bad); color: #fff; }
.toast.ok  { background: var(--ok); color: #fff; }

/* modal */
.scrim {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 150; background: rgba(10,10,8,.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: fadeIn .2s ease;
}
.modal { background: var(--paper); border: 1px solid var(--rule-strong); width: min(560px, 100%); max-height: 88vh; max-height: 88dvh; overflow: auto; -webkit-overflow-scrolling: touch; animation: popIn .28s cubic-bezier(.2,.9,.25,1); }

/* loader */
.spinner { width: 15px; height: 15px; border: 2px solid var(--rule-strong); border-top-color: var(--hot); border-radius: 50%; animation: spin .7s linear infinite; }

/* quiz */
.opt {
  display: flex; align-items: flex-start; gap: 11px; width: 100%; text-align: left;
  padding: 13px 15px; border: 1px solid var(--rule-strong); background: var(--paper-2);
  cursor: pointer; font-family: var(--f-body); font-size: 14px; color: var(--ink);
  border-radius: var(--rad); transition: border-color .18s, background .18s;
  line-height: 1.5;
}
.opt:hover:not(:disabled) { border-color: var(--ink); }
.opt .k { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); flex: none; margin-top: 2px; width: 16px; }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.right .k { color: var(--ok); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.wrong .k { color: var(--bad); }
.opt:disabled { cursor: default; }

/* empty */
.empty { padding: 48px 20px; text-align: center; color: var(--ink-3); font-family: var(--f-body); font-size: 12px; }

/* auth split */
.authwrap { display: grid; grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - var(--topbar-h) - 2px); min-height: calc(100dvh - var(--topbar-h) - 2px); }
.authside { border-right: 1px solid var(--rule); padding: 42px var(--gut); display: flex; flex-direction: column; justify-content: center; gap: 22px; position: relative; overflow: hidden; }
.authform { padding: 42px var(--gut); display: flex; flex-direction: column; justify-content: center; }

/* certificate */
.cert { border: 2px solid var(--ink); padding: 30px; background: var(--paper-2); text-align: center; position: relative; }
.cert::after { content: ""; position: absolute; top: 7px; right: 7px; bottom: 7px; left: 7px; border: 1px solid var(--rule-strong); pointer-events: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .statstrip { grid-template-columns: repeat(2, 1fr); }
  .statstrip > div:nth-child(2n) { border-right: 0; }
  .statstrip > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 860px) {
  :root { --gut: 16px; }
  .hero-body { grid-template-columns: 1fr; }
  .hero-left { border-right: 0; border-bottom: 1px solid var(--rule); }
  .hero-right { min-height: 260px; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .authwrap { grid-template-columns: 1fr; min-height: 0; }
  .authside { border-right: 0; border-bottom: 1px solid var(--rule); padding-block: 30px; }
  .authform { padding-block: 30px; }
  .kv { grid-template-columns: 1fr; }
  .kv > dt { border-bottom: 0; padding-bottom: 2px; }
  .kv > dd { padding-top: 0; }
}
@media (max-width: 620px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .cardgrid > * { border-right: 0; }
  /* kendali akun tetap terjangkau di layar sempit — hanya namanya yang disembunyikan */
  .topbar-right { padding-inline: 10px 14px; gap: 6px; }
  .topbar-right .btn { padding: 9px 11px; }
  .topbar-right .btn .lbl { display: none; }
}

/* utility spacing */
.gap4{gap:4px}.gap6{gap:6px}.gap8{gap:8px}.gap10{gap:10px}.gap12{gap:12px}.gap14{gap:14px}
.gap16{gap:16px}.gap20{gap:20px}.gap24{gap:24px}.gap28{gap:28px}.gap32{gap:32px}
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt20{margin-top:20px}.mt24{margin-top:24px}.mt32{margin-top:32px}
.mb0{margin-bottom:0}.mb8{margin-bottom:8px}.mb12{margin-bottom:12px}.mb16{margin-bottom:16px}.mb20{margin-bottom:20px}.mb24{margin-bottom:24px}
.fs11{font-size:11px}.fs12{font-size:12px}.fs13{font-size:13px}.fs14{font-size:14px}
.tr{text-align:right}.tc{text-align:center}
.nowrap{white-space:nowrap}
.hidden{display:none !important}

/* ---------------- animasi sebaris pada materi ---------------- */
.animfig { margin: 24px 0 28px; width: min(820px, calc(100vw - var(--sbw, 0px) - 2 * var(--gut))); max-width: none; }
.animfig figcaption { margin-bottom: 8px; flex-wrap: wrap; }
.animfig .caption { min-height: 64px; font-size: 13px; }

/* ---------------- konten terkunci ---------------- */
.kunci {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border: 1px solid var(--hot-line); background: var(--hot-soft);
  padding: 20px 22px; position: relative;
}
.kunci-sm { padding: 14px 16px; }
.kunci-ikon {
  width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hot-line); color: var(--hot); background: var(--paper-2); border-radius: var(--rad);
}
.kunci-ikon svg { width: 18px; height: 18px; }
.pratinjau-kabur { position: relative; max-height: 220px; overflow: hidden; }
.pratinjau-kabur::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to bottom, transparent 10%, var(--ground) 92%);
}
.lockmark { display: inline-flex; vertical-align: -1px; color: var(--ink-4); margin-left: 6px; }
.feat.terkunci { opacity: .72; }
.feat.terkunci:hover { opacity: 1; }

/* ---------------- paket harga ---------------- */
.plans > .plan { display: flex; flex-direction: column; gap: 12px; padding-block: 26px; }
.plan .idx { font-family: var(--f-body); font-size: 12.0px; letter-spacing: .005em; color: var(--ink-3); }
.plan-harga {
  font-family: var(--f-mono); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(28px, 3.2vw, 38px); line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums;
}
.plan-fitur { list-style: none; padding: 0; margin: 6px 0 8px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-fitur li { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.plan-fitur li svg { flex: none; margin-top: 3px; color: var(--ok); }
.plan-unggul { background: var(--paper); box-shadow: inset 0 3px 0 var(--hot); }
.plan-unggul .plan-harga { color: var(--hot); }

.pasar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 128px; gap: 16px; align-items: center; }
.pasar-nama { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pasar-bar { height: 10px; background: var(--sunken); border-radius: 99px; overflow: hidden; }
.pasar-bar i { display: block; height: 100%; background: var(--ink-4); border-radius: 99px; }
.pasar-harga { text-align: right; font-size: 13.5px; font-weight: 600; }
.pasar-kita .pasar-bar i { background: var(--hot); }
.pasar-kita .pasar-harga, .pasar-kita b { color: var(--hot); }

.total-bayar { border: 1px solid var(--hot-line); background: var(--hot-soft); padding: 16px 18px; }
.qris { width: 220px; max-width: 100%; border: 1px solid var(--rule-strong); background: #fff; padding: 8px; display: block; }

@media (max-width: 620px) {
  .pasar { grid-template-columns: 1fr auto; }
  .pasar-bar { grid-column: 1 / -1; order: 3; }
}


/* ---------------- lintas perangkat ---------------- */
/* iOS memperbesar halaman saat mengetik di kolom < 16px */
@media (pointer: coarse) {
  .input, .select, .textarea { font-size: 16px; }
}
/* Safari < 15 belum mengenal aspect-ratio */
@supports not (aspect-ratio: 16 / 10) {
  .stage { height: 0; padding-top: 62.5%; }
  .hero-right .stage { height: 100%; padding-top: 0; }
}
/* efek hover tidak "tertinggal" setelah diketuk di layar sentuh */
@media (hover: none) {
  .brandcell:hover .logomark { transform: none; }
  .feat.terkunci:hover { opacity: .72; }
}

/* navigasi bawah ponsel */
#navbawah { display: none; }
.nb {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 58px; padding: 6px 2px; color: var(--ink-3);
  font-family: var(--f-body); font-size: 11.5px; letter-spacing: .005em;
  background: none; border: 0; cursor: pointer; text-decoration: none;
}
.nb svg { width: 20px; height: 20px; }
.nb[aria-current="page"], .nb.on, .nb[aria-expanded="true"] { color: var(--hot); }
#nbLembar {
  position: absolute; right: 8px; bottom: calc(100% + 8px); min-width: 210px;
  display: grid; background: var(--paper); border: 1px solid var(--rule-strong);
  box-shadow: 0 12px 32px rgba(0,0,0,.18); animation: popIn .2s cubic-bezier(.2,.9,.25,1);
}
#nbLembar a { padding: 15px 18px; border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 14.5px; }
#nbLembar a:last-child { border-bottom: 0; }
#nbLembar a[aria-current="page"] { color: var(--hot); }
@media (max-width: 720px) {
  #navmain { display: none; }
  .topbar-right { margin-left: auto; }
  #navbawah {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--ground);
    background: color-mix(in srgb, var(--ground) 94%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--rule);
  }
  body { padding-bottom: 60px; }
  #toaster { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
/* layar sentuh: blur di balik bilah atas/bawah dihitung ulang tiap bingkai gulir dan
   berat di ponsel; diganti latar hampir padat yang tampak sama */
@media (hover: none) {
  #topbar, #navbawah { -webkit-backdrop-filter: none; backdrop-filter: none; }
  #topbar { background: color-mix(in srgb, var(--ground) 96%, transparent); }
  #navbawah { background: color-mix(in srgb, var(--ground) 98%, transparent); }
}
@media print {
  #navbawah, #topbar, #toaster { display: none !important; }
}

/* logo tulisan */
.logokata { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; line-height: 1; }
.logokata svg { display: block; height: var(--lk-h); width: auto; overflow: visible; }
.logokata small { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .24em; color: var(--ink-3); font-weight: 500; padding-left: 2px; }
@media (max-width: 420px) { .logokata svg { height: 15px; } }

/* panah geser untuk deretan tab */
.geser { position: relative; }
.geser-btn {
  display: none; position: absolute; top: 0; bottom: 1px; width: 44px; z-index: 3;
  border: 0; padding: 0; cursor: pointer; color: var(--ink); align-items: center;
}
.geser.bisa-geser .geser-btn { display: flex; }
.geser-btn span {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--rule-strong); box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.geser-btn svg { width: 14px; height: 14px; }
.geser-btn.kiri { left: 0; justify-content: flex-start; background: linear-gradient(to right, var(--ground) 55%, transparent); }
.geser-btn.kanan { right: 0; justify-content: flex-end; background: linear-gradient(to left, var(--ground) 55%, transparent); }
.geser-btn:disabled { opacity: 0; pointer-events: none; }
.geser.bisa-geser .tabbar { scroll-padding-inline: 44px; }
@media (hover: hover) { .geser-btn:hover span { border-color: var(--hot); color: var(--hot); } }

/* pilihan jawaban ujian */
.opt.pilih { border-color: var(--hot); background: var(--hot-soft); }

/* kartu level kuis */
.levels > .level { display: flex; flex-direction: column; gap: 10px; padding: 22px var(--gut) 24px; }
.level h3 { font-size: 20px; }
.level-kunci { opacity: .6; }
.level-lulus { box-shadow: inset 0 3px 0 var(--ok); }

/* kartu program */
.progs > .prog, .prog {
  display: flex; flex-direction: column; gap: 10px; padding: 24px var(--gut) 26px;
  color: inherit; text-decoration: none; transition: background .2s;
}
.prog h3 { font-size: 18px; }
.prog p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
@media (hover: hover) { .prog:hover { background: var(--paper); } }
.prog-ikon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--hot); }
.prog-ikon svg { width: 22px; height: 22px; }
.prog-ikon.bad { background: var(--bad); } .prog-ikon.info { background: var(--info); } .prog-ikon.ok { background: var(--ok); } .prog-ikon.warn { background: var(--warn); }

.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1180px) { .g5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .g5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g5 { grid-template-columns: 1fr; } }

/* FAQ */
.faqs { padding-block: 6px 30px; }
.faq { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--hot); font-size: 18px; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--ink-2); line-height: 1.65; max-width: 70ch; }

/* dinding wajib daftar */
.wajib-daftar { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 34px; border: 1px solid var(--hot-line); background: var(--hot-soft); }

/* login Google */
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; gap: 10px; font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: 14.5px; font-weight: 600; }
.btn-google svg { width: 18px; height: 18px; }
@media (hover: hover) { .btn-google:hover { background: #f7f8f8; } }
.atau { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-family: var(--f-body); font-size: 12.5px; letter-spacing: .005em; text-transform: none; }
.atau::before, .atau::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ---------------- video materi ---------------- */
.vm-kartu { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 30px; border: 1px solid var(--hot-line); background: var(--hot-soft); }
.vm-poster { width: 64px; height: 64px; flex: none; border-radius: 18px; background: var(--hot); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(255,90,31,.28); }
.vm-poster svg { width: 26px; height: 26px; margin-left: 3px; }
html.vm-buka { overflow: hidden; }
.vm-scrim { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 180; background: rgba(8,8,6,.78); display: flex; align-items: center; justify-content: center; padding: 16px; padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); animation: fadeIn .2s ease; }
.vm-box { width: min(1100px, 100%); max-height: 100%; overflow: auto; background: var(--paper); border: 1px solid var(--rule-strong); display: flex; flex-direction: column; }
.vm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.vm-judul { font-family: var(--f-head); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.vm-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--paper-2); }
@supports not (aspect-ratio: 16 / 9) { .vm-stage { height: 0; padding-top: 56.25%; } }
.vm-stage canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.vm-sub { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(88%, 760px); text-align: center; background: rgba(12,12,10,.78); color: #fff; font-size: clamp(12px, 1.9vw, 16px); line-height: 1.45; padding: 8px 14px; border-radius: 8px; pointer-events: none; }
.vm-besar { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--hot); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.vm-besar svg { width: 28px; height: 28px; margin-left: 4px; }
.vm-scrim.main .vm-besar { display: none; }
.vm-ctrl { display: flex; align-items: center; gap: 8px; padding: 10px 12px; flex-wrap: wrap; border-top: 1px solid var(--rule); }
.vm-scrub { position: relative; flex: 1 1 220px; min-width: 160px; }
.vm-scrub input { width: 100%; accent-color: var(--hot); }
.vm-tanda { position: absolute; left: 0; right: 0; top: -4px; height: 4px; pointer-events: none; }
.vm-tanda i { position: absolute; width: 2px; height: 8px; background: var(--hot); opacity: .6; }
.vm-bab { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px 14px; }
.vm-bab .chip { cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.vm-bab .chip:hover { color: var(--ink); border-color: var(--ink-3); }
.vm-bab .chip.aktif { color: var(--hot); border-color: var(--hot-line); background: var(--hot-soft); }
.vm-scrim.teater { padding: 0; }
.vm-scrim.teater .vm-box { width: 100%; height: 100%; border: 0; }
.vm-box:fullscreen { width: 100%; height: 100%; max-height: none; }
.vm-box:fullscreen .vm-stage { flex: 1; aspect-ratio: auto; }
@media (max-width: 620px) {
  /* subtitle pindah ke bawah video agar tidak menutupi layar kecil */
  .vm-stage { aspect-ratio: auto; height: calc(56.25vw + 92px); }
  .vm-stage canvas { height: 56.25vw; bottom: auto; }
  .vm-sub { top: calc(56.25vw + 8px); bottom: auto; width: calc(100% - 24px); background: transparent; color: var(--ink); font-size: 14px; padding: 4px 0; }
  .vm-besar { top: 28.125vw; width: 60px; height: 60px; }
  .vm-scrim { padding: 0; align-items: stretch; }
  .vm-box { width: 100%; border: 0; }
  .vm-kartu .btn { width: 100%; justify-content: center; }
}

/* ---------- rujukan internasional (halaman modul) ---------- */
.ruj { list-style: none; margin: 0; padding: 4px 18px 0; }
.ruj li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.ruj li:last-child { border-bottom: 0; }
.ruj .chip { flex: none; margin-top: 1px; }
.ruj li > div { min-width: 0; }
.ruj strong { display: block; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ruj .hint { display: block; margin-top: 3px; line-height: 1.45; }
.ruj-cat { margin: 0; padding: 4px 18px 16px; line-height: 1.55; }
@media (max-width: 560px) {
  .ruj { padding: 2px 14px 0; }
  .ruj li { flex-direction: column; gap: 6px; }
  .ruj-cat { padding: 4px 14px 14px; }
}


/* ============================================================
   REVISI V2
   ============================================================ */

/* navigasi atas: panah geser bila menu lebih lebar dari layar */
.topbar-in > .geser { flex: 1 1 auto; min-width: 0; display: flex; }
.topbar-in > .geser > #navmain { flex: 1 1 auto; min-width: 0; }
.topbar-in > .geser.bisa-geser > #navmain { -webkit-mask-image: none; mask-image: none; scroll-padding-inline: 44px; }
.topbar-in > .geser .geser-btn { bottom: 0; }
.topbar-in > .geser .geser-btn.kiri { background: linear-gradient(to right, var(--ground) 60%, transparent); }
.topbar-in > .geser .geser-btn.kanan { background: linear-gradient(to left, var(--ground) 60%, transparent); }
.navpaket { color: var(--hot); }

/* avatar */
.avatar {
  width: var(--av); height: var(--av); border-radius: 50%; flex: none; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hot); color: #fff; font-family: var(--f-head); font-weight: 700;
  font-size: calc(var(--av) * .4); line-height: 1; letter-spacing: .02em;
  box-shadow: 0 0 0 1px var(--rule-strong);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.akunbtn { gap: 8px; padding-left: 6px; }
.akunbtn .avatar { box-shadow: none; }

/* popup akun */
#akunMenu {
  position: fixed; z-index: 90; width: min(320px, calc(100vw - 20px));
  background: var(--paper); border: 1px solid var(--rule-strong);
  box-shadow: 0 18px 48px rgba(0,0,0,.28); animation: popIn .18s cubic-bezier(.2,.9,.25,1);
}
.am-kepala { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-bottom: 1px solid var(--rule); }
.am-id { min-width: 0; }
.am-id b { display: block; font-family: var(--f-head); font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.am-id > span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; overflow-wrap: anywhere; }
.am-foto { position: relative; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; flex: none; }
.am-foto i {
  position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule-strong);
}
.am-foto i svg { width: 12px; height: 12px; }
.am-daftar { display: grid; padding: 6px 0; }
.am-daftar a, .am-daftar button {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px; min-height: 44px;
  color: var(--ink); font: inherit; font-size: 14px; background: none; border: 0; text-align: left; cursor: pointer;
}
.am-daftar a:hover, .am-daftar button:hover, .am-daftar a:focus-visible { background: var(--paper-2); }
.am-daftar svg { color: var(--ink-3); flex: none; }
.am-daftar em { margin-left: auto; font-style: normal; font-family: var(--f-body); font-size: 12.0px; letter-spacing: .005em; color: var(--hot); text-transform: none; }
.am-daftar .am-keluar { color: var(--bad); border-top: 1px solid var(--rule); margin-top: 4px; }
.am-daftar .am-keluar svg { color: var(--bad); }

/* profil */
.prof-kepala { display: flex; flex-direction: row; gap: 22px; align-items: center; flex-wrap: wrap; }
.prof-foto { display: flex; flex-direction: column; align-items: center; gap: 8px; }
/* kolom nama: jarak antar-baris sendiri (gap .pagehead hanya berlaku untuk anak langsung) */
.prof-id { display: flex; flex-direction: column; gap: 14px; min-width: 0; flex: 1 1 200px; }
.prof-id h2 { line-height: 1.15; overflow-wrap: anywhere; }
.prof-id .chip { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 560px) { .prof-kepala { gap: 16px; } }

/* sertifikat */
.sert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.sert-kartu { border: 1px solid var(--rule); background: var(--paper); display: flex; flex-direction: column; }
.sert-pratinjau {
  aspect-ratio: 2000 / 1414; background: var(--paper-2); border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
@supports not (aspect-ratio: 1) { .sert-pratinjau { height: 0; padding-top: 70.7%; position: relative; } .sert-pratinjau > * { position: absolute; top: 0; left: 0; } }
.sert-pratinjau canvas { width: 100%; height: 100%; display: block; }
.sert-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.sert-info h3 { font-size: 18px; }

/* kurikulum di ponsel: kartu sederhana */
.mk-list { display: none; }
@media (max-width: 720px) {
  .mk-tabel { display: none; }
  .mk-list { display: grid; }
  .mk-kartu {
    display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
    border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none;
  }
  .mk-kartu b { font-size: 15px; line-height: 1.35; }
  .mk-kartu .hint { line-height: 1.5; }
  .mk-kartu > .row > svg { color: var(--ink-3); flex: none; }
  a.mk-kartu:active { background: var(--paper-2); }
}

/* nilai akhir saat kuis diakhiri */
.nilai-akhir { text-align: center; padding: 6px 0 2px; }
.nilai-akhir .figure { margin-bottom: 12px; }

/* pemutar musik santai */
.musik { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 66; }
.musik-fab {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rule-strong); cursor: pointer;
  background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .2s, border-color .2s;
}
.musik-fab:hover { transform: translateY(-2px); border-color: var(--hot); }
.musik-fab .musik-eq { display: none; }
.musik.main .musik-fab { background: var(--hot); color: #fff; border-color: var(--hot); }
.musik.main .musik-fab .musik-eq { display: flex; }
.musik.main .musik-fab .musik-ikon { display: none; }
.musik-eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.musik-eq i { width: 3px; background: currentColor; border-radius: 2px; height: 30%; animation: eqNaik 1s ease-in-out infinite; }
.musik-eq i:nth-child(2) { animation-delay: -.3s; } .musik-eq i:nth-child(3) { animation-delay: -.6s; } .musik-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eqNaik { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.musik-panel {
  position: absolute; left: 0; bottom: calc(100% + 10px); width: min(300px, calc(100vw - 32px));
  background: var(--paper); border: 1px solid var(--rule-strong); padding: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.28); animation: popIn .18s cubic-bezier(.2,.9,.25,1);
  display: flex; flex-direction: column; gap: 12px;
}
.musik-panel[hidden] { display: none; }
.musik-kini { display: flex; gap: 12px; align-items: center; }
.musik-kini b { display: block; font-family: var(--f-head); font-size: 15px; line-height: 1.2; }
.musik-kini span { display: block; font-size: 13.0px; color: var(--ink-3); font-family: var(--f-body); }
.musik-sampul {
  width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--hot), #7a2cff); border-radius: 6px;
}
.musik-sampul[data-t="hujan"] { background: linear-gradient(135deg, #2b6cb0, #1a202c); }
.musik-sampul[data-t="kopi"] { background: linear-gradient(135deg, #8a5a33, #1f1410); }
.musik-sampul[data-t="ombak"] { background: linear-gradient(135deg, #ff9a5a, #2f80ed); }
.musik-sampul[data-t="fokus"] { background: linear-gradient(135deg, #3a3a33, #121210); }
.musik-sampul .musik-eq i { animation-play-state: paused; }
.musik-sampul.jalan .musik-eq i { animation-play-state: running; }
.musik-kendali { display: flex; align-items: center; justify-content: center; gap: 14px; }
.musik-kendali [data-kunci] { opacity: .45; }
.musik-main {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--hot); color: #fff; display: flex; align-items: center; justify-content: center;
}
.musik-main svg { width: 18px; height: 18px; }
.musik-vol { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.musik-vol input { flex: 1; accent-color: var(--hot); min-width: 0; }
.musik-vol.terkunci { opacity: .55; }
.musik-daftar { display: grid; border-top: 1px solid var(--rule); }
.musik-daftar button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 2px;
  background: none; border: 0; border-bottom: 1px solid var(--rule); color: var(--ink); font: inherit; font-size: 13.5px;
  cursor: pointer; text-align: left;
}
.musik-daftar button.on { color: var(--hot); font-weight: 600; }
.musik-daftar button[data-kunci] { color: var(--ink-3); }
.musik-ajak { margin: 0; line-height: 1.55; }
.musik-ajak a { color: var(--hot); display: inline-flex; align-items: center; gap: 4px; }
html.vm-buka .musik { display: none; }
@media (max-width: 720px) {
  .musik { left: 12px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .musik-fab { width: 42px; height: 42px; }
}
@media print { .musik, #akunMenu { display: none !important; } }

.vm-box { position: relative; }

/* ============================================================
   ANIMASI NAVIGASI (gaya mega-menu modern)
   ============================================================ */
#navmain { position: relative; }
.navlink { z-index: 1; }
.nav-pil {
  position: absolute; left: 0; top: 50%; height: 32px; margin-top: -16px; width: 0; z-index: 0;
  border-radius: 999px; pointer-events: none; opacity: 0;
  background: rgba(128,128,120,.16); background: color-mix(in srgb, var(--ink) 9%, transparent);
  transition: transform .34s cubic-bezier(.2,.9,.25,1), width .34s cubic-bezier(.2,.9,.25,1), opacity .18s;
}
.nav-pil.on { opacity: 1; }
.nav-pil.lompat { transition: opacity .18s; }
@media (hover: hover) {
  .navlink:not([aria-current="page"]):hover::after { transform: scaleX(0); }
  .navlink:hover { color: var(--ink); }
}

#mega { position: fixed; left: 0; top: 64px; z-index: 80; pointer-events: none; }
#mega.buka { pointer-events: auto; }
.mm-panel {
  position: absolute; left: 0; top: 0; overflow: hidden; margin-top: -8px; opacity: 0;
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.34), 0 2px 8px rgba(0,0,0,.12);
  transition: width .36s cubic-bezier(.2,.9,.25,1), height .36s cubic-bezier(.2,.9,.25,1),
    transform .36s cubic-bezier(.2,.9,.25,1), opacity .2s, margin-top .24s cubic-bezier(.2,.9,.25,1);
}
.mm-panel.instan { transition: opacity .2s, margin-top .24s cubic-bezier(.2,.9,.25,1); }
#mega.buka .mm-panel { opacity: 1; margin-top: 0; }
.mm-lapis {
  position: absolute; left: 0; top: 0; width: max-content; max-width: calc(100vw - 32px);
  display: flex; gap: 6px; padding: 16px; opacity: 0; transition: opacity .22s .05s;
}
.mm-lapis.masuk { opacity: 1; }
.mm-lapis.keluar { opacity: 0; transition: opacity .14s; }
.mm-kol { display: flex; flex-direction: column; gap: 2px; min-width: 240px; }
.mm-kol + .mm-kol { border-left: 1px solid var(--rule); padding-left: 10px; }
.mm-judul { font-family: var(--f-body); font-size: 12.0px; letter-spacing: .005em; text-transform: none; color: var(--ink-3); padding: 4px 10px 8px; }
.mm-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 10px;
  color: var(--ink); text-decoration: none; transition: background .15s;
}
.mm-item:hover, .mm-item:focus-visible { background: var(--paper-2); }
.mm-item b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.mm-item small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.45; margin-top: 2px; max-width: 34ch; }
.mm-ikon {
  width: 30px; height: 30px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: var(--hot-soft); color: var(--hot);
}
.mm-ikon svg { width: 14px; height: 14px; }
.mm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 0 4px; }

/* tombol pil + keadaan memuat (spinner) */
.btn.pil { border-radius: 999px; transition: width .3s cubic-bezier(.2,.9,.25,1), padding .3s, background .2s, color .2s, border-color .2s, transform .18s; }
.btn.pil.garis { background: transparent; border-color: var(--rule-strong); }
.btn.pil.garis:hover { border-color: var(--ink); }
.btn.memuat {
  width: var(--tinggi, 36px) !important; padding-left: 0 !important; padding-right: 0 !important;
  color: transparent !important; position: relative; overflow: hidden; pointer-events: none;
}
.btn.memuat > * { opacity: 0; }
.btn.memuat::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; border: 2px solid var(--ink); border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn.hot.memuat::after { border-color: #fff; border-right-color: transparent; }
@media (max-width: 480px) { .topbar-right .daftarbtn { display: none; } }

/* transisi halus setiap pindah halaman */
.rute-masuk { animation: ruteMasuk .34s cubic-bezier(.2,.9,.25,1) backwards; }
@keyframes ruteMasuk { from { opacity: 0; transform: translateY(8px); } }

/* halaman masuk/daftar: muncul bertahap */
.authside > *, .authform > * { animation: riseIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.authside > :nth-child(2), .authform > :nth-child(2) { animation-delay: .06s; }
.authside > :nth-child(3), .authform > :nth-child(3) { animation-delay: .12s; }
.authside > :nth-child(4), .authform > :nth-child(4) { animation-delay: .18s; }
.authside > :nth-child(5) { animation-delay: .24s; }

/* ---------------- animasi pembuka ---------------- */
#intro { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 10000; }
#intro canvas { display: block; }
html.intro-jalan, html.intro-jalan body { overflow: hidden; }
/* hanya opasitas pada #app agar elemen fixed di dalamnya tidak ikut bergeser */
#app.intro-muncul { animation: introMuncul .8s ease both; }
#app.intro-muncul #view { animation: introNaik .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes introMuncul { from { opacity: 0; } to { opacity: 1; } }
@keyframes introNaik { from { transform: translateY(14px); } to { transform: none; } }

/* ---------------- hero 3D ---------------- */
.hero-right.tiga-d { min-height: 420px; }
.hero3d { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 900px) { .hero-right.tiga-d { min-height: 320px; } }

/* ---------------- cari materi (lihat cari.js) ---------------- */
.cari-baris { margin: -6px 0 22px; }
.cari-pemicu {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: text;
  padding: 13px 14px; background: var(--paper); color: var(--ink-3);
  border: 1px solid var(--rule-strong); border-radius: var(--rad);
  font: inherit; font-size: 14.5px; transition: border-color .18s, color .18s, background-color .18s;
}
.cari-pemicu:hover { border-color: var(--ink-3); color: var(--ink-2); }
.cari-pemicu:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }
.cari-pemicu svg { flex: none; width: 16px; height: 16px; color: var(--ink-2); }
.cari-pemicu span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cari-pemicu kbd, .cari-kaki kbd {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--ink-3);
  border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 3px; padding: 1px 6px; background: var(--paper-2);
}
@media (hover: none) { .cari-pemicu kbd { display: none; } }

.cari-scrim {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200;
  display: flex; justify-content: center; align-items: flex-start;
  padding: max(9vh, 64px) 16px 16px; background: rgba(8, 8, 6, 0);
  transition: background-color .16s ease;
}
.cari-scrim.masuk { background: rgba(8, 8, 6, .55); }
html.cari-buka { overflow: hidden; }
.cari-panel {
  width: min(680px, 100%); max-height: min(640px, 100%); display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(-8px) scale(.985); transition: opacity .16s ease, transform .2s cubic-bezier(.2, .9, .3, 1);
}
.cari-scrim.masuk .cari-panel { opacity: 1; transform: none; }
.cari-kepala { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--rule); }
.cari-ikon { display: flex; color: var(--hot); }
.cari-ikon svg { width: 18px; height: 18px; }
.cari-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 17px; padding: 12px 0; -webkit-appearance: none; appearance: none;
}
.cari-input::placeholder { color: var(--ink-4); }
.cari-input::-webkit-search-cancel-button { display: none; }
.cari-hasil { overflow-y: auto; overscroll-behavior: contain; padding: 6px; flex: 1; min-height: 120px; }
.cari-jumlah { font-size: 12.5px; letter-spacing: .005em; text-transform: none; color: var(--ink-3); padding: 6px 10px 8px; }
.cari-item {
  position: relative; display: grid; gap: 3px; padding: 11px 40px 11px 12px; border-radius: 4px;
  border: 1px solid transparent; color: var(--ink);
}
.cari-item.aktif { background: var(--hot-soft); border-color: var(--hot-line); }
.cari-meta { font-size: 12.5px; letter-spacing: .005em; text-transform: none; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cari-selesai { color: var(--ok); }
.cari-judul { font-family: var(--f-head); font-size: 16px; line-height: 1.3; }
.cari-cuplik { font-size: 13px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cari-item mark { background: transparent; color: var(--hot); font-weight: 600; }
.cari-kunci { position: absolute; top: 12px; right: 12px; color: var(--ink-3); display: flex; }
.cari-kunci svg { width: 14px; height: 14px; }
.cari-kosong { padding: 18px 12px; display: grid; gap: 10px; }
.cari-kosong .hint { margin: 0; }
.cari-contoh { display: flex; flex-wrap: wrap; gap: 6px; }
.cari-contoh .chip { cursor: pointer; font-size: 11px; padding: 6px 10px; }
.cari-contoh .chip:hover { color: var(--hot); border-color: var(--hot-line); }
.cari-kaki { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--rule); font-size: 11px; color: var(--ink-3); }
.cari-kaki span { display: flex; align-items: center; gap: 5px; }
#nbLembar a.nb-cari { display: flex; align-items: center; gap: 10px; color: var(--hot); }
#nbLembar a.nb-cari svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .cari-scrim { padding: 0; align-items: stretch; }
  .cari-panel { max-height: none; height: 100%; border: 0; border-radius: 0; }
  .cari-kaki { display: none; }
  .cari-kepala { padding-top: max(6px, env(safe-area-inset-top)); }
  .cari-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .cari-panel, .cari-scrim { transition: none; } }

/* sorotan modul baru di halaman Kurikulum */
.modul-baru {
  display: flex; align-items: center; gap: 16px; margin: 0 0 22px; padding: 16px 18px;
  border: 1px solid var(--hot-line); background: var(--hot-soft); border-radius: var(--rad); color: var(--ink);
  transition: border-color .18s, transform .18s;
}
.modul-baru:hover { border-color: var(--hot); }
.modul-baru-ikon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--hot); color: var(--hot-ink); }
.modul-baru-ikon svg { width: 20px; height: 20px; }
.modul-baru-isi { flex: 1; min-width: 0; display: grid; gap: 3px; }
.modul-baru-isi b { font-family: var(--f-head); font-size: 18px; line-height: 1.25; }
.modul-baru-isi .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modul-baru-aksi { flex: none; display: flex; align-items: center; gap: 6px; font-size: 13.0px; letter-spacing: .005em; text-transform: none; color: var(--hot); }
@media (max-width: 720px) {
  .modul-baru { flex-wrap: wrap; }
  .modul-baru-isi .hint { white-space: normal; }
  .modul-baru-aksi { width: 100%; justify-content: flex-end; }
}

/* teks untuk pembaca layar & mesin pencari, tidak tampil di layar */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }


/* ============================================================
   DESAIN V2 — pil, kaca, sudut membulat
   Lapisan terakhir: menimpa gaya lama tanpa mengubah markup halaman.
   Latar tetap milik v1 (butiran #gridfield tanpa garis kisi + #doodle), begitu juga gelombang tema.
   ============================================================ */
:root {
  --rad: 14px; --rad-l: 24px; --topbar-h: 70px;
  --kartu: rgba(251, 251, 249, .8); --kaca: rgba(255, 255, 255, .58); --kaca-kuat: rgba(252, 252, 250, .9);
  --kaca-garis: rgba(22, 22, 15, .1);
  --pil: #16160F; --pil-teks: #F4F2EC; --sorot: rgba(22, 22, 15, .07);
  --bayang: 0 22px 44px -28px rgba(22, 22, 15, .4);
  --lentur: cubic-bezier(.2, .8, .2, 1); --pantul: cubic-bezier(.34, 1.56, .64, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --kartu: rgba(30, 30, 27, .82); --kaca: rgba(40, 40, 36, .58); --kaca-kuat: rgba(36, 36, 33, .92);
    --kaca-garis: rgba(239, 239, 233, .1);
    --pil: #EFEFE9; --pil-teks: #121210; --sorot: rgba(239, 239, 233, .09);
    --bayang: 0 22px 44px -26px rgba(0, 0, 0, .75);
  }
}
:root[data-theme="dark"] {
  --kartu: rgba(30, 30, 27, .82); --kaca: rgba(40, 40, 36, .58); --kaca-kuat: rgba(36, 36, 33, .92);
  --kaca-garis: rgba(239, 239, 233, .1);
  --pil: #EFEFE9; --pil-teks: #121210; --sorot: rgba(239, 239, 233, .09);
  --bayang: 0 22px 44px -26px rgba(0, 0, 0, .75);
}
.kaca { background: var(--kaca); border: 1px solid var(--kaca-garis); -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25); }

/* ---------- bilah atas: dua kelompok pil mengapit logo ---------- */
#topbar { background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color .3s, box-shadow .3s; }
#topbar.tergulir { background: color-mix(in srgb, var(--ground) 72%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--kaca-garis); }
.topbar-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; height: var(--topbar-h); max-width: 1480px; padding-inline: clamp(12px, 2.4vw, 36px); }
.tb-kiri, .topbar-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar-right { justify-content: flex-end; padding: 0; border: 0; }
.brandcell { border: 0; padding: 6px 4px; background: none; cursor: pointer; justify-self: center; color: var(--ink); }
.brandcell .logokata small { display: none; }
#topbar .pil-grup { position: relative; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; overflow: visible; flex: none; -webkit-mask-image: none; mask-image: none; }
.pil-grup .navlink {
  position: relative; z-index: 1; display: flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
  font: 600 12.5px/1 var(--f-body); letter-spacing: .005em; text-transform: none; color: var(--ink-2); white-space: nowrap; transition: color .3s var(--lentur);
}
.pil-grup .navlink::after { display: none; }
.pil-grup .navlink:hover { color: var(--ink); }
.pil-grup .navlink[aria-current="page"] { color: var(--pil-teks); }
.pil-grup .navlink.navpaket { color: var(--hot); }
.pil-grup .navlink.navpaket[aria-current="page"] { color: var(--pil-teks); }
.pil-grup .aktif-bg { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--pil); opacity: 0;
  transition: left .5s var(--lentur), width .5s var(--lentur), opacity .25s; }
.pil-grup .aktif-bg.on { opacity: 1; }
.pil-grup .aktif-bg.lompat { transition: opacity .25s; }
.pil-grup .nav-pil { top: 4px; bottom: 4px; height: auto; margin: 0; background: var(--sorot); }
.bulat, #topbar .iconbtn { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink); cursor: pointer; padding: 0;
  background: var(--kaca); border: 1px solid var(--kaca-garis); transition: transform .35s var(--lentur), border-color .2s; }
.bulat:hover, #topbar .iconbtn:hover { transform: scale(1.06); border-color: var(--rule-strong); color: var(--ink); }
.bulat svg, #topbar .iconbtn svg { width: 18px; height: 18px; }
#topbar .btn { height: 44px; }
#topbar .btn.pil.garis { background: var(--kaca); border-color: var(--kaca-garis); }
#topbar .btn.pil.hot { background: var(--pil); border-color: var(--pil); color: var(--pil-teks); box-shadow: none; }
.akunbtn { height: 44px; padding: 0 16px 0 5px !important; border-radius: 999px; background: var(--kaca) !important; border-color: var(--kaca-garis) !important; }
.akunbtn .avatar { --av: 34px !important; width: 34px; height: 34px; }
.menu-hp { display: none; position: relative; }
.menu-hp i { position: absolute; left: 13px; right: 13px; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform .45s var(--lentur), top .45s var(--lentur); }
.menu-hp i:first-child { top: 17px; } .menu-hp i:last-child { top: 25px; }
.menu-hp[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.menu-hp[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }
#panelHp { position: fixed; z-index: 85; right: clamp(12px, 2.4vw, 36px); top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) - 4px);
  width: min(360px, calc(100vw - 24px)); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px; border-radius: 24px;
  background: var(--kaca-kuat); box-shadow: var(--bayang);
  transform-origin: calc(100% - 22px) -10px; transform: scale(.4); opacity: 0; visibility: hidden; transition: transform .5s var(--lentur), opacity .3s, visibility 0s .5s; }
#panelHp.buka { transform: none; opacity: 1; visibility: visible; transition: transform .55s var(--pantul), opacity .25s, visibility 0s; }
#panelHp a { font: 600 13.0px/1 var(--f-body); letter-spacing: .005em; text-transform: none; padding: 16px 14px; border-radius: 16px; color: var(--ink);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--lentur), background .2s; }
#panelHp a:hover { background: var(--sorot); }
#panelHp a[aria-current="page"] { background: var(--pil); color: var(--pil-teks); }
#panelHp a.hp-daftar { grid-column: 1 / -1; background: var(--hot); color: #fff; text-align: center; }
#panelHp.buka a { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i) * .04s); }
@media (max-width: 1180px) {
  #topbar .pil-grup { display: none; }
  .menu-hp { display: grid; }
  .topbar-in { grid-template-columns: auto 1fr; }
  .tb-kiri { display: none; }
  .brandcell { justify-self: start; }
}
@media (max-width: 720px) {
  .menu-hp, #panelHp { display: none; }
  .topbar-right { gap: 6px; }
  .bulat, #topbar .iconbtn, #topbar .btn, .akunbtn { height: 40px; }
  .bulat, #topbar .iconbtn { width: 40px; }
  .akunbtn .avatar { --av: 30px !important; width: 30px; height: 30px; }
  .akunbtn { padding: 0 5px !important; }
  .akunbtn .lbl { display: none; }
}
@media (max-width: 480px) { #topbar .btn.pil.garis { display: none; } #topbar .topbar-right .daftarbtn { display: inline-flex; } }

/* ---------- mega menu, menu akun, lembar lainnya: kaca membulat ---------- */
.mm-panel, #akunMenu, #nbLembar, .musik-panel { background: var(--kaca-kuat); border: 1px solid var(--kaca-garis); border-radius: 24px; box-shadow: var(--bayang), 0 2px 10px rgba(0,0,0,.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); overflow: hidden; }
#akunMenu { animation: panelBuka .45s var(--pantul); transform-origin: calc(100% - 30px) -8px; }
@keyframes panelBuka { from { opacity: 0; transform: scale(.6); } }
.am-daftar a, .am-daftar button { border-radius: 14px; margin: 0 6px; }
.mm-item { border-radius: 14px; }
#mega { top: calc(var(--topbar-h) - 6px); }

/* ---------- navigasi bawah ponsel: pil kaca melayang ---------- */
@media (max-width: 720px) {
  #navbawah { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 5px; border-radius: 26px;
    border: 1px solid var(--kaca-garis); box-shadow: var(--bayang); background: var(--kaca-kuat); }
  .nb { min-height: 52px; border-radius: 20px; transition: background .3s var(--lentur), color .2s; }
  .nb[aria-current="page"], .nb.on { background: var(--pil); color: var(--pil-teks); }
  .nb[aria-expanded="true"] { background: var(--sorot); color: var(--ink); }
  #nbLembar { right: 0; bottom: calc(100% + 10px); padding: 6px; animation: panelBuka .45s var(--pantul); transform-origin: calc(100% - 30px) calc(100% + 8px); }
  #nbLembar a { border-radius: 14px; border-bottom: 0; }
  #nbLembar a[aria-current="page"] { background: var(--sorot); }
  body { padding-bottom: 84px; }
  #toaster { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .musik { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}
@media (hover: none) { #topbar.tergulir { background: color-mix(in srgb, var(--ground) 94%, transparent); } }

/* ---------- tipografi ---------- */
.eyebrow::before { width: 8px; height: 8px; border-radius: 50%; }
.pagehead h1, .pagehead h2, .section-head h2 { text-transform: uppercase; letter-spacing: -.005em; line-height: .96; }
.pagehead h1 { font-size: clamp(34px, 4.4vw, 60px); }
.pagehead h2, .section-head h2 { font-size: clamp(30px, 3.6vw, 52px); }
.section { border-bottom: 0; }
.section-head { padding-top: 64px; }

/* ---------- tombol pil ---------- */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: .005em; font-size: 14px; padding: 13px 20px; background: var(--kartu); border-color: var(--kaca-garis);
  transition: transform .35s var(--lentur), background .2s, color .2s, border-color .2s, box-shadow .35s var(--lentur), width .3s var(--lentur), padding .3s; }
.btn:hover { border-color: var(--rule-strong); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.hot { border-radius: 999px; box-shadow: 0 12px 26px -14px rgba(255, 90, 31, .9); }
.btn.solid { background: var(--pil); color: var(--pil-teks); border-color: var(--pil); }
.btn.solid:hover { background: var(--pil); color: var(--pil-teks); box-shadow: var(--bayang); }
.btn.sm { padding: 10px 15px; }
.btn.tiny { padding: 7px 11px; }
.btn.danger { background: transparent; }
.btn svg { transition: transform .35s var(--lentur); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
.btn:disabled { transform: none; box-shadow: none; }
.iconbtn { border-radius: 50%; background: var(--kartu); border-color: var(--kaca-garis); }
.btn-google { background: #fff; border-color: #dadce0; }

/* ---------- kartu & panel kaca ---------- */
.panel { background: var(--kartu); border: 1px solid var(--kaca-garis); border-radius: var(--rad-l); box-shadow: var(--bayang); }
.panel-head { border-bottom-color: var(--kaca-garis); padding: 16px 20px; }
.panel-pad { padding: 22px; }
.cardgrid, .cardgrid[style] { border-top: 0 !important; gap: 12px; }
.section > .cardgrid { max-width: 1400px; margin: 0 auto; padding-inline: var(--gut); }
.cardgrid > * { border: 1px solid var(--kaca-garis) !important; border-radius: var(--rad-l); background: var(--kartu); padding: 24px;
  transition: transform .4s var(--lentur), box-shadow .4s var(--lentur), border-color .2s, background .2s; }
.feat:hover, .prog:hover { background: var(--kartu); }
@media (hover: hover) {
  .cardgrid > a:hover, .cardgrid > .feat:hover, .cardgrid > .prog:hover, .cardgrid > .level:hover { transform: translateY(-4px); box-shadow: var(--bayang); border-color: var(--rule-strong) !important; }
  .panel { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.plan-unggul { border-color: var(--hot-line) !important; box-shadow: 0 0 0 1px var(--hot-line), var(--bayang); }
.level-lulus { box-shadow: inset 0 0 0 1px var(--ok); }
.prog-ikon { border-radius: 16px; }
.chip { border-radius: 999px; padding: 5px 10px; }
.callout { border: 1px solid var(--hot-line); border-radius: 18px; padding: 15px 18px; }
.kunci, .wajib-daftar, .vm-kartu, .total-bayar, .modul-baru, .cert, .sert-kartu { border-radius: var(--rad-l); }
.kunci-ikon, .vm-poster { border-radius: 16px; }
.wajib-daftar { padding: 38px; }
.sert-kartu { overflow: hidden; }
.qris { border-radius: 16px; }
.kv { border-top-color: var(--kaca-garis); }
.kv > dt, .kv > dd { border-bottom-color: var(--kaca-garis); }
.faq { border: 1px solid var(--kaca-garis); border-radius: 20px; background: var(--kartu); padding: 0 22px; margin-bottom: 10px; transition: border-color .2s; }
.faq[open] { border-color: var(--rule-strong); }
.faq summary::after { content: "+"; transition: transform .4s var(--pantul); }
.faq[open] summary::after { content: "+"; transform: rotate(45deg); }
.pratinjau-kabur { border-radius: var(--rad-l); }

/* ---------- tab: kelompok pil ---------- */
.tabbar { gap: 2px; padding: 4px; border: 1px solid var(--kaca-garis); border-radius: 999px; background: var(--kartu); width: max-content; max-width: 100%; }
.tab { border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 600; letter-spacing: .09em; transition: background .35s var(--lentur), color .2s; }
.tab:hover { background: var(--sorot); color: var(--ink); }
.tab.on { background: var(--pil); color: var(--pil-teks); }
.geser-btn.kiri, .geser-btn.kanan { background: none; }
.geser-btn span { background: var(--kaca-kuat); border-color: var(--kaca-garis); }

/* ---------- tabel & formulir ---------- */
.tablewrap { border: 1px solid var(--kaca-garis); border-radius: var(--rad-l); background: var(--kartu); }
table.data th { border-bottom-color: var(--kaca-garis); }
table.data td { border-bottom-color: var(--kaca-garis); }
table.data tbody tr { transition: background .2s; }
table.data tbody tr:hover { background: var(--sorot); }
.input, .select, .textarea { border-radius: 14px; background-color: var(--kartu); border: 1px solid var(--kaca-garis); transition: border-color .2s, box-shadow .25s; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--rule-strong); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--hot); box-shadow: 0 0 0 4px var(--hot-soft); outline: 0; }
.textarea { border-radius: 18px; }
.opt { border-radius: 16px; background: var(--kartu); border-color: var(--kaca-garis); transition: border-color .2s, background .2s, transform .3s var(--lentur); }
.opt:hover:not(:disabled) { transform: translateX(3px); }
.bar { border-radius: 99px; overflow: hidden; }
.cari-pemicu { border-radius: 999px; background: var(--kartu); border-color: var(--kaca-garis); padding-inline: 18px; }
.cari-panel { border-radius: 26px; background: var(--kaca-kuat); overflow: hidden; }
.cari-item { border-radius: 14px; }

/* ---------- lapisan: modal, toast, pemutar ---------- */
.modal { border-radius: 26px; border-color: var(--kaca-garis); box-shadow: var(--bayang); animation: panelMasukV2 .5s var(--pantul); }
@keyframes panelMasukV2 { from { opacity: 0; transform: translateY(18px) scale(.94); } }
.toast { border-radius: 999px; padding: 12px 20px; }
.player, .stage { border-radius: 20px; }
.player { overflow: hidden; border-color: var(--kaca-garis); }
.vm-box { border-radius: 26px; border-color: var(--kaca-garis); }
.vm-scrim.teater .vm-box { border-radius: 0; }
.vm-besar { animation: vmDenyut 2.4s var(--lentur) infinite; }
@keyframes vmDenyut { 0%, 100% { box-shadow: 0 12px 30px rgba(0,0,0,.25), 0 0 0 0 rgba(255,90,31,.45); } 60% { box-shadow: 0 12px 30px rgba(0,0,0,.25), 0 0 0 18px rgba(255,90,31,0); } }
.musik-fab { background: var(--kaca-kuat); border-color: var(--kaca-garis); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.musik-sampul { border-radius: 14px; }

/* halaman tentang */
.tentang h2 { text-transform: uppercase; font-size: clamp(26px, 3vw, 40px); line-height: .96; margin: 56px 0 18px; }
.angka b { display: block; font: 700 clamp(34px, 3.6vw, 52px)/1 var(--f-head); letter-spacing: -.01em; }
.angka span { display: block; margin-top: 10px; font: 600 12.5px/1.3 var(--f-body); letter-spacing: .005em; text-transform: none; color: var(--ink-3); }
.angka > :first-child b { color: var(--hot); }
.tentang .feat h3 { font-size: 18px; }
.tentang-ajak { margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tentang-ajak h3 { font-size: clamp(20px, 2.2vw, 26px); margin-top: 10px; }

/* akhir cuplikan video di beranda: ajakan mendaftar menutupi panggung */
.vm-habis { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px;
  padding: clamp(20px, 5vw, 56px); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: panelMasukV2 .5s var(--pantul); }
.vm-habis b { font: 700 clamp(24px, 3.2vw, 38px)/1 var(--f-head); text-transform: uppercase; }
.vm-habis p { margin: 0 0 4px; color: var(--ink-2); max-width: 46ch; line-height: 1.55; font-size: 15px; }

/* ---------- ponsel: kurikulum & masuk ---------- */
@media (max-width: 720px) {
  .mk-list { gap: 8px; }
  .mk-kartu { border: 1px solid var(--kaca-garis); border-radius: 20px; background: var(--kartu); }
}
.authside { border-right: 0; }
.authform > .panel, .authform form { border-radius: var(--rad-l); }

/* ---------- pindah halaman: blok masuk bertahap ---------- */
.rute-masuk { animation: none; }
.rute-masuk > .appmain > *, .rute-masuk > .section, .rute-masuk > footer { animation: blokMasuk .75s var(--lentur) backwards; }
.rute-masuk > .appmain > :nth-child(2) { animation-delay: .07s; }
.rute-masuk > .appmain > :nth-child(3) { animation-delay: .14s; }
.rute-masuk > .appmain > :nth-child(4) { animation-delay: .2s; }
.rute-masuk > .appmain > :nth-child(n+5) { animation-delay: .26s; }
.rute-masuk .cardgrid > * { animation: blokMasuk .7s var(--lentur) backwards; }
.rute-masuk .cardgrid > :nth-child(2) { animation-delay: .06s; } .rute-masuk .cardgrid > :nth-child(3) { animation-delay: .12s; }
.rute-masuk .cardgrid > :nth-child(4) { animation-delay: .18s; } .rute-masuk .cardgrid > :nth-child(n+5) { animation-delay: .24s; }
@keyframes blokMasuk { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }

/* ============================================================
   BERANDA V2 — panggung maskot
   ============================================================ */
.pentas { position: relative; min-height: max(calc(100svh - var(--topbar-h)), 620px); overflow: hidden; isolation: isolate; }
#maskot { position: absolute; left: 53%; bottom: 0; transform: translateX(-50%); width: min(calc(96svh - var(--topbar-h)), 940px); height: min(calc(96svh - var(--topbar-h)), 940px); z-index: 0; pointer-events: none; }
.pentas-kiri { position: absolute; z-index: 2; left: clamp(16px, 4vw, 56px); top: 47%; transform: translateY(-50%); width: min(560px, 42vw); }
.alis { display: inline-flex; align-items: center; gap: 8px; font: 600 13.0px/1 var(--f-body); letter-spacing: .005em; text-transform: none; color: var(--ink-2); }
.alis i { width: 18px; height: 18px; border-radius: 50%; background: var(--hot); display: grid; place-items: center; }
.alis i svg { width: 11px; height: 11px; }
.pentas h1 { font: 700 clamp(52px, 5.6vw, 96px)/.88 var(--f-head); text-transform: uppercase; letter-spacing: -.01em; margin: 18px 0 20px; }
.pentas h1 .j { color: var(--hot); }
.pentas h1 .baris { display: block; }
.lede-v2 { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: var(--ink-2); max-width: 36ch; margin: 0 0 28px; }
.lede-v2 .ln { display: block; }
.aksi { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tombol { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 24px; border-radius: 999px; font: 600 13.5px/1 var(--f-body); letter-spacing: .005em; text-transform: none; color: var(--pil-teks); isolation: isolate; }
.tombol::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--pil); box-shadow: 0 12px 30px -14px rgba(22, 22, 15, .6); transition: transform .35s var(--lentur); }
.tombol:hover::before { transform: scale(1.04); }
.tombol svg { width: 18px; height: 18px; overflow: visible; transition: transform .3s var(--lentur); }
.tombol:hover svg { transform: translateX(4px); }
.tombol.memuat::before { transform: none; }
.tonton { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 6px; border-radius: 999px; font: 600 13.0px/1.15 var(--f-body); letter-spacing: .005em; text-transform: none; cursor: pointer; text-align: left; color: var(--ink); }
.tonton b { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--hot); display: grid; place-items: center; transition: transform .35s var(--pantul); }
.tonton:hover b { transform: scale(1.12); }
.tonton b svg { width: 14px; height: 14px; margin-left: 2px; }
.pentas-info { position: absolute; z-index: 2; right: clamp(16px, 4vw, 56px); top: 22%; width: 220px; }
.tumpuk { display: flex; margin-bottom: 12px; }
.tumpuk span { width: 42px; height: 42px; border-radius: 50%; margin-right: -10px; display: grid; place-items: center; background: var(--paper-2); border: 2px solid var(--ground); box-shadow: 0 6px 14px -8px rgba(0,0,0,.4); color: var(--ink); }
.tumpuk span svg { width: 20px; height: 20px; }
.pentas-info b { display: block; font: 700 17px/1.2 var(--f-head); }
.pentas-info small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.kartu-wrap { position: absolute; z-index: 2; right: clamp(16px, 3vw, 40px); bottom: clamp(18px, 4vh, 40px); display: flex; gap: 12px; }
.kartu { position: relative; display: block; width: 204px; height: 204px; border-radius: 26px; overflow: hidden; isolation: isolate; color: var(--ink); }
.kartu .panel-k { position: absolute; inset: 0; z-index: -2; border-radius: inherit; }
.kartu .teks { position: absolute; left: 16px; top: 16px; width: 104px; }
.kartu b { display: block; font: 700 15px/1.12 var(--f-head); }
.kartu small { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.45; color: var(--ink-3); }
.kartu img { position: absolute; z-index: -1; right: -8px; bottom: -2px; height: 94%; width: auto; transition: transform .6s var(--lentur); }
.kartu:hover img { transform: translateX(-6px) scale(1.04) rotate(-1.5deg); }
.kartu .go { position: absolute; left: 16px; bottom: 16px; font: 600 12.0px/1 var(--f-body); letter-spacing: .005em; text-transform: none; padding: 10px 14px; border-radius: 999px; background: var(--kaca-kuat); border: 1px solid var(--kaca-garis); transition: background .3s, color .3s; }
.kartu:hover .go { background: var(--hot); color: #fff; border-color: transparent; }
.lencana { position: absolute; z-index: 2; left: 50%; bottom: clamp(18px, 4vh, 40px); margin-left: calc(-1 * min(24vw, 330px)); width: 112px; height: 112px; color: var(--ink); }
.lencana .cincin { position: absolute; inset: 0; animation: putarLencana 22s linear infinite; }
.lencana text { font: 600 12.5px var(--f-body); letter-spacing: .005em; fill: var(--ink-2); text-transform: none; }
.lencana .panah { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; }
.lencana .panah svg { width: 18px; height: 18px; }
@keyframes putarLencana { to { transform: rotate(360deg); } }

/* koreografi pembuka: setiap elemen .m masuk sesuai --d (detik) */
.pentas .m { animation-duration: .8s; animation-timing-function: var(--lentur); animation-fill-mode: both; animation-delay: calc(var(--d, 0) * 1s); }
.m-naik { animation-name: naikV2; }
.m-kabur { animation-name: naikKaburV2; animation-duration: .9s !important; }
.m-pop { animation-name: popV2; animation-timing-function: var(--pantul) !important; animation-duration: .6s !important; }
@keyframes naikV2 { from { opacity: 0; transform: translateY(16px); } }
@keyframes naikKaburV2 { from { opacity: 0; transform: translateY(28px); filter: blur(10px); } }
@keyframes popV2 { from { opacity: 0; transform: scale(0); } }
@keyframes geserV2 { from { opacity: 0; transform: translateX(34px); } }
@keyframes munculV2 { from { opacity: 0; } }
#maskot.m { animation: maskotMasuk 1.3s var(--pantul) both; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes maskotMasuk { from { opacity: 0; transform: translateX(-50%) translateY(90px) scale(.9); } }
.tombol.m { animation: none; }
.tombol.m::before { animation: pilTumbuh .7s var(--lentur) both; animation-delay: calc(var(--d, 0) * 1s); }
.tombol.m .isi { display: inline-block; animation: geserKanan .6s var(--lentur) both; animation-delay: calc((var(--d, 0) + .3) * 1s); }
.tombol.m .garis { stroke-dasharray: 12; stroke-dashoffset: 12; animation: gambarGaris .45s var(--lentur) forwards; animation-delay: calc((var(--d, 0) + .5) * 1s); }
.tombol.m .kepala { stroke-dasharray: 12; stroke-dashoffset: 12; animation: gambarGaris .35s var(--lentur) forwards; animation-delay: calc((var(--d, 0) + .8) * 1s); }
@keyframes pilTumbuh { from { clip-path: inset(0 72% 0 0 round 999px); opacity: 0; } 30% { opacity: 1; } to { clip-path: inset(0 0 0 0 round 999px); } }
@keyframes geserKanan { from { opacity: 0; transform: translateX(-12px); } }
@keyframes gambarGaris { to { stroke-dashoffset: 0; } }
.tonton.m { animation-name: pilTumbuh; animation-duration: .7s; }
.tonton.m b { animation: titikMembesar .7s var(--pantul) both; animation-delay: calc((var(--d, 0) + .25) * 1s); }
.tonton.m b svg { animation: popV2 .45s var(--pantul) both; animation-delay: calc((var(--d, 0) + .6) * 1s); }
.tonton.m .isi { animation: munculV2 .5s ease both; animation-delay: calc((var(--d, 0) + .7) * 1s); }
@keyframes titikMembesar { from { transform: scale(.25); } }
.kartu.m { animation: none; }
.kartu.m .panel-k { animation: kartuMasuk .7s var(--lentur) both; animation-delay: calc(var(--d, 0) * 1s); }
.kartu.m b { animation: naikV2 .6s var(--lentur) both; animation-delay: calc((var(--d, 0) + .2) * 1s); }
.kartu.m img { animation: geserV2 .9s var(--lentur) both; animation-delay: calc((var(--d, 0) + .3) * 1s); }
.kartu.m small { animation: naikV2 .6s var(--lentur) both; animation-delay: calc((var(--d, 0) + .4) * 1s); }
.kartu.m .go { animation: popV2 .5s var(--pantul) both; animation-delay: calc((var(--d, 0) + .55) * 1s); }
@keyframes kartuMasuk { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.lencana.m { animation: lencanaMasuk 1s var(--pantul) both; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes lencanaMasuk { from { opacity: 0; transform: scale(.5) rotate(-140deg); } }
.lede-v2.m { animation: none; }
.lede-v2 .ln { animation: naikV2 .7s var(--lentur) both; animation-delay: calc(var(--d, 0) * 1s); }
.lede-v2:not(.terbagi) { opacity: 0; }
/* animasi pembuka situs masih berjalan: koreografi beranda menunggu */
html.intro-jalan .pentas .m, html.intro-jalan .pentas .m *, html.intro-jalan .pentas .m::before, html.intro-jalan .pentas .ln { animation-play-state: paused !important; }

@media (max-width: 1180px) and (min-width: 901px) {
  .kartu { width: 172px; height: 172px; border-radius: 22px; }
  .kartu .teks { width: 96px; }
  .kartu small { display: none; }
  .kartu img { height: 88%; }
}
@media (max-width: 1180px) {
  #maskot { left: 46%; width: min(calc(84svh - var(--topbar-h)), 700px); height: min(calc(84svh - var(--topbar-h)), 700px); }
  .pentas-kiri { width: min(480px, 44vw); }
}
@media (max-width: 900px) {
  .pentas { display: flex; flex-direction: column; min-height: 0; padding-bottom: 28px; }
  .pentas-kiri { order: 1; position: relative; left: auto; top: auto; transform: none; width: auto; padding: 8px 16px 0; }
  .pentas h1 { font-size: clamp(46px, 13vw, 72px); }
  #maskot { order: 2; position: relative; left: auto; bottom: auto; transform: none; display: block; width: 100%; height: 74vw; max-height: 440px; margin: -18px auto 0; }
  #maskot.m { animation-name: maskotMasukHp; }
  @keyframes maskotMasukHp { from { opacity: 0; transform: translateY(60px) scale(.9); } }
  .pentas-info { order: 3; position: relative; right: auto; top: auto; width: auto; padding: 8px 16px 0; display: flex; align-items: center; gap: 14px; }
  .pentas-info .tumpuk { margin: 0; flex: none; }
  .kartu-wrap { order: 4; position: relative; right: auto; bottom: auto; padding: 18px 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .kartu { width: auto; height: 190px; }
  .kartu .teks { width: 52%; }
  .lencana { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pentas *, .pentas *::before, .rute-masuk * { animation: none !important; transition: none !important; }
  .lede-v2:not(.terbagi) { opacity: 1; }
  .tombol .garis, .tombol .kepala { stroke-dashoffset: 0 !important; }
}

/* pembayaran otomatis DOKU */
.bayar-doku { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-color: var(--hot-line); }
.bayar-doku h3 { font-size: clamp(18px, 2vw, 22px); }
@media (max-width: 620px) { .bayar-doku > .stack { align-items: stretch !important; width: 100%; } .bayar-doku .btn { width: 100%; justify-content: center; } }

/* banner izin pixel iklan (UU PDP): di kanan bawah, tidak menutupi tombol musik di kiri bawah */
.izin-iklan {
  position: fixed; z-index: 150; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100% - 94px)); padding: 14px 16px; border-radius: var(--rad);
  background: var(--kaca-kuat); border: 1px solid var(--kaca-garis); box-shadow: var(--bayang);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  animation: popIn .3s cubic-bezier(.2,.9,.25,1);
}
.izin-iklan p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.izin-iklan a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.izin-iklan-aksi { display: flex; justify-content: flex-end; gap: 8px; }
html.vm-buka .izin-iklan { display: none; }
/* ponsel: di atas navigasi bawah, sejajar tombol musik (kiri) tanpa menumpuk */
@media (max-width: 720px) { .izin-iklan { right: 12px; width: calc(100% - 86px); bottom: calc(90px + env(safe-area-inset-bottom, 0px)); } }

/* ---- 2026-09-26: kurangi kesan templat — angka/info kecil pakai huruf teks biasa ---- */
.mono.fs11, .mono.muted, .fs11.mono { font-family: var(--f-body); font-size: 12.5px; letter-spacing: 0; }
.auth-cuplikan { margin: 26px 0 0; max-width: 460px; }
.auth-cuplikan img { display: block; width: 100%; height: auto; border-radius: 16px; background: #e6f1f4; }
.auth-cuplikan figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

/* Tiket Begadang: pita malam di halaman harga */
.tiket {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; overflow: hidden;
  padding: 22px 24px; border-radius: var(--rad-l); color: #F4F1FF;
  background: radial-gradient(120% 140% at 0% 0%, #3A2F7A 0%, #1C1A3D 55%, #12112A 100%);
  box-shadow: var(--bayang);
}
.tiket::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1.5px 1.5px at 12% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 64% 64%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 26%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 80%, #fff 50%, transparent 51%);
}
.tiket > * { position: relative; }
.tiket .eyebrow { color: #FFC83D; }
.tiket h3 { color: #fff; }
.tiket .hint { color: rgba(244, 241, 255, .78); }
.tiket-bulan { width: 46px; height: 46px; flex: none; border-radius: 50%; background: #FFE08A; box-shadow: inset -12px -6px 0 0 #E9B93A, 0 0 28px rgba(255, 224, 138, .45); }
.tiket-harga { font-size: 30px; font-weight: 800; color: #FFE08A; white-space: nowrap; }
@media (max-width: 640px) { .tiket { padding: 18px; } .tiket .btn { width: 100%; justify-content: center; } }
