/* ══════════════════════════════════════════════════════════════════════════
   SHOMERCH — design system
   Putih dominan, garis 1px tipis, aksen oranye dipakai hemat.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --brand-500: #EE4D2D;
    --brand-600: #D8432A;
    --brand-700: #B8351F;
    --brand-50:  #FFF3F0;
    --brand-100: #FFE3DC;

    --bg:         #FFFFFF;
    --surface:    #FAFAFA;
    --surface-2:  #F4F4F5;
    --border:     #E8E8EA;
    --border-str: #D4D4D8;

    --text:      #16181D;
    --text-mut:  #6B7280;
    --text-soft: #9CA3AF;

    --success: #12A150; --success-bg: #ECFDF3; --success-br: #ABEFC6;
    --warning: #B77B18; --warning-bg: #FFFAEB; --warning-br: #FEDF89;
    --danger:  #D92D20; --danger-bg:  #FEF3F2; --danger-br:  #FECDCA;
    --info:    #175CD3; --info-bg:    #EFF8FF; --info-br:    #B2DDFF;
    --neutral: #6B7280; --neutral-bg: #F4F4F5; --neutral-br: #E4E4E7;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, .08);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);

    --r-sm: 6px;
    --r:    8px;
    --r-lg: 12px;

    --sidebar-w: 240px;
    --topbar-h:  56px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
            Helvetica, Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
            'Liberation Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.014em; line-height: 1.3; }
h1 { font-size: 20px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p  { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }

img, svg { max-width: 100%; }

hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

::selection { background: var(--brand-100); }

/* ── Utilitas ──────────────────────────────────────────────────────────── */

.muted     { color: var(--text-mut); }
.soft      { color: var(--text-soft); }
.small     { font-size: 12.5px; }
.tiny      { font-size: 11.5px; }
.strong    { font-weight: 600; }
.center    { text-align: center; }
.right     { text-align: right; }
.nowrap    { white-space: nowrap; }
.num       { font-variant-numeric: tabular-nums; }
.break     { word-break: break-all; }
.hide      { display: none !important; }
.brand     { color: var(--brand-500); }

.row       { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col       { display: flex; flex-direction: column; gap: 12px; }
.wrap      { flex-wrap: wrap; }
.grow      { flex: 1; min-width: 0; }
.gap-4  { gap: 4px; }  .gap-8  { gap: 8px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; }

.mt-4  { margin-top: 4px; }  .mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px; }  .mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

.label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-mut);
    margin-bottom: 6px;
}

/* ── Tombol ────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--r);
    border: 1px solid transparent;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .12s, border-color .12s, opacity .12s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--brand-500); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-600); }
.btn-primary:active { background: var(--brand-700); }

.btn-secondary { background: #fff; border-color: var(--border-str); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: var(--surface); }

.btn-ghost { background: transparent; color: var(--text-mut); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }

.btn-danger { background: #fff; border-color: var(--danger-br); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--danger-bg); }

.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ── Form ──────────────────────────────────────────────────────────────── */

.field { margin-bottom: 16px; }

.input, .select, .textarea {
    width: 100%;
    /* 16px wajib: di bawah itu Safari iOS memperbesar halaman saat input
       difokus, dan layout mobile langsung berantakan. */
    font-size: 16px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border-str);
    border-radius: var(--r);
    padding: 9px 12px;
    transition: border-color .12s, box-shadow .12s;
}
.input:hover, .textarea:hover, .select:hover { border-color: #B9B9C0; }
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px var(--brand-50);
}
.input::placeholder, .textarea::placeholder { color: var(--text-soft); }
.input:disabled, .textarea:disabled { background: var(--surface); color: var(--text-mut); }

.textarea { min-height: 96px; resize: vertical; font-family: var(--mono); font-size: 13px; }
.select { appearance: none; background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.input.is-error, .textarea.is-error { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 5px; }
.field-hint  { color: var(--text-mut); font-size: 12.5px; margin-top: 5px; }

.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13.5px; }
.check input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--brand-500); flex-shrink: 0; }

.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }

