/* Babajo POS - babajo.biz.id */
:root {
  --green: #0F6B4F;
  --green-dark: #0A4F3A;
  --green-soft: #E3F2EC;
  --mint: #F2F8F5;
  --ink: #10231C;
  --text: #2B3A34;
  --muted: #5F6E67;
  --line: #DCE5E0;
  --white: #FFFFFF;
  --accent: #F4B740;
  --radius: 16px;
  --shadow: 0 24px 60px -24px rgba(16, 35, 28, .28), 0 2px 6px rgba(16, 35, 28, .06);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 10px 24px -12px rgba(15, 107, 79, .7); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); }
.btn-light { background: var(--white); color: var(--green-dark); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Kepala halaman */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--green); text-decoration: none; }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 62%; height: 100%;
  background: radial-gradient(60% 60% at 70% 40%, var(--green-soft) 0%, rgba(227, 242, 236, 0) 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--green-soft);
  color: var(--green-dark); font-size: 14px; font-weight: 600;
}
.chip .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.chip .dot img { width: 12px; height: 12px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--green); }

.window {
  border-radius: 14px; background: var(--white); box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #F4F7F5; border-bottom: 1px solid var(--line); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #D3DCD7; }
.window-bar small { margin-left: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.hero-visual { position: relative; }
.hero-visual .window { transform: perspective(1600px) rotateY(-4deg); transform-origin: left center; }

/* Perangkat yang didukung */
.support { padding: 28px 0; border-block: 1px solid var(--line); background: var(--mint); }
.support-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 28px; }
.support-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.support-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: 15px; white-space: nowrap; }
.support-item svg { width: 22px; height: 22px; color: var(--green); }

/* Kartu fitur */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.feature:hover { border-color: #BFD7CC; box-shadow: 0 16px 40px -28px rgba(16, 35, 28, .5); transform: translateY(-2px); }
.feature .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; font-weight: 700; margin-top: 18px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Sorotan dengan gambar */
.showcase { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.showcase + .showcase { margin-top: 112px; }
.showcase.reverse .showcase-text { order: 2; }
.showcase h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.showcase .showcase-text > p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 3px; }

/* Langkah */
.bg-mint { background: var(--mint); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 32px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: var(--white); font-weight: 800; font-size: 17px;
}
.step h3 { font-size: 19px; margin-top: 18px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Segera hadir */
.soon { background: var(--ink); color: #C9D8D1; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.soon::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; background: url("symbol-white.svg") no-repeat center / contain; opacity: .05; }
.soon h2 { color: var(--white); font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.soon p { margin-top: 14px; font-size: 18px; }
.tag-soon { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(244, 183, 64, .15); color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .04em; margin-bottom: 16px; }
.soon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.soon-list li { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.soon-list svg { width: 24px; height: 24px; flex: none; color: #7FD1AE; margin-top: 2px; }
.soon-list b { color: var(--white); display: block; font-size: 16px; }
.soon-list span { font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 0 24px; transition: border-color .2s ease; }
.faq details[open] { border-color: #BFD7CC; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; color: var(--ink); font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 500; color: var(--green); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* Ajakan unduh */
.cta { background: var(--green); border-radius: 24px; padding: 64px 56px; text-align: center; color: #D7EDE3; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: -60px; top: -80px; width: 280px; height: 280px; background: url("symbol-white.svg") no-repeat center / contain; opacity: .07; }
.cta h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; position: relative; }
.cta p { margin: 14px auto 0; max-width: 560px; font-size: 18px; position: relative; }
.cta .btn { margin-top: 30px; position: relative; }
.cta small { display: block; margin-top: 14px; font-size: 14px; opacity: .85; position: relative; }

/* Kaki halaman */
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); margin-top: 96px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-inner img { height: 26px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); font-size: 15px; font-weight: 600; }
.footer-copy { color: var(--muted); font-size: 14px; width: 100%; }

/* Muncul halus saat digulir */
/* Konten hanya disembunyikan bila JavaScript aktif (kelas .js), jadi tidak pernah hilang. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Layar sedang */
@media (max-width: 1000px) {
  .hero-grid, .showcase, .soon { grid-template-columns: 1fr; }
  .hero-visual .window { transform: none; }
  .showcase.reverse .showcase-text { order: 0; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

/* HP */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 64px; }
  .hero .lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .features, .steps { grid-template-columns: 1fr; }
  .showcase + .showcase { margin-top: 72px; }
  .soon, .cta { padding: 40px 24px; border-radius: 20px; }
  .nav .btn span { display: none; }
  .brand img { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature { transition: none; }
}
