/* ============================================================
 *  BaZi Destiny Architect — Halaman Depan (landing)
 *  Dimuat HANYA di index.php lewat $GLOBALS['PAGE_CSS'].
 *  Semua kelas berprefix .lp- agar tidak bertabrakan dengan style.css
 *  yang dipakai bersama halaman aplikasi (login/order/dashboard/admin).
 * ============================================================ */

.lp {
  --lp-gold: #D4AF37;
  --lp-gold-lt: #F0DFA0;
  --lp-gold-dim: #8E7524;
  --lp-panel: #121009;
  --lp-panel-2: #17140C;
  --lp-line: #2E2A1A;
  --lp-line-2: #453D24;
  --lp-text: #EFEAE0;
  --lp-muted: #A9A296;

  /* Wu Xing — dipakai HANYA untuk pengkodean elemen pada bagan */
  --wx-wood: #5FA97C;
  --wx-fire: #D9543F;
  --wx-earth: #C9922F;
  --wx-metal: #E3DDCC;
  --wx-water: #5B8CBE;

  --seal: #B4311F;

  --lp-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --lp-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --lp-han: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', SimSun, STSong, serif;

  font-family: var(--lp-body);
  color: var(--lp-text);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.003em;
}

.lp h1, .lp h2, .lp h3 {
  font-family: var(--lp-display);
  font-weight: 600;
  color: var(--lp-gold-lt);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lp p { margin: 0 0 1.05em; }
.lp p:last-child { margin-bottom: 0; }
.lp strong { color: #FBF6E9; font-weight: 600; }
.lp a { color: var(--lp-gold); }

/* Label kecil di atas judul bagian */
.lp-eyebrow {
  font-family: var(--lp-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--lp-gold-dim);
  margin-bottom: 14px;
}
.lp-eyebrow .han { font-family: var(--lp-han); letter-spacing: .12em; color: var(--lp-gold); }

.lp-section { padding: 76px 0; border-top: 1px solid var(--lp-line); }
.lp-section:first-child { border-top: 0; }
.lp-section > h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); margin-bottom: 10px; }
.lp-lead { color: var(--lp-muted); max-width: 62ch; margin-bottom: 34px; }

/* ============================================================
 *  HERO
 * ============================================================ */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 46px;
  align-items: center;
  padding: 58px 0 74px;
}
.lp-hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4rem);
  line-height: 1.02;
  margin-bottom: 22px;
}
.lp-hero h1 em {
  font-style: italic;
  color: var(--lp-gold);
}
.lp-deck { color: var(--lp-muted); font-size: 1.03rem; max-width: 54ch; }
.lp-deck strong { color: var(--lp-text); }

.lp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 30px; }

.lp-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--lp-body); font-size: 15px; font-weight: 700;
  padding: 15px 28px; border-radius: 4px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
/* Selektor diberi awalan .lp agar mengalahkan `.lp a` (0,1,1) —
   tanpa ini teks tombol emas ikut jadi emas di atas latar emas. */
.lp .lp-btn-primary {
  background: linear-gradient(178deg, #EBCF6D, var(--lp-gold) 52%, #B2901F);
  color: #171204;
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 10px 26px -12px rgba(212,175,55,.8);
}
.lp .lp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 16px 30px -12px rgba(212,175,55,.95); }
.lp .lp-btn-ghost {
  background: transparent; border-color: var(--lp-line-2); color: var(--lp-gold-lt);
}
.lp .lp-btn-ghost:hover { border-color: var(--lp-gold-dim); background: rgba(212,175,55,.06); }
.lp-btn-lg { font-size: 16px; padding: 17px 34px; }

.lp-signin { font-size: 14px; color: var(--lp-muted); }
.lp-signin a { text-decoration: none; border-bottom: 1px solid var(--lp-line-2); }
.lp-signin a:hover { border-bottom-color: var(--lp-gold); }