/* ── Kartu ─────────────────────────────────────────────────────────────── */

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.card-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-head h2, .card-head h3 { font-size: 14.5px; }
.card-body { padding: 20px; }
.card-foot {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.card-flat { box-shadow: none; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Stat tile ─────────────────────────────────────────────────────────── */

.stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}
.stat-label {
    font-size: 12.5px; color: var(--text-mut); font-weight: 500;
    display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.stat-value { font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12.5px; color: var(--text-mut); margin-top: 4px; }

/* ── Badge ─────────────────────────────────────────────────────────────── */

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px; font-weight: 500; line-height: 19px;
    border: 1px solid transparent; white-space: nowrap;
}
.badge::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: currentColor; flex-shrink: 0;
}
.badge-plain::before { display: none; }

.badge-success { background: var(--success-bg); color: var(--success); border-color: var(--success-br); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-br); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-br); }
.badge-info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info-br); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral); border-color: var(--neutral-br); }
.badge-brand   { background: var(--brand-50);   color: var(--brand-600); border-color: var(--brand-100); }

/* ── Alert ─────────────────────────────────────────────────────────────── */

.alert {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-size: 13.5px;
    margin-bottom: 16px;
    background: var(--surface);
}
.alert-icon { flex-shrink: 0; margin-top: 1px; }
.alert-body { flex: 1; min-width: 0; }
.alert-title { font-weight: 600; margin-bottom: 2px; }
.alert-success { background: var(--success-bg); border-color: var(--success-br); color: #054F31; }
.alert-warning { background: var(--warning-bg); border-color: var(--warning-br); color: #7A2E0E; }
.alert-danger  { background: var(--danger-bg);  border-color: var(--danger-br);  color: #7A271A; }
.alert-info    { background: var(--info-bg);    border-color: var(--info-br);    color: #194185; }
.alert a { color: inherit; text-decoration: underline; }

/* ── Tabel ─────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
    text-align: left;
    font-size: 11.5px; font-weight: 500; color: var(--text-mut);
    text-transform: uppercase; letter-spacing: .04em;
    padding: 9px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FCFCFD; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-clickable tbody tr { cursor: pointer; }

/* ── Empty state ───────────────────────────────────────────────────────── */

.empty { padding: 48px 24px; text-align: center; }
.empty-icon {
    width: 40px; height: 40px; margin: 0 auto 14px;
    display: grid; place-items: center;
    border: 1px solid var(--border); border-radius: var(--r-lg);
    background: var(--surface); color: var(--text-soft);
}
.empty h3 { font-size: 14.5px; margin-bottom: 5px; }
.empty p { color: var(--text-mut); font-size: 13.5px; max-width: 380px; margin: 0 auto 16px; }

/* ── Kode ──────────────────────────────────────────────────────────────── */

.code {
    background: #16181D; color: #E4E4E7;
    border-radius: var(--r);
    padding: 14px 16px;
    overflow-x: auto;
    font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
    margin: 0;
    -webkit-overflow-scrolling: touch;
}
.code .k { color: #FF8A65; }   /* keyword  */
.code .s { color: #A5D6A7; }   /* string   */
.code .c { color: #6B7280; }   /* komentar */
.code .n { color: #90CAF9; }   /* angka    */

.code-inline {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--r-sm); padding: 1px 5px;
    font-family: var(--mono); font-size: 12.5px; color: var(--brand-700);
}

.copy-box {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: 9px 12px;
    font-family: var(--mono); font-size: 12.5px;
    word-break: break-all;
}
.copy-box .grow { min-width: 0; }

/* ── Tabs ──────────────────────────────────────────────────────────────── */

.tabs {
    display: flex; gap: 2px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    padding: 9px 13px;
    font-size: 13.5px; font-weight: 500; color: var(--text-mut);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0;
    font-family: inherit; white-space: nowrap; text-decoration: none;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--brand-600); border-bottom-color: var(--brand-500); }

/* ── Modal ─────────────────────────────────────────────────────────────── */

.modal-backdrop {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(16, 24, 40, .45);
    display: grid; place-items: center;
    padding: 16px;
    animation: fade .12s ease;
}
.modal {
    background: #fff; border-radius: var(--r-lg);
    width: 100%; max-width: 460px;
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - 32px);
    display: flex; flex-direction: column;
    animation: pop .14s ease;
}
.modal-lg { max-width: 640px; }
.modal-head { padding: 18px 20px 0; }
.modal-body { padding: 16px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }

@keyframes fade { from { opacity: 0 } }
@keyframes pop  { from { opacity: 0; transform: translateY(6px) scale(.98) } }

/* ── Layout aplikasi ───────────────────────────────────────────────────── */

.app { display: flex; min-height: 100dvh; }

.sidebar {
    width: var(--sidebar-w); flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100dvh;
}
.sidebar-head { padding: 16px 16px 12px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 4px 10px 16px; }
.sidebar-foot { padding: 12px 10px; border-top: 1px solid var(--border); }

.nav-group-label {
    font-size: 11px; font-weight: 600; color: var(--text-soft);
    text-transform: uppercase; letter-spacing: .05em;
    padding: 14px 8px 5px;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 9px; border-radius: var(--r);
    font-size: 13.5px; font-weight: 500; color: var(--text-mut);
    text-decoration: none; margin-bottom: 1px;
}
.nav-item:hover { background: rgba(0, 0, 0, .04); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--brand-50); color: var(--brand-600); }
.nav-item.active svg { color: var(--brand-500); }
.nav-item svg { flex-shrink: 0; color: var(--text-soft); }
.nav-item .count {
    margin-left: auto; font-size: 11px; font-weight: 600;
    background: var(--brand-500); color: #fff;
    border-radius: 999px; padding: 0 6px; min-width: 18px; text-align: center;
}

.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -.02em; text-decoration: none; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
    width: 24px; height: 24px; border-radius: 6px;
    background: var(--brand-500); color: #fff;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: var(--topbar-h); flex-shrink: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(8px);
    display: flex; align-items: center; gap: 12px;
    padding: 0 20px;
    position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 15px; }

.content { padding: 24px; flex: 1; }
.content-narrow { max-width: 780px; }
.container { max-width: 1200px; margin: 0 auto; }

.page-head { margin-bottom: 20px; }
.page-head h1 { margin-bottom: 3px; }
.page-head p { color: var(--text-mut); font-size: 13.5px; }

/* Menu akun */
.menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--r); box-shadow: var(--shadow-md);
    min-width: 200px; padding: 5px; z-index: 30;
}
.menu-item {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 9px; border-radius: var(--r-sm);
    font-size: 13.5px; color: var(--text); text-decoration: none;
    width: 100%; background: none; border: 0; font-family: inherit; cursor: pointer;
    text-align: left;
}
.menu-item:hover { background: var(--surface-2); text-decoration: none; }
.menu-sep { height: 1px; background: var(--border); margin: 5px 0; }

.avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--brand-50); color: var(--brand-600);
    display: grid; place-items: center;
    font-size: 12px; font-weight: 600; flex-shrink: 0;
}

