/*
 * Landing page Anggota ISEI. Gaya Airbnb sama dengan Portal Anggota: Manrope, teks #222/#717171,
 * garis #ebebeb, kartu putih dengan bayangan lembut. Warna brand: navy #1b2539 / #022b8b, kuning #ecdc74.
 */
:root {
  --ink: #222222;
  --ink-muted: #717171;
  --line: #ebebeb;
  --line-strong: #dddddd;
  --surface: #ffffff;
  --surface-muted: #f7f7f7;
  --page: #ffffff;
  --page-soft: #f0f3f8;
  --navy: #1b2539;
  --navy-deep: #0b1d52;
  --blue: #022b8b;
  --blue-soft: #eaeef7;
  --yellow: #ecdc74;
  --yellow-hover: #e2d061;
  --amber: #ffb703;
  --green: #2e7d32;
  --warning: #f57c00;
  --kta: #212d45;
  /* biru kartu belakang = biru garis siluet di kartu hero */
  --card-blue-light: #4a64a8;
  --card-blue: #344b85;
  --card-blue-deep: #1f2d55;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 6px 20px rgba(0, 0, 0, 0.14);
  --container: 1200px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nowrap {
  white-space: nowrap;
}

/* Atribut hidden selalu menang atas display komponen (mis. .btn) */
[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}
.btn:active {
  transform: scale(0.98);
}
.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 16px;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: #263350;
}
.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}
.btn-yellow:hover {
  background: var(--yellow-hover);
}
.btn-outline {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--surface-muted);
}
.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 13px;
  color: var(--ink-muted);
}

.header-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.header-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}
.header-nav a:hover {
  background: var(--surface-muted);
}
/* Menu yang baru diklik (lihat main.js): tebal + garis bawah; hilang saat user scroll sendiri */
.header-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.header-nav a.is-active {
  font-weight: 800;
}
.header-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  gap: 8px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--page-soft) 0%, var(--page) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  text-wrap: balance;
}
.hero .lead {
  max-width: 520px;
  margin-top: 20px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-points svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: var(--blue-soft);
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Visual hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 48px 0 32px;
}
/* Lingkaran penuh di belakang kartu */
.blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(460px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e6ebf5;
  transform: translate(-50%, -50%);
}

/* ---------- Kartu KTA (sama dengan kartu di portal) ---------- */
.kta {
  position: relative;
  color: #fff;
  background: var(--kta) url("../images/bg-new.jpg") center / cover;
  border-radius: 15px;
}
/* Cincin orbit putus-putus di sekitar kartu, berputar pelan */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(540px, 116%);
  aspect-ratio: 1;
  border: 1.5px dashed rgba(2, 43, 139, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 60s linear infinite;
}
/* Bola tepat di garis orbit: titik pada lingkaran (50% + 50%·cos θ, 50% + 50%·sin θ) */
.orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orbit span:nth-child(1) {
  /* θ = -90° (atas) */
  top: 0;
  left: 50%;
  background: var(--yellow);
}
.orbit span:nth-child(2) {
  /* θ = 35° */
  top: 78.68%;
  left: 90.96%;
  width: 9px;
  height: 9px;
  background: var(--blue);
}
.orbit span:nth-child(3) {
  /* θ = 145° */
  top: 78.68%;
  left: 9.04%;
  width: 10px;
  height: 10px;
  background: #8fa6e0;
}
@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Kartu utama + kartu kedua di belakang, melayang pelan */
.card-stack {
  position: relative;
  animation: float 7s ease-in-out infinite;
}
.kta-back {
  position: absolute;
  inset: 0;
  border-radius: 15px;
  background: linear-gradient(150deg, var(--card-blue-light) 0%, var(--card-blue) 45%, var(--card-blue-deep) 100%);
  box-shadow: 0 20px 40px rgba(11, 29, 82, 0.2);
  transform: translate(26px, 10px) rotate(7deg);
}

