/* Simulasi kasir di tablet hero (21 Nov 2026). Semua ukuran .pos dalam "px desain" 1034x686; JS menskalakan & memiringkan agar pas di layar tablet pada gambar. */
.hero2 .h2v { z-index: 5; }
.hero2 .fig { position: relative; z-index: 6; width: 100%; max-width: 860px; margin-bottom: -2px; animation: h2Rise 1.25s cubic-bezier(.2,.7,.2,1) both; }
.hero2 .fig .girl { animation: none; max-width: none; width: 100%; margin: 0; }
@media (max-width: 900px) { .hero2 .fig { max-width: 440px; } }
@media (prefers-reduced-motion: reduce) { .hero2 .fig { animation: none; } }

/* titik sorot di layar tablet (mengikuti sudut layar lewat transform dari JS) */
.hot { position: absolute; left: 0; top: 0; width: 1034px; height: 686px; border: 0; padding: 0; margin: 0; background: transparent; border-radius: 26px; cursor: pointer; transform-origin: 0 0; z-index: 6; opacity: 0;
  animation: hotIn .6s ease 1.4s both, hotPulse 2.6s ease-out 2s infinite; transition: background .2s; }
.hot:hover, .hot:focus-visible { background: rgba(196,181,253,.18); outline: none; }
.hot.gone { opacity: 0 !important; pointer-events: none; animation: none; }
@keyframes hotIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hotPulse { 0% { box-shadow: 0 0 0 0 rgba(196,181,253,.75); } 70%, 100% { box-shadow: 0 0 0 46px rgba(196,181,253,0); } }