.icon-btn {
    width: 32px; height: 32px; border-radius: var(--r);
    display: grid; place-items: center;
    border: 0; background: none; color: var(--text-mut); cursor: pointer;
    position: relative;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .dot {
    position: absolute; top: 5px; right: 5px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--brand-500); border: 1.5px solid #fff;
}

/* Drawer & bottom nav (mobile) */
.menu-toggle { display: none; }
.scrim { display: none; }
.bottomnav { display: none; }

/* ── Halaman publik ────────────────────────────────────────────────────── */

.pubnav {
    height: 60px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 24px;
    padding: 0 24px;
    position: sticky; top: 0; z-index: 30;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(8px);
}
.pubnav a.navlink { color: var(--text-mut); font-size: 13.5px; font-weight: 500; }
.pubnav a.navlink:hover { color: var(--text); text-decoration: none; }

.hero { padding: 80px 24px 64px; text-align: center; }
.hero h1 {
    font-size: 44px; letter-spacing: -.035em; line-height: 1.12;
    max-width: 720px; margin: 0 auto 18px;
}
.hero p.lead {
    font-size: 17px; color: var(--text-mut);
    max-width: 560px; margin: 0 auto 28px;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--brand-50); color: var(--brand-600);
    border: 1px solid var(--brand-100);
    border-radius: 999px; padding: 4px 12px;
    font-size: 12.5px; font-weight: 500; margin-bottom: 20px;
}

.section { padding: 64px 24px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.section-head h2 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 10px; }
.section-head p { color: var(--text-mut); font-size: 15px; }

.step-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--brand-500); color: #fff;
    display: grid; place-items: center;
    font-size: 12.5px; font-weight: 600; flex-shrink: 0;
}

