/* ==========================================================================
   ETIVA AI — Landing Page
   Design System v2: Dark · Warm Monochrome · Strict Grid
   - Satu warna untuk semua judul
   - Tanpa gradasi & glow (kecuali tombol primary & icon button: 3D subtle; latar window chat: kuning ke oranye)
   - Sudut tajam; rounded hanya untuk button, window & balon chat
   - Primary amber #FFB820 hanya untuk CTA utama & latar window chat
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Warm monochrome */
  --c-bg:        #1f1f1e;
  --c-surface:   #262523;
  --c-surface-2: #2c2b28;
  --c-raised:    #31302d;   /* abu lebih muda: latar panggung (chat hero, slider modul) */
  --c-line:      #383633;
  --c-line-2:    #484642;

  --c-text:   #ffffff;
  --c-text-2: #a39d92;
  --c-text-3: #7a756c;   /* dinaikkan sedikit agar kontras tetap terjaga di latar baru */

  /* Primary (dipakai hemat) */
  --c-primary:       #ffb820;   /* amber: kuning yang sedikit ke oranye */
  --c-primary-hover: #ffc54d;
  --c-primary-ink:   #1a1400;
  --c-primary-top:   #ffca52;   /* 3D: sisi atas tombol */
  --c-primary-btm:   #f5a500;   /* 3D: sisi bawah tombol */
  --c-primary-edge:  #b87400;   /* 3D: garis tepi */
  --c-primary-shade: rgba(150, 80, 0, 0.24); /* 3D: bayangan dalam sisi bawah */
  --c-primary-warm:  #ff9a1a;   /* ujung gradasi ke oranye (latar window chat) */

  /* Typography */
  --f-head: "Lora", Georgia, "Times New Roman", serif;   /* judul & teks display */
  --f-ui:   "DM Sans", system-ui, sans-serif;            /* tombol, tab, label UI */
  --f-body: "Inter", system-ui, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --fs-2xl:  clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-3xl:  clamp(2.75rem, 1.5rem + 5vw, 5.75rem);

  /* Spacing — 4pt */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: 4rem;

  --cell-p: clamp(1.25rem, 0.6rem + 2vw, 2.25rem);
  --head-top: clamp(5rem, 3.5rem + 6vw, 9rem);
  --head-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 0.4rem + 2.4vw, 2.5rem);
  --frame: min(var(--container), calc(100% - var(--gutter) * 2));
  --nav-h: 64px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.25s;

  /* Grid ornaments (SVG, tanpa gradasi) */
  --corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Ccircle cx='4.5' cy='4.5' r='4' fill='%231f1f1e' stroke='%235a5650'/%3E%3C/svg%3E");
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0L100 100M100 0L0 100' stroke='%23383633' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scrollbar-gutter: stable; /* ruang scrollbar tetap: layout tidak melompat saat drawer mengunci scroll */
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; } /* atribut hidden selalu menang atas display komponen */

h1, h2, h3, h4, h5 {
  font-family: var(--f-head);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: normal;
  color: var(--c-text);
  text-wrap: balance;
}
p { text-wrap: pretty; color: var(--c-text-2); }

::selection { background: var(--c-text); color: var(--c-bg); }
:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }

[data-lucide], .lucide { width: 1.15em; height: 1.15em; stroke-width: 1.5; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   3. FRAME & GRID SYSTEM
   -------------------------------------------------------------------------- */
.container { width: var(--frame); margin-inline: auto; }

/* Garis frame putus-putus sepanjang halaman */
.site { position: relative; isolation: isolate; }
.site::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; bottom: 0;
  left: 50%;
  width: var(--frame);
  transform: translateX(-50%);
  background: var(--c-bg);
  border-inline: 1px dashed var(--c-line-2);
}

.section { position: relative; }
.section--band { padding-top: 0; }
.section--cta { padding-top: var(--head-top); }

/* Block = kumpulan sel dengan garis 1px & penanda sudut */
.block {
  position: relative;
  display: grid;
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.block::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: -5px;
  pointer-events: none;
  background:
    var(--corner) left top / 9px 9px no-repeat,
    var(--corner) right top / 9px 9px no-repeat,
    var(--corner) left bottom / 9px 9px no-repeat,
    var(--corner) right bottom / 9px 9px no-repeat;
}

.block--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.block--3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.block--2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-all { grid-column: 1 / -1; }

.cell {
  position: relative;
  min-width: 0;
  padding: var(--cell-p);
  background: var(--c-bg);
}
.cell--flush { padding: 0; }

/* Section head — judul di tengah dengan ruang lega */
.head {
  max-width: 820px;
  margin-inline: auto;
  padding: var(--head-top) var(--s-5) var(--head-bottom);
  text-align: center;
}
.head__title {
  font-size: var(--fs-2xl);
  font-weight: 400;
  letter-spacing: normal;
}

/* --------------------------------------------------------------------------
   4. COMPONENTS
   -------------------------------------------------------------------------- */

/* Buttons — satu-satunya elemen rounded */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: var(--btn-h);
  padding-inline: 22px;
  font-family: var(--f-ui);
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: normal;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform var(--dur) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--sm { --btn-h: 38px; padding-inline: 16px; font-size: var(--fs-sm); }
.btn--lg { --btn-h: 54px; padding-inline: 26px; }

/* Primary — 3D subtle: gradasi tipis + highlight atas + bayangan bawah */
.btn--primary {
  color: var(--c-primary-ink);
  background: linear-gradient(180deg, var(--c-primary-top) 0%, var(--c-primary) 50%, var(--c-primary-btm) 100%);
  border: 1px solid var(--c-primary-edge);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 var(--c-primary-shade),
    0 1px 0 rgba(0, 0, 0, 0.5),
    0 6px 14px -6px rgba(0, 0, 0, 0.7);
  transition: filter var(--dur), transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 var(--c-primary-shade),
    0 2px 0 rgba(0, 0, 0, 0.5),
    0 10px 18px -8px rgba(0, 0, 0, 0.75);
}
.btn--primary:active {
  filter: brightness(0.98);
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 3px rgba(150, 80, 0, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25),
    0 0 0 rgba(0, 0, 0, 0);
}
.btn--primary .lucide-arrow-right { transition: transform var(--dur) var(--ease-out); }
.btn--primary:hover .lucide-arrow-right { transform: translateX(3px); }

.btn--ghost { color: var(--c-text); border: 1px solid var(--c-line-2); }
.btn--ghost:hover { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }

/* Icon button — 3D subtle versi gelap; hover berubah ke versi krem */
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--c-text);
  border-radius: 999px;
  border: 1px solid var(--c-line-2);
  background: linear-gradient(180deg, #353330 0%, #2a2926 55%, #232220 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(0, 0, 0, 0.6),
    0 6px 12px -6px rgba(0, 0, 0, 0.7);
  transition: color var(--dur), border-color var(--dur), transform var(--dur) var(--ease-out), box-shadow var(--dur), opacity var(--dur);
}
.icon-btn:hover {
  color: var(--c-bg);
  border-color: #bdbdbd;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 50%, #e6e6e6 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 2px 0 rgba(0, 0, 0, 0.5),
    0 10px 16px -8px rgba(0, 0, 0, 0.75);
}
.icon-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}
.icon-btn.swiper-button-disabled { opacity: 0.3; pointer-events: none; }
.slider-nav { display: flex; gap: var(--s-2); }

/* Icon tile — kotak tajam */
.icon-tile {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--c-line-2);
  border-radius: 10px;
}
.icon-tile .lucide { width: 18px; height: 18px; }

.ai-badge {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  flex-shrink: 0;
  background: var(--c-text);
  color: var(--c-bg);
}
.ai-badge .lucide { width: 14px; height: 14px; stroke-width: 2; }
/* Logo "e" Etiva sebagai penanda AI */
.ai-mark { width: 26px; height: 26px; flex-shrink: 0; display: block; }
.ai-badge--lg { width: 40px; height: 40px; }
.ai-badge--lg .lucide { width: 18px; height: 18px; }

.send {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--c-text);
  color: var(--c-bg);
}
.send .lucide { width: 16px; height: 16px; stroke-width: 2; }

/* Rows — list dengan garis penuh selebar sel */
.rows { display: flex; flex-direction: column; height: 100%; }
.row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex: 1;
  padding: var(--s-5) var(--cell-p);
  border-bottom: 1px solid var(--c-line);
  transition: background var(--dur);
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--c-surface); }
.row h3 { font-size: var(--fs-md); font-weight: 500; margin-bottom: 2px; }
.row p { font-size: var(--fs-sm); }
.row--ai { background: var(--c-surface); }
.row--ai p { color: var(--c-text-2); }
.row--ai strong { color: var(--c-text); font-weight: 500; }

