/* Beranda, login, dan setup — gaya SB Admin (biru #4e73df, font Nunito), sama dengan dashboard. */
:root {
  --primary: #4e73df; --primary-dark: #224abe; --btn: #2b5acb;
  --success: #1cc88a; --info: #36b9cc; --warning: #f6c23e; --danger: #e74a3b;
  --gray: #858796; --text: #5a5c69; --judul: #3a3b45; --bg: #f8f9fc; --border: #e3e6f0;
  --input-bg: #eaecf4; --input-border: #d1d3e2;
  --bayang: 0 .15rem 1.75rem 0 rgba(58,59,69,.12);
  --kaki-latar: #12204a; --kaki-teks: #c9d3f2; --kaki-judul: #7fa2ff; --kaki-redup: #8d9bc7;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, p { margin: 0; }
html[lang="ja"] body { font-family: "Nunito", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; }
a { color: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wadah { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------------- Navigasi atas ---------------- */
.navatas { background: linear-gradient(90deg, var(--primary-dark), var(--primary)); color: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.navatas .wadah { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.merek { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.merek-logo { display: block; width: 160px; height: auto; }
.merek-teks { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.35); }
.merek strong { display: block; font-weight: 800; font-size: 13px; letter-spacing: .02em; line-height: 1.2; }
.merek small { display: block; font-size: 12px; opacity: .85; font-weight: 600; }
.tombol { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: .35rem; padding: .6rem 1.1rem; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.tombol-hijau { background: var(--success); color: #fff; }
.tombol-hijau:hover { background: #17a673; }
.tombol-biru { background: var(--btn); color: #fff; }
.tombol-biru:hover { background: var(--primary-dark); }
.tombol-garis { background: #fff; color: var(--text); border: 1px solid var(--input-border); }
.tombol-garis:hover { border-color: var(--primary); color: var(--primary); }

.panel { background: #fff; border: 1px solid var(--border); border-radius: .35rem; box-shadow: var(--bayang); overflow: hidden; }
.panel-kepala { background: var(--bg); border-bottom: 1px solid var(--border); padding: 14px 20px; font-weight: 800; color: var(--primary); }
.panel-isi { padding: 6px 20px 14px; }

/* ---------------- Beranda (overview platform) ---------------- */
/* Susunan: judul + video contoh (biru) -> apa itu -> fungsi utama -> tur fitur -> keterangan akses -> kaki (biru gelap) */
.hal-beranda .navatas { box-shadow: none; }
.tautan-masuk { color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; padding: .45rem .2rem; }
.tautan-masuk:hover { text-decoration: underline; text-underline-offset: 4px; }
.sambut { background: linear-gradient(90deg, var(--primary-dark), var(--primary)); color: #fff; padding: 56px 0 72px; overflow: hidden; }
.sambut .wadah { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.label-atas { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.sambut h1 { margin-top: 14px; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.sambut .lead { margin-top: 18px; font-size: 16.5px; max-width: 46ch; color: rgba(255,255,255,.9); }
.tombol-putih { margin-top: 30px; background: #fff; color: var(--primary-dark); padding: .75rem 1.5rem; font-size: 15px; }
.tombol-putih:hover { background: #eef2fd; }
.sambut-gambar { margin: 0; min-width: 0; }
.sambut-gambar video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: #fff; border-radius: 14px; box-shadow: 0 1.5rem 3rem rgba(10,25,80,.35); }
.sambut-gambar figcaption { margin-top: 12px; font-size: 12.5px; color: rgba(255,255,255,.7); text-align: right; }

.ringkasan, .fungsi { padding: 56px 0 0; }
.ringkasan h2, .fungsi h2 { font-size: 15px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.ringkasan p { margin-top: 12px; font-size: 18px; line-height: 1.65; color: var(--judul); max-width: 70ch; }
.grid-fungsi { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kartu-fungsi { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 22px 20px; }
.ikon-fungsi { width: 42px; height: 42px; border-radius: 10px; background: #eef2fd; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.kartu-fungsi h3 { margin-top: 16px; font-size: 16.5px; font-weight: 800; color: var(--judul); }
.kartu-fungsi p { margin-top: 6px; font-size: 14px; color: var(--text); }
.akses { padding: 40px 0 56px; }
.akses .wadah { display: flex; align-items: center; gap: 16px; }
.akses .wadah > i, .akses .wadah > svg { flex: none; font-size: 22px; color: var(--primary); }
.akses p { background: none; font-size: 15px; color: var(--text); }
.akses strong { color: var(--judul); }

/* ---------------- Tur fitur (video bernarasi) ---------------- */
.tur { padding: 56px 0 8px; }
.tur .wadah { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.tur h2 { font-size: 15px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); text-align: center; }
.tur-video { display: block; width: 100%; max-width: 960px; height: auto; aspect-ratio: 16 / 10; background: #0f1b3d; border-radius: 12px; box-shadow: var(--bayang); }

/* ---------------- Pemilih bahasa ---------------- */
.pilih-bahasa { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; font-weight: 700; }
.pilih-bahasa > i, .pilih-bahasa > svg { opacity: .75; }
.pilih-bahasa a { text-decoration: none; color: inherit; opacity: .78; padding: 2px 0; border-bottom: 2px solid transparent; }
.pilih-bahasa a:hover { opacity: 1; }
.pilih-bahasa a[aria-current] { opacity: 1; border-bottom-color: currentColor; }
.navatas-bahasa { color: #fff; }
.login-bahasa { justify-content: flex-end; color: var(--gray); margin: -22px -8px 18px 0; }
.login-bahasa a[aria-current] { color: var(--primary); }

/* ---------------- Kaki halaman (gaya halaman produk: biru gelap) ---------------- */
.kaki { background: var(--kaki-latar); color: var(--kaki-teks); font-size: 14px; }
.kaki a { color: #fff; }
.kaki-atas { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .8fr)); gap: 32px; padding-top: 52px; padding-bottom: 40px; }
.kaki-merek { display: flex; flex-direction: column; gap: 6px; }
.kaki-merek img { display: block; width: 300px; max-width: 100%; height: auto; }
.kaki-ipb { font-weight: 800; color: #fff; letter-spacing: .04em; margin-top: 6px; }
.kaki-kolom { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kaki-kolom h2 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--kaki-judul); margin-bottom: 2px; }
.kaki-kolom > a { text-decoration: none; font-weight: 700; }
.kaki-kolom > a:hover, .kaki-baris:hover span { text-decoration: underline; text-underline-offset: 3px; }
.kaki-baris { display: flex; align-items: flex-start; gap: 10px; text-decoration: none; line-height: 1.5; }
.kaki-baris > i, .kaki-baris > svg { flex: none; width: 16px; margin-top: 3px; color: var(--kaki-judul); }
.kaki-baris span { overflow-wrap: anywhere; }
.kaki-merek .kaki-baris { margin-top: 14px; max-width: 42ch; color: var(--kaki-teks); }
.kaki-bahasa { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; color: #fff; }
.kaki-bahasa > i, .kaki-bahasa > svg { display: none; }
.kaki-bawah { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 22px;
  border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: var(--kaki-redup); }

/* ---------------- Login ---------------- */
.hal-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(180deg, var(--primary) 10%, var(--primary-dark) 100%); }
.login-kotak { width: 100%; max-width: 880px; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1rem 3rem rgba(0,0,0,.25); }
.login-sisi { background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 28px; }
.login-logo { display: block; width: 100%; max-width: 300px; height: auto; }
.login-sub { color: var(--judul); font-weight: 700; margin-top: 22px; max-width: 30ch; }
.login-sub span { display: block; font-weight: 600; color: var(--gray); font-size: 13.5px; margin-top: 2px; }
.login-form { padding: 46px 40px; }
.login-form h1 { font-size: 26px; color: var(--judul); font-weight: 400; text-align: center; margin-bottom: 22px; }
.isian { display: block; width: 100%; border: 1px solid var(--input-border); background: #f1f4ff; border-radius: 2rem; padding: .85rem 1.2rem; font: inherit; margin-bottom: 14px; color: var(--judul); }
.isian:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 .2rem rgba(78,115,223,.25); }
.tombol-login { width: 100%; border: 0; border-radius: 2rem; padding: .85rem; background: var(--primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.tombol-login:hover { background: var(--primary-dark); }
.login-form hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0 14px; }
.tautan-kecil { font-size: 13px; text-decoration: none; display: block; text-align: center; }
.pesan { border-radius: .35rem; padding: .7rem 1rem; font-size: 14px; margin-bottom: 14px; }
.pesan-galat { background: #fdf0ee; color: #a52a1f; border-left: 4px solid var(--danger); }
.pesan-info { background: #eef2fd; color: #2c4aa0; border-left: 4px solid var(--primary); }
.pesan-ok { background: #e8f9f2; color: #137a55; border-left: 4px solid var(--success); }

/* ---------------- Setup ---------------- */
.hal-setup { padding: 32px 16px 60px; }
.setup { max-width: 780px; margin: 0 auto; }
.setup > h1 { font-size: 26px; font-weight: 800; color: var(--judul); }
.setup > p { margin: 6px 0 22px; color: var(--gray); }
.setup .panel { margin-bottom: 18px; }
.cek { list-style: none; padding: 0; margin: 8px 0; }
.cek li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--border); font-size: 14px; }
.cek li:last-child { border-bottom: 0; }
.cek li::before { position: absolute; left: 0; top: 7px; font-family: "Font Awesome 5 Free"; font-weight: 900; }
.cek li.ok::before { content: "\f058"; color: var(--success); }
.cek li.salah::before { content: "\f057"; color: var(--danger); }
.cek li.awas::before { content: "\f071"; color: #c9930d; }
.cek small { display: block; color: var(--gray); }
.form-setup { display: grid; gap: 12px; margin-top: 8px; }
.form-setup label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; color: var(--judul); }
.form-setup input, .form-setup select { border: 1px solid var(--input-border); background: var(--input-bg); border-radius: .35rem; padding: .55rem .75rem; font: inherit; font-weight: 400; }
.form-setup .centang { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; }
.form-setup .centang input { margin-top: 5px; }
code { background: var(--input-bg); padding: 1px 6px; border-radius: 4px; font-size: 13px; word-break: break-all; }

@media (max-width: 960px) {
  .sambut .wadah { grid-template-columns: 1fr; gap: 28px; }
  .kaki-atas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kaki-merek { grid-column: 1 / -1; }
  .grid-fungsi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .sambut { padding: 40px 0 52px; }
  .grid-fungsi { grid-template-columns: 1fr; }
  .ringkasan p { font-size: 16.5px; }
  .merek small { display: none; }
  .navatas-bahasa { order: 3; width: 100%; justify-content: flex-start; padding-bottom: 10px; }
  .kaki-atas { grid-template-columns: 1fr; gap: 28px; }
  .login-kotak { grid-template-columns: 1fr; }
  .login-sisi { padding: 26px; }
  .login-logo { max-width: 220px; }
  .login-sisi { border-right: 0; border-bottom: 1px solid var(--border); }
  .merek-logo { width: 130px; }
  .login-form { padding: 30px 22px; }
}

.catatan-akun { font-size: 13px; color: var(--gray); margin-top: 16px; text-align: center; }