.price-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 24px;
    display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50); }
.price-amount { font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.price-list { list-style: none; padding: 0; margin: 18px 0 0; flex: 1; }
.price-list li {
    display: flex; gap: 9px; align-items: flex-start;
    padding: 6px 0; font-size: 13.5px; color: var(--text-mut);
}
.price-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--success); }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
    padding: 16px 0; cursor: pointer; font-weight: 500; font-size: 14.5px;
    list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--text-soft); font-size: 18px; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding-bottom: 16px; color: var(--text-mut); }

.footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px; background: var(--surface);
    font-size: 13.5px; color: var(--text-mut);
}

/* ── Halaman auth ──────────────────────────────────────────────────────── */

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-form-inner { width: 100%; max-width: 360px; }
.auth-side {
    background: var(--brand-500); color: #fff;
    padding: 48px; display: flex; flex-direction: column; justify-content: center;
    background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.14), transparent 45%);
}
.auth-side h2 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 14px; color: #fff; }
.auth-side p { color: rgba(255, 255, 255, .88); font-size: 14.5px; }
.auth-side .quote-list { list-style: none; padding: 0; margin: 28px 0 0; }
.auth-side .quote-list li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 7px 0; font-size: 14px; color: rgba(255, 255, 255, .92);
}

/* Indikator kekuatan password */
.pwbar { display: flex; gap: 4px; margin-top: 7px; }
.pwbar i { height: 3px; flex: 1; background: var(--border); border-radius: 2px; transition: background .15s; }
.pwbar.s1 i:nth-child(1) { background: var(--danger); }
.pwbar.s2 i:nth-child(-n+2) { background: var(--warning); }
.pwbar.s3 i:nth-child(-n+3) { background: #6BAE3E; }
.pwbar.s4 i { background: var(--success); }

/* ── Halaman bayar QRIS ────────────────────────────────────────────────── */

.qr-box {
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 20px; text-align: center;
}
.qr-box img {
    width: 100%; max-width: 260px; height: auto;
    border-radius: var(--r); display: block; margin: 0 auto;
}
.qr-amount {
    font-size: 30px; font-weight: 600; letter-spacing: -.025em;
    font-variant-numeric: tabular-nums;
}
.countdown {
    font-variant-numeric: tabular-nums; font-weight: 600;
    font-size: 15px; color: var(--warning);
}
.countdown.urgent { color: var(--danger); }

/* ── Grafik batang sederhana ───────────────────────────────────────────── */

.chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.chart-bar { flex: 1; background: var(--brand-100); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.chart-bar:hover { background: var(--brand-500); }
.chart-bar[data-v]:hover::after {
    content: attr(data-v);
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    background: var(--text); color: #fff; font-size: 11px;
    padding: 3px 7px; border-radius: 5px; white-space: nowrap; margin-bottom: 5px;
}

/* ── Docs ──────────────────────────────────────────────────────────────── */

.docs { display: flex; gap: 40px; max-width: 1100px; margin: 0 auto; padding: 32px 24px 80px; }
.docs-nav {
    width: 200px; flex-shrink: 0;
    position: sticky; top: 76px; align-self: flex-start;
    max-height: calc(100dvh - 100px); overflow-y: auto;
}
.docs-nav a {
    display: block; padding: 5px 9px; border-radius: var(--r-sm);
    font-size: 13px; color: var(--text-mut); border-left: 2px solid transparent;
}
.docs-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.docs-body { flex: 1; min-width: 0; }
.docs-body h2 {
    font-size: 22px; letter-spacing: -.025em;
    margin: 48px 0 14px; padding-top: 12px;
    scroll-margin-top: 76px;
}
.docs-body h2:first-child { margin-top: 0; }
.docs-body h3 { font-size: 15px; margin: 28px 0 10px; scroll-margin-top: 76px; }
.docs-body p, .docs-body li { color: var(--text-mut); font-size: 14px; }
.docs-body .code { margin: 14px 0; }
.docs-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 14px 0; }
.docs-body th { text-align: left; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mut); }
.docs-body td { padding: 9px 12px; border: 1px solid var(--border); }

.method {
    display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600;
    padding: 2px 7px; border-radius: 4px; margin-right: 8px;
}
.method-get  { background: var(--info-bg); color: var(--info); }
.method-post { background: var(--success-bg); color: var(--success); }

