/* Koperasi Jasa BMI — gaya mengikuti dana.id: biru + putih, datar (tanpa shadow), latar warna polos. */
:root {
  --blue: #4182ea;          /* biru muda logo — warna utama */
  --blue-600: #3871cb;      /* biru tua logo */
  --blue-700: #2c5fb5;
  --blue-50: #eef4fe;
  --blue-100: #dce8fd;
  --teal: #01bdac;
  --teal-700: #01877b;
  --teal-50: #e6f8f6;
  --green: #4db151;
  --wa: #25d366;
  --yellow: #ffc94a;
  --navy: #14213d;
  --text: #34425c;
  --muted: #6d7a90;
  --line: #e3e9f3;
  --bg: #ffffff;
  --bg-soft: #f4f8fe;
  --radius: 16px;
  --radius-lg: 24px;
  --focus: rgba(65, 130, 234, 0.35);
  --header-h: 72px;
  --gutter: max(20px, calc((100vw - 1160px) / 2));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.ic { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.container.narrow { max-width: 820px; }
.section { padding-block: 88px; }
.section-soft { background: var(--bg-soft); }
.card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }

/* ---------- Tombol (tanpa shadow) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-xs { min-height: 34px; padding: 0 14px; font-size: 13px; gap: 6px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue-600); border-color: var(--blue-100); }
.btn-ghost:hover { background: var(--blue-50); color: var(--blue-600); }
.btn-soft { background: var(--blue-50); color: var(--blue-600); }
.btn-soft:hover { background: var(--blue-100); color: var(--blue-700); }
.btn-white { background: #fff; color: var(--blue-600); }
.btn-white:hover { background: var(--blue-50); color: var(--blue-700); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.75); }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: #fff; }

/* ---------- Peringatan konfigurasi ---------- */
.config-warning { background: #fff4d6; color: #7a5200; font-size: 13px; text-align: center; padding: 8px 16px; }
.config-warning code { background: rgba(0, 0, 0, 0.06); padding: 1px 6px; border-radius: 6px; }

/* ---------- Header biru, logo putih ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--blue); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 49px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 0.06em; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav > a { color: rgba(255, 255, 255, 0.92); font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 999px; }
.main-nav > a:hover, .main-nav > a[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, 0.16); }
.header-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.16);
  color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .when-open { display: none; }
.nav-open .nav-toggle .when-open { display: inline-flex; }
.nav-open .nav-toggle .when-closed { display: none; }

/* ---------- Hero (warna polos) ---------- */
.hero { color: #fff; background: var(--blue); position: relative; }
/* Banner berupa slider: geser (HP), titik & panah, otomatis ganti. */
.hero-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hero-track::-webkit-scrollbar { display: none; }
/* Kanvas latar "cells" (public/x/48bb09faf081.js): di belakang isi hero, muncul halus setelah gambar pertama. */
.hero-latar { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.hero-latar.siap { opacity: 1; }
.hero-slide { scroll-snap-align: start; scroll-snap-stop: always; padding: 56px 0 88px; display: flex; align-items: center; min-width: 0; }
.hero-judul { color: #fff; font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin: 20px 0 16px; letter-spacing: -0.02em; line-height: 1.15; }
.hero-foto { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); border: 6px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.1); }
.hero-kontrol { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; align-items: center; gap: 12px; }
/* Pagination banner tanpa panah: titik aktif = bar loading selama durasi slide (7 detik), berhenti saat ditahan. */
.hero-titik { display: flex; gap: 8px; }
.hero-titik button { position: relative; overflow: hidden; width: 10px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: width .3s ease, background-color .25s; }
.hero-titik button[aria-current='true'] { width: 56px; background: rgba(255, 255, 255, 0.28); }
.hero-titik button i { position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left center; }
.hero-titik button[aria-current='true'] i { transform: scaleX(1); }
.hero-titik.otomatis button[aria-current='true'] i { animation: hero-isi 7s linear forwards; }
.hero-titik.otomatis.jeda button i { animation-play-state: paused; }
@keyframes hero-isi { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); font-size: 14px; font-weight: 600;
}
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin: 20px 0 16px; letter-spacing: -0.02em; }
.hero h1 span { color: #d6fff9; }
.hero-sub { font-size: 18px; color: rgba(255, 255, 255, 0.92); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions.center { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, 0.95); }
.hero-points .ic { color: #b8fff4; }
.hero-visual { position: relative; }
.hero-illus { display: block; width: 100%; height: auto; transition: opacity .6s ease; }
/* Model 3D glamping (public/x/e03df416ccc4.js) menimpa ilustrasi SVG setelah siap; SVG tetap menjaga ukuran & jadi cadangan. */
/* Kanvas 3D menutupi seluruh slide hero (ukuran & posisinya diatur hero-3d.js), jadi tidak ada batas yang terlihat;
   teks & tombol (.hero-copy) di atas kanvas; klik tembus, geser-putar di .hero-visual. */
.hero-3d { position: absolute; left: -30%; top: -34%; width: calc(130% + var(--gutter) - 12px); height: 168%; display: block; opacity: 0; transition: opacity .6s ease; pointer-events: none; z-index: 1; }
.hero-copy { position: relative; z-index: 2; }
.hero-visual.tiga-d-siap { touch-action: pan-y; cursor: grab; }
.hero-visual.tiga-d-siap.ditarik { cursor: grabbing; }
.hero-visual.tiga-d-siap .hero-3d { opacity: 1; }
.hero-visual.tiga-d-siap .hero-illus { opacity: 0; }
/* Desktop: biru hero memenuhi layar pertama (tinggi layar − navbar), isi di tengah; HP tetap setinggi isi. */
@media (min-width: 901px) {
  .hero-slide { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
  .js .beranda .hero-slide { min-height: 100vh; min-height: 100svh; }
}
/* Beranda: navbar tetap ada; latarnya mengikuti scroll secara kontinu (app.js mengisi --nav-muncul & --nav-ekor):
   - paling atas: transparan (latar cells hero terlihat sampai atas);
   - mulai di-scroll: lapisan biru muncul perlahan (--nav-muncul 0→1 dalam 48 px) — pekat di area navbar, ekor
     gradasi 32 px memudar di bawahnya supaya isi hero tidak bertabrakan dengan ikon & tulisan navbar;
   - mendekati bawah hero: ekor memendek (--nav-ekor = sisa jarak ke bawah hero) dan habis tepat di batas hero,
     jadi saat hero dilewati navbar sudah identik dengan navbar biru solid (.nav-tampil) — tidak terlihat berganti.
   Menu HP terbuka → biru solid. Isi hero diberi jarak setinggi navbar. Tanpa JS navbar biru biasa. */
.js .beranda .site-header { position: fixed; top: 0; left: 0; right: 0; background: transparent; --nav-muncul: 0; --nav-ekor: 32px; }
.js .beranda .site-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: calc(100% + var(--nav-ekor)); z-index: -1; pointer-events: none;
  opacity: var(--nav-muncul);
  background: linear-gradient(180deg, var(--blue) 0, var(--blue) calc(100% - var(--nav-ekor)), rgba(65, 130, 234, 0) 100%);
}
.js .beranda.nav-tampil .site-header { background: var(--blue); }
.js .beranda.nav-open .site-header { background: var(--blue); transition: background-color .2s ease; }
.js .beranda .hero-slide { padding-top: calc(var(--header-h) + 32px); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--text);
  border-radius: 18px; padding: 12px 16px; animation: float 6s ease-in-out infinite;
}
.float-card small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.float-card strong { display: block; color: var(--navy); font-size: 20px; font-weight: 800; line-height: 1.3; }
.float-card strong em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); }
.float-card-a { top: 4%; left: -4%; }
.float-card-b { bottom: 4%; right: 0; animation-delay: -3s; }
.float-card-b strong { font-size: 15px; }
.fc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.fc-icon.fc-wa { background: #e8faef; color: #1da851; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Menu kategori cepat ---------- */
.quick { padding: 48px 0 56px; }
.quick-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.quick-title h2 { font-size: 22px; }
.quick-title a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 22px 14px; border-radius: var(--radius-lg); border: 1px solid var(--line); color: var(--navy);
  transition: background-color .2s, border-color .2s;
}
.quick-item:hover { background: var(--blue-50); border-color: var(--blue-100); color: var(--navy); }
.quick-icon {
  position: relative; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue);
}
.quick-item:nth-child(even) .quick-icon { background: var(--teal-50); color: var(--teal-700); }
.quick-badge {
  position: absolute; top: -8px; right: -22px; background: var(--teal-700); color: #fff;
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.quick-label { font-weight: 700; font-size: 15px; line-height: 1.3; }
.quick-desc { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ---------- Judul section ---------- */
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--muted); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; max-width: none; gap: 24px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-50); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-soft .eyebrow { background: #fff; }
.eyebrow-light { color: #fff; background: rgba(255, 255, 255, 0.18); }

/* ---------- Kalkulator ---------- */
.sim-section { background: var(--bg-soft); }
#simulasi.sim-section { padding-bottom: 0; }
/* Selebar layar (tanpa card): isian di kiri berlatar putih, ringkasan di kanan berlatar biru. */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--gutter) + 440px); align-items: stretch; }
.sim-inputs { padding: 40px 48px 56px var(--gutter); display: grid; gap: 28px; align-content: start; background: #fff; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend, .field-label {
  display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px;
  font-weight: 700; color: var(--navy); font-size: 16px;
}
.step {
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 800; display: inline-grid; place-items: center;
}
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

