/* ==========================================================================
   Mojob, toko ebook. Palet krem + tinta, aksen kuning, koral, zaitun.
   ========================================================================== */
:root {
    --bg: #f4f1e2;
    --bg-deep: #ece6cc;
    --surface: #fffdf6;
    --surface-2: #faf7ea;
    --ink: #1c1b15;
    --ink-2: #47453a;
    --muted: #7d7a66;
    --line: #e3ddc4;
    --line-strong: #cfc8aa;
    --yellow: #f5c211;
    --yellow-deep: #e0ae00;
    --yellow-soft: #fbe9a6;
    --coral: #e07a5f;
    --coral-soft: #f8dcd2;
    --olive: #7d9a35;
    --olive-deep: #5f7a22;
    --olive-soft: #e5ecce;
    --orange: #e8913a;
    --red: #c9472f;
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(40, 36, 10, .06), 0 2px 8px rgba(40, 36, 10, .05);
    --shadow: 0 2px 4px rgba(40, 36, 10, .05), 0 18px 40px -12px rgba(40, 36, 10, .18);
    --shadow-lg: 0 30px 70px -20px rgba(40, 36, 10, .35);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.035em; line-height: 1.05; margin: 0; font-weight: 600; }
p { margin: 0; }
.icon { flex-shrink: 0; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tombol ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 12px; border: 1.5px solid transparent;
    font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 24px -10px rgba(224, 174, 0, .8); }