/* ── Video tutorial ────────────────────────────────────────────────────── */

.video-wrap {
    position: relative; background: #000;
    border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--border);
}
.video-wrap video { width: 100%; display: block; max-height: 70dvh; }

/* ── Responsif ─────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .docs-nav { display: none; }
    .auth { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Sidebar jadi drawer */
    .menu-toggle { display: grid; }
    .sidebar {
        position: fixed; left: 0; top: 0; z-index: 60;
        transform: translateX(-100%);
        transition: transform .18s ease;
        box-shadow: var(--shadow-lg);
    }
    .sidebar.open { transform: none; }
    .scrim {
        display: block; position: fixed; inset: 0; z-index: 50;
        background: rgba(16, 24, 40, .4);
        opacity: 0; pointer-events: none; transition: opacity .18s;
    }
    .scrim.open { opacity: 1; pointer-events: auto; }
}

@media (max-width: 768px) {
    .content { padding: 16px; padding-bottom: 88px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero { padding: 52px 20px 40px; }
    .hero h1 { font-size: 32px; }
    .hero p.lead { font-size: 15.5px; }
    .section { padding: 44px 20px; }
    .section-head h2 { font-size: 23px; }
    .topbar { padding: 0 14px; }
    .card-body, .card-head { padding: 16px; }
    .card-foot { padding: 12px 16px; }
    .pubnav { padding: 0 16px; gap: 14px; }
    .pubnav .navlink { display: none; }
    .btn { height: 40px; }              /* target sentuh lebih besar */
    .btn-sm { height: 34px; }

    /* Bottom tab bar. env(safe-area-inset-bottom) supaya tidak tertutup
       home indicator iPhone. */
    .bottomnav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        background: rgba(255, 255, 255, .95);
        backdrop-filter: saturate(180%) blur(10px);
        border-top: 1px solid var(--border);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .bottomnav a {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
        padding: 8px 2px 6px; font-size: 10.5px; font-weight: 500;
        color: var(--text-soft); text-decoration: none; min-height: 48px;
    }
    .bottomnav a.active { color: var(--brand-500); }
    .bottomnav a:hover { text-decoration: none; }

    /* Tabel jadi kartu bertumpuk — bukan tabel yang digeser ke samping. */
    .table-cards thead { display: none; }
    .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
    .table-cards tr {
        border: 1px solid var(--border); border-radius: var(--r);
        margin-bottom: 10px; padding: 4px 0; background: #fff;
    }
    .table-cards td {
        border: 0; padding: 7px 14px;
        display: flex; justify-content: space-between; align-items: center; gap: 14px;
        text-align: right;
    }
    .table-cards td::before {
        content: attr(data-label);
        font-size: 12px; color: var(--text-mut); font-weight: 500;
        text-align: left; flex-shrink: 0;
    }
    .table-cards td.cell-main {
        display: block; text-align: left;
        border-bottom: 1px solid var(--border);
        padding-bottom: 9px; margin-bottom: 3px;
    }
    .table-cards td.cell-main::before { display: none; }
    .table-cards .num { text-align: right; }

    .modal { max-width: none; align-self: flex-end; border-radius: var(--r-lg) var(--r-lg) 0 0; }
    .modal-backdrop { place-items: end center; padding: 0; }

    .docs { padding: 20px 16px 64px; }
    .stat-value { font-size: 21px; }
}

@media (max-width: 380px) {
    .content { padding: 12px; padding-bottom: 84px; }
    .hero h1 { font-size: 28px; }
    .bottomnav a { font-size: 9.5px; }
}

@media print {
    .sidebar, .topbar, .bottomnav, .btn, .pubnav, .footer { display: none !important; }
    .content { padding: 0; }
    .card { border: 1px solid #ddd; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Halaman utama — tata letak yang lebih tegas
   ══════════════════════════════════════════════════════════════════════════ */

.hero-split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    text-align: left;
}

.hero-lg {
    /* Ukuran ikut lebar layar, tapi dijepit supaya tidak pernah kekecilan di
       ponsel maupun kebesaran di monitor lebar. */
    font-size: clamp(34px, 5.2vw, 60px);
    line-height: 1.04;
    letter-spacing: -.038em;
    margin-bottom: 20px;
}
.hero-lg em {
    font-style: normal;
    color: var(--brand-500);
}

.hero-sub {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--text-mut);
    max-width: 470px;
    margin-bottom: 28px;
}

/* ── Kalkulator hemat ─────────────────────────────────────────────────── */

.calc {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 48px rgba(16, 24, 40, .10);
}
.calc-out {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}
.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 7px 0;
}
.calc-row + .calc-row { border-top: 1px dashed var(--border); }
.calc-save {
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 12px;
    text-align: center;
}
.calc-save .angka {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--brand-600);
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: var(--border-str);
    outline: none;
    margin: 14px 0 4px;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand-500);
    border: 3px solid #fff;
    box-shadow: 0 1px 5px rgba(16, 24, 40, .28);
    cursor: pointer;
}
input[type=range]::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand-500);
    border: 3px solid #fff;
    box-shadow: 0 1px 5px rgba(16, 24, 40, .28);
    cursor: pointer;
}

