:root {
  --ink: #1B1B2F;
  --cream: #FFF6E0;
  --yellow: #FFC93C;
  --red: #FF595E;
  --blue: #3A86FF;
  --teal: #2EC4B6;
  --purple: #C77DFF;
  --green: #4ADE80;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  background: var(--cream);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  line-height: 1.5;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: 'Lilita One', 'Nunito', sans-serif; font-weight: 400; }
a { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Lilita One', sans-serif; font-size: 28px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.help-link { padding: 6px 16px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); font-weight: 800; font-size: 15px; text-decoration: none; transition: transform .08s, box-shadow .08s; }
.help-link:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible, .chip:focus-visible, .item:focus-visible, .help-link:focus-visible, .dock a:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.btn.primary { background: var(--red); }
.btn.go { background: var(--green); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--ink); }

.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; padding: 4px 16px; background: var(--teal); border: 3px solid var(--ink); border-radius: 999px; font-weight: 800; font-size: 15px; margin-bottom: 18px; }
h1 { font-size: clamp(40px, 6.2vw, 70px); line-height: 1.06; }
.nowrap { white-space: nowrap; }
mark { display: inline-block; padding: 0 12px; background: var(--yellow); border-radius: 12px; transform: rotate(-1.5deg); color: var(--ink); }
.lead { margin-top: 20px; max-width: 520px; font-size: 19px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

.hero-art { position: relative; padding: 18px; }
.hero-art::before { content: ''; position: absolute; width: 38%; aspect-ratio: 1; left: -2%; bottom: -4%; background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%; }
.hero-art::after { content: ''; position: absolute; width: 20%; aspect-ratio: 1; right: 0; top: -4%; background: var(--blue); border: 3px solid var(--ink); border-radius: 14px; transform: rotate(12deg); }
.sample { position: relative; z-index: 1; display: grid; gap: 14px; padding: 22px; background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
.sample-title { font-weight: 800; font-size: 14px; }
.sample-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 14px; border: 3px solid var(--ink); border-radius: 14px; }
.sample-row:nth-of-type(1) { background: var(--green); }
.sample-row:nth-of-type(2) { background: var(--yellow); }
.sample-row:nth-of-type(3) { background: var(--purple); }
.sample-row strong { display: block; font-size: 16px; }
.sample-row span { font-size: 13px; font-weight: 700; }
.bar { grid-column: 1 / -1; height: 14px; background: #fff; border: 3px solid var(--ink); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); }

.pill { padding: 2px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 99px; font-style: normal; font-size: 13px; font-weight: 800; white-space: nowrap; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 24px; }
.points article { padding: 24px; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
.points article:nth-child(1) { background: var(--yellow); }
.points article:nth-child(2) { background: var(--teal); }
.points article:nth-child(3) { background: var(--purple); }
.points h3 { margin: 16px 0 6px; font-size: 26px; }
.points p { font-weight: 700; }

.tile { flex: none; display: grid; place-items: center; width: 48px; height: 48px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; }
.tile.big { width: 64px; height: 64px; border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); }
.ico { display: inline-flex; }
.ico svg { width: 22px; height: 22px; display: block; }
.tile .ico svg { width: 26px; height: 26px; }

.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 48px); }
.section-head p { margin-top: 6px; font-weight: 700; }
.order, .page-cek, .page-riwayat, .legal { padding: 40px 0 16px; }
.faq { padding: 56px 0 72px; }
.how { padding-top: 56px; }

.card { background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); padding: 24px; }
.order-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.order-grid > * { min-width: 0; }
.detail { position: sticky; top: 90px; }
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 26px; }
.step-title b { display: inline-grid; place-items: center; width: 38px; height: 38px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 10px; font-weight: 400; font-size: 21px; }

.chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 4px 10px 2px; margin-bottom: 8px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; font-weight: 800; font-size: 15px; }
.chip:hover { box-shadow: 3px 3px 0 var(--ink); }
.chip.on { background: var(--ink); color: var(--cream); }
.chip small { font-weight: 800; opacity: .65; }

