/* ==========================================================================
   Halaman Produk Digital (/produk-digital/)
   Berdiri sendiri. Gaya header sama dengan Layanan dan Tentang.
   Semua class memakai prefix pd-. Variabel warna dari global.css.
   ========================================================================== */

.pd {
  --pd-grad: linear-gradient(90deg, var(--blue), var(--teal) 55%, var(--green));
  --pd-grad-45: linear-gradient(
    45deg,
    var(--blue),
    var(--teal) 55%,
    var(--green)
  );
  --pd-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: 1360px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 64px) 0 clamp(80px, 11vw, 160px);
  overflow-x: clip;
  animation: pd-in 0.8s var(--pd-ease) both;
}
@keyframes pd-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pd-up {
  from {
    transform: translateY(112%);
  }
  to {
    transform: none;
  }
}
.pd h1,
.pd h2,
.pd p,
.pd li,
.pd b {
  min-width: 0;
  overflow-wrap: break-word;
}

/* ---------- hero ---------- */
.pd-title {
  margin: 0;
  font-size: clamp(40px, 10.5vw, 170px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.075em;
}
.pd-ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.pd-ln > span {
  display: block;
  animation: pd-up 1s var(--pd-ease) both;
  animation-delay: var(--d, 0.1s);
}
.pd-title em {
  background: var(--pd-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.pd-lede {
  max-width: 28em;
  margin: clamp(20px, 3vw, 40px) 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.45;
}

/* ---------- kelompok produk ---------- */
.pd-group {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
  margin-top: clamp(72px, 10vw, 150px);
}
.pd-side {
  grid-column: 1 / span 4;
  align-self: start;
  position: sticky;
  top: 110px;
}
.pd-cat {
  margin: 0;
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.pd-note {
  max-width: 18em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}
.pd-list {
  grid-column: 6 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.pd-list li {
  border-bottom: 1px solid var(--line);
}
.pd-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  padding: clamp(18px, 2vw, 26px) 0;
  color: var(--fg);
  text-decoration: none;
}
.pd-name {
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.pd-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}
.pd-state::before {
  width: 8px;
  height: 8px;
  flex: none;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  content: "";
}
.pd-state svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--pd-ease);
}

/* baris yang sudah punya subdomain */
.pd-row.is-live {
  transition:
    padding 0.45s var(--pd-ease),
    color 0.3s;
}
.pd-row.is-live::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--pd-grad);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--pd-ease);
}
.pd-row.is-live .pd-state {
  color: var(--fg);
  font-weight: 500;
}
.pd-row.is-live .pd-state::before {
  border: 0;
  background: var(--pd-grad-45);
}
.pd-row.is-live:hover {
  padding-left: 10px;
  color: var(--teal);
}
.pd-row.is-live:hover::after {
  transform: none;
}
.pd-row.is-live:hover .pd-state svg {
  transform: translateX(4px);
}

/* ---------- penutup ---------- */
.pd-close {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  margin-top: clamp(96px, 13vw, 200px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line-strong);
}
.pd-close p {
  max-width: 15em;
  margin: 0;
  font-size: clamp(30px, 4.6vw, 68px);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.06em;
  text-wrap: balance;
}
.pd-close p span {
  color: var(--muted);
}
.pd-btn {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 6px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-stretch: 80%;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}
.pd-btn .t {
  padding: 18px 24px;
}
.pd-btn .a {
  display: grid;
  place-items: center;
  width: 58px;
  background: var(--pd-grad-45);
  color: var(--on-brand);
  transition: width 0.5s var(--pd-ease);
}
.pd-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--pd-ease);
}
.pd-btn:hover .a {
  width: 90px;
}
.pd-btn:hover svg {
  transform: translateX(8px);
}

/* ---------- animasi masuk (hanya jika JS aktif) ---------- */
.pd-js .pd-rv {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--pd-ease),
    transform 1s var(--pd-ease);
}
.pd-js .pd-rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pd-side {
    grid-column: 1 / -1;
    position: static;
  }
  .pd-list {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .pd-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pd,
  .pd-ln > span {
    animation: none;
  }
  .pd-js .pd-rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pd-row.is-live,
  .pd-row.is-live::after,
  .pd-state svg,
  .pd-btn .a,
  .pd-btn svg {
    transition: none;
  }
}