/* Proporsi kartu asli (390 x 560), tegak supaya garis tetap rapi */
.kta-hero {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 320px;
  aspect-ratio: 390 / 560;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(11, 29, 82, 0.28), 0 6px 16px rgba(0, 0, 0, 0.12);
}
/* Kilau yang menyapu kartu secara berkala */
.kta-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.14) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 7s ease-in-out 1s infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%,
  55% {
    transform: translateX(-120%);
  }
  85%,
  100% {
    transform: translateX(120%);
  }
}
/* Garis siluet navy bergradasi, menyatu dengan kartu */
.kta-hero .ghost-line {
  background: linear-gradient(90deg, #364563 0%, #283654 100%);
}
/* Garis di samping lingkaran kuning */
.kta-hero .ghost-top .ghost-line {
  height: 30px;
}
/* Dua garis di bawah baris atas: lebih turun dan lebih tinggi */
.kta-hero .ghost-top {
  margin-top: 28px;
  margin-bottom: 64px;
}
.kta-hero > .ghost-line {
  height: 30px;
  margin-bottom: 16px;
}
/* Logo ISEI di latar kartu diperkecil */
.kta-hero {
  background-size: 78% auto;
  background-repeat: no-repeat;
}
.kta-hero .ghost-avatar {
  width: 60px;
  height: 60px;
  box-shadow: 0 0 0 8px rgba(236, 220, 116, 0.14), 0 0 28px rgba(236, 220, 116, 0.45);
}

.kta-logo {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}
.kta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.kta-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.kta-no {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  color: #fde047;
}
.kta-status {
  font-size: 11px;
}
.kta-photo {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 24px;
  font-weight: 700;
}
.kta-label {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fde047;
}
.kta-value {
  font-size: 13px;
  font-weight: 700;
}
.kta-foot {
  margin-top: 18px;
  text-align: center;
}
.kta-branch {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.kta-qr {
  display: inline-block;
  margin-top: 8px;
  padding: 5px;
  border-radius: 5px;
  background: #fff;
  color: #111;
}
.kta-qr .qr {
  width: 64px;
  height: 64px;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-float);
  font-size: 14px;
  line-height: 1.3;
}
.float-chip strong {
  display: block;
  font-weight: 700;
}
.float-chip small {
  font-size: 12px;
  color: var(--ink-muted);
}
.chip-paid {
  top: 0;
  left: -4%;
  animation: float 6s ease-in-out infinite;
}
.chip-card {
  right: -4%;
  bottom: 6%;
  animation: float 6s ease-in-out 1.5s infinite;
}
.chip-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.chip-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chip-icon-green {
  background: rgba(46, 125, 50, 0.12);
}
.chip-icon-green svg {
  stroke: var(--green);
}
.chip-icon-yellow {
  background: rgba(236, 220, 116, 0.35);
}
.chip-icon-yellow svg {
  stroke: #8a7400;
  stroke-width: 2;
}
.chip-branch {
  left: -6%;
  bottom: 30%;
  animation: float 6s ease-in-out 3s infinite;
}
.chip-icon-navy {
  background: var(--blue-soft);
}
.chip-icon-navy svg {
  stroke: var(--blue);
  stroke-width: 1.8;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- Section ---------- */
.section {
  padding: 96px 0;
}
.section-tight {
  padding: 24px 0;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.kicker {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  text-wrap: balance;
}
.section-head p:not(.kicker) {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-muted);
}

/* ---------- Langkah pendaftaran ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}
.step:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}
.step-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 236px;
  padding: 24px 20px;
  background: var(--page-soft);
  border-bottom: 1px solid var(--line);
}
.step-body {
  padding: 22px 22px 26px;
}
.step-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.step-no {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 15px;
  font-weight: 800;
}
.step h3 {
  padding-top: 4px;
  font-size: 18px;
  font-weight: 700;
}
.step-body p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-muted);
}

/* Pratinjau mini komponen portal */
.mini {
  width: 100%;
  max-width: 230px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  font-size: 11px;
  line-height: 1.35;
}
.mini-title {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.mini-stack {
  border: 1px solid #b0b0b0;
  border-radius: var(--radius-sm);
}
.mini-field {
  display: block;
  padding: 6px 8px;
}
.mini-stack .mini-field + .mini-field {
  border-top: 1px solid #b0b0b0;
}
.mini-field span {
  display: block;
  font-size: 9px;
  color: var(--ink-muted);
}
.mini-field b {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-captcha {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.mini-captcha-img {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  padding: 0 8px;
  border: 1px solid #b0b0b0;
  border-radius: var(--radius-sm);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 1px;
  background: repeating-linear-gradient(-20deg, #fff 0 6px, #f3f3f3 6px 7px);
}
.mini-field-solo {
  flex: 1;
  min-width: 0;
  border: 1px solid #b0b0b0;
  border-radius: var(--radius-sm);
}
.mini-btn {
  margin-top: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.mini-bill-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.mini-bill-title {
  font-size: 12px;
  font-weight: 700;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}
.badge-warning {
  background: rgba(245, 124, 0, 0.12);
  color: var(--warning);
}
.mini-bill-no {
  margin-top: 8px;
  color: var(--ink-muted);
}
.mini-bill-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.mini-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}
.pay-chip {
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
}

.kta-mini {
  width: 100%;
  max-width: 220px;
  padding: 14px;
  transform: rotate(-2deg);
  box-shadow: 0 10px 24px rgba(11, 29, 82, 0.25);
}
.kta-mini .kta-logo {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
}
.kta-mini .kta-name {
  font-size: 12px;
}
.kta-mini .kta-no {
  font-size: 12px;
}
/* Kartu mini langkah 4: foto berupa lingkaran kuning polos */
.kta-mini .kta-photo {
  width: 52px;
  height: 52px;
  border: 0;
  background: var(--yellow);
}
.kta-mini .kta-foot {
  margin-top: 10px;
}
.kta-mini .kta-branch {
  font-size: 10px;
}
.kta-mini .kta-qr {
  margin-top: 6px;
  padding: 4px;
}
.kta-mini .kta-qr .qr {
  width: 44px;
  height: 44px;
}

.steps-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin-top: 48px;
  font-size: 15px;
  color: var(--ink-muted);
}
.steps-cta a.text-link {
  color: var(--ink);
}

/* ---------- Banner kartu ---------- */
.banner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 48px;
  overflow: hidden;
  padding: 64px;
  border-radius: var(--radius-xl);
  background: radial-gradient(120% 140% at 0% 0%, #12307f 0%, var(--navy-deep) 55%, #081640 100%);
  color: #fff;
}
.banner-visual {
  display: flex;
  justify-content: center;
}
/* Proporsi kartu asli (390 x 560), tegak; semua garis di dalam kartu */
.ghost-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 290px;
  aspect-ratio: 390 / 560;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(2, 10, 40, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.ghost-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.ghost-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--yellow);
}
.ghost-line {
  display: block;
  height: 22px;
  margin-bottom: 14px;
  border-radius: 6px;
  background: rgba(70, 100, 180, 0.35);
}
.ghost-top .ghost-line {
  flex: 1;
  margin: 0;
}
.ghost-line-sm {
  width: 70%;
}
.ghost-qr {
  align-self: center;
  margin-top: auto;
  padding: 6px;
  border-radius: 6px;
  background: #fff;
  color: #111;
}
.ghost-qr .qr {
  width: 56px;
  height: 56px;
}
.banner-copy h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  color: #fff;
}
.banner-copy p {
  max-width: 560px;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}
.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Cabang (peta ilustrasi) ---------- */
.map-panel {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: radial-gradient(120% 140% at 0% 0%, #12307f 0%, var(--navy-deep) 55%, #081640 100%);
}
.map,
.map-canvas {
  position: relative;
}
.map img {
  width: 100%;
  height: auto;
}
.map-pins {
  position: absolute;
  inset: 0;
}
.pin {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.pin::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 2px var(--navy-deep);
  transition: transform 0.2s, background-color 0.2s;
}
.pin:hover::before,
.pin.is-active::before {
  transform: scale(1.5);
  background: #fff3a8;
}
.pin.is-active {
  z-index: 3;
}
.pin.is-active::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}
.pin.is-dim {
  opacity: 0.2;
}
.pin-pusat {
  z-index: 2;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
}
.pin-pusat::before {
  inset: 7px;
  background: #fff;
  box-shadow: 0 0 0 4px var(--yellow);
}
.pin-pusat .pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(236, 220, 116, 0.45);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Kartu info cabang yang dipilih: di atas pin, pindah ke bawah/samping bila dekat tepi */
.map-card {
  position: absolute;
  z-index: 4;
  width: 260px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  line-height: 1.45;
  transform: translate(-50%, calc(-100% - 18px));
  pointer-events: none;
}
.map-card[hidden] {
  display: none;
}
.map-card.below {
  transform: translate(-50%, 18px);
}
.map-card.align-left {
  transform: translate(-24px, calc(-100% - 18px));
}
.map-card.align-right {
  transform: translate(calc(-100% + 24px), calc(-100% - 18px));
}
.map-card.below.align-left {
  transform: translate(-24px, 18px);
}
.map-card.below.align-right {
  transform: translate(calc(-100% + 24px), 18px);
}
.map-card-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}
.map-card strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}
.map-card-city {
  display: block;
  color: var(--ink-muted);
}
.map-card p {
  margin-top: 6px;
  color: var(--ink);
}
.map-card p:empty {
  display: none;
}
.map-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}
.legend-pusat {
  background: #fff;
  box-shadow: 0 0 0 3px var(--yellow);
}

