/* =====================================================================
   SEFORAA – "Perbandingan" Pilihan B (halaman Harga)
   Pasangan: includes/perbandingan.php + assets/js/seforaa-perbandingan.js
   Panggung (.cv) hanya tampil bila JS berjalan; tabel selalu ada.
   ===================================================================== */
.cv-sec { --cv-grey: #8A9396; --cv-grey-bg: #EEF0F0; --cv-ok: #16A34A; }
.cv { margin-top: 44px; }
.cv[hidden] { display: none; }

/* ---------- tab aspek ---------- */
.cv-tabs { position: relative; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--pg-line); }
.cv-tab { position: relative; z-index: 1; padding: 11px 18px; border: 0; border-radius: 11px; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--pg-slate); cursor: pointer; transition: color .3s ease; }
.cv-tab:hover { color: var(--pg-ink); }
.cv-tab[aria-selected="true"] { color: #fff; }
.cv-tab:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 2px; }
.cv-tab-ind { position: absolute; z-index: 0; left: 0; top: 0; width: 10px; height: 10px; border-radius: 11px; background: var(--pg-maroon); box-shadow: 0 8px 18px -8px rgba(105, 19, 27, .7); pointer-events: none; }

/* ---------- dua kartu ---------- */
.cv-stage { position: relative; margin-top: 22px; }
.cv-pair { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); align-items: stretch; }
.cv-pair[hidden] { display: none; }
.cv-card { position: relative; display: flex; flex-direction: column; padding: 26px 28px 24px; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -40px rgba(42, 8, 12, .45); overflow: hidden; }
.cv-card.is-us { box-shadow: 0 0 0 2px var(--pg-maroon), 0 30px 60px -36px rgba(105, 19, 27, .55); }
.cv-card.is-saas { background: #FBFBFB; box-shadow: 0 0 0 1px var(--pg-line); }
.cv-who { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--pg-maroon); }
.is-saas .cv-who { color: var(--pg-slate); background: var(--cv-grey-bg); }
.cv-say { margin: 16px 0 18px; min-height: 2.6em; font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--pg-ink); }
.is-saas .cv-say { color: #5b5b5b; font-weight: 500; }
.cv-scene { position: relative; flex: 1; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; border-radius: 16px; background: var(--pg-rose); }
.is-saas .cv-scene { background: var(--cv-grey-bg); }
.cv-vs { align-self: center; justify-self: center; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--pg-maroon); background: #fff; box-shadow: 0 0 0 1px var(--pg-line), 0 10px 20px -10px rgba(42, 8, 12, .4); }
.cv-note { margin: 16px 0 0; font-size: 13px; color: var(--pg-slate); }
.cv-chip { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--pg-maroon); background: #fff; box-shadow: 0 0 0 1px rgba(105, 19, 27, .16); }
.cv-chip.is-grey { color: var(--pg-slate); box-shadow: 0 0 0 1px rgba(51, 51, 51, .12); }

/* kepemilikan */
.cv-doc { position: relative; width: min(260px, 100%); padding: 20px 20px 18px; border-radius: 14px; background: #fff; box-shadow: 0 18px 30px -20px rgba(42, 8, 12, .45); }
.cv-doc b { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--pg-maroon); }
.is-saas .cv-doc b { color: var(--pg-slate); }
.cv-doc span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pg-slate); }
.cv-doc strong { display: block; margin-top: 2px; font-size: 18px; color: var(--pg-ink); }
.cv-doc em { display: block; margin-top: 12px; font-size: 12.5px; font-style: normal; color: var(--pg-slate); }
.cv-stamp { position: absolute; right: -10px; top: -14px; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pg-accent); background: rgba(255, 255, 255, .85); border: 3px solid var(--pg-accent); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(199, 74, 86, .55); transform: rotate(-12deg); }
.cv-renew { position: absolute; right: 16px; top: 16px; width: 30px; height: 30px; color: var(--cv-grey); }
.cv-renew svg { width: 100%; height: 100%; }

