/* ==================================================================
   Pustaka Harianto — tema toko e-book
   Terang, editorial: putih / batu / amber. Judul serif (Lora).
   ================================================================== */

:root {
    --ink: #0f172a;
    --ink-soft: #1e293b;
    --slate: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-soft: #eef2f7;
    --bg: #f8fafc;
    --white: #ffffff;
    --amber: #d97706;
    --amber-dark: #b45309;
    --amber-soft: #fef3c7;
    --amber-ink: #92400e;
    --green: #15803d;
    --green-soft: #dcfce7;
    --red: #b91c1c;
    --red-soft: #fee2e2;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);
    --shadow-lg: 0 26px 60px -24px rgba(15, 23, 42, .35);
    --serif: 'Lora', Georgia, 'Times New Roman', serif;
    --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--slate);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
svg.ico { width: 20px; height: 20px; flex: 0 0 auto; }
svg.ico-sm { width: 16px; height: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--amber-ink);
}
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 12px 0 12px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
.section-head--left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border: 1px solid transparent; border-radius: 14px;
    font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .01em;
    cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
    text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 11px 18px; font-size: 13px; border-radius: 12px; }
.btn-lg { padding: 17px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-amber { background: var(--amber); color: #fff; box-shadow: 0 10px 22px -12px rgba(217, 119, 6, .9); }
.btn-amber:hover { background: var(--amber-dark); box-shadow: 0 14px 26px -12px rgba(180, 83, 9, .85); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 12px 26px -14px rgba(15, 23, 42, .9); }
.btn-dark:hover { background: #020617; }
.btn-ghost { background: var(--white); color: var(--slate); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); border-color: #cbd5e1; }
.btn-wa { background: #16a34a; color: #fff; box-shadow: 0 10px 22px -12px rgba(22, 163, 74, .8); }
.btn-wa:hover { background: #15803d; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Promo bar ---------- */
.promo-bar { background: var(--ink); color: #e2e8f0; font-size: 12px; letter-spacing: .02em; }
.promo-inner { max-width: var(--max); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.promo-dot { width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, .18); flex: 0 0 auto; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--line);
}
.nav-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
/* Logo merek: lambang (buku + mata pena + busur emas), tanpa kotak latar
   supaya warna biru & emasnya tetap terlihat. */
.brand-logo {
    display: block; width: 52px; flex: 0 0 auto;
    filter: drop-shadow(0 4px 8px rgba(15, 23, 42, .10));
}
.brand-logo img { width: 100%; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 17px; color: var(--ink); font-weight: 600; }
.brand-text small { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--slate); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); border-bottom-color: var(--amber); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }

/* ---------- Alerts / flash ---------- */
.flash-wrap { max-width: var(--max); margin: 18px auto 0; padding: 0 24px; }
.alert { border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14px; border: 1px solid; }
.alert--ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.alert--err { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.alert--warn { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.alert--info { background: #f8fafc; border-color: var(--line); color: var(--slate); }
.alert + .alert { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1000px 420px at 82% -8%, rgba(251, 191, 36, .16), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
    padding: 64px 0 76px;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    background: var(--amber-soft); border: 1px solid #fcd34d; color: var(--amber-ink);
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); margin: 22px 0 18px; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--amber-dark); }
.hero-lead { font-size: 17.5px; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-size: 12.5px; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--green); }

/* Kartu buku unggulan */
.hero-book { position: relative; max-width: 380px; margin-left: auto; width: 100%; }
.hero-book-card {
    background: var(--white); border: 1px solid var(--line); border-radius: 22px;
    padding: 18px; box-shadow: var(--shadow-lg);
}
.hero-book-cover { position: relative; border-radius: 14px; overflow: hidden; background: var(--line-soft); aspect-ratio: 3 / 4; }
.hero-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-flag {
    position: absolute; left: 12px; top: 12px; z-index: 2;
    background: rgba(15, 23, 42, .86); color: #fff; font-size: 10.5px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px;
    backdrop-filter: blur(6px);
}
.hero-book-body { padding: 16px 4px 4px; }
.hero-book-body h3 { font-size: 18px; margin: 0 0 4px; }
.hero-book-body .meta { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.hero-book-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--sans); font-weight: 800; color: var(--ink); font-size: 22px; letter-spacing: -.02em; }
.price small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-old { font-size: 13px; color: #94a3b8; text-decoration: line-through; margin-right: 6px; }

/* ---------- Grid kartu nilai ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.value-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; background: #eff6ff; color: #1d4ed8; }
.value-card:nth-child(2) .value-icon { background: var(--amber-soft); color: var(--amber-dark); }
.value-card:nth-child(3) .value-icon { background: #ecfdf5; color: var(--green); }
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Katalog ---------- */
.katalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; }
.book-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.book-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--line-soft); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.book-card:hover .book-cover img { transform: scale(1.03); }
.book-tag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 10px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 7px;
    border: 1px solid rgba(15, 23, 42, .08);
}
.book-tag--gold { background: var(--amber); color: #fff; border-color: transparent; }
.book-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.book-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: 6px; }
.book-title { font-size: 17px; margin: 0 0 8px; }
.book-desc { font-size: 13px; color: var(--muted); margin: 0 0 16px; flex: 1; }
.book-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.book-price { font-weight: 800; color: var(--ink); font-size: 17px; }
.book-pages { font-size: 11.5px; color: var(--muted); }
.book-link { font-size: 12.5px; font-weight: 700; color: var(--amber-dark); display: inline-flex; align-items: center; gap: 6px; }
.book-card:hover .book-link svg { transform: translateX(2px); }
.book-link svg { width: 14px; height: 14px; transition: transform .18s ease; }