/* ── Bar kepercayaan ──────────────────────────────────────────────────── */

.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-block: 1px solid var(--border);
}
.trust-item {
    background: #fff;
    padding: 22px 20px;
    text-align: center;
}
.trust-item .angka {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--text);
    margin-bottom: 3px;
}
.trust-item .ket { font-size: 12.5px; color: var(--text-mut); }

/* ── Alur kode unik ───────────────────────────────────────────────────── */

.flow {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.flow-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
    min-width: 128px;
}
.flow-box .n {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.flow-box.aksen { border-color: var(--brand-500); background: var(--brand-50); }
.flow-box.aksen .n { color: var(--brand-600); }
.flow-arrow { color: var(--text-soft); flex-shrink: 0; }

/* ── Kartu pemakaian ──────────────────────────────────────────────────── */

.use-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    transition: border-color .14s, transform .14s;
}
.use-card:hover { border-color: var(--brand-100); transform: translateY(-2px); }
.use-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--brand-50);
    color: var(--brand-600);
    display: grid; place-items: center;
    margin-bottom: 12px;
}

/* ── Tabel perbandingan ───────────────────────────────────────────────── */

.compare th:first-child, .compare td:first-child { text-align: left; }
.compare th, .compare td { text-align: center; }
.compare .kolom-kami {
    background: var(--brand-50);
    border-inline: 1px solid var(--brand-100);
}
.compare thead .kolom-kami {
    border-top: 1px solid var(--brand-100);
    border-radius: 10px 10px 0 0;
    color: var(--brand-600);
}
.compare tbody tr:last-child .kolom-kami {
    border-bottom: 1px solid var(--brand-100);
    border-radius: 0 0 10px 10px;
}

/* ── CTA penutup ──────────────────────────────────────────────────────── */

.cta-block {
    background: var(--text);
    color: #fff;
    border-radius: 20px;
    padding: 52px 32px;
    text-align: center;
    background-image: radial-gradient(circle at 50% 0%, rgba(238, 77, 45, .30), transparent 62%);
}
.cta-block h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.03em; }
.cta-block p { color: rgba(255, 255, 255, .72); }

@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; gap: 36px; }
    .trust-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-split { text-align: left; }
    .hero-sub { max-width: none; }
    .calc { padding: 18px; border-radius: 14px; }
    .cta-block { padding: 36px 20px; border-radius: 16px; }
    .flow-arrow { transform: rotate(90deg); }
    .flow { flex-direction: column; }
    .flow-box { width: 100%; }
}

/* ── Input kode OTP ───────────────────────────────────────────────────── */

.otp-input {
    font-family: var(--mono);
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    letter-spacing: .32em;
    /* Kompensasi letter-spacing yang menambah jarak setelah karakter
       terakhir — tanpa ini teksnya terlihat bergeser ke kiri. */
    padding-left: calc(12px + .32em);
    height: 60px;
}
.otp-input::placeholder { color: var(--border-str); letter-spacing: .32em; }

/* ── Halaman login admin ──────────────────────────────────────────────── */