/* Row sebagai tab (modul interaktif) */
.row--tab {
  position: relative;
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.row__txt { display: flex; flex-direction: column; }
.row__t { font-family: var(--f-head); font-size: var(--fs-md); font-weight: 500; color: var(--c-text); margin-bottom: 2px; }
.row__d { font-size: var(--fs-sm); color: var(--c-text-2); }
.row--tab .icon-tile { border-radius: 10px; transition: background var(--dur), color var(--dur), border-color var(--dur), border-radius var(--dur), box-shadow var(--dur); }
.row--tab[aria-selected="false"] .row__t { color: var(--c-text-2); }
.row--tab[aria-selected="false"] .row__d { color: var(--c-text-3); }
.row--tab[aria-selected="true"] { background: var(--c-surface); }
/* ikon tab aktif: kuning 3D subtle, senada tombol primary */
.row--tab[aria-selected="true"] .icon-tile,
.icon-tile--primary {
  color: var(--c-primary-ink);
  border-color: var(--c-primary-edge);
  background: linear-gradient(180deg, var(--c-primary-top) 0%, var(--c-primary) 50%, var(--c-primary-btm) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 var(--c-primary-shade),
    0 1px 0 rgba(0, 0, 0, 0.5),
    0 6px 14px -6px rgba(0, 0, 0, 0.7);
}
.row--tab:focus-visible { outline: 2px solid var(--c-text); outline-offset: -2px; }

/* --------------------------------------------------------------------------
   LAB — demo modul (animasi, simulasi, tanya jawab, tes)
   -------------------------------------------------------------------------- */
.lab { min-height: 460px; }
.lab .lab__bar { height: 48px; }
.lab__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: 52px;
  padding-inline: var(--s-5);
  border-bottom: 1px solid var(--c-line);
}
.lab__title { font-family: var(--f-ui); font-size: var(--fs-sm); font-weight: 500; color: var(--c-text); }
.lab__meta { font-family: var(--f-body); font-size: 0.75rem; color: var(--c-text-3); }
.lab__view { position: relative; flex: 1; min-height: 0; background: var(--c-bg); }
.lab__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  animation: labIn 0.5s var(--ease-out) both;
}
.lab__panel[hidden] { display: none; }
@keyframes labIn { from { opacity: 0; transform: translateY(6px); } }

.lab__canvas { display: block; width: 100%; height: 100%; flex: 1; min-height: 0; }
.lab__caption {
  position: absolute;
  left: var(--s-5); top: var(--s-5);
  max-width: calc(100% - 2 * var(--s-5));
  padding: 8px 12px;
  font-size: var(--fs-sm);
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-line-2);
}
.lab__caption.is-swap { animation: labIn 0.35s var(--ease-out) both; }

/* Simulasi */
.lab__stage { position: relative; flex: 1; min-height: 0; display: flex; }
.lab__stats {
  position: absolute;
  top: var(--s-4); right: var(--s-4);
  display: flex;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}
.lab__stats div { padding: 8px 14px; }
.lab__stats div + div { border-left: 1px solid var(--c-line); }
.lab__stats dt { font-size: 0.6875rem; color: var(--c-text-3); }
.lab__stats dd { font-family: var(--f-body); font-size: var(--fs-sm); color: var(--c-text); font-variant-numeric: tabular-nums; }
.lab__controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: var(--s-5);
  padding: var(--s-4) var(--s-5) var(--s-5);
  border-top: 1px solid var(--c-line);
}
.lab__controls .btn .lucide { width: 14px; height: 14px; }
.ctrl { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ctrl__head { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--c-text-2); }
.ctrl__head { gap: var(--s-2); white-space: nowrap; }
.ctrl output { font-family: var(--f-body); color: var(--c-text); font-variant-numeric: tabular-nums; }
.ctrl input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
  cursor: pointer;
}
.ctrl input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(var(--c-text), var(--c-text)) 0 / var(--fill, 50%) 100% no-repeat, var(--c-line-2);
}
.ctrl input[type="range"]::-moz-range-track { height: 2px; background: var(--c-line-2); }
.ctrl input[type="range"]::-moz-range-progress { height: 2px; background: var(--c-text); }
.ctrl input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  margin-top: -7px;
  border-radius: 50%;
  border: 1px solid #bdbdbd;
  background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.ctrl input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid #bdbdbd;
  background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 100%);
}
.ctrl input[type="range"]:focus-visible { outline: 2px solid var(--c-text); outline-offset: 4px; }

/* Tanya jawab */
.quiz { padding: var(--s-5); gap: var(--s-4); }
.quiz__q { font-family: var(--f-head); font-size: var(--fs-lg); line-height: 1.35; color: var(--c-text); max-width: 34ch; }
.quiz__fig { flex: 1; min-height: 90px; width: 100%; }
.quiz__fig path { fill: none; stroke: var(--c-line-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke var(--dur), opacity var(--dur); }
.quiz__fig text { font-family: var(--f-body); font-size: 11px; fill: var(--c-text-3); transition: fill var(--dur); }
.quiz__fig .ground { stroke: var(--c-line-2); stroke-width: 1; }
.quiz__fig.is-answered path.arc { opacity: 0.45; }
.quiz__fig.is-answered path.arc.is-best { opacity: 1; stroke: var(--c-text); stroke-width: 2; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s var(--ease-out) forwards; }
.quiz__fig.is-answered text.is-best { fill: var(--c-text); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.quiz__opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding-inline: 6px 14px;
  font-family: var(--f-ui);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--c-text);
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  transition: background var(--dur), color var(--dur), border-color var(--dur), opacity var(--dur);
}
.opt__k {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  border-radius: 50%;
  background: var(--c-surface-2);
}
.opt:hover { border-color: var(--c-text-3); }
.opt.is-correct { color: var(--c-bg); background: var(--c-text); border-color: var(--c-text); }
.opt.is-correct .opt__k { color: var(--c-bg); background: rgba(0, 0, 0, 0.08); }
.opt.is-wrong { color: var(--c-text-3); text-decoration: line-through; }
.quiz.is-answered .opt:not(.is-correct):not(.is-wrong) { opacity: 0.45; }
.quiz__fb { min-height: 2.6em; font-size: var(--fs-sm); color: var(--c-text-2); }
.quiz__fb strong { color: var(--c-text); font-weight: 500; }
.quiz__fb button { margin-left: 6px; color: var(--c-text); text-decoration: underline; text-underline-offset: 3px; }

/* Tes kemampuan */
.test {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  grid-template-rows: 1fr auto;
}
.test__score,
.test__bars { padding: var(--s-5); }
.test__score { display: flex; flex-direction: column; border-right: 1px solid var(--c-line); }
.test__num {
  margin-top: var(--s-3);
  font-family: var(--f-head);
  font-size: clamp(3.5rem, 2rem + 4vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.test__num small { font-size: var(--fs-lg); color: var(--c-text-3); margin-left: 4px; }
.test__map { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: auto; }
.test__map li { aspect-ratio: 1; border: 1px solid var(--c-line-2); opacity: 0; }
.test__map li.ok { background: var(--c-text); border-color: var(--c-text); }
.test.is-play .test__map li { animation: pop 0.35s var(--ease-out) forwards; animation-delay: calc(var(--i) * 60ms + 0.2s); }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.test__legend { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--c-text-3); }
.test__bars { display: flex; flex-direction: column; justify-content: center; gap: var(--s-5); }
.test__bars li { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; font-size: var(--fs-sm); color: var(--c-text-2); }
.test__bars b { font-family: var(--f-body); font-weight: 400; color: var(--c-text); font-variant-numeric: tabular-nums; }
.test__bars i { grid-column: 1 / -1; position: relative; height: 2px; background: var(--c-line-2); }
.test__bars i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-text);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s var(--ease-out);
}
.test.is-play .test__bars i::after { transform: scaleX(calc(var(--v) / 100)); }
.test.is-play .test__bars li:nth-child(2) i::after { transition-delay: 0.1s; }
.test.is-play .test__bars li:nth-child(3) i::after { transition-delay: 0.2s; }
.test.is-play .test__bars li:nth-child(4) i::after { transition-delay: 0.3s; }
.test__tip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  border-top: 1px solid var(--c-line);
  background: var(--c-surface);
}

