/* ============================================================
   PERIZINAN (Revisi 65) - hero garis kontur, katalog layanan,
   alur tiga jalur. Awalan kelas: izin-

   Ubin katalog meminjam bahasa visual assets/aplikasi-terkait.css
   (ubin seragam 76px, nama, keterangan) tetapi SELURUH aturannya
   diberi lingkup .izin supaya tidak bentrok bila kedua berkas
   dimuat pada halaman yang sama.

   Prinsip (lanjutan Revisi 12): FLAT. Tanpa gradasi dua-warna
   pada ubin, tanpa glow. Gradasi hanya dipakai pada panel hero.
   ============================================================ */

.izin {
  --accent-soft: #eaf3fc;
  --accent-line: #bedbf6;
  --panel: #0e1a2b;
  --panel2: #152438;
  --shadow-1: 0 6px 20px rgba(20, 36, 58, 0.08);
  --shadow-2: 0 18px 44px rgba(20, 36, 58, 0.14);
  --r-md: 16px;
  --r-lg: 20px;
}
.izin .wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 28px);
}
.izin .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.izin h1,
.izin h2,
.izin h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.izin-cap {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 7px 10px;
  margin-bottom: 10px;
}
.izin-ket {
  margin: 9px 0 0;
  max-width: 56ch;
  font-size: 13.5px;
  color: var(--ink2);
}

/* ---------- katalog ---------- */
.izin-katalog {
  padding: clamp(44px, 5.5vw, 74px) 0 clamp(42px, 5vw, 68px);
  background: var(--canvas);
}
.izin-katalog h2 {
  font-size: clamp(22px, 2.7vw, 32px);
  font-weight: 700;
}
.izin-alat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px 0 12px;
}
.izin-cari {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 300px;
  max-width: 400px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.izin-cari:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 4px rgba(39, 131, 222, 0.13);
}
.izin-cari svg {
  flex: none;
  opacity: 0.45;
}
.izin-cari input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  padding: 9px 0;
}
.izin-cari input::placeholder {
  color: var(--ink3);
}
.izin-cari button {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  padding: 9px 17px;
  cursor: pointer;
  transition: background 0.3s;
}
.izin-cip-bar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.izin-cip {
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition:
    border-color 0.25s,
    color 0.25s,
    background 0.25s;
}
.izin-cip.aktif {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.izin-hitung {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.4px;
  color: var(--ink3);
  margin: 0 0 18px;
}

/* ubin: LOGO TIDAK DIPAKAI DI SINI, ILUSTRASINYA HARUS SERAGAM */
.izin .apl-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.izin .app {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 14px 20px;
  text-align: center;
  text-decoration: none;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.izin .app:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-1);
}
.izin .app:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.izin .app.sembunyi {
  display: none;
}
.izin .app-ubin {
  width: 76px;
  height: 76px;
  flex: none;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.izin .app:hover .app-ubin {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.izin .ilu {
  width: 40px;
  height: 40px;
  color: var(--accent-strong);
  transition: transform 0.25s var(--ease);
}
.izin .app-logo {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  transition: transform 0.25s var(--ease);
}
.izin .app:hover .ilu {
  transform: scale(1.06);
}
.izin .app:hover .app-logo {
  transform: scale(1.06);
}
.izin .app-nama {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.izin .app-ket {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink3);
}
.izin .app-cap {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 3px 9px;
  margin-top: 2px;
}
.izin .app.jenis .app-ubin {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.izin .app.luar::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 11px;
  width: 11px;
  height: 11px;
  opacity: 0.5;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.izin .app-garis {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.izin .app-garis::before,
.izin .app-garis::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}
.izin .app-garis::before {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  border-top-right-radius: var(--r-md);
  transition:
    width 0.26s var(--ease) 0.26s,
    height 0.26s var(--ease);
}
.izin .app-garis::after {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-bottom-left-radius: var(--r-md);
  transition:
    width 0.26s var(--ease) 0.26s,
    height 0.26s var(--ease);
}
.izin-kosong {
  display: none;
  padding: 40px 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink3);
}
.izin-kosong.tampil {
  display: block;
}

/* ---------- alur ---------- */
.izin-alur {
  position: relative;
  isolation: isolate;
  padding: clamp(44px, 5.5vw, 74px) 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.izin-alur::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--accent) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.07;
  -webkit-mask-image: radial-gradient(
    120% 80% at 50% 40%,
    #000 30%,
    transparent 78%
  );
  mask-image: radial-gradient(120% 80% at 50% 40%, #000 30%, transparent 78%);
}
.izin-alur h2 {
  font-size: clamp(22px, 2.7vw, 32px);
  font-weight: 700;
}
.izin-tab-bar {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 22px 0 26px;
}
.izin-geser {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  transition:
    transform 0.45s var(--ease),
    width 0.45s var(--ease);
}
.izin-tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink2);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s;
}
.izin-tab[aria-selected="true"] {
  color: #fff;
}
.izin-panel[hidden] {
  display: none;
}
.izin-langkah {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.izin-step {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 18px 18px;
}
.izin-step .no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--accent-strong);
}
.izin-step h3 {
  font-size: 14px;
  margin: 9px 0 6px;
}
.izin-step p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink2);
}
.izin-step .wkt {
  display: block;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink3);
}

/* ---------- animasi masuk ---------- */
.izin .anim {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s ease var(--tunda, 0ms),
    transform 0.6s var(--ease) var(--tunda, 0ms);
}
.izin .anim.tampil {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .izin .apl-grid {
    perspective: 1100px;
    perspective-origin: 50% 40%;
  }
  .izin .app {
    transform-style: preserve-3d;
    will-change: transform;
  }
  .izin .app:hover {
    transform: translateY(-3px) rotateX(var(--rx, 0deg))
      rotateY(var(--ry, 0deg));
    box-shadow: var(--shadow-2);
  }
  .izin .app:hover .app-garis::before,
  .izin .app:hover .app-garis::after {
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    transition:
      width 0.26s var(--ease),
      height 0.26s var(--ease) 0.26s;
  }
  .izin-cari button:hover {
    background: var(--accent-strong);
  }
  .izin-cip:hover {
    border-color: var(--accent-line);
    color: var(--accent-strong);
  }
  .izin-cip.aktif:hover {
    color: #fff;
  }
}
@media (max-width: 1100px) {
  .izin .apl-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .izin-langkah {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .izin .apl-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}
@media (max-width: 560px) {
  .izin .apl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .izin .app {
    padding: 18px 10px 16px;
    gap: 10px;
  }
  .izin .app-ubin {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .izin .ilu {
    width: 30px;
    height: 30px;
  }
  .izin .app-ket {
    display: none;
  }
  .izin-langkah {
    grid-template-columns: 1fr;
  }
  .izin-alat {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .izin .anim {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .izin-geser {
    transition: none;
  }
  .izin .app,
  .izin .ilu {
    transition: none;
  }
}
