:root {
  --brand: #2e7d4f;
  --brand-strong: #1f5e3a;
  --brand-soft: #e6f4ec;
  --navy: #14324a;
  --ink: #17212b;
  --muted: #637381;
  --line: #dce6df;
  --bg: #f5f9f6;
  --surface: #ffffff;
  --surface-2: #eef4f0;
  --amber: #b8801a;
  --amber-soft: #fbf1da;
  --coral: #c9574b;
  --coral-soft: #fdecea;
  --blue: #2f6bba;
  --blue-soft: #e8f0ff;
  --violet: #6f5bb8;
  --violet-soft: #f0ecff;
  --green: #2d8556;
  --shadow: 0 16px 42px rgba(20, 50, 74, 0.12);
  --shadow-soft: 0 10px 26px rgba(20, 50, 74, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(46, 125, 79, 0.09), transparent 26%),
    radial-gradient(circle at 92% 10%, rgba(20, 50, 74, 0.07), transparent 24%),
    var(--bg);
}

.utility { background: var(--navy); color: #e9f3f6; font-size: 13px; }

.utility-inner, .nav-inner, .section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.utility-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.utility-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5cd09d;
  box-shadow: 0 0 0 4px rgba(92, 208, 157, 0.16);
  flex: 0 0 auto;
}

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 180px; }

