[hidden] { display: none !important; }
:root {
  --blue: #0062b6;      /* biru logo CBN */
  --blue-d: #004f93;
  --sky: #4faedc;       /* biru muda "fiber" */
  --ink: #1f2329;
  --muted: #5a6573;
  --paper: #ffffff;
  --mist: #f0f6fb;
  --line: #d8e2ec;
  --ok: #137a43;
  --warn: #9c5d00;
  --no: #667080;
  --wa: #128c4a;
  --r-sm: 8px;
  --r-lg: 16px;
  --f: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; font: 400 1rem/1.55 var(--f); color: var(--ink); background: var(--paper); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 1000; background: #fff; padding: 8px 12px; border-radius: var(--r-sm); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
button { font-family: var(--f); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { height: 28px; width: auto; display: block; }
.brand span { color: var(--muted); font-size: .85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-wa { color: var(--wa); font-weight: 700; text-decoration: none; font-size: .95rem; white-space: nowrap; padding: 12px 0 12px 12px; }
@media (max-width: 420px) { .brand span { display: none; } }
.crumbs { padding: 10px 16px 0; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* HERO: peta adalah pusatnya */
.hero { display: grid; grid-template-areas: "copy" "search" "map" "controls"; grid-template-columns: minmax(0, 1fr); }
.hero > * { min-width: 0; }
.hero-copy { grid-area: copy; padding: 18px 16px 12px; display: grid; gap: 6px; }
h1 { font-size: clamp(1.6rem, 6.8vw, 3.1rem); font-weight: 800; max-width: 20ch; }
.lede { color: var(--muted); max-width: 52ch; }
@media (max-width: 480px) { .lede { font-size: .95rem; line-height: 1.45; } h1 { font-size: 1.6rem; } .crumbs { padding-top: 8px; } }

.search { grid-area: search; position: relative; z-index: 900; display: flex; gap: 8px; padding: 0 14px 12px; }
.search input { flex: 1; min-width: 0; }
.search-results { position: absolute; z-index: 900; left: 14px; right: 14px; max-height: 50vh; overflow-y: auto; top: calc(100% - 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 10px 30px rgb(31 35 41 / .16); }
.search-results button { width: 100%; min-height: 48px; text-align: left; background: none; border: 0; padding: 12px 10px; font-size: .95rem; color: var(--ink); border-radius: 6px; cursor: pointer; }
.search-results button:hover, .search-results button:focus-visible, .search-results button[aria-selected="true"] { background: var(--mist); }
.search-results .sr-head { font-size: .78rem; font-weight: 700; color: var(--muted); padding: 8px 10px 4px; }
.search-results .kw strong { display: block; color: var(--ink); font-weight: 700; }
.search-results .kw span { display: block; color: var(--muted); font-size: .85rem; }
.search-results .osm { color: var(--blue); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; }

.map-wrap { grid-area: map; position: relative; margin: 0 18px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
#map { height: 50vh; height: 50svh; min-height: 300px; max-height: 600px; background: var(--mist); }

/* Pin tetap di tengah: ujung pin = titik yang dicek */
.center-pin { position: absolute; left: 50%; top: 50%; z-index: 450; width: 0; height: 0; pointer-events: none; }
.pin-head { position: absolute; left: -17px; top: -46px; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: var(--blue); transform: rotate(-45deg); box-shadow: 0 3px 8px rgb(0 40 90 / .35); transition: transform .15s ease-out; }
.pin-head::after { content: ""; position: absolute; left: 11px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.pin-shadow { position: absolute; left: -6px; top: -3px; width: 12px; height: 6px; border-radius: 50%; background: rgb(0 0 0 / .28); transition: transform .15s ease-out, opacity .15s; }
.center-pin.lift .pin-head { transform: translateY(-10px) rotate(-45deg); }
.center-pin.lift .pin-shadow { transform: scale(.7); opacity: .6; }

/* Tap target >= 44px untuk kontrol peta */
.leaflet-touch .leaflet-bar a, .leaflet-bar a { width: 44px !important; height: 44px !important; line-height: 44px !important; font-size: 22px !important; }
.leaflet-control-attribution { font-size: 10px; }
.btn-gps { position: absolute; z-index: 500; right: 10px; top: 10px; min-height: 44px; background: #fff; color: var(--blue); border: 1px solid var(--line); box-shadow: 0 2px 10px rgb(31 35 41 / .18); padding: 11px 14px; font-size: .95rem; }
.btn-gps::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid currentColor; margin-right: 8px; vertical-align: -1px; }

/* Chip status di atas peta: jawaban utama selalu terlihat saat pin digeser */
.map-status { position: absolute; z-index: 500; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 0; border-radius: 999px; min-height: 44px; padding: 12px 18px 12px 34px; font: 700 .95rem var(--f); background: #fff; color: var(--ink); box-shadow: 0 4px 16px rgb(31 35 41 / .22); cursor: pointer; }
.map-status::before { content: ""; position: absolute; left: 14px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--no); }
.map-status[data-state="idle"], .map-status[data-state="moving"], .map-status[data-state="zoom"] { cursor: default; font-weight: 600; color: var(--muted); }
.map-status[data-state="moving"]::before { background: var(--blue); }
.map-status[data-state="zoom"]::before { background: var(--warn); }
.map-status[data-state="loading"]::before { background: var(--sky); animation: pulse 1s ease-in-out infinite; }
.map-status[data-state="covered"] { background: var(--ok); color: #fff; }
.map-status[data-state="covered"]::before { background: #fff; }
.map-status[data-state="survey"] { background: var(--warn); color: #fff; }
.map-status[data-state="survey"]::before { background: #fff; }
.map-status[data-state="not_covered"] { background: var(--ink); color: #fff; }
.map-status[data-state="not_covered"]::before { background: #9aa4b2; }
.map-status[data-state="error"] { background: #fff; color: #b3261e; }
.map-status[data-state="error"]::before { background: #b3261e; }
@keyframes pulse { 50% { transform: scale(.55); opacity: .5; } }

.hero-controls { grid-area: controls; padding: 12px 16px 24px; display: grid; gap: 10px; align-content: start; }
.hint { font-size: .92rem; color: var(--muted); }
.hint.warn { color: var(--warn); font-weight: 600; }
.kec summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .95rem; padding: 12px 0; min-height: 44px; }
.kec select { margin-top: 8px; }

.btn { font: 600 1rem/1 var(--f); border-radius: var(--r-sm); padding: 14px 18px; border: 0; cursor: pointer; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-search { background: var(--blue); color: #fff; }
.btn-search:hover { background: var(--blue-d); }
.btn-wa { background: var(--wa); color: #fff; width: 100%; font-size: 1.05rem; padding: 17px; }
.btn-wa:hover:not(:disabled) { background: #0f7a40; }
select, input { font: 400 1rem var(--f); padding: 13px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); width: 100%; }
input::placeholder { color: #8a95a3; }

/* HASIL + FORM */
.result { padding: 24px 16px 28px; display: grid; gap: 20px; background: var(--mist); grid-template-columns: minmax(0, 1fr); }
.result-head { display: flex; gap: 14px; align-items: flex-start; }
.dot { flex: none; width: 16px; height: 16px; border-radius: 50%; margin-top: 7px; background: var(--no); }
.result[data-status="covered"] .dot { background: var(--ok); }
.result[data-status="survey"] .dot { background: var(--warn); }
.result h2 { font-size: 1.4rem; font-weight: 800; }
.result[data-status="covered"] h2 { color: var(--ok); }
.result[data-status="survey"] h2 { color: var(--warn); }
.result-head p { color: var(--muted); margin-top: 6px; max-width: 56ch; }
.lead { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; max-width: 560px; }
.lead h3 { font-size: 1.1rem; }
.row2 { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .93rem; }
.opt { font-weight: 400; color: var(--muted); }
.err { color: #b3261e; font-size: .88rem; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.fine { font-size: .82rem; color: var(--muted); }

/* KONTEN */
.paket, .how, .faq, .areas, .area-info, .foto { padding: 36px 16px; }
.paket h2, .how h2, .faq h2, .areas h2, .area-info h2, .foto h2 { font-size: 1.5rem; font-weight: 800; }
.sub { color: var(--muted); margin: 8px 0 18px; max-width: 62ch; }
/* slider paket: kartu di tengah = aktif */
.paket-slider { padding-left: 0 !important; padding-right: 0 !important; background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); overflow: hidden; }
.paket-head { padding: 0 16px; }
.ps-viewport { position: relative; max-width: 1080px; margin: 0 auto; }
.ps-track {
  --w: min(74vw, 300px);
  list-style: none; margin: 0; display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 26px calc(50% - var(--w) / 2) 22px; /* kartu pertama & terakhir bisa berada di tengah */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.ps-track::-webkit-scrollbar { display: none; }
.ps-card {
  position: relative; flex: 0 0 var(--w); scroll-snap-align: center;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 20px 20px; cursor: pointer;
  transform: scale(.93); opacity: .7;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s, background-color .35s, box-shadow .35s;
}
.ps-card[data-aktif] {
  transform: scale(1); opacity: 1; cursor: auto;
  background: var(--blue); border-color: var(--blue); color: #fff;
  box-shadow: 0 18px 38px -18px rgba(0, 79, 147, .6);
}
.ps-tag { position: absolute; top: -12px; left: 20px; background: var(--sky); color: #fff; font-size: .78rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.ps-tag-pro { background: var(--ink); }
.ps-card h3 { font-size: 1.3rem; font-weight: 800; }
.ps-speed { margin-top: 2px; font-weight: 600; color: var(--muted); }
.ps-price { margin-top: 16px; display: flex; align-items: baseline; gap: 3px; }
.ps-rp { font-weight: 700; align-self: flex-start; margin-top: 5px; }
.ps-num { font-size: clamp(2.2rem, 9vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ps-per { color: var(--muted); font-weight: 600; }
.ps-card .ps-price + .ps-cta { margin-top: 20px; }
.ps-tax { margin-top: 6px; font-size: .78rem; color: var(--muted); }
.ps-feat { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ps-feat li { position: relative; padding-left: 26px; font-size: .94rem; }
.ps-feat li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.ps-guna { margin: 14px 0 18px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .92rem; }
.ps-cta {
  margin-top: auto; min-height: 48px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  font-weight: 700; font-size: .98rem; background: var(--mist); color: var(--blue);
}
.ps-card[data-aktif] .ps-cta { background: #fff; color: var(--blue-d); }
.ps-card[data-aktif] :is(.ps-speed, .ps-per, .ps-tax, .ps-guna) { color: #cfe3f5; }
.ps-card[data-aktif] .ps-guna { border-top-color: rgba(255,255,255,.3); }
.ps-nav {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--blue);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(0,79,147,.45); transition: opacity .2s;
}
.ps-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ps-nav:disabled { opacity: 0; pointer-events: none; }
.ps-prev { left: 6px; }
.ps-next { right: 6px; }
.ps-dots { display: flex; justify-content: center; gap: 8px; padding: 0 16px; }
.ps-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #bfd0e0; cursor: pointer; transition: width .3s, background-color .3s; }
.ps-dots button[aria-current] { width: 26px; background: var(--blue); }
@media (min-width: 900px) {
  .paket-head { padding: 0 40px; }
  .ps-track { --w: 292px; }
  .ps-card { transform: scale(.9); }
  .ps-card[data-aktif] { transform: scale(1.03); }
  .ps-nav { width: 46px; height: 46px; }
  .ps-prev { left: 12px; } .ps-next { right: 12px; }
}

.how ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 18px; max-width: 62ch; }
.how li { counter-increment: s; position: relative; min-height: 32px; padding-left: 48px; color: var(--muted); }
.how li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; }
.how li p { margin: 0; }
.how li strong { color: var(--ink); display: block; margin-bottom: 2px; }

.areas ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.areas li { display: flex; }
.areas a { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-height: 44px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.areas a span { color: var(--muted); font-size: .88rem; }
.areas a:hover { border-color: var(--blue); }
.areas a:hover strong { color: var(--blue); }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; max-width: 70ch; }
.faq details:first-of-type { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; min-height: 44px; }
.faq details p { color: var(--muted); padding: 0 0 14px; }

.area-info { display: grid; gap: 14px; max-width: 900px; }
.area-info > p { max-width: 68ch; color: #39414c; }
.area-info h3, .kawasan h3 { font-size: 1.05rem; margin-top: 8px; }
.kawasan { padding: 36px 16px; display: grid; gap: 10px; max-width: 1000px; }
.kawasan h2 { font-size: 1.5rem; font-weight: 800; }
.kawasan .sub { margin-bottom: 4px; }
.kel li span { font-weight: 400; color: var(--muted); }
.result[data-status="kawasan"] .dot, .sticky-cta[data-status="kawasan"] .dot { background: var(--ok); }
.result[data-status="kawasan"] h2, .sticky-cta[data-status="kawasan"] .sticky-status { color: var(--ok); }
.map-status[data-state="kawasan"] { background: var(--ok); color: #fff; }
.map-status[data-state="kawasan"]::before { background: #fff; }
.kel { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.kel li { background: var(--mist); border-radius: 6px; padding: 6px 10px; font-size: .92rem; font-weight: 600; }
.tip { background: #fff8ec; border-left: 4px solid var(--warn); padding: 12px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; max-width: 68ch; }
blockquote { margin: 14px 0 0; padding: 14px 16px; background: var(--mist); border-radius: var(--r-sm); }
blockquote cite { display: block; margin-top: 6px; color: var(--muted); font-style: normal; font-size: .9rem; }
.foto-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 14px; }
.foto-grid img { width: 100%; height: auto; border-radius: var(--r-sm); }
.foto-grid figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }

.sticky-cta { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(31 35 41 / .12); }
.sticky-status { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.sticky-status .dot { width: 12px; height: 12px; margin: 0; flex: none; background: var(--no); border-radius: 50%; }
.sticky-cta[data-status="covered"] .dot { background: var(--ok); }
.sticky-cta[data-status="survey"] .dot { background: var(--warn); }
.sticky-cta[data-status="covered"] .sticky-status { color: var(--ok); }
.sticky-cta[data-status="survey"] .sticky-status { color: var(--warn); }
.sticky-cta .btn-wa { width: auto; flex: none; padding: 14px 20px; font-size: 1rem; }
body.has-sticky { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.foot { padding: 28px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: grid; gap: 8px;
  justify-items: center; text-align: center; }
.foot p { max-width: 60ch; }

@media (min-width: 900px) {
  .top { padding: 14px 40px; }
  .brand img { height: 32px; }
  @media (max-width: 420px) { .brand span { display: none; } }
.crumbs { padding: 12px 40px 0; }
  .hero { grid-template-areas: "copy map" "search map" "controls map"; grid-template-columns: minmax(400px, 5fr) 7fr; grid-template-rows: auto auto 1fr; min-height: min(calc(100vh - 62px), 760px); }
  .hero-copy { padding: 56px 40px 20px; align-content: end; gap: 14px; }
  .search { padding: 0 40px 4px; }
  .search-results { left: 40px; right: 40px; }
  .hero-controls { padding: 14px 40px 48px; }
  .map-wrap { margin: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
  #map { height: 100%; max-height: none; min-height: 560px; }
  .sticky-cta { display: none !important; }
  body.has-sticky { padding-bottom: 0; }
  .result { grid-template-columns: 1fr 1fr; padding: 48px 40px; align-items: start; }
  .row2 { grid-template-columns: 1fr 1fr; }
  .paket, .how, .faq, .areas, .area-info, .foto, .kawasan { padding: 56px 40px; }
  .areas ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* 6 wilayah = 3×2, tanpa kartu yatim */
  .foot { padding: 32px 40px 48px; }
}
@media (prefers-reduced-motion: reduce) { .pin-head, .pin-shadow { transition: none; } * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
