/* Beranda docs.resmi.id: seksi produk, kartu dokumen beranimasi di "Cara kerja", demo pencocokan
 * berkas di "Klaim yang bisa diperiksa", muncul-saat-gulir (20 Nov 2026). Dimuat setelah landing.css,
 * token --dl-* sama. Animasi hanya di elemen HTML (coretan tanda tangan produk pakai SMIL), dan
 * semuanya berhenti di prefers-reduced-motion (menampilkan keadaan akhir). */

@keyframes ba-apung { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ── Hero: adegan beranimasi (.bh-*) ─────────────────────────
 * Semua ukuran dalam em dari font-size berbasis lebar wadah (cqw), jadi adegan menskala utuh.
 * Siklus 12 s; persentase keyframe = tahap: TTD A 7–19%, TTD B 28–40% (SMIL di EJS),
 * status A 20%, status B 41%, meterai 47%, notifikasi 50%, terverifikasi 56%, QR asli 64%,
 * semua kembali ke awal di 97–100%. */
.bh { position: relative; min-width: 0; container-type: inline-size; }
.bh-in { position: relative; aspect-ratio: 760 / 640; font-size: 1.62cqw; line-height: 1.35; color: var(--dl-ink); }
.bh-in b { font-weight: 700; }
.bh-in small { display: block; color: var(--dl-muted); font-size: .82em; }
.bh-cincin { position: absolute; left: 18%; top: 6%; width: 64%; aspect-ratio: 1; border-radius: 50%; border: .14em dashed #bfd3f6; animation: bh-putar 60s linear infinite; }
.bh-cincin::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, #dbe7fd 0%, rgba(219,231,253,0) 70%); }
@keyframes bh-putar { to { rotate: 360deg; } }

.bh-app { position: absolute; left: 21%; top: 10%; width: 74%; background: #fff; border-radius: 1.2em; overflow: hidden; box-shadow: 0 3em 5em -2.4em rgba(30,58,138,.35), 0 0 0 1px rgba(15,23,42,.06); }
.bh-bar { display: flex; align-items: center; gap: .45em; padding: .8em 1em; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.bh-bar i { width: .75em; height: .75em; border-radius: 50%; background: #cbd5e1; }
.bh-bar i:nth-child(1) { background: #f87171; } .bh-bar i:nth-child(2) { background: #fbbf24; } .bh-bar i:nth-child(3) { background: #4ade80; }
.bh-bar span { display: inline-flex; align-items: center; gap: .4em; margin-left: .8em; padding: .3em .9em; background: #fff; border-radius: 999px; font-size: .86em; color: var(--dl-body); }
.bh-bar svg { width: 1em; height: 1em; color: #16a34a; }
.bh-badan { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); }
.bh-sisi { display: flex; flex-direction: column; align-items: center; gap: .9em; padding: 1.1em 0; background: #f8fafc; border-right: 1px solid #eef2f7; }
.bh-sisi b { width: 1.7em; height: 1.7em; border-radius: .5em; background: var(--dl-blue); margin-bottom: .4em; }
.bh-sisi i { width: 1.3em; height: 1.3em; border-radius: .4em; background: #e2e8f0; }
.bh-sisi i.aktif { background: #bfdbfe; }
.bh-kertas { display: flex; flex-direction: column; gap: .62em; padding: 1.5em 1.8em 1.4em; min-width: 0; }
.bh-kop { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; padding-bottom: .5em; margin-bottom: .2em; border-bottom: 2px solid var(--dl-blue); }
.bh-kop b { font-size: 1.35em; letter-spacing: -.01em; }
.bh-kop small { white-space: nowrap; }
.bh-baris { display: block; height: .62em; border-radius: .31em; background: #e8edf4; }
.bh-baris.w9 { width: 94%; } .bh-baris.w8 { width: 82%; } .bh-baris.w6 { width: 60%; }
.bh-ttd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9em; margin-top: .5em; }
.bh-kotak { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .2em; height: 5.6em; padding: .4em .4em .45em; border: 1.5px dashed #bfd3f6; border-radius: .6em; background: #f8fbff; }
.bh-kotak svg { width: 100%; height: 3.4em; }
.bh-kotak > span { font-size: .8em; color: var(--dl-muted); font-weight: 600; }
.bh-meterai { width: 74%; height: 3.6em; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: .4em; background: linear-gradient(135deg, #fef3c7, #fde68a 40%, #bfdbfe); box-shadow: inset 0 0 0 2px #2563eb, 0 .5em 1em -.5em rgba(37,99,235,.6); color: #1e3a8a; line-height: 1.05; animation: bh-cap 12s infinite; }
.bh-meterai small { color: #1e3a8a; font-size: .52em; font-weight: 800; letter-spacing: .05em; }
.bh-meterai em { font-style: normal; font-weight: 800; font-size: 1.1em; }
@keyframes bh-cap { 0%, 46% { opacity: 0; transform: scale(1.7) rotate(-10deg); } 50% { opacity: 1; transform: scale(.92) rotate(0); } 53%, 96% { opacity: 1; transform: scale(1); } 98%, 100% { opacity: 0; } }
.bh-sah { display: flex; align-items: center; gap: .7em; margin-top: .4em; padding: .7em .9em; border-radius: .7em; background: #ecfdf3; border: 1px solid #bbf7d0; animation: bh-sah 12s infinite; }
.bh-sah b { color: #14532d; }
.bh-sah > span { flex: 1; min-width: 0; }
.bh-sah-ik { width: 1.8em; height: 1.8em; flex: none; color: #16a34a; }
.bh-sah-qr { width: 3em; height: 3em; flex: none; border-radius: .2em; }
@keyframes bh-sah { 0%, 55% { opacity: .0; transform: translateY(.6em); } 59%, 96% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }

/* Kartu mengambang: translate utk melayang, transform utk tahap (tidak saling timpa). */
.bh-penanda, .bh-toast, .bh-hp, .bh-sert { position: absolute; background: #fff; border-radius: 1em; box-shadow: 0 1.8em 3.4em -1.6em rgba(15,23,42,.38), 0 0 0 1px rgba(15,23,42,.06); }
.bh-penanda { left: 0; top: 27%; width: 30%; padding: 1em 1.1em 1.1em; display: flex; flex-direction: column; gap: .75em; animation: ba-apung 7s ease-in-out infinite; }
.bh-judul { font-size: .92em; color: var(--dl-body); }
.bh-orang { display: flex; align-items: center; gap: .6em; min-width: 0; }
.bh-av { width: 2.3em; height: 2.3em; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .82em; font-weight: 800; color: #fff; background: #2563eb; }
.bh-av-b { background: #7c3aed; }
.bh-orang-nama { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-orang-nama b { font-size: .9em; }
.bh-status { display: inline-grid; flex: none; font-size: .74em; font-weight: 700; }
.bh-status > span { grid-area: 1 / 1; padding: .25em .6em; border-radius: 999px; text-align: center; }
.bh-tunggu { background: #fef3c7; color: #92400e; }
.bh-beres { background: #dcfce7; color: #166534; opacity: 0; }
.bh-beres-a { animation: bh-on-a 12s infinite; }
.bh-beres-b { animation: bh-on-b 12s infinite; }
@keyframes bh-on-a { 0%, 19% { opacity: 0; transform: scale(.7); } 21% { opacity: 1; transform: scale(1.12); } 23%, 96% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes bh-on-b { 0%, 40% { opacity: 0; transform: scale(.7); } 42% { opacity: 1; transform: scale(1.12); } 44%, 96% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
.bh-kemajuan { display: block; height: .45em; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.bh-kemajuan i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #22c55e); transform-origin: left; animation: bh-maju 12s infinite; }
@keyframes bh-maju { 0%, 19% { transform: scaleX(.04); } 22%, 40% { transform: scaleX(.5); } 43%, 96% { transform: scaleX(1); } 99%, 100% { transform: scaleX(.04); } }

.bh-toast { right: 0; top: 0; width: 40%; display: flex; align-items: center; gap: .7em; padding: .8em 1em; opacity: 0; animation: bh-toast 12s infinite; }
.bh-toast b { font-size: .9em; }
.bh-toast-ik { width: 2.3em; height: 2.3em; flex: none; border-radius: .7em; display: grid; place-items: center; background: var(--dl-tint, #eff6ff); color: var(--dl-blue); }
.bh-toast-ik svg { width: 1.3em; height: 1.3em; }
@keyframes bh-toast { 0%, 49% { opacity: 0; transform: translateY(-1.2em) scale(.96); } 52%, 92% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-.6em); } }

.bh-hp { left: 3%; bottom: 2%; width: 18%; aspect-ratio: 9 / 18.5; padding: .45em; border-radius: 1.7em; background: #0f172a; animation: ba-apung 8s ease-in-out -2s infinite; }
.bh-hp-layar { position: relative; height: 100%; border-radius: 1.35em; background: linear-gradient(180deg, #f8fbff, #fff); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9em; padding: 1.6em .7em .8em; overflow: hidden; }
.bh-hp-poni { position: absolute; top: .45em; left: 50%; width: 32%; height: .9em; border-radius: 999px; background: #0f172a; translate: -50% 0; }
.bh-hp-qr { position: relative; flex: none; width: 78%; aspect-ratio: 1; }
.bh-hp-qr svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bh-pindai { position: absolute; left: -6%; right: -6%; top: 0; height: .22em; border-radius: 999px; background: #2563eb; box-shadow: 0 0 .9em .2em rgba(37,99,235,.55); animation: bh-pindai 1.6s ease-in-out infinite alternate; }
@keyframes bh-pindai { from { top: 0; } to { top: 100%; } }
.bh-sudut { position: absolute; inset: -8%; border-radius: .5em; border: .22em solid #2563eb; clip-path: polygon(0 0, 28% 0, 28% 6%, 72% 6%, 72% 0, 100% 0, 100% 28%, 94% 28%, 94% 72%, 100% 72%, 100% 100%, 72% 100%, 72% 94%, 28% 94%, 28% 100%, 0 100%, 0 72%, 6% 72%, 6% 28%, 0 28%); }
.bh-hp-hasil { display: grid; width: 100%; text-align: center; }
.bh-hp-hasil > span { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: .15em; }
.bh-hp-tunggu { font-size: .8em; font-weight: 600; color: var(--dl-body); animation: bh-mati 12s infinite; }
.bh-hp-asli { opacity: 0; animation: bh-asli 12s infinite; }
.bh-hp-asli svg { width: 1.9em; height: 1.9em; color: #16a34a; }
.bh-hp-asli b { font-size: .82em; color: #14532d; }
.bh-hp-asli small { font-size: .68em; }
@keyframes bh-asli { 0%, 63% { opacity: 0; transform: scale(.8); } 66%, 96% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes bh-mati { 0%, 62% { opacity: 1; } 64%, 97% { opacity: 0; } 99%, 100% { opacity: 1; } }

.bh-sert { right: 0; bottom: 3%; width: 38%; padding: .5em; rotate: 4deg; animation: ba-apung 9s ease-in-out -4s infinite; }
.bh-sert img { display: block; width: 100%; height: auto; border-radius: .5em; }
.bh-sert-chip { position: absolute; left: -10%; bottom: -10%; display: flex; align-items: center; gap: .6em; padding: .6em .9em; background: #fff; border-radius: .9em; box-shadow: 0 1.2em 2.4em -1.2em rgba(15,23,42,.4), 0 0 0 1px rgba(15,23,42,.06); rotate: -4deg; white-space: nowrap; }
.bh-sert-chip > svg { width: 2em; height: 2em; padding: .35em; border-radius: .6em; background: #dcfce7; color: #16a34a; flex: none; }
.bh-sert-chip b { font-size: .88em; }

@media (max-width: 979px) { .bh { max-width: 640px; margin: 0 auto; width: 100%; } }
@media (max-width: 560px) { .bh-in { font-size: 1.9cqw; } }

/* ── Produk ──────────────────────────────────────────────── */
.ba-produk-sek { padding-top: 20px; }
.ba-produk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ba-produk-kartu { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dl-line); border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; min-width: 0; }
.ba-produk-kartu:hover { transform: translateY(-4px); border-color: #bcd3f8; box-shadow: 0 24px 44px -28px rgba(37,99,235,.5); }
.ba-produk-kartu:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.ba-produk-vis { position: relative; display: grid; place-items: center; height: 210px; overflow: hidden; background: radial-gradient(circle at 70% 20%, #dfeafd, transparent 60%), linear-gradient(180deg, #f3f7ff, #eaf1fe); }
.ba-produk-isi { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.ba-produk-isi h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.015em; color: var(--dl-ink); }
.ba-produk-isi p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--dl-body); flex: 1; }
.ba-produk-cta { margin-top: 6px; font-size: 14.5px; font-weight: 700; color: var(--dl-blue); }
.ba-produk-kartu:hover .ba-produk-cta { color: var(--dl-blue-dark); }

.ba-kertas { position: relative; width: 62%; aspect-ratio: 4 / 3.3; background: #fff; border-radius: 10px; padding: 9% 9% 0; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 22px 40px -22px rgba(15,23,42,.45), 0 0 0 1px var(--dl-line); }
.ba-kertas::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 10px 10px 0 0; background: var(--dl-blue); }
.ba-garis { display: block; height: 6px; border-radius: 3px; background: #e2e8f0; }
.ba-garis.w9 { width: 92%; } .ba-garis.w8 { width: 80%; } .ba-garis.w7 { width: 68%; } .ba-garis.w6 { width: 58%; }
.ba-coret { width: 62%; height: auto; margin-top: 6px; }
.ba-ttd-nama { font-size: 10px; font-weight: 700; color: var(--dl-ink); border-top: 1px solid #cbd5e1; padding-top: 3px; width: 62%; }
.ba-chip-hijau { position: absolute; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #14532d; background: #dcfce7; border: 1px solid #bbf7d0; padding: 4px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(15,23,42,.4); }
.ba-chip-hijau svg { width: 12px; height: 12px; color: var(--dl-success); }
.ba-vis-ttd .ba-chip-hijau { right: -18%; bottom: 12%; animation: ba-chip 6s infinite; }
@keyframes ba-chip { 0%, 44% { opacity: 0; transform: translateY(6px); } 50%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.ba-meterai { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 6px; background: linear-gradient(135deg, #fef3c7, #fde68a 40%, #bfdbfe); box-shadow: inset 0 0 0 2px #2563eb, 0 6px 14px -6px rgba(37,99,235,.6); color: #1e3a8a; line-height: 1.1; }
.ba-meterai em { font-style: normal; font-weight: 800; font-size: 15px; }
.ba-meterai small { font-size: 7.5px; font-weight: 700; letter-spacing: .04em; }
.ba-meterai .ba-rp { font-size: 8.5px; color: #1d4ed8; }
.ba-vis-meterai .ba-meterai { right: 9%; bottom: 14%; width: 42%; aspect-ratio: 131 / 67; animation: ba-cap 6s infinite; }
@keyframes ba-cap { 0%, 30% { opacity: 0; transform: scale(1.7) rotate(-8deg); } 38% { opacity: 1; transform: scale(.94) rotate(0); } 42%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.ba-chip-meterai { left: -14%; bottom: 8%; animation: ba-chip 6s infinite; animation-delay: -.6s; }

.ba-vis-sert img { width: 74%; height: auto; border-radius: 8px; box-shadow: 0 22px 40px -22px rgba(15,23,42,.5), 0 0 0 1px var(--dl-line); transform: rotate(-3deg); }
.ba-sert-qr { position: absolute; right: 19%; bottom: 23%; width: 34px; height: 34px; padding: 3px; background: #fff; border-radius: 4px; box-shadow: 0 0 0 1px #e2e8f0; transform: rotate(-3deg); }
.ba-sert-qr svg { display: block; width: 100%; height: 100%; }
.ba-sert-qr::after { content: ""; position: absolute; inset: -6px; border-radius: 8px; border: 2px solid var(--dl-success); opacity: 0; animation: ba-denyut 3s ease-out infinite; }
@keyframes ba-denyut { 0% { opacity: 0; transform: scale(.85); } 15% { opacity: 1; } 60%, 100% { opacity: 0; transform: scale(1.4); } }
.ba-chip-sert { left: 10%; top: 12%; }

/* ── Cara kerja: daftar langkah + kartu dokumen (12 dtk, 4 keadaan) ─ */
.ba-alur { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.ba-alur .alur { max-width: none; margin: 0; }
@media (min-width: 1001px) { .ba-alur .alur-item { grid-template-columns: 44px 1fr; } .ba-alur .alur-ic { display: none; } }
.ba-dok { position: sticky; top: 96px; margin: 0; background: #fff; border: 1px solid #dbe5f3; border-radius: 18px; box-shadow: 0 30px 60px -36px rgba(15,23,42,.45); overflow: hidden; }
.ba-dok-kepala { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--dl-line); background: #f8fbff; }
.ba-dok-kepala strong { font-size: 13px; color: var(--dl-ink); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-dok-ikon { width: 30px; height: 30px; border-radius: 9px; background: var(--dl-tint); color: var(--dl-blue); display: grid; place-items: center; flex: none; }
.ba-dok-ikon svg { width: 17px; height: 17px; }
.ba-status, .ba-dok-ket, .ba-ttd-kotak, .ba-tukar { display: grid; }
.ba-status > *, .ba-dok-ket > *, .ba-ttd-kotak > *, .ba-tukar > * { grid-area: 1 / 1; }
.ba-st { justify-self: end; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ba-st1 { background: #f1f5f9; color: #475569; }
.ba-st2 { background: #fef3c7; color: #92400e; }
.ba-st3 { background: #dbeafe; color: #1e40af; }
.ba-st4 { background: #dcfce7; color: #14532d; }
.ba-dok-kertas { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; }
.ba-dok-judul { font-size: 14px; font-weight: 800; color: var(--dl-ink); margin-bottom: 4px; }
.ba-ttd-baris { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 10px; margin-top: 14px; }
.ba-ttd-kotak { align-items: center; justify-items: center; }
.ba-kotak-kosong { align-self: stretch; justify-self: stretch; display: grid; place-items: center; border: 1.5px dashed #93c5fd; border-radius: 8px; background: #f5f9ff; color: var(--dl-blue-ink); font-size: 10.5px; font-weight: 700; }
.ba-ttd-coret { width: 100%; height: auto; align-self: center; }
.ba-ttd-kotak { grid-template-rows: 64px auto; }
.ba-ttd-kotak > .ba-ttd-label { grid-area: 2 / 1; font-size: 10px; font-weight: 600; color: var(--dl-muted); border-top: 1px solid #cbd5e1; width: 100%; text-align: center; padding-top: 3px; }
.ba-meterai-kotak { min-height: 64px; }
.ba-meterai-kecil { position: relative; align-self: stretch; justify-self: stretch; }
.ba-bawah { display: grid; margin-top: 14px; min-height: 68px; }
.ba-bawah > * { grid-area: 1 / 1; align-self: center; }
.ba-kirim { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; font-size: 12px; font-weight: 600; color: #92400e; }
.ba-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--dl-blue); flex: none; }
.ba-avatar.b { background: #7c3aed; margin-left: -14px; box-shadow: 0 0 0 2px #fffbeb; }
.ba-terbit { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.ba-terbit-qr { width: 46px; height: 46px; padding: 4px; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px #e2e8f0; flex: none; }
.ba-terbit-qr svg { display: block; width: 100%; height: 100%; }
.ba-terbit-teks { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ba-terbit-teks b { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #14532d; }
.ba-terbit-teks b svg { width: 15px; height: 15px; color: var(--dl-success); }
.ba-terbit-teks code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #475569; }
.ba-dok-ket { padding: 12px 16px; border-top: 1px solid var(--dl-line); font-size: 12.5px; font-weight: 600; color: var(--dl-body); text-align: center; background: #f8fbff; }

.ba-k1 { animation: ba-f1 12s infinite; }
.ba-k2 { animation: ba-f2 12s infinite; }
.ba-k3 { animation: ba-f3 12s infinite; }
.ba-k4 { animation: ba-f4 12s infinite; }
.ba-kotak-kosong.ba-k1 { animation-name: ba-sebelum; }
.ba-ttd-coret.ba-k3, .ba-meterai-kecil.ba-k3 { animation-name: ba-sesudah; }
@keyframes ba-f1 { 0%, 23% { opacity: 1; } 25%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ba-f2 { 0%, 23% { opacity: 0; } 25%, 48% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ba-f3 { 0%, 48% { opacity: 0; } 50%, 73% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes ba-f4 { 0%, 73% { opacity: 0; } 75%, 98% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ba-sebelum { 0%, 48% { opacity: 1; } 50%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ba-sesudah { 0%, 48% { opacity: 0; transform: scale(.9); } 52%, 98% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Nomor langkah yg sedang berlangsung disorot, selaras dgn kartu. */
.ba-alur .alur-item:nth-child(1) .alur-no { animation: ba-h1 12s infinite; }
.ba-alur .alur-item:nth-child(2) .alur-no { animation: ba-h2 12s infinite; }
.ba-alur .alur-item:nth-child(3) .alur-no { animation: ba-h3 12s infinite; }
.ba-alur .alur-item:nth-child(4) .alur-no { animation: ba-h4 12s infinite; }
@keyframes ba-h1 { 0%, 23% { box-shadow: 0 0 0 7px rgba(37,99,235,.22); } 25%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }
@keyframes ba-h2 { 0%, 23% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } 25%, 48% { box-shadow: 0 0 0 7px rgba(37,99,235,.22); } 50%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }
@keyframes ba-h3 { 0%, 48% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } 50%, 73% { box-shadow: 0 0 0 7px rgba(37,99,235,.22); } 75%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }
@keyframes ba-h4 { 0%, 73% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } 75%, 98% { box-shadow: 0 0 0 7px rgba(37,99,235,.22); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }

/* ── Klaim yg bisa diperiksa: daftar + demo pencocokan (10 dtk) ─ */
.ba-percaya { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; max-width: 1040px; margin: 0 auto; }
.ba-percaya .percaya-grid { grid-template-columns: minmax(0, 1fr); max-width: none; margin: 0; }
.ba-demo { margin: 0; background: #fff; border: 1px solid #dbe5f3; border-radius: 18px; padding: 22px; box-shadow: 0 30px 60px -36px rgba(15,23,42,.45); min-width: 0; }
.ba-demo-kepala { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ba-demo-kepala strong { font-size: 15px; color: var(--dl-ink); }
.ba-tab-hijau, .ba-tab-merah { justify-self: end; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ba-tab-hijau { background: #dcfce7; color: #14532d; }
.ba-tab-merah { background: #fee2e2; color: #b91c1c; }
.ba-demo-berkas { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; }
.ba-demo-pdf { width: 38px; height: 46px; border-radius: 6px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; flex: none; }
.ba-demo-nama { font-size: 13.5px; font-weight: 600; color: var(--dl-ink); min-width: 0; overflow-wrap: anywhere; }
.ba-demo-hash { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; }
.ba-demo-hash > span { font-weight: 700; color: #64748b; }
.ba-demo-hash code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--dl-ink); }
.ba-merah { color: #b91c1c; }
.ba-demo-hasil { margin-top: 12px; }
.ba-demo-hasil span { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 700; padding: 12px 14px; border-radius: 12px; }
.ba-demo-hasil svg { width: 17px; height: 17px; flex: none; }
.ba-hasil-hijau { background: #dcfce7; color: #14532d; }
.ba-hasil-merah { background: #fee2e2; color: #b91c1c; }
.ba-demo figcaption { margin-top: 12px; font-size: 11.5px; color: var(--dl-muted); text-align: center; }
.ba-fa { animation: ba-a 10s infinite; }
.ba-fb { animation: ba-b 10s infinite; }
@keyframes ba-a { 0%, 44% { opacity: 1; } 48%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ba-b { 0%, 46% { opacity: 0; } 50%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* ── Muncul saat digulir (kelas dipasang JS hanya utk elemen di bawah layar pertama) ─ */
.ba-muncul { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--tunda, 0ms); }
.ba-muncul.tampil { opacity: 1; transform: none; }
.ba-produk-kartu.ba-muncul.tampil:hover { transform: translateY(-4px); transition-delay: 0ms; }
.ba-dok.ba-muncul.tampil { transform: none; }

@media (max-width: 1000px) {
  .ba-produk { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .ba-alur, .ba-percaya { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ba-dok { position: relative; top: 0; max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  .ba-produk-vis { height: 190px; }
  .ba-dok-kertas { padding: 18px 16px 16px; }
  .ba-ttd-baris { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .bh-in *, .ba-produk *, .ba-dok *, .ba-alur .alur-no, .ba-demo * { animation: none !important; }
  .ba-k1, .ba-k2, .ba-k3, .ba-fb { opacity: 0; }
  .ba-k4, .ba-ttd-coret.ba-k3, .ba-meterai-kecil.ba-k3, .ba-fa { opacity: 1; }
  .ba-kotak-kosong.ba-k1 { opacity: 0; }
  .ba-chip-hijau, .ba-vis-meterai .ba-meterai { opacity: 1; transform: none; }
  .bh-beres, .bh-meterai, .bh-sah, .bh-hp-asli { opacity: 1; transform: none; }
  .bh-hp-tunggu, .bh-toast { opacity: 0; }
  .bh-kemajuan i { transform: none; }
}