.brand-mark {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.brand-copy strong { display: block; font-size: 17px; line-height: 1.1; }
.brand-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.nav-links { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }

.nav-links a {
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: #344452;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active { background: var(--brand-soft); color: var(--brand-strong); }
.nav-links a.nav-break { white-space: normal; line-height: 1.12; text-align: center; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--brand-strong);
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn.primary { border-color: var(--brand); background: var(--brand); color: #ffffff; }
.btn.primary:hover { background: var(--brand-strong); }
.btn.danger { border-color: #d98376; background: var(--coral); color: #ffffff; }
.btn.admin-login { border-color: var(--blue); background: var(--blue); color: #ffffff; }
.btn.admin-login:hover { background: #24548f; }

.hero { padding: 22px 0 0; }

.hero-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 18px;
  align-items: stretch;
}

.carousel {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 42px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.slide.active { opacity: 1; pointer-events: auto; }

.slide-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, rgba(46, 125, 79, 0.12), transparent 18%),
    radial-gradient(circle at 66% 75%, rgba(20, 50, 74, 0.1), transparent 20%);
}

.slide-bg svg { width: 100%; height: 100%; display: block; transform-origin: 72% 42%; }

.ad-network-line { stroke-dasharray: 7 11; animation: adNetworkFlow 22s linear infinite; }
.ad-orbit { transform-box: fill-box; transform-origin: center; animation: adOrbitBreathe 10s ease-in-out infinite; }
.ad-orbit-dashed { stroke-dasharray: 10 12; transform-box: fill-box; transform-origin: center; animation: adOrbitDash 24s linear infinite; }
.ad-pulse-dot { transform-box: fill-box; transform-origin: center; animation: adPulseDot 4.8s ease-in-out infinite; }
.ad-spark { transform-box: fill-box; transform-origin: center; animation: adSparkTwinkle 7s ease-in-out infinite; }
.ad-float-card { transform: translate3d(0, 0, 0); }

.slide-content, .hero-card { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(46, 125, 79, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.slide h1 {
  margin: 18px 0 14px;
  max-width: 520px;
  color: var(--navy);
  font-size: clamp(21px, 2.7vw, 32px);
  line-height: 1.16;
}

.slide p { max-width: 500px; margin: 0; color: #435564; font-size: 13.5px; line-height: 1.58; }

.hero-cta { display: flex; align-items: center; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 620px;
}

.metric {
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(220, 230, 223, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.metric strong { display: block; color: var(--navy); font-size: 20px; }
.metric span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.hero-card {
  align-self: center;
  border: 1px solid rgba(220, 230, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.hero-card-head { padding: 16px; border-bottom: 1px solid var(--line); background: rgba(238, 244, 240, 0.72); }
.hero-card-head small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.hero-card-head strong { display: block; margin-top: 4px; color: var(--navy); font-size: 18px; }

.schedule-list { padding: 14px; display: grid; gap: 10px; }

.schedule-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.avatar {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-weight: 850;
  font-size: 13px;
}

.schedule-item strong { display: block; color: var(--navy); font-size: 14px; }
.schedule-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.carousel-controls { position: absolute; left: 42px; bottom: 28px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.carousel-dot { width: 30px; height: 6px; border: 0; border-radius: 999px; background: rgba(20, 50, 74, 0.2); cursor: pointer; }
.carousel-dot.active { background: var(--brand); }

@keyframes adNetworkFlow { 0% { stroke-dashoffset: 0; opacity: 0.32; } 50% { opacity: 0.48; } 100% { stroke-dashoffset: -46; opacity: 0.32; } }
@keyframes adOrbitBreathe { 0%, 100% { opacity: 0.22; } 50% { opacity: 0.42; } }
@keyframes adOrbitDash { 0% { stroke-dashoffset: 0; opacity: 0.18; } 50% { opacity: 0.34; } 100% { stroke-dashoffset: -60; opacity: 0.18; } }
@keyframes adPulseDot { 0%, 100% { transform: scale(0.94); opacity: 0.38; } 50% { transform: scale(1.08); opacity: 0.76; } }
@keyframes adSparkTwinkle { 0%, 100% { transform: scale(0.75); opacity: 0.28; } 45% { transform: scale(1.02); opacity: 0.5; } }

.portal-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.portal-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.portal-tabs button {
  min-height: 34px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}

.portal-tabs button.active {
  border-color: var(--line);
  background: #ffffff;
  color: var(--brand-strong);
  box-shadow: 0 4px 12px rgba(20, 50, 74, 0.06);
}

.portal-state { display: none; padding: 18px; }
.portal-state.active { display: block; }
.portal-state h2 { margin: 0 0 6px; color: var(--navy); font-size: 21px; }
.portal-state p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }

.portal-actions { display: grid; gap: 10px; margin-top: 18px; }

.portal-action {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.portal-action:hover { border-color: rgba(46, 125, 79, 0.46); }

.portal-action .iconbox {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 850;
  font-size: 12px;
}

.portal-action strong { display: block; color: var(--navy); font-size: 14px; }
.portal-action span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.portal-action small { color: var(--brand-strong); font-size: 12px; font-weight: 850; }

.portal-footer { padding: 14px 18px; border-top: 1px solid var(--line); background: #fbfdfc; }
.portal-footer .btn { width: 100%; }

section { padding: 46px 0; }

#dashboard, #layanan, #warga, #paket, #kabupaten { scroll-margin-top: 92px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-kicker { color: var(--brand-strong); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.section-head h2 { margin: 7px 0 0; color: var(--navy); font-size: clamp(25px, 3vw, 38px); line-height: 1.1; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.55; }

.quick-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }

.quick-card, .service-card, .doctor-card, .location-card, .news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.quick-card {
  min-height: 132px;
  padding: 15px;
  display: grid;
  align-content: space-between;
  transition: transform 160ms ease, border-color 160ms ease;
}

.quick-card:hover { transform: translateY(-2px); border-color: rgba(46, 125, 79, 0.46); }

.mini-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  font-weight: 850;
  font-size: 12px;
}

.quick-card:nth-child(1) .mini-icon, .service-card:nth-child(1) .mini-icon { background: var(--brand-soft); color: var(--brand-strong); }
.quick-card:nth-child(2) .mini-icon, .service-card:nth-child(2) .mini-icon { background: var(--blue-soft); color: var(--blue); }
.quick-card:nth-child(3) .mini-icon, .service-card:nth-child(3) .mini-icon { background: var(--amber-soft); color: var(--amber); }
.quick-card:nth-child(4) .mini-icon, .service-card:nth-child(4) .mini-icon { background: var(--coral-soft); color: var(--coral); }
.quick-card:nth-child(5) .mini-icon, .service-card:nth-child(5) .mini-icon { background: var(--violet-soft); color: var(--violet); }
.quick-card:nth-child(6) .mini-icon, .service-card:nth-child(6) .mini-icon { background: #e8f7ed; color: var(--green); }
.service-card:nth-child(7) .mini-icon { background: var(--brand-soft); color: var(--brand-strong); }
.service-card:nth-child(8) .mini-icon { background: var(--blue-soft); color: var(--blue); }

.quick-card strong { display: block; color: var(--navy); font-size: 15px; line-height: 1.25; }
.quick-card span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.service-card { padding: 18px; min-height: 188px; display: grid; align-content: start; gap: 14px; }
.service-card h3 { margin: 0; color: var(--navy); font-size: 18px; }
.service-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.service-card a { margin-top: 2px; color: var(--brand-strong); font-size: 13px; font-weight: 850; }

.doctor-search {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}

.doctor-search input, .doctor-search select {
  min-height: 42px; width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
}

.doctor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.doctor-card { padding: 16px; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; align-items: start; }

.doctor-avatar {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-soft), #ffffff);
  border: 1px solid rgba(46, 125, 79, 0.22);
  color: var(--brand-strong);
  font-weight: 850;
}

.doctor-card h3 { margin: 2px 0 5px; color: var(--navy); font-size: 17px; }
.doctor-card p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.badge-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center;
  min-height: 24px; padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: #435564;
  font-size: 12px;
  font-weight: 750;
}

.badge.open { background: #e8f7ed; color: var(--green); }

.ops-showcase { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 16px; align-items: stretch; }

.ops-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); overflow: hidden; }

.ops-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); background: #f7faf8; }
.ops-card-head h3 { margin: 0; color: var(--navy); font-size: 18px; }
.ops-card-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.module-count { flex: 0 0 auto; min-width: 86px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--navy); color: #ffffff; text-align: center; }
.module-count strong { display: block; font-size: 24px; line-height: 1; }
.module-count span { display: block; margin-top: 3px; color: #bfe0d3; font-size: 11px; font-weight: 800; text-transform: uppercase; }

.ops-preview { padding: 16px; }

.flow-shell { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 12px; }

.doc-preview {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #f7faf8, #eef5f0);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  padding: 14px;
}

.doc-sheet {
  width: 128px; height: 176px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(20, 50, 74, 0.12);
  padding: 14px 12px;
  position: relative;
}

.doc-sheet .doc-crest { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); border: 2px solid var(--brand); margin: 0 auto 8px; }
.doc-sheet .doc-line { height: 6px; border-radius: 4px; background: #dbe5df; margin: 5px auto; }
.doc-sheet .doc-line.w1 { width: 78%; } .doc-sheet .doc-line.w2 { width: 92%; } .doc-sheet .doc-line.w3 { width: 64%; }
.doc-sheet .doc-qr {
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, var(--navy) 0 3px, #fff 3px 6px),
    repeating-linear-gradient(0deg, var(--navy) 0 3px, #fff 3px 6px);
  background-blend-mode: multiply;
  border: 2px solid var(--navy);
}
.doc-stamp {
  position: absolute; left: 10px; bottom: 16px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px dashed var(--coral);
  color: var(--coral); font-size: 8px; font-weight: 900;
  display: grid; place-items: center; text-align: center;
  transform: rotate(-14deg);
  opacity: .85;
}

.soap-preview { display: grid; gap: 8px; }

.soap-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px; align-items: start;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.soap-row b { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); font-size: 13px; }
.soap-row strong { display: block; color: var(--navy); font-size: 13px; }
.soap-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.workspace-mini { display: grid; gap: 10px; }

.station-strip { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px; border-radius: var(--radius-sm); background: var(--navy); color: #ffffff; }
.station-strip span { display: inline-flex; min-height: 28px; align-items: center; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 12px; font-weight: 750; }
.station-strip .active { background: #ffffff; color: var(--navy); }

.workspace-switcher { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }

.workspace-chip { min-height: 54px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #ffffff; color: var(--navy); font-size: 12px; font-weight: 850; line-height: 1.2; }
.workspace-chip small { display: block; margin-top: 4px; color: var(--muted); font-size: 10.5px; font-weight: 700; }

.pin-preview { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; align-items: stretch; }

.operator-list { display: grid; gap: 7px; }
.operator-list div, .pin-pad-preview { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #ffffff; }
.operator-list div { padding: 9px; font-size: 12px; color: var(--muted); }
.operator-list strong { display: block; color: var(--navy); font-size: 13px; }

.pin-pad-preview { padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pin-pad-preview span { min-height: 30px; display: grid; place-items: center; border-radius: 6px; background: #eef4f0; color: var(--navy); font-size: 12px; font-weight: 850; }

.ops-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 16px; }

.journey { background: var(--surface); border-block: 1px solid var(--line); }
.journey-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }

.step { position: relative; min-height: 146px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; }
.step-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--navy); color: #ffffff; font-size: 12px; font-weight: 850; }
.step strong { display: block; margin-top: 14px; color: var(--navy); font-size: 15px; line-height: 1.25; }
.step span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.locations-news { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 16px; }

.location-card { padding: 18px; min-height: 365px; }

.map-visual { height: 200px; border: 1px solid var(--line); border-radius: var(--radius); background: #f1f7f3; overflow: hidden; margin-bottom: 14px; }
.map-visual svg { width: 100%; height: 100%; display: block; }
.map-visual iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-note { margin: -8px 0 14px; text-align: right; font-size: 12px; }
.map-note a { color: var(--brand-strong); font-weight: 750; }

.news-thumb { display: grid; place-items: center; color: var(--brand-strong); }
.news-thumb svg { width: 30px; height: 30px; }

.branch-list { display: grid; gap: 10px; }
.branch { display: flex; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #ffffff; }
.branch strong, .news-card strong { color: var(--navy); font-size: 14px; }
.branch span, .news-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.news-list { display: grid; gap: 12px; }
.news-card { padding: 15px; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; }
.news-thumb { height: 72px; border-radius: var(--radius-sm); background: linear-gradient(135deg, rgba(46, 125, 79, 0.15), rgba(20, 50, 74, 0.14)), #ffffff; border: 1px solid var(--line); }

.stakeholder-band { padding: 34px 0; background: var(--navy); color: #ffffff; }
.stakeholder-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); gap: 24px; align-items: center; }
.stakeholder-shell h2 { margin: 8px 0 10px; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; }
.stakeholder-shell p { margin: 0; max-width: 680px; color: #c6d7df; line-height: 1.6; }
.stakeholder-cards { display: grid; gap: 10px; }
.stakeholder-card { padding: 13px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); }
.stakeholder-card strong { display: block; font-size: 14px; }
.stakeholder-card span { display: block; margin-top: 4px; color: #c6d7df; font-size: 12px; line-height: 1.35; }

.demo-cta { padding: 30px 0 34px; }
.demo-cta-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 24px; align-items: center;
  padding: 44px 56px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(20, 50, 74, 0.98), rgba(31, 94, 58, 0.96)), var(--navy);
  color: #ffffff; box-shadow: var(--shadow);
}
.demo-cta-shell .section-kicker { color: #8fe6b6; }
.demo-cta-shell h2 { margin: 12px 0 0; color: #ffffff; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; }
.demo-cta-shell p { margin: 16px 0 0; color: #dcefe4; max-width: 680px; line-height: 1.65; }
.demo-cta-actions { display: grid; gap: 12px; }
.demo-cta-actions .btn { min-height: 54px; justify-content: flex-start; padding: 0 26px; border-radius: 999px; font-size: 15px; }
.demo-cta-actions .btn:not(.primary) { border-color: rgba(255, 255, 255, 0.36); background: rgba(255, 255, 255, 0.08); color: #ffffff; }

.footer { padding: 34px 0; background: #ffffff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer h3, .footer h4 { margin: 0 0 10px; color: var(--navy); }
.footer p, .footer a { display: block; margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.footer a:hover { color: var(--brand-strong); }

@media (max-width: 1040px) {
  .hero-shell, .slide, .ops-showcase, .stakeholder-shell, .demo-cta-shell, .locations-news { grid-template-columns: 1fr; }
  .carousel, .portal-panel { min-height: auto; }
  .slide { position: relative; display: none; min-height: 620px; }
  .slide.active { display: grid; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services-grid, .flow-shell, .doctor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-links { display: none; }
}

@media (max-width: 720px) {
  .utility-inner, .nav-inner, .section-inner, .hero-shell { width: min(100% - 24px, 1180px); }
  .utility-inner, .nav-inner, .section-head, .footer-grid { align-items: stretch; flex-direction: column; grid-template-columns: 1fr; }
  .nav-inner { padding: 10px 0; }
  .nav-actions { width: 100%; }
  .nav-actions .btn { flex: 1; }
  .slide { min-height: 720px; padding: 24px; }
  .slide h1 { font-size: 24px; line-height: 1.18; }
  .hero-metrics, .quick-grid, .services-grid, .doctor-grid, .flow-shell, .pin-preview, .workspace-switcher, .journey-steps, .doctor-search { grid-template-columns: 1fr; }
  .carousel-controls { left: 24px; }
  .doctor-card, .news-card { grid-template-columns: 1fr; }
  .demo-cta-shell { padding: 30px 22px; border-radius: 18px; }
}

/* ===== Sales-ready additions ===== */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); }

.trustbar { padding: 20px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.trustbar-lead { margin: 0 0 12px; text-align: center; color: var(--brand-strong); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.trustbar-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.trustbar-items span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: #435564; font-size: 12.5px; font-weight: 700; }

.public-dashboard {
  padding: 52px 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f0f6f2 100%);
  border-bottom: 1px solid var(--line);
}

.dashboard-head { align-items: flex-start; }

.dashboard-entry-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(46, 125, 79, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #edf8f2);
  box-shadow: var(--shadow-soft);
}

.dashboard-entry-guide strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
}

.dashboard-entry-guide p {
  margin: 6px 0 0;
  color: #435564;
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-entry-guide b { color: var(--brand-strong); }

.dashboard-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.dashboard-selector a {
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease;
}

.dashboard-selector a:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 125, 79, 0.46);
}

.dashboard-selector strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 15px;
}

.dashboard-selector small {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 850;
}

.dashboard-selector span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--navy);
  color: #ffffff;
}

.dashboard-topbar strong { display: block; font-size: 16px; }
.dashboard-topbar span { display: block; margin-top: 4px; color: #c6d7df; font-size: 12px; }

.dashboard-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e9f3f6;
  font-size: 12px;
  font-weight: 750;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: #f7faf8;
  border-bottom: 1px solid var(--line);
}

.kpi-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(20, 50, 74, 0.06);
}

.kpi-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.kpi-icon.population { background: var(--brand-soft); color: var(--brand-strong); }
.kpi-icon.service { background: var(--blue-soft); color: var(--blue); }
.kpi-icon.budget { background: var(--amber-soft); color: var(--amber); }
.kpi-icon.complaint { background: var(--coral-soft); color: var(--coral); }
.kpi-icon.idm { background: var(--violet-soft); color: var(--violet); }
.kpi-icon.pbb { background: #e8f0ff; color: #2f6bba; }
.kpi-icon.development { background: #e8f7ed; color: #28774d; }
.kpi-icon.index { background: #f0ecff; color: #6f54b3; }
.kpi-icon.absorption { background: #fdecea; color: #b6483d; }

.kpi-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.kpi-card strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 23px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.kpi-card em {
  display: block;
  margin-top: 6px;
  color: #506170;
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}

.dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 14px;
  padding: 16px;
}

.dashboard-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.panel-head h3 { margin: 0; color: var(--navy); font-size: 17px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }

.panel-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
}

.panel-badge.green { background: #e8f7ed; color: var(--green); }
.panel-badge.amber { background: var(--amber-soft); color: var(--amber); }

.budget-panel, .service-panel, .development-panel, .population-panel { min-height: 322px; }
.map-panel, .insight-panel { min-height: 292px; }
.idm-panel { grid-column: 1 / -1; }
.pbb-panel, .insight-panel { grid-column: 1 / -1; }

.metric-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 15px 15px 0;
}

.metric-summary > div {
  min-height: 88px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7faf8;
}

.metric-summary small { display: block; color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.metric-summary strong { display: block; margin-top: 5px; color: var(--navy); font-size: 20px; }
.metric-summary span { display: block; margin-top: 5px; color: #506170; font-size: 12px; }

.compact-bars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-bars .budget-row { grid-template-columns: 1fr; gap: 7px; }
.compact-bars .budget-row b { text-align: left; }

.pbb-map-preview {
  position: relative;
  height: 176px;
  margin: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #edf6f0;
  overflow: hidden;
}

.pbb-map-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.pbb-map-marker {
  position: absolute;
  z-index: 1;
  min-width: 68px;
  padding: 5px 7px;
  border: 1px solid rgba(46, 125, 79, .44);
  border-radius: 6px;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(20, 50, 74, .16);
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.pbb-map-marker b { display: block; margin-top: 2px; color: var(--brand-strong); font-size: 12px; }
.pbb-map-marker.north { left: 14%; top: 18%; }
.pbb-map-marker.center { left: 48%; top: 42%; }
.pbb-map-marker.south { right: 11%; bottom: 14%; }
.pbb-map-marker.warn { border-color: rgba(183, 121, 31, .54); }
.pbb-map-marker.warn b { color: var(--amber); }
.pbb-map-note { margin: 7px 15px 15px; color: var(--muted); font-size: 11px; line-height: 1.35; }

.index-summary {
  display: grid;
  grid-template-columns: minmax(170px, .65fr) minmax(0, 1.35fr);
  gap: 12px;
  padding: 15px;
}

.index-score {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f0ecff);
}

.index-score small { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.index-score strong { display: block; margin-top: 7px; color: var(--navy); font-size: 38px; line-height: 1; }
.index-score span { display: block; margin-top: 10px; color: #506170; font-size: 12px; line-height: 1.4; }

.project-list { display: grid; gap: 9px; padding: 15px; }
.project-list > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.project-list p { margin: 0; }
.project-list strong { display: block; color: var(--navy); font-size: 13px; }
.project-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.project-status { width: 48px; height: 36px; display: grid; place-items: center; border-radius: 7px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 900; }
.project-status.good { background: var(--brand-soft); color: var(--brand-strong); }
.project-status.warn { background: var(--amber-soft); color: var(--amber); }

.population-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 15px 15px 6px; }
.population-summary div { padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f7faf8; }
.population-summary strong { display: block; color: var(--navy); font-size: 18px; }
.population-summary span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.age-bars { display: grid; gap: 10px; padding: 10px 15px 15px; }
.age-bars > div { display: grid; grid-template-columns: 100px minmax(100px, 1fr) 42px; gap: 9px; align-items: center; }
.age-bars span { color: var(--navy); font-size: 12px; font-weight: 800; }
.age-bars b { color: var(--brand-strong); font-size: 12px; text-align: right; }

.idm-summary {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr);
  gap: 14px;
  padding: 15px;
}

.idm-score {
  min-height: 154px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f0ecff);
}

.idm-score span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.idm-score strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 42px;
  line-height: 1;
}

.idm-score em {
  display: block;
  margin-top: 10px;
  color: #506170;
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.idm-bars {
  display: grid;
  gap: 11px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.idm-bars > div {
  display: grid;
  grid-template-columns: minmax(100px, .55fr) minmax(140px, 1fr) 48px;
  gap: 10px;
  align-items: center;
}

.idm-bars span { color: var(--navy); font-size: 13px; font-weight: 800; }
.idm-bars b { color: var(--brand-strong); font-size: 13px; text-align: right; }

.budget-bars {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.budget-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.82fr) minmax(120px, 1fr) 44px;
  gap: 12px;
  align-items: center;
}

.budget-row strong { display: block; color: var(--navy); font-size: 13px; }
.budget-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.budget-row b { color: var(--brand-strong); font-size: 13px; text-align: right; }

.bar {
  height: 11px;
  border-radius: 999px;
  background: #e8f0eb;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #74c391);
}

.line-chart {
  height: 210px;
  padding: 10px 14px 0;
}

.line-chart svg { width: 100%; height: 100%; display: block; }
.chart-grid { stroke: #e1eae4; stroke-width: 1; }
.chart-area { fill: rgba(46, 125, 79, 0.14); }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; }
.chart-points circle { fill: #ffffff; stroke: var(--brand); stroke-width: 3; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.mini-stats span {
  min-height: 54px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7faf8;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.mini-stats b { display: block; color: var(--navy); font-size: 18px; }

.map-dashboard {
  position: relative;
  height: 222px;
  margin: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #edf6f0, #f8fbf9);
  overflow: hidden;
}

.map-dashboard svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-dashboard iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.map-dashboard-note {
  margin: -7px 15px 15px;
  text-align: right;
  font-size: 12px;
}

.map-dashboard-note a { color: var(--brand-strong); font-weight: 800; }

.map-pin {
  position: absolute;
  z-index: 1;
  display: grid;
  min-width: 92px;
  padding: 7px 9px;
  border: 1px solid rgba(46, 125, 79, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(20, 50, 74, 0.12);
}

.map-pin::before {
  content: "";
  position: absolute;
  left: 10px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(46, 125, 79, 0.16);
}

.map-pin b { color: var(--navy); font-size: 12px; }
.map-pin small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.map-pin.p1 { left: 12%; top: 22%; }
.map-pin.p2 { right: 12%; top: 34%; }
.map-pin.p3 { left: 42%; bottom: 18%; }

.insight-list {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.insight-list div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.insight-list b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
  font-size: 12px;
}

.insight-list span { color: #435564; font-size: 13px; line-height: 1.45; }

.other-dashboard-showcase {
  display: grid;
  grid-template-columns: minmax(205px, 1.15fr) repeat(5, minmax(0, .7fr));
  gap: 10px;
  align-items: stretch;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: #f7faf8;
}

.other-dashboard-showcase > div { padding: 7px 4px; }
.other-dashboard-showcase > div strong { display: block; color: var(--navy); font-size: 14px; }
.other-dashboard-showcase > div span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.other-dashboard-showcase a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #ffffff; }
.other-dashboard-showcase a:hover { border-color: rgba(46, 125, 79, .46); }
.other-dashboard-showcase b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--brand-soft); color: var(--brand-strong); font-size: 10px; }
.other-dashboard-showcase a span { color: var(--navy); font-size: 11px; font-weight: 800; line-height: 1.25; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.price-card.featured { border-color: var(--brand); box-shadow: 0 16px 42px rgba(46,125,79,.16); }
.price-badge { position: absolute; top: -11px; left: 22px; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.price-name { color: var(--navy); font-size: 18px; font-weight: 800; }
.price-tag { color: var(--navy); font-size: 26px; font-weight: 850; line-height: 1; }
.price-tag span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.price-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.price-card li { position: relative; padding-left: 22px; color: #3a4a58; font-size: 13px; line-height: 1.4; }
.price-card li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 900; }
.price-card .btn { margin-top: auto; width: 100%; }
.pricing-note { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.pricing-note a { color: var(--brand-strong); font-weight: 800; }

.anchor-offset { display: block; position: relative; top: -78px; visibility: hidden; height: 0; }

@media (max-width: 1040px) {
  .nav-inner { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .brand { flex: 1; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 4px; }
  .nav-actions { display: none; flex-basis: 100%; flex-direction: column; gap: 8px; }
  .nav.open .nav-links, .nav.open .nav-actions { display: flex; }
  .nav-actions .btn { width: 100%; }
  .dashboard-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-entry-guide { grid-template-columns: 1fr; }
  .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-main { grid-template-columns: 1fr; }
  .idm-summary { grid-template-columns: 1fr; }
  .index-summary { grid-template-columns: 1fr; }
  .pbb-panel, .insight-panel { grid-column: auto; }
  .other-dashboard-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .other-dashboard-showcase > div { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .dashboard-selector { grid-template-columns: 1fr; }
  .dashboard-topbar, .panel-head { align-items: stretch; flex-direction: column; }
  .dashboard-pills { justify-content: flex-start; }
  .dashboard-kpis, .mini-stats, .budget-row, .idm-bars > div, .metric-summary, .compact-bars, .population-summary, .age-bars > div { grid-template-columns: 1fr; }
  .budget-row b { text-align: left; }
  .idm-bars b { text-align: left; }
  .kpi-card strong { font-size: 21px; }
  .map-pin { min-width: 78px; }
  .other-dashboard-showcase { grid-template-columns: 1fr; }
}

/* ===== Premium dark hero ===== */
.hero {
  position: relative;
  padding: 46px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 10% -12%, rgba(46, 125, 79, 0.30), transparent 60%),
    radial-gradient(900px 520px at 104% 118%, rgba(11, 34, 51, 0.95), transparent 62%),
    linear-gradient(135deg, #12405a 0%, #0f2d40 46%, #0b2130 100%);
}
.hero-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-fx .hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fx .fx-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(170px, 22vw, 260px);
  z-index: 1;
}
.hero-fx .star {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #eafff5; opacity: .4;
  box-shadow: 0 0 6px rgba(180, 255, 220, 0.7);
  animation: adTwinkle 5.5s ease-in-out infinite;
}
@keyframes adTwinkle {
  0%, 100% { opacity: .12; transform: scale(.6); }
  50% { opacity: .85; transform: scale(1.15); }
}
.hero .hero-shell { position: relative; z-index: 1; }

/* carousel & slides on dark */
.hero .carousel { background: transparent; border: 0; box-shadow: none; }
.hero .slide-bg {
  display: block;
  opacity: 0.82;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 33%, rgba(0, 0, 0, 0.35) 50%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 33%, rgba(0, 0, 0, 0.35) 50%, #000 70%);
}
.hero .slide-bg svg {
  transform: translateX(4%) scale(1.04);
  filter: saturate(0.76) brightness(0.56) contrast(1.12);
}
.hero .eyebrow {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(111, 228, 176, 0.38);
  color: #bff0d2;
}
.hero .slide h1 { color: #ffffff; }
.hero .slide p { color: rgba(228, 240, 233, 0.82); }
.hero .metric {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.hero .metric strong { color: #ffffff; }
.hero .metric span { color: rgba(214, 231, 223, 0.72); }
.hero .carousel-dot { background: rgba(255, 255, 255, 0.28); }
.hero .carousel-dot.active { background: #6fd39a; }
.hero .hero-card,
.hero .portal-panel { box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34); }
.hero .btn:not(.primary):not(.danger) {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.hero .btn:not(.primary):not(.danger):hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

/* ===== Alternating section backgrounds (halus) ===== */
.section-tint {
  position: relative;
  background:
    linear-gradient(135deg, #eef4f0 0%, #e6efe9 52%, #dde8e0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 14px 34px rgba(20, 50, 74, 0.06);
  border-block: 1px solid #e2ebe4;
}

@media (max-width: 720px) {
  .hero { padding: 30px 0 40px; }
  .hero-fx .fx-hills { height: 150px; }
  .hero .slide-bg { display: none; }
}