@media (max-width: 720px) {
  /* di HP: tinggi panel mengikuti isi, kanvas diberi tinggi tetap */
  .lab { min-height: 0; }
  .lab__panel { position: relative; inset: auto; }
  #lab-panel-0 { height: 340px; }
  #lab-panel-1 .lab__stage { flex: none; height: 300px; }
  .lab__stats { left: var(--s-4); right: auto; }
  .lab__stats div { padding: 6px 10px; }
  .lab__controls { grid-template-columns: 1fr 1fr; }
  .lab__controls .btn { grid-column: 1 / -1; }
  .quiz__opts { grid-template-columns: 1fr 1fr; }
  .test { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .test__score { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .test__map { margin-top: var(--s-5); }
}

.num {
  display: grid;
  place-items: center start; /* tanpa border: angka rata kiri, sejajar padding sel */
  width: 28px; height: 40px;
  flex-shrink: 0;
  font-family: var(--f-head);
  font-size: var(--fs-md);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Bar — baris kontrol (judul + navigasi slider) */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding-block: var(--s-4);
}
.bar__title { font-size: var(--fs-lg); }

/* Progress */
.progress { position: relative; height: 1px; background: var(--c-line); }
.progress--inline { flex: 1; max-width: 240px; }
.progress__bar {
  position: absolute;
  inset: -1px 0;
  background: var(--c-text);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

/* --------------------------------------------------------------------------
   5. IMAGE PLACEHOLDER
   Ganti <div class="ph">…</div> dengan:
   <img src="..." alt="..." class="media" style="--ar: 16 / 10" />
   Tambahkan class "media--fill" bila placeholder memakai "ph--fill".
   -------------------------------------------------------------------------- */
.ph, .media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ar, 16 / 9);
}
.media { object-fit: cover; background: var(--c-surface); }
.ph--fill, .media--fill { height: 100%; min-height: 100%; }
.hero__media { overflow: hidden; }
.hero__media .media { object-position: 50% 40%; } /* jaga laptop tetap di tengah saat terpotong */

.ph {
  display: grid;
  place-items: center;
  background: var(--c-surface) var(--cross) center / 100% 100% no-repeat;
}
.ph__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  text-align: center;
  color: var(--c-text-3);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.ph__content .lucide { width: 22px; height: 22px; }
.ph__label { font-family: var(--f-ui); font-size: var(--fs-sm); font-weight: 500; color: var(--c-text-2); }
.ph__size { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   6. NAVBAR
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  transition: transform 0.45s var(--ease-out);
}
/* Disembunyikan saat footer terlihat */
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-hidden:focus-within { transform: none; } /* tetap muncul saat dinavigasi dengan keyboard */
/* Grid 3 kolom: kiri & kanan sama lebar → menu selalu tepat di tengah */
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-h);
  gap: var(--s-5);
}
.nav__inner > .logo { justify-self: start; }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo__img {
  display: block;
  height: 24px;
  width: auto;
  aspect-ratio: 828 / 180;
}
.footer__brand .logo__img { height: 30px; }

.nav__links { display: flex; gap: var(--s-1); }
.nav__links a {
  padding: 8px 14px;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  transition: color var(--dur);
}
.nav__links a:hover { color: var(--c-text); }

.nav__actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2); }
.nav__toggle {
  display: none;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--c-line-2);
}

.mobile-menu { border-top: 1px solid var(--c-line); background: var(--c-bg); }
.mobile-menu[hidden] { display: none; }
.mobile-menu .container { display: flex; flex-direction: column; padding-bottom: var(--s-5); }
.mobile-menu a:not(.btn) {
  padding: 14px 0;
  font-family: var(--f-ui);
  font-size: var(--fs-lg);
  border-bottom: 1px solid var(--c-line);
}
.mobile-menu .btn { margin-top: var(--s-5); }

/* Toggle bahasa EN | ID */
.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  background: var(--c-bg);
}
.lang button {
  height: 28px;
  min-width: 34px;
  padding-inline: 8px;
  font-family: var(--f-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text-3);
  border-radius: 999px;
  transition: color var(--dur), background var(--dur), box-shadow var(--dur);
}
.lang button:hover { color: var(--c-text); }
.lang button[aria-pressed="true"] {
  color: var(--c-bg);
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 50%, #e6e6e6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.6);
}
.mobile-menu .lang--menu { align-self: flex-start; margin-top: var(--s-5); }
@media (max-width: 480px) {
  .nav__actions > .lang { display: none; } /* di HP: toggle pindah ke menu */
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero { padding-top: var(--nav-h); }
.head--hero { max-width: 960px; padding-top: calc(var(--head-top) * 0.9); }

.hero__title {
  font-size: var(--fs-3xl);
  font-weight: 500;
  line-height: 1;
  letter-spacing: normal;
}
.hero__lead {
  max-width: 34rem;
  margin: var(--s-5) auto 0;
  font-size: var(--fs-md);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* Chat demo — window */
.chat,
.lab-cell,
.stage {
  display: flex;
  padding: clamp(1rem, 0.6rem + 1vw, 1.25rem) clamp(1rem, 0.6rem + 1vw, 1.25rem) 0;
  overflow: hidden; /* jendela menempel & terpotong di tepi bawah sel */
  background: var(--c-raised); /* dark sedikit lebih terang dari window (.stage menimpa dengan kuning) */
}
.chat .window,
.lab-cell .window { box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3); }
.window {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line-2);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  box-shadow: 0 24px 48px -16px rgba(90, 55, 0, 0.45), 0 2px 6px rgba(90, 55, 0, 0.18);
}
.window__bar {
  display: flex;
  align-items: center;
  height: 44px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--c-line);
}
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-line-2); }
/* Segmented tabs (button group → rounded) */
.window__tabs { padding: 12px 14px 0; }
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
}
.seg button {
  height: 30px;
  padding-inline: 14px;
  font-family: var(--f-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text-3);
  border-radius: 999px;
  transition: color var(--dur), background var(--dur), box-shadow var(--dur);
}
.seg button:hover { color: var(--c-text); }
.seg button[aria-selected="true"] {
  color: var(--c-bg);
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 50%, #e6e6e6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.6);
}

.window__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 12px 14px 0;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.window__body {
  flex: 1 1 auto;
  height: 0;           /* tumbuh mengisi panel; isi chat tidak ikut memanjangkan baris grid */
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s-2);
  padding: var(--s-4);
  overflow: hidden;
}
.window__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: auto;
  padding: 8px 8px 8px 14px;
  border-top: 1px solid var(--c-line);
}
.window__field {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
}
.window__field.is-typing { color: var(--c-text); text-overflow: clip; }
.window__field.is-typing::after,
.caret {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: currentColor;
  animation: blink 1s steps(1) infinite;
}
.send { transition: transform 0.15s var(--ease-out); }
.send.is-pressed { transform: scale(0.85); }

/* Messages */
.bubble {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.8125rem;
  line-height: 1.5;
  flex-shrink: 0;
}
.bubble--user { align-self: flex-end; background: var(--c-text); color: var(--c-bg); border-bottom-right-radius: 4px; }
.bubble--ai {
  align-self: flex-start;
  background: var(--c-surface-2);
  color: var(--c-text-2);
  border: 1px solid var(--c-line);
  border-bottom-left-radius: 4px;
}
.bubble--dots { padding-block: 13px; }

.tool {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 92%;
  flex-shrink: 0;
  padding: 7px 11px;
  font-family: var(--f-body);
  font-size: 0.71875rem;
  line-height: 1.4;
  color: var(--c-text-2);
  border: 1px dashed var(--c-line-2);
}
.tool__dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--c-text-3); }
.tool.is-loading .tool__dot { animation: blink 0.8s steps(1) infinite; }
.tool.is-done .tool__dot { background: var(--c-text); }

.chat-action {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 30px;
  padding-inline: 12px;
  font-family: var(--f-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text);
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
}
.chat-action svg, .chat-action .lucide { width: 14px; height: 14px; }

.msg { animation: msgIn 0.45s var(--ease-out) both; }

.typing { display: inline-flex; gap: 4px; }
.typing i {
  width: 5px; height: 5px;
  background: var(--c-text-3);
  animation: typing 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

/* Level cells */
.level { transition: background var(--dur); }
.level:hover { background: var(--c-surface); }
.level__icon {
  position: absolute;
  top: var(--cell-p);
  right: var(--cell-p);
  width: 22px !important;
  height: 22px !important;
  color: var(--c-text-3);
}
.level__name {
  margin-bottom: var(--s-2);
  font-size: var(--fs-2xl);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
}
.level p { font-size: var(--fs-sm); }

/* Partner materi (Pearson) — tampil di footer */
.partner__logo { display: block; width: auto; height: 22px; opacity: 0.92; }
.footer__partner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  margin-top: var(--s-6);
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}
.footer__partner .partner__logo { height: 20px; }
.theme-yellow .partner__logo { filter: brightness(0); opacity: 0.85; }

