/* ==========================================================================
   Landing page publik (/) — halaman pemasaran produk.
   Dipisah dari auth.css agar gaya halaman publik lain tidak terpengaruh.
   Semua selektor di-scope di dalam .lp agar aman.
   ========================================================================== */

/* --- Variabel lokal halaman --- */
.lp {
  --lp-w: 1080px;
  --lp-r: 14px;
  --lp-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --lp-grid: rgba(139, 152, 165, .07);
}

/* --- Latar atmosfer: kisi halus + cahaya --- */
.lp-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--lp-grid) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, var(--lp-grid) 1px, transparent 1px) 0 0 / 44px 100%;
  mask-image: radial-gradient(1200px 700px at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(1200px 700px at 50% 0%, #000 20%, transparent 78%);
}

.lp-wrap { max-width: var(--lp-w); margin: 0 auto; padding: 0 18px; width: 100%; }

/* --- Bahasa: sembunyikan versi yang tidak aktif ---
   Hanya sisi non-aktif yang disembunyikan; sisi aktif tetap memakai display
   aslinya (li tetap list-item, span tetap inline) agar tata letak tidak rusak. */
html[data-lang-sel="id"] [data-lang="en"] { display: none !important; }
html[data-lang-sel="en"] [data-lang="id"] { display: none !important; }

/* Tautan bagian disembunyikan di layar sempit agar header tidak berdesakan. */
@media (max-width: 720px) { .lp-navhide { display: none !important; } }

/* --- Pemilih bahasa --- */
.lp-lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lp-lang button {
  background: transparent; color: var(--muted); border: 0; cursor: pointer;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 5px 11px; font-family: inherit;
}
.lp-lang button[aria-pressed="true"] { background: var(--panel2); color: var(--text); }
.lp-lang button:hover { color: var(--text); }

/* --- Bagian umum --- */
.lp-sec { padding: 62px 0 8px; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 12px;
}
.lp-eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--green); }
.lp-h2 { font-size: 27px; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 10px; font-weight: 800; }
.lp-lead { color: var(--muted); font-size: 13.5px; line-height: 1.8; max-width: 60ch; }
.lp-num { font-family: var(--lp-mono); font-variant-numeric: tabular-nums; }

