/* =============================================================
   comparison.css — tabel Simpel vs Sinematik + "Kenapa lebih mahal?".
   Tabel biasa: tiap kalimat ada di kotaknya sendiri (bergaris).
   Kolom Sinematik berwarna navy supaya menonjol.
   ============================================================= */
.comparison__layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  margin-top: 36px;
  align-items: start;
}

/* ---------- Tabel ---------- */
.compare__wrap {
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.compare col:first-child,
.compare th[scope="row"],
.compare__corner { width: 28%; }

/* Garis kotak di setiap sel */
.compare th,
.compare td {
  border: 1px solid #d9cdb5;
  padding: 12px 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: left;
  vertical-align: middle;
}
/* Garis luar sudah dari .compare__wrap — hilangkan garis sel di tepi */
.compare tr > :first-child { border-left: 0; }
.compare tr > :last-child { border-right: 0; }
.compare thead tr:first-child > * { border-top: 0; }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* Judul baris (kolom kiri) */
.compare th[scope="row"] {
  background: var(--cream);
  color: var(--navy);
  font-weight: 700;
}

/* Kolom Sinematik */
.compare .compare__pro {
  background: var(--navy);
  color: #eef1fa;
  border-color: #3a4f8c;
}

/* Baris judul: gambar contoh + nama paket */
.compare thead th { vertical-align: bottom; padding-top: 14px; }
.compare__corner {
  background: var(--cream);
  color: var(--muted);
  font-size: 0.8rem !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.compare__thumb {
  display: block;
  width: 100%;
  height: auto; /* wajib: kalau tidak, atribut height="1280" mengalahkan aspect-ratio */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.compare__pro .compare__thumb { outline: 3px solid var(--mustard); outline-offset: -3px; }
.compare__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy-deep);
}
.compare__pro .compare__name { color: var(--mustard); }

/* Baris harga */
.compare__price td {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-deep);
  font-variant-numeric: tabular-nums;
}
.compare__price td.compare__pro { color: var(--mustard); }

/* ---------- Kenapa lebih mahal ---------- */
.reasons {
  background: var(--navy-deep);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 10px 10px 0 var(--mustard);
}
.reasons__title { font-size: 1.35rem; color: var(--mustard); }
.reasons__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 18px; }
.reasons__item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.reasons__item strong { display: block; color: #fff; margin-bottom: 2px; }
.reasons__item p { color: #c9d1ea; font-size: 0.93rem; }
.reasons__num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--mustard);
  color: var(--navy-deep);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---------- Ajakan bawah ---------- */
.comparison__cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.comparison__cta p { color: var(--muted); }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .comparison__layout { grid-template-columns: 1fr; }
  .reasons { margin-right: 10px; }
}

.compare__note { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

/* ---------- HP: 2 kolom (Simpel | Sinematik), judul baris jadi pita di atasnya ----------
   Kolom "Keterangan" dibuang supaya kedua kolom isi cukup lebar dan gambar lebih besar. */
@media (max-width: 560px) {
  .compare,
  .compare thead,
  .compare tbody { display: block; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; }
  .compare__corner { display: none; }

  .compare th,
  .compare td { width: auto !important; padding: 9px 10px; font-size: 0.86rem; line-height: 1.35; border: 0; }
  .compare td { border-top: 1px solid #d9cdb5; }
  .compare td.compare__pro { border-top-color: #3a4f8c; }

  /* Judul baris: pita kecil selebar tabel */
  .compare th[scope="row"] {
    grid-column: 1 / -1;
    padding: 6px 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-top: 1px solid #d9cdb5;
  }
  .compare thead th { padding: 10px; }
  .compare__thumb { margin-bottom: 8px; border-radius: 8px; }
  .compare__name { font-size: 1.05rem; }
  .compare__price td { font-size: 1rem; }
  .reasons { margin-right: 10px; padding: 22px 18px; }
}