/* --------------------------------------------------------------------------
   8. MARQUEE
   -------------------------------------------------------------------------- */
.marquee { display: block; overflow: hidden; border-top: 0; }
.marquee::before { display: none; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex-shrink: 0; }
.marquee__list li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-7);
  font-family: var(--f-head);
  font-size: var(--fs-lg);
  color: var(--c-text-2);
  white-space: nowrap;
  background: var(--c-bg);
  border-right: 1px solid var(--c-line);
}
.marquee__list .lucide { color: var(--c-text-3); }

/* --------------------------------------------------------------------------
   9. FEATURE CARDS
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  transition: background var(--dur);
}
.card:hover { background: var(--c-surface); }
.card__body { flex: 1; padding: var(--cell-p); }
.card h3 { font-size: var(--fs-xl); font-weight: 400; letter-spacing: normal; margin-bottom: var(--s-2); }
.card p { font-size: var(--fs-sm); }
.card .ph { border-top: 1px solid var(--c-line); }

/* Ilustrasi kartu (PNG transparan) — menggantikan ikon, di atas judul */
.card__art {
  display: block;
  width: clamp(128px, 9vw + 48px, 176px); /* 3D icons carry more empty space than the old sketches */
  height: auto;
  aspect-ratio: 1;
  margin: calc(var(--s-3) * -1) 0 var(--s-3) calc(var(--s-4) * -1);
  object-fit: contain;
  opacity: 0.92;
  transition: transform 0.6s var(--ease-out), opacity var(--dur);
}
.card:hover .card__art { transform: rotate(-4deg) scale(1.05); opacity: 1; }

/* Yellow band: primary yellow easing into a soft orange, dark ink on top */
.section--yellow {
  --c-text:   var(--c-primary-ink);
  --c-text-2: rgba(26, 20, 0, 0.68);
  --c-line:   rgba(26, 20, 0, 0.14);
  --corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Ccircle cx='4.5' cy='4.5' r='4' fill='%23ffb21e' stroke='%23a06800'/%3E%3C/svg%3E");
}
.section--yellow > .container {
  background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary) 40%, #ffa51c 100%);
}
/* cells stay see-through so the gradient runs across the whole band */
.section--yellow .block { gap: 0; background: transparent; border-inline: 0; border-bottom: 0; }
.section--yellow .cell { background: transparent; }
.section--yellow .cell + .cell { border-left: 1px solid var(--c-line); }
.section--yellow .card:hover { background: rgba(255, 255, 255, 0.22); }
.section--yellow .card__art {
  opacity: 1;
  /* soft warm shadow under the silver icons so they lift off the yellow */
  filter: drop-shadow(0 10px 14px rgba(120, 72, 0, 0.28)) drop-shadow(0 2px 3px rgba(80, 50, 0, 0.18));
}
.tag,
.card__tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-top: var(--s-4);
  padding-inline: 10px;
  font-family: var(--f-ui);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-text);
  border: 1px solid var(--c-line);
  border-radius: 999px;
}
.section--yellow .card__tag { border-color: rgba(26, 20, 0, 0.3); }
/* fitur yang belum dibuka: tanpa hover, ilustrasi sedikit diredam */
.card--soon { cursor: default; }
.section--yellow .card--soon:hover { background: transparent; }
.card--soon .card__art { opacity: 0.7; }
.card--soon:hover .card__art { transform: none; opacity: 0.7; }
@media (max-width: 720px) {
  .section--yellow .cell + .cell { border-left: 0; border-top: 1px solid var(--c-line); }
}

/* --------------------------------------------------------------------------
   9b. SOLUSI — dua kolom: siswa & guru
   -------------------------------------------------------------------------- */
.aud { display: flex; flex-direction: column; }
/* panggung mockup: pola sama dengan chat hero (window terpotong di tepi bawah) */
.aud__stage {
  display: flex;
  height: 380px;
  padding: clamp(1rem, 0.6rem + 1vw, 1.25rem) clamp(1rem, 0.6rem + 1vw, 1.25rem) 0;
  overflow: hidden;
  background: var(--c-raised);
  border-bottom: 1px solid var(--c-line);
}
.aud__stage .window { box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3); }
.aud__stage .window > * { flex-shrink: 0; }
.aud__stage .lab__bar { height: 48px; }
.aud__view {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--c-bg);
}

.aud__body { padding: var(--cell-p) var(--cell-p) var(--s-6); }
.tag { margin-top: 0; gap: 6px; }
.tag .lucide { width: 14px; height: 14px; }
.aud__title { max-width: 21ch; margin-top: var(--s-4); font-size: var(--fs-xl); font-weight: 400; }
.aud__list { height: auto; flex: 1; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.aud .row h4 { font-size: var(--fs-md); font-weight: 500; margin-bottom: 2px; }
.aud__foot { padding: var(--s-5) var(--cell-p); }
.aud__foot .btn .lucide { transition: transform var(--dur) var(--ease-out); }
.aud__foot .btn:hover .lucide { transform: translateX(3px); }

/* Meter tipis — terisi saat blok masuk layar */
.meter { position: relative; display: block; height: 2px; background: var(--c-line-2); }
.meter i {
  position: absolute;
  inset: 0;
  background: var(--c-text);
  transform-origin: left;
  transform: scaleX(var(--v, 0));
}

/* Mockup siswa: lanjutkan belajar + hari beruntun */
.resume, .streak {
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
}
.resume {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px var(--s-3);
}
.resume .icon-tile { grid-row: span 2; border-radius: 10px; }
.resume__txt { display: flex; flex-direction: column; min-width: 0; }
.resume__txt b { font-family: var(--f-ui); font-size: var(--fs-sm); font-weight: 500; color: var(--c-text); }
.resume__txt small { font-size: var(--fs-xs); color: var(--c-text-3); }
.resume__pct { font-size: var(--fs-sm); color: var(--c-text); font-variant-numeric: tabular-nums; }
.resume .meter { grid-column: 2 / -1; }
.streak { display: flex; flex-direction: column; gap: 10px; }
.streak__k { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--c-text-2); }
.streak__k b { font-weight: 500; color: var(--c-text); }
.streak__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.streak__days li {
  display: grid;
  place-items: center;
  height: 30px;
  font-size: 0.6875rem;
  color: var(--c-text-3);
  border: 1px solid var(--c-line-2);
  border-radius: 8px;
}
.streak__days li.ok { color: var(--c-bg); background: var(--c-text); border-color: var(--c-text); }
.streak__days li.cur { box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 3px var(--c-primary); }

/* input tanya AI (siswa) */
.aud__ask {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 6px 6px 6px 10px;
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  background: var(--c-surface);
}
.aud__ask .ai-mark { width: 22px; height: 22px; }
.aud__ask .window__field { flex: 1; color: var(--c-text-2); }
.aud__ask .send { margin-left: auto; }

/* Mockup guru: ringkasan kelas + daftar murid */
.aud__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
  overflow: hidden;
}
.aud__stats div { padding: 10px 14px; }
.aud__stats div + div { border-left: 1px solid var(--c-line); }
.aud__stats dt { font-size: 0.6875rem; color: var(--c-text-3); }
.aud__stats dd { font-family: var(--f-head); font-size: var(--fs-xl); line-height: 1.2; color: var(--c-text); font-variant-numeric: tabular-nums; }
.aud__stats dd small { font-size: var(--fs-sm); color: var(--c-text-3); }
.roster { display: flex; flex-direction: column; gap: 6px; }
.roster li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(48px, 30%) 2ch;
  align-items: center;
  gap: var(--s-3);
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
}
.roster .av { width: 30px; height: 30px; font-size: 0.6875rem; }
.roster__name { display: flex; flex-direction: column; min-width: 0; font-family: var(--f-ui); font-size: var(--fs-sm); font-weight: 500; color: var(--c-text); line-height: 1.3; }
.roster__name small { font-family: var(--f-body); font-size: 0.6875rem; font-weight: 400; color: var(--c-primary); }
.roster b { font-family: var(--f-body); font-size: var(--fs-sm); font-weight: 400; color: var(--c-text); text-align: right; font-variant-numeric: tabular-nums; }
.roster .is-flag { border-color: rgba(255, 184, 32, 0.35); }
.roster .is-flag .meter i { background: var(--c-primary); }

/* Loop mockup solusi (dikendalikan js: .is-play → .is-out → ulang).
   Tanpa JS: kondisi akhir langsung tampil. */
