/* =====================================================================
   SEFORAA – "Prosesnya" Pilihan B (halaman Harga)
   Pasangan: includes/proses.php + assets/js/seforaa-proses.js
   Tanpa JS / ponsel: empat tahap tersusun ke bawah, adegan dalam keadaan akhir.
   .is-tabs (dipasang JS di desktop): rel di atas, satu tahap tampil.
   ===================================================================== */
.ps-sec { --ps-cream: #FBF6F4; --ps-ok: #16A34A; }

/* ---------- tahap (dasar: tersusun) ---------- */
.ps-steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 64px; }
.ps-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.ps-no { display: block; font-size: clamp(64px, 7vw, 104px); font-weight: 800; line-height: .9; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(242, 184, 190, .55); }
.ps-copy h3 { margin: 14px 0 12px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.ps-copy p { margin: 0 0 20px; max-width: 42ch; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .8); }
.ps-result { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.ps-result small { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pg-maroon); background: var(--pg-pink); }
.ps-rail[hidden], .ps-ctrl[hidden] { display: none; }

/* ---------- kartu adegan ---------- */
.ps-scene {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 380px; padding: 26px; border-radius: 24px; overflow: hidden;
  background: var(--ps-cream) radial-gradient(rgba(105, 19, 27, .08) 1px, transparent 1px) 0 0 / 18px 18px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.ps-win { width: 100%; max-width: 470px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 26px 50px -28px rgba(42, 8, 12, .5), 0 0 0 1px rgba(105, 19, 27, .08); }
.ps-win-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid rgba(51, 51, 51, .08); font-size: 12px; color: var(--pg-slate); }
.ps-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E8DCDC; }
.ps-win-bar span { margin-left: 8px; font-weight: 600; color: var(--pg-ink); }

/* 1. demo */
.ps-demo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; padding: 18px; }
.ps-chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; border-bottom: 2px solid rgba(51, 51, 51, .12); }
.ps-chart i { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: linear-gradient(var(--pg-accent), var(--pg-maroon)); transform-origin: bottom center; }
.ps-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ps-rows li { padding: 11px 12px; border-radius: 9px; background: #FAF7F6; }
.ps-rows i { display: block; width: var(--w); height: 7px; border-radius: 4px; background: #E6DBDB; }
.ps-cursor { position: absolute; left: 22px; top: 70px; width: 26px; height: 26px; fill: var(--pg-ink); stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); pointer-events: none; }
.ps-bubble { margin: 0; max-width: 300px; padding: 10px 16px; border-radius: 16px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.ps-bubble.is-ask { align-self: flex-start; margin-left: 4%; color: var(--pg-ink); background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 10px 20px -12px rgba(42, 8, 12, .4); }
.ps-bubble.is-us { align-self: flex-end; margin-right: 4%; color: #fff; background: var(--pg-maroon); border-bottom-right-radius: 4px; }

/* 2. analisis */
.ps-map { display: flex; align-items: center; width: 100%; max-width: 500px; }
.ps-node { flex: none; width: 128px; padding: 14px 12px; border-radius: 14px; text-align: center; background: #fff; box-shadow: 0 16px 28px -18px rgba(42, 8, 12, .5), 0 0 0 1px rgba(105, 19, 27, .1); }
.ps-node b { display: block; font-size: 15px; color: var(--pg-maroon); }
.ps-node span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.35; color: var(--pg-slate); }
.ps-conn { flex: 1; height: 2px; min-width: 14px; background: var(--pg-accent); transform-origin: left center; }
.ps-check { list-style: none; margin: 10px 0 0; padding: 0; width: 100%; max-width: 400px; display: grid; gap: 9px; }
.ps-check li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 11px; background: #fff; font-size: 14px; font-weight: 600; color: var(--pg-ink); }
.ps-check i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ps-ok); }
.ps-check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* 3. penawaran */
.ps-doc { width: 100%; max-width: 400px; padding: 22px 24px 18px; border-radius: 14px; background: #fff; box-shadow: 0 26px 50px -28px rgba(42, 8, 12, .5), 0 0 0 1px rgba(105, 19, 27, .08); }
.ps-doc-t { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--pg-maroon); }
.ps-doc-t b { font-size: 17px; color: var(--pg-maroon); }
.ps-doc-t span { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--pg-slate); }
.ps-doc-r { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(51, 51, 51, .07); font-size: 13px; color: var(--pg-ink); }
.ps-doc-r i { display: block; width: var(--w); height: 7px; border-radius: 4px; background: #E6DBDB; }
.ps-doc-r em { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 700; color: var(--pg-accent); background: var(--pg-rose); white-space: nowrap; }
.ps-sign { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pg-slate); }
.ps-sign svg { width: 150px; height: 38px; }
.ps-sign-p { stroke: var(--pg-maroon); stroke-width: 2.2; }