.admin-login {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #16181D;
    background-image: radial-gradient(circle at 50% 0%, rgba(238, 77, 45, .18), transparent 60%);
}
.admin-login .card {
    background: #1D2026;
    border-color: #2A2E36;
    color: #E4E4E7;
    width: 100%;
    max-width: 380px;
}
.admin-login .card h1 { color: #fff; }
.admin-login .label { color: #A1A1AA; }
.admin-login .input {
    background: #16181D;
    border-color: #2A2E36;
    color: #fff;
}
.admin-login .input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(238,77,45,.18); }
.admin-login .input::placeholder { color: #52525B; }
.admin-login .muted, .admin-login .tiny { color: #71717A; }
.admin-login .logo { color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════
   Halaman utama — lapisan visual
   Latar ambient, animasi masuk, dan aksen yang membuat halaman terasa hidup.
   Palet tidak berubah: putih tetap dominan, oranye tetap dipakai hemat.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Latar hero ───────────────────────────────────────────────────────── */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: 76px;
}

/* Dua lapis dekorasi murni, jadi dibuat lewat pseudo-element supaya tidak
   menambah node kosong di DOM: cahaya oranye lembut, lalu grid tipis yang
   dipudarkan ke tepi dengan mask. */
.hero::before {
    content: '';
    position: absolute;
    inset: -34% -12% auto -12%;
    height: 660px;
    background:
        radial-gradient(50% 58% at 20% 34%, rgba(238, 77, 45, .17), transparent 68%),
        radial-gradient(46% 54% at 84% 14%, rgba(255, 164, 64, .16), transparent 70%);
    z-index: -2;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(22, 24, 29, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(22, 24, 29, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(72% 60% at 50% 28%, #000, transparent 74%);
    mask-image: radial-gradient(72% 60% at 50% 28%, #000, transparent 74%);
    z-index: -1;
    pointer-events: none;
}

/* ── Eyebrow dengan titik "live" ──────────────────────────────────────── */

.eyebrow {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.pulse-dot {
    position: relative;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
}
.pulse-dot::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
    0%   { transform: scale(1);   opacity: .55; }
    70%  { transform: scale(3.2); opacity: 0; }
    100% { transform: scale(3.2); opacity: 0; }
}

/* ── Judul hero ───────────────────────────────────────────────────────── */

.hero-lg em {
    position: relative;
    display: inline-block;
}
/* Gradien hanya dipakai kalau browser mendukung background-clip:text —
   tanpa penjaga ini teksnya bisa hilang sama sekali di browser lama. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-lg em {
        background: linear-gradient(96deg, var(--brand-600) 4%, #FF7A45 52%, var(--brand-500) 96%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}
/* Sapuan lembut di bawah kata aksen. */
.hero-lg em::after {
    content: '';
    position: absolute;
    left: 2%; right: 2%; bottom: .04em;
    height: .16em;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(238, 77, 45, .28), rgba(255, 164, 64, .22));
    z-index: -1;
}

.hero-cta .btn-primary {
    box-shadow: 0 10px 24px -8px rgba(238, 77, 45, .55);
    transition: transform .15s, box-shadow .15s;
}
.hero-cta .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -8px rgba(238, 77, 45, .6);
}
.hero-cta .btn-secondary {
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(6px);
}

/* ── Kalkulator: kartu mengambang + notifikasi ────────────────────────── */

.calc-wrap { position: relative; }
.calc {
    position: relative;
    box-shadow: 0 24px 60px -18px rgba(16, 24, 40, .22),
                0 2px 6px rgba(16, 24, 40, .05);
}
/* Ruang kosong di bawah kartu supaya notifikasi mengambang punya tempat
   mendarat tanpa menutupi teks catatan kaki kalkulator. */
.calc-wrap .calc { padding-bottom: 68px; }

.live-pop {
    position: absolute;
    left: -24px; bottom: 12px;
    z-index: 2;
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px 10px 11px;
    box-shadow: 0 12px 28px -10px rgba(16, 24, 40, .3);
    animation: float-y 4.5s ease-in-out infinite;
}
.live-pop .ok {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--success-bg);
    border: 1px solid var(--success-br);
    color: var(--success);
    display: grid; place-items: center;
    flex-shrink: 0;
}
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

/* ── Penanda seksi ────────────────────────────────────────────────────── */

.section-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: 10px;
}
.section-tag::before {
    content: '';
    display: inline-block;
    width: 16px; height: 1px;
    background: var(--brand-500);
    vertical-align: middle;
    margin-right: 8px;
}

/* ── Bar kepercayaan ──────────────────────────────────────────────────── */

.trust-item {
    position: relative;
    padding: 26px 20px;
    transition: background .16s;
}
.trust-item:hover { background: var(--brand-50); }
.trust-item .ikon {
    color: var(--brand-500);
    display: grid; place-items: center;
    margin-bottom: 9px;
}
.trust-item .angka { font-size: 25px; }

/* ── Kartu pemakaian & langkah ────────────────────────────────────────── */

.use-card {
    position: relative;
    overflow: hidden;
    transition: border-color .16s, transform .16s, box-shadow .16s;
}
/* Kilau tipis yang muncul saat kursor lewat. */
.use-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--brand-50), transparent 58%);
    opacity: 0;
    transition: opacity .18s;
    pointer-events: none;
}
.use-card:hover {
    border-color: var(--brand-100);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -16px rgba(16, 24, 40, .28);
}
.use-card:hover::before { opacity: 1; }
.use-card > * { position: relative; }

