/* CatatDuit — halaman versi interaktif. Token warna & huruf dari styles.css. */

/* ---------- umum ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, html:not(.js) .reveal { opacity: 1; transform: none; }
.sx { padding: 4.2rem 0; position: relative; overflow-x: clip; }
.sx-tint { background: var(--paper-deep); border-block: 1.5px dashed var(--line); }
.sx-head { margin-bottom: 2rem; }
.sx-head h2 { max-width: 18ch; }
.sx-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem; }
@media (min-width: 900px) { .sx { padding: 6rem 0; } .sx-head { margin-bottom: 2.6rem; } }
mark { background: linear-gradient(transparent 55%, rgb(233 169 58 / .55) 55%); color: inherit; font-weight: 700; padding: 0 .05em; }
.msg.is-new, .is-new { animation: pop .4s var(--ease) both; }
.kb-col { display: grid; gap: 4px; margin: 6px -5px 0; }
.kb-col .kb { justify-content: flex-start; }
.kb.is-press { background: var(--brand); color: #fff; }

/* segmen / pill */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; box-shadow: var(--sh-1); }
.seg button { font: 650 .9rem var(--f-body); color: var(--ink-2); background: transparent; border: 0; border-radius: 999px; padding: .55rem 1rem; min-height: 44px; cursor: pointer; transition: background-color .2s, color .2s; }
.seg button[aria-selected="true"] { background: var(--brand); color: #fff; }
.seg button:not([aria-selected="true"]):hover { background: var(--brand-tint); color: var(--ink); }
.pill { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; min-width: 92px; padding: .45rem 1rem;
  font: 700 .98rem var(--f-body); color: var(--ink); background: var(--card); border: 1.75px solid var(--ink); border-radius: 14px; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink); transition: transform .12s, box-shadow .12s, background-color .15s; }