.js [data-loop] .meter i { transform: scaleX(0); }
.js [data-loop].is-play .meter i { transform: scaleX(var(--v, 0)); transition: transform 1.1s var(--at, 0.3s) var(--ease-out); }
.js [data-loop].is-play.is-out .meter i { transform: scaleX(0); transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1); }
.roster li:nth-child(1) .meter i { --at: 0.45s; }
.roster li:nth-child(2) .meter i { --at: 0.6s; }
.roster li:nth-child(3) .meter i { --at: 0.75s; }

.js [data-loop] .streak__days li.ok { color: var(--c-text-3); background: transparent; border-color: var(--c-line-2); }
.js [data-loop].is-play .streak__days li.ok { animation: dayOn 0.35s var(--ease-out) var(--at, 0.4s) forwards; }
.js [data-loop].is-out .streak__days li.ok { filter: opacity(0.35); transition: filter 0.4s; }
.streak__days li:nth-child(2) { --at: 0.52s; }
.streak__days li:nth-child(3) { --at: 0.64s; }
.streak__days li:nth-child(4) { --at: 0.76s; }
.streak__days li:nth-child(5) { --at: 0.88s; }
@keyframes dayOn {
  from { transform: scale(0.85); }
  to   { color: var(--c-bg); background: var(--c-text); border-color: var(--c-text); transform: none; }
}

.js [data-loop] .roster .is-flag { border-color: var(--c-line); }
.js [data-loop] .roster__name small { opacity: 0; }
.js [data-loop].is-play .roster .is-flag { border-color: rgba(255, 184, 32, 0.35); transition: border-color 0.4s 1.5s; }
.js [data-loop].is-play .roster__name small { opacity: 1; transition: opacity 0.4s 1.5s; }
.js [data-loop].is-out .roster .is-flag { border-color: var(--c-line); transition: border-color 0.3s; }
.js [data-loop].is-out .roster__name small { opacity: 0; transition: opacity 0.3s; }

/* --------------------------------------------------------------------------
   9c. SMART AI DRAWING BOARD
   -------------------------------------------------------------------------- */
.tag--new { margin-bottom: var(--s-5); color: var(--c-primary); border-color: rgba(255, 184, 32, 0.4); }

.board-stage {
  display: flex;
  padding: clamp(1rem, 0.6rem + 1.2vw, 2rem) clamp(1rem, 0.6rem + 1.2vw, 2rem) 0;
  overflow: hidden;
  background: var(--c-raised);
}
.board-stage .window { box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3); }
.board__bar { gap: var(--s-4); }
.board__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-family: var(--f-ui);
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.board__status { display: flex; align-items: center; gap: var(--s-3); }
.board__live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--c-text-2); white-space: nowrap; }
.board__live .lucide { width: 14px; height: 14px; }
.rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding-inline: 8px 10px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
}
.rec i { width: 7px; height: 7px; border-radius: 50%; background: #ff5d4f; animation: blink 1.4s steps(1) infinite; }

.board__body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(240px, 300px);
  height: 440px;
}
.board__tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-block: 12px;
  border-right: 1px solid var(--c-line);
}
.btool {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  color: var(--c-text-2);
  border: 1px solid transparent;
  border-radius: 10px;
}
.btool .lucide { width: 18px; height: 18px; }
.btool.icon-tile--primary { color: var(--c-primary-ink); } /* ikon alat aktif: hitam di atas amber */
.btool.icon-tile--primary .lucide { stroke-width: 2; }
.btool__sep { width: 20px; height: 1px; margin-block: 4px; background: var(--c-line); }

/* kanvas: whiteboard putih polos, tinta gelap */
.board__canvas {
  --ink:   #1c1b19;
  --ink-2: #6b665e;   /* garis ukur */
  --ink-3: #a29d94;   /* sumbu */
  position: relative;
  min-width: 0;
  background: #ffffff;
}
.board__canvas > svg { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); overflow: visible; }
.ink { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ink--ax { stroke: var(--ink-3); stroke-width: 1.5; }
.ink--dim { stroke: var(--ink-2); stroke-width: 1.5; }
.hand { font-family: var(--f-head); font-style: italic; font-size: 22px; fill: var(--ink); }
.hand--lg { font-size: 26px; }
.lasso { fill: none; stroke: var(--c-primary-btm); stroke-width: 2.25; stroke-linecap: round; } /* amber lebih pekat agar kontras di putih */
.ai-chip rect { fill: var(--c-primary); }
.ai-chip text { font-family: var(--f-ui); font-size: 13px; font-weight: 500; fill: var(--c-primary-ink); }

.board__toast {
  position: absolute;
  left: var(--s-4); bottom: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  max-width: calc(100% - 2 * var(--s-4));
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--c-line-2);
  border-radius: 12px;
  background: var(--c-surface-2);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.7);
}
.board__toast .lucide { width: 18px; height: 18px; color: var(--c-primary); }
.board__toast span { display: flex; flex-direction: column; min-width: 0; }
.board__toast b { font-family: var(--f-ui); font-size: var(--fs-sm); font-weight: 500; color: var(--c-text); }
.board__toast small { font-size: var(--fs-xs); color: var(--c-text-2); }

.board__ai { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--c-line); background: var(--c-surface); }
.board__ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding-inline: var(--s-4);
  font-family: var(--f-ui);
  font-size: var(--fs-sm);
  font-weight: 500;
  border-bottom: 1px solid var(--c-line);
}
.board__ai-head .ai-mark { width: 22px; height: 22px; }
.board__ai-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-2); padding: var(--s-4); }
.board__ai .bubble { max-width: 94%; }