.btn-primary:hover { background: #f8cb2b; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 16px 30px -12px rgba(224, 174, 0, .9); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-strong); background: #fff; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #33312a; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: #d46a4f; }
.btn-olive { background: var(--olive); color: #fff; }
.btn-olive:hover { background: var(--olive-deep); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; gap: 7px; }
.btn-lg { padding: 18px 30px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--yellow-soft); border: 1.5px solid #ecd27a;
    font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 14px; color: #5a4600;
}
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; background: var(--bg-deep); color: var(--ink-2); white-space: nowrap;
}
.badge-paid { background: var(--olive-soft); color: var(--olive-deep); }
.badge-pending { background: #fdecd6; color: #a35a12; }
.badge-expired, .badge-failed { background: #f4e4df; color: var(--red); }
.badge-yellow { background: var(--yellow-soft); color: #6b5300; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Header situs ---------- */
.site-frame { padding: 14px; }
.site-shell {
    background: var(--bg); border-radius: 28px; position: relative; overflow: hidden;
    border: 1px solid var(--line);
}
.site-header { position: relative; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(145deg, var(--yellow) 0%, #f0a925 100%); color: var(--ink);
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), 0 6px 14px -6px rgba(224,140,0,.7);
}
.nav { display: flex; gap: 34px; font-size: 15px; color: var(--ink-2); }
.nav a { position: relative; padding: 4px 0; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--coral); transition: right .25s; }
.nav a:hover::after { right: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 28px 0 90px; }
.hero::before { /* cahaya lembut di belakang buku */
    content: ''; position: absolute; right: -8%; top: -20%; width: 70%; height: 130%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
    pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; position: relative; }
.hero-copy { position: relative; z-index: 3; padding-top: 20px; }
.hero h1 { font-size: clamp(42px, 6vw, 74px); margin: 26px 0 22px; letter-spacing: -0.05em; font-weight: 500; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
    content: ''; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .22em; z-index: -1;
    background: var(--yellow); border-radius: 4px; transform: skewX(-8deg);
}
.hero-lead { font-size: 19px; color: var(--ink-2); max-width: 480px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.price-inline { display: flex; align-items: baseline; gap: 10px; }
.price-inline strong { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.03em; }
.price-inline s { color: var(--muted); }
.avatars { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.avatars span.stack { display: flex; }
.avatars span.stack i {
    width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -8px;
    display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff;
}
.avatars span.stack i:first-child { margin-left: 0; }

.hero-visual { position: relative; height: 600px; }
.dot-grid {
    position: absolute; width: 180px; height: 150px;
    background-image: radial-gradient(var(--line-strong) 1.6px, transparent 1.6px); background-size: 16px 16px;
    opacity: .9;
}
.connector { position: absolute; pointer-events: none; overflow: visible; }
.connector path { fill: none; stroke: var(--coral); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0.1 12; }

/* ---------- Buku 3D ---------- */
.book-stage { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1800px; }
.book-wrap { animation: bob 7s ease-in-out infinite; }
.book {
    --w: 300px; --h: 420px; --d: 46px;
    width: var(--w); height: var(--h); position: relative; transform-style: preserve-3d;
    transform: rotateY(-26deg) rotateX(8deg) rotateZ(-2deg); transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.book:hover { transform: rotateY(-14deg) rotateX(4deg) rotateZ(-1deg); }
.book-cover, .book-back, .book-spine, .book-pages { position: absolute; }
.book-cover {
    inset: 0; border-radius: 4px 12px 12px 4px; overflow: hidden; transform: translateZ(calc(var(--d) / 2));
    background: var(--cover, var(--coral)); color: #fff;
    box-shadow: inset 6px 0 10px -4px rgba(0,0,0,.35), inset -1px 0 0 rgba(255,255,255,.2);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.book-cover::after { /* kilap & lipatan punggung */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.18) 3%, rgba(0,0,0,.05) 5%, transparent 9%),
        linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 40%);
}
.book-back {
    inset: 0; border-radius: 4px 12px 12px 4px; background: color-mix(in srgb, var(--cover, var(--coral)) 70%, #000);
    transform: translateZ(calc(var(--d) / -2));
    box-shadow: 30px 40px 60px -10px rgba(50, 40, 10, .45);
}
.book-spine {
    top: 0; left: 0; width: var(--d); height: 100%; transform-origin: left center;
    transform: rotateY(-90deg) translateX(calc(var(--d) / -2));
    background: color-mix(in srgb, var(--cover, var(--coral)) 78%, #000);
    border-radius: 4px 0 0 4px;
}
.book-pages {
    top: 6px; right: 0; width: var(--d); height: calc(100% - 12px); transform-origin: right center;
    transform: rotateY(90deg) translateX(calc(var(--d) / 2)) translateZ(0);
    background: repeating-linear-gradient(90deg, #fbf8ee 0 2px, #e9e3cc 2px 3px);
    right: 2px;
}
.book-shadow {
    position: absolute; left: 50%; bottom: 40px; width: 360px; height: 46px; transform: translateX(-46%);
    background: radial-gradient(closest-side, rgba(60, 48, 10, .35), transparent); filter: blur(4px);
    animation: shadow 7s ease-in-out infinite;
}
.cover-art { position: absolute; inset: 0; padding: 34px 30px 30px 36px; display: flex; flex-direction: column; }
.cover-art .ca-label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.cover-art .ca-title { font-family: var(--font-display); font-size: 34px; line-height: 1; letter-spacing: -0.04em; font-weight: 700; margin-top: 18px; }
.cover-art .ca-sun { position: absolute; width: 190px; height: 190px; border-radius: 50%; background: var(--yellow); right: -50px; bottom: 70px; opacity: .95; }
.cover-art .ca-hill { position: absolute; left: -20%; right: -20%; bottom: -60px; height: 170px; border-radius: 50% 50% 0 0; background: rgba(28, 27, 21, .82); }
.cover-art .ca-hill.two { left: 30%; right: -40%; bottom: -80px; height: 150px; background: var(--olive); }
.cover-art .ca-foot { margin-top: auto; position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: end; font-size: 12px; color: #fff; }
.cover-art .ca-foot b { font-family: var(--font-display); font-size: 15px; letter-spacing: -0.02em; }

/* ---------- Kartu melayang ---------- */
.float-card {
    position: absolute; z-index: 5; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow);
    border: 1px solid rgba(227, 221, 196, .8);
}
.float-a { animation: drift 8s ease-in-out infinite; }
.float-b { animation: drift 9s ease-in-out -3s infinite; }
.float-c { animation: drift 10s ease-in-out -5s infinite; }
.alert-card { padding: 16px 18px; width: 236px; }
.alert-card .ac-head { display: flex; gap: 10px; align-items: flex-start; }
.alert-card .ac-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.alert-card h4 { font-family: var(--font); font-size: 14px; letter-spacing: -0.01em; font-weight: 700; line-height: 1.3; }
.alert-card p { font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.alert-card .btn { margin-top: 12px; padding: 7px 12px; font-size: 12.5px; border-radius: 7px; }

.plan-card { width: 330px; padding: 22px 22px 18px; }
.plan-card h3 { font-size: 22px; letter-spacing: -0.03em; }
.plan-progress { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); margin: 10px 0 8px; }
.bar { height: 9px; background: var(--bg-deep); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--olive), #97b14b); width: 0; transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.plan-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; margin: 16px 0 10px; }
.plan-stats div { padding: 10px 12px; font-size: 12px; color: var(--ink-2); }
.plan-stats div + div { border-left: 1px solid var(--line); }
.plan-stats b { display: block; white-space: nowrap; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.03em; margin-top: 2px; }
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.plan-list li:last-child { border-bottom: 0; }
.plan-list .tick { width: 18px; height: 18px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.plan-list .ring { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex-shrink: 0; }
.plan-list .ring.now { border-color: var(--orange); }
.plan-list li.new span.t { font-weight: 700; }
.plan-list .tag { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--orange); }
.plan-foot { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 12px; }
.plan-foot .tick { width: 18px; height: 18px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; }
.plan-foot b { color: var(--olive-deep); }

/* ---------- Section umum ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.section h2 { font-size: clamp(34px, 4.4vw, 52px); margin-top: 14px; font-weight: 500; letter-spacing: -0.045em; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--ink-2); }

/* Alur cara kerja */
.flow-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.flow {
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: 30px 26px; position: relative;
    box-shadow: var(--shadow-sm);
}
.flow-step { text-align: center; padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; position: relative; transition: background .4s, border-color .4s; }
.flow-step .fs-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg); color: var(--ink-2); margin-bottom: 8px; transition: background .4s, color .4s; }
.flow-step h4 { font-family: var(--font); font-size: 16px; letter-spacing: -0.01em; font-weight: 700; }
.flow-step p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.flow-arrow { display: flex; justify-content: center; color: var(--line-strong); padding: 4px 0; }
.flow-step.active { background: var(--olive-soft); border-color: #c9d6a4; }
.flow-step.active .fs-ico { background: var(--olive); color: #fff; }
.flow-points { display: grid; gap: 18px; }
.point { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.point .pi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.point h3 { font-family: var(--font); font-size: 17px; letter-spacing: -0.01em; font-weight: 700; }
.point p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }

/* Isi ebook */
.contents { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow-sm); }
.toc-item { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px dashed var(--line-strong); }
.toc-item:last-child { border-bottom: 0; }
.toc-num { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--muted); width: 34px; height: 34px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; flex-shrink: 0; }
.toc-item span.t { font-weight: 600; font-size: 16.5px; }
.toc-item .badge { margin-left: auto; }
.gets { display: grid; gap: 14px; align-content: start; }
.get { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.get .gi { width: 34px; height: 34px; border-radius: 50%; background: var(--olive-soft); color: var(--olive-deep); display: grid; place-items: center; flex-shrink: 0; }
.desc-card { padding: 24px; border-radius: 18px; background: var(--yellow-soft); border: 1px solid #ecd27a; color: #4b3d00; font-size: 15.5px; }

/* Selalu terbaru */
.update-band {
    background: var(--olive); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
    position: relative; overflow: hidden;
}
.update-band::after {
    content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
    border: 50px solid rgba(255,255,255,.07);
}
.update-band h2 { color: #fff; }
.update-band p.lead { margin-top: 14px; font-size: 18px; color: rgba(255,255,255,.88); }
.versions { background: rgba(0,0,0,.18); border-radius: 18px; padding: 8px; position: relative; z-index: 2; }
.version-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; }
.version-row + .version-row { border-top: 1px solid rgba(255,255,255,.1); }
.version-row.current { background: #fff; color: var(--ink); }
.version-row .vtag { font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.15); }
.version-row.current .vtag { background: var(--yellow); }
.version-row small { display: block; font-size: 12.5px; opacity: .75; }

/* Checkout */
.checkout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; background: var(--surface); border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.checkout-side { background: var(--bg-deep); padding: 44px; position: relative; overflow: hidden; }
.checkout-side .mini-stage { height: 300px; position: relative; perspective: 1400px; display: grid; place-items: center; margin: 10px 0 20px; }
.checkout-side .book { --w: 190px; --h: 266px; --d: 30px; }
.checkout-side .cover-art { padding: 22px 18px 18px 24px; }
.checkout-side .cover-art .ca-title { font-size: 22px; margin-top: 12px; }
.checkout-side .cover-art .ca-sun { width: 120px; height: 120px; right: -30px; bottom: 50px; }
.checkout-side .cover-art .ca-hill { height: 110px; bottom: -40px; }
.checkout-side .cover-art .ca-hill.two { height: 100px; bottom: -55px; }
.checkout-side .cover-art .ca-foot { font-size: 10px; }
.checkout-side .cover-art .ca-foot b { font-size: 12px; }
.price-big { font-family: var(--font-display); font-size: 52px; letter-spacing: -0.05em; font-weight: 600; line-height: 1; }
.price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.price-row s { color: var(--muted); font-size: 18px; }
.save-tag { background: var(--coral); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.side-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 15px; }
.side-list li { display: flex; gap: 10px; align-items: center; }
.side-list .icon { color: var(--olive-deep); }
.checkout-form { padding: 44px; }
.checkout-form h3 { font-size: 28px; letter-spacing: -0.035em; }
.checkout-form > p { color: var(--ink-2); margin-top: 6px; }

/* ---------- Form ---------- */
.field { margin-top: 20px; }
.field label.lbl, .lbl { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.input-wrap { position: relative; }
.input-wrap .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input {
    width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
    font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input-wrap .input { padding-left: 46px; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(245, 194, 17, .35); }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.error { font-size: 13.5px; color: var(--red); margin-top: 6px; font-weight: 500; }
.has-error .input { border-color: var(--red); }

.pay-group-title { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-grid.va { grid-template-columns: repeat(5, 1fr); }
.pay-option { position: relative; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option .po {
    display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 11px; border-radius: 12px; border: 1.5px solid var(--line);
    background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; height: 100%;
}
.pay-option .po b { font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pay-option .po small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.pay-option .po .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0; transition: .15s; }
.pay-option:hover .po { border-color: var(--line-strong); }
.pay-option input:checked + .po { border-color: var(--ink); background: #fffbea; box-shadow: 0 0 0 3px rgba(245,194,17,.35); }
.pay-option input:checked + .po .radio { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px #fffbea; }
.pay-option input:focus-visible + .po { outline: 2px solid var(--ink); outline-offset: 2px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Checkbox kustom */
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.check input { position: absolute; opacity: 0; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong); background: #fff; display: grid; place-items: center; color: transparent; transition: .15s; }
.check input:checked + .box { background: var(--olive); border-color: var(--olive); color: #fff; }
.check input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 2px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

.site-footer { padding: 40px 0 50px; border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

.mobile-buy {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: none;
    background: var(--ink); color: #fff; border-radius: 18px; padding: 10px 10px 10px 18px; align-items: center; justify-content: space-between; gap: 12px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,.45); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.mobile-buy.show { transform: none; }
.mobile-buy small { display: block; font-size: 12px; opacity: .7; }
.mobile-buy b { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.03em; }

/* ---------- Halaman sederhana (status order, rak, baca) ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; padding: 30px 0 80px; position: relative; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.narrow { max-width: 560px; margin: 0 auto; }
.status-card { padding: 40px 36px; text-align: center; position: relative; overflow: hidden; }
.status-ico { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; margin: 0 auto 20px; position: relative; }
.status-ico.ok { background: var(--olive); color: #fff; box-shadow: 0 16px 30px -12px rgba(95, 122, 34, .8); }
.status-ico.wait { background: var(--yellow); color: var(--ink); }
.status-ico.bad { background: var(--coral-soft); color: var(--red); }
.status-ico.wait::after { content: ''; position: absolute; inset: -8px; border-radius: 30px; border: 2px dashed var(--yellow-deep); animation: spin 12s linear infinite; }
.status-card h1 { font-size: 34px; letter-spacing: -0.04em; font-weight: 600; }
.status-card > p { color: var(--ink-2); margin-top: 10px; }
.summary { text-align: left; margin: 26px 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 15px; }
.summary div + div { border-top: 1px solid var(--line); }
.summary span { color: var(--muted); }
.summary b { text-align: right; }
.stack { display: grid; gap: 10px; }
.note { display: flex; gap: 12px; text-align: left; padding: 16px 18px; border-radius: 14px; font-size: 14.5px; background: var(--olive-soft); color: #3e5112; }
.note.yellow { background: var(--yellow-soft); color: #4b3d00; }
.note.coral { background: var(--coral-soft); color: #7a2c18; }
.note .icon { margin-top: 2px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 3.2s ease-in forwards; }

.flash { padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; font-size: 15px; }
.flash.ok { background: var(--olive-soft); color: #3e5112; }
.flash.info { background: var(--yellow-soft); color: #4b3d00; }

.login-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.login-art { background: var(--ink); position: relative; min-height: 460px; overflow: hidden; display: grid; place-items: center; perspective: 1400px; }
.login-art .book { --w: 200px; --h: 280px; --d: 32px; }
.login-art .dot-grid { background-image: radial-gradient(#3d3b31 1.6px, transparent 1.6px); }
.login-form { padding: 46px 40px; }
.login-form h1 { font-size: 34px; letter-spacing: -0.04em; font-weight: 600; }
.login-form > p { color: var(--ink-2); margin-top: 10px; }

.lib-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin: 10px 0 30px; }
.lib-head h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 500; letter-spacing: -0.045em; }
.lib-grid { display: grid; gap: 20px; }
.lib-item { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 26px; align-items: center; }
.lib-item .mini-stage { height: 250px; display: grid; place-items: center; perspective: 1200px; background: var(--bg-deep); border-radius: 16px; position: relative; overflow: hidden; }
.lib-item .book { --w: 140px; --h: 196px; --d: 22px; }
.lib-item h2 { font-size: 28px; letter-spacing: -0.035em; font-weight: 600; }
.lib-item .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.lib-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cover-sm .cover-art { padding: 16px 12px 12px 18px; }
.cover-sm .cover-art .ca-label { font-size: 7px; }
.cover-sm .cover-art .ca-title { font-size: 16px; margin-top: 8px; }
.cover-sm .cover-art .ca-sun { width: 90px; height: 90px; right: -24px; bottom: 36px; }
.cover-sm .cover-art .ca-hill { height: 80px; bottom: -30px; }
.cover-sm .cover-art .ca-hill.two { height: 70px; bottom: -40px; }
.cover-sm .cover-art .ca-foot { display: none; }

/* Pembaca PDF */
.reader-bar { position: sticky; top: 0; z-index: 30; background: rgba(244, 241, 226, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.reader-bar .container { display: flex; align-items: center; gap: 14px; height: 68px; }
.reader-title { min-width: 0; flex: 1; }
.reader-title b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15.5px; }
.reader-title small { color: var(--muted); font-size: 12.5px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { border-color: var(--line-strong); }
.reader-info { margin: 22px auto 0; max-width: 860px; }
.pdf-pages { max-width: 860px; margin: 18px auto 0; display: grid; gap: 16px; }
.pdf-page { background: #fff; border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.pdf-page canvas { display: block; width: 100%; height: auto; }
.pdf-page .pn { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.85); padding: 2px 8px; border-radius: 6px; }
.pdf-loading { text-align: center; padding: 60px 0; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, #eee9d4 25%, #f6f2e2 50%, #eee9d4 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
.zoom-ctrl { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.zoom-ctrl button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; display: grid; place-items: center; }
.zoom-ctrl button:hover { background: var(--bg); }
.zoom-ctrl span { font-size: 13px; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Animasi ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes shadow { 0%, 100% { opacity: 1; transform: translateX(-46%) scale(1); } 50% { opacity: .7; transform: translateX(-46%) scale(.9); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fall { to { transform: translateY(560px) rotate(540deg); opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.pop { animation: pop .7s cubic-bezier(.2,.8,.2,1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; } .d5 { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { text-align: left; }
    .hero-visual { height: 560px; max-width: 640px; width: 100%; margin: 0 auto; }
    .flow-wrap, .contents, .update-band, .checkout { grid-template-columns: 1fr; }
    .update-band { padding: 40px 28px; }
}
@media (max-width: 760px) {
    .site-frame { padding: 0; }
    .site-shell { border-radius: 0; border: 0; }
    .nav { display: none; }
    .site-header .container { height: 70px; }
    .hero { padding: 6px 0 60px; }
    .hero h1 { margin: 20px 0 16px; }
    .hero-lead { font-size: 17px; }
    .hero-cta .btn { flex: 1; }
    .hero-visual { height: 500px; }
    .book { --w: 220px; --h: 308px; --d: 34px; }
    .cover-art { padding: 24px 20px 20px 26px; }
    .cover-art .ca-title { font-size: 25px; }
    .cover-art .ca-sun { width: 140px; height: 140px; }
    .plan-card { width: 280px; padding: 16px; }
    .plan-card .plan-list li:nth-child(n+5) { display: none; }
    .alert-card { width: 200px; padding: 12px 14px; }
    .hide-sm { display: none !important; }
    .section { padding: 70px 0; }
    .section-head { margin-bottom: 36px; }
    .checkout-side, .checkout-form { padding: 28px 22px; }
    .pay-grid { grid-template-columns: 1fr 1fr; }
    .pay-grid.va { grid-template-columns: repeat(3, 1fr); }
    .toc { padding: 18px 20px; }
    .mobile-buy { display: flex; }
    .status-card { padding: 30px 20px; }
    .login-card { grid-template-columns: 1fr; }
    .login-art { min-height: 260px; }
    .login-art .book { --w: 130px; --h: 182px; --d: 22px; }
    .login-form { padding: 30px 22px; }
    .lib-item { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
    .lib-item .mini-stage { height: 220px; }
    .reader-bar .btn span { display: none; }
}

/* Posisi elemen hero */
.hero-visual { height: 640px; }
.hero-book { margin: -110px 0 0 190px; }
.hero-visual .book { --w: 320px; --h: 448px; --d: 48px; }
.hero-visual .book-shadow { left: 62%; bottom: 150px; }
#plan-card { left: 30px; bottom: -10px; }
@media (max-width: 1024px) {
    .hero-book { margin: -170px 0 0 120px; }
}
@media (max-width: 760px) {
    .hero-visual { height: 520px; }
    .hero-book { margin: -150px 0 0 60px; }
    .hero-visual .plan-list, .hero-visual .plan-foot, .hero-visual .alert-card .btn { display: none; }
    .hero-visual .alert-card { top: 6px !important; left: -4px !important; width: 180px; }
    .plan-stats b { font-size: 19px; }
    .hero-visual .book { --w: 220px; --h: 308px; --d: 34px; }
    .hero-visual .book-shadow { left: 56%; bottom: 150px; width: 260px; }
    #plan-card { left: 50%; transform: translateX(-50%); bottom: 0; animation: none; }
}

/* ---------- Beranda: tumpukan buku & katalog ---------- */
.shelf-books { position: relative; width: 320px; height: 448px; }
.shelf-book { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.shelf-book.shelf-0 { z-index: 3; animation: bob 7s ease-in-out infinite; }
.shelf-book.shelf-1 { z-index: 2; transform: translate(-150px, 40px) scale(.78); filter: saturate(.9); }
.shelf-book.shelf-2 { z-index: 1; transform: translate(140px, 70px) scale(.7); filter: saturate(.85); }
.shelf-books:hover .shelf-1 { transform: translate(-175px, 30px) scale(.8); }
.shelf-books:hover .shelf-2 { transform: translate(165px, 60px) scale(.72); }

.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.cat-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-stage {
    height: 270px; display: grid; place-items: center; perspective: 1200px; position: relative; overflow: hidden;
    background: color-mix(in srgb, var(--tint, var(--coral)) 16%, var(--bg-deep));
}
.cat-stage .book { --w: 150px; --h: 210px; --d: 22px; }
.cat-card:hover .cat-stage .book { transform: rotateY(-12deg) rotateX(4deg); }
.cat-save { position: absolute; right: 14px; top: 14px; }
.cat-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat-body h3 { font-size: 22px; letter-spacing: -0.03em; line-height: 1.15; }
.cat-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cat-body p { color: var(--ink-2); font-size: 15px; }
.cat-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-strong); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cat-price b { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.03em; }
.cat-price s { color: var(--muted); font-size: 13.5px; margin-left: 6px; }
.empty-shelf { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-shelf h3 { color: var(--ink); font-size: 22px; margin: 12px 0 6px; }

@media (max-width: 760px) {
    .shelf-books { width: 220px; height: 308px; }
    .shelf-book.shelf-1 { transform: translate(-90px, 30px) scale(.74); }
    .shelf-book.shelf-2 { transform: translate(80px, 46px) scale(.68); }
    .catalog { grid-template-columns: 1fr; }
}

/* Kartu rak ringkas di hero beranda, supaya sampul ebook terlihat */
.plan-compact { width: 290px; }
.plan-compact .plan-list, .plan-compact .plan-foot { display: none; }
.plan-compact .plan-stats { margin-bottom: 0; }
#plan-card.plan-compact { left: -30px; bottom: 40px; }
@media (max-width: 760px) { #plan-card.plan-compact { left: 50%; bottom: 0; } }

/* Filter kategori koleksi */
.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: -24px 0 26px; }
.cat-filter button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; cursor: pointer; transition: .15s; }
.cat-filter button:hover { border-color: var(--line-strong); }
.cat-filter button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-filter button i { font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 99px; background: var(--bg-deep); color: var(--ink-2); }
.cat-filter button.active i { background: var(--yellow); color: var(--ink); }
.cat-card[hidden] { display: none; }
.cat-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
@media (max-width: 760px) { .cat-filter { flex-wrap: nowrap; overflow-x: auto; margin: -10px -20px 20px; padding: 0 20px 4px; } .cat-filter button { flex-shrink: 0; } }

/* Halaman QRIS di pesanan */
.qr-box { margin: 24px auto 18px; max-width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 16px; box-shadow: var(--shadow); }
.qr-amount { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 14px; border-bottom: 1px dashed var(--line-strong); }
.qr-amount span { color: var(--muted); font-size: 14px; }
.qr-amount b { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.03em; }
.qr-frame { position: relative; margin: 16px auto 12px; width: 260px; max-width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-frame::before, .qr-frame::after { content: ''; position: absolute; width: 34px; height: 34px; border: 4px solid var(--yellow); pointer-events: none; }
.qr-frame::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.qr-frame::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.qr-scan-line { position: absolute; left: 8%; right: 8%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--olive), transparent); box-shadow: 0 0 12px rgba(125, 154, 53, .7); animation: scan 2.6s ease-in-out infinite; }
.qr-timer { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.qr-timer b { font-variant-numeric: tabular-nums; }
.qr-live { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--olive-soft); color: #3e5112; font-size: 13.5px; font-weight: 600; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--olive); position: relative; }
.pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--olive); animation: ping 1.6s ease-out infinite; }
.qr-steps { text-align: left; margin: 0 0 8px; padding: 0 0 0 22px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
@keyframes scan { 0%, 100% { top: 10%; } 50% { top: 88%; } }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* Ebook yang sudah dimiliki pembeli */
.owned-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--olive); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.owned-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--olive-deep); }
.cat-card.is-owned { border-color: #c9d6a4; }
.owned-card { padding: 34px; display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.owned-card .mini-stage { height: 260px; display: grid; place-items: center; perspective: 1200px; border-radius: 18px; background: var(--olive-soft); }
.owned-card .book { --w: 150px; --h: 210px; --d: 22px; }
.owned-card h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; margin: 12px 0 10px; }
.owned-card p { color: var(--ink-2); }
@media (max-width: 760px) { .owned-card { grid-template-columns: 1fr; padding: 22px; gap: 20px; } .owned-card .mini-stage { height: 220px; } }

/* Intip isi ebook */
.peek-row { display: flex; gap: 22px; overflow-x: auto; padding: 18px 6px 28px; margin: -18px -6px 0; scroll-snap-type: x mandatory; }
.peek-page {
    flex: 0 0 210px; aspect-ratio: 210 / 297; position: relative; border: 0; padding: 0; cursor: zoom-in;
    background: #fff; border-radius: 6px; overflow: hidden; scroll-snap-align: start;
    box-shadow: 0 1px 2px rgba(40, 36, 10, .08), 0 14px 30px -14px rgba(40, 36, 10, .35);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.peek-page:nth-child(odd) { transform: rotate(-1.2deg); }
.peek-page:nth-child(even) { transform: rotate(1deg) translateY(8px); }
.peek-page:hover { transform: translateY(-6px) rotate(0); box-shadow: 0 2px 4px rgba(40, 36, 10, .08), 0 24px 40px -14px rgba(40, 36, 10, .45); }
.peek-page img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.peek-page::after { /* lipatan halaman tipis di sisi kiri */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,.08), transparent 6%);
}
.peek-label { position: absolute; left: 10px; bottom: 10px; z-index: 1; background: rgba(28, 27, 21, .78); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.peek-zoom { position: absolute; right: 10px; top: 10px; z-index: 1; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--ink); opacity: 0; transition: opacity .2s; box-shadow: var(--shadow-sm); }
.peek-page:hover .peek-zoom { opacity: 1; }
.peek-more {
    cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px;
    background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--surface-2) 12px 24px); border: 1.5px dashed var(--line-strong);
}
.peek-more b { font-size: 17px; letter-spacing: -0.02em; }
.peek-more small { color: var(--muted); font-size: 13px; }
.peek-more .btn { margin-top: 6px; }
.peek-more-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--yellow-soft); color: #6b5300; }

.peek-viewer { position: fixed; inset: 0; z-index: 100; background: rgba(20, 19, 14, .92); display: flex; align-items: center; justify-content: center; padding: 56px 72px 48px; animation: pop .25s ease both; }
.peek-viewer[hidden] { display: none; }
.peek-stage { height: 100%; width: 100%; display: grid; place-items: center; }
.peek-slide { margin: 0; height: 100%; display: grid; place-items: center; }
.peek-slide[hidden] { display: none; }
.peek-slide img { max-height: 100%; max-width: min(100%, 760px); border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; }
.peek-end { background: var(--surface); border-radius: 22px; padding: 40px 34px; max-width: 420px; height: auto; text-align: center; gap: 10px; }
.peek-end h3 { font-size: 26px; letter-spacing: -0.035em; }
.peek-end p { color: var(--ink-2); margin-bottom: 10px; }
.peek-end .peek-more-ico { margin: 0 auto 6px; }
.peek-nav, .peek-close { position: absolute; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; transition: background .2s; }
.peek-nav:hover, .peek-close:hover { background: rgba(255,255,255,.24); }
.peek-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; }
.peek-nav.prev { left: 14px; }
.peek-nav.next { right: 14px; }
.peek-nav:disabled { opacity: .25; cursor: default; }
.peek-close { top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 12px; }
.peek-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 14px; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
    .peek-row { gap: 14px; margin: -18px -20px 0; padding: 18px 20px 26px; }
    .peek-page { flex-basis: 160px; }
    .peek-zoom { opacity: 1; }
    .peek-viewer { padding: 56px 10px 50px; }
    .peek-nav { top: auto; bottom: 6px; transform: none; width: 44px; height: 44px; }
    .peek-nav.prev { left: 16px; }
    .peek-nav.next { right: 16px; }
    .peek-count { bottom: 18px; }
    .peek-end { padding: 30px 22px; margin: 0 10px; }
}

/* Logo gambar */
.brand .logo { display: block; }
.admin-tag { margin-left: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(245, 194, 17, .16); color: var(--yellow); font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Logo metode bayar dari Tripay */
.pay-logo { height: 20px; width: auto; max-width: 78px; object-fit: contain; }
.pay-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)) !important; }
.pay-option .po b { min-height: 22px; }

/* Nomor VA / kode bayar di halaman pesanan */
.fee-note { font-size: 12.5px; color: var(--muted); text-align: right; margin-top: 6px; }
.paycode { margin: 18px 0 12px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-strong); display: grid; gap: 8px; justify-items: center; }
.paycode small { color: var(--muted); font-size: 13px; }
.paycode b { font-family: ui-monospace, Consolas, monospace; font-size: clamp(18px, 5.2vw, 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .4em; line-height: 1.25; }
.paycode b span { white-space: nowrap; }
.pay-steps { text-align: left; margin: 6px 0 4px; display: grid; gap: 8px; }
.pay-steps details { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 14px; }
.pay-steps summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-weight: 600; font-size: 14.5px; }
.pay-steps summary::-webkit-details-marker { display: none; }
.pay-steps details[open] summary .icon { transform: rotate(180deg); }
.pay-steps ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }

/* Halaman informasi: Tentang, S&K, Privasi, Kontak */
.legal-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; max-width: 1060px; }
.legal-nav { position: sticky; top: 24px; display: grid; gap: 4px; }
.legal-nav .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.legal-nav a { padding: 10px 14px; border-radius: 11px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background .15s; }
.legal-nav a:hover { background: var(--surface); }
.legal-nav a.active { background: var(--ink); color: #fff; }
.legal { padding: 42px 46px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.045em; font-weight: 600; margin-top: 10px; }
.legal-updated { color: var(--muted); font-size: 14px; margin-top: 8px; }
.legal .lead { font-size: 17.5px; color: var(--ink-2); margin-top: 18px; }
.legal h2 { font-size: 21px; letter-spacing: -0.025em; margin: 32px 0 10px; }
.legal p { color: var(--ink-2); margin-top: 10px; }
.legal ul, .legal ol { color: var(--ink-2); padding-left: 22px; display: grid; gap: 8px; margin: 10px 0 0; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal b { color: var(--ink); }
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.contact-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); text-decoration: none !important; }
a.contact-item:hover { border-color: var(--line-strong); background: #fff; }
.contact-item .ci-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.contact-item small { display: block; font-size: 12.5px; color: var(--muted); }
.contact-item b { font-size: 15px; word-break: break-word; }
.consent-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.5; }
.consent-note a { color: var(--ink-2); text-decoration: underline; }

/* Footer bertautan */
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; align-items: start; justify-content: initial; }
.footer-brand p { margin-top: 12px; max-width: 300px; font-size: 14px; color: var(--muted); }
.footer-links { display: grid; gap: 8px; font-size: 14px; }
.footer-links b { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
    .legal-wrap { grid-template-columns: 1fr; }
    .legal-nav { position: static; display: flex; gap: 6px; overflow-x: auto; }
    .legal-nav .lbl { display: none; }
    .legal-nav a { flex-shrink: 0; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
    .legal { padding: 26px 20px; }
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
.qr-timer { flex-wrap: wrap; text-align: center; }
.qr-timer b { white-space: nowrap; }
@media (max-width: 420px) {
    .qr-box { padding: 14px 12px 12px; }
    .paycode { padding: 12px 8px; }
    .qr-live { font-size: 12.5px; }
}

/* Tombol Baca & Download di rak ebook: selalu satu baris */
.lib-actions-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 420px; }
.lib-actions-pair .btn { padding: 12px 8px; gap: 7px; font-size: 15px; min-width: 0; }
.lib-item > * { min-width: 0; }
@media (max-width: 370px) { .hide-xs { display: none; } }
