/* =============================================================
   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; }
}

/* ---------- HP: tetap tabel 3 kolom, hanya lebih rapat ---------- */
@media (max-width: 560px) {
  .compare th,
  .compare td { padding: 9px 8px; font-size: 0.8rem; line-height: 1.35; }
  .compare th[scope="row"],
  .compare__corner { width: 27%; }
  .compare__corner { font-size: 0.66rem !important; letter-spacing: 0.03em; }
  .compare__thumb { margin-bottom: 6px; border-radius: 6px; }
  .compare__name { font-size: 0.98rem; }
  .compare__price td { font-size: 0.9rem; }
}
