/* Papan Kerja — business website
   Brand palette mirrored from the app (src/constants/colors.js). */
:root {
  --primary: #1A6FFF;
  --primary-dark: #1455D1;
  --primary-light: #E8F0FF;
  --ink: #1F2937;
  --ink-soft: #374151;
  --muted: #6B7280;
  --line: #E6EBF2;
  --bg: #FFFFFF;
  --bg-soft: #F6F9FE;
  --success: #16A34A;
  --success-light: #DCFCE7;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 8px 24px rgba(20, 85, 209, .08);
  --shadow-lg: 0 20px 48px rgba(20, 85, 209, .14);
  --maxw: 1120px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.12rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; font-size: .97rem;
  padding: 8px 14px; border-radius: 10px;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--primary); text-decoration: none; }
.nav-links a.active { color: var(--primary); }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 13px 22px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); background: var(--bg-soft); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 80% -10%, var(--primary-light), transparent 70%),
    linear-gradient(180deg, #FBFDFF, #FFFFFF);
  padding: 64px 0 56px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary-dark);
  font-weight: 700; font-size: .85rem; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.hero p.lead { font-size: 1.18rem; max-width: 33ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.hero-trust svg { color: var(--success); flex: none; }

/* centered hero variant (no side image) */
.hero-center { padding: 76px 0 64px; }
.hero-center .container { max-width: 880px; text-align: center; }
.hero-center p.lead { max-width: 60ch; margin-left: auto; margin-right: auto; font-size: 1.2rem; }
.hero-center .hero-cta { justify-content: center; }
.hero-center .hero-trust { justify-content: center; }

/* phone mockup */
.phone {
  justify-self: center; width: 280px; height: 560px; border-radius: 40px;
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  padding: 14px; box-shadow: var(--shadow-lg);
  position: relative;
}
.phone::before {
  content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: rgba(0,0,0,.18); border-radius: 999px;
}
.phone-screen {
  width: 100%; height: 100%; background: #fff; border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-top { background: var(--primary); color: #fff; padding: 40px 20px 18px; }
.phone-top .hi { opacity: .85; font-size: .8rem; }
.phone-top .bal { font-size: 1.5rem; font-weight: 800; margin-top: 2px; }
.phone-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.p-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.p-card .row { display: flex; justify-content: space-between; align-items: center; }
.p-title { font-weight: 700; font-size: .9rem; color: var(--ink); }
.p-sub { font-size: .75rem; color: var(--muted); }
.p-fee { font-weight: 800; color: var(--primary); font-size: .92rem; }
.p-chip { font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--success-light); color: var(--success); }
.p-chip.blue { background: var(--primary-light); color: var(--primary-dark); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { font-size: 1.08rem; }
.bg-soft { background: var(--bg-soft); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary); margin-bottom: 16px;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: .98rem; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.step .num {
  counter-increment: step; flex: none; width: 40px; height: 40px; border-radius: 11px;
  background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; font-size: .97rem; }

/* split feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.alt .split-media { order: -1; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .tick { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--success-light); color: var(--success); display: grid; place-items: center; margin-top: 2px; }
.feature-list b { color: var(--ink); }

.media-panel {
  background: linear-gradient(160deg, #fff, var(--bg-soft));
  border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow);
}
.flow-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.flow-row:last-child { border-bottom: 0; }
.flow-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; }
.flow-row b { display: block; color: var(--ink); }
.flow-row span { font-size: .9rem; color: var(--muted); }

/* company facts panel */
.facts {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.facts .fact { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.facts .fact:last-child { border-bottom: 0; }
.facts .fact .k { color: var(--muted); font-weight: 600; font-size: .95rem; }
.facts .fact .v { color: var(--ink); font-weight: 600; }

/* trust badges row */
.badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; background:#fff; border:1px solid var(--line);
  border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.badge svg { color: var(--primary); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 24px; padding: 48px; text-align: center; color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 46ch; margin: 0 auto 24px; }
.cta-band .btn-ghost { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.2); }
.cta-band .btn-white { background:#fff; color: var(--primary); }
.cta-band .btn-white:hover { background:#eef4ff; color: var(--primary-dark); }

/* ---------- page hero (interior) ---------- */
.page-hero { background: linear-gradient(180deg, var(--bg-soft), #fff); padding: 56px 0 36px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero p { font-size: 1.1rem; max-width: 62ch; }

/* ---------- legal doc ---------- */
.doc { padding: 48px 0 64px; }
.doc-wrap { max-width: 820px; margin: 0 auto; }
.doc-wrap h1 { font-size: 2rem; }
.doc-wrap h2 { font-size: 1.4rem; margin-top: 2em; padding-top: .4em; border-top: 1px solid var(--line); }
.doc-wrap h3 { font-size: 1.12rem; margin-top: 1.6em; }
.doc-wrap p, .doc-wrap li { color: var(--ink-soft); }
.doc-wrap ul, .doc-wrap ol { padding-left: 1.3em; }
.doc-wrap li { margin: .4em 0; }
.doc-wrap table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.doc-wrap th, .doc-wrap td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.doc-wrap th { background: var(--bg-soft); }
.doc-wrap hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.doc-wrap code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.doc-toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 32px;
}
.doc-toc strong { display:block; margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer { background: #0E1726; color: #C7D0DD; padding: 56px 0 28px; margin-top: 24px; }
.site-footer a { color: #C7D0DD; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.foot-brand img { width: 32px; height: 32px; border-radius: 8px; }
.foot-col h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; letter-spacing: .02em; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col li { font-size: .94rem; }
.foot-company { font-size: .9rem; line-height: 1.7; }
.foot-company .reg { color: #8C97A6; font-size: .84rem; }
.foot-bottom { border-top: 1px solid #1E2A3D; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; color: #8C97A6; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .phone { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.alt .split-media { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .facts .fact { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .25s ease; z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 12px; border-radius: 10px; }
  .nav-cta-desktop { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 22px; }
  section { padding: 48px 0; }
}
