/* ============================================================
   Billio — Landing Page
   Token system:
   - Warna: night #1c1a22 (hero/penutup), paper #faf7f2 (isi),
     accent #ff5a36 terakota (aksi/energi), teal #0f7a70 (uang/percaya)
   - Tipografi: Space Grotesk (judul, angka invoice) + Plus Jakarta Sans (body)
   - Signature: kartu invoice yang "pecah" jadi DP + Pelunasan,
     dipakai ulang sebagai motif garis pembagi 50/50
   ============================================================ */

:root {
    --ink: #17151a;
    --paper: #faf7f2;
    --card: #ffffff;
    --accent: #ff5a36;
    --accent-dark: #e2461f;
    --accent-soft: #ffe7de;
    --teal: #0f7a70;
    --teal-soft: #dff3f0;
    --muted: #756f6a;
    --border: #ece6de;
    --night: #1c1a22;
    --night-2: #26222f;
    --night-text: #d8d3de;
    --radius: 14px;
}

.lp * { box-sizing: border-box; }

.lp {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
}

.lp h1, .lp h2, .lp h3, .lp .lp-num {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

.lp a { text-decoration: none; }
.lp .container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.lp-nav {
    position: sticky; top: 0; z-index: 40;
    background: rgba(28,26,34,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lp-nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.lp-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.lp-brand .dot { width: 9px; height: 9px; border-radius: 3px; background: var(--accent); display: inline-block; }
.lp-nav-links { display: flex; align-items: center; gap: 22px; }
.lp-nav-links a.lp-link { color: var(--night-text); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.lp-nav-links a.lp-link:hover { color: #fff; }
.lp-nav-cta {
    background: var(--accent); color: #fff !important; padding: 9px 18px; border-radius: 9px;
    font-weight: 700; font-size: 0.9rem; transition: background 0.15s, transform 0.15s;
}
.lp-nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.lp-hero {
    background: var(--night); color: #fff;
    padding: 76px 0 0;
    position: relative;
}
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-bottom: 70px; }
.lp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--accent); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
    margin-bottom: 18px;
}
.lp-eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--accent); display: inline-block; }
.lp-hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.15rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.015em;
    margin: 0 0 20px;
}
.lp-hero h1 em { font-style: normal; color: var(--accent); }
.lp-hero p.lp-sub { font-size: 1.08rem; line-height: 1.65; color: var(--night-text); max-width: 480px; margin: 0 0 30px; }
.lp-hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.lp-btn-primary {
    background: var(--accent); color: #fff; padding: 14px 26px; border-radius: 11px; font-weight: 700;
    font-size: 0.98rem; display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s, transform 0.15s;
}
.lp-btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); color: #fff; }
.lp-btn-ghost {
    color: #fff; padding: 14px 22px; border-radius: 11px; font-weight: 600; font-size: 0.98rem;
    border: 1px solid rgba(255,255,255,0.28); transition: border-color 0.15s, background 0.15s;
}
.lp-btn-ghost:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); color: #fff; }
.lp-trust { font-size: 0.82rem; color: #948e9e; }
.lp-trust i { color: var(--teal); }

/* ---------- Hero visual: invoice split card ---------- */
.lp-visual { position: relative; padding: 10px 0 30px; }
.lp-mock {
    background: var(--night-2); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px;
    padding: 22px; box-shadow: 0 30px 70px -25px rgba(0,0,0,0.6);
}
.lp-mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.lp-mock-proj { font-weight: 700; font-size: 0.98rem; }
.lp-mock-total { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; font-size: 1.15rem; }
.lp-mock-sub { color: #948e9e; font-size: 0.78rem; margin-bottom: 18px; }

.lp-split-track {
    height: 8px; border-radius: 6px; overflow: hidden; display: flex; margin-bottom: 20px;
    background: rgba(255,255,255,0.08);
}
.lp-split-a { width: 50%; background: var(--accent); animation: lpGrowA 1s ease-out 0.15s both; }
.lp-split-b { width: 50%; background: var(--teal); animation: lpGrowB 1s ease-out 0.15s both; }

.lp-termin-cards { display: flex; flex-direction: column; gap: 10px; }
.lp-termin-card {
    background: #201d29; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px;
    padding: 13px 15px; display: flex; justify-content: space-between; align-items: center;
    animation: lpFadeUp 0.6s ease-out both;
}
.lp-termin-card:nth-child(1) { animation-delay: 0.35s; }
.lp-termin-card:nth-child(2) { animation-delay: 0.55s; }
.lp-termin-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; padding: 3px 9px; border-radius: 20px; margin-right: 10px; }
.lp-termin-tag.dp { background: var(--accent-soft); color: var(--accent-dark); }
.lp-termin-tag.lunas { background: var(--teal-soft); color: var(--teal); }
.lp-termin-amount { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.92rem; }
.lp-termin-status { font-size: 0.74rem; color: #948e9e; margin-top: 2px; }
.lp-termin-left { display: flex; align-items: center; }
.lp-termin-right { text-align: right; }
.lp-badge-ok { color: var(--teal); font-weight: 700; font-size: 0.78rem; }
.lp-badge-wait { color: #cbb9a3; font-weight: 700; font-size: 0.78rem; }

@keyframes lpGrowA { from { width: 0; } to { width: 50%; } }
@keyframes lpGrowB { from { width: 0; } to { width: 50%; } }
@keyframes lpFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 50/50 divider motif (signature, reused sparingly) ---------- */
.lp-divider { display: flex; height: 4px; width: 100%; }
.lp-divider span { flex: 1; }
.lp-divider span:first-child { background: var(--accent); }
.lp-divider span:last-child { background: var(--teal); }

/* ---------- Section shells ---------- */
.lp-section { padding: 86px 0; }
.lp-section.tight { padding: 64px 0; }
.lp-kicker { color: var(--muted); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.lp-h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 14px; line-height: 1.18; }
.lp-h2-sub { color: var(--muted); font-size: 1.02rem; max-width: 620px; line-height: 1.6; }

/* ---------- Pain comparison ---------- */
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.lp-compare-col { border-radius: var(--radius); padding: 26px; }
.lp-compare-col.bad { background: #fff; border: 1px solid var(--border); }
.lp-compare-col.good { background: var(--ink); color: #fff; }
.lp-compare-label { font-weight: 700; font-size: 0.9rem; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.lp-compare-col.bad .lp-compare-label { color: var(--accent-dark); }
.lp-compare-col.good .lp-compare-label { color: var(--teal-soft); }
.lp-compare-item { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 0.94rem; line-height: 1.5; }
.lp-compare-col.good .lp-compare-item { border-top-color: rgba(255,255,255,0.1); color: var(--night-text); }
.lp-compare-item:first-of-type { border-top: none; padding-top: 0; }
.lp-compare-item i { flex-shrink: 0; margin-top: 3px; }
.lp-compare-col.bad .lp-compare-item i { color: #c9a08e; }
.lp-compare-col.good .lp-compare-item i { color: var(--teal); }

/* ---------- Feature grid ---------- */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.lp-feature {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease;
}
.lp-feature.lp-in { opacity: 1; transform: translateY(0); }
.lp-feature-icon {
    width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; margin-bottom: 16px; color: #fff;
}
.lp-feature h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 8px; }
.lp-feature p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- Trust band ---------- */
.lp-trustband { background: var(--teal); color: #fff; padding: 64px 0; }
.lp-trustband .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.lp-trustband h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 14px; }
.lp-trustband p { color: var(--teal-soft); font-size: 1rem; line-height: 1.65; margin: 0; }
.lp-trust-chip {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: 12px;
    padding: 16px 18px; font-size: 0.88rem; line-height: 1.5; margin-bottom: 12px;
}
.lp-trust-chip:last-child { margin-bottom: 0; }
.lp-trust-chip b { display: block; margin-bottom: 3px; }

/* ---------- Steps ---------- */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; counter-reset: lpstep; }
.lp-step { position: relative; padding-top: 6px; }
.lp-num { font-size: 2.6rem; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 10px; }
.lp-step h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }
.lp-step p { font-size: 0.92rem; color: var(--muted); line-height: 1.55; margin: 0; }
.lp-step:not(:last-child)::after {
    content: ''; position: absolute; top: 24px; right: -12px; width: 22px; height: 1px; background: var(--border);
}

/* ---------- Final CTA ---------- */
.lp-final { background: var(--night); color: #fff; padding: 90px 0; text-align: center; }
.lp-final h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 16px; }
.lp-final p { color: var(--night-text); font-size: 1.02rem; margin: 0 0 32px; }
.lp-final-ctas { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.lp-footer { background: var(--night); border-top: 1px solid rgba(255,255,255,0.08); padding: 30px 0 34px; }
.lp-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.lp-footer-brand { color: #fff; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.lp-footer-brand .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--accent); display: inline-block; }
.lp-footer p { color: #837c8c; font-size: 0.82rem; margin: 0; }

/* ---------- Motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
    .lp-split-a, .lp-split-b, .lp-termin-card { animation: none !important; }
    .lp-feature { transition: none; opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .lp-hero-grid { grid-template-columns: 1fr; padding-bottom: 40px; }
    .lp-hero { padding-top: 40px; }
    .lp-compare { grid-template-columns: 1fr; }
    .lp-features { grid-template-columns: 1fr 1fr; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-step:not(:last-child)::after { display: none; }
    .lp-trustband .container { grid-template-columns: 1fr; }
    .lp-nav-links .lp-link { display: none; }
}
@media (max-width: 560px) {
    .lp-features { grid-template-columns: 1fr; }
    .lp-hero-ctas { flex-direction: column; align-items: stretch; }
    .lp-hero-ctas a { text-align: center; }
}
