/* =========================================================
   PAKET BILLING — kartu dengan header awan + maskot 3D
   ========================================================= */

.pricing {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
}

.pricing .section-head {
  margin-bottom: 30px;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 16px;
  padding-top: 96px;
}

/* ---------- Kartu ---------- */
.plan {
  --cloud: #0a8fe4;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #dbe8f4;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(18, 77, 136, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(18, 77, 136, 0.16);
}

.plan--featured {
  --cloud: #3aa8ee;
  border-color: #7cc6f3;
  background: linear-gradient(180deg, #e3f3fd 0%, #f4faff 45%, #ffffff 100%);
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.18);
}

/* ---------- Header awan ---------- */
.plan__head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 12px 16px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(160deg, var(--cloud) 0%, #0670cc 100%);
  text-align: center;
}

.plan--featured .plan__head {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(160deg, #5bb8f2 0%, #1f8be0 100%);
}

/* Gelembung awan di atas header */
.plan__head::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 14px);
  height: 46px;
  background:
    radial-gradient(circle at 22% 100%, var(--cloud) 30px, transparent 31px),
    radial-gradient(circle at 50% 100%, var(--cloud) 46px, transparent 47px),
    radial-gradient(circle at 78% 100%, var(--cloud) 30px, transparent 31px);
  pointer-events: none;
}

.plan--featured .plan__head::before {
  --cloud: #5bb8f2;
}

.plan__mascot {
  position: absolute;
  top: -92px;
  left: 50%;
  z-index: 2;
  width: 150px;
  height: 150px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 12px rgba(4, 44, 97, 0.28));
  transition: transform var(--transition);
}

.plan:hover .plan__mascot {
  transform: translateX(-50%) translateY(-6px) scale(1.05);
}

.plan__name {
  position: relative;
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.plan__badge {
  margin-top: 6px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: #0670cc;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.plan__popular {
  position: absolute;
  top: -14px;
  right: 12px;
  z-index: 3;
  padding: 4px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  background: #2f6fea;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- Isi kartu ---------- */
.plan__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 22px;
}

.plan__tagline {
  min-height: 44px;
  margin-bottom: 12px;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.5;
}

.plan__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-bottom: 4px;
}

.plan__tag {
  padding: 3px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
}

.plan__tag--discount {
  background: #dbeafe;
  color: #1d6fd8;
  font-weight: 700;
}

.plan__tags del,
.plan__yearly del {
  color: #94a3b8;
  font-size: 0.76rem;
}

.plan__price {
  color: #0f172a;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.plan__price span {
  font-size: 0.9rem;
  font-weight: 700;
}

.plan__yearly {
  min-height: 36px;
  margin: 4px 0 16px;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.45;
}

.plan__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 10px;
  background: #0f1d3a;
  box-shadow: 0 6px 16px rgba(15, 29, 58, 0.22);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.plan__btn:hover {
  background: #1b2c52;
  transform: translateY(-2px);
}

.plan__btn--orange {
  background: linear-gradient(135deg, #168fd5, #1d4ed8);
  box-shadow: 0 8px 22px rgba(22, 143, 213, 0.32);
}

.plan__btn--orange:hover {
  background: linear-gradient(135deg, #0f70bd, #1e40af);
}

.plan__features-title {
  margin: 22px 0 12px;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 700;
}

.plan__features {
  display: grid;
  gap: 9px;
}

.plan__features li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.35;
}

.plan__features b {
  color: #0f172a;
  font-weight: 700;
}

.plan__features i {
  flex-shrink: 0;
  color: #22b573;
  font-size: 0.95rem;
}

.plan__features li.is-off {
  color: #94a3b8;
}

.plan__features li.is-off i {
  color: #c4ccd6;
}

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 110px;
    column-gap: 20px;
  }
}

@media (max-width: 620px) {
  .pricing { padding: 60px 0 80px; }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }

  .plan__tagline,
  .plan__yearly { min-height: 0; }
}