.pill small { font-weight: 600; font-size: .78rem; color: var(--ink-3); }
.pill:hover { background: #fff; }
.pill:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.pill:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.pill-hemat { background: var(--in-tint); }
.pill-boros { background: var(--out-tint); }
.pill-ghost { flex-direction: row; gap: .4rem; border-style: dashed; box-shadow: none; background: transparent; min-width: 0; }
.pill-ghost:active { transform: translateY(1px); }

/* ---------- hero ---------- */
.hx { padding: 2.2rem 0 3rem; position: relative; overflow: clip; }
.hx-grid { display: grid; gap: 2.4rem; align-items: center; position: relative; }
.hx h1 { font-size: clamp(3rem, 1.3rem + 6.6vw, 6.2rem); line-height: .92; letter-spacing: -.045em; font-weight: 800; margin: 1.1rem 0 1.1rem; }
.hx-lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--ink-2); max-width: 26ch; }
.hx-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.hx-trust li { display: inline-flex; align-items: center; gap: .35rem; }
.hx-trust .ico { color: var(--in); }
.hx-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.hx-device { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hx-phone { height: 520px; }
.hx-chat .msg { font-size: .82rem; }
.jurus { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; max-width: 420px; }
.jurus-btn { --dur: 0s; position: relative; overflow: hidden; font: 650 .86rem var(--f-body); color: var(--ink-2); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem .85rem; min-height: 40px; cursor: pointer; transition: border-color .2s, color .2s; }
.jurus-btn::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.jurus-btn.is-on { border-color: var(--brand); color: var(--brand); background: #fff; }
.jurus-btn.is-on::after { animation: isi var(--dur) linear forwards; }
.jurus-btn:hover { border-color: var(--brand); color: var(--ink); }
@keyframes isi { to { transform: scaleX(1); } }
.msg-foto { padding: 5px; }
.thumb-struk { width: 118px; height: 84px; border-radius: 9px; background: linear-gradient(160deg, #fffdf8, #efe7d6); padding: 10px 12px; display: grid; gap: 5px; align-content: start; transform: rotate(-2deg); box-shadow: inset 0 0 0 1px #e1d6c0; }
.thumb-struk i { height: 4px; border-radius: 2px; background: #c9bea8; }
.thumb-struk i:nth-child(1) { width: 60%; justify-self: center; background: #8d816a; }
.thumb-struk i:nth-child(2n) { width: 85%; }
.thumb-struk i:nth-child(5) { width: 45%; opacity: .5; }
.msg-foto p { font-size: .72rem; color: var(--ink-3); margin: 4px 2px 0; }
@media (min-width: 900px) {
  .hx { padding: 3.6rem 0 4.6rem; }
  .hx-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
  .hx-phone { height: 560px; }
}

/* ---------- coba ketik ---------- */
.coba-grid { display: grid; gap: 2rem; align-items: start; }
.coba-row { display: flex; gap: .6rem; }
.coba-row input { flex: 1; min-width: 0; min-height: 60px; padding: 0 1.1rem; font: 600 1.15rem var(--f-body); color: var(--ink);
  background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
.coba-row input:focus { outline: 3px solid var(--amber); outline-offset: 2px; }
.coba-row .btn { min-height: 60px; padding: 0 1.4rem; border-radius: 14px; }
.coba-struk { min-height: 280px; max-width: 460px; width: 100%; margin: 0 auto; }
.cs-row { display: grid; grid-template-columns: 36px 1fr auto; gap: .75rem; align-items: center; padding: .7rem 0; border-bottom: 1.5px dashed var(--line-soft); }
.is-anim .cs-row { animation: pop .4s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.cs-ico { width: 36px; height: 36px; display: grid; place-items: center; font-size: 1.15rem; background: var(--paper); border-radius: 10px; }
.cs-mid { min-width: 0; display: flex; flex-direction: column; }
.cs-mid b { font-size: 1rem; }
.cs-mid small { color: var(--ink-3); font-size: .82rem; }
.cs-badge { align-self: flex-start; margin-top: .25rem; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--amber-deep); background: var(--amber-tint); padding: .1rem .5rem; border-radius: 999px; }
.cs-amt { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cs-row.is-out .cs-amt { color: var(--out); }
.cs-row.is-in .cs-amt { color: var(--in); }
.cs-row.is-skip { opacity: .85; }
.cs-row.is-skip .cs-ico { background: var(--amber-tint); }
.cs-total { margin-top: .8rem; padding-top: .7rem; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; font-weight: 750; font-variant-numeric: tabular-nums; }
.cs-total .in { color: var(--in); }
.cs-note { padding: 1.4rem .4rem; color: var(--ink-2); text-align: center; }
@media (min-width: 900px) { .coba-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* ---------- foto ---------- */
.foto-grid { display: grid; gap: 1.6rem; align-items: center; justify-items: center; }
.foto-pic { position: relative; width: min(300px, 100%); }
.foto-frame { position: relative; background: #fffdf7; padding: 1.4rem 1.2rem 1.6rem; font: 500 .86rem/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #3b3a33;
  box-shadow: var(--sh-2); transform: rotate(-2.5deg); transition: transform .5s var(--ease); }
.foto-frame.is-struk { -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 51% repeat-x, linear-gradient(#000 0 0) top / 100% 51% no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 51% repeat-x, linear-gradient(#000 0 0) top / 100% 51% no-repeat; }
.foto-frame.is-app { font-family: var(--f-body); border-radius: 22px; background: #fff; text-align: center; transform: rotate(2deg); padding: 1.6rem 1.3rem; }
.foto-pic.is-scan .foto-frame { transform: rotate(0); }
.fs-judul { text-align: center; font-weight: 800; letter-spacing: .08em; }
.fs-sub { text-align: center; font-size: .72rem; color: #8a8576; border-bottom: 1.5px dashed #d9d1bf; padding-bottom: .6rem; margin-bottom: .5rem; }
.fa-ok { width: 54px; height: 54px; margin: 0 auto .4rem; display: grid; place-items: center; font: 800 1.5rem var(--f-body); color: #fff; background: var(--in); border-radius: 50%; }
.fa-judul { font-weight: 700; color: var(--ink-2); }
.fa-total { font: 800 2rem var(--f-display); color: var(--ink); margin: .2rem 0; }
.fa-sub { font-size: .8rem; color: var(--ink-3); border-bottom: 1.5px dashed var(--line-soft); padding-bottom: .7rem; margin-bottom: .6rem; }
.f-baris { display: flex; justify-content: space-between; gap: 1rem; padding: .18rem .3rem; margin: 0 -.3rem; border-radius: 4px; transition: background-color .25s, color .25s; }
.is-app .f-baris { font-size: .88rem; text-align: left; }
.f-baris.is-buram span { filter: blur(1.6px); }
.f-baris.is-read { background: var(--in-tint); color: var(--in); }
.f-baris.is-skip { background: var(--amber-tint); text-decoration: line-through; color: var(--amber-deep); }
.f-total { border-top: 1.5px dashed #d9d1bf; margin-top: .4rem; padding-top: .45rem; font-weight: 800; }
.foto-scan { position: absolute; left: -6%; right: -6%; top: 0; height: 100%; opacity: 0; pointer-events: none; z-index: 2; }
.foto-scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--amber); box-shadow: 0 0 18px 6px rgb(233 169 58 / .55); }
.foto-pic.is-scan .foto-scan { opacity: 1; animation: scan 1.5s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes scan { from { transform: translateY(4%); } to { transform: translateY(96%); } }
.foto-flow { display: flex; gap: .5rem; transform: rotate(90deg); }
.foto-flow span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); animation: alir 1.2s infinite; }
.foto-flow span:nth-child(2) { animation-delay: .2s; }
.foto-flow span:nth-child(3) { animation-delay: .4s; }
@keyframes alir { 0%, 100% { background: var(--line); } 40% { background: var(--brand); } }
.foto-chat { width: min(380px, 100%); display: flex; flex-direction: column; gap: 1rem; }
.foto-log { height: 330px; border-radius: 22px; border: 1.5px solid var(--line); flex: none; }
.foto-go { align-self: stretch; }
@media (min-width: 900px) {
  .foto-grid { grid-template-columns: 1fr auto 1fr; gap: 2rem; }
  .foto-flow { transform: none; }
  .foto-pic { justify-self: end; }
  .foto-chat { justify-self: start; }
}

/* ---------- aman dipakai ---------- */
/* .wrap ngasih padding samping, tapi kotak ini punya padding sendiri → lebarnya dikurangi gutter biar nggak mentok tepi layar */
.aman-box.wrap { width: calc(100% - 2 * var(--gutter)); max-width: calc(1180px - 2 * var(--gutter)); }
.aman-box { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-l); padding: 1.4rem; box-shadow: 0 8px 0 var(--ink); }
.aman-top { display: grid; gap: 1.4rem; align-items: center; }
.aman-big { position: relative; padding: 1.1rem 1.3rem; border-radius: 16px; background: var(--in-tint); transition: background-color .4s; }
.aman-big.is-mid { background: var(--amber-tint); }
.aman-big.is-bad { background: var(--out-tint); }
.aman-k { font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.aman-v { font: 800 clamp(2.4rem, 1.6rem + 3.6vw, 3.8rem)/1 var(--f-display); letter-spacing: -.03em; margin: .35rem 0 .3rem; font-variant-numeric: tabular-nums; }
.aman-d { font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.aman-delta { position: absolute; top: .9rem; right: .9rem; font-weight: 800; font-size: .9rem; padding: .2rem .6rem; border-radius: 999px; animation: pop .4s var(--ease) both; }
.aman-delta.is-up { background: var(--in); color: #fff; }
.aman-delta.is-down { background: var(--out); color: #fff; }
.aman-rumus { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.rm { display: flex; flex-direction: column; padding: .55rem .85rem; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--paper); }
.rm span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.rm b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.rm-hasil { border-style: solid; border-color: var(--brand); background: var(--brand-tint); }
.rm-op { font: 800 1.4rem var(--f-display); color: var(--ink-3); }
.aman-strip { display: grid; grid-template-columns: repeat(var(--n, 31), minmax(0, 1fr)); gap: 3px; margin-top: 1.6rem; height: 120px; }
.hr { position: relative; border-radius: 5px; background: var(--paper); border: 1px solid var(--line-soft); overflow: hidden; }
.hr.is-tua { background: #f6ead3; }
.hr-bar { position: absolute; left: 0; right: 0; bottom: 0; top: 17px; background: var(--in); transform: scaleY(var(--h, 0)); transform-origin: bottom; transition: transform .5s var(--ease), background-color .3s; }
.hr.is-lebih .hr-bar { background: var(--out); }
.hr-tick { position: absolute; left: -1px; right: -1px; top: 17px; bottom: 0; transform: translateY(calc((1 - var(--t, 0)) * 100%)); opacity: 0; transition: transform .5s var(--ease), opacity .3s; }
.hr-tick::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ink); }
.hr.is-done .hr-tick { opacity: .8; }
.hr-tgl { position: absolute; top: 3px; left: 0; right: 0; text-align: center; font-size: .6rem; font-weight: 700; color: var(--ink-3); }
.hr.is-now { border: 2px solid var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--amber-tint); }
.hr.is-now .hr-tgl { color: var(--brand); }
.aman-axis { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.aman-tua { color: var(--amber-deep); margin-left: auto; margin-right: 6%; }
.aman-ctrl { margin-top: 1.4rem; display: grid; gap: .8rem; justify-items: center; text-align: center; }
.aman-q { font: 700 1.15rem var(--f-display); }
.aman-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.aman-tip { font-size: .92rem; color: var(--ink-2); min-height: 1.5em; }
@media (max-width: 640px) {
  .aman-box { padding: 1rem; }
  .aman-rumus { flex-wrap: nowrap; gap: .3rem; }
  .rm { padding: .4rem .5rem; min-width: 0; }
  .rm span { font-size: .58rem; letter-spacing: .03em; }
  .rm b { font-size: .84rem; white-space: nowrap; }
  .rm-op { font-size: 1rem; }
  .aman-strip { gap: 2px; height: 90px; }
  .hr-tgl { display: none; }
  .hr.is-now .hr-tgl, .hr:first-child .hr-tgl, .hr:last-child .hr-tgl { display: block; }
}
@media (min-width: 900px) {
  .aman-box { padding: 2rem 2.2rem 2.2rem; }
  .aman-top { grid-template-columns: auto 1fr; gap: 2.4rem; }
  .aman-rumus { justify-content: flex-end; }
}

/* ---------- duit ekstra ---------- */
.ekstra-grid { display: grid; gap: 2rem; align-items: center; }
.ekstra-chat { border-radius: 22px; border: 1.5px solid var(--line); padding: 16px 14px; min-height: 0; max-width: 420px; width: 100%; margin: 0 auto; justify-content: flex-start; }
.ekstra-chat .msg { font-size: .9rem; max-width: 92%; }
.kb-btn { cursor: pointer; border: 0; min-height: 40px; font: 650 .86rem var(--f-body); transition: background-color .15s, color .15s, transform .12s; }
.kb-btn:hover { background: var(--brand-tint); }
.kb-btn:active { transform: scale(.98); }
.kb-btn.is-press, .kb-btn.is-press:hover { background: var(--brand); color: #fff; }
.ekstra-hasil { border-left: 3px solid var(--in); }
.ekstra-vis { display: grid; gap: .9rem; }
.ev { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem; transition: border-color .3s, box-shadow .3s; }
.ev.is-hit { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); animation: hit .5s var(--ease); }
@keyframes hit { 30% { transform: scale(1.03); } }
.ev-k { font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ev-v { font-size: .9rem; font-weight: 650; color: var(--ink-2); margin-top: .35rem; }
.ev-big { font: 800 1.9rem var(--f-display); font-variant-numeric: tabular-nums; margin-top: .2rem; }
.ev-bar { position: relative; height: 16px; margin-top: .6rem; border-radius: 999px; background: var(--paper); overflow: hidden; }
.ev-bar i { position: absolute; inset: 0; background: var(--in); border-radius: inherit; transform: scaleX(var(--s, 1)); transform-origin: left; transition: transform .7s var(--ease), background-color .3s; }
.ev-bar i.is-lewat { background: linear-gradient(90deg, var(--in) 0 var(--batas, 80%), var(--out) var(--batas, 80%)); }
.ev-jar { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; column-gap: 1rem; align-items: center; }
.ev-jar .ev-k { grid-column: 1; }
.ev-jar .ev-v { grid-column: 1; grid-row: 2; align-self: start; }
.jar { grid-column: 2; grid-row: 1 / span 2; width: 58px; height: 74px; border: 3px solid var(--ink); border-top-width: 6px; border-radius: 10px 10px 16px 16px; position: relative; overflow: hidden; background: var(--paper); }
.jar i { position: absolute; inset: 0; background: var(--amber); transform: scaleY(var(--s, .2)); transform-origin: bottom; transition: transform .8s var(--ease); }
@media (min-width: 900px) { .ekstra-grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; } .ekstra-chat { margin: 0; } }

/* ---------- tanya ---------- */
.tanya-grid { display: grid; gap: 1.8rem; align-items: center; justify-items: center; }
@media (min-width: 900px) { .tanya-grid { max-width: 920px; } }
.tanya-q { display: flex; flex-direction: column; gap: .6rem; width: min(440px, 100%); }
.tq { text-align: left; font: 650 1rem var(--f-body); color: var(--ink); background: var(--card); border: 1.75px solid var(--line); border-radius: 16px 16px 16px 4px;
  padding: .85rem 1.1rem; min-height: 52px; cursor: pointer; transition: border-color .2s, background-color .2s, transform .15s; }
.tq::before { content: "💬 "; }
.tq:hover { border-color: var(--brand); transform: translateX(4px); }
.tq.is-on { border-color: var(--brand); background: var(--bubble-me); }
.tq-tolak::before { content: "🚫 "; }
.tanya-phone { height: 470px; }
.tanya-chat .msg { font-size: .86rem; }
/* kolom HP dikunci 310px: kalau "auto", lebarnya ikut panjang balasan chat → kolom kiri melar-mengkerut tiap ganti pertanyaan */
@media (min-width: 900px) { .tanya-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 3.5rem; } .tanya-q { justify-self: stretch; width: 100%; } }

/* ---------- rangkuman ---------- */
.rangkum-stage { display: grid; justify-items: center; }
.kartu-deck { position: relative; width: min(330px, 100%); height: 460px; touch-action: pan-y; outline: none; cursor: grab; }
.kartu-deck:focus-visible { outline: 3px solid var(--amber); outline-offset: 8px; border-radius: 24px; }
.kt { position: absolute; inset: 0; background: var(--card); border-radius: 22px; box-shadow: var(--sh-2); overflow: hidden; display: flex; flex-direction: column;
  --fan: var(--deck-fan, 1);
  transform: perspective(1000px) translateX(calc(var(--fx, 0) * var(--fan) * var(--fan-x, 34px))) translateY(calc(var(--pos) * 12px))
    rotate(calc(var(--fx, 0) * var(--fan) * var(--fan-r, 7deg))) scale(calc(1 - var(--pos) * .045)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  z-index: calc(10 - var(--pos)); transition: transform .6s var(--ease), opacity .3s; user-select: none; }
.kt.is-tilt { transition: transform .15s linear; }
.kt:not(.is-top) { opacity: .94; }
.kt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / .35), transparent 70%); }
.kt.is-tilt::after { opacity: 1; }
@media (max-width: 600px) { .kartu-deck { --fan-x: 16px; --fan-r: 4deg; } }
.kt-top { background: var(--brand); color: #fff; padding: 1.2rem 1.3rem 1.1rem; }
.kt-k { font-size: .7rem; font-weight: 750; letter-spacing: .12em; color: rgb(255 255 255 / .75); }
.kt-v { font: 800 2.7rem/1 var(--f-display); letter-spacing: -.03em; margin: .35rem 0 .5rem; }
.kt-n { display: inline-block; font-size: .8rem; font-weight: 750; padding: .2rem .6rem; border-radius: 999px; background: var(--amber); color: var(--ink); }
.kt-n.is-down { background: var(--in-tint); color: var(--in); }
.kt-kat { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; padding: .55rem 1.3rem 0; font-size: .9rem; }
.kt-kat i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--brand); width: var(--p); }
.kt-stat { display: grid; grid-template-columns: 1fr 1fr; padding: .9rem 1.3rem 0; font-size: .74rem; color: var(--ink-3); font-weight: 700; letter-spacing: .04em; }
.kt-stat p:nth-child(3) { grid-column: 2; grid-row: 1; }
.kt-stat b { font: 700 1rem var(--f-display); color: var(--ink); letter-spacing: 0; }
.kt-stat b:nth-of-type(2) { grid-column: 2; grid-row: 2; }
.kt-fakta { margin: auto 1rem 1rem; padding: .7rem .9rem; border: 2px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 4px 4px 0 var(--amber-deep); transform: rotate(-1deg); }
.kt-fakta small { display: block; font-size: .64rem; font-weight: 800; letter-spacing: .12em; color: var(--ink-3); }
.kt-fakta b { font: 700 1.02rem/1.25 var(--f-display); }
.kartu-ctrl { display: flex; align-items: center; gap: 1rem; margin-top: 2.4rem; }
.kartu-ctrl .pill { min-width: 52px; }
.kartu-dots { display: flex; gap: .4rem; }
.kartu-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background-color .2s, width .2s; }
.kartu-dots i.is-on { background: var(--brand); width: 24px; border-radius: 5px; }
.rk { width: 100%; display: grid; justify-items: center; }
.rk[hidden] { display: none; }
.gs { width: min(560px, 100%); background: #fff; border-radius: 16px; box-shadow: var(--sh-2); border: 1px solid var(--line-soft); overflow: hidden; }
.gs-kpi { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-soft); }
.gs-kpi div { padding: .8rem 1rem; border-right: 1px solid var(--line-soft); }
.gs-kpi div:last-child { border-right: 0; }
.gs-kpi small { display: block; font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.gs-kpi b { font: 800 1.3rem var(--f-display); }
.gs-kpi .in { color: var(--in); } .gs-kpi .out { color: var(--out); }
.gs-body { display: grid; grid-template-columns: 130px 1fr; gap: 1.2rem; align-items: center; padding: 1.1rem 1.1rem .4rem; }
.gs-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .86rem; }
.gs-leg li { display: grid; grid-template-columns: 10px 1fr auto; gap: .5rem; align-items: center; }
.gs-leg i { width: 10px; height: 10px; border-radius: 3px; }
.gs-k { padding: .6rem 1.1rem 0; font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.gs-bars { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 110px; padding: .4rem 1.1rem .8rem; }
.gs-bars i { flex: 1; height: 100%; background: #9cc3ad; border-radius: 3px 3px 0 0; transform: scaleY(var(--s, 1)); transform-origin: bottom; }
.gs-bars i.is-lebih { background: var(--out); }
.gs-garis { position: absolute; left: 1.1rem; right: 1.1rem; bottom: calc(.8rem + 44%); border-top: 2px dashed var(--ink); }
.gs-tabs { display: flex; gap: .2rem; padding: .4rem .6rem; background: var(--paper); font-size: .76rem; font-weight: 650; color: var(--ink-3); border-top: 1px solid var(--line-soft); overflow-x: auto; }
.gs-tabs span { padding: .3rem .6rem; border-radius: 6px; white-space: nowrap; }
.gs-tabs .is-on { background: #fff; color: var(--brand); box-shadow: var(--sh-1); }
@media (max-width: 420px) { .gs-body { grid-template-columns: 1fr; justify-items: center; } .gs-donut { width: 130px; } }

/* ---------- harga (ringkas) ---------- */
#harga .price-pair { margin-top: 0; }

/* ---------- gerak minimal ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .jurus-btn.is-on::after, .foto-pic.is-scan .foto-scan, .foto-flow span { animation: none; }
  .kt, .hr-bar, .hr-tick, .ev-bar i, .jar i, .gs-bars i { transition: none; }
}

/* ---------- paket kredit (statis) ---------- */
.paket-intro { margin-top: 1rem; max-width: 46rem; color: var(--ink-2); }
.paket-grid { display: grid; gap: 1.4rem; }
.paket-card { background: var(--card); border: 1.5px solid var(--line); border-top: 6px solid var(--ink); border-radius: var(--r-m); box-shadow: var(--sh-1); padding: 1.3rem 1.2rem 1.4rem; display: grid; gap: .3rem; align-content: start; }
.paket-card:nth-child(2) { border-top-color: var(--amber); }
.paket-img { width: 100%; max-width: 220px; height: auto; margin-bottom: .6rem; }
.paket-kredit { color: var(--ink-2); font-weight: 650; }
.paket-harga { font: 800 2.4rem/1.05 var(--f-display); letter-spacing: -.03em; color: var(--brand); }
.paket-desc { color: var(--ink-2); font-size: .95rem; margin-top: .4rem; }
.paket-cara { margin-top: .7rem; padding-top: .7rem; border-top: 1.5px dashed var(--line); font-size: .92rem; font-weight: 600; color: var(--ink); }
.paket-note { margin-top: 1.6rem; max-width: 52rem; color: var(--ink-2); font-size: .95rem; }
@media (min-width: 800px) { .paket-grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; } }
.foot-biz { font-weight: 600; color: var(--ink); }
.foot-k { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.foot-kontak a { font-weight: 650; }
@media (min-width: 900px) { .foot-kontak { grid-column: 1 / -1; } }

/* ---------- halaman hukum (syarat, privasi) ---------- */
.legal { padding: 2.5rem 0 4rem; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.05; letter-spacing: -.025em; font-weight: 780; }
.legal-meta { margin: .6rem 0 1.6rem; color: var(--ink-3); font-size: .9rem; }
.legal h2 { font-size: 1.4rem; line-height: 1.15; margin: 2.2rem 0 .6rem; letter-spacing: -.015em; scroll-margin-top: 80px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: .7rem; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: .6rem 0; display: grid; gap: .4rem; }
.legal table { width: 100%; border-collapse: collapse; margin: .8rem 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: .5rem .6rem; border-bottom: 1.5px dashed var(--line); }
.legal th { color: var(--ink); }
.legal-back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