/* Simulasi dikendalikan js (.is-anim aktif saat demo berjalan; tanpa JS = kondisi akhir) */
.board__body { position: relative; }
.board.is-anim .bseq { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.board.is-anim .bseq.is-on { opacity: 1; transform: none; }
.ai-chip { transform-box: fill-box; transform-origin: center; transition: transform 0.25s var(--ease-out), opacity 0.25s; }
.board.is-anim .ai-chip { opacity: 0; transform: scale(0.8); }
.board.is-anim .ai-chip.is-on { opacity: 1; transform: none; }
.board.is-anim .ai-chip.is-press { transform: scale(0.92); }
.btool { transition: color var(--dur); }
/* efek foto: kedip shutter gelap singkat (kilat putih tak terlihat di kanvas putih) */
.board__flash { position: absolute; inset: 0; pointer-events: none; background: #000; opacity: 0; }
.board__flash.is-on { animation: flash 0.45s ease-out; }
@keyframes flash { from { opacity: 0.22; } to { opacity: 0; } }

/* kursor: panah untuk klik, pena untuk menggambar */
.bcursor { width: 22px; height: 22px; z-index: 6; }
.bcursor .cur-pen { display: none; fill: var(--c-bg); stroke: #fff; stroke-width: 1.4; } /* pena gelap di atas kanvas putih */
.bcursor.is-pen .cur-arrow { display: none; }
.bcursor.is-pen .cur-pen { display: block; transform: translate(-3px, -19px); }
.bcursor.is-pen { transition: transform 0.28s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s; }
.bcursor.is-draw { transition: opacity 0.3s; }
/* akhir siklus: isi papan memudar, lalu js mengulang dari awal */
.board.is-out .board__canvas > svg,
.board.is-out .board__ai-body,
.board.is-out .board__toast { filter: opacity(0); transition: filter 0.45s ease; }

/* Kemampuan */
.cap { display: flex; flex-direction: column; transition: background var(--dur); }
.cap:hover { background: var(--c-surface); }
.cap .icon-tile { margin-bottom: var(--s-5); border-radius: 10px; }
.cap h3 { margin-bottom: var(--s-2); font-size: var(--fs-lg); font-weight: 500; }
.cap p { font-size: var(--fs-sm); }
.board__foot { flex-wrap: wrap; padding-block: var(--s-5); }
.board__foot p { font-size: var(--fs-base); }
.board__foot strong { color: var(--c-text); font-weight: 500; }

@media (max-width: 1024px) {
  .board__live { display: none; }
  .board__body { grid-template-columns: 52px minmax(0, 1fr) 240px; }
}
@media (max-width: 720px) {
  .board__title { display: none; }
  .board__status { margin-left: auto; }
  .board__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 340px auto; height: auto; }
  .board__tools { flex-direction: row; justify-content: center; padding: 8px; border-right: 0; border-bottom: 1px solid var(--c-line); }
  .btool__sep { width: 1px; height: 20px; margin: 0 4px; }
  .board__ai { border-left: 0; border-top: 1px solid var(--c-line); }
  .board__ai-body { min-height: 200px; }
  .board__toast { display: none; } /* di layar kecil menutupi gambar; fitur dijelaskan di kartu "Foto & bagikan" */
  .block--12 > .cap.span-4 { grid-column: span 6; }
}
@media (max-width: 480px) {
  .btool { width: 32px; height: 32px; }
  .block--12 > .cap.span-4 { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   10. MODULE SLIDER
   -------------------------------------------------------------------------- */
.swiper { margin-right: -1px; } /* garis kanan slide terakhir menimpa border blok */
.slide { height: auto; background: var(--c-bg); box-shadow: inset -1px 0 0 var(--c-line); }
.cell > .progress { margin-bottom: -1px; z-index: 2; background: transparent; }

.module { display: flex; flex-direction: column; transition: background var(--dur); }
/* module cards: separate, rounded cards with a gap (instead of flush cells) */
.module-swiper { margin-right: 0; }
.cell--flush:has(> .module-swiper) { padding: var(--s-5) 0; background: var(--c-raised); }
/* padding dipindah ke dalam slider: kartu sejajar konten, kartu berikutnya mengintip sampai tepi sel */
.module-swiper { padding-inline: var(--cell-p); } /* padding outside the slider, so exactly N cards fit */
/* keep the progress line full width on the section's bottom border, as before */
/* Dot pagination slider modul: dot aktif memanjang jadi pill */
.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--s-5);
}
.dots .swiper-pagination-bullet {
  width: 8px; height: 8px;
  margin: 0 !important;
  padding: 0;
  border-radius: 999px;
  background: var(--c-text-3);
  opacity: 0.55;
  cursor: pointer;
  transition: width 0.4s var(--ease-out), background var(--dur), opacity var(--dur);
}
.dots .swiper-pagination-bullet:hover { opacity: 1; }
.dots .swiper-pagination-bullet-active { width: 24px; background: var(--c-text); opacity: 1; }
.dots .swiper-pagination-bullet:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }
.dots.swiper-pagination-lock { display: none; }
.slide.module {
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  box-shadow: none;
}
.module:hover { background: var(--c-surface); }
.module .ph { border-bottom: 1px solid var(--c-line); }
.module__media {
  aspect-ratio: 4 / 3; /* mengikuti rasio gambar materi agar infografis tidak terpotong */
  overflow: hidden;
  background: var(--c-primary);
  border-bottom: 1px solid var(--c-line);
}
.module__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.module:hover .module__media img { transform: scale(1.04); }
.module__body {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-5);
}
.module__body > .lucide { width: 20px; height: 20px; margin-top: 2px; color: var(--c-text-2); }
.module h4 {
  display: -webkit-box;
  margin-bottom: 4px;
  overflow: hidden;
  font-size: var(--fs-md);
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.module p { font-size: var(--fs-sm); color: var(--c-text-3); }
.module__txt { min-width: 0; }
a.module { color: inherit; }
a.module:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }
.module__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: auto;
  padding: var(--s-4) var(--s-5);
  font-family: var(--f-ui);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-2);
  border-top: 1px solid var(--c-line);
  transition: color var(--dur);
}
.module__cta .lucide { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.module:hover .module__cta { color: var(--c-text); }
.module:hover .module__cta .lucide { transform: translate(2px, -2px); }

/* --------------------------------------------------------------------------
   10b. DRAWER — pratinjau contoh materi
   -------------------------------------------------------------------------- */
html.is-drawer-open { overflow: hidden; }
/* animasi tanpa henti di belakang drawer dijeda (selector spesifik: tanpa hitung ulang style seluruh halaman) */
html.is-drawer-open .marquee__track,
html.is-drawer-open .rec i,
html.is-drawer-open .eq i,
html.is-drawer-open .typing i,
html.is-drawer-open .caret,
html.is-drawer-open .segs i.cur { animation-play-state: paused; }
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(960px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--c-text);
  background: transparent;
  border: 0;
}
.drawer::backdrop { background: rgba(12, 12, 11, 0.72); } /* tanpa blur: blur layar penuh berat saat panel bergerak */
.drawer__panel {
  will-change: transform;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-surface);
  border-left: 1px solid var(--c-line-2);
  box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.7);
}
.drawer__panel:focus { outline: none; }
.drawer[open] .drawer__panel { animation: drawerIn 0.5s var(--ease-out); }
.drawer[open]::backdrop { animation: backdropIn 0.35s ease-out; }
.drawer.is-closing .drawer__panel { animation: drawerOut 0.32s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.drawer.is-closing::backdrop { animation: backdropOut 0.32s ease-in forwards; }
@keyframes drawerIn { from { transform: translateX(100%); } }
@keyframes drawerOut { to { transform: translateX(100%); } }
@keyframes backdropIn { from { opacity: 0; } }
@keyframes backdropOut { to { opacity: 0; } }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-line);
}
.drawer__heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drawer__meta { font-size: var(--fs-xs); color: var(--c-text-3); }
.drawer__title {
  overflow: hidden;
  font-size: var(--fs-lg);
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.drawer__actions { display: flex; gap: var(--s-2); }
.drawer__btn { width: 40px; height: 40px; }
.drawer__btn .lucide { width: 18px; height: 18px; }
.drawer__note {
  padding: 10px var(--s-5);
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.drawer__body { position: relative; flex: 1; min-height: 0; background: #ffffff; }
.drawer__frame { display: block; width: 100%; height: 100%; border: 0; background: #ffffff; }
.drawer__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: #6b665e;
  background: #ffffff;
  transition: opacity 0.3s;
}
.drawer__loader.is-done { opacity: 0; pointer-events: none; }
.drawer__spin {
  width: 28px; height: 28px;
  border: 2px solid #e8e4dc;
  border-top-color: var(--c-primary-btm);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--c-line);
}
.drawer__foot .btn .lucide { width: 16px; height: 16px; }
.drawer__count { font-size: var(--fs-sm); color: var(--c-text-3); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .drawer__head, .drawer__foot { padding-inline: var(--s-4); }
  .drawer__note { padding-inline: var(--s-4); }
}

/* --------------------------------------------------------------------------
   11. TUTOR
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   FLOW — animasi alur penjadwalan tutor (di dalam window)
   -------------------------------------------------------------------------- */
.flow { min-height: 460px; }
.flow .lab__bar { height: 48px; }
.flow__view { position: relative; flex: 1; min-height: 400px; overflow: hidden; background: var(--c-bg); }
.flow__scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s 0.45s;
}
.flow__scene.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.flow__foot { margin-top: auto; display: flex; justify-content: flex-end; }
.flow__label { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--c-text-3); }

/* Avatar inisial */
.av {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  font-family: var(--f-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-text);
  background: var(--c-surface-2);
  border: 1px solid var(--c-line-2);
}
.av--lg { width: 52px; height: 52px; font-size: var(--fs-sm); }

/* Chip filter */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 12px;
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
}
.chip.is-on { color: var(--c-text); border-color: var(--c-text-3); background: var(--c-surface-2); }

/* Kartu tutor */
.tutors { display: flex; flex-direction: column; gap: var(--s-2); }
.tutor, .picked {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
  transition: border-color var(--dur), background var(--dur), transform 0.18s var(--ease-out);
}
.tutor__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tutor__info b { font-family: var(--f-ui); font-size: var(--fs-sm); font-weight: 500; color: var(--c-text); }
.tutor__info small { font-size: var(--fs-xs); color: var(--c-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tutor__rate { display: flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--c-text-2); }
.tutor__rate .lucide { width: 12px; height: 12px; fill: currentColor; }
.tutor__check {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--c-line-2);
  color: transparent;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.tutor__check .lucide { width: 13px; height: 13px; stroke-width: 2.5; }
.tutor.is-on { border-color: var(--c-text); background: var(--c-surface-2); }
.tutor.is-on .tutor__check { background: var(--c-text); border-color: var(--c-text); color: var(--c-bg); }
.flow__scene.is-active .tutor { animation: labIn 0.5s var(--ease-out) both; }
.flow__scene.is-active .tutor:nth-child(2) { animation-delay: 0.08s; }
.flow__scene.is-active .tutor:nth-child(3) { animation-delay: 0.16s; }

/* Tombol semu di dalam demo (putih 3D, senada tab aktif) */
.fbtn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding-inline: 18px;
  font-family: var(--f-ui);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-bg);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 50%, #e6e6e6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: transform 0.18s var(--ease-out);
}
.is-press { transform: scale(0.96); }