/* lisensi */
.cv-life { width: min(300px, 100%); }
.cv-life-l { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; font-size: 13px; color: var(--pg-slate); }
.cv-life-l b { font-size: 15px; color: var(--pg-maroon); }
.cv-meter { position: relative; height: 12px; border-radius: 8px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(105, 19, 27, .12); }
.cv-meter i { position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(90deg, var(--pg-accent), var(--pg-maroon)); transform-origin: left center; }
.cv-meter.is-saas i { background: var(--cv-grey); }
.cv-years { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--pg-slate); }
.cv-app { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--pg-ink); transition: opacity .4s ease, filter .4s ease; }
.cv-led { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--cv-ok); box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); transition: background-color .4s ease, box-shadow .4s ease; }
.cv-off-show { display: none; }
.cv-card.is-off .cv-off-show { display: inline; }
.cv-card.is-off .cv-off-hide { display: none; }
.cv-card.is-off .cv-app { color: var(--pg-slate); }
.cv-card.is-off .cv-led { background: #C2C7C9; box-shadow: 0 0 0 4px rgba(51, 51, 51, .08); }
.cv-card.is-off .cv-life-l b { color: var(--pg-slate); }

/* modifikasi */
.cv-chain { list-style: none; margin: 0; padding: 0; width: min(280px, 100%); display: grid; gap: 22px; counter-reset: cv; }
.cv-chain li { position: relative; padding: 11px 14px 11px 44px; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; color: var(--pg-ink); counter-increment: cv; }
.cv-chain li::before { content: counter(cv); position: absolute; left: 12px; top: 50%; width: 22px; height: 22px; margin-top: -11px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; background: var(--pg-maroon); }
.cv-chain li + li::after { content: ""; position: absolute; left: 22px; top: -22px; width: 2px; height: 22px; background: rgba(105, 19, 27, .3); }
.cv-chain li.is-done { color: #fff; background: var(--pg-maroon); }
.cv-chain li.is-done::before { color: var(--pg-maroon); background: #fff; }
.cv-queue { width: min(280px, 100%); }
.cv-queue-l { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pg-slate); }
.cv-queue ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cv-queue li { padding: 9px 12px; border-radius: 9px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--pg-ink); }
.cv-queue li i { display: block; width: var(--w); height: 8px; border-radius: 4px; background: #DDE1E2; }
.cv-queue li.is-you { box-shadow: inset 0 0 0 1.5px var(--cv-grey); }
.cv-queue li small { display: block; font-size: 12px; font-weight: 500; color: var(--pg-slate); }

/* lokasi data */
.cv-svg { width: 100%; max-width: 320px; height: auto; overflow: visible; }
.cv-wall { fill: #fff; stroke: rgba(105, 19, 27, .45); stroke-width: 2; stroke-dasharray: 6 6; }
.cv-svg-l { font-size: 13px; font-weight: 700; fill: var(--pg-maroon); }
.cv-svg-l.is-light { fill: #fff; font-size: 12px; }
.cv-orbit { fill: none; stroke: rgba(105, 19, 27, .18); stroke-width: 1.5; stroke-dasharray: 3 5; }
.is-saas .cv-orbit { stroke: rgba(51, 51, 51, .18); }
.cv-srv { fill: #3A2A2C; }
.cv-dot { fill: var(--pg-accent); opacity: 0; }
.cv-dot.is-grey { fill: #A8B0B2; }
.cv-co { fill: #fff; stroke: rgba(51, 51, 51, .15); }
.cv-co.is-you { stroke: var(--pg-accent); stroke-width: 2; }
.cv-co-l { font-size: 11px; font-weight: 600; fill: var(--pg-slate); }
.cv-cloud { fill: #9AA3A6; }
.cv-svg g, .cv-svg rect { transform-box: fill-box; transform-origin: center; }

/* pola biaya */
.cv-bars { display: flex; align-items: flex-end; gap: 10px; width: min(300px, 100%); height: 130px; padding: 0 4px; border-bottom: 2px solid rgba(51, 51, 51, .15); }
.cv-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: var(--pg-maroon); transform-origin: bottom center; }
.cv-bars i.is-big { background: linear-gradient(var(--pg-accent), var(--pg-maroon)); }
.cv-bars.is-many { gap: 3px; }
.cv-bars.is-many i { border-radius: 3px 3px 0 0; background: var(--cv-grey); }
.cv-bars-l { display: flex; justify-content: space-between; width: min(300px, 100%); font-size: 11px; color: var(--pg-slate); }

/* kustomisasi */
.cv-fields { list-style: none; margin: 0; padding: 0; width: min(290px, 100%); display: grid; gap: 8px; }
.cv-fields li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 10px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--pg-ink); }
.cv-fields small { font-size: 11.5px; font-weight: 700; color: var(--pg-accent); }
.cv-fields li.is-new { color: var(--pg-maroon); box-shadow: inset 0 0 0 1.5px rgba(199, 74, 86, .55); }
.cv-fields li.is-lock { color: #9AA3A6; background: rgba(255, 255, 255, .55); }
.cv-fields li.is-lock small { color: #9AA3A6; font-weight: 600; }
.cv-tog { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: #C9CFD1; }
.cv-tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.cv-tog.is-on { background: var(--cv-grey); }
.cv-tog.is-on::after { left: 15px; }

/* ---------- tabel ringkasan ---------- */
.cv-table { margin-top: 56px; }
.cv-table-l { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 4px; margin: 0 0 22px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; color: var(--pg-ink); }
.cv-table-bar { flex: none; width: 6px; height: 34px; border-radius: 3px; background: linear-gradient(var(--pg-accent), var(--pg-maroon)); }
.cv-table-l small { flex-basis: 100%; margin-left: 20px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--pg-slate); }
/* judul kolom: kontras tinggi (spesifisitas lebih tinggi dari aturan umum .pg-compare) */
.cv-table .pg-compare thead th { padding: 20px 22px; font-size: 16px; font-weight: 700; letter-spacing: .01em; text-transform: none; color: #fff; background: #3E5157; border-bottom: 0; }
.cv-table .pg-compare thead th:first-child { color: rgba(255, 255, 255, .8); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; background: var(--pg-ink); }
.cv-table .pg-compare thead th.is-us { position: relative; font-size: 19px; font-weight: 800; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, var(--pg-maroon), var(--pg-deep)); }
.cv-table .pg-compare thead th.is-us::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--pg-pink); box-shadow: 0 0 0 4px rgba(242, 184, 190, .25); }
.cv-js .cv-table tbody tr { cursor: pointer; transition: background-color .3s ease; }
.cv-js .cv-table tbody tr:hover th, .cv-js .cv-table tbody tr:hover td:last-child { background: #FBF8F7; }
.cv-js .cv-table tbody tr.is-on th { box-shadow: inset 4px 0 0 var(--pg-maroon); color: var(--pg-maroon); }

/* ---------- ponsel & tablet ---------- */
@media (max-width: 991px) {
  .cv-pair { grid-template-columns: 1fr; row-gap: 0; }
  .cv-vs { margin: -10px 0; position: relative; z-index: 2; }
}
@media (max-width: 767px) {
  .cv-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cv-tabs::-webkit-scrollbar { display: none; }
  .cv-tab { flex: none; padding: 10px 14px; font-size: 14px; }
  .cv-card { padding: 22px 18px 18px; }
  .cv-say { font-size: 18px; min-height: 0; }
  .cv-scene { min-height: 210px; }
}
