/* Landing */
.nav-public { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-public .container { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.nav-menu { display: flex; align-items: center; gap: 20px; font-size: 0.85rem; }
.nav-menu a { color: var(--muted); }
.nav-menu a:hover { color: var(--text); text-decoration: none; }
.hero { padding: 64px 0 48px; text-align: center; }
.hero p { max-width: 560px; margin: 14px auto 22px; color: var(--muted); font-size: 0.92rem; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.section { padding: 48px 0; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 28px; }
.section-head p { font-size: 0.88rem; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 10px; background: rgba(var(--primary-rgb), 0.12); color: var(--primary); font-size: 1rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 0.9rem; }
.faq-item summary { cursor: pointer; font-weight: 500; }
.footer { padding: 22px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.78rem; }
/* Payment */
.qris-box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px; text-align: center; }
.qr-frame { padding: 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.qr-frame img, .qr-frame canvas { width: 190px; height: 190px; }
.countdown { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--primary); }
.countdown.expiring { color: var(--danger); animation: pulse 1s infinite; }
.detail-list { display: grid; gap: 10px; width: 100%; }
.detail-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8rem; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.detail-row span:first-child { color: var(--muted); }
/* Docs */
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; }
.docs-nav { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; }
.endpoint { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: ui-monospace, Consolas, monospace; }
.method { padding: 3px 10px; border-radius: 6px; background: rgba(52, 211, 153, 0.15); color: var(--success); font-weight: 700; font-size: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 0.85rem; display: grid; place-items: center; background: var(--gradient); color: #ffffff; }
.nav-toggle { display: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.preview { max-width: 820px; margin: 36px auto 0; padding: 12px; border-radius: 16px; text-align: left; }
.preview-bar { display: flex; gap: 6px; margin-bottom: 12px; }
.preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.preview-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.preview-stats div { padding: 10px; border-radius: 12px; background: var(--card-2); }
.preview-stats small { display: block; color: var(--muted); font-size: 0.7rem; }
.preview-stats b { font-size: 0.95rem; }
.preview-chart { height: 96px; border-radius: 12px; background: var(--card-2); display: flex; align-items: flex-end; gap: 8px; padding: 14px; }
.preview-chart span { flex: 1; border-radius: 6px 6px 0 0; background: var(--gradient); opacity: 0.85; }
.pay-logos { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.pay-logos .card { display: flex; align-items: center; gap: 14px; min-width: 240px; }
.steps { counter-reset: step; }
.step { position: relative; padding-top: 14px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; font-size: 0.9rem; border-radius: 50%; background: var(--gradient); color: #ffffff; font-weight: 700; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.stat-strip b { display: block; font-size: 1.3rem; }
@media (max-width: 992px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-menu.open { display: flex; position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 20px; background: var(--sidebar); border-bottom: 1px solid var(--border); }
  .nav-menu.open a { width: 100%; padding: 12px 0; }
}
@media (max-width: 576px) {
  .preview-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-actions .btn-outline { display: none; }
  .stat-strip { grid-template-columns: 1fr; }
}

/* Halaman legal (Privacy & Terms) */
.legal { max-width: 780px; padding-top: 24px; }
.legal h1 { font-size: 1.5rem; margin-bottom: 4px; }
.legal h2 { font-size: 0.98rem; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; font-size: 0.88rem; }
.legal ul { margin: 8px 0 0 20px; padding: 0; list-style: disc; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--primary); }
.legal-switch { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); }
.footer a:hover { color: var(--primary); }
.check-terms { align-items: flex-start; line-height: 1.5; }
.check-terms input { margin-top: 3px; flex-shrink: 0; }
.check-terms a { color: var(--primary); text-decoration: underline; }
.otp-row { display: flex; gap: 8px; }
.otp-row .input { flex: 1; min-width: 0; }
#otp { letter-spacing: 4px; font-weight: 600; }
.otp-row .btn { white-space: nowrap; }
.field-hint { margin-top: 4px; font-size: 0.75rem; }
.tg-guide { font-size: 0.8rem; color: var(--muted); background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 8px; line-height: 1.6; }
.tg-guide ol { margin: 4px 0 0 18px; padding: 0; list-style: decimal; }
.tg-guide a { color: var(--primary); }
.field-ok { margin-top: 4px; font-size: 0.75rem; color: var(--success); }
[hidden] { display: none !important; }