/* 4. go-live */
.ps-live { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 330px; position: relative; display: grid; gap: 18px; }
.ps-live::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: rgba(105, 19, 27, .15); }
.ps-live li { position: relative; display: flex; align-items: center; gap: 16px; font-size: 16px; color: var(--pg-ink); }
.ps-live li i { position: relative; z-index: 1; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px rgba(105, 19, 27, .3); transition: background-color .35s ease, box-shadow .35s ease; }
.ps-live li i::after { content: ""; position: absolute; left: 9px; top: 6px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.ps-live li.is-done i { background: var(--pg-maroon); box-shadow: none; }
.ps-live li.is-done i::after { transform: rotate(45deg) scale(1); }
.ps-live li b { font-weight: 600; }
.ps-live li.is-last b { font-size: 19px; color: var(--pg-maroon); }
.ps-launch { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 9px 18px 9px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--pg-maroon); background: #fff; box-shadow: 0 0 0 1px rgba(105, 19, 27, .16); }
.ps-launch svg { width: 28px; height: 28px; }
.ps-launch path { fill: var(--pg-maroon); }

/* ---------- mode tab (desktop, dipasang JS) ---------- */
.ps-sec .ps-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.ps-auto { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: rgba(255, 255, 255, .8); font: inherit; font-size: 13px; cursor: pointer; }
.ps-auto:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }
.ps-auto:focus-visible, .ps-stop:focus-visible, .ps-cta:focus-visible { outline: 2px solid var(--pg-pink); outline-offset: 3px; }
.ps-auto-ico { position: relative; width: 10px; height: 10px; }
.ps-auto-ico::before, .ps-auto-ico::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: currentColor; border-radius: 1px; }
.ps-auto-ico::before { left: 1px; } .ps-auto-ico::after { right: 1px; }
.ps-auto[aria-pressed="true"] .ps-auto-ico::after { display: none; }
.ps-auto[aria-pressed="true"] .ps-auto-ico::before { left: 1px; width: 0; height: 0; background: none; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ps-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ps-cta:hover { color: #fff; border-bottom-color: transparent; }

.ps-sec.is-tabs .ps-rail { position: relative; display: block; height: 78px; margin: 48px 28px 0; }
.ps-rail-line { position: absolute; left: 0; right: 0; top: 14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.ps-rail-line i { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, var(--pg-pink), #fff); transform-origin: left center; transform: scaleX(var(--ps-p, 0)); }
.ps-rail-arrow { position: absolute; z-index: 2; top: 15.5px; left: calc(var(--ps-p, 0) * 100%); width: 32px; height: 32px; margin: -16px 0 0 -16px; display: grid; place-items: center; border-radius: 50%; color: var(--pg-maroon); background: #fff; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .5), 0 0 0 5px rgba(255, 255, 255, .16); pointer-events: none; }
.ps-stop { position: absolute; top: 0; left: calc(var(--i) / (var(--ps-n) - 1) * 100%); transform: translateX(-50%); padding: 0; border: 0; background: none; font: inherit; text-align: center; color: rgba(255, 255, 255, .55); cursor: pointer; transition: color .3s ease; }
.ps-stop b { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 10px; border-radius: 50%; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--pg-maroon); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); transition: transform .3s ease, background-color .3s ease, color .3s ease; }
.ps-stop span { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; }
.ps-stop:hover { color: #fff; }
.ps-stop.is-on, .ps-stop.is-past { color: #fff; }
.ps-stop.is-on b { transform: scale(1.12); color: var(--pg-maroon); background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .16); }
.ps-stop.is-past b { background: var(--pg-accent); box-shadow: none; }
.is-tabs .ps-steps { display: grid; margin-top: 34px; gap: 0; }
.is-tabs .ps-item { grid-area: 1 / 1; visibility: hidden; opacity: 0; pointer-events: none; }
.is-tabs .ps-item.is-on { visibility: visible; opacity: 1; pointer-events: auto; }
.is-tabs .ps-scene { min-height: 400px; }

/* ---------- ponsel ---------- */
@media (max-width: 991px) {
  .ps-item { grid-template-columns: 1fr; gap: 28px; }
  .ps-steps { gap: 56px; }
  .ps-sec .ps-ctrl { justify-content: flex-start; margin-top: 40px; }
  .ps-auto { display: none; }
}
@media (max-width: 575px) {
  .ps-scene { min-height: 0; padding: 18px 14px; border-radius: 18px; }
  .ps-node { width: 92px; padding: 11px 8px; }
  .ps-node span { font-size: 11px; }
  .ps-doc-r { grid-template-columns: 96px minmax(0, 1fr); }
  .ps-doc-r em { display: none; }
}
