/* =====================================================================
   LANDING PAGE & LOGIN — Digital Arsip
   ===================================================================== */
:root {
    --g50: #ecfdf5; --g100: #d1fae5; --g300: #6ee7b7; --g400: #34d399; --g500: #10b981; --g600: #059669; --g700: #047857; --g800: #065f46; --g900: #064e3b;
    --ink: #0f172a; --ink2: #334155; --ink3: #64748b; --ink4: #94a3b8; --line: #e2e8f0; --bg: #f6f8f7;
    --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink2); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 0; cursor: pointer; font: 700 .95rem 'Plus Jakarta Sans', sans-serif; padding: .85rem 1.4rem; border-radius: 12px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--g500), var(--g700)); box-shadow: 0 10px 22px rgba(5, 150, 105, .3); }
.btn-primary:hover { box-shadow: 0 14px 28px rgba(5, 150, 105, .38); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--g800); box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }
.btn-light:hover { transform: translateY(-1px); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-outline { color: var(--ink2); background: #fff; border: 1px solid var(--line); margin-top: .7rem; }
.btn-outline:hover { background: #f8fafc; }
.btn:focus-visible, .nav a:focus-visible, .eye:focus-visible { outline: 3px solid var(--g300); outline-offset: 2px; }

/* ---------- Navbar ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.nav.scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.brand img { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 12px; padding: 3px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.brand small { font-size: .72rem; opacity: .8; }
.nav.scrolled .brand { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a { color: rgba(255, 255, 255, .9); font-weight: 600; font-size: .9rem; padding: .55rem .85rem; border-radius: 10px; transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nav.scrolled .nav-links a { color: var(--ink2); }
.nav.scrolled .nav-links a:hover { background: var(--g50); color: var(--g700); }
.nav-links .nav-cta { background: #fff; color: var(--g700) !important; margin-left: .4rem; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.nav.scrolled .nav-links .nav-cta { background: linear-gradient(135deg, var(--g500), var(--g700)); color: #fff !important; }
.nav-toggle { display: none; background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 42px; height: 42px; border-radius: 10px; font-size: 1.1rem; cursor: pointer; }
.nav.scrolled .nav-toggle { background: var(--g50); color: var(--g700); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 110px 0 70px; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, rgba(6, 78, 59, .94) 0%, rgba(4, 120, 87, .86) 45%, rgba(6, 95, 70, .55) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero-chip { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; padding: .45rem .9rem; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; margin: 1.1rem 0 1rem; }
.hero h1 span { color: var(--g300); }
.hero-text > p { font-size: 1.05rem; line-height: 1.75; color: rgba(255, 255, 255, .86); max-width: 560px; margin: 0 0 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-points { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .88rem; color: rgba(255, 255, 255, .85); }
.hero-points i { color: var(--g300); margin-right: .35rem; }

/* ---------- Kartu login ---------- */
.login-card { background: #fff; color: var(--ink2); border-radius: 22px; padding: 2rem; box-shadow: 0 30px 60px rgba(2, 44, 34, .35); animation: naik .5s ease both; }
@keyframes naik { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.login-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.5rem; }
.login-head img { width: 54px; height: 54px; object-fit: contain; border-radius: 14px; background: var(--g50); padding: 5px; flex: 0 0 auto; }
.login-head h2 { margin: 0; font-size: 1.45rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.login-head p { margin: .15rem 0 0; font-size: .85rem; color: var(--ink3); }
.field { display: block; margin-bottom: 1.05rem; }
.field > span { display: block; font-size: .8rem; font-weight: 700; color: var(--ink2); margin-bottom: .4rem; }
.input { position: relative; display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #f8fafc; transition: border-color .2s, box-shadow .2s, background .2s; }
.input:focus-within { border-color: var(--g400); background: #fff; box-shadow: 0 0 0 4px var(--g100); }
.input.salah { border-color: #f87171; box-shadow: 0 0 0 4px #fee2e2; }
.input > i { width: 44px; text-align: center; color: var(--ink4); flex: 0 0 auto; }
.input input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: 500 .95rem 'Plus Jakarta Sans', sans-serif; color: var(--ink); padding: .85rem .9rem .85rem 0; }
.input input::placeholder { color: var(--ink4); }
.eye { border: 0; background: none; color: var(--ink4); width: 44px; height: 44px; cursor: pointer; border-radius: 10px; }
.eye:hover { color: var(--g600); }
.caps[hidden] { display: none !important; }
.caps { display: block; margin-top: .35rem; color: #b45309; font-size: .76rem; font-weight: 600; }
.alert { display: flex; gap: .55rem; align-items: center; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: .88rem; font-weight: 600; padding: .75rem .9rem; border-radius: 12px; margin-bottom: 1.1rem; animation: goyang .4s ease; }
@keyframes goyang { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
#btnLogin { margin-top: .4rem; position: relative; }
#btnLogin .spin { display: none; width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: putar .7s linear infinite; }
#btnLogin.loading .txt { display: none; }
#btnLogin.loading .spin { display: inline-block; }
@keyframes putar { to { transform: rotate(360deg); } }
.login-help { text-align: center; font-size: .8rem; color: var(--ink3); margin: 1rem 0 0; }
.login-back { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--g700); }
.login-back:hover { color: var(--g900); }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; gap: 1rem; flex-wrap: wrap; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--g600); background: var(--g50); padding: .35rem .8rem; border-radius: 99px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin: .8rem 0 .5rem; }
.section-head p { color: var(--ink3); line-height: 1.7; margin: 0; }
.link-more { font-weight: 700; color: var(--g700); font-size: .9rem; }
.link-more:hover { color: var(--g900); }

.fitur-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.fitur { background: #fff; border: 1px solid #eef2f6; border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: transform .2s ease, box-shadow .2s ease; }
.fitur:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15, 23, 42, .08); }
.fitur-ic { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem; margin-bottom: 1.1rem; }
.fitur-ic.hijau  { background: linear-gradient(135deg, #84d9d2, #07cdae); }
.fitur-ic.biru   { background: linear-gradient(135deg, #90caf9, #047edf); }
.fitur-ic.oranye { background: linear-gradient(135deg, #ffbf96, #fe7096); }
.fitur-ic.ungu   { background: linear-gradient(135deg, #da8cff, #9a55ff); }
.fitur h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 .5rem; }
.fitur p { font-size: .9rem; line-height: 1.65; color: var(--ink3); margin: 0; }

.peng-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.peng { display: flex; gap: 1rem; padding: 1.3rem; border: 1px solid #eef2f6; border-radius: var(--radius); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.peng:hover { border-color: var(--g300); box-shadow: 0 12px 26px rgba(5, 150, 105, .1); }
.peng-tgl { flex: 0 0 62px; height: 66px; border-radius: 12px; background: linear-gradient(135deg, var(--g500), var(--g700)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.peng-tgl b { font-size: 1.4rem; }
.peng-tgl span { font-size: .68rem; opacity: .9; }
.peng .tag { font-size: .7rem; font-weight: 700; color: var(--g700); background: var(--g100); padding: .2rem .55rem; border-radius: 6px; }
.peng h3 { font-size: 1rem; color: var(--ink); margin: .45rem 0 .35rem; font-weight: 700; }
.peng p { font-size: .85rem; color: var(--ink3); line-height: 1.6; margin: 0; }
.kosong { text-align: center; color: var(--ink4); padding: 2rem 0; }

/* ---------- Footer ---------- */
.footer { background: var(--g900); color: rgba(255, 255, 255, .78); padding: 3rem 0 1.4rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; gap: .9rem; max-width: 520px; }
.footer-brand img { width: 50px; height: 50px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; flex: 0 0 auto; }
.footer-brand b { color: #fff; font-size: 1.05rem; }
.footer-brand p { margin: .4rem 0 0; font-size: .88rem; line-height: 1.6; }
.footer-kontak { display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; }
.footer-kontak a:hover { color: #fff; }
.footer-kontak i { width: 20px; color: var(--g300); }
.footer-copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1.2rem; font-size: .8rem; text-align: center; color: rgba(255, 255, 255, .55); }

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
    .fitur-grid { grid-template-columns: repeat(2, 1fr); }
    .peng-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .hero { min-height: 0; padding: 100px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
    .hero-text { text-align: center; }
    .hero-text > p { margin-left: auto; margin-right: auto; }
    .hero-cta, .hero-points { justify-content: center; }
    .login-card { max-width: 460px; width: 100%; margin: 0 auto; order: -1; }
    .hero { padding-top: 92px; }
    .hero h1 { margin-top: .8rem; }
    .hero-points { display: none; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-links { position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: .2rem; padding: .6rem; background: #fff; border-radius: 14px; box-shadow: 0 20px 40px rgba(15, 23, 42, .18); display: none; }
    .nav-links.open { display: flex; }
    .nav-links a, .nav.scrolled .nav-links a { color: var(--ink2); }
    .nav-links a:hover { background: var(--g50); color: var(--g700); }
    .nav-links .nav-cta { margin: .3rem 0 0; background: linear-gradient(135deg, var(--g500), var(--g700)); color: #fff !important; text-align: center; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    .fitur-grid { grid-template-columns: 1fr; }
    .brand small { display: none; }
    .brand b { font-size: .9rem; }
    .login-card { padding: 1.5rem; border-radius: 18px; }
    .hero-cta .btn { flex: 1; }
    .section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .login-card, .alert { animation: none; }
}

/* =====================================================================
   HALAMAN PUBLIK LAIN (pengumuman.php, faq.php) & ANIMASI
   ===================================================================== */
.nav-links a.aktif { background: rgba(255, 255, 255, .16); color: #fff; }
.nav.scrolled .nav-links a.aktif { background: var(--g50); color: var(--g700); }

/* Banner judul halaman */
.page-banner { position: relative; color: #fff; padding: 128px 0 74px; overflow: hidden; }
.page-banner .hero-bg { background-position: center 40%; }
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: linear-gradient(to bottom, transparent, var(--bg)); }
.page-banner-inner { position: relative; z-index: 1; text-align: center; }
.page-banner h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; margin: .9rem 0 .6rem; }
.page-banner h1 i { color: var(--g300); margin-right: .3rem; }
.page-banner p { color: rgba(255, 255, 255, .85); max-width: 620px; margin: 0 auto; line-height: 1.7; }
.crumb { display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); padding: .4rem .9rem; border-radius: 99px; }
.crumb a { color: #fff; opacity: .9; }
.crumb a:hover { opacity: 1; }
.crumb > i { font-size: .6rem; opacity: .6; }
.section-tipis { padding: 36px 0 80px; }
.wrap-sempit { max-width: 860px; }

/* Pencarian & filter */
.toolbar { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.cari { position: relative; flex: 1 1 280px; max-width: 420px; }
.cari i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink4); }
.cari input { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: .8rem 1rem .8rem 2.6rem; font: 500 .92rem 'Plus Jakarta Sans', sans-serif; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.cari input:focus { border-color: var(--g400); box-shadow: 0 0 0 4px var(--g100); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink2); font: 600 .82rem 'Plus Jakarta Sans', sans-serif; padding: .5rem .95rem; border-radius: 99px; cursor: pointer; transition: all .2s; }
.chip small { opacity: .7; margin-left: .2rem; }
.chip:hover { border-color: var(--g300); color: var(--g700); }
.chip.aktif { background: linear-gradient(135deg, var(--g500), var(--g700)); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(5, 150, 105, .25); }

/* Kartu pengumuman */
.peng-list { display: grid; gap: 1.1rem; }
.peng-card { display: flex; gap: 1.2rem; background: #fff; border: 1px solid #eef2f6; border-radius: var(--radius); padding: 1.4rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: box-shadow .25s, border-color .25s; }
.peng-card:hover { box-shadow: 0 16px 34px rgba(15, 23, 42, .08); border-color: var(--g100); }
.peng-card.pin { border-left: 4px solid #f59e0b; }
.peng-card .peng-tgl { flex: 0 0 68px; height: 72px; }
.peng-card[hidden] { display: none; }
.peng-isi { flex: 1; min-width: 0; }
.peng-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; font-size: .78rem; color: var(--ink3); }
.peng-meta i { margin-right: .2rem; }
.tag-pin { background: #fef3c7 !important; color: #b45309 !important; }
.peng-isi h2 { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin: .55rem 0 .45rem; letter-spacing: -.01em; }
.peng-teks { color: var(--ink3); font-size: .92rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.baca { margin-top: .8rem; border: 0; background: none; padding: 0; font: 700 .85rem 'Plus Jakarta Sans', sans-serif; color: var(--g700); cursor: pointer; }
.baca i { transition: transform .2s; }
.baca:hover i { transform: translateX(4px); }

/* Dialog detail */
.dlg { border: 0; padding: 0; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border-radius: 20px; box-shadow: 0 40px 80px rgba(2, 44, 34, .35); color: var(--ink2); }
.dlg[open] { animation: dlgMasuk .3s cubic-bezier(.2, 1, .3, 1); display: flex; flex-direction: column; }
.dlg::backdrop { background: rgba(6, 30, 24, .55); backdrop-filter: blur(3px); }
@keyframes dlgMasuk { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.dlg-kepala { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 1.4rem 1.6rem 0; }
.dlg-tutup { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; border: 0; background: #f1f5f9; color: var(--ink3); cursor: pointer; }
.dlg-tutup:hover { background: var(--g50); color: var(--g700); }
.dlg h2 { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin: .7rem 1.6rem 0; }
.dlg-isi { padding: 1rem 1.6rem; overflow-y: auto; line-height: 1.8; color: var(--ink2); }
.dlg-kaki { padding: 1rem 1.6rem 1.4rem; border-top: 1px solid #f1f5f9; text-align: right; }

/* FAQ */
.faq-list { display: grid; gap: .8rem; }
.faq { background: #fff; border: 1px solid #eef2f6; border-radius: 14px; transition: box-shadow .25s, border-color .25s; }
.faq[hidden] { display: none; }
.faq[open] { border-color: var(--g100); box-shadow: 0 14px 30px rgba(15, 23, 42, .07); }
.faq summary { list-style: none; display: flex; align-items: center; gap: .9rem; padding: 1.05rem 1.2rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic { flex: 0 0 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--g50); color: var(--g600); transition: background .25s, color .25s; }
.faq[open] .faq-ic { background: linear-gradient(135deg, var(--g500), var(--g700)); color: #fff; }
.faq-q { flex: 1; font-weight: 700; color: var(--ink); line-height: 1.45; }
.faq-q small { display: block; font-weight: 600; font-size: .72rem; color: var(--g600); margin-top: .15rem; }
.faq-panah { color: var(--ink4); transition: transform .3s; }
.faq[open] .faq-panah { transform: rotate(180deg); color: var(--g600); }
.faq-a { padding: 0 1.2rem 1.2rem calc(1.2rem + 40px + .9rem); color: var(--ink3); line-height: 1.75; animation: faqBuka .3s ease; }
@keyframes faqBuka { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-bantuan { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.5rem 1.6rem; border-radius: var(--radius); background: linear-gradient(120deg, var(--g800), var(--g600)); color: #fff; }
.faq-bantuan h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.faq-bantuan p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .9rem; }
.faq-bantuan .btn-primary { background: #fff; color: var(--g700); }

.kosong-besar { text-align: center; padding: 4rem 1rem; color: var(--ink4); }
.kosong-besar[hidden] { display: none; }
.kosong-besar i { font-size: 2.6rem; margin-bottom: .8rem; }
.kosong-besar h3 { color: var(--ink2); margin: 0 0 .3rem; }
.kosong-besar p { margin: 0; }

/* Footer: tautan */
.footer-links { display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; }
.footer-links a:hover { color: #fff; }

/* Tombol kembali ke atas */
.ke-atas { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer; color: #fff;
    background: linear-gradient(135deg, var(--g500), var(--g700)); box-shadow: 0 10px 22px rgba(5, 150, 105, .35);
    opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s; }
.ke-atas.tampil { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Animasi masuk (bertahap) ---------- */
.js .anim-masuk, .js .anim-masuk-kanan { opacity: 0; }
.js.intro-selesai .anim-masuk { animation: masukAtas .8s cubic-bezier(.2, .9, .3, 1) both; animation-delay: var(--d, 0ms); }
.js.intro-selesai .anim-masuk-kanan { animation: masukKanan .9s cubic-bezier(.2, .9, .3, 1) both; animation-delay: var(--d, 0ms); }
@keyframes masukAtas { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes masukKanan { from { opacity: 0; transform: translateX(40px) scale(.97); } to { opacity: 1; transform: none; } }
.js.intro-selesai .hero-bg { animation: zoomLatar 2.4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes zoomLatar { from { transform: scale(1.14); } to { transform: scale(1.04); } }
.login-card { animation: none; }

/* Muncul saat di-scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .3, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Intro saat pertama kali membuka ---------- */
.intro { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; text-align: center; color: #fff;
    background: radial-gradient(circle at 50% 40%, var(--g600), var(--g900) 70%); clip-path: circle(150% at 50% 50%); }
.intro-jalan .intro { display: flex; }
.intro-jalan body { overflow: hidden; }
.intro-jalan.intro-selesai .intro { animation: introKeluar .7s cubic-bezier(.7, 0, .3, 1) forwards; }
@keyframes introKeluar { to { clip-path: circle(0% at 50% 50%); opacity: .6; } }
.intro-logo { width: 104px; height: 104px; margin: 0 auto 1.2rem; border-radius: 28px; background: #fff; padding: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); animation: logoMuncul .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.intro-logo img { width: 100%; height: 100%; object-fit: contain; }
@keyframes logoMuncul { from { opacity: 0; transform: scale(.4) rotate(-12deg); } to { opacity: 1; transform: none; } }
.intro-nama { font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; animation: masukAtas .7s .25s both; }
.intro-sub { font-size: .9rem; opacity: .8; margin-top: .25rem; animation: masukAtas .7s .4s both; }
.intro-bar { width: 160px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .2); margin: 1.4rem auto 0; overflow: hidden; }
.intro-bar span { display: block; height: 100%; width: 100%; background: var(--g300); transform-origin: left; animation: isiBar 1.3s .15s cubic-bezier(.6, 0, .3, 1) both; }
@keyframes isiBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 900px) {
    .footer-links { flex-direction: row; flex-wrap: wrap; gap: .4rem 1.1rem; }
    .page-banner { padding: 108px 0 58px; }
    .nav-links a.aktif { background: var(--g50); color: var(--g700); }
}
@media (max-width: 560px) {
    .peng-card { flex-direction: column; gap: .8rem; padding: 1.15rem; }
    .peng-card .peng-tgl { flex: none; width: auto; height: auto; flex-direction: row; gap: .4rem; padding: .35rem .8rem; align-self: flex-start; border-radius: 10px; }
    .peng-card .peng-tgl b { font-size: 1rem; }
    .faq-a { padding-left: 1.2rem; }
    .cari { max-width: none; }
    .ke-atas { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .js .anim-masuk, .js .anim-masuk-kanan, .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
    .intro { display: none !important; }
}

/* Logo aplikasi pada kartu login (SVG sudah berbentuk lencana, tanpa latar tambahan) */
.login-head img.login-logo-app { width: 60px; height: 60px; padding: 0; background: none; border-radius: 0; filter: drop-shadow(0 6px 10px rgba(15, 36, 64, .22)); }