/* --- Hero --- */
.lp-hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 34px; align-items: center; padding: 46px 0 20px; }
.lp-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--border); background: rgba(28, 35, 44, .65); border-radius: 999px;
  padding: 6px 12px; margin-bottom: 16px;
}
.lp-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.lp-h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin-bottom: 14px; }
.lp-h1 em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; }
.lp-h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
}
.lp-sub { color: var(--muted); font-size: 14px; line-height: 1.85; margin-bottom: 22px; max-width: 54ch; }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  border-radius: 9px; padding: 12px 20px; font-size: 13.5px; font-weight: 700; border: 1px solid transparent;
  transition: transform .14s ease, filter .14s ease, border-color .14s ease, color .14s ease;
}
.lp-btn.pri { background: var(--green); color: #fff; box-shadow: 0 10px 26px rgba(46, 160, 67, .22); }
.lp-btn.pri:hover { filter: brightness(1.09); transform: translateY(-1px); }
.lp-btn.ghost { border-color: var(--border); color: var(--text); background: rgba(28, 35, 44, .5); }
.lp-btn.ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.lp-fine { color: var(--muted); font-size: 11.5px; margin-top: 14px; line-height: 1.7; }

/* --- Mock terminal (hero visual) --- */
.lp-mock {
  border: 1px solid var(--border); border-radius: var(--lp-r); overflow: hidden;
  background: linear-gradient(180deg, rgba(28, 35, 44, .92), rgba(22, 27, 34, .92));
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.lp-mock-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 13px;
  border-bottom: 1px solid var(--border); background: rgba(14, 17, 22, .5);
}
.lp-mock-bar .d { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.lp-mock-bar .d:first-child { background: #f85149; opacity: .55; }
.lp-mock-bar .d:nth-child(2) { background: #d29922; opacity: .55; }
.lp-mock-bar .d:nth-child(3) { background: #2ea043; opacity: .55; }
.lp-mock-t { margin-left: 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.lp-mock-tag {
  margin-left: auto; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--yellow); border: 1px solid var(--yellow); border-radius: 4px; padding: 2px 6px; opacity: .85;
}
.lp-mock-head, .lp-row {
  display: grid; grid-template-columns: 1fr auto 46px 64px; gap: 10px; align-items: center;
  padding: 9px 13px; font-size: 12px;
}
.lp-mock-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--border); }
.lp-row { border-bottom: 1px solid rgba(38, 48, 59, .5); }
.lp-row:last-of-type { border-bottom: 0; }
.lp-row b { font-family: var(--lp-mono); font-size: 12.5px; letter-spacing: .02em; }
.lp-phase { font-size: 11px; padding: 2px 7px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.lp-phase.acc { color: var(--green); border-color: var(--green); background: var(--green-bg); }
.lp-phase.up { color: var(--blue); border-color: var(--blue); background: rgba(88, 166, 255, .12); }
.lp-phase.warn { color: var(--yellow); border-color: var(--yellow); background: var(--yellow-bg); }
.lp-phase.down { color: var(--red); border-color: var(--red); background: var(--red-bg); }
.lp-bar { height: 5px; border-radius: 3px; background: var(--panel2); overflow: hidden; }
.lp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #58a6ff); }
.lp-mock-foot {
  display: flex; align-items: center; gap: 8px; padding: 10px 13px; font-size: 11.5px; color: var(--muted);
  background: rgba(14, 17, 22, .55); border-top: 1px solid var(--border);
}
.lp-mock-foot .bell { color: var(--yellow); }
.lp-figcap { color: var(--muted); font-size: 11px; margin-top: 10px; text-align: center; letter-spacing: .02em; }

/* --- Baris statistik --- */
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--lp-r); overflow: hidden; margin-top: 8px; }
.lp-stat { background: var(--panel); padding: 16px 14px; }
.lp-stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.lp-stat .v { font-size: 22px; font-weight: 800; margin: 6px 0 3px; font-family: var(--lp-mono); }
.lp-stat .m { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* --- Pasar --- */
.lp-markets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.lp-mk {
  border: 1px solid var(--border); border-radius: var(--lp-r); padding: 16px 15px; background: var(--panel);
  display: flex; flex-direction: column; gap: 9px;
}
.lp-mk.free { border-color: rgba(46, 160, 67, .5); background: linear-gradient(180deg, rgba(46, 160, 67, .07), var(--panel)); }
.lp-mk-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-mk-h b { font-size: 14px; }
.lp-chip { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 8px; border: 1px solid; }
.lp-chip.free { color: var(--green); border-color: var(--green); background: var(--green-bg); }
.lp-chip.paid { color: var(--muted); border-color: var(--border); background: var(--panel2); }
.lp-mk ul { list-style: none; font-size: 12px; color: var(--muted); line-height: 1.85; }
.lp-mk ul li::before { content: "· "; color: var(--green); font-weight: 700; }
.lp-mk .sym { font-family: var(--lp-mono); font-size: 10.5px; color: var(--muted); opacity: .8; }

/* --- Fitur (bento) --- */
.lp-feats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 22px; }
.lp-ft { grid-column: span 3; border: 1px solid var(--border); border-radius: var(--lp-r); padding: 18px; background: var(--panel); }
.lp-ft.s2 { grid-column: span 2; }
.lp-ft.s6 { grid-column: span 6; }
.lp-ft-ic {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 12px;
  border: 1px solid var(--border); background: var(--panel2); color: var(--green); font-size: 14px;
}
.lp-ft h3 { font-size: 14.5px; margin-bottom: 7px; }
.lp-ft p { color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.lp-ft h3 { font-size: 14.5px; }
.lp-ft.chain { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.lp-chain { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.lp-chain span {
  font-size: 11.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel2); color: var(--muted); white-space: nowrap;
}
.lp-chain span.on { color: var(--green); border-color: var(--green); background: var(--green-bg); font-weight: 700; }
.lp-chain i { color: var(--muted); font-size: 11px; }

/* --- Cara kerja --- */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; counter-reset: s; }
.lp-step { position: relative; border: 1px solid var(--border); border-left: 2px solid var(--green); border-radius: var(--lp-r); padding: 18px 16px 16px; background: var(--panel); }
.lp-step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--lp-mono); font-size: 11px; color: var(--green); letter-spacing: .1em;
}
.lp-step h3 { font-size: 14px; margin: 8px 0 6px; }
.lp-step p { color: var(--muted); font-size: 12.5px; line-height: 1.75; }

/* --- Harga --- */
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 22px; align-items: start; }
.lp-plan { border: 1px solid var(--border); border-radius: var(--lp-r); padding: 22px 20px; background: var(--panel); position: relative; }
.lp-plan.hi { border-color: var(--green); background: linear-gradient(180deg, rgba(46, 160, 67, .08), var(--panel)); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.lp-plan .rib {
  position: absolute; top: -10px; left: 20px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #0e1116; background: var(--green); border-radius: 999px; padding: 3px 10px;
}
.lp-plan h3 { font-size: 16px; margin-bottom: 4px; }
.lp-plan .desc { color: var(--muted); font-size: 12.5px; line-height: 1.75; min-height: 40px; }
.lp-price { font-family: var(--lp-mono); font-size: 30px; font-weight: 800; margin: 14px 0 2px; letter-spacing: -.02em; }
.lp-price small { font-family: inherit; font-size: 11.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.lp-plan .btnline { margin-top: 18px; }
.lp-plan .btnline .lp-btn { width: 100%; }
.lp-plan .note { color: var(--muted); font-size: 11px; margin-top: 10px; line-height: 1.65; }
.lp-plan-foot { color: var(--muted); font-size: 11.5px; margin-top: 14px; line-height: 1.7; }

/* --- FAQ --- */
.lp-faq { margin-top: 22px; border-top: 1px solid var(--border); }
.lp-q { border-bottom: 1px solid var(--border); }
.lp-q summary {
  cursor: pointer; padding: 15px 30px 15px 0; font-size: 13.5px; font-weight: 600; position: relative; list-style: none;
}
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-family: var(--lp-mono); font-size: 16px; transition: transform .18s ease, color .18s ease;
}
.lp-q[open] summary::after { content: "–"; color: var(--green); }
.lp-q summary:hover { color: var(--green); }
.lp-q .a { color: var(--muted); font-size: 12.5px; line-height: 1.85; padding: 0 40px 16px 0; }

/* --- Pita ajakan --- */
.lp-band {
  margin-top: 56px; border: 1px solid var(--border); border-radius: 18px; padding: 30px 26px;
  background:
    radial-gradient(600px 200px at 12% 0%, rgba(46, 160, 67, .16), transparent 70%),
    radial-gradient(500px 200px at 92% 100%, rgba(88, 166, 255, .13), transparent 70%),
    var(--panel);
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.lp-band h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px; }
.lp-band p { color: var(--muted); font-size: 12.5px; }

/* --- Catatan kepatuhan --- */
.lp-disc { margin-top: 26px; border: 1px solid var(--border); border-left: 2px solid var(--yellow); border-radius: 10px; padding: 14px 16px; background: rgba(210, 153, 34, .05); }
.lp-disc p { color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.lp-disc a { color: var(--yellow); }

/* --- Animasi masuk (dihormati bila pengguna minta gerak minimal) --- */
@media (prefers-reduced-motion: no-preference) {
  .lp-rise { opacity: 0; transform: translateY(10px); animation: lpRise .55s ease forwards; }
  .lp-hero .lp-rise:nth-child(1) { animation-delay: .02s; }
  .lp-sec .lp-rise { animation-delay: .04s; }
  .lp-reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
  .lp-reveal.in { opacity: 1; transform: none; }
  @keyframes lpRise { to { opacity: 1; transform: none; } }
}

/* --- Fokus keyboard --- */
.lp a:focus-visible, .lp button:focus-visible, .lp summary:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px;
}

/* --- Responsif --- */
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .lp-h1 { font-size: 32px; }
  .lp-markets { grid-template-columns: repeat(2, 1fr); }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-ft, .lp-ft.s2 { grid-column: span 3; }
  .lp-ft.s6 { grid-column: span 6; }
  .lp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lp-sec { padding-top: 46px; }
  .lp-h1 { font-size: 27px; }
  .lp-h2 { font-size: 22px; }
  .lp-markets { grid-template-columns: 1fr; }
  .lp-stats { grid-template-columns: 1fr 1fr; }
  .lp-ft, .lp-ft.s2, .lp-ft.s6 { grid-column: span 6; }
  .lp-cta .lp-btn { width: 100%; }
  .lp-band { padding: 22px 18px; }
  .lp-price { font-size: 26px; }
  .lp-mock-head, .lp-row { grid-template-columns: 1fr auto 40px; }
  .lp-mock-head span:last-child, .lp-row .lp-bar { display: none; }
}