.hint { position: absolute; z-index: 7; left: 75%; top: 71.5%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; pointer-events: none;
  background: #fff; color: #3B1FA0; font: 700 13px/1 var(--b); padding: 9px 14px 9px 11px; border-radius: 999px; box-shadow: 0 10px 28px rgba(8,4,30,.4); opacity: 0; animation: hotIn .6s ease 1.7s both, hintBob 2.4s ease-in-out 2.3s infinite; transition: opacity .2s; }
.hint .ms { font-size: 18px; color: var(--v); font-variation-settings: 'FILL' 1; }
.hint.gone { opacity: 0 !important; animation: none; }
.hint .ht { display: none; }
@media (hover: none) { .hint .hv { display: none; } .hint .ht { display: inline; } }
@keyframes hintBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (max-width: 900px) { .hint { font-size: 12px; padding: 8px 12px 8px 9px; left: 50%; top: 77%; } }

/* panel layar (menyala lalu membesar) */
.scr { position: absolute; left: 0; top: 0; width: 1034px; height: 686px; z-index: 9; transform-origin: 0 0; border-radius: 26px; overflow: hidden; opacity: 0; pointer-events: none; will-change: transform;
  transition: transform .6s cubic-bezier(.2,.85,.2,1), opacity .3s ease, box-shadow .4s; box-shadow: 0 0 0 rgba(8,4,30,0); background: #fff; }
.scr.on { opacity: 1; pointer-events: auto; box-shadow: 0 60px 140px rgba(8,4,30,.65), 0 0 0 5px rgba(196,181,253,.35); }
@media (prefers-reduced-motion: reduce) { .scr { transition: opacity .01s; } .hot, .hint { animation: none; opacity: 1; } }

/* isi kasir mini */
.pos { width: 1034px; height: 686px; display: flex; flex-direction: column; background: #fff; color: #1B1640; font-family: var(--b); font-size: 20px; line-height: 1.25; -webkit-font-smoothing: antialiased; user-select: none; position: relative; }
.pos * { box-sizing: border-box; }
.pos :where(button) { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.demo-open .dots, .demo-open .dock { opacity: 0; pointer-events: none; transition: opacity .25s; }
.pos .ms { font-family: 'Material Symbols Rounded'; font-weight: 500; font-size: 28px; line-height: 1; vertical-align: middle; font-variation-settings: 'FILL' 1; }
.pos-h { height: 76px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 22px 0 26px; background: linear-gradient(90deg, #2A1470, #4A22B8); color: #fff; }
.pos-h .lg { display: flex; align-items: center; gap: 12px; font: 700 27px/1 var(--f); letter-spacing: -.02em; width: 270px; }
.pos-h .lg img { height: 40px; width: 40px; }
.pos-h .ti { flex: 1; text-align: center; font: 700 24px/1 var(--f); }
.pos-h .st { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 600; color: #E8E0FF; }
.pos-h .on { display: inline-flex; align-items: center; gap: 7px; } .pos-h .on i { width: 11px; height: 11px; border-radius: 50%; background: #22C55E; display: block; }
.pos-h .tk { background: #EA6A12; color: #fff; padding: 7px 14px; border-radius: 10px; font-weight: 700; font-size: 17px; }
.pos-h .x { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; transition: background .2s; }
.pos-h .x:hover { background: rgba(255,255,255,.28); } .pos-h .x .ms { font-size: 26px; }
.pos-b { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 336px; }
.pos-l { padding: 20px 22px 0; display: flex; flex-direction: column; min-width: 0; background: #FBFAFF; }
.pos-sr { height: 54px; border-radius: 14px; background: #fff; border: 2px solid #EEEAF9; display: flex; align-items: center; gap: 10px; padding: 0 16px; color: #8F8AAE; }
.pos-sr input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 20px var(--b); color: #1B1640; user-select: text; }
.pos-sr input::placeholder { color: #A9A4C4; }
.pos-ct { display: flex; gap: 10px; margin: 14px 0 16px; flex-wrap: wrap; }
.pos-ct button { padding: 10px 18px; border-radius: 12px; background: #EDE9FE; color: #5B21B6; font-weight: 700; font-size: 18px; transition: background .15s, color .15s; }
.pos-ct button.a { background: #6D28D9; color: #fff; }
.pos-gr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; overflow: hidden; align-content: start; }
.pos-pd { background: #fff; border-radius: 18px; padding: 12px; text-align: left; box-shadow: 0 2px 10px rgba(60,30,150,.08); border: 2px solid transparent; transition: transform .12s, border-color .15s, box-shadow .15s; position: relative; }
.pos-pd:hover { border-color: #C4B5FD; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60,30,150,.16); }
.pos-pd:active { transform: scale(.97); }
.pos-pd .tl { height: 74px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px; }
.pos-pd .tl .ms { font-size: 40px; }
.pos-pd b { display: block; font-size: 19px; line-height: 1.2; min-height: 46px; }
.pos-pd span.pr { display: block; color: #E11D2A; font-weight: 800; font-size: 19px; margin-top: 2px; }
.pos-pd .bd { position: absolute; top: 8px; right: 8px; min-width: 30px; height: 30px; border-radius: 15px; background: #6D28D9; color: #fff; font: 800 16px/30px var(--b); text-align: center; padding: 0 8px; }
.pos-empty { grid-column: 1 / -1; text-align: center; color: #8F8AAE; padding: 40px 0; font-size: 19px; }
.pos-r { border-left: 2px solid #EEEAF9; padding: 16px 16px 16px; display: flex; flex-direction: column; background: #fff; min-width: 0; }
.pos-r .tp { display: flex; gap: 10px; }
.pos-r .dl { flex: 1; height: 52px; border-radius: 13px; background: #5B21E6; color: #fff; font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; }
.pos-r .dl em { position: absolute; top: 5px; right: 10px; font: 700 13px var(--b); font-style: normal; }
.pos-r select { margin-top: 10px; height: 50px; border-radius: 13px; border: 2px solid #EEEAF9; background: #F6F3FF; color: #5B21B6; font: 700 19px var(--b); padding: 0 12px; outline: 0; cursor: pointer; width: 100%; }
.pos-it { flex: 1; min-height: 0; overflow: hidden; margin: 12px 0 8px; }
.pos-ln { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 11px 0; border-bottom: 2px solid #F2EFFB; }
.pos-ln b { font-size: 19px; } .pos-ln .sb { font-weight: 800; color: #E11D2A; font-size: 19px; text-align: right; }
.pos-ln .qt { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.pos-ln .qt button { width: 36px; height: 36px; border-radius: 10px; background: #EDE9FE; color: #5B21B6; display: grid; place-items: center; }
.pos-ln .qt button .ms { font-size: 22px; } .pos-ln .qt i { min-width: 28px; text-align: center; font: 800 20px var(--b); font-style: normal; }
.pos-ln .qt .rm { margin-left: auto; background: #FEE2E2; color: #DC2626; }
.pos-no { text-align: center; color: #8F8AAE; font-size: 18px; padding: 26px 8px; line-height: 1.4; }
.pos-fn { font-size: 14px; color: #A29DBF; text-align: center; margin-bottom: 8px; }
.pos-by { height: 62px; border-radius: 15px; background: linear-gradient(90deg, #5B21E6, #7C3AED); color: #fff; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 8px 20px rgba(91,33,230,.35); transition: transform .12s, filter .15s; width: 100%; }
.pos-by:hover { filter: brightness(1.08); } .pos-by:active { transform: scale(.98); }
.pos-by[disabled] { background: #D8D3EA; box-shadow: none; cursor: not-allowed; }
.pos-by i { width: 2px; height: 28px; background: rgba(255,255,255,.4); display: block; }
/* pembayaran & sukses */
.pos-ov { position: absolute; inset: 0; background: rgba(20,12,60,.68); display: grid; place-items: center; z-index: 5; animation: posFade .25s ease both; }
@keyframes posFade { from { opacity: 0; } to { opacity: 1; } }
.pos-cd { width: 600px; background: #fff; border-radius: 26px; padding: 30px 32px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: posPop .35s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes posPop { from { opacity: 0; transform: scale(.94) translateY(16px); } to { opacity: 1; transform: none; } }
.pos-cd h3 { font: 800 28px/1.1 var(--f); letter-spacing: -.02em; margin-bottom: 4px; }
.pos-cd .sm { color: #8F8AAE; font-size: 18px; margin-bottom: 18px; }
.pos-cd .tt { font: 800 46px/1 var(--f); color: #5B21E6; margin: 6px 0 20px; letter-spacing: -.03em; }
.pos-mt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.pos-mt button { border-radius: 14px; border: 2px solid #EEEAF9; padding: 14px 6px 11px; font-weight: 700; font-size: 17px; color: #4B3F8F; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: border-color .15s, background .15s; }
.pos-mt button .ms { font-size: 30px; color: #7C3AED; }
.pos-mt button.a { border-color: #6D28D9; background: #F3EEFF; }
.pos-cs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pos-cs button { padding: 10px 16px; border-radius: 12px; background: #F3F0FC; font-weight: 700; font-size: 18px; color: #3B1FA0; border: 2px solid transparent; }
.pos-cs button.a { border-color: #6D28D9; background: #EDE5FF; }
.pos-kb { font-size: 19px; font-weight: 700; color: #16A34A; margin-bottom: 14px; min-height: 26px; }
.pos-ac { display: flex; gap: 12px; }
.pos-ac button { flex: 1; height: 56px; border-radius: 14px; font-weight: 800; font-size: 20px; }
.pos-ac .g { background: #F0EDFA; color: #5B21B6; } .pos-ac .p { background: linear-gradient(90deg, #5B21E6, #7C3AED); color: #fff; } .pos-ac .p[disabled] { background: #D8D3EA; cursor: not-allowed; }
.pos-ok { text-align: center; }
.pos-ok .ck { width: 92px; height: 92px; margin: 0 auto 12px; border-radius: 50%; background: #DCFCE7; display: grid; place-items: center; animation: posPop .5s cubic-bezier(.2,.9,.3,1.3) both; }
.pos-ok .ck .ms { font-size: 60px; color: #16A34A; }
.pos-rc { text-align: left; margin: 14px 0 16px; border-top: 2px dashed #E4DFF4; padding-top: 12px; font-size: 18px; }
.pos-rc div { display: flex; justify-content: space-between; padding: 3px 0; } .pos-rc .b { font-weight: 800; font-size: 20px; }
.pos-ok a { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.pos-ac a.p { flex: 1; height: 56px; border-radius: 14px; font-weight: 800; font-size: 20px; background: linear-gradient(90deg, #5B21E6, #7C3AED); color: #fff; }
.pos-nt { font-size: 15px; color: #8F8AAE; text-align: center; margin-top: 12px; }

/* HP/tablet: badan orang memudar di bawah (gambar dipotong di pinggang), bukan terpotong lurus */
@media (max-width: 900px) {
  .hero2 .fig .girl { -webkit-mask-image: linear-gradient(to bottom, #000 66%, rgba(0,0,0,.55) 86%, transparent 100%); mask-image: linear-gradient(to bottom, #000 66%, rgba(0,0,0,.55) 86%, transparent 100%); }
  .hero2 .fig { padding-bottom: 6px; }
}