/* Tanggal & jam */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-surface);
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform 0.18s var(--ease-out);
}
.day small { font-size: 0.6875rem; color: var(--c-text-3); }
.day b { font-family: var(--f-ui); font-size: var(--fs-md); font-weight: 500; color: var(--c-text); }
.day.is-off { opacity: 0.35; }
.day.is-on { background: var(--c-text); border-color: var(--c-text); }
.day.is-on small, .day.is-on b { color: var(--c-bg); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot {
  padding: 8px 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform 0.18s var(--ease-out);
}
.slot.is-off { color: var(--c-text-3); text-decoration: line-through; border-color: var(--c-line); }
.slot.is-on { color: var(--c-bg); background: var(--c-text); border-color: var(--c-text); }

/* Notifikasi terjadwal */
.toast {
  position: absolute;
  left: 50%; top: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 16px 10px 12px;
  white-space: nowrap;
  border: 1px solid var(--c-line-2);
  border-radius: 12px;
  background: var(--c-surface-2);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translate(-50%, -10px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.toast .lucide { width: 18px; height: 18px; color: var(--c-primary); }
.toast span { display: flex; flex-direction: column; }
.toast b { font-family: var(--f-ui); font-size: var(--fs-sm); font-weight: 500; color: var(--c-text); }
.toast small { font-size: var(--fs-xs); color: var(--c-text-2); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Sesi live */
.call { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--s-2); }
.call__board, .tile {
  position: relative;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
  overflow: hidden;
}
.call__board svg { position: absolute; inset: 28px 8px 8px; width: calc(100% - 16px); height: calc(100% - 36px); }
.call__tag { position: absolute; top: 10px; left: 12px; font-size: 0.6875rem; color: var(--c-text-3); }
.call__board .ax { fill: none; stroke: var(--c-line-2); stroke-width: 1; }
.call__board .draw { fill: none; stroke: var(--c-text); stroke-width: 2; stroke-linecap: round; stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
.call__board .dot { fill: var(--c-primary); opacity: 0; }
.call__board text { font-family: var(--f-body); font-size: 12px; fill: var(--c-text-2); opacity: 0; }
.call__board .t1 { fill: var(--c-text); font-size: 14px; }
.flow__scene.is-active .call__board .draw { animation: draw 1.8s 0.6s var(--ease-out) forwards; }
.flow__scene.is-active .call__board .dot { animation: fadeIn 0.3s 2.3s forwards; }
.flow__scene.is-active .call__board .t1 { animation: fadeIn 0.5s 2.6s forwards; }
.flow__scene.is-active .call__board .t2 { animation: fadeIn 0.5s 3.3s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.call__side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--s-2); }
.tile { display: grid; place-items: center; }
.tile.is-talk { border-color: var(--c-text-3); }
.tile__name {
  position: absolute;
  left: 10px; bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  color: var(--c-text-2);
}
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq i { width: 2px; height: 100%; background: var(--c-text); transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.3s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.call__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.live { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); animation: blink 1.4s steps(1) infinite; }
.call__ctrls { display: flex; gap: 6px; }
.cbtn {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--c-text-2);
  border: 1px solid var(--c-line-2);
}
.cbtn .lucide { width: 15px; height: 15px; }
.cbtn--end { color: var(--c-bg); background: var(--c-text); border-color: var(--c-text); }

/* Kursor demo */
.cursor {
  position: absolute;
  top: 0; left: 0;
  z-index: 5;
  width: 20px; height: 20px;
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--x, 80%), var(--y, 90%));
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s;
}
.cursor.is-on { opacity: 1; }
.cursor svg { display: block; width: 100%; height: 100%; fill: var(--c-primary); stroke: var(--c-primary-ink); stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); transition: transform 0.15s; }
.cursor::after {
  content: "";
  position: absolute;
  top: -10px; left: -10px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--c-primary);
  opacity: 0;
}
.cursor.is-click svg { transform: scale(0.85); }
.cursor.is-click::after { animation: ripple 0.45s var(--ease-out); }
@keyframes ripple { from { opacity: 0.8; transform: scale(0.3); } to { opacity: 0; transform: scale(1.4); } }

/* Langkah di kanan mengikuti animasi */
.stack.is-flow .row { transition: background var(--dur); }
.stack.is-flow .row h3,
.stack.is-flow .row .num { transition: color var(--dur); }
.stack.is-flow .row:not(.is-active) h3 { color: var(--c-text-2); }
.stack.is-flow .row:not(.is-active) .num { color: var(--c-text-3); }
.stack.is-flow .row.is-active { background: var(--c-surface); }

@media (max-width: 480px) {
  .flow__scene { padding: var(--s-4); }
  .tutor__rate { display: none; }
  .call { grid-template-columns: 1fr; grid-template-rows: 1.4fr 1fr; }
  .call__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .cbtn { width: 30px; height: 30px; }
}

/* Latihan soal (drill) — memakai window & kursor dari FLOW */
.drill { min-height: 520px; }
.segs { display: flex; gap: 4px; padding: 12px var(--s-5); border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
.segs i { flex: 1; height: 4px; background: var(--c-line-2); transition: background var(--dur); }
.segs i.ok { background: var(--c-text); }
.segs i.bad { background: var(--c-text-3); }
.segs i.cur { background: var(--c-text-2); animation: blink 1.2s steps(1) infinite; }
.drill__q .chip { align-self: flex-start; }
.drill__text { font-family: var(--f-head); font-size: var(--fs-lg); line-height: 1.35; color: var(--c-text); max-width: 36ch; }
.drill__opts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-top: var(--s-2); }
.drill__opts .opt { transition: background var(--dur), color var(--dur), border-color var(--dur), opacity var(--dur), transform 0.18s var(--ease-out); }
.drill.is-answered .opt:not(.is-correct):not(.is-wrong) { opacity: 0.45; }
.drill__exp {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: 12px 14px;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.drill__exp .ai-mark { width: 22px; height: 22px; }
.drill__exp b { font-weight: 500; color: var(--c-text); }
.drill.is-answered .drill__exp { opacity: 1; transform: none; }
.drill__done { justify-content: center; }
.drill__done .flow__foot { justify-content: flex-start; margin-top: var(--s-6); }
.drill__up { display: flex; align-items: center; gap: 6px; margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--c-text-2); }
.drill__up .lucide { width: 16px; height: 16px; color: var(--c-text); }
@media (max-width: 480px) {
  .drill .flow__view { min-height: 560px; }
  .drill__opts { grid-template-columns: 1fr; }
  .drill__opts .opt { height: 40px; }
}

.stack { display: flex; flex-direction: column; }
.stack .rows { height: auto; flex: 1; border-bottom: 1px solid var(--c-line); }
.stack__foot { padding: var(--s-5) var(--cell-p); }

/* --------------------------------------------------------------------------
   12. LATIHAN
   -------------------------------------------------------------------------- */
.score { display: flex; flex-direction: column; }
.score__k { font-size: var(--fs-sm); color: var(--c-text-2); }
.score__row { display: flex; align-items: baseline; gap: var(--s-3); margin-block: var(--s-2) auto; }
.score__v {
  font-family: var(--f-head);
  font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
}
.score__delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}
.score__delta .lucide { width: 14px; height: 14px; }
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  margin-top: var(--s-6);
  border-bottom: 1px solid var(--c-line-2);
}
.bars i { flex: 1; height: var(--h); background: var(--c-surface-2); border: 1px solid var(--c-line); border-bottom: 0; }
.bars i:last-child { background: var(--c-text); border-color: var(--c-text); }
.bars__axis {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}

.feat { display: flex; flex-direction: column; align-items: center; gap: var(--s-6); text-align: center; transition: background var(--dur); }
.feat:hover { background: var(--c-surface); }
.feat__art {
  display: block;
  width: clamp(120px, 6vw + 64px, 164px);
  height: auto;
  aspect-ratio: 1;
  margin: calc(var(--s-3) * -1) auto calc(var(--s-2) * -1);
  object-fit: contain;
  opacity: 0.92;
  transition: transform 0.6s var(--ease-out), opacity var(--dur);
}
.feat:hover .feat__art { transform: rotate(-4deg) scale(1.05); opacity: 1; }
.feat h3 { font-size: var(--fs-md); }

/* --------------------------------------------------------------------------
   13. TESTIMONIALS
   -------------------------------------------------------------------------- */
.testi {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-7);
  padding: var(--cell-p);
  min-height: 280px;
}
.testi blockquote {
  font-family: var(--f-head);
  font-size: var(--fs-xl);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: normal;
  color: var(--c-text);
}
.testi__by { display: flex; align-items: center; gap: var(--s-3); }
.testi strong { display: block; font-size: var(--fs-sm); font-weight: 500; }
.testi small { display: block; font-size: var(--fs-xs); color: var(--c-text-3); }