.branch-tools {
  display: flex;
  justify-content: center;
  margin: 40px 0 24px;
}
.branch-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s;
}
.branch-search:focus-within {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}
.branch-search svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}
.branch-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.branch-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.branch-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.branch-item:hover {
  border-color: var(--ink);
}
.branch-item.is-active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.branch-item .dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 2px var(--navy);
}
.branch-item.is-pusat .dot {
  background: #fff;
  box-shadow: 0 0 0 3px var(--yellow), 0 0 0 4px var(--navy);
}
.branch-item b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.branch-item small {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}
.branch-empty {
  text-align: center;
  color: var(--ink-muted);
}
.branch-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.faq-intro p:not(.kicker) {
  margin: 16px 0 28px;
  font-size: 17px;
  color: var(--ink-muted);
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  position: relative;
  display: block;
  padding: 24px 48px 24px 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}
.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-list summary:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.faq-answer {
  padding: 0 48px 24px 0;
  font-size: 16px;
  color: var(--ink-muted);
}
.faq-answer b {
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.8fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer-brand p {
  max-width: 300px;
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-muted);
}
.footer-title {
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
}
.footer-list,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.footer-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink-muted);
}
.footer-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-list a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.footer-list a:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  text-decoration: none;
}
.footer-bottom {
  padding-bottom: 32px;
  font-size: 14px;
  color: var(--ink-muted);
}
.footer-bottom p {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
  .header-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .branch-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 64px;
    text-align: center;
  }
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta,
  .hero-points {
    justify-content: center;
  }
  .banner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 32px;
    text-align: center;
  }
  .ghost-card {
    max-width: 230px;
  }
  .banner-copy p {
    margin-left: auto;
    margin-right: auto;
  }
  .banner-actions {
    justify-content: center;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-intro {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .branch-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-panel {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 16px;
  }
  .header-inner .brand-sub {
    display: none;
  }
  .header-actions .btn {
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
  }
  .section {
    padding: 64px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .section-head p:not(.kicker) {
    font-size: 16px;
  }
  .hero-cta .btn {
    flex: 1 1 100%;
  }
  .kta-hero {
    width: 270px;
    padding: 20px;
  }
  .float-chip {
    padding: 10px 12px;
    font-size: 13px;
  }
  .hero-visual {
    padding: 56px 0 40px;
  }
  .chip-paid {
    top: 0;
    left: 0;
  }
  .chip-branch {
    display: none;
  }
  .orbit {
    width: 96%;
  }
  .kta-back {
    transform: translate(16px, 8px) rotate(6deg);
  }
  .chip-card {
    right: 0;
    bottom: 0;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step-preview {
    min-height: 0;
  }
  .banner {
    padding: 40px 20px;
    border-radius: var(--radius-lg);
  }
  .banner-actions .btn {
    flex: 1 1 100%;
  }
  .faq-list summary {
    padding: 20px 40px 20px 0;
    font-size: 16px;
  }
  .faq-answer {
    padding-right: 0;
    font-size: 15px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }
  .map-panel {
    padding: 12px 8px 16px;
    border-radius: var(--radius-lg);
  }
  .map-legend {
    padding: 0 8px;
  }
  .pin {
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
  }
  .pin::before {
    inset: 4px;
  }
  .pin-pusat {
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
  }
  .pin-pusat::before {
    inset: 6px;
    box-shadow: 0 0 0 3px var(--yellow);
  }
  /* Peta kecil di HP: kartu info pindah ke bawah peta, tidak menutupi titik */
  .map-card,
  .map-card.below,
  .map-card.align-left,
  .map-card.align-right,
  .map-card.below.align-left,
  .map-card.below.align-right {
    position: static;
    width: auto;
    margin: 12px 8px 0;
    transform: none;
    box-shadow: none;
  }
  .branch-list {
    grid-template-columns: 1fr;
  }
}

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