/* =====================================================================
   beranda.css - khusus halaman depan (views/index.ejs). Token dari theme.css.
   Satu momen gerak: lapisan hero turun dan mengunci saat halaman dibuka.
   ===================================================================== */

/* Ventilasi: lubang memanjang seperti pelat depan server. Pola SVG dipakai sebagai mask, jadi warnanya ikut tema.
   Dipakai di latar mockup dan ajakan penutup. */
.ventilasi { position: relative; background: rgb(var(--c-surface2) / 0.55); isolation: isolate; }
.ventilasi::before, .beranda .sh-penutup::after {
  content: ''; position: absolute; pointer-events: none;
  --pola: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='12'%3E%3Crect x='3' y='3.5' width='24' height='5' rx='2.5'/%3E%3C/svg%3E");
  -webkit-mask: var(--pola) 0 0 / 30px 12px repeat; mask: var(--pola) 0 0 / 30px 12px repeat;
}
.ventilasi::before { inset: 0; z-index: -1; background: rgb(var(--c-line2) / 0.7); }

.beranda-kepala { max-width: 720px; margin-bottom: 40px; }
.beranda-kepala--lekat { margin-bottom: 0; }
@media (min-width: 900px) { .beranda-kepala--lekat { position: sticky; top: 104px; } }
.beranda-aksi { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.beranda-aksi .btn { justify-content: center; }
@media (max-width: 479px) { .beranda-aksi .btn { flex: 1 1 100%; } }

/* ---------- Hero ---------- */
.beranda-hero { padding: 48px 0 40px; border-bottom: 1px solid rgb(var(--c-line)); overflow: hidden; }
.beranda-hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px) {
  .beranda-hero { padding: 72px 0 64px; }
  .beranda-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
}
.beranda-judul { font-family: var(--sh-judul); font-size: clamp(40px, 5.6vw, 74px); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; color: rgb(var(--c-ink)); text-wrap: balance; }
.beranda-lead { margin-top: 22px; max-width: 34em; font-size: clamp(16.5px, 1.6vw, 18.5px); line-height: 1.6; color: rgb(var(--c-muted)); }
.beranda-langsung { margin-top: 26px; display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgb(var(--c-muted)); }
.beranda-langsung b { font-weight: 700; color: rgb(var(--c-ink)); font-variant-numeric: tabular-nums; }