.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 800; font-size: 14px; }
input, select, textarea { width: 100%; padding: 11px 14px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; font-weight: 700; outline: none; }
input:focus, select:focus, textarea:focus { box-shadow: 4px 4px 0 var(--blue); }
input::placeholder, textarea::placeholder { color: #8a8aa3; font-weight: 600; }
textarea { resize: vertical; min-height: 100px; }
select { text-overflow: ellipsis; }

.list { display: grid; gap: 12px; max-height: 540px; overflow-y: auto; padding: 4px 8px 8px 4px; }
.item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); text-align: left; transition: transform .08s, box-shadow .08s; }
.item:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.item.on { background: var(--yellow); }
.item-text { display: grid; gap: 6px; min-width: 0; }
.item-name { font-weight: 800; font-size: 16px; line-height: 1.3; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; font-weight: 700; }
.item-meta b { padding: 1px 10px; background: var(--green); border: 2px solid var(--ink); border-radius: 99px; font-weight: 800; }
.tag { padding: 1px 10px; background: var(--purple); border: 2px solid var(--ink); border-radius: 99px; font-weight: 800; }
.state { padding: 28px 8px; text-align: center; font-weight: 700; }
.more { width: 100%; margin-top: 16px; }

.empty { padding: 12px 0; font-weight: 700; }
.svc-head { display: flex; align-items: center; gap: 14px; }
.svc-name { font-size: 22px; line-height: 1.2; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.svc-meta span { padding: 2px 12px; background: var(--cream); border: 2px solid var(--ink); border-radius: 99px; font-size: 14px; font-weight: 700; }
.svc-meta b { font-weight: 800; }
.desc { margin-bottom: 18px; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 12px; }
.desc summary { font-weight: 800; }
.desc p { margin-top: 8px; font-size: 14px; font-weight: 600; white-space: pre-line; }
.form { display: grid; gap: 16px; }
.hint { font-size: 13px; font-weight: 700; color: #55557a; }
.hint.err, .form-error { color: #d7263d; font-weight: 800; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
.total span { font-weight: 800; }
.total strong { font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 32px; }
.pay { width: 100%; }

.check-card { display: grid; gap: 18px; }
.check-card h2 { font-size: 36px; }
.check-card p { font-weight: 700; }
.check-card form { display: flex; gap: 14px; }
.check-card input { text-transform: uppercase; letter-spacing: .04em; }
.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; }
.recent div { display: flex; flex-wrap: wrap; gap: 8px; }
.recent button { padding: 3px 12px; background: var(--cream); border: 2px solid var(--ink); border-radius: 99px; font-weight: 800; font-size: 13px; }
.recent button:hover { background: var(--yellow); }

.faq-list { display: grid; gap: 16px; margin-bottom: 28px; }
.faq details { padding: 16px 20px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
.faq summary { font-weight: 800; font-size: 18px; cursor: pointer; }
.faq details[open] { background: var(--yellow); }
.faq details p { margin-top: 10px; font-weight: 700; }

.foot { padding: 24px 0 28px; background: var(--ink); color: var(--cream); border-top: 3px solid var(--ink); font-weight: 700; font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot a { color: var(--cream); font-weight: 800; }

dialog { width: min(500px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); }
dialog::backdrop { background: rgba(27, 27, 47, .62); }
.sheet { display: grid; gap: 18px; padding: 22px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-head h3 { font-size: 26px; }
.code { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 800; font-size: 14px; }
.code button { padding: 1px 10px; background: var(--cream); border: 2px solid var(--ink); border-radius: 99px; font-weight: 800; font-size: 12px; }
.code button:hover { background: var(--yellow); }
.close { width: 42px; height: 42px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); font-size: 24px; font-weight: 800; line-height: 1; transition: transform .08s, box-shadow .08s; }
.close:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.status { display: grid; gap: 4px; padding: 14px 18px; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
.status strong { font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 24px; }
.status p { font-weight: 700; font-size: 14px; }
.status.wait { background: var(--yellow); }
.status.ok { background: var(--green); }
.status.bad { background: var(--red); }

.qr { display: grid; justify-items: center; gap: 8px; padding: 18px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; }
.qr img { width: min(260px, 100%); aspect-ratio: 1; object-fit: contain; }
.qr strong { font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 34px; }
.qr small { font-weight: 700; text-align: center; }
.count { font-variant-numeric: tabular-nums; font-weight: 800; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.steps div { padding: 8px 4px; background: #fff; border: 3px solid var(--ink); border-radius: 10px; font-weight: 800; font-size: 13px; text-align: center; }
.steps .done { background: var(--green); }
.steps .active { background: var(--yellow); }
.steps .failed { background: var(--red); }

.progress { display: grid; gap: 6px; font-weight: 800; font-size: 14px; }
.info { display: grid; gap: 10px; margin: 0; padding: 14px 16px; background: var(--cream); border: 3px solid var(--ink); border-radius: 14px; }
.info div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.info dt { font-weight: 700; }
.info dd { margin: 0; text-align: right; font-weight: 800; overflow-wrap: anywhere; }
.sheet-actions { display: grid; gap: 12px; }

.how-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.how-list li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
.how-list li:nth-child(1) b { background: var(--yellow); }
.how-list li:nth-child(2) b { background: var(--teal); }
.how-list li:nth-child(3) b { background: var(--purple); }
.how-list b { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid var(--ink); border-radius: 12px; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 24px; }
.how-list h3 { font-size: 22px; margin-bottom: 4px; }
.how-list p { font-weight: 700; font-size: 15px; }

.page-cek, .page-riwayat, .legal { max-width: 760px; }
.tips { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.tips article { padding: 18px 20px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
.tips article:nth-child(2) { background: var(--teal); }
.tips h3 { font-size: 21px; margin-bottom: 4px; }
.tips p { font-weight: 700; font-size: 15px; }

.legal-card h3 { margin: 28px 0 8px; font-size: 24px; }
.legal-card h3:first-child { margin-top: 0; }
.legal-card p, .legal-card li { font-weight: 700; }
.legal-card ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.legal-card .btn { margin-top: 16px; }

.btn.small { padding: 6px 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.pill.ok { background: var(--green); }
.pill.wait { background: var(--yellow); }
.pill.bad { background: var(--red); }

.history { display: grid; gap: 18px; }
.h-item { display: grid; gap: 12px; padding: 18px 20px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
.h-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.h-name { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 17px; line-height: 1.3; }
.h-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; font-weight: 700; }
.h-code { padding: 0 10px; background: var(--cream); border: 2px solid var(--ink); border-radius: 99px; font-weight: 800; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.empty-card { display: grid; justify-items: start; gap: 10px; }
.empty-card h3 { font-size: 26px; }
.empty-card p { font-weight: 700; }
.history-actions { display: grid; justify-items: start; gap: 12px; margin-top: 24px; }
.history-actions p { font-size: 14px; font-weight: 700; }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 3px solid var(--ink); }
.dock-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(600px, 100%); margin: 0 auto; }
.dock a { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border: 3px solid transparent; border-radius: 14px; font-weight: 800; font-size: 13px; text-decoration: none; transition: transform .08s, box-shadow .08s; }
.dock a span { white-space: nowrap; }
.dock a:hover { background: #fff; border-color: var(--ink); }
.dock a.on { background: var(--yellow); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-grid, .order-grid { grid-template-columns: 1fr; }
  .detail { position: static; }
  .points { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .how-list { grid-template-columns: 1fr; }
  .tips { grid-template-columns: 1fr; }
  .list { max-height: 440px; }
}

@media (max-width: 350px) {
  .dock .long { display: none; }
}

@media (max-width: 480px) {
  .dock a { font-size: 12px; }
  .dock-inner { gap: 4px; }
  .dock a { padding: 6px 2px; }
  .check-card form { flex-direction: column; }
  .card { padding: 18px; }
  .top-inner { gap: 10px; }
  .brand { gap: 8px; font-size: 22px; }
  .brand-mark { width: 38px; height: 38px; }
  .help-link { padding: 4px 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .item, .help-link, .dock a, .close { transition: none; }
}