.lp-price-line {
  margin-top: 26px; font-size: 15px; color: var(--lp-muted);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.lp-price-line b {
  font-family: var(--lp-display); font-size: 1.85rem; font-weight: 600;
  color: var(--lp-gold-lt); letter-spacing: -.01em;
}

/* Baris kepercayaan — fakta, bukan klaim */
.lp-trust {
  list-style: none; margin: 26px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--lp-line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.lp-trust li { font-size: 13.5px; line-height: 1.5; color: var(--lp-muted); }
.lp-trust b { display: block; font-family: var(--lp-display); font-size: 1.55rem; font-weight: 600; color: var(--lp-gold); line-height: 1.1; margin-bottom: 4px; }

/* ---- Bagan Empat Pilar (elemen signature) ---- */
.lp-chart {
  background: linear-gradient(168deg, var(--lp-panel-2), #0C0B06);
  border: 1px solid var(--lp-line-2);
  border-radius: 6px;
  padding: 26px 24px 20px;
  position: relative;
  box-shadow: 0 40px 80px -50px #000, 0 0 0 1px rgba(212,175,55,.07) inset;
}
.lp-chart::before {
  content: '八字';
  position: absolute; top: 14px; right: 18px;
  font-family: var(--lp-han); font-size: 13px; letter-spacing: .3em;
  color: var(--lp-gold-dim); opacity: .85;
}
.lp-chart-cap {
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--lp-gold-dim); margin-bottom: 18px;
  padding-right: 44px; /* ruang untuk tanda 八字 di pojok kanan atas */
}
/* Grid datar 5 kolom (4 pilar + label baris) × 4 baris:
   kepala, 天干 batang langit, 地支 cabang bumi, 藏干 batang tersembunyi.
   Urutan pilar mengikuti konvensi klasik: Jam · Hari · Bulan · Tahun (kiri ke kanan). */
.lp-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 17px;
  gap: 7px 6px; text-align: center; align-items: stretch;
}
.lp-col-head {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lp-muted); padding-bottom: 8px; margin-bottom: 1px;
  border-bottom: 1px solid var(--lp-line);
}
.lp-col-head span { display: block; font-family: var(--lp-han); font-size: 13px; letter-spacing: 0; color: var(--lp-gold-dim); margin-top: 3px; text-transform: none; }

/* Label baris (天干 / 地支 / 藏干) — ditulis vertikal seperti bagan klasik */
.lp-row-lab {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--lp-han); font-size: 10.5px; letter-spacing: .08em;
  color: var(--lp-gold-dim); display: flex; align-items: center; justify-content: center;
}

.lp-cell {
  border: 1px solid var(--lp-line);
  border-radius: 3px;
  background: rgba(255,255,255,.017);
  padding: 9px 3px 8px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.lp-cell .han { font-family: var(--lp-han); font-size: clamp(1.5rem, 3.9vw, 2.1rem); line-height: 1; display: block; }
.lp-cell .rom { font-size: 9.5px; line-height: 1.35; letter-spacing: .02em; color: var(--lp-muted); margin-top: 5px; display: block; }
.lp-cell .rom + .rom { margin-top: 1px; }
.lp-cell.is-dm {
  border-color: var(--lp-gold); background: rgba(212,175,55,.09);
  box-shadow: 0 0 0 1px rgba(212,175,55,.35);
}

/* Kotak Sepuluh Dewa (十神) di pojok atas sel — seperti bagan profesional */
.lp-cell .god {
  display: block; font-family: var(--lp-han); font-size: 9.5px; font-weight: 400;
  line-height: 1.2; color: var(--lp-gold-dim); margin-bottom: 6px;
  padding-bottom: 5px; border-bottom: 1px dotted rgba(142,117,36,.45);
}
.lp-cell .god i {
  font-style: normal; font-family: var(--lp-body); font-size: 8.5px;
  font-weight: 700; letter-spacing: .04em;
}
.lp-cell.is-dm .god { color: var(--lp-gold); border-bottom-color: rgba(212,175,55,.5); }
.lp-cell .god.kw { color: var(--wx-water); border-bottom-color: rgba(91,140,190,.45); }

/* Baris 藏干 — batang tersembunyi ditumpuk vertikal agar muat di kolom sempit */
.lp-cell.lp-hid { justify-content: flex-start; gap: 4px; padding: 8px 3px; }
.lp-cell.lp-hid span {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 9.5px; color: var(--lp-muted); line-height: 1.2;
}
.lp-cell.lp-hid em { font-style: normal; font-size: 14px; line-height: 1; }
.lp-cell.lp-hid i {
  font-style: normal; font-family: var(--lp-body); font-size: 8.5px; font-weight: 700;
  color: var(--lp-gold-dim); letter-spacing: .03em;
}
.wx-wood  { color: var(--wx-wood); }
.wx-fire  { color: var(--wx-fire); }
.wx-earth { color: var(--wx-earth); }
.wx-metal { color: var(--wx-metal); }
.wx-water { color: var(--wx-water); }

.lp-dm-note {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--lp-line);
  font-size: 12.5px; color: var(--lp-muted); line-height: 1.55;
}
.lp-dm-note b { color: var(--lp-gold-lt); font-weight: 600; }
.lp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 11.5px; color: var(--lp-muted); }
.lp-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lp-legend i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; font-style: normal; }
.lp-legend .han { font-family: var(--lp-han); font-size: 12.5px; }