.use-icon {
    background: linear-gradient(150deg, var(--brand-500), #FF8A47);
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(238, 77, 45, .7);
}

/* Dibatasi ke kartu langkah di halaman utama — .step-num juga dipakai di
   tutorial dashboard dan halaman daftar yang latarnya gelap. */
.use-card .step-num {
    width: 28px; height: 28px;
    background: linear-gradient(150deg, var(--brand-500), #FF8A47);
    box-shadow: 0 5px 12px -5px rgba(238, 77, 45, .8);
}

/* ── Bingkai jendela untuk contoh kode ────────────────────────────────── */

.code-window {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 22px 48px -20px rgba(16, 24, 40, .5);
}
.code-window .bar {
    display: flex; align-items: center; gap: 8px;
    background: #22252C;
    border-bottom: 1px solid #2E323A;
    padding: 9px 14px;
}
.code-window .bar i {
    width: 10px; height: 10px; border-radius: 50%;
    background: #3A3F49;
    display: block;
}
.code-window .bar i:first-child  { background: #F0685E; }
.code-window .bar i:nth-child(2) { background: #F5BE4F; }
.code-window .bar i:nth-child(3) { background: #61C554; }
.code-window .bar span {
    margin-left: 6px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: #8B909B;
}
.code-window .code { border-radius: 0; padding: 16px 18px; }

/* ── Alur kode unik ───────────────────────────────────────────────────── */

.flow-box { transition: transform .16s, box-shadow .16s; }
.flow-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.flow-box.aksen { box-shadow: 0 12px 26px -14px rgba(238, 77, 45, .8); }

/* ── CTA penutup ──────────────────────────────────────────────────────── */

.cta-block {
    position: relative;
    overflow: hidden;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(238, 77, 45, .38), transparent 60%),
        radial-gradient(circle at 88% 100%, rgba(255, 164, 64, .2), transparent 55%);
}
.cta-block::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 76%);
    mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 76%);
    pointer-events: none;
}
.cta-block > * { position: relative; }
.cta-block .btn-secondary {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}
.cta-block .btn-secondary:hover { background: rgba(255, 255, 255, .18); }

/* ── Navigasi publik saat digulir ─────────────────────────────────────── */

.pubnav { transition: box-shadow .2s, background .2s; }
.pubnav.is-scrolled {
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 12px rgba(16, 24, 40, .07);
}

/* ── Animasi masuk saat elemen tergulir ke layar ──────────────────────── */

/* Kelas .reveal-on dipasang oleh JS di <body>; tanpa JS aturan di bawah
   tidak pernah aktif sehingga isi halaman tetap terlihat penuh. */
.reveal-on [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.22, .61, .36, 1),
                transform .6s cubic-bezier(.22, .61, .36, 1);
}
.reveal-on [data-reveal].tampil { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal-on [data-reveal] { opacity: 1; transform: none; transition: none; }
    .pulse-dot::after, .live-pop { animation: none; }
    html { scroll-behavior: auto; }
}

@media (max-width: 1024px) {
    .live-pop { left: auto; right: 14px; bottom: 12px; }
}

@media (max-width: 768px) {
    .hero { padding-top: 44px; }
    .hero::after { background-size: 40px 40px; }
    .live-pop { display: none; }
    .calc-wrap .calc { padding-bottom: 18px; }
    .trust-item { padding: 20px 14px; }
    .trust-item .angka { font-size: 21px; }
}
