/* =========================================================
   Keuangankita — Stylesheet Publik (landing, harga, legal, demo)
   Desain modern, responsif (mobile-first)
   ========================================================= */
:root {
  --p-primary: #2563eb;
  --p-primary-dark: #1d4ed8;
  --p-primary-light: #dbeafe;
  --p-success: #16a34a;
  --p-ink: #0f172a;
  --p-muted: #64748b;
  --p-line: #e2e8f0;
  --p-bg: #ffffff;
  --p-bg-soft: #f8fafc;
  --p-dark: #0f172a;
  --p-radius: 14px;
  --p-shadow: 0 1px 3px rgba(15,23,42,.08);
  --p-shadow-lg: 0 12px 40px rgba(15,23,42,.12);
  --p-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --p-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--p-font);
  color: var(--p-ink);
  background: var(--p-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--p-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--p-primary-dark); }
h1,h2,h3,h4 { line-height: 1.25; letter-spacing: -.01em; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section-soft { background: var(--p-bg-soft); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--p-primary); margin-bottom: .6rem;
}
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: .6rem; }
.section-sub { color: var(--p-muted); max-width: 640px; margin: 0 auto 2.5rem; }
.center { text-align: center; }

/* ---------- Navbar ---------- */
.p-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--p-line);
}
.p-nav .container { display: flex; align-items: center; gap: 1.5rem; padding: .9rem 1.25rem; }
.p-nav .brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.1rem; color: var(--p-ink); }
.p-nav .brand .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--p-gradient); display: grid; place-items: center;
  color: #fff; font-weight: 800; flex-shrink: 0;
}
.p-nav .links { display: flex; align-items: center; gap: 1.2rem; margin-left: 1rem; }
.p-nav .links a { color: var(--p-muted); font-weight: 600; font-size: .92rem; }
.p-nav .links a:hover { color: var(--p-ink); }
.p-nav .actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .62rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none;
  transition: filter .15s, transform .1s, background .15s; background: var(--p-primary); color: #fff; }