/* Testimoni di dalam window (panggung kuning seperti chat hero) */
.stage {
  padding: clamp(1rem, 0.6rem + 1.2vw, 2rem) clamp(1rem, 0.6rem + 1.2vw, 2rem) 0;
  background: linear-gradient(170deg, var(--c-primary) 0%, var(--c-primary) 40%, var(--c-primary-warm) 100%);
}
.window--testi .window__panel { display: block; min-width: 0; margin-top: 14px; } /* block, bukan flex: Swiper melebar tak terbatas di flex column */
.window--testi .testi-swiper { min-width: 0; }
.window--testi .slide { background: transparent; }
.window--testi .testi { min-height: 260px; padding: clamp(1.25rem, 0.8rem + 1.2vw, 1.75rem); }
.window--testi .testi blockquote { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.3; }

/* Placeholder avatar */
.avatar {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  font-family: var(--f-ui);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-text);
  background: var(--c-surface-2);
  border: 1px solid var(--c-line-2);
}
.avatar { overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */
.faq { padding: 0; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--cell-p);
  font-family: var(--f-head);
  font-size: var(--fs-lg);
  font-weight: 400;
  letter-spacing: normal;
  cursor: pointer;
  list-style: none;
  transition: background var(--dur);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--c-surface); }
.faq summary .lucide { color: var(--c-text-3); transition: transform 0.35s var(--ease-out); }
.faq[open] summary .lucide { transform: rotate(45deg); color: var(--c-text); }
.faq p { max-width: 60ch; padding: 0 var(--cell-p) var(--s-5); }

/* --------------------------------------------------------------------------
   15. CTA
   -------------------------------------------------------------------------- */
.cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}
.cta__title {
  font-size: var(--fs-3xl);
  font-weight: 500;
  line-height: 1;
  letter-spacing: normal;
}
.cta p { margin-top: var(--s-4); font-size: var(--fs-md); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.cta--center { align-items: center; text-align: center; }
.cta--center .cta__actions { justify-content: center; }

/* --------------------------------------------------------------------------
   15b. TEMA KUNING — CTA akhir hingga footer
   Gradasi primary → oranye mengalir tanpa putus dari CTA ke footer:
   CTA memegang separuh atas, footer separuh bawah (titik temu: --yl-mid).
   -------------------------------------------------------------------------- */
.theme-yellow {
  --yl-mid: #ffa91d;
  --c-text:   var(--c-primary-ink);
  --c-text-2: rgba(26, 20, 0, 0.7);
  --c-text-3: rgba(26, 20, 0, 0.55);
  --c-line:   rgba(26, 20, 0, 0.16);
  --c-line-2: rgba(26, 20, 0, 0.26);
  --c-surface: rgba(255, 255, 255, 0.16);
  --corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Ccircle cx='4.5' cy='4.5' r='4' fill='%23ffb21e' stroke='%23a06800'/%3E%3C/svg%3E");
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0L100 100M100 0L0 100' stroke='%23d98f00' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  color: var(--c-text);
}
.section--cta.theme-yellow > .container { background: linear-gradient(180deg, var(--c-primary) 0%, var(--yl-mid) 100%); }
.footer.theme-yellow { padding-top: 0; }
.footer.theme-yellow > .container {
  padding-top: 0;
  padding-bottom: var(--s-7);
  background: linear-gradient(180deg, var(--yl-mid) 0%, var(--c-primary-warm) 100%);
}
/* Garis grid di atas gradasi: sel transparan, garis digambar sekali per sisi */
.theme-yellow .block { gap: 0; background: transparent; border-width: 0 1px 1px 0; }
.theme-yellow .cell { background: transparent; box-shadow: inset 1px 0 0 var(--c-line), inset 0 1px 0 var(--c-line); }
.theme-yellow .ph { background-color: transparent; }
/* Tombol di atas kuning: primary jadi gelap 3D, ghost bertinta gelap */
.theme-yellow .btn--primary {
  color: #ffffff;
  text-shadow: none;
  border-color: #000000;
  background: linear-gradient(180deg, #2e2b26 0%, #1f1d1a 55%, #141311 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(90, 55, 0, 0.35),
    0 8px 16px -8px rgba(90, 55, 0, 0.6);
}
.theme-yellow .btn--primary:hover {
  filter: none;
  background: linear-gradient(180deg, #38352f 0%, #26231f 55%, #1a1916 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 2px 0 rgba(90, 55, 0, 0.35),
    0 12px 20px -8px rgba(90, 55, 0, 0.65);
}
.theme-yellow .btn--ghost:hover,
.theme-yellow .footer__social a:hover { background: var(--c-primary-ink); color: var(--c-primary); border-color: var(--c-primary-ink); }
.theme-yellow .logo__img { filter: brightness(0); opacity: 0.92; }
/* Gambar dekoratif di atas footer, menempel pada blok CTA */
.footer__art { aspect-ratio: 16 / 6; overflow: hidden; }
.footer__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (max-width: 720px) { .footer__art { aspect-ratio: 4 / 3; } }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.footer { padding-top: var(--head-top); overflow: hidden; }
.footer__brand p { margin-top: var(--s-4); font-size: var(--fs-sm); max-width: 28ch; }
.footer__col h2 { margin-bottom: var(--s-4); font-size: var(--fs-sm); font-weight: 500; letter-spacing: normal; }
.footer__col a {
  display: block;
  padding-block: 5px;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
  transition: color var(--dur);
}
.footer__col a:hover { color: var(--c-text); }

.footer__meta {
  display: flex;
  align-items: center;
  padding-block: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--c-text-3);
}
.footer__social { justify-content: flex-end; gap: var(--s-2); }
.footer__social a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  color: var(--c-text-2);
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.footer__social a:hover { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }
.footer__social .lucide { width: 16px; height: 16px; }


/* --------------------------------------------------------------------------
   17. MOTION
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes msgIn   { from { opacity: 0; transform: translateY(8px); } }
@keyframes blink   { 50% { opacity: 0; } }
@keyframes typing  { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  [data-loop] * { animation-delay: 0s !important; transition-delay: 0s !important; }
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links, .nav__login { display: none; }
  .nav__toggle { display: grid; }

  .block--12 > .span-8,
  .block--12 > .span-7,
  .block--12 > .span-5 { grid-column: 1 / -1; }
  .block--12 > .chat.span-4 { grid-column: 1 / -1; }
  .block--12 > .score.span-4 { grid-column: 1 / -1; }
  .block--12 > .span-3 { grid-column: span 6; }
  .ph--fill,
  .media--fill { height: auto; }

  .footer__brand.span-6 { grid-column: 1 / -1; }
  .footer__col.span-2 { grid-column: span 4; }
}

@media (max-width: 720px) {
  .block--3,
  .block--2 { grid-template-columns: 1fr; }
  .block--12 > .level.span-4 { grid-column: 1 / -1; }
  .block--12 > .aud.span-6 { grid-column: 1 / -1; }
  .aud__stage { height: 372px; }
  .hero__cta .btn { width: 100%; }
  .cta__actions .btn { flex: 1; }

  .footer__col.span-2 { grid-column: 1 / -1; }
  .footer__meta.span-6 { grid-column: 1 / -1; justify-content: center; }
}

/* --------------------------------------------------------------------------
   MOBILE RHYTHM — tepi layar lebih tipis, teks kecil sedikit lebih besar,
   jarak antar baris & elemen lebih lega
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  :root {
    --gutter: 0.625rem;        /* 10px dari tepi layar ke garis frame */
    --cell-p: 1.125rem;        /* 18px padding dalam sel */
    --fs-xs: 0.8125rem;        /* 12 → 13px */
    --fs-sm: 0.9375rem;        /* 14 → 15px */
    --head-top: 4.5rem;
    --head-bottom: 2.25rem;
  }
  body { line-height: 1.65; }
  .head { padding-inline: var(--cell-p); }

  /* judul + deskripsi: beri napas */
  .row { padding-block: 1.25rem; }
  .row h3, .row__t, .module h4 { margin-bottom: 4px; }
  .card h3 { margin-bottom: var(--s-3); }
  .level p, .card p, .row p, .row__d { line-height: 1.55; }
  .hero__lead, .head--hero p { line-height: 1.6; }

  /* slider modul: kartu utuh, tidak terpotong */
  .cell--flush:has(> .module-swiper) { padding: var(--s-4) 0; }
  .dots { margin-top: var(--s-4); }

  /* footer & FAQ: jarak antar link lebih lega (juga target sentuh) */
  .footer__col a { padding-block: 8px; }
  .faq summary { padding-block: 1.25rem; }
}

@media (max-width: 480px) {
  .lab__controls { grid-template-columns: 1fr; gap: var(--s-4); }
  .testi,
  .window--testi .testi { min-height: 220px; }
  .marquee__list li { padding-inline: var(--s-5); }
}