/* ---------- Penulis ---------- */
.author-block {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #3f2a14 100%);
    color: #e2e8f0; border-radius: 26px; padding: 48px;
    display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center;
    box-shadow: var(--shadow-lg);
}
.author-photo {
    width: 200px; height: 200px; border-radius: 22px; overflow: hidden;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    display: grid; place-items: center; color: #fbbf24;
}
.author-photo { background: #ffffff; padding: 14px; }
.author-photo img { width: 100%; height: 100%; object-fit: contain; }
/* Foto unggahan (bukan lambang) dipotong penuh supaya tidak berbingkai putih. */
.author-photo--foto { padding: 0; background: #0f172a; }
.author-photo--foto img { object-fit: cover; }
.author-block h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 10px 0 12px; }
.author-block p { color: #cbd5e1; font-size: 15px; margin: 0; }
.author-block .eyebrow { color: #fbbf24; }

/* ---------- Langkah beli ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step-num {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Kutipan ---------- */
.pull-quote { max-width: 800px; margin: 0 auto; text-align: center; }
.pull-quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.8vw, 28px); color: var(--ink); line-height: 1.5; }
.pull-quote cite { display: block; margin-top: 18px; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--amber); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Detail buku ---------- */
.buku-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 48px 0 56px; }
.buku-grid { display: grid; grid-template-columns: 340px 1fr; gap: 52px; align-items: start; }
.buku-grid > .buku-cover { align-self: stretch; }
.buku-cover { position: sticky; top: 100px; }
.buku-cover-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 3 / 4; background: var(--line-soft); }
.buku-cover-img img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--ink); }
.buku-grid h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 10px; }
.buku-sub { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.buku-price-row { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 8px; }
.buku-price { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.buku-price-note { font-size: 12.5px; color: var(--muted); }
.buku-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.spec-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.spec-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; color: var(--slate); }
.spec-chip svg { width: 14px; height: 14px; color: var(--amber-dark); }

.prose { font-size: 15.5px; line-height: 1.8; color: var(--slate); }
.prose p { margin: 0 0 1.1em; }
.prose p:first-child { font-size: 17px; color: var(--ink-soft); }

/* ---------- Form pesanan ---------- */
.pesan-panel { background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto; }
.pesan-head { background: var(--ink); color: #fff; padding: 30px 34px; }
.pesan-head h2 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.pesan-head p { color: #94a3b8; font-size: 13.5px; margin: 0; }
.pesan-body { padding: 32px 34px 36px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: .02em; margin-bottom: 7px; }
.field .hint { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 13px 15px; border: 1px solid #cbd5e1; border-radius: 12px;
    font-family: var(--sans); font-size: 14px; color: var(--ink); background: var(--white);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217, 119, 6, .14); }
.field textarea { min-height: 110px; resize: vertical; }
/* Perangkap bot: tetap ada di DOM, tidak terlihat, tidak menggeser tata letak. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.form-note a { color: var(--amber-dark); font-weight: 600; }

/* ---------- Ringkasan pesanan ---------- */
.order-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; max-width: 760px; margin: 0 auto; }
.order-top { padding: 28px 32px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--bg); }
.order-code { font-family: var(--sans); font-size: 20px; font-weight: 800; letter-spacing: .06em; color: var(--ink); margin: 0; line-height: 1.2; }
.order-code small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pill--warn { background: var(--amber-soft); color: var(--amber-ink); }
.status-pill--ok { background: var(--green-soft); color: #14532d; }
.status-pill--muted { background: #f1f5f9; color: var(--muted); }
.order-body { padding: 30px 32px 34px; }
.order-item { display: flex; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); margin-bottom: 22px; }
.order-item img { width: 74px; border-radius: 8px; }
.order-item h3 { font-size: 17px; margin-bottom: 4px; }
.order-item p { font-size: 12.5px; color: var(--muted); margin: 0; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 0; font-size: 14px; }
.order-total strong { font-size: 22px; color: var(--ink); font-weight: 800; }
.bayar-box { background: var(--bg); border: 1px dashed #cbd5e1; border-radius: 16px; padding: 22px; margin: 22px 0; }
.bayar-box h4 { font-size: 15px; margin-bottom: 14px; font-family: var(--sans); font-weight: 800; }
.bayar-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.bayar-row:last-child { border-bottom: 0; }
.bayar-row span { color: var(--muted); }
.bayar-row strong { color: var(--ink); font-weight: 700; letter-spacing: .01em; }
.qris-box { text-align: center; margin-top: 16px; }
.qris-box img { max-width: 240px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 8px; margin: 0 auto 8px; }
.qris-box p { font-size: 11.5px; color: var(--muted); margin: 0; }
.download-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 16px; padding: 22px; margin: 22px 0; }
.download-box h4 { font-family: var(--sans); font-size: 15px; font-weight: 800; color: #14532d; margin-bottom: 8px; }
.download-box p { font-size: 13px; color: #166534; margin-bottom: 16px; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 24px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-title { font-size: clamp(22px, 3vw, 28px); margin: 0 0 10px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 62px 0 0; margin-top: 0; }
.footer-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px 44px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.brand--light .brand-text strong { color: #fff; }
.brand--light .brand-logo {
    background: #ffffff; padding: 6px 7px; border-radius: 11px; width: 66px;
    box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .8);
}
.footer-note { font-size: 13.5px; color: #94a3b8; margin: 18px 0; max-width: 340px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #e2e8f0; border: 1px solid rgba(255, 255, 255, .08); transition: background .15s; }
.footer-social a:hover { background: rgba(255, 255, 255, .14); }
.footer-social svg { width: 17px; height: 17px; }
.footer-title { color: #fff; font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-list { display: grid; gap: 11px; }
.footer-list a { font-size: 13.5px; color: #94a3b8; transition: color .15s; }
.footer-list a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding: 22px 24px; max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; text-align: center; font-size: 12px; color: #64748b; }
.footer-bottom p { margin: 0; }

/* ---------- Responsif ---------- */
@media (max-width: 1000px) {
    .hero-grid, .buku-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-book { margin: 0 auto; max-width: 340px; }
    .buku-cover { position: static; max-width: 280px; margin: 0 auto; }
    .author-block { grid-template-columns: 1fr; padding: 36px; text-align: center; justify-items: center; }
    .author-photo { margin: 0 auto; }
    .cards-3 { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .footer-wrap { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 780px) {
    .nav-wrap { height: 66px; gap: 12px; }
    .nav-links {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: var(--white); border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 16px;
        box-shadow: 0 18px 30px -22px rgba(15, 23, 42, .5);
    }
    .nav-links.is-open { display: flex; }
    .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
    .nav-toggle { display: block; margin-left: auto; }
    .nav-actions .btn span { display: none; }
    .nav-actions .btn { padding: 11px 13px; }
    .promo-inner { font-size: 11px; }
    .section { padding: 60px 0; }
    .cards-3, .steps, .form-row { grid-template-columns: 1fr; }
    .katalog-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
    .book-body { padding: 14px; }
    .book-title { font-size: 15px; }
    .book-desc { display: none; }
    .footer-wrap { grid-template-columns: 1fr; }
    .hero { padding: 42px 0 56px; }
    .pesan-head, .pesan-body, .order-top, .order-body { padding-left: 22px; padding-right: 22px; }
    .author-block { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ==================================================================
   Layanan akademik
   ================================================================== */

/* ---------- Hero varian layanan ---------- */
.hero--layanan {
    background:
        radial-gradient(900px 400px at 12% -10%, rgba(217, 119, 6, .14), transparent 62%),
        radial-gradient(800px 380px at 92% 0%, rgba(30, 41, 59, .08), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero-side {
    background: var(--white); border: 1px solid var(--line); border-radius: 22px;
    padding: 26px; box-shadow: var(--shadow-lg);
}
.hero-side-title {
    display: flex; align-items: center; gap: 9px;
    font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--amber-ink); margin-bottom: 18px;
}
.hero-side-title svg { width: 15px; height: 15px; }
.hero-side-list { display: grid; gap: 4px; }
.hero-side-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 10px; border-radius: 12px; transition: background .15s;
}
.hero-side-item:hover { background: var(--bg); }
.hero-side-ico {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: var(--amber-soft); color: var(--amber-dark); flex: 0 0 auto;
}
.hero-side-ico svg { width: 17px; height: 17px; }
.hero-side-item strong { display: block; font-size: 13.5px; color: var(--ink); font-weight: 700; line-height: 1.3; }
.hero-side-item span { font-size: 11.5px; color: var(--muted); }
.hero-side-item .chev { margin-left: auto; color: #cbd5e1; }
.hero-side-item:hover .chev { color: var(--amber); }
.hero-side-foot {
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft);
    font-size: 12px; color: var(--muted); text-align: center;
}

/* ---------- Kartu layanan ---------- */
.layanan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.layanan-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.layanan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.layanan-card--unggulan { border-color: #fcd34d; background: linear-gradient(180deg, #fffdf6 0%, #ffffff 42%); }
.layanan-ico {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    background: #f1f5f9; color: var(--ink-soft); margin-bottom: 16px;
}
.layanan-card--unggulan .layanan-ico { background: var(--amber-soft); color: var(--amber-dark); }
.layanan-ico svg { width: 21px; height: 21px; }
.layanan-kicker {
    font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
    color: var(--amber-dark); margin-bottom: 7px;
}
.layanan-card h3 { font-size: 18.5px; margin: 0 0 9px; }
.layanan-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; flex: 1; }
.layanan-meta {
    display: flex; flex-wrap: wrap; gap: 7px; padding-top: 14px;
    border-top: 1px solid var(--line-soft); margin-bottom: 14px;
}
.layanan-chip {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; color: var(--slate); background: var(--bg);
    border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
}
.layanan-chip svg { width: 12px; height: 12px; color: var(--amber-dark); }
.layanan-link {
    font-size: 12.5px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 6px;
}
.layanan-link svg { width: 14px; height: 14px; color: var(--amber); transition: transform .18s ease; }
.layanan-card:hover .layanan-link svg { transform: translateX(3px); }

/* ---------- Alur kerja ---------- */
.proses {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.proses-item { padding: 26px 22px; border-right: 1px solid var(--line-soft); position: relative; }
.proses-item:last-child { border-right: 0; }
.proses-num {
    font-family: var(--serif); font-size: 26px; font-weight: 600; color: #cbd5e1;
    line-height: 1; margin-bottom: 12px;
}
.proses-item h3 { font-family: var(--sans); font-size: 14px; font-weight: 800; margin: 0 0 7px; }
.proses-item p { font-size: 12.5px; color: var(--muted); margin: 0; }
.proses-note {
    margin-top: 18px; font-size: 12.5px; color: var(--muted); text-align: center;
}

/* ---------- Halaman layanan ---------- */
.layanan-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 44px 0 60px; }
.layanan-main { min-width: 0; }
.layanan-grid-2 { display: grid; grid-template-columns: 1fr 340px; gap: 52px; align-items: start; }
/* Kolom samping dibuat setinggi isi supaya position: sticky benar-benar bisa menempel. */
.layanan-grid-2 > aside { align-self: stretch; }
.layanan-hero h1 { font-size: clamp(28px, 3.6vw, 38px); margin: 14px 0 14px; }
.layanan-hero .lead { font-size: 16.5px; color: var(--muted); }
.lingkup-list { display: grid; gap: 12px; margin: 0; padding: 0; }
.lingkup-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--slate); }
.lingkup-list svg { width: 17px; height: 17px; color: var(--green); flex: 0 0 auto; margin-top: 3px; }
.side-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); position: sticky; top: 100px;
}
.side-card h3 { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.side-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.side-row:last-of-type { border-bottom: 0; }
.side-row span { color: var(--muted); }
.side-row strong { color: var(--ink); font-weight: 700; text-align: right; }
.side-note { font-size: 12px; color: var(--muted); margin: 14px 0 18px; }

/* ---------- Form konsultasi ---------- */
.konsul-panel { background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); max-width: 780px; margin: 0 auto; overflow: hidden; }
.konsul-head { background: var(--ink); color: #fff; padding: 30px 34px; }
.konsul-head h2 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.konsul-head p { color: #94a3b8; font-size: 13.5px; margin: 0; }
.konsul-body { padding: 32px 34px 36px; }
.konsul-body .field select { appearance: auto; }
.opsional { font-weight: 500; color: var(--muted); font-size: 11.5px; }

/* ---------- Ringkasan permintaan ---------- */
.ringkas-grid { display: grid; gap: 0; }
.ringkas-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.ringkas-row:last-child { border-bottom: 0; }
.ringkas-row span { color: var(--muted); flex: 0 0 40%; }
.ringkas-row strong { color: var(--ink); text-align: right; font-weight: 600; }

/* ---------- Prinsip kerja ---------- */
.prinsip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.prinsip { display: flex; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.prinsip-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #f1f5f9; color: var(--ink-soft); flex: 0 0 auto; }
.prinsip-ico svg { width: 18px; height: 18px; }
.prinsip h3 { font-family: var(--sans); font-size: 14.5px; font-weight: 800; margin: 0 0 5px; }
.prinsip p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- CTA pita ---------- */
.cta-band {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #3f2a14 100%);
    border-radius: 24px; padding: 44px; color: #e2e8f0;
    display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.8vw, 30px); margin: 0 0 8px; }
.cta-band p { color: #94a3b8; font-size: 14px; margin: 0; max-width: 520px; }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .16); }

@media (max-width: 1000px) {
    .layanan-grid { grid-template-columns: 1fr 1fr; }
    .layanan-grid-2 { grid-template-columns: 1fr; gap: 34px; }
    .side-card { position: static; }
    .proses { grid-template-columns: 1fr 1fr; }
    .proses-item { border-bottom: 1px solid var(--line-soft); }
    .prinsip-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 30px; }
}

@media (max-width: 780px) {
    .layanan-grid { grid-template-columns: 1fr; gap: 16px; }
    .proses { grid-template-columns: 1fr; }
    .proses-item { border-right: 0; padding: 20px 22px; }
    .konsul-head, .konsul-body { padding-left: 22px; padding-right: 22px; }
    .cta-band { padding: 26px; border-radius: 18px; }
    .cta-band .btn { width: 100%; }
}


/* ==================================================================
   Running text (teks berjalan)
   Catatan: durasi ditulis sebagai angka langsung (bukan var()) karena
   Chromium salah membacanya di dalam @media.
   ================================================================== */
.ticker {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 55%, #3b2a12 100%);
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
    position: relative;
}
.ticker::before,
.ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 46px;
    z-index: 2;
    pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, #0f172a, rgba(15, 23, 42, 0)); }
.ticker::after { right: 0; background: linear-gradient(270deg, #3b2a12, rgba(59, 42, 18, 0)); }
.ticker-viewport { overflow: hidden; padding: 9px 0; }
.ticker-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation-name: ticker-geser;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.ticker-seg { display: flex; align-items: center; flex: 0 0 auto; }
.ticker-item {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f1f5f9;
    white-space: nowrap;
    padding: 0 6px;
}
.ticker-sep { color: #fbbf24; font-size: 7px; padding: 0 14px; opacity: .9; }
@keyframes ticker-geser {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

/* ==================================================================
   Penyegaran tampilan (v2.1)
   ================================================================== */

/* Latar berlapis + tekstur titik halus */
body {
    background-color: var(--bg);
    background-image:
        radial-gradient(1100px 500px at 88% -6%, rgba(251, 191, 36, .10), transparent 62%),
        radial-gradient(900px 420px at 4% 4%, rgba(30, 41, 59, .05), transparent 60%);
    background-repeat: no-repeat;
}

/* Tombol amber sedikit bergradasi */
.btn-amber {
    background-image: linear-gradient(135deg, #e08a12 0%, #d97706 48%, #c2680a 100%);
    border-color: rgba(146, 64, 14, .25);
}
.btn-dark {
    background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Label bagian dengan garis pendek */
.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: .55;
}
.section-head .eyebrow { justify-content: center; }
.section-head--left .eyebrow { justify-content: flex-start; }

/* Hero: pita cahaya + grid titik */
.hero--layanan::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
    pointer-events: none;
}
.hero--layanan .hero-grid { position: relative; z-index: 1; }
.hero h1 em {
    white-space: nowrap;
    background-image: linear-gradient(180deg, rgba(251, 191, 36, 0) 58%, rgba(251, 191, 36, .55) 58%, rgba(217, 119, 6, .18) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 3px;
    padding: 0 .06em;
}

/* Pita angka di bawah hero */
.stat-strip {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px -34px rgba(15, 23, 42, .55);
}
.stat-strip-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-item {
    padding: 22px 20px 22px 0;
    border-right: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    gap: 14px;
}
.stat-item:last-child { border-right: 0; }
.stat-ico {
    width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
    display: grid; place-items: center;
    background: var(--amber-soft); color: var(--amber-dark);
}
.stat-ico svg { width: 18px; height: 18px; }
.stat-item strong {
    display: block;
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    line-height: 1.15;
}
.stat-item span { font-size: 11.5px; color: var(--muted); }

/* Kartu layanan: garis aksen di atas + ikon bergradasi */
.layanan-card { position: relative; overflow: hidden; }
.layanan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #d97706 55%, rgba(217, 119, 6, 0));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .32s ease;
}
.layanan-card:hover::before { transform: scaleX(1); }
.layanan-card .layanan-ico {
    background-image: linear-gradient(135deg, #f8fafc, #eef2f7);
    border: 1px solid rgba(15, 23, 42, .06);
}
.layanan-card--unggulan .layanan-ico {
    background-image: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: rgba(217, 119, 6, .18);
}

/* Panel e-book di beranda: geser sedikit saat disentuh */
.book-card { will-change: transform; }

/* Kartu samping layanan sedikit lebih tegas */
.side-card { box-shadow: 0 22px 50px -34px rgba(15, 23, 42, .5), var(--shadow-sm); }
.side-card::before {
    content: '';
    display: block;
    height: 3px;
    margin: -24px -24px 18px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(90deg, #f59e0b, #b45309);
}

/* Pita CTA lebih hidup */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    right: -120px; top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, .30), rgba(251, 191, 36, 0) 68%);
    pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }

/* Footer: garis gradasi di atas */
.site-footer { position: relative; }
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(217, 119, 6, 0), #f59e0b 20%, #d97706 55%, rgba(217, 119, 6, 0));
    opacity: .8;
}

/* Tombol WhatsApp melayang */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px 13px 15px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 18px 34px -16px rgba(22, 163, 74, .85), 0 2px 6px rgba(15, 23, 42, .12);
    transition: transform .16s ease, background .16s ease;
}
.wa-float:hover { background: #15803d; transform: translateY(-2px); }
.wa-float svg { width: 19px; height: 19px; }

/* Animasi masuk saat digulir */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (max-width: 1000px) {
    .stat-strip-inner { grid-template-columns: 1fr 1fr; }
    .stat-item:nth-child(2n) { border-right: 0; }
    .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 780px) {
    .stat-strip-inner { grid-template-columns: 1fr 1fr; padding: 0 18px; }
    .stat-item { padding: 16px 12px 16px 0; gap: 10px; }
    .stat-ico { width: 34px; height: 34px; border-radius: 10px; }
    .stat-item strong { font-size: 16px; }
    .stat-item span { font-size: 10.5px; }
    .ticker-item { font-size: 10.5px; letter-spacing: .10em; }
    .wa-float span { display: none; }
    .wa-float { padding: 14px; }
    .hero h1 em { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
