/* ==========================================================================
   d_nextplanner — harga.css
   Only used by harga.html. Rate tables, ketentuan, FAQ.
   No JS on this page: the FAQ uses native <details name="faq"> accordion.
   ========================================================================== */

.table-title {
  margin: 84px 0 26px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

/* --- rate tables --------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.rate-table thead th {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  background: var(--cream);
}
.rate-table tbody th {
  padding: 19px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}
.rate-table tbody th em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}
.rate-table td {
  padding: 19px 22px;
  color: var(--muted);
  vertical-align: top;
}
.rate-table tbody tr + tr th,
.rate-table tbody tr + tr td { border-top: 1px solid var(--line); }

.cell-price {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.row-highlight th, .row-highlight td { background: rgba(167, 120, 104, .07); }
.row-highlight .cell-price { color: var(--accent-dark); }

/* comparison table: numeric-ish columns read better centred */
.rate-table--compare td { text-align: center; color: var(--ink); }
.rate-table--compare thead th:not(:first-child) { text-align: center; }
.rate-table--compare thead th:nth-child(3) { color: var(--accent-dark); }

/* --- ketentuan ----------------------------------------------------------- */

.terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.terms article {
  padding: 34px 30px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.terms h4 {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
  color: #f7f2ea;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.terms li {
  position: relative;
  padding: 9px 0 9px 20px;
  color: var(--muted-dark);
  font-size: 14.5px;
}
.terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 9px;
  height: 1px;
  background: var(--accent);
}
.terms b { color: #f7f2ea; font-weight: 600; }

/* --- FAQ (native details) ------------------------------------------------ */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -.02em;
  list-style: none;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform .3s var(--ease);
}
.faq details[open] summary { color: var(--accent-dark); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-dark); }

.faq details p {
  max-width: 74ch;
  margin: 0;
  padding: 0 0 30px;
  color: var(--muted);
}
.faq details b { color: var(--ink); font-weight: 600; }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1000px) {
  .terms { grid-template-columns: 1fr; }
  .table-title { margin-top: 60px; }
}

@media (max-width: 720px) {
  /* stacked cards instead of a sideways-scrolling table */
  .table-wrap { border: 0; border-radius: 0; overflow: visible; background: none; }
  .rate-table, .rate-table tbody, .rate-table tr, .rate-table th, .rate-table td { display: block; width: 100%; }
  .rate-table thead { display: none; }

  .rate-table tbody tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    overflow: hidden;
  }
  .rate-table tbody th {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 16.5px;
    font-weight: 600;
    background: var(--cream);
  }
  .rate-table tbody tr + tr th,
  .rate-table tbody tr + tr td { border-top: 0; }

  .rate-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    padding: 11px 20px;
    text-align: right;
  }
  .rate-table td + td { border-top: 1px solid var(--line); }
  .rate-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: left;
  }
  .rate-table td:last-child { padding-bottom: 16px; }
  .cell-price { font-size: 21px; }
  .rate-table--compare td { text-align: right; }
}

@media (max-width: 560px) {
  .terms article { padding: 28px 22px; }
  .faq summary { gap: 14px; padding: 22px 0; }
}
