/*
  CIBN-PRESTISE, tampilan contoh (data dummy)

  Design Read: platform belajar dan ujian online untuk pelajar Indonesia,
  bahasa visual alam yang tenang (bukit, laut, awan) dengan warna dari logo merak,
  dial ENERGY 2 / RHYTHM 3 / MOTION 3.

  Alasan keputusan (R-31):
  - Warna: navy-teal, hijau daun, dan emas diambil langsung dari logo merak. Emas adalah satu-satunya aksen.
  - Huruf judul Fraunces: serif lembut dengan lengkung organik, sejalan dengan lekuk badan merak. Huruf isi Nunito Sans: hangat dan terbaca di layar kecil.
  - Sudut "daun" (dua sudut besar, dua kecil): satu bahasa bentuk untuk tombol, kartu, dan kolom isian, mengulang lengkung ekor merak. Bukan pil.
  - Motif identitas: garis lengkung emas tipis (dari lengkung di bawah kaki merak) sebagai pembatas dan garis bawah fokus.
  - Latar bukit dan laut fixed: permintaan pemilik, dan jadi satu-satunya "gambar" halaman, semua teks berada di atas panel kertas agar kontras aman.
*/

:root {
  --ink: #10364a;
  --ink-soft: #35586a;
  --leaf: #1f6e55;
  --leaf-bright: #3a9070;
  --sea: #2b7f90;
  --gold: #d9a441;
  --gold-deep: #a97a1c;
  --paper: #f8f4e9;
  --sand: #efe7d2;
  --line: #d9cfb6;
  --danger: #a5302b;
  --ok: #1f6e55;

  --r-leaf: 18px 5px 18px 5px;
  --r-leaf-alt: 5px 18px 5px 18px;
  --r-leaf-lg: 30px 8px 30px 8px;
  --r-leaf-sm: 10px 3px 10px 3px;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --shadow-lift: 0 14px 32px -18px rgba(16, 54, 74, .55);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* ---------- Latar bukit dan laut ---------- */
#scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #cfe6e4; }

/* ---------- Bilah info dummy ---------- */
.notice {
  background: var(--ink);
  color: var(--paper);
  font-size: .85rem;
  text-align: center;
  padding: .4rem 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand b { font-family: var(--f-display); font-size: 1.25rem; letter-spacing: .02em; line-height: 1; display: block; }
.brand small { display: block; font-size: .72rem; color: var(--ink-soft); letter-spacing: .12em; margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a.link {
  text-decoration: none; padding: .55rem .9rem; border-radius: 8px 3px 8px 3px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a.link:hover { background: var(--sand); }
.nav a.link[aria-current="page"] { background: var(--sand); box-shadow: inset 0 -3px 0 var(--gold); }
.nav .actions { display: flex; gap: .5rem; margin-left: .75rem; align-items: center; }
.menu-btn {
  display: none; margin-left: auto; width: 46px; height: 46px; background: var(--sand); border: 1px solid var(--line); border-radius: 10px 3px 10px 3px;
  align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .25rem; margin: 0; display: none;
  }
  .nav.open { display: flex; }
  .nav .actions { margin: .5rem 0 0; flex-direction: column; align-items: stretch; }
  .nav .actions .btn { width: 100%; }
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.35rem; border: 2px solid transparent;
  border-radius: var(--r-leaf-sm); font-weight: 700; text-decoration: none; text-align: center;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-lift); }
.btn-gold:hover { background: #e3b155; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #17475f; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-lg { min-height: 54px; padding: .85rem 1.7rem; font-size: 1.05rem; border-radius: var(--r-leaf); }

/* ---------- Panel kertas ---------- */
.panel { background: var(--paper); border-radius: var(--r-leaf); padding: clamp(1.25rem, 3vw, 2.25rem); }
.panel-lg { border-radius: var(--r-leaf-lg); }
.raised { box-shadow: var(--shadow-lift); }

/* garis lengkung emas: motif identitas */
.arc { display: block; width: 100%; height: 26px; }
.arc path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.rule-arc { display: block; width: 130px; height: 14px; margin: 0 0 1rem; }
.rule-arc path { fill: none; stroke: var(--gold-deep); stroke-width: 3; stroke-linecap: round; }

/* ---------- Halaman dengan lembar kertas ---------- */
.page-top { min-height: 34vh; display: flex; align-items: flex-end; padding: 2.5rem 0 1.75rem; }
.page-top .panel { max-width: 640px; }
.page-top h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: .3em; }
.page-top p { margin: 0; color: var(--ink-soft); }
.sheet {
  background: var(--sand);
  border-radius: 34px 34px 0 0;
  padding: 2.5rem 0 4rem;
  min-height: 60vh;
  position: relative;
}
.sheet::before {
  content: ""; position: absolute; left: 50%; top: 12px; width: 60px; height: 4px; margin-left: -30px; border-radius: 2px; background: var(--gold);
}

/* ---------- Kolom isian ---------- */
.search {
  position: relative; display: flex; align-items: center; max-width: 560px; flex: 1 1 340px;
}
.search input {
  width: 100%; min-height: 52px; padding: .8rem 3rem .8rem 3.1rem;
  border: 2px solid var(--line); background: var(--paper); border-radius: var(--r-leaf); color: var(--ink);
  font: inherit;
}
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 5px 0 -2px var(--gold); }
.search svg.glass { position: absolute; left: 1rem; width: 22px; height: 22px; stroke: var(--ink-soft); fill: none; stroke-width: 2.2; stroke-linecap: round; }
.search .clear {
  position: absolute; right: .35rem; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; font-size: 1.4rem; line-height: 1; display: none;
}
.search.has-value .clear { display: inline-flex; align-items: center; justify-content: center; }

.field { position: relative; margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin: 0 0 .35rem .35rem; }
.field .box { position: relative; display: flex; align-items: center; background: #fffdf6; border: 2px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.field .box svg.ico { flex: none; width: 22px; height: 22px; margin-left: 1rem; stroke: var(--leaf); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.field input {
  flex: 1; min-width: 0; min-height: 52px; padding: .75rem 1rem .75rem .8rem; border: 0; background: transparent; font: inherit; color: var(--ink);
}
.field input:focus { outline: none; }
.field .box:focus-within { border-color: var(--ink); box-shadow: 0 6px 0 -3px var(--gold); }
.field .box.shape-a { border-radius: 24px 6px 24px 6px; }
.field .box.shape-b { border-radius: 6px 24px 6px 24px; }
.field .box.shape-c { border-radius: 24px 24px 6px 24px; }
.field .box.shape-d { border-radius: 6px 24px 24px 24px; }
.field.invalid .box { border-color: var(--danger); }
.field .msg { display: none; font-size: .88rem; color: var(--danger); margin: .35rem 0 0 .4rem; font-weight: 600; }
.field.invalid .msg { display: block; }
.field .toggle-pass { border: 0; background: transparent; padding: 0 1rem; min-height: 44px; font-weight: 700; font-size: .85rem; color: var(--leaf); }
.meter { display: flex; gap: 5px; margin: .5rem 0 0 .4rem; align-items: center; }
.meter i { width: 34px; height: 5px; border-radius: 3px; background: var(--line); transition: background .2s; }
.meter i.on { background: var(--leaf-bright); }
.meter span { font-size: .82rem; margin-left: .4rem; color: var(--ink-soft); }
.check { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 1.2rem .3rem; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--leaf); flex: none; }
.form-error { background: #f8e3df; border-left: 5px solid var(--danger); color: #6e1d19; padding: .8rem 1rem; border-radius: 4px 12px 12px 4px; margin-bottom: 1rem; font-weight: 600; display: none; }
.form-error.show { display: block; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(16, 54, 74, .55); }
.modal.open { display: flex; }
.modal .card { position: relative; width: min(560px, 100%); max-height: 88vh; overflow: auto; background: var(--paper); border-radius: var(--r-leaf-lg); padding: clamp(1.4rem, 4vw, 2.2rem); animation: pop .28s ease both; }
.modal .close {
  position: absolute; top: .7rem; right: .7rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sand); font-size: 1.5rem; line-height: 1;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Status kosong / memuat ---------- */
.state { text-align: center; padding: 3rem 1rem; border: 2px dashed var(--line); border-radius: var(--r-leaf); background: rgba(248, 244, 233, .6); }
.state h3 { margin-bottom: .3rem; }
.skeleton { background: linear-gradient(100deg, #e6dcc2 30%, #f3ecd7 50%, #e6dcc2 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--r-leaf); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 2.5rem 0 2rem; position: relative; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.site-footer .brand img { width: 46px; background: var(--paper); border-radius: 12px 4px 12px 4px; padding: 5px; }
.site-footer .brand small { color: #b9cfd8; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.site-footer .fine { margin: 1.5rem 0 0; font-size: .88rem; color: #b9cfd8; }

/* ---------- Muncul saat digulir ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ BERANDA ============ */
.hero { min-height: calc(100vh - 100px); display: flex; align-items: center; padding: 2rem 0 5rem; position: relative; }
.hero .panel { max-width: 590px; }
.hero h1 { margin-bottom: .45em; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; margin-left: -1px; width: 2px; height: 60px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s ease-in-out infinite; }
.scroll-cue-wrap { position: relative; }
@keyframes cue { 0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

.sec { padding: 5rem 0; }
.sec-tall { min-height: 130vh; }

/* sistem: jalur berkelok */
.trail { position: relative; }
.trail-head { max-width: 460px; margin-bottom: 2.5rem; }
.trail-list { position: relative; display: grid; gap: 2rem; }
.trail-list::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 0; border-left: 3px dashed var(--gold); transform: translateX(-50%); opacity: .95;
}
.stop { position: relative; width: min(470px, 100%); }
.stop h3 { margin-bottom: .3em; }
.stop p { margin: 0; color: var(--ink-soft); }
.stop::after {
  content: ""; position: absolute; top: 1.6rem; width: 22px; height: 22px; background: var(--gold); border: 3px solid var(--paper); border-radius: 12px 2px 12px 2px; transform: rotate(45deg);
}
.stop:nth-child(odd) { justify-self: start; }
.stop:nth-child(odd)::after { right: -3.1rem; }
.stop:nth-child(even) { justify-self: end; margin-top: 2.5rem; }
.stop:nth-child(even)::after { left: -3.1rem; }
.stop:nth-child(2) { width: min(410px, 100%); }
.stop:nth-child(3) { width: min(520px, 100%); border-radius: var(--r-leaf-lg); }
.stop:nth-child(4) { width: min(440px, 100%); border-radius: var(--r-leaf-alt); }
@media (max-width: 800px) {
  .trail-list::before { left: 10px; transform: none; }
  .stop, .stop:nth-child(n) { justify-self: stretch; width: auto; margin: 0 0 0 1.8rem; }
  .stop::after, .stop:nth-child(n)::after { left: -2.4rem; right: auto; }
}

/* perangkat */
.devices { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; }
.device-art { position: relative; min-height: 340px; }
.device-art svg { width: 100%; height: auto; }
.device-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .7rem; }
.device-list li { display: grid; grid-template-columns: 8.5rem 1fr; gap: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.device-list b { font-family: var(--f-display); }
@media (max-width: 800px) {
  .devices { grid-template-columns: 1fr; }
  .device-list li { grid-template-columns: 1fr; gap: 0; }
}

/* mitra: logo berjalan terus (loop), tidak berhenti saat disentuh/hover */
.partners { margin-top: 1.4rem; }
.partners .loops { gap: 0; }
.slot {
  flex: none; width: 190px; min-height: 96px; display: grid; place-items: center; text-align: center; padding: .8rem;
  border: 2px dashed var(--ink-soft); border-radius: var(--r-leaf); color: var(--ink-soft); font-weight: 700; font-size: .9rem; background: #fffdf6;
}
.loop-group .slot:nth-child(2n) { width: 230px; border-radius: var(--r-leaf-alt); min-height: 120px; }
.loop-group .slot:nth-child(4n) { width: 210px; border-radius: var(--r-leaf-lg); }

/* ajakan */
.final { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; }
.final img { width: 100%; max-width: 220px; }
.final .cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
@media (max-width: 700px) { .final { grid-template-columns: 1fr; } .final img { max-width: 130px; } }

/* ============ PAKET ============ */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 44px; padding: .45rem 1rem; border: 2px solid var(--line); background: var(--paper); border-radius: 10px 3px 10px 3px; font-weight: 700; font-size: .92rem;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dummy-note { font-size: .88rem; color: var(--ink-soft); margin: 0 0 1.4rem; }
/* Kolom sama lebar dan otomatis menyesuaikan jumlah kartu, jadi tidak ada lagi
   kolom yang bolong seperti pada pola span lama. align-items:start membuat
   tinggi tiap kartu mengikuti isinya sendiri, tidak dipaksa ikut kartu
   tertinggi di barisnya, sehingga kartu berisi sedikit tidak terlihat kosong. */
.paket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; align-items: start; }
.paket {
  background: var(--paper); border-radius: var(--r-leaf); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; position: relative;
}
/* Variasi tampilan tiap kartu ke-4 hanya lewat warna/sudut, bukan lewat lebar
   kolom, supaya susunan grid tetap rapat dan tidak pernah menyisakan ruang kosong. */
.paket:nth-child(4n+1) { border-radius: var(--r-leaf-lg); background: var(--ink); color: var(--paper); }
.paket:nth-child(4n+1) .cat, .paket:nth-child(4n+1) .ringkas, .paket:nth-child(4n+1) li { color: #d6e3e8; }
.paket:nth-child(4n+1) .harga small { color: #d6e3e8; }
.paket:nth-child(4n+1) .btn-ink { background: var(--gold); color: var(--ink); }
.paket:nth-child(4n+3) { border-radius: var(--r-leaf-alt); }
.paket .cat { font-size: .85rem; font-weight: 700; color: var(--leaf); display: inline-block; animation: cat-pulse 1.8s ease-in-out infinite; }
@keyframes cat-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.05); } }
.paket h3 { margin: 0; }
.paket .ringkas { margin: 0; color: var(--ink-soft); }
.paket ul { margin: .3rem 0; padding-left: 1.1rem; color: var(--ink-soft); }
.paket .harga { font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; margin-top: auto; padding-top: .6rem; }
.paket .harga small { font-family: var(--f-body); font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.paket .btn { margin-top: .4rem; align-self: flex-start; }
@media (max-width: 900px) { .paket-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .paket-grid { grid-template-columns: 1fr; } }

/* ============ TESTIMONI ============ */
.loops { display: grid; gap: 1.2rem; overflow: hidden; padding: .5rem 0; }
.loop-row { display: flex; width: max-content; animation: loop var(--dur, 60s) linear infinite; }
.loop-row.rev { animation-direction: reverse; }
/* loop (testimoni dan mitra) tidak pernah dijeda: tetap berjalan saat kursor, sentuhan, atau fokus ada di atasnya */
.loop-group { display: flex; gap: 1.1rem; padding-right: 1.1rem; }
@keyframes loop { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .loop-row { animation-duration: 240s; } }
.tcard {
  width: 300px; text-align: left; border: 0; padding: 1.2rem 1.3rem; background: var(--paper); border-radius: var(--r-leaf); display: flex; flex-direction: column; gap: .7rem; flex: none;
}
.tcard.wide { width: 380px; border-radius: var(--r-leaf-lg); }
.tcard.tall { width: 260px; border-radius: var(--r-leaf-alt); background: var(--ink); color: var(--paper); }
.tcard.tall .who small { color: #cfe0e6; }
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tcard { transition: transform .2s, box-shadow .2s; }
.tcard q { quotes: none; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.who { display: flex; gap: .7rem; align-items: center; margin-top: auto; }
.who small { display: block; color: var(--ink-soft); font-size: .82rem; }
.avatar {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; color: var(--paper); background: var(--leaf); border-radius: 14px 4px 14px 4px;
}
.tcard.tall .avatar { background: var(--gold); color: var(--ink); }
.avatar.v2 { background: var(--sea); } .avatar.v3 { background: var(--ink); } .avatar.v4 { background: var(--gold-deep); }
.modal .who { margin: 0 0 1rem; }
.modal blockquote { margin: 0 0 1rem; font-family: var(--f-display); font-size: 1.25rem; line-height: 1.4; }
.tag-dummy { display: inline-block; font-size: .8rem; font-weight: 700; padding: .15rem .55rem; border: 2px dashed var(--ink-soft); border-radius: 6px 2px 6px 2px; color: var(--ink-soft); }

/* ============ INFORMASI ============ */
.info-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.feed { display: grid; gap: 1.4rem; }
.post { background: var(--paper); border-radius: var(--r-leaf); padding: 1.4rem 1.5rem; }
.post:nth-child(3n+1) { border-radius: var(--r-leaf-lg); }
.post-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.post-head img { width: 44px; height: 44px; object-fit: contain; background: var(--sand); border-radius: 14px 4px 14px 4px; padding: 4px; }
.post-head small { color: var(--ink-soft); display: block; }
.post h3 { margin-bottom: .4rem; }
.post .cover { height: 150px; border-radius: 10px 3px 10px 3px; margin: .9rem 0; }
.post .cat { font-size: .82rem; font-weight: 700; color: var(--leaf); }
.post-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.side { position: sticky; top: 90px; display: grid; gap: 1rem; }
.side .btn { justify-content: flex-start; }
.pinned { background: var(--ink); color: var(--paper); border-radius: var(--r-leaf-alt); padding: 1.2rem 1.3rem; }
.pinned p { margin: 0; color: #d6e3e8; font-size: .95rem; }
@media (max-width: 900px) { .info-layout { grid-template-columns: 1fr; } .side { position: static; order: -1; } }

/* ============ AUTH ============ */
.auth { min-height: calc(100vh - 100px); display: flex; align-items: center; padding: 2rem 0 3.5rem; }
.auth .wrap { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 2rem; align-items: center; }
.auth .wrap > * { min-width: 0; }
.auth .aside { align-self: end; }
.auth .aside .panel { max-width: 380px; }
.auth-card { background: var(--paper); border-radius: var(--r-leaf-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-lift); }
.auth-card h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.auth-card .swap { margin: 1.2rem 0 0; text-align: center; }
.auth-card .swap a { font-weight: 800; color: var(--leaf); text-underline-offset: 4px; }
.pick-note { background: var(--sand); border-radius: var(--r-leaf-sm); padding: .7rem 1rem; margin-bottom: 1.2rem; font-size: .95rem; }
.link-btn { border: 0; background: none; padding: 0; min-height: 44px; font-weight: 700; color: var(--leaf); text-decoration: underline; text-underline-offset: 4px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: -.4rem 0 1rem; }
@media (max-width: 860px) { .auth .wrap { grid-template-columns: minmax(0, 1fr); } .auth .aside { display: none; } }
.spin { width: 18px; height: 18px; border: 3px solid rgba(16, 54, 74, .25); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* OTP */
.otp { display: flex; gap: .55rem; justify-content: center; margin: 1.4rem 0 .6rem; }
.otp input {
  width: 100%; max-width: 58px; aspect-ratio: 5 / 6; text-align: center; font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; color: var(--ink);
  background: #fffdf6; border: 2px solid var(--line); padding: 0; min-width: 0;
}
.otp input:nth-child(odd) { border-radius: 16px 5px 16px 5px; }
.otp input:nth-child(even) { border-radius: 5px 16px 5px 16px; }
.otp input:focus { outline: none; border-color: var(--ink); box-shadow: 0 6px 0 -3px var(--gold); }
.otp input.filled { border-color: var(--leaf); background: #f1f7ee; }
.otp.bad input { border-color: var(--danger); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.otp-meta { text-align: center; font-size: .95rem; color: var(--ink-soft); }
.hint-dummy { margin-top: 1.2rem; padding: .7rem 1rem; border: 2px dashed var(--ink-soft); border-radius: var(--r-leaf-sm); font-size: .9rem; }

/* ============ PEMBAYARAN ============ */
.pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.6rem; align-items: start; }
.nota { background: var(--paper); border-radius: var(--r-leaf-lg); padding: 1.6rem; position: sticky; top: 90px; }
.nota::after {
  content: ""; display: block; height: 12px; margin: 1.2rem -1.6rem -1.6rem; border-radius: 0 0 30px 8px;
  background: radial-gradient(circle at 10px -3px, var(--sand) 7px, transparent 8px) 0 0 / 20px 12px repeat-x;
}
.nota dl { margin: 1rem 0; display: grid; gap: .5rem; }
.nota .line { display: flex; justify-content: space-between; gap: 1rem; }
.nota .line dt { color: var(--ink-soft); }
.nota .line dd { margin: 0; font-weight: 700; text-align: right; }
.nota .total { border-top: 2px dashed var(--line); padding-top: .8rem; font-family: var(--f-display); font-size: 1.5rem; }
.nota .invoice { font-size: .85rem; color: var(--ink-soft); }
.methods { display: grid; gap: .9rem; }
.method { background: var(--paper); border-radius: var(--r-leaf); border: 2px solid transparent; overflow: hidden; }
.method:nth-child(2) { border-radius: var(--r-leaf-alt); }
.method[data-open="true"] { border-color: var(--ink); }
.method > button.head {
  width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border: 0; background: transparent; text-align: left; min-height: 64px;
}
.method .radio { flex: none; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; }
.method[data-open="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-deep); }
.method .head b { font-family: var(--f-display); font-size: 1.15rem; display: block; }
.method .head small { color: var(--ink-soft); }
.method .sub { display: none; padding: 0 1.3rem 1.3rem; }
.method[data-open="true"] .sub { display: block; }
.bank-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.bank {
  min-height: 48px; padding: .5rem .8rem; background: #fffdf6; border: 2px solid var(--line); border-radius: 12px 3px 12px 3px; font-weight: 700; text-align: left;
}
.bank[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pay-bar { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
@media (max-width: 900px) { .pay-layout { grid-template-columns: 1fr; } .nota { position: static; order: -1; } }

/* halaman bayar khusus */
.timer-chip { display: inline-flex; align-items: baseline; gap: .6rem; background: var(--ink); color: var(--paper); padding: .55rem 1.1rem; border-radius: 12px 3px 12px 3px; }
.timer-chip b { font-family: var(--f-display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.timer-chip.low { background: var(--danger); }
.va-box { background: #fffdf6; border: 2px dashed var(--ink-soft); border-radius: var(--r-leaf); padding: 1.2rem 1.4rem; margin: 1.2rem 0; }
.va-num { font-family: var(--f-display); font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 700; letter-spacing: .05em; word-break: break-all; }
.qris { width: min(280px, 100%); aspect-ratio: 1; background: #fff; padding: 12px; border-radius: 12px 3px 12px 3px; border: 2px solid var(--ink); margin: 1.2rem 0; }
.qris canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.steps { padding-left: 1.2rem; color: var(--ink-soft); }
.sim { margin-top: 1.6rem; padding: 1rem 1.2rem; border: 2px dashed var(--ink-soft); border-radius: var(--r-leaf-sm); background: rgba(255, 253, 246, .8); }
.sim .row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.status-line { min-height: 1.6em; font-weight: 700; margin-top: .8rem; }

.overlay { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; text-align: center; background: var(--paper); padding: 1.5rem; }
.overlay.open { display: grid; }
.overlay.checking { background: rgba(16, 54, 74, .6); }
.overlay .box { background: var(--paper); border-radius: var(--r-leaf-lg); padding: 2rem 2.4rem; }
.ok-mark { position: relative; width: 190px; height: 190px; margin: 0 auto 1rem; }
.ok-mark img { position: absolute; inset: 34px; width: 122px; height: 122px; object-fit: contain; animation: mark-in .8s .35s ease both; }
.ok-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ok-mark circle { fill: none; stroke: var(--leaf-bright); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 540; stroke-dashoffset: 540; transform-origin: center; transform: rotate(-90deg); animation: draw 1.1s ease forwards; }
.ok-mark .tick { position: absolute; right: 6px; bottom: 6px; width: 54px; height: 54px; border-radius: 50%; background: var(--leaf); display: grid; place-items: center; transform: scale(0); animation: tick-in .4s 1.1s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.ok-mark .tick path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes mark-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes tick-in { to { transform: scale(1); } }
.x-mark { width: 150px; height: 150px; margin: 0 auto 1rem; }
.x-mark circle { fill: none; stroke: var(--danger); stroke-width: 5; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw .6s ease forwards; transform-origin: center; transform: rotate(-90deg); }
.x-mark path { fill: none; stroke: var(--danger); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw .35s .55s ease forwards; }
.x-mark path + path { animation-delay: .8s; }
.overlay.fading { animation: fade-out .7s ease forwards; }
@keyframes fade-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .ok-mark circle, .x-mark circle, .x-mark path { animation-duration: .01s; animation-delay: 0s; }
  .ok-mark .tick { animation-delay: 0s; }
}

/* ============ AKUN ============ */
.acct { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.4rem; }
.soon { background: var(--sand); border: 2px dashed var(--ink-soft); border-radius: var(--r-leaf); padding: 1.1rem 1.3rem; margin-bottom: .8rem; }
.soon b { display: block; font-family: var(--f-display); }
@media (max-width: 800px) { .acct { grid-template-columns: 1fr; } }

/* ============ PANEL PRATINJAU (khusus peninjauan, bukan bagian situs untuk peserta) ============ */
.preview-dev { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; font-family: var(--f-body); }
.preview-dev-toggle {
  min-height: 44px; padding: .55rem 1rem; border: 2px solid var(--ink); border-radius: 10px 3px 10px 3px;
  background: var(--gold); color: var(--ink); font-weight: 800; font-size: .85rem; box-shadow: var(--shadow-lift); cursor: pointer;
}
.preview-dev-body {
  position: absolute; right: 0; bottom: calc(100% + .6rem); width: min(280px, calc(100vw - 2rem));
  background: var(--ink); color: var(--paper); border-radius: var(--r-leaf-lg); padding: 1rem 1.1rem;
  box-shadow: var(--shadow-lift); max-height: 70vh; overflow-y: auto;
}
.preview-dev-body p { margin: 0 0 .7rem; font-size: .8rem; color: #cfe0e6; }
.preview-dev-row { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .9rem; }
.preview-dev-row button {
  min-height: 40px; border: 2px solid var(--paper); border-radius: 8px 3px 8px 3px; background: transparent;
  color: var(--paper); font-weight: 700; font-size: .82rem; cursor: pointer; padding: .4rem .6rem;
}
.preview-dev-row button:hover { background: rgba(248, 244, 233, .12); }
.preview-dev-pages { display: grid; gap: .3rem; border-top: 1px solid rgba(248, 244, 233, .25); padding-top: .7rem; }
.preview-dev-pages a { color: var(--paper); font-size: .85rem; font-weight: 600; padding: .25rem .3rem; border-radius: 6px; }
.preview-dev-pages a:hover, .preview-dev-pages a[aria-current="page"] { background: rgba(248, 244, 233, .14); }
@media print { .preview-dev { display: none; } }

/* ============ HALAMAN ARTIKEL ============ */
.back-link { display: inline-block; margin-bottom: .8rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
#head .cat { display: block; font-size: .85rem; font-weight: 700; color: var(--leaf); margin-bottom: .2rem; }
.artikel { padding: clamp(1.2rem, 3vw, 2.2rem); }
.artikel .cover { height: clamp(220px, 34vw, 400px); margin: 0 0 clamp(1.4rem, 3vw, 2.2rem); border-radius: 14px 4px 14px 4px; }
.artikel-body { max-width: 72ch; margin-inline: auto; }
.artikel-body p { font-size: 1.15rem; line-height: 1.85; margin: 0 0 1.3em; }
.artikel-body p.lead { font-size: 1.32rem; line-height: 1.6; font-weight: 600; color: var(--ink); }
.artikel-foot { max-width: 72ch; margin: 1.6rem auto 0; padding-top: 1.2rem; border-top: 2px solid var(--sand); display: flex; }
.like-heart { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.like-heart svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: fill .2s; }
.like-heart:hover { background: rgba(229, 72, 127, .1); border-color: #e5487f; color: #e5487f; }
.like-heart[aria-pressed="true"] { background: #fde4ee; border-color: #e5487f; color: #e5487f; }
.like-heart[aria-pressed="true"] svg { fill: #e5487f; }
.like-heart[aria-pressed="true"] svg { animation: heart-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes heart-pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .like-heart[aria-pressed="true"] svg { animation: none; } }
.related { margin-top: 3rem; }
.related h2 { margin-bottom: .3rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.rcard { display: flex; flex-direction: column; gap: .35rem; background: var(--paper); border-radius: var(--r-leaf); padding: 1.1rem; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.rcard:nth-child(2) { border-radius: var(--r-leaf-lg); }
.rcard:hover, .rcard:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.rcard .cover { height: 130px; border-radius: 10px 3px 10px 3px; margin-bottom: .5rem; }
.rcard .cat { font-size: .8rem; font-weight: 700; color: var(--leaf); }
.rcard h3 { font-size: 1.1rem; margin: 0; }
.rcard p { margin: 0; }
.rcard .more { margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--ink); }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }

/* ============ NOMOR HALAMAN (INFORMASI) ============ */
.pager { display: flex; justify-content: center; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.pg { min-width: 46px; height: 46px; padding: 0 .7rem; border: 2px solid var(--ink); border-radius: var(--r-leaf); background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.pg:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.pg[aria-current="page"] { background: var(--ink); color: var(--paper); cursor: default; }
.pg:disabled { opacity: .35; cursor: not-allowed; }
.pg-gap { min-width: 24px; text-align: center; font-weight: 700; color: var(--ink-soft); user-select: none; }

/* ============ LAMPIRAN & TAUTAN ARTIKEL ============ */
.artikel-body a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.artikel-body a:hover, .artikel-body a:focus-visible { background: rgba(217, 164, 65, .25); }
.lampiran { max-width: 72ch; margin: 2rem auto 0; }
.lampiran h2 { font-size: 1.2rem; margin-bottom: .7rem; }
.lampiran ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.fcard { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; background: var(--sand); border: 2px solid var(--line); border-radius: var(--r-leaf); color: var(--ink); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.fcard:hover, .fcard:focus-visible { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow-lift); }
.ficon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: var(--ink); color: var(--paper); border-radius: var(--r-leaf-sm); }
.ficon svg, .fdl svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.finfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.finfo b { overflow-wrap: anywhere; }
.finfo small { color: var(--ink-soft); }
.fdl { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); }