.kb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kb-opt input, .pk-opt input, .chip input, .segmented input { position: absolute; opacity: 0; pointer-events: none; }
.kb-card {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 72px;
  border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff;
  transition: border-color .2s, background-color .2s;
}
.kb-card:hover { border-color: var(--blue-100); background: #fbfdff; }
.kb-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.kb-text { display: flex; flex-direction: column; min-width: 0; }
.kb-label { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--navy); }
.kb-sub { font-size: 12px; color: var(--muted); line-height: 1.35; }
.kb-badge {
  margin-left: auto; align-self: flex-start; font-size: 11px; font-weight: 800; color: var(--teal-700);
  background: var(--teal-50); padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.kb-check {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: #fff; display: none; place-items: center; border: 2px solid #fff;
}
.kb-opt input:checked + .kb-card { border-color: var(--blue); background: var(--blue-50); }
.kb-opt input:checked + .kb-card .kb-icon { background: var(--blue); color: #fff; }
.kb-opt input:checked + .kb-card .kb-check { display: grid; }
.kb-opt input:focus-visible + .kb-card, .pk-opt input:focus-visible + .pk-card,
.chip input:focus-visible + span, .segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.pk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.pk-card {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.pk-card:hover { border-color: var(--blue-100); }
.pk-nama { font-weight: 600; font-size: 14px; color: var(--navy); line-height: 1.35; }
.pk-nama small { color: var(--muted); font-weight: 500; }
.pk-harga { font-weight: 800; font-size: 14px; color: var(--blue-600); font-variant-numeric: tabular-nums; }
.pk-opt input:checked + .pk-card { border-color: var(--blue); background: var(--blue-50); }
.pk-opt input:disabled + .pk-card { cursor: not-allowed; opacity: 0.55; }
.pk-opt input:disabled + .pk-card .pk-harga { color: var(--muted); font-weight: 600; }

.money-input {
  display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 0 16px; background: #fff; transition: border-color .2s;
}
.money-input:focus-within, .unit-input:focus-within { border-color: var(--blue); outline: 3px solid rgba(65, 130, 234, 0.15); }
.money-input .prefix { font-weight: 700; color: var(--muted); font-size: 20px; }
.money-input input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px 0;
  font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em;
}
.money-input-sm .prefix { font-size: 15px; }
.money-input-sm input { font-size: 16px; font-weight: 600; padding: 12px 0; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 18px 0 6px; border-radius: 99px; background: linear-gradient(to right, var(--blue) var(--pct, 50%), var(--blue-100) var(--pct, 50%)); cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.estimator { margin-top: 16px; border-radius: 14px; background: var(--bg-soft); border: 1px dashed var(--blue-100); }
.estimator summary {
  list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--blue-600);
}
.estimator summary::-webkit-details-marker { display: none; }
.estimator .chev, .faq-item .chev { margin-left: auto; transition: transform .2s; }
.estimator[open] .chev, .faq-item[open] .chev { transform: rotate(180deg); }
.est-body { padding: 0 14px 14px; display: grid; gap: 12px; }
.est-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.est-luas { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.est-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px 14px; }
.est-result small { display: block; color: var(--muted); font-size: 12px; }
.est-result strong { font-size: 18px; color: var(--navy); }
.est-body .hint { margin: 0; }

.unit-input {
  display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; padding: 0 12px; transition: border-color .2s;
}
.unit-input input { width: 64px; border: 0; outline: 0; background: transparent; padding: 9px 0; font-weight: 700; color: var(--navy); }
.unit-input span { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.unit-input-lg { display: flex; padding: 0 16px; }
.unit-input-lg input { flex: 1; width: auto; min-width: 0; font-size: 20px; padding: 11px 0; }
.unit-input input[readonly] { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip span:hover { border-color: var(--blue-100); }
.chip input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.chips-sm .chip span { min-height: 34px; padding: 0 12px; font-size: 13px; }

.field-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.segmented { display: flex; background: var(--bg-soft); border-radius: 14px; padding: 4px; gap: 4px; }
.segmented label { flex: 1; }
.segmented span {
  display: flex; justify-content: center; align-items: center; min-height: 40px; border-radius: 10px;
  font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); transition: background-color .2s, color .2s;
}
.segmented input:checked + span { background: #fff; color: var(--blue-600); }

.sim-summary { background: #fff; padding: 40px var(--gutter) 56px 40px; border-left: 1px solid var(--line); }
.sim-summary-inner { position: sticky; top: calc(var(--header-h) + 24px); }
.sum-head { display: grid; gap: 4px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sum-head > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.sum-head strong { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--navy); }
.sum-head small { font-size: 13px; color: var(--muted); }
.sum-rows { margin: 0; padding: 8px 0; display: grid; }
.sum-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sum-rows dt { color: var(--muted); }
.sum-rows dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; white-space: nowrap; }
.sum-rows .row-wrap dd { white-space: normal; }
.sum-rows .row-strong dt { color: var(--navy); font-weight: 600; }
.sum-rows .row-total { border-bottom: 0; padding-top: 14px; }
.sum-rows .row-total dt { color: var(--navy); font-weight: 700; font-size: 15px; }
.sum-rows .row-total dt small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.sum-rows .row-total dd { font-size: 20px; color: var(--navy); }
.sum-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; }
.sum-cta .btn { padding-inline: 22px; }
.sum-cta .btn-soft[aria-expanded='true'] { background: var(--blue-100); color: var(--blue-700); }
.print-head { display: none; }

.jadwal { background: #fff; padding: 36px var(--gutter) 56px; border-top: 1px solid var(--line); }
.jadwal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.jadwal-head h3 { font-size: 20px; }
.jadwal-head p { font-size: 14px; margin-top: 4px; }
.table-wrap { overflow: auto; max-height: 520px; border: 1px solid var(--line); border-radius: 14px; }
.jadwal-aksi { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jadwal table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.jadwal th { position: sticky; top: 0; background: var(--blue-50); color: var(--navy); font-weight: 700; text-align: right; padding: 12px 16px; white-space: nowrap; }
.jadwal td { text-align: right; padding: 10px 16px; border-top: 1px solid var(--line); white-space: nowrap; }
.jadwal th:first-child, .jadwal td:first-child { text-align: center; }
.jadwal tbody tr:nth-child(even) { background: #fafcff; }

/* ---------- Katalog kategori ---------- */
.kat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.kat-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.kat-tab:hover { border-color: var(--blue-100); background: var(--blue-50); }
.kat-tab[aria-selected='true'] { background: var(--blue); border-color: var(--blue); color: #fff; }
.kat-tab-badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); }
.kat-tab[aria-selected='true'] .kat-tab-badge { background: rgba(255, 255, 255, 0.22); color: #fff; }
.kat-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.kat-info { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 20px; }
.kat-img { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #e9eef6; margin-bottom: 18px; }
.kat-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kat-badge { position: absolute; top: 12px; left: 12px; background: var(--blue); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.kat-info h3 { font-size: 24px; margin-bottom: 6px; }
.kat-info h4 { margin: 20px 0 10px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-600); }
.spek { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spek div { background: #fff; border-radius: 12px; padding: 10px 12px; }
.spek dt { font-size: 12px; color: var(--muted); }
.spek dd { margin: 0; font-weight: 700; color: var(--navy); font-size: 14px; line-height: 1.35; }
.kat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kat-actions .btn-ghost { background: #fff; }
.kat-harga { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; background: #fff; }
.kat-harga-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.kat-harga-head strong { display: block; font-weight: 700; color: var(--navy); }
.harga-update { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--teal-700); }
.harga-list { list-style: none; margin: 0; padding: 0; }
.harga-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.harga-item:last-child { border-bottom: 0; }
.hi-nama strong { display: block; color: var(--navy); font-size: 15px; line-height: 1.35; }
.hi-nama small { color: var(--muted); font-size: 13px; }
.hi-harga { text-align: right; }
.hi-harga strong { display: block; color: var(--navy); font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hi-harga small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.hi-cta[aria-disabled='true'] { pointer-events: none; opacity: 0.45; }
.kat-harga > .hint { margin-top: 12px; }

/* ---------- Promo (kartu bergaya iklan display, tanpa shadow; tanpa tulisan "Iklan") ---------- */
.carousel-nav { display: flex; gap: 8px; }
@media (min-width: 1081px) {
  .carousel-nav-sedikit { display: none; }
}
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
  color: var(--blue-600); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.round-btn:hover { background: var(--blue-50); border-color: var(--blue-100); }
.promo-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none;
}
.promo-track::-webkit-scrollbar { display: none; }
.iklan {
  scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--text); transition: border-color .2s;
}
.iklan:hover { border-color: var(--blue-100); color: var(--text); }
.iklan-foto { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--blue-50); }
.iklan-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.iklan-isi { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.iklan-skim { font-size: 12px; font-weight: 700; color: var(--teal-700); }
.iklan h3 { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--navy); }
.iklan-teks { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.iklan-catatan { font-size: 11.5px; color: var(--muted); }
.iklan-bawah { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.iklan-pengiklan { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.iklan-pengiklan img { width: 20px; height: auto; }
.iklan-cta {
  display: inline-flex; align-items: center; gap: 2px; padding: 8px 12px 8px 14px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background-color .2s;
}
.iklan:hover .iklan-cta { background: var(--blue-600); }

/* ---------- Keunggulan ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature { background: #fff; border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); transition: border-color .2s; }
.feature:hover { border-color: var(--blue-100); }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin-bottom: 18px; }
.feature:nth-child(2) .feature-icon { background: var(--teal-50); color: var(--teal-700); }
.feature:nth-child(3) .feature-icon { background: #fff6dd; color: #c98a00; }
.feature:nth-child(4) .feature-icon { background: #eaf7eb; color: #3b9a3f; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--muted); }

/* ---------- Langkah ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before { content: ''; position: absolute; top: 34px; left: 12%; right: 12%; border-top: 2px dashed var(--blue-100); }
.step-item { position: relative; text-align: center; padding: 0 8px; }
.step-icon {
  position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--blue); border: 2px solid var(--blue-100);
}
.step-num {
  position: absolute; z-index: 2; top: -4px; left: calc(50% + 18px); width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}
.step-item h3 { font-size: 18px; margin-bottom: 6px; }
.step-item p { font-size: 15px; color: var(--muted); }

/* ---------- Tanpa aplikasi ---------- */
.noapp { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; border-radius: 32px; padding: 56px; color: #fff; background: var(--blue); }
.noapp h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.noapp-copy > p { margin-top: 12px; font-size: 17px; opacity: 0.92; }
.noapp-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.noapp-list li { display: flex; gap: 14px; align-items: flex-start; }
.na-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; flex-shrink: 0; }
.noapp-list strong { display: block; font-size: 17px; }
.noapp-list li > div > span { display: block; font-size: 15px; opacity: 0.92; }
.noapp-list .btn { margin-top: 10px; }
.noapp-visual { position: relative; display: flex; justify-content: center; }
.phone { width: 270px; border-radius: 36px; background: #0f1b33; padding: 10px; transform: rotate(3deg); }
.phone > * { background: #efeae2; }
.phone-top { display: flex; align-items: center; gap: 10px; background: #0b7b6c; color: #fff; padding: 22px 14px 12px; border-radius: 28px 28px 0 0; }
.phone-top b { display: block; font-size: 13px; }
.phone-top small { display: block; font-size: 11px; opacity: 0.8; }
.pt-avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.phone-chat { padding: 14px 10px; display: grid; gap: 8px; min-height: 290px; align-content: start; }
.bubble { max-width: 85%; padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.45; color: #1f2c34; }
.bubble.in { background: #fff; justify-self: start; border-top-left-radius: 2px; }
.bubble.out { background: #d9fdd3; justify-self: end; border-top-right-radius: 2px; }
.phone-input { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 18px; border-radius: 0 0 28px 28px; color: #6b7c85; font-size: 12px; }
.phone-input .ic { color: #0b7b6c; }


.field-error { border-color: #e5484d !important; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.faq-item[open] { border-color: var(--blue-100); }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--navy); font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { color: var(--blue); }
.faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- CTA & footer ---------- */
.cta-band { background: var(--blue); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.cta-band p { margin-top: 8px; opacity: 0.92; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { background: #fff; padding-top: 64px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { width: 112px; height: auto; margin-bottom: 16px; }
.footer-tagline { font-weight: 800; color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.footer-brand .muted { font-size: 14px; max-width: 380px; }
.site-footer h3 { font-size: 15px; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.site-footer ul a { color: var(--text); }
.site-footer ul a:hover { color: var(--blue); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .ic { color: var(--blue); margin-top: 2px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.footer-bottom { margin-top: 48px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-bottom > div { display: grid; gap: 4px; }


.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; background: var(--navy); color: #fff;
  padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; max-width: calc(100% - 40px); text-align: center;
}

/* ---------- Halaman simulasi & 404 ---------- */
.page-hero { color: #fff; padding: 40px 0 56px; background: var(--blue); }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 14px 0 10px; }
.page-hero p { font-size: 17px; opacity: 0.92; max-width: 680px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 14px; opacity: 0.9; }
.breadcrumb a { color: #fff; }
.sim-page { padding-top: 0 !important; }
.not-found { text-align: center; }
.nf-code { font-size: 96px; font-weight: 800; color: var(--blue-100); line-height: 1; }
.not-found h1 { font-size: 32px; margin: 12px 0; }
.not-found p { color: var(--muted); }

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
  .main-nav > a { padding: 10px 10px; font-size: 14px; }
  .header-inner { gap: 16px; }
  .hide-md { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-track { grid-auto-columns: calc((100% - 20px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kat-panel { grid-template-columns: 1fr; }
  .kat-info { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 24px; align-items: start; }
  .kat-info .kat-img { grid-row: span 6; margin-bottom: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--blue); padding: 12px 20px 20px; border-top: 1px solid rgba(255, 255, 255, 0.18);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav > a { padding: 14px 12px; font-size: 16px; border-radius: 12px; }
  .hide-sm { display: none; }
  .hero-slide { padding: 40px 0 76px; }
  .hero-kontrol { bottom: 18px; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .float-card-a { left: 0; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .sim { grid-template-columns: 1fr; }
  .sim-inputs { padding: 28px var(--gutter) 32px; }
  .sim-summary { padding: 28px var(--gutter) 32px; border-left: 0; border-top: 1px solid var(--line); }
  .sim-summary-inner { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .noapp { grid-template-columns: 1fr; padding: 40px 28px 56px; }
  .section { padding-block: 64px; }
  .kat-info { display: block; }
  .kat-info .kat-img { margin-bottom: 18px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .brand img { width: 42px; height: 34px; }
  .brand-text b { font-size: 12px; }
  .hero h1, .hero-judul { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .float-card { padding: 10px 12px; }
  .float-card strong { font-size: 16px; }
  .float-card-b { display: none; }
  .quick { padding: 36px 0 40px; }
  .quick-title h2 { font-size: 19px; }
  .quick-title a { font-size: 13px; }
  .quick-grid { gap: 10px; }
  .quick-item { padding: 16px 10px; }
  .quick-icon { width: 56px; height: 56px; border-radius: 18px; }
  .quick-label { font-size: 14px; }
  .quick-desc { font-size: 12px; }
  .section-head { margin-bottom: 32px; }
  .section-head-row { align-items: flex-start; }
  .carousel-nav { display: none; }
  :root { --gutter: 16px; }
  .sim-inputs { gap: 24px; }
  .kb-grid { grid-template-columns: 1fr; }
  .pk-grid { grid-template-columns: 1fr; }
  .money-input input { font-size: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .jadwal { padding: 24px var(--gutter) 40px; }
  .kat-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .kat-tabs::-webkit-scrollbar { display: none; }
  .kat-tab { flex-shrink: 0; font-size: 14px; padding: 0 16px; }
  .kat-info { padding: 14px; }
  .spek { grid-template-columns: 1fr; }
  .kat-harga { padding: 16px; }
  .harga-item { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .hi-cta { grid-column: 1 / -1; min-height: 38px; background: var(--blue-50); color: var(--blue-600); }
  .hi-cta:hover { background: var(--blue-100); color: var(--blue-700); }
  .promo-track { grid-auto-columns: 82%; gap: 14px; }
  .feature-grid, .feature-grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .noapp { padding: 32px 20px 48px; border-radius: 24px; }
  .phone { width: 240px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Katalog proyek lain (portofolio) ---------- */
.section-proyek { background: var(--navy); color: rgba(255, 255, 255, 0.86); }
.section-proyek .section-head h2 { color: #fff; }
.section-proyek .section-head p { color: rgba(255, 255, 255, 0.74); max-width: 640px; }
.proyek-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -20px 0 28px; }
.proyek-filter button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.24);
  background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.proyek-filter button:hover { border-color: rgba(255, 255, 255, 0.6); }
.proyek-filter button b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 12px; text-align: center; }
.proyek-filter button[aria-pressed='true'] { background: #fff; color: var(--navy); border-color: #fff; }
.proyek-filter button[aria-pressed='true'] b { background: var(--blue-50); color: var(--blue-600); }
.proyek-grid { columns: 3 300px; column-gap: 20px; }
.proyek-kartu {
  display: flex; flex-direction: column; width: 100%; margin: 0 0 20px; padding: 0; break-inside: avoid; text-align: left; border: 0;
  border-radius: var(--radius-lg); overflow: hidden; background: #fff; color: var(--text); font: inherit; cursor: pointer; transition: transform .25s;
}
.proyek-kartu:hover { transform: translateY(-4px); }
.proyek-kartu[hidden] { display: none; }
.proyek-img { position: relative; display: block; overflow: hidden; background: #dfe7f3; }
.proyek-img img { display: block; width: 100%; height: auto; }
.proyek-jumlah {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: rgba(20, 33, 61, 0.74); color: #fff; font-size: 12px; font-weight: 700;
}
.proyek-info { display: grid; gap: 4px; padding: 16px 18px 20px; }
.proyek-jenis { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); font-size: 12px; font-weight: 700; }
.proyek-info strong { margin-top: 4px; color: var(--navy); font-size: 19px; font-weight: 800; line-height: 1.3; }
.proyek-ringkas { color: var(--muted); font-size: 14px; }

.galeri { border: 0; padding: 0; width: min(1100px, calc(100% - 24px)); max-width: none; max-height: calc(100vh - 24px); background: transparent; color: #fff; overflow: auto; }
.galeri::backdrop { background: rgba(10, 16, 32, 0.97); }
.galeri-isi { display: grid; gap: 12px; padding: 4px; }
.galeri-kepala { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
/* Judul galeri = tombol pilih proyek (panah ke bawah) + daftar proyek per kategori. */
.galeri-pilih { position: relative; min-width: 0; }
.galeri-judul-btn { display: grid; gap: 2px; padding: 4px 10px 6px; margin: -4px 0 0 -10px; border: 0; border-radius: 12px; background: transparent; color: #fff; font: inherit; text-align: left; cursor: pointer; transition: background-color .2s; }
.galeri-judul-btn:hover, .galeri-judul-btn[aria-expanded='true'] { background: rgba(255, 255, 255, 0.1); }
.galeri-judul-btn small { color: #8ff3e8; font-size: 13px; font-weight: 700; }
.galeri-judul { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.25; }
.galeri-caret { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, 0.12); flex-shrink: 0; transition: transform .2s; }
.galeri-judul-btn[aria-expanded='true'] .galeri-caret { transform: rotate(180deg); }
.galeri-daftar {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: -10px; width: min(340px, calc(100vw - 32px)); max-height: min(60vh, 460px); overflow-y: auto;
  padding: 8px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.14); background: #fff; color: var(--text);
}
.gd-grup + .gd-grup { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.gd-grup > small { display: block; padding: 6px 8px 4px; color: var(--teal-700); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.gd-grup button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.gd-grup button:hover, .gd-grup button:focus-visible { background: var(--bg-soft); outline: none; }
.gd-grup button[aria-current='true'] { background: var(--blue-50); }
.gd-grup button img { width: 56px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.gd-grup button span { display: grid; min-width: 0; }
.gd-grup button b { color: var(--navy); font-size: 14px; }
.gd-grup button[aria-current='true'] b { color: var(--blue-600); }
.gd-grup button span small { color: var(--muted); font-size: 12px; }
.galeri .dialog-close { background: rgba(255, 255, 255, 0.12); color: #fff; }
.galeri-foto { position: relative; display: grid; place-items: center; height: min(66vh, 640px); border-radius: var(--radius-lg); overflow: hidden; background: #0b1224; touch-action: pan-y; }
/* Foto selalu utuh di dalam bingkai (tidak terpotong), berapa pun rasio & ukuran layarnya. */
.galeri-foto img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.galeri-tombol { display: flex; gap: 8px; flex-shrink: 0; }
.galeri .dialog-close:hover { background: rgba(255, 255, 255, 0.22); }
.galeri-penuh .ic { display: block; }
.galeri-penuh .ikon-tutup, .galeri.penuh .galeri-penuh .ikon-buka { display: none; }
.galeri.penuh .galeri-penuh .ikon-tutup { display: block; }
/* Layar penuh: foto sebesar mungkin, thumbnail tetap di bawah. */
.galeri.penuh { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 12px; inset: 0; background: #0a1020; overflow: hidden; }
.galeri.penuh .galeri-isi { height: 100%; grid-template-rows: auto minmax(0, 1fr) auto; padding: 0; }
.galeri.penuh .galeri-foto { height: auto; min-height: 0; background: transparent; border-radius: 12px; }
.galeri.penuh .galeri-ringkas { display: none; }
.galeri-panah {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--navy); display: grid; place-items: center; cursor: pointer;
}
.galeri-panah.kiri { left: 12px; }
.galeri-panah.kanan { right: 12px; }
.galeri-hitung { position: absolute; left: 12px; bottom: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(20, 33, 61, 0.74); font-size: 12px; font-weight: 700; }
.galeri-ringkas { color: rgba(255, 255, 255, 0.82); font-size: 15px; }
.galeri-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.galeri-thumbs button { flex: 0 0 auto; width: 92px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; opacity: 0.55; cursor: pointer; }
.galeri-thumbs button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.galeri-thumbs button[aria-current='true'] { border-color: #fff; opacity: 1; }
/* Slideshow mode layar penuh: bar loading 2,5 detik di dalam thumbnail aktif → foto berikutnya. */
.galeri-thumbs button { position: relative; }
.galeri-thumbs button i { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #fff; transform: scaleX(0); transform-origin: left center; pointer-events: none; }
.galeri.putar .galeri-thumbs button[aria-current='true']::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(10, 16, 32, 0.55); }
.galeri.putar .galeri-thumbs button[aria-current='true'] i { z-index: 1; animation: galeri-isi 2.5s linear forwards; }
@keyframes galeri-isi { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 640px) {
  .proyek-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .proyek-filter button { flex: 0 0 auto; }
  .galeri-foto { height: 52vh; }
  .galeri-panah { width: 38px; height: 38px; }
  .galeri-judul { font-size: 18px; }
}

/* Selama ada popup terbuka halaman di belakangnya tidak bisa di-scroll (kelas dari app.js; :has untuk cadangan). */
html { scrollbar-gutter: stable; }
html.popup-buka, html.popup-buka body, html:has(dialog[open]), html:has(dialog[open]) body { overflow: hidden; }

/* ---------- Popup pintas banner: etalase paket (gaya toko) & hitung cicilan cepat ---------- */
/* Ukuran sama dengan popup galeri proyek: hampir selebar & setinggi layar, latar belakang gelap pekat. */
.pop-etalase, .pop-cepat { border: 0; padding: 0; border-radius: var(--radius-lg); background: #fff; color: var(--text); width: min(1100px, calc(100% - 24px)); max-width: none; height: calc(100vh - 24px); height: calc(100dvh - 24px); max-height: none; overflow: hidden; }
.pop-etalase[open], .pop-cepat[open], .pc-form { display: flex; flex-direction: column; }
.pc-form { flex: 1; min-height: 0; }
.pe-isi, .pc-badan { overscroll-behavior: contain; }
.pop-etalase::backdrop, .pop-cepat::backdrop { background: rgba(10, 16, 32, 0.97); }
/* Header tipis satu baris tanpa warna latar sendiri — menyatu dengan latar popup (permintaan pemilik). */
.pe-kepala { display: flex; align-items: center; gap: 12px; padding: 10px 12px 4px 20px; background: transparent; color: var(--navy); flex-shrink: 0; }
.pe-kepala > div { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.pe-kepala h2 { color: var(--navy); font-size: 18px; font-weight: 800; margin: 0; line-height: 1.3; }
.pe-kepala small { color: var(--muted); font-size: 12px; }
.pe-kepala .dialog-close { width: 34px; height: 34px; }
.pe-label { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: var(--teal-50); color: var(--teal-700); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.pe-alat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.pe-tab { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pe-tab::-webkit-scrollbar { display: none; }
.pe-tab button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; color: var(--navy); font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; }
.pe-tab button[aria-selected='true'] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pe-isi { overflow: auto; padding: 18px 24px 24px; background: var(--bg-soft); flex: 1; min-height: 0; }
.pe-wilayah { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pe-update { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.pe-ringkas { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.pe-pita { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--teal-50); color: var(--teal-700); font-size: 12px; font-weight: 700; }
.pe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pe-produk { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.pe-produk:hover { border-color: var(--blue-100); transform: translateY(-2px); }
.pe-produk.kosong { opacity: .7; }
.pe-foto { position: relative; aspect-ratio: 4 / 3; background: var(--blue-50); }
.pe-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-ukuran { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(20, 33, 61, 0.78); color: #fff; font-size: 12px; font-weight: 700; }
.pe-info { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.pe-info h3 { font-size: 15px; color: var(--navy); line-height: 1.3; }
.pe-harga { display: inline-block; align-self: flex-start; margin-top: 2px; padding: 4px 10px; border-radius: 10px; background: var(--blue-50); color: var(--blue-600); font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.pe-produk.kosong .pe-harga { background: var(--bg-soft); color: var(--muted); font-size: 14px; }
.pe-cicil { color: var(--teal-700); font-size: 13px; font-weight: 700; }
.pe-info .btn { margin-top: auto; }
.pe-produk-lebar { grid-column: 1 / -1; flex-direction: row; }
.pe-produk-lebar .pe-foto { width: min(42%, 340px); aspect-ratio: auto; flex-shrink: 0; }
.pe-produk-lebar .pe-info { gap: 10px; padding: 18px; }
.pe-produk-lebar .btn { align-self: flex-start; margin-top: 4px; }
.pe-ket { color: var(--muted); font-size: 14px; margin: 0; }
.pe-m2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pe-m2 li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); font-size: 12px; color: var(--muted); }
.pe-m2 b { color: var(--navy); font-size: 14px; }
.pe-catatan { margin: 14px 0 0; color: var(--muted); font-size: 12px; }

.pc-badan { display: grid; grid-template-columns: 1.25fr 1fr; flex: 1; min-height: 0; overflow: auto; }
.pc-isian { display: grid; gap: 14px; padding: 18px 24px 22px; align-content: start; }
.pc-grup { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.pc-grup legend, .pc-legend { padding: 0; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pc-dua { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pc-kategori { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pc-kat input { position: absolute; opacity: 0; pointer-events: none; }
.pc-kat span { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 14px; font-size: 12px; font-weight: 700; color: var(--navy); text-align: center; cursor: pointer; }
.pc-kat span .ic { color: var(--blue); }
.pc-kat input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.pc-kat input:checked + span .ic { color: #fff; }
.pc-kat input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.pc-paket select, .pc-rp { width: 100%; min-height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 14px; color: var(--navy); }
.pc-paket select { padding: 0 12px; }
.pc-rp { display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.pc-rp span { color: var(--muted); font-weight: 700; }
.pc-rp input { flex: 1; border: 0; outline: 0; font: inherit; font-weight: 700; color: var(--navy); min-width: 0; }
/* Panel hasil tanpa warna latar (putih, dipisah garis tipis) — sama dengan ringkasan kalkulator lengkap. */
.pc-hasil { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; background: transparent; color: var(--text); border-left: 1px solid var(--line); }
.pc-hasil small { color: var(--muted); font-size: 13px; }
.pc-hasil strong { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--navy); }
.pc-sub { font-size: 13px; color: var(--muted); }
.pc-rinci { margin: 10px 0 14px; display: grid; gap: 0; }
.pc-rinci div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pc-rinci dt { color: var(--muted); }
.pc-rinci dd { margin: 0; font-weight: 700; color: var(--navy); }
.pc-hasil .btn { margin-top: auto; }
.pc-etalase { margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border: 0; background: none; color: var(--blue-600); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .pop-etalase, .pop-cepat { width: 100%; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; }
  .pe-kepala { padding: 8px 10px 2px 16px; }
  .pe-kepala h2 { font-size: 16px; }
  .pe-wilayah { align-items: flex-start; }
  .pe-alat, .pe-isi, .pc-isian { padding-inline: 16px; }
  .pe-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pe-info { padding: 10px; }
  .pe-harga { font-size: 15px; }
  .pe-produk-lebar { flex-direction: column; }
  .pe-produk-lebar .pe-foto { width: 100%; aspect-ratio: 16 / 9; }
  .pc-badan { grid-template-columns: 1fr; }
  .pc-kategori { grid-template-columns: repeat(2, 1fr); }
  .pc-dua { grid-template-columns: 1fr; }
  .pc-hasil { padding: 18px 16px 22px; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Popup (Masuk & ajukan via WhatsApp) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.dialog {
  border: 0; padding: 0; border-radius: var(--radius-lg); width: min(460px, calc(100% - 32px));
  max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: var(--text);
}
.dialog::backdrop { background: rgba(20, 33, 61, 0.5); }
.dialog-form { display: grid; gap: 16px; padding: 28px; }
.dialog-head { display: flex; gap: 14px; align-items: flex-start; }
.dialog-head h1, .dialog-head h2 { font-size: 22px; }
.dialog-head-tengah { align-items: center; }
.dialog-head p { font-size: 14px; margin-top: 2px; }
.dialog-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.dialog-icon-wa { background: #e8faef; color: #1da851; }
.dialog-close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--bg-soft); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.dialog-close:hover { color: var(--navy); }
.dialog-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.dialog-form input, .dialog-form textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; font-weight: 500;
  transition: border-color .2s;
}
.dialog-form textarea { resize: vertical; }
.dialog-form input:focus, .dialog-form textarea:focus { outline: 3px solid rgba(65, 130, 234, 0.15); border-color: var(--blue); }
.ajukan-atas { display: flex; gap: 10px; align-items: flex-start; }
.ajukan-ringkas { flex: 1; background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.ajukan-ringkas strong { display: block; color: var(--navy); font-size: 18px; }
.password-input { position: relative; display: block; }
.password-input input { padding-right: 48px; }
.password-input button {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.password-input button:hover { color: var(--blue); background: var(--blue-50); }
.form-error { color: #c62828; font-size: 14px; font-weight: 600; }
.btn:disabled { opacity: 0.6; cursor: wait; }


@media (max-width: 640px) {
  .footer-bottom { align-items: flex-start; }
  .hide-xs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Cetak / simpan PDF hasil simulasi ---------- */
@media print {
  @page { margin: 14mm; }
  body { padding: 0; background: #fff; font-size: 12px; }
  .site-header, .site-footer, .toast, .config-warning, .hero, .quick, .page-hero,
  main > section:not(#simulasi), #simulasi .section-head, .sim-inputs, .sum-cta, .jadwal-aksi { display: none !important; }
  #simulasi { padding: 0 !important; background: #fff; }
  .sim { display: block; }
  .sim-summary { background: #fff !important; padding: 0 !important; border: 1px solid #d5deeb; }
  .sim-summary-inner { position: static; }
  .sim-summary, .sim-summary * { color: var(--navy) !important; }
  .sum-head, .sum-rows > div { border-color: #d5deeb !important; }
  .sum-head, .sum-rows { padding-inline: 24px; }
  .sum-head { padding-top: 16px; }
  .print-head { display: flex; gap: 14px; align-items: center; padding: 20px 24px; border-bottom: 1px solid #d5deeb; }
  .print-head img { width: 56px; height: auto; }
  .print-head div { display: grid; }
  .print-head strong { font-size: 18px; color: var(--navy); }
  .print-head span { color: var(--muted); }
  .jadwal { display: block !important; margin-top: 16px; padding: 0 !important; border: 0; }
  .table-wrap { max-height: none; overflow: visible; border: 0; }
  .jadwal th { position: static; }
  .jadwal tr { break-inside: avoid; }
}