/* ============================================================
 *  Pertanyaan / masalah
 * ============================================================ */
.lp-q { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-q-item {
  border-left: 2px solid var(--lp-line-2);
  padding: 4px 0 4px 20px;
}
.lp-q-item p { font-family: var(--lp-display); font-size: 1.28rem; line-height: 1.32; color: var(--lp-text); font-style: italic; }
.lp-bridge {
  margin-top: 34px; padding: 22px 26px;
  border: 1px solid var(--lp-line); border-radius: 5px;
  background: rgba(212,175,55,.045);
  color: var(--lp-text);
}

/* ============================================================
 *  Penjelasan + chip metode
 * ============================================================ */
.lp-explain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.lp-explain p { color: var(--lp-muted); }
.lp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chips li {
  font-size: 12.5px; padding: 7px 13px; border: 1px solid var(--lp-line-2);
  border-radius: 999px; color: var(--lp-muted); background: rgba(255,255,255,.012);
}
.lp-chips li .han { font-family: var(--lp-han); color: var(--lp-gold-dim); }

/* Empat kolom fitur — presisi teknis, di bawah penjelasan */
.lp-feats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin-top: 46px; background: var(--lp-line); border: 1px solid var(--lp-line);
  border-radius: 5px; overflow: hidden;
}
.lp-feat { background: #0C0B06; padding: 22px 20px 24px; }
.lp-feat h3 { font-size: 1.06rem; margin-bottom: 7px; }
.lp-feat p { font-size: 13.5px; line-height: 1.6; color: var(--lp-muted); }

/* ============================================================
 *  Isi laporan — daftar 20 bab
 * ============================================================ */
.lp-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.lp-toc-group {
  background: linear-gradient(170deg, var(--lp-panel), #0B0A06);
  border: 1px solid var(--lp-line);
  border-radius: 6px;
  padding: 24px 26px 22px;
}
.lp-toc-group h3 {
  font-size: 1.2rem; margin-bottom: 4px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.lp-toc-group h3 span {
  font-family: var(--lp-body); font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; color: var(--lp-gold-dim); white-space: nowrap;
}
.lp-toc-group > p { font-size: 13px; color: var(--lp-muted); margin-bottom: 16px; }
.lp-toc-group ol { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.lp-toc-group li {
  font-size: 14px; line-height: 1.5; color: var(--lp-text);
  padding: 9px 0 9px 0; border-top: 1px solid rgba(46,42,26,.75);
  display: flex; gap: 11px;
}
.lp-toc-group li::before {
  content: counter(lpbab, decimal-leading-zero);
  counter-increment: lpbab;
  font-family: var(--lp-body); font-size: 11px; font-weight: 700;
  color: var(--lp-gold-dim); flex: 0 0 auto; padding-top: 3px;
}
.lp-toc { counter-reset: lpbab; }
.lp-toc-note { margin-top: 22px; font-size: 14px; color: var(--lp-muted); }

/* ============================================================
 *  Kartu penawaran
 * ============================================================ */
.lp-offer {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 0;
  border: 1px solid var(--lp-gold-dim);
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(160deg, #191509, #0C0B06);
}
.lp-offer-main { padding: 40px 38px; border-right: 1px solid var(--lp-line-2); }
.lp-offer-side { padding: 40px 38px; background: rgba(0,0,0,.28); }
.lp-offer h2 { font-size: 1.9rem; margin-bottom: 6px; }
.lp-offer-price {
  font-family: var(--lp-display); font-size: 3.2rem; font-weight: 600;
  color: var(--lp-gold-lt); line-height: 1; margin: 22px 0 6px; letter-spacing: -.02em;
}
.lp-offer-price small { display: block; font-family: var(--lp-body); font-size: 13px; font-weight: 500; color: var(--lp-muted); letter-spacing: 0; margin-top: 10px; }
.lp-incl { list-style: none; margin: 0 0 26px; padding: 0; }
.lp-incl li {
  font-size: 14.5px; line-height: 1.55; padding: 10px 0 10px 26px;
  border-bottom: 1px solid rgba(46,42,26,.7); position: relative; color: var(--lp-text);
}
.lp-incl li:last-child { border-bottom: 0; }
.lp-incl li::before {
  content: '✓'; position: absolute; left: 0; top: 9px;
  color: var(--lp-gold); font-size: 13px; font-weight: 700;
}
.lp-sla {
  border: 1px dashed var(--lp-gold-dim); border-radius: 5px;
  padding: 14px 18px; margin-bottom: 22px;
  font-size: 13.5px; color: var(--lp-muted); background: rgba(212,175,55,.05);
}
.lp-sla b { color: var(--lp-gold-lt); }
.lp-offer-fine { font-size: 12.5px; color: var(--lp-muted); margin-top: 16px; line-height: 1.6; }

/* ============================================================
 *  Analis
 * ============================================================ */
.lp-analyst {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 34px; align-items: start;
}
.lp-seal {
  width: 132px; height: 132px; border-radius: 4px;
  border: 2px solid var(--seal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--lp-han); font-size: 46px; line-height: 1.05; text-align: center;
  color: var(--seal); letter-spacing: .04em;
  background: rgba(180,49,31,.07);
}
.lp-analyst h2 { font-size: 1.75rem; margin-bottom: 4px; }
.lp-analyst-role { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--lp-gold-dim); font-weight: 700; margin-bottom: 18px; }
.lp-analyst p { color: var(--lp-muted); }
.lp-works { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-works li { font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--lp-line-2); border-radius: 3px; color: var(--lp-muted); }

/* ============================================================
 *  Cara kerja — urutan nyata, jadi penomoran memang bermakna
 * ============================================================ */
.lp-steps { list-style: none; margin: 0; padding: 0; counter-reset: lpstep; }
.lp-steps li {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 24px;
  padding: 24px 0; border-top: 1px solid var(--lp-line);
  align-items: start;
}
.lp-steps li::before {
  counter-increment: lpstep;
  content: counter(lpstep, decimal-leading-zero);
  font-family: var(--lp-display); font-size: 2.1rem; font-weight: 600;
  color: var(--lp-gold-dim); line-height: 1;
}
/* ::before menempati kolom 1; judul & keterangan dipaksa ke kolom 2 agar
   keduanya menumpuk sebagai baris, bukan terdorong ke kolom nomor yang sempit. */
.lp-steps b, .lp-steps strong {
  grid-column: 2; display: block; font-size: 1.02rem;
  color: var(--lp-gold-lt); margin-bottom: 4px; font-weight: 600;
}
.lp-steps span { grid-column: 2; color: var(--lp-muted); font-size: 14.5px; }

/* ============================================================
 *  FAQ
 * ============================================================ */
.lp-faq { max-width: 78ch; }
.lp-faq details { border-bottom: 1px solid var(--lp-line); }
.lp-faq summary {
  cursor: pointer; list-style: none; padding: 20px 34px 20px 0; position: relative;
  font-family: var(--lp-display); font-size: 1.2rem; color: var(--lp-text);
  transition: color .15s ease;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary:hover { color: var(--lp-gold-lt); }
.lp-faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--lp-body); font-size: 20px; font-weight: 400; color: var(--lp-gold-dim);
}
.lp-faq details[open] summary { color: var(--lp-gold-lt); }
.lp-faq details[open] summary::after { content: '–'; }
.lp-faq-a { padding: 0 40px 22px 0; color: var(--lp-muted); font-size: 15px; }

/* ============================================================
 *  Penutup
 * ============================================================ */
.lp-final { text-align: center; padding: 80px 0 20px; border-top: 1px solid var(--lp-line); }
.lp-final h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 16px; }
.lp-final .lp-lead { margin: 0 auto 32px; text-align: center; }
.lp-final .lp-cta-row { justify-content: center; }
.lp-tagline {
  margin-top: 44px; font-family: var(--lp-display); font-style: italic;
  font-size: 1.35rem; color: var(--lp-gold);
}

/* Batang CTA lengket — hanya di layar kecil */
.lp-sticky { display: none; }

/* ============================================================
 *  Responsif
 * ============================================================ */
@media (max-width: 980px) {
  .lp-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 34px; }
  .lp-explain { grid-template-columns: 1fr; gap: 30px; }
  .lp-toc { grid-template-columns: 1fr; }
  .lp-offer { grid-template-columns: 1fr; }
  .lp-offer-main { border-right: 0; border-bottom: 1px solid var(--lp-line-2); }
  .lp-q { grid-template-columns: 1fr; gap: 6px; }
  .lp-q-item { padding: 14px 0 14px 18px; }
}
@media (max-width: 700px) {
  .lp { font-size: 16px; }
  .lp-section { padding: 54px 0; }
  .lp-analyst { grid-template-columns: 1fr; gap: 22px; }
  .lp-seal { width: 96px; height: 96px; font-size: 34px; }
  .lp-offer-main, .lp-offer-side { padding: 30px 24px; }
  .lp-trust { grid-template-columns: 1fr; gap: 14px; }
  .lp-steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .lp-steps li::before { font-size: 1.6rem; }
  .lp-cell .han { font-size: 1.85rem; }
  .lp-feats { grid-template-columns: 1fr 1fr; }
  .lp-chart { padding: 18px 12px 14px; }
  .lp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) 14px; gap: 5px 4px; }
  .lp-cell { padding: 7px 2px 6px; }
  .lp-cell .rom { font-size: 8.5px; }
  .lp-cell .god { font-size: 8.5px; margin-bottom: 4px; padding-bottom: 4px; }
  .lp-cell .god i { font-size: 7.5px; }
  .lp-cell.lp-hid span { font-size: 8.5px; gap: 3px; }
  .lp-cell.lp-hid em { font-size: 12px; }
  .lp-cell.lp-hid i { font-size: 7.5px; }
  .lp-row-lab { font-size: 9px; }

  .lp-sticky {
    display: flex; position: sticky; bottom: 0; z-index: 40;
    margin: 30px -14px 0; padding: 11px 14px;
    gap: 12px; align-items: center; justify-content: space-between;
    background: rgba(10,10,10,.96);
    border-top: 1px solid var(--lp-line-2);
    backdrop-filter: blur(6px);
  }
  .lp-sticky span { font-size: 13px; color: var(--lp-muted); line-height: 1.3; }
  .lp-sticky b { display: block; font-family: var(--lp-display); font-size: 1.15rem; color: var(--lp-gold-lt); }
  .lp-sticky .lp-btn { padding: 12px 20px; font-size: 14px; }
}

/* Aksesibilitas */
.lp a:focus-visible, .lp summary:focus-visible, .lp .lp-btn:focus-visible {
  outline: 2px solid var(--lp-gold); outline-offset: 3px; border-radius: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .lp-chart { animation: lp-rise .7s cubic-bezier(.22,.68,.36,1) both; }
  @keyframes lp-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}
