/* Landing /e-meterai-api docs.resmi.id (20 Nov 2026).
 * Dimuat SETELAH sertifikat.css: memakai kerangka .sd-* (hero, angka, kartu, alur, FAQ, CTA)
 * yg sudah seragam dgn beranda; di sini hanya bagian khusus API (kode, PDF bermeterai, harga). */

.em .em-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.em-mitra { display: inline-flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--dl-body); }
.em-mitra i { width: 1px; height: 20px; background: var(--dl-line); }
.em-mitra img { height: 26px; width: auto; }

/* ── Visual hero ─────────────────────────────────────────── */
.em-visual { position: relative; min-width: 0; padding: 10px 0 30px; }
.em-kode { position: relative; z-index: 1; width: 88%; background: #0f172a; border-radius: 14px; box-shadow: 0 40px 70px -30px rgba(15,23,42,.6), 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; color: #e2e8f0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.7; }
.em-kode-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1e293b; font-family: Inter, sans-serif; font-size: 12px; color: #94a3b8; }
.em-kode-bar span { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.em-kode-bar span:nth-child(1) { background: #f87171; } .em-kode-bar span:nth-child(2) { background: #fbbf24; } .em-kode-bar span:nth-child(3) { background: #4ade80; }
.em-kode-bar b { margin-left: 8px; font-weight: 600; }
.em-kode pre, .em-tab pre { margin: 0; padding: 16px 18px; overflow-x: auto; white-space: pre; font: inherit; }
.em-json { padding: 12px 18px 16px; border-top: 1px dashed #334155; }
.k-c { color: #64748b; } .k-k { color: #93c5fd; } .k-s { color: #86efac; } .k-p { color: #fca5a5; } .k-n { color: #fcd34d; }
.em-status { display: inline-grid; vertical-align: top; }
.em-status > * { grid-area: 1 / 1; }
.em-s1 { color: #fcd34d; animation: em-s1 9s infinite; }
.em-s2 { color: #93c5fd; animation: em-s2 9s infinite; }
.em-s3 { color: #4ade80; font-weight: 700; animation: em-s3 9s infinite; }
.em-n1 { color: #94a3b8; animation: em-n1 9s infinite; }
.em-n3 { animation: em-s3 9s infinite; }
@keyframes em-s1 { 0%, 22% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes em-s2 { 0%, 22% { opacity: 0; } 25%, 45% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes em-s3 { 0%, 45% { opacity: 0; } 48%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes em-n1 { 0%, 45% { opacity: 1; } 48%, 96% { opacity: 0; } 100% { opacity: 1; } }

.em-pdf { position: absolute; right: 0; bottom: 0; z-index: 2; width: 44%; aspect-ratio: 210 / 297; background: #fff; border-radius: 10px; padding: 9% 8% 0; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 30px 60px -24px rgba(15,23,42,.55), 0 0 0 1px var(--dl-line); transform: rotate(4deg); }
.em-pdf-kop { position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 10px 10px 0 0; background: var(--dl-blue); }
.em-pdf b { font-size: 12px; color: var(--dl-ink); margin-bottom: 4px; }
.em-baris { display: block; height: 7px; border-radius: 4px; background: #e2e8f0; }
.em-baris.w9 { width: 92%; } .em-baris.w8 { width: 80%; } .em-baris.w7 { width: 70%; } .em-baris.w5 { width: 50%; }
/* Meterai "dicap" di 48–96% siklus (selaras dgn status stamped). */
.em-meterai { position: absolute; right: 9%; bottom: 20%; width: 42%; aspect-ratio: 131 / 67; animation: em-cap 9s infinite; }
.em-meterai-in { position: absolute; inset: 0; 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; }
.em-meterai-in em { font-style: normal; font-weight: 800; font-size: 15px; }
.em-meterai-in small { font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.em-meterai-in .em-rp { font-size: 9px; color: #1d4ed8; }
@keyframes em-cap { 0%, 46% { opacity: 0; transform: scale(1.6) rotate(-8deg); } 52% { opacity: 1; transform: scale(.94) rotate(0); } 56%, 96% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.em-sah { position: absolute; left: 8%; bottom: 7%; display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 700; color: #14532d; background: #dcfce7; padding: 3px 8px; border-radius: 999px; animation: em-s3 9s infinite; }
.em-sah svg { width: 11px; height: 11px; }

/* ── Developer (gelap): tab kode + fitur ─────────────────── */
.em-dua { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.em-tab { background: #0b1222; border: 1px solid #1e293b; border-radius: 14px; overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.7; color: #e2e8f0; min-width: 0; }
.em-tab-tombol { display: flex; gap: 4px; padding: 8px; background: #111a2e; border-bottom: 1px solid #1e293b; }
.em-tab-tombol button { font: 600 13px Inter, sans-serif; color: #94a3b8; background: transparent; border: 0; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.em-tab-tombol button[aria-selected="true"] { background: #1e293b; color: #fff; }
.em-tab-tombol button:focus-visible { outline: 2px solid #60a5fa; }
.em-tab-tautan { display: block; padding: 12px 18px; border-top: 1px solid #1e293b; font: 600 13.5px Inter, sans-serif; color: #93c5fd; }
.em-tab-tautan:hover { color: #fff; }
.em-fitur { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.em-fitur-butir { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.em-fitur-butir h3 { color: #fff; font-size: 15px; }
.em-fitur-butir p { font-size: 13.5px; line-height: 1.6; }
.em-fitur-ik { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(37,99,235,.22); color: #93c5fd; }
.em-fitur-ik svg { width: 20px; height: 20px; }

/* ── Harga & hukum ───────────────────────────────────────── */
.em-harga, .em-hukum { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.em-dua, .sd-dua { align-items: start; }
.em-harga-kartu { margin-top: 10px; background: #fff; border: 1px solid #bcd3f8; border-radius: 18px; padding: 28px; box-shadow: 0 24px 48px -30px rgba(37,99,235,.45); display: flex; flex-direction: column; gap: 14px; }
.em-harga-nama { font-size: 13px; font-weight: 700; color: var(--dl-blue-ink); text-transform: uppercase; letter-spacing: .06em; }
.em-harga-angka { font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: var(--dl-ink); line-height: 1; }
.em-harga-angka small { font-size: 16px; font-weight: 600; color: var(--dl-body); letter-spacing: 0; }
.em-cek { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--dl-ink); }
.em-cek li { display: flex; gap: 10px; align-items: flex-start; }
.em-cek svg { width: 18px; height: 18px; color: var(--dl-success); flex: none; margin-top: 2px; }
.em-harga-kartu .btn { align-self: flex-start; }
.em-harga-catatan { font-size: 13.5px !important; }
.em-harga-catatan a, .em-tautan { color: var(--dl-blue); font-weight: 600; }
.em-hukum { padding-top: 6px; }
.em-hukum p { font-size: 15px; }

/* ── Artikel terkait ─────────────────────────────────────── */
.em-artikel { display: flex; flex-direction: column; gap: 10px; padding: 0; overflow: hidden; }
.em-artikel img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.em-artikel-topik { margin: 6px 22px 0; align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--dl-blue-ink); background: var(--dl-tint); padding: 3px 10px; border-radius: 999px; }
.em-artikel h3 { margin: 0 22px; font-size: 16px; line-height: 1.4; }
.em-artikel-meta { margin: 0 22px 20px; font-size: 13px; color: var(--dl-muted); }

.em-cta { grid-template-columns: minmax(0, 1fr) auto; }

@media (max-width: 1100px) {
  .em .em-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-dua { grid-template-columns: minmax(0, 1fr); }
  .em-visual { max-width: 620px; }
  .em-cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .em .em-g4, .em-fitur { grid-template-columns: minmax(0, 1fr); }
  .em-kode { width: 100%; font-size: 10.5px; }
  .em-kode pre { padding: 12px 14px; }
  .em-pdf { position: relative; width: 52%; margin: -60px 0 0 auto; }
  .em-tab { font-size: 11px; }
  .em-harga-angka { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .em-s1, .em-s2, .em-n1 { opacity: 0; }
  .em-s3, .em-n3, .em-meterai, .em-sah { opacity: 1; transform: none; }
}
