/* ==========================================================================
   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 #FFCC00 hanya untuk CTA utama & latar window chat
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Warm monochrome */
  --c-bg:        #141311;
  --c-surface:   #1a1916;
  --c-surface-2: #201e1b;
  --c-raised:    #25231f;   /* abu lebih muda: latar panggung (chat hero, slider modul) */
  --c-line:      #2b2925;
  --c-line-2:    #3b3833;

  --c-text:   #ffffff;
  --c-text-2: #a39d92;
  --c-text-3: #6f6a62;

  /* Primary (dipakai hemat) */
  --c-primary:       #ffcc00;
  --c-primary-hover: #ffd633;
  --c-primary-ink:   #1a1400;
  --c-primary-top:   #ffd83a;   /* 3D: sisi atas tombol */
  --c-primary-btm:   #f2bf00;   /* 3D: sisi bawah tombol */
  --c-primary-edge:  #b88c00;   /* 3D: garis tepi */
  --c-primary-warm:  #ffb200;   /* ujung gradasi ke oranye (latar window chat) */

  /* Typography */
  --f-head: "DM Sans", system-ui, sans-serif;
  --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) */
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='1' cy='1' r='1' fill='%232b2925'/%3E%3C/svg%3E");
  --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='%23141311' stroke='%23524e47'/%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='%232b2925' 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 {
  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) var(--dots);
  -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; }

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)); }

.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-head);
  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 rgba(140, 95, 0, 0.22),
    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 rgba(140, 95, 0, 0.22),
    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(140, 95, 0, 0.3),
    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, #2a2824 0%, #1f1d1a 55%, #181714 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);
}
.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 {
  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 rgba(140, 95, 0, 0.22),
    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-head); 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-head);
  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-head); 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-head);
  font-size: var(--fs-lg);
  border-bottom: 1px solid var(--c-line);
}
.mobile-menu .btn { margin-top: var(--s-5); }

/* --------------------------------------------------------------------------
   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-head);
  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 {
  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-head);
  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); }

/* --------------------------------------------------------------------------
   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='%23ffc400' stroke='%23a07a00'/%3E%3C/svg%3E");
}
.section--yellow > .container {
  background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary) 40%, #ffbb1f 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));
}
@media (max-width: 720px) {
  .section--yellow .cell + .cell { border-left: 0; border-top: 1px solid var(--c-line); }
}

/* --------------------------------------------------------------------------
   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 */
.cell--flush:has(> .module-swiper) > .progress { margin: var(--s-5) 0 calc(-1 * var(--s-5) - 1px); }
.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: 1;
  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 { font-size: var(--fs-md); margin-bottom: 2px; }
.module p { font-size: var(--fs-sm); color: var(--c-text-3); }

/* --------------------------------------------------------------------------
   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-head);
  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-head); 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-head);
  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-head); 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-head); 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-head);
  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: #ffc000;
  --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='%23ffc400' stroke='%23a07a00'/%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='%23d9a800' 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; }
}

/* --------------------------------------------------------------------------
   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 { grid-template-columns: 1fr; }
  .block--12 > .level.span-4 { grid-column: 1 / -1; }
  .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; }
  .cell--flush:has(> .module-swiper) > .progress { margin: var(--s-4) 0 calc(-1 * var(--s-4) - 1px); }

  /* 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); }
}