.btn:hover { filter: brightness(1.07); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; border-color: var(--p-line); color: var(--p-ink); }
.btn.ghost:hover { background: var(--p-bg-soft); color: var(--p-ink); }
.btn.dark { background: var(--p-dark); color: #fff; }
.btn.success { background: var(--p-success); color: #fff; }
.btn.lg { padding: .8rem 1.6rem; font-size: 1rem; border-radius: 12px; }
.btn.sm { padding: .45rem .9rem; font-size: .85rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.p-hero { padding: 5rem 0 4rem; background: radial-gradient(1200px 500px at 70% -10%, #eff6ff 0%, transparent 60%), var(--p-bg); }
.p-hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.p-hero h1 { font-size: 2.7rem; font-weight: 800; line-height: 1.12; margin: .9rem 0 1rem; }
.p-hero p.sub { color: var(--p-muted); font-size: 1.1rem; max-width: 520px; margin-bottom: 1.8rem; }
.p-hero .cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.p-hero .note { margin-top: 1.2rem; font-size: .82rem; color: var(--p-muted); }
.p-hero .shot {
  border: 1px solid var(--p-line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--p-shadow-lg);
}
.p-hero .shot img { width: 100%; display: block; }

/* ---------- Fitur & kartu umum ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.card-feature {
  background: var(--p-bg); border: 1px solid var(--p-line); border-radius: var(--p-radius);
  padding: 1.5rem; box-shadow: var(--p-shadow); transition: transform .15s, box-shadow .15s;
}
.card-feature:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-lg); }
.card-feature .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--p-primary-light);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: .8rem;
}
.card-feature h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.card-feature p { color: var(--p-muted); font-size: .9rem; }

/* ---------- Masalah -> solusi ---------- */
.problem-card { border-left: 4px solid var(--p-primary); }
.problem-card .bad { color: #dc2626; font-weight: 700; font-size: .85rem; }
.problem-card .solve { color: var(--p-success); font-weight: 600; font-size: .88rem; margin-top: .35rem; }

/* ---------- Harga ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 880px; margin: 0 auto; align-items: stretch; }
.price-card {
  background: var(--p-bg); border: 1px solid var(--p-line); border-radius: 18px;
  padding: 2rem; display: flex; flex-direction: column; box-shadow: var(--p-shadow);
  position: relative;
}
.price-card.featured { border-color: var(--p-primary); box-shadow: 0 10px 34px rgba(37,99,235,.16); }
.price-card .ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--p-gradient); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .28rem .9rem; border-radius: 999px; letter-spacing: .03em; white-space: nowrap;
}
.price-card .pname { font-size: 1.15rem; font-weight: 800; }
.price-card .pdesc { color: var(--p-muted); font-size: .88rem; margin: .2rem 0 1rem; }
.price-card .pprice { font-size: 2.3rem; font-weight: 800; margin-bottom: .2rem; }
.price-card .pperiod { color: var(--p-muted); font-size: .85rem; margin-bottom: 1.2rem; }
.price-card ul { list-style: none; flex: 1; margin-bottom: 1.4rem; }
.price-card ul li { padding: .4rem 0; font-size: .9rem; display: flex; gap: .5rem; align-items: flex-start; }
.price-card ul li .tick { color: var(--p-success); font-weight: 800; }
.limit-note {
  margin-top: 2.2rem; max-width: 780px; margin-left: auto; margin-right: auto;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
  padding: 1.1rem 1.3rem; font-size: .9rem; color: #92400e;
}
.limit-note b { color: #78350f; }

/* ---------- Langkah (cara kerja) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 1.6rem; background: var(--p-bg); border: 1px solid var(--p-line); border-radius: var(--p-radius); }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--p-gradient);
  color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1rem; margin-bottom: .8rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step p { color: var(--p-muted); font-size: .9rem; }

/* ---------- Testimoni ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testi { background: var(--p-bg); border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 1.5rem; box-shadow: var(--p-shadow); }
.testi .quote { font-size: .95rem; margin-bottom: 1rem; }
.testi .who { display: flex; align-items: center; gap: .6rem; }
.testi .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--p-primary-light); display: grid; place-items: center; font-weight: 800; color: var(--p-primary-dark); }
.testi .who .name { font-weight: 700; font-size: .9rem; }
.testi .who .role { color: var(--p-muted); font-size: .8rem; }
.contoh-note {
  margin-top: 1.4rem; text-align: center; font-size: .78rem; color: var(--p-muted);
  background: #f1f5f9; border-radius: 8px; padding: .5rem; display: inline-block; margin-left: auto; margin-right: auto;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--p-bg); border: 1px solid var(--p-line); border-radius: 12px; overflow: hidden; }
.faq-item summary { padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; font-size: .98rem; list-style: none; position: relative; padding-right: 2.2rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--p-muted); }
.faq-item[open] summary::after { content: '−'; }
.faq-item .ans { padding: 0 1.2rem 1.1rem; color: var(--p-muted); font-size: .93rem; }

/* ---------- Footer ---------- */
.p-footer { background: var(--p-dark); color: #94a3b8; padding: 3rem 0 1.6rem; margin-top: 3rem; }
.p-footer a { color: #cbd5e1; }
.p-footer a:hover { color: #fff; }
.p-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.p-footer .cols h4 { color: #fff; font-size: .9rem; margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.p-footer .cols ul { list-style: none; }
.p-footer .cols li { padding: .3rem 0; font-size: .9rem; }
.p-footer .brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: #fff; margin-bottom: .8rem; }
.p-footer .brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--p-gradient); display: grid; place-items: center; color: #fff; font-weight: 800; }
.p-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }

/* ---------- Form publik (daftar/kontak) ---------- */
.p-form-card { max-width: 560px; margin: 0 auto; background: var(--p-bg); border: 1px solid var(--p-line); border-radius: 16px; padding: 2rem; box-shadow: var(--p-shadow-lg); }
.p-form-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: .3rem; }
.p-form-card .sub { text-align: center; color: var(--p-muted); font-size: .9rem; margin-bottom: 1.6rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .35rem; }
.field .hint { font-size: .78rem; color: var(--p-muted); margin-top: .3rem; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=url], .field select, .field textarea {
  width: 100%; padding: .62rem .85rem; border: 1px solid var(--p-line); border-radius: 10px;
  font: inherit; color: var(--p-ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.field .checkbox { display: flex; align-items: flex-start; gap: .55rem; font-size: .87rem; color: var(--p-muted); }
.field .checkbox input { width: 18px; height: 18px; margin-top: .15rem; flex-shrink: 0; }
.grid-2cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.flash { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.2rem; font-weight: 600; font-size: .9rem; }
.flash.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash.info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.url-preview { margin-top: .35rem; font-size: .88rem; color: var(--p-muted); }
.url-preview .ok { color: var(--p-success); font-weight: 600; }
.url-preview .no { color: #dc2626; font-weight: 600; }

/* ---------- Halaman legal ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 2rem; margin-bottom: .4rem; }
.legal .updated { color: var(--p-muted); font-size: .85rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .7rem; }
.legal p, .legal li { color: #334155; margin-bottom: .7rem; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: #fef3c7; border: 1px solid #fde68a; color: #78350f;
  text-align: center; padding: .6rem 1rem; font-weight: 700; font-size: .85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .p-hero .grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .testi-grid, .steps { grid-template-columns: 1fr 1fr; }
  .p-footer .cols { grid-template-columns: 1fr 1fr; }
  .p-nav .links { display: none; }
}
@media (max-width: 560px) {
  html { font-size: 15px; }
  .p-hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.55rem; }
  .grid-3, .grid-4, .testi-grid, .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .p-footer .cols, .grid-2cols { grid-template-columns: 1fr; }
  .p-nav .container { padding: .7rem 1rem; gap: .8rem; }
  .p-nav .actions .btn { padding: .5rem .8rem; font-size: .82rem; }
  .section { padding: 3rem 0; }
}