/* Gambar lapisan + label */
.lapisan { position: relative; margin: 0 auto; width: 100%; max-width: 680px; }
.lapisan-gambar { display: block; width: 100%; height: auto; overflow: visible; }
.lapisan { --lap-garis: rgb(var(--c-ink2)); --lap-tipis: rgb(var(--c-line2)); }
[data-theme='dark'] .lapisan { --lap-garis: rgb(var(--c-muted)); --lap-tipis: rgb(var(--c-line2)); }
.lap-atas, .lap-kiri, .lap-kanan { stroke: var(--lap-garis); stroke-width: 1.25; stroke-linejoin: round; }
.lap-atas { fill: rgb(var(--c-surface)); }
.lap-kiri { fill: rgb(var(--c-surface2)); }
.lap-kanan { fill: rgb(var(--c-line)); }
[data-theme='dark'] .lap-kanan { fill: rgb(var(--c-bg)); }
.lap-garis { fill: none; stroke: var(--lap-garis); stroke-width: 1.15; }
.lap-garis-tipis { fill: none; stroke: var(--lap-tipis); stroke-width: 1; }
.lap-isi { fill: rgb(var(--c-bg)); }
.lap-ubin { fill: rgb(var(--c-surface)); }
.lap-titik { fill: var(--lap-tipis); }
.lap-konsol { fill: #0B0E13; stroke: var(--lap-garis); stroke-width: 1.15; }
.lap-konsol-baris { stroke: #8A94A6; stroke-width: 2.4; stroke-linecap: round; }
.lap-konsol-baris:first-of-type { stroke: rgb(var(--c-green)); }
.lap-teks { font-family: var(--sh-mono); font-stretch: 87.5%; font-size: 12px; fill: rgb(var(--c-ink)); }
.lap-tombol { fill: var(--lap-garis); }
.lap-ikon { stroke: rgb(var(--c-ink)); stroke-width: 1.6; }
.lap-led { fill: var(--lap-tipis); }
.lap-led--hidup, .lap-led--milik { fill: rgb(var(--c-green)); }
.lap-bantu { stroke: var(--lap-tipis); stroke-width: 1; stroke-dasharray: 3 4; }
.lap-tapak { fill: none; stroke: var(--lap-tipis); stroke-width: 1; stroke-dasharray: 4 5; }
.lap-tunjuk circle { fill: var(--lap-garis); }
.lap-tunjuk line { stroke: var(--lap-garis); stroke-width: 1; }
/* lapisan milik pelanggan: warna logo */
.lap--milik .lap-atas { fill: color-mix(in srgb, rgb(var(--c-accent)) 14%, rgb(var(--c-surface))); stroke: rgb(var(--c-accent)); }
.lap--milik .lap-kiri { fill: color-mix(in srgb, rgb(var(--c-accent)) 34%, rgb(var(--c-surface2))); stroke: rgb(var(--c-accent)); }
.lap--milik .lap-kanan { fill: rgb(var(--c-accent)); stroke: rgb(var(--c-accent)); }
.lap--milik .lap-garis { stroke: rgb(var(--c-accent)); }
.lap-tunjuk--milik circle { fill: rgb(var(--c-accent)); }
.lap-tunjuk--milik line { stroke: rgb(var(--c-accent)); }

.lapisan-label { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.lapisan-label li { position: absolute; left: var(--kiri); top: var(--atas); transform: translateY(-50%); width: calc(100% - var(--kiri)); padding-right: 4px; display: grid; gap: 2px; }
.lapisan-label b { font-size: 14.5px; font-weight: 700; line-height: 1.25; color: rgb(var(--c-ink)); text-wrap: balance; }
.lapisan-label span { font-size: 13px; line-height: 1.35; color: rgb(var(--c-muted)); }
.lapisan-label--milik b { color: rgb(var(--c-accent-text)); }
@media (max-width: 1099px) and (min-width: 1000px) { .lapisan-label span { display: none; } }
@media (max-width: 640px) {
  .lapisan-label b { font-size: 12.5px; }
  .lapisan-label span { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .lap { animation: lap-turun 700ms cubic-bezier(.2, .85, .25, 1) both; animation-delay: calc(var(--k) * 150ms + 120ms); }
  .lap-hubung, .lap-tunjuk { animation: lap-muncul 420ms ease both; animation-delay: calc(var(--k) * 150ms + 620ms); }
  .lapisan-label li { animation: lap-muncul 420ms ease both; animation-delay: 820ms; }
  .lapisan-label li:nth-child(1) { animation-delay: 1070ms; }
  .lapisan-label li:nth-child(2) { animation-delay: 920ms; }
  .lapisan-label li:nth-child(3) { animation-delay: 770ms; }
  .lapisan-label li:nth-child(4) { animation-delay: 620ms; }
  .lap-led--milik { animation: lap-kedip 2.6s ease-in-out 1.6s infinite; }
}
@keyframes lap-turun { from { transform: translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lap-muncul { from { opacity: 0; } }
@keyframes lap-kedip { 50% { opacity: .35; } }

/* ---------- Layanan: pilih kegunaan ----------
   Tinggi kartu TETAP: semua panel ditumpuk di satu sel grid (yang tidak aktif disembunyikan dengan visibility),
   jadi kartu setinggi panel terpanjang dan tidak naik turun saat tab diganti. Di layar lebar kolom tab dibuat
   setinggi kartu (tiap tab membagi tinggi sama rata), jadi tepi atas dan bawah keduanya selalu sejajar. */
.egg-pilih { display: grid; gap: 14px; }
.egg-pilih.is-tab { grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.egg-tab { display: none; }
.egg-pilih.is-tab .egg-tab { display: flex; flex-direction: column; gap: 8px; }
.egg-pilih.is-tab .egg-tab-btn { flex: 1 1 0; }
.egg-tab-btn { flex: none; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; column-gap: 12px; row-gap: 3px; min-height: 0; padding: 12px 16px; border: 1px solid rgb(var(--c-line)); border-radius: var(--sh-r-kartu); background: rgb(var(--c-surface)); color: rgb(var(--c-ink2)); text-align: left; cursor: pointer; transition: border-color 120ms ease, background-color 120ms ease; }
.egg-tab-btn svg { grid-row: 1; width: 20px; height: 20px; color: rgb(var(--c-muted)); }
.egg-tab-btn:hover { border-color: rgb(var(--c-line2)); }
.egg-tab-btn[aria-selected="true"] { border-color: rgb(var(--c-ink)); color: rgb(var(--c-ink)); box-shadow: inset 0 0 0 1px rgb(var(--c-ink)); background: rgb(var(--c-surface)); }
.egg-tab-btn[aria-selected="true"] svg { color: rgb(var(--c-ink)); }
.egg-tab-nama { grid-row: 1; font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.egg-tab-jumlah { grid-row: 1; font-size: 12.5px; color: rgb(var(--c-muted)); white-space: nowrap; }
.egg-tab-isi { grid-column: 2 / -1; grid-row: 2; font-size: 13.5px; line-height: 1.4; color: rgb(var(--c-muted)); text-wrap: pretty; }

.egg-panel-wadah { display: grid; gap: 18px; min-width: 0; }
.egg-pilih.is-tab .egg-panel-wadah { gap: 0; }
.egg-pilih.is-tab .egg-panel { grid-area: 1 / 1; }
.egg-panel { display: flex; flex-direction: column; min-width: 0; padding: 24px 26px 22px; border: 1px solid rgb(var(--c-line)); border-radius: var(--sh-r-unit); background: rgb(var(--c-surface)); box-shadow: var(--sh-kilap); }
.egg-panel[hidden] { display: none; }
.egg-pilih.is-tab .egg-panel[hidden] { display: flex; visibility: hidden; }
/* kepala kartu: ikon + nama + jumlah egg + satu kalimat (di mode tab, ikon & kalimat sudah ada di tab) */
.egg-panel-kepala { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.egg-panel-kepala svg { width: 22px; height: 22px; color: rgb(var(--c-ink)); }
.egg-panel-kepala h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: rgb(var(--c-ink)); }
.egg-panel-jumlah { font-size: 13px; color: rgb(var(--c-muted)); white-space: nowrap; }
.egg-panel-kepala p { grid-column: 1 / -1; margin-top: 6px; font-size: 15.5px; color: rgb(var(--c-muted)); }
.egg-pilih.is-tab .egg-panel-kepala { grid-template-columns: minmax(0, 1fr); }
.egg-pilih.is-tab .egg-panel-kepala svg, .egg-pilih.is-tab .egg-panel-jumlah, .egg-pilih.is-tab .egg-panel-kepala p { display: none; }
.egg-pilih.is-tab .egg-panel-kepala h3 { font-size: 24px; }
.egg-panel-kaki { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; border-top: 1px solid rgb(var(--c-line)); }
.egg-pilih:not(.is-tab) .egg-panel-kaki { display: none; }
.egg-pilih:not(.is-tab) .egg-panel { padding: 20px; }
.egg-pilih:not(.is-tab) .egg-daftar { margin-bottom: 0; }
.egg-panel-kaki span { font-size: 14px; color: rgb(var(--c-muted)); }
.egg-daftar { margin: 16px 0 20px; display: grid; border-top: 1px solid rgb(var(--c-line)); }
.egg { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid rgb(var(--c-line)); }
.egg:last-child { border-bottom: 0; padding-bottom: 2px; }
@media (min-width: 640px) { .egg { grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; } .egg > :not(h4) { grid-column: 2; } .egg h4 { grid-row: 1 / span 3; } }
.egg h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: rgb(var(--c-ink)); }
.egg p { max-width: 60ch; font-size: 15.5px; line-height: 1.6; color: rgb(var(--c-muted)); }
.egg-varian { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.egg-varian li { padding: 2px 9px; border: 1px solid rgb(var(--c-line)); border-radius: 6px; background: rgb(var(--c-bg)); font-size: 13px; color: rgb(var(--c-ink2)); }
.egg-link { justify-self: start; margin-top: 4px; font-weight: 500; color: rgb(var(--c-accent-text)); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Runtime: lembar spesifikasi ---------- */
.spek { display: grid; gap: 34px; min-width: 0; }
.spek-tabel { width: 100%; border-collapse: collapse; }
.spek-tabel caption { padding-bottom: 10px; text-align: left; font-size: 14px; font-weight: 500; color: rgb(var(--c-muted)); }
.spek-tabel tbody tr { border-top: 1px solid rgb(var(--c-line)); border-bottom: 0; }
.spek-tabel tbody tr:last-child { border-bottom: 1px solid rgb(var(--c-line)); }
.spek-tabel th, .spek-tabel td { padding: 14px 0; text-align: left; vertical-align: middle; font-variant-numeric: normal; }
.spek-tabel th { width: 150px; padding-right: 16px; font-size: 16px; font-weight: 700; color: rgb(var(--c-ink)); white-space: nowrap; }
.spek-tabel th img { display: inline-block; vertical-align: -5px; margin-right: 10px; }
.spek-tabel th .runtime-monogram { display: inline-grid; vertical-align: -5px; margin-right: 10px; }
.spek-tabel td { font-size: 15px; line-height: 1.5; color: rgb(var(--c-muted)); }
.spek-versi { padding-left: 16px !important; text-align: right !important; white-space: nowrap; }
.spek-versi code { font-size: 13px; color: rgb(var(--c-ink)); }
@media (max-width: 560px) {
  .spek-tabel tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; }
  .spek-tabel th, .spek-tabel td { padding: 0; }
  .spek-tabel th { width: auto; }
  .spek-tabel td:not(.spek-versi) { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; }
}

/* ---------- Cara kerja ---------- */
.langkah { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; position: relative; }
.langkah li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px; padding-bottom: 28px; }
.langkah li:last-child { padding-bottom: 0; }
.langkah li::before { content: ''; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 1px; background: rgb(var(--c-line2)); }
.langkah li:last-child::before { content: none; }
.langkah-pad { grid-row: 1 / span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgb(var(--c-line2)); background: rgb(var(--c-surface)); box-shadow: var(--sh-kilap); font-family: var(--sh-judul); font-size: 16px; font-weight: 700; color: rgb(var(--c-ink)); }
.langkah li.is-akhir .langkah-pad { border-color: rgb(var(--c-green) / .6); color: rgb(var(--c-green-text)); box-shadow: 0 0 0 4px rgb(var(--c-green) / .12); }
.langkah h3 { padding-top: 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; color: rgb(var(--c-ink)); }
.langkah p { margin-top: 4px; max-width: 34ch; font-size: 15px; line-height: 1.55; color: rgb(var(--c-muted)); }
@media (min-width: 900px) {
  .langkah { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .langkah li { display: block; padding-bottom: 0; }
  .langkah li::before { left: 52px; right: -20px; top: 20px; bottom: auto; width: auto; height: 1px; }
  .langkah h3 { padding-top: 18px; }
}

/* ---------- Tampilan: mockup dashboard + panel ---------- */
.layar { position: relative; padding: 28px 20px 0; border-radius: var(--sh-r-unit); border: 1px solid rgb(var(--c-line)); overflow: hidden; }
@media (min-width: 900px) { .layar { padding: 48px 56px 0; } }
.layar-bingkai { margin: 0; overflow: hidden; border: 1px solid rgb(var(--c-line2)); border-radius: 12px 12px 0 0; border-bottom: 0; background: rgb(var(--c-surface)); box-shadow: var(--sh-bayang); }
.layar-atas { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid rgb(var(--c-line)); background: rgb(var(--c-surface)); }
.layar-atas i { width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--c-line2)); }
.layar-atas span { margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: rgb(var(--c-surface2)); font-family: var(--sh-mono); font-stretch: 87.5%; font-size: 11.5px; color: rgb(var(--c-muted)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layar-gambar { display: block; width: 100%; height: auto; }
.layar-gambar--gelap { display: none; }
[data-theme='dark'] .layar-gambar--terang { display: none; }
[data-theme='dark'] .layar-gambar--gelap { display: block; }
.layar-bingkai--dashboard { position: relative; z-index: 1; }
.layar-bingkai--panel { display: none; }
@media (min-width: 900px) {
  .layar-bingkai--dashboard { width: 84%; }
  .layar-bingkai--panel { display: block; position: absolute; z-index: 2; right: 40px; bottom: -1px; width: 38%; }
  .layar-bingkai--panel .layar-gambar { aspect-ratio: 1200 / 760; object-fit: cover; object-position: top left; }
}
.layar-catatan { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px 28px; }
@media (min-width: 760px) { .layar-catatan { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.layar-catatan li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: rgb(var(--c-muted)); }
.layar-catatan svg { width: 20px; height: 20px; margin-top: 1px; color: rgb(var(--c-ink)); }
.layar-catatan b { font-weight: 700; color: rgb(var(--c-ink)); }

/* ---------- Fitur ---------- */
.fitur { display: grid; gap: 36px; }
@media (min-width: 900px) { .fitur { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.fitur-grup-judul { padding-bottom: 12px; border-bottom: 1px solid rgb(var(--c-line2)); font-size: 15px; font-weight: 500; letter-spacing: 0; color: rgb(var(--c-muted)); font-family: var(--sh-font); }
.fitur-grup ul { margin: 0; padding: 0; list-style: none; }
.fitur-grup li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid rgb(var(--c-line)); }
.fitur-grup li svg { width: 21px; height: 21px; margin-top: 1px; color: rgb(var(--c-ink)); }
.fitur-grup h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: rgb(var(--c-ink)); }
.fitur-grup p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: rgb(var(--c-muted)); }

/* ---------- MCP ---------- */
.mcp-app { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid rgb(var(--c-line)); border-radius: var(--sh-r-kartu); background: rgb(var(--c-surface)); overflow: hidden; box-shadow: var(--sh-kilap); }
.mcp-app li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 16px 18px; border-bottom: 1px solid rgb(var(--c-line)); }
.mcp-app li:nth-child(odd) { border-right: 1px solid rgb(var(--c-line)); }
.mcp-app li:nth-last-child(-n+2) { border-bottom: 0; }
.mcp-logo { grid-row: 1 / span 2; width: 26px; height: 26px; object-fit: contain; }
.mcp-logo--mono { display: block; background: rgb(var(--c-ink)); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.mcp-nama { font-size: 16px; font-weight: 700; color: rgb(var(--c-ink)); }
.mcp-tempat { font-size: 13.5px; color: rgb(var(--c-muted)); }
.mcp-catatan { margin-top: 14px; font-size: 14.5px; color: rgb(var(--c-muted)); }
@media (max-width: 420px) { .mcp-app li { padding: 14px 12px; gap: 2px 10px; } .mcp-nama { font-size: 15px; } }

/* ---------- Ajakan penutup: lubang ventilasi di sisi kanan ---------- */
.beranda .sh-penutup::after { top: 0; right: 0; bottom: 0; width: 30%; background: rgb(var(--c-line2) / 0.8); }
.beranda .sh-penutup > * { position: relative; z-index: 1; }
@media (max-width: 899px) { .beranda .sh-penutup::after { width: 100%; top: auto; height: 36px; } }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* =====================================================================
   GERAK halaman depan (selain lapisan hero yang turun saat dibuka)
   ===================================================================== */
/* Tab egg: bingkai sorotan meluncur di antara tab (dipasang skrip di services.ejs) */
.egg-pilih.is-tab .egg-tab { position: relative; }
.egg-tab-sorot { display: none; }
.egg-pilih.is-geser .egg-tab-sorot { display: block; position: absolute; left: 0; top: 0; z-index: 2; border: 1.5px solid rgb(var(--c-ink)); border-radius: var(--sh-r-kartu); pointer-events: none; }
.egg-pilih.is-geser .egg-tab-btn[aria-selected="true"] { box-shadow: none; border-color: rgb(var(--c-line)); }

@media (prefers-reduced-motion: no-preference) {
  .egg-pilih.is-geser .egg-tab-sorot { transition: translate 460ms var(--sh-ease-masuk), width 460ms var(--sh-ease-masuk), height 460ms var(--sh-ease-masuk); }
  /* panel baru masuk dari arah tab: maju dari kanan, mundur dari kiri; isinya menyusul satu per satu */
  .egg-pilih.is-tab .egg-panel:not([hidden]) { animation: egg-masuk 460ms var(--sh-ease-masuk) both; }
  .egg-pilih.is-tab[data-arah="mundur"] .egg-panel:not([hidden]) { animation-name: egg-masuk-mundur; }
  .egg-pilih.is-tab .egg-panel:not([hidden]) .egg { animation: egg-baris 520ms var(--sh-ease-masuk) both; }
  .egg-pilih.is-tab .egg-panel:not([hidden]) .egg:nth-child(2) { animation-delay: 60ms; }
  .egg-pilih.is-tab .egg-panel:not([hidden]) .egg:nth-child(3) { animation-delay: 120ms; }

  /* Lapisan hero: saat disorot tumpukan merenggang, labelnya ikut; label yang disorot menyalakan lapisannya */
  .lapisan { container-type: inline-size; }
  .lap, .lap-tunjuk, .lap-hubung, .lapisan-label li { transition: translate 620ms var(--sh-ease-masuk); }
  .lap-atas { transition: stroke 200ms ease, fill 200ms ease; }
  .lapisan-label li { pointer-events: auto; cursor: default; }
  @media (hover: hover) {
    .lapisan:hover .lap--panel, .lapisan:hover .lap-tunjuk--panel, .lapisan:hover .lap-hubung[style*="--k:1"] { translate: 0 -6px; }
    .lapisan:hover .lap--runtime, .lapisan:hover .lap-tunjuk--runtime, .lapisan:hover .lap-hubung[style*="--k:2"] { translate: 0 -12px; }
    .lapisan:hover .lap--milik, .lapisan:hover .lap-tunjuk--milik { translate: 0 -20px; }
    /* label digeser sejauh lapisannya: 1 satuan gambar = 100cqw / lebar viewBox (628) */
    .lapisan:hover .lapisan-label--panel { translate: 0 calc(-6 * 100cqw / 628); }
    .lapisan:hover .lapisan-label--runtime { translate: 0 calc(-12 * 100cqw / 628); }
    .lapisan:hover .lapisan-label--milik { translate: 0 calc(-20 * 100cqw / 628); }
    .lapisan:has(.lapisan-label--node:hover) .lap--node .lap-atas,
    .lapisan:has(.lapisan-label--panel:hover) .lap--panel .lap-atas,
    .lapisan:has(.lapisan-label--runtime:hover) .lap--runtime .lap-atas { stroke: rgb(var(--c-accent)); }
    .lapisan-label li:hover b { color: rgb(var(--c-accent-text)); }
  }
}

/* Gulir: garis "cara kerja" tergambar langkah demi langkah, panel console naik ke tempatnya (Chrome 115+) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .langkah { view-timeline: --langkah block; }
    .langkah li::before { transform-origin: top center; animation: langkah-garis-y linear both; animation-timeline: --langkah; }
    .langkah-pad { animation: langkah-pad linear both; animation-timeline: --langkah; }
    .langkah li:nth-child(1)::before { animation-range: cover 12% cover 26%; }
    .langkah li:nth-child(2)::before { animation-range: cover 24% cover 38%; }
    .langkah li:nth-child(3)::before { animation-range: cover 36% cover 50%; }
    .langkah li:nth-child(1) .langkah-pad { animation-range: cover 4% cover 14%; }
    .langkah li:nth-child(2) .langkah-pad { animation-range: cover 16% cover 26%; }
    .langkah li:nth-child(3) .langkah-pad { animation-range: cover 28% cover 38%; }
    .langkah li:nth-child(4) .langkah-pad { animation-range: cover 40% cover 50%; }
    @media (min-width: 900px) {
      .langkah li::before { transform-origin: left center; animation-name: langkah-garis-x; }
    }
    @media (min-width: 900px) {
      .layar-bingkai--panel { animation: layar-naik linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    }
  }
}
@keyframes egg-masuk { from { opacity: 0; translate: 18px 0; } }
@keyframes egg-masuk-mundur { from { opacity: 0; translate: -18px 0; } }
@keyframes egg-baris { from { opacity: 0; translate: 0 10px; } }
@keyframes langkah-garis-x { from { transform: scaleX(0); } }
@keyframes langkah-garis-y { from { transform: scaleY(0); } }
@keyframes langkah-pad { from { opacity: .35; scale: .86; } }
@keyframes layar-naik { from { translate: 0 110px; } }
