/* Situs penjualan Nafiq POS. Token warna dan bentuk mengikuti
   DESIGN-SYSTEM.md proyek: oranye brand, espresso, cream, radius
   kartu 20px dan tombol 14px, heading Manrope dan isi DM Sans. */
:root {
  --brand: #E86F21;
  --brand-dark: #B9470D;
  --amber: #FFAD42;
  --espresso: #2B1C16;
  --text-2: #6C554A;
  --canvas: #F7EFE7;
  --surface: #FFFAF4;
  --border: #EAD8C9;
  --info: #1FA8A0;
  --success: #2E7D4F;
  --danger: #B94E4E;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", system-ui, sans-serif; background: var(--canvas); color: var(--espresso); line-height: 1.55; }
h1, h2, h3, .logo { font-family: "Manrope", "DM Sans", system-ui, sans-serif; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.topbar { position: sticky; top: 0; background: var(--surface); border-bottom: 1px solid var(--border); z-index: 10; }
.topbar-in { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { font-size: 20px; font-weight: 800; color: var(--brand-dark); text-decoration: none; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.nav a:hover { color: var(--brand-dark); }

.btn { display: inline-block; border: none; border-radius: 14px; padding: 10px 20px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; font-family: inherit; text-align: center; }
.btn-big { padding: 14px 26px; font-size: 16px; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--surface); color: var(--espresso); border: 1px solid var(--border); }
.btn-wa { background: var(--success); color: #fff; }

.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--surface), var(--canvas)); }
.badge { display: inline-block; background: var(--amber); color: var(--espresso); font-weight: 700; font-size: 13px; padding: 5px 14px; border-radius: 999px; }
.hero h1 { font-size: 42px; line-height: 1.15; margin: 18px 0 14px; max-width: 720px; }
.lead { font-size: 18px; color: var(--text-2); max-width: 640px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 28px 0 0; }
.hero-points li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; font-size: 13.5px; font-weight: 600; }

.section { padding: 56px 0; }
.section.alt { background: var(--surface); }
.section h2 { font-size: 29px; margin: 0 0 8px; }
.sub { color: var(--text-2); margin: 0 0 26px; max-width: 640px; }
.note { background: #FFF3D6; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-top: 26px; font-size: 14.5px; }
.hint { color: var(--text-2); font-size: 13.5px; min-height: 18px; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.section.alt .card { background: var(--canvas); }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.step { position: relative; }
.stepnum { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; font-family: "Manrope", sans-serif; }

.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.price-card.featured { border: 2px solid var(--brand); }
.price-card h3 { margin: 0; font-size: 19px; }
.price-card .tagline { color: var(--text-2); margin: 4px 0 16px; font-size: 14.5px; }
.price-was { font-family: "Manrope", sans-serif; font-size: 19px; font-weight: 700; color: var(--text-2); text-decoration: line-through; }
.price-promo { display: inline-block; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 12px; margin: 6px 0 2px; }
.price-amount { font-family: "Manrope", sans-serif; font-size: 34px; font-weight: 800; color: var(--brand-dark); }
.price-once { color: var(--text-2); font-size: 14px; margin-bottom: 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.price-card li { padding: 6px 0 6px 24px; position: relative; font-size: 14.5px; }
.price-card li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: var(--success); }
.price-card .btn { width: 100%; }

.order-in { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form select, .form textarea { font-family: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--espresso); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; }

.faq details { background: var(--canvas); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; font-family: "Manrope", sans-serif; }
.faq p { color: var(--text-2); margin: 10px 0 0; font-size: 14.5px; }

.footer { background: var(--espresso); color: var(--canvas); padding: 26px 0; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

.logo-img { height: 42px; width: auto; display: block; }
.footer-logo { height: 34px; width: auto; background: var(--canvas); border-radius: 8px; padding: 3px 8px; }

.slideshow { position: relative; margin-top: 34px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--espresso); }
.slideshow .slide { display: none; margin: 0; }
.slideshow .slide.active { display: block; }
.slideshow .slide img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.slideshow figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 22px 16px; color: #fff; font-weight: 700; font-size: 17px; font-family: "Manrope", sans-serif; background: linear-gradient(180deg, transparent, rgba(43, 28, 22, 0.82)); }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255, 250, 244, 0.92); color: var(--espresso); font-size: 24px; line-height: 1; cursor: pointer; }
.slide-btn.prev { left: 12px; }
.slide-btn.next { right: 12px; }
.slide-dots { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 7px; z-index: 2; }
.slide-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.45); cursor: pointer; padding: 0; }
.slide-dot.active { background: var(--amber); }

.diff-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.diff-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px 22px; align-items: start; }
.diff-problem { margin: 0; font-weight: 800; font-family: "Manrope", sans-serif; color: var(--danger); }
.diff-answer { margin: 0; color: var(--text-2); font-size: 14.5px; }

.steps4 { grid-template-columns: repeat(4, 1fr); }
.steps-list { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14.5px; }
.steps-list li { padding: 3px 0; }

.plus-lead { font-weight: 700; margin: 0 0 6px; font-size: 14.5px; }

.fam-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.fam-tab { font-family: "Manrope", "DM Sans", sans-serif; font-weight: 700; font-size: 15px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
.fam-tab:hover { color: var(--brand-dark); border-color: var(--amber); }
.fam-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.fam-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px 28px; max-width: 760px; }
.fam-panel p { color: var(--text-2); font-size: 15px; margin: 0 0 18px; max-width: 620px; }
.fam-panel .btn { margin-top: 2px; }
.fam-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.fam-head h3 { margin: 0; font-size: 21px; }
.fam-status { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 13px; }
.fam-status.ready { background: var(--success); color: #fff; }
.fam-status.soon { background: #FFF3D6; color: var(--brand-dark); border: 1px solid var(--amber); }

.apk-box { display: flex; gap: 22px; align-items: center; }
.apk-logo { width: 240px; max-width: 45%; height: auto; border-radius: 14px; }
.btn-disabled { opacity: 0.55; cursor: not-allowed; }

.checkout { display: grid; gap: 24px; max-width: 760px; margin: 0 auto; }
.checkout .form { margin: 0; }
.qr-panel { text-align: center; border-top: 1px solid var(--border); padding-top: 20px; }
.qr-amount { font-weight: 800; font-size: 20px; margin: 8px 0; }
#qrImg { width: 260px; height: 260px; object-fit: contain; margin: 12px auto; display: block; }
.serial-code { background: var(--espresso); color: #fff; border-radius: 12px; padding: 16px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; font-size: 15px; }
.success-panel { border-top: 1px solid var(--border); padding-top: 20px; }
.success-panel .btn { margin: 8px 8px 8px 0; }

@media (max-width: 860px) {
  .steps4 { grid-template-columns: 1fr 1fr; }
  .diff-row { grid-template-columns: 1fr; gap: 6px; }
  .apk-box { flex-direction: column; align-items: flex-start; }
  .slideshow figcaption { font-size: 14.5px; }
}
  .cards3, .grid { grid-template-columns: 1fr 1fr; }
  .prices, .order-in { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .nav { display: none; }
}
@media (max-width: 540px) {
  .cards3, .grid { grid-template-columns: 1fr; }
}
