/* =====================================================================
   Ensiklopedi Hadits 9 Imam — landing page (refined scale)
   Emerald gelap + krem + aksen amber. Plus Jakarta Sans.
   ===================================================================== */

:root {
  --forest-950: #082A20; --forest-900: #0E3B2C; --forest-800: #124A37; --forest-700: #175E45; --forest-600: #1E7A55; --forest-500: #2E9468;
  --app-green: #2FA24A;
  --mint-100: #D6E8DC; --mint-50: #EAF3EC;
  --cream: #F7F6F1; --cream-2: #F0EEE6; --card: #FFFFFF; --line: #E4E2D9;
  --ink: #172520; --ink-2: #4F5E57; --ink-3: #6B7872;
  --amber: #F5C242; --amber-600: #D9A520; --amber-50: #FFF6DB;
  --hasan: #E0A800; --dhaif: #C6423B;
  --r-sm: 8px; --r-md: 12px; --radius: 16px; --radius-lg: 20px;
  --shadow-1: 0 1px 2px rgba(23,37,32,.05), 0 2px 10px rgba(23,37,32,.05);
  --shadow-2: 0 14px 32px rgba(23,37,32,.12);
  --shadow-3: 0 30px 70px rgba(8,42,32,.40);
  --dur: 220ms;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --script: "Kalam", "Segoe Print", "Bradley Hand", cursive;
  --brand: #43A047; --brand-700: #388E3C; --brand-800: #2E7D32; --brand-50: #E8F5E9;
  --arab: "Amiri", "Traditional Arabic", "Scheherazade", serif;
  --container: 1200px; --container-wide: 1280px; --gutter: 20px;
  --mosque: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cg fill='%23ffffff'%3E%3Crect x='0' y='150' width='400' height='50'/%3E%3Crect x='40' y='60' width='16' height='90'/%3E%3Cpath d='M40 60a8 8 0 0 1 16 0z'/%3E%3Crect x='344' y='60' width='16' height='90'/%3E%3Cpath d='M344 60a8 8 0 0 1 16 0z'/%3E%3Crect x='110' y='120' width='180' height='30'/%3E%3Cpath d='M120 120c0-50 35-75 80-90 45 15 80 40 80 90z'/%3E%3Crect x='198' y='18' width='4' height='14'/%3E%3Ccircle cx='200' cy='14' r='6'/%3E%3Ccircle cx='203' cy='12' r='5' fill='%230E3B2C'/%3E%3C/g%3E%3C/svg%3E");
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 36px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--card); }
@media (min-width: 1200px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-700); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--forest-600); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .final-cta :focus-visible, .band-visual :focus-visible { outline-color: var(--amber); }
.btn:focus-visible { outline: 3px solid var(--forest-600); outline-offset: 3px; }
.btn-amber:focus-visible, .btn-outline-light:focus-visible { outline-color: #fff; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.028em; }  /* 36 → 56px */
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }                    /* 28 → 40px */
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - var(--gutter) * 2, var(--container-wide)); }
.section { padding: clamp(64px, 7vw, 88px) 0; }
.section-lg { padding: clamp(72px, 9vw, 120px) 0; }
.section-cream { background: var(--cream); }
.section-mint { background: linear-gradient(180deg, var(--mint-50), var(--cream)); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p:last-child { color: var(--ink-2); font-size: 1.1rem; }
.eyebrow { font-size: .95rem; color: var(--forest-600); font-weight: 700; margin-bottom: .6em; letter-spacing: .01em; }
.eyebrow-light { color: #8FD9A8; }
.lead-2 { font-size: 1.1rem; color: var(--ink-2); }
.arrow { display: inline-block; transition: transform .15s; }
a:hover .arrow, .btn:hover .arrow { transform: translateX(3px); }
.more { display: inline-block; padding: 8px 0; font-weight: 700; color: var(--forest-700); font-size: 1rem; }
.more:hover { text-decoration: none; color: var(--forest-900); }
.script { font-family: var(--script); font-weight: 700; color: var(--amber); font-size: 1.75rem; line-height: 1.15; transform: rotate(-3deg); letter-spacing: .01em; }
.hide-sm { display: none !important; }
@media (min-width: 900px) { .hide-sm { display: inline-flex !important; } }
.linkbtn { background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 700; color: var(--forest-700); cursor: pointer; }
.linkbtn:hover { color: var(--forest-900); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r-md); border: 1.5px solid transparent; cursor: pointer;
  font: 700 1rem/1 var(--font); letter-spacing: .01em; text-decoration: none !important; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.02rem; border-radius: var(--r-md); }
.btn-xl { min-height: 52px; padding: 14px 30px; font-size: 1.08rem; border-radius: var(--r-md); }
.btn-xl .ico { width: 24px; height: 24px; }
.btn-amber { background: var(--amber); color: var(--forest-950); box-shadow: 0 8px 22px rgba(245,194,66,.35); }
.btn-amber:hover { background: #FFD25A; box-shadow: 0 10px 28px rgba(245,194,66,.5); transform: translateY(-2px); }
.btn-dark { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(67,160,71,.28); }
.btn-dark:hover { background: var(--brand-700); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--forest-800); border-color: var(--mint-100); }
.btn-outline:hover { background: var(--mint-50); border-color: var(--forest-600); transform: translateY(-2px); }
.btn-outline-dark { background: #fff; color: var(--brand-800); border-color: var(--brand); }
.btn-outline-light { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.cta-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.66); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border-bottom: 1px solid rgba(23,37,32,.08); transition: box-shadow .2s, background .2s; }
.site-header.scrolled { background: rgba(255,255,255,.74); box-shadow: 0 6px 24px rgba(23,37,32,.06); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { position: relative; white-space: nowrap; padding: 10px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .98rem; transition: background .15s, color .15s; }
.nav a:hover { background: var(--mint-50); color: var(--forest-800); text-decoration: none; }
.nav a.active { color: var(--forest-800); font-weight: 700; }
.nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2.5px; border-radius: 2px; background: var(--brand); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.brand { min-width: 0; overflow: hidden; }
.brand-text { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) {
  .header-inner { gap: 12px; }
  .header-cta { flex: none; }
  .header-cta .btn { min-height: 42px; padding: 9px 16px; font-size: .92rem; }
  .header-cta .btn .ico { display: none; }
  .hide-xs { display: none; }
}
.header-cta .btn { min-height: 44px; padding: 10px 20px; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; border-radius: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 479px) {
  .header-inner { gap: 10px; height: 64px; }
  .brand { font-size: 1rem; gap: 8px; }
  .brand-icon { width: 32px; height: 32px; }
  .header-cta .btn { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
  .header-cta .btn .ico { display: none; }
  .hide-xs { display: none; }
  .nav-toggle { width: 38px; padding: 0 7px; }
  .brand { min-width: 0; overflow: hidden; }
  .brand-text { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 379px) {
  .brand { font-size: .95rem; gap: 6px; }
  .header-cta .btn { width: 40px; padding: 0; justify-content: center; }
  .header-cta .btn .ico { display: inline-block; width: 20px; height: 20px; }
  .header-cta .btn .hdr-label { display: none; }
}
@media (max-width: 899px) {
  .nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 12px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
  .nav.open a { padding: 14px 14px; font-size: 1.08rem; border-radius: 10px; }
  .nav.open a.active::after { display: none; }
  .nav.open a.active { background: var(--mint-50); }
}
@media (min-width: 900px) { .nav { display: flex; } .nav-toggle { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; z-index: 2;
  background: radial-gradient(1100px 700px at 100% 0%, rgba(67,160,71,.32), transparent 60%), linear-gradient(160deg, #0A3124 0%, #0E3B2C 48%, #145A3F 100%);
  padding: clamp(40px, 6vw, 72px) 0 0; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 2; background: var(--card);
  --hw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 44C320 6 640 6 900 32 1120 54 1300 60 1440 46V90H0Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--hw); mask-image: var(--hw); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.hero::before { content: none; }
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 32px; align-items: center; padding-bottom: 120px; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero .lead { font-size: 1.22rem; color: rgba(255,255,255,.92); max-width: 580px; line-height: 1.65; }
.stats { list-style: none; padding: 28px 0 0; margin: 36px 0 0; display: grid; grid-template-columns: auto auto 1fr; gap: 28px; border-top: 1px solid rgba(255,255,255,.2); }
.stat { display: flex; gap: 12px; align-items: flex-start; }
.stat-ico { flex: none; width: 42px; height: 42px; border-radius: var(--r-md); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: var(--amber); }
.stat-ico svg { width: 22px; height: 22px; }
.stat strong { display: block; white-space: nowrap; font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.stat small { display: block; font-size: .9rem; color: rgba(255,255,255,.85); margin-top: 3px; line-height: 1.35; }
.hero-visual { position: relative; margin: 0 auto; width: 100%; max-width: 540px; }
.script-hero { display: block; position: absolute; right: 4%; bottom: 13%; text-align: right; margin: 0; font-size: 1.5rem; line-height: 1.1; z-index: 3; white-space: nowrap; text-shadow: 0 2px 10px rgba(0,0,0,.35); transform: rotate(-6deg); }
.script-hero::after { content: ""; display: block; width: 62%; height: 3px; margin: 6px 0 0 auto; border-radius: 2px; background: var(--amber); opacity: .9; }
.hero-art { position: relative; width: 100%; }
.hero-img { width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 94%, transparent 100%), linear-gradient(180deg, #000 0, #000 84%, transparent 98%), radial-gradient(ellipse 250px 150px at 100% 100%, transparent 0, transparent 78%, #000 100%);
  -webkit-mask-composite: source-in, source-in; mask-composite: intersect;
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 94%, transparent 100%), linear-gradient(180deg, #000 0, #000 84%, transparent 98%), radial-gradient(ellipse 250px 150px at 100% 100%, transparent 0, transparent 78%, #000 100%); }
@media (min-width: 900px) {
  .hero { padding-top: clamp(40px, 5vw, 64px); }
  .hero-grid { grid-template-columns: 52fr 48fr; gap: 24px; padding-bottom: 0; min-height: 600px; }
  .hero .lead { font-size: 1.22rem; }
  .hero-visual { max-width: none; min-height: 640px; }
  .hero-visual .hero-art { position: absolute; left: -6%; top: -6px; width: 120%; max-width: none; }
  .script-hero { right: 1%; bottom: 17%; font-size: 1.8rem; }
}
@media (min-width: 1200px) { .hero-grid { grid-template-columns: 50fr 50fr; min-height: 620px; } .hero-visual { min-height: 680px; } .hero-visual .hero-art { width: 118%; left: -5%; } }
@media (min-width: 1400px) { .hero-visual .hero-art { width: 112%; left: -2%; } }
@media (max-width: 899px) {
  .hero::after { height: 60px; }
  .script-hero { right: 3%; bottom: 25%; font-size: 1.22rem; }
  .hero-grid { padding-bottom: 0; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; font-size: 1.08rem; }
  .cta-row { justify-content: center; }
  .cta-row .btn { flex: 1 1 100%; }
  .stats { text-align: center; gap: 10px; }
  .stat { flex-direction: column; align-items: center; gap: 8px; }
  .stat strong { font-size: 1.2rem; }
  .stat small { font-size: .78rem; max-width: 120px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-visual { max-width: 460px; margin-top: 8px; margin-bottom: -26px; }
}

/* ---------- Ponsel mock (mengikuti UI aplikasi terbaru) ---------- */
.phone { position: relative; width: 300px; height: 610px; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #2b2b2b, #0f0f0f); box-shadow: var(--shadow-3), inset 0 0 0 2px #3a3a3a, inset 0 0 0 4px #111; animation: float 7s ease-in-out infinite; z-index: 1; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 14px; background: #0f0f0f; z-index: 3; }
.phone-sm { width: 300px; height: 610px; animation: none; box-shadow: 0 30px 60px rgba(8,42,32,.25), inset 0 0 0 2px #3a3a3a, inset 0 0 0 4px #111; }
.phone-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; color: var(--ink); font-size: 12px; line-height: 1.4; display: flex; flex-direction: column; }
.ps-status { display: flex; justify-content: space-between; padding: 12px 22px 0; background: var(--app-green); color: #fff; font-size: 11px; font-weight: 700; height: 40px; flex: none; }
.ps-status-icons { letter-spacing: 2px; font-size: 9px; opacity: .9; }
.ps-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 14px; background: var(--app-green); color: #fff; font-weight: 600; font-size: 13.5px; }
.ps-dots { font-size: 18px; }
.ps-body { flex: 1; overflow: hidden; padding: 12px 12px 0; background: #F4F6F5; }
.ps-card { background: #fff; border-radius: 14px; padding: 14px 14px 10px; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.ps-h { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.ps-h2 { margin: 16px 2px 8px; }
.ps-time { color: var(--ink-3); font-size: 10px; margin: 6px 0 2px; }
.ps-q { font-size: 11px; margin: 0 0 6px; color: var(--ink); }
.ps-ref { display: inline-block; background: #E6F4EA; color: #1E7A3E; font-weight: 700; font-size: 10px; padding: 3px 8px; border-radius: 6px; }
.ps-all { text-align: center; color: #1E7A3E; font-weight: 700; font-size: 11px; margin: 10px 0 0; }
.ps-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; font-size: 10px; font-weight: 600; color: var(--ink-2); }
.ps-shelf img { width: 100%; border-radius: 3px; margin-bottom: 4px; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.ps-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 6px 14px; background: #fff; border-top: 1px solid var(--line); }
.ps-nav span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 15px; color: var(--ink-3); }
.ps-nav span small { font-size: 9px; font-weight: 600; }
.ps-nav span.on { color: #1E7A3E; }
.phone-screen > img { width: 100%; height: auto; flex: none; }


/* Chip derajat */
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; line-height: 1.5; vertical-align: middle; }
.chip-shahih { background: var(--forest-600); }
.chip-hasan { background: var(--hasan); color: #3E2A00; }
.chip-dhaif { background: var(--dhaif); }

/* Avatar inisial */
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem; }
.av-b { background: var(--forest-600); } .av-m { background: #7B3F8C; } .av-ad { background: #2E9468; } .av-t { background: #D48A1F; }
.av-n { background: #2F6FB5; } .av-im { background: #3B4CA6; } .av-a { background: #6B3F8C; } .av-mk { background: #1C7C74; } .av-d { background: #B93B5A; }

/* ---------- Fitur: panel tab di ponsel ---------- */
.fpanel { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.fpanel.on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.fpanel > img { width: 100%; height: auto; flex: none; }
.fpanel .ps-nav { margin-top: auto; }
.ps-tabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); }
.ps-tabs span { flex: 1; text-align: center; padding: 8px 4px; font-size: 10.5px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; }
.ps-tabs span.on { color: #1E7A3E; border-bottom-color: #1E7A3E; }
.ps-tabs-inline { margin: 8px -2px 8px; border-radius: 8px; border: 0; }
.ps-body-tight { padding: 10px 10px 0; overflow: hidden; }
.sanad { display: flex; flex-direction: column; align-items: stretch; }
.sn { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; position: relative; margin-bottom: 12px; }
.sn::after { content: "↓"; position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); font-size: 10px; color: var(--ink-3); line-height: 1; }
.sn:last-child::after { display: none; }
.sn:last-child { margin-bottom: 0; }
.sn strong { display: block; font-size: 10.5px; line-height: 1.15; }
.sn small { display: block; font-size: 9px; color: var(--ink-3); }
.sn-av { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #1E7A3E; color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.sn-nabi { background: #E6F4EA; border-color: #BFE3C8; }
.sn-sahabat { background: #FFF6E5; border-color: #F5DDA8; }
.sn-sahabat .sn-av { background: #D48A1F; }
.sn-imam { background: #FFF6E5; border-color: #F5DDA8; }
.sn-imam .sn-av { background: #7A4B00; }
.pr-head { display: flex; gap: 10px; align-items: center; margin: 4px 0 6px; }
.pr-av { width: 40px; height: 40px; font-size: 16px; }
.pr-head strong { display: block; font-size: 12.5px; line-height: 1.15; }
.pr-head small { display: block; font-family: var(--arab); font-size: 12px; color: var(--ink-2); }
.pr-head .chip { font-size: 9px; padding: 1px 7px; margin-top: 3px; }
.pr-table { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pr-table div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; font-size: 10.5px; border-top: 1px solid var(--line); }
.pr-table div:first-child { border-top: 0; }
.pr-table span { color: var(--ink-3); }
.pr-chart-title { font-size: 10.5px; font-weight: 700; color: #1E7A3E; margin: 10px 2px 6px; }
.pr-chart { display: flex; align-items: flex-end; gap: 4px; height: 92px; padding: 0 2px; }
.pr-chart span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; font-size: 8px; }
.pr-chart span::before { content: ""; width: 100%; height: calc(var(--v) * 0.62px); border-radius: 3px 3px 0 0; background: var(--bar, #2FA24A); }
.pr-chart i { font-style: normal; font-size: 7.5px; color: var(--ink-2); margin-bottom: 2px; order: -1; }
.pr-chart b { font-weight: 600; color: var(--ink-3); margin-top: 3px; }
.c-b { --bar: #2E7D32; } .c-m { --bar: #43A047; } .c-ad { --bar: #66BB6A; } .c-t { --bar: #1565C0; } .c-n { --bar: #1E88E5; } .c-im { --bar: #42A5F5; } .c-a { --bar: #7B1FA2; } .c-mk { --bar: #AB47BC; } .c-d { --bar: #BA68C8; }
.ct-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ct-card .ps-arab { font-size: 14px; margin: 0 0 6px; }
.ct-trans { font-size: 10.5px; color: var(--ink-2); margin: 0 0 8px; }
.ct-actions { display: flex; gap: 6px; }
.ct-actions span { flex: 1; text-align: center; font-size: 9px; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 4px 0; color: var(--ink-2); }
.ct-add { text-align: center; font-size: 10.5px; font-weight: 700; color: #1E7A3E; background: #E6F4EA; border-radius: 8px; padding: 7px; margin-bottom: 8px; }
.ct-note { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.ct-note small { display: block; font-size: 9px; color: var(--ink-3); }
.ct-note p { font-size: 10.5px; margin: 2px 0 6px; }
.ct-tags i { display: inline-block; font-style: normal; font-size: 8.5px; background: #EDE7F6; color: #5E35B1; border-radius: 4px; padding: 1px 6px; margin-right: 4px; }

.ps-filters { display: flex; gap: 6px; padding: 8px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.ps-filters span { padding: 5px 10px; border-radius: 999px; background: #F1F3F2; font-size: 10px; font-weight: 600; color: var(--ink-2); }
.sr-count { font-size: 10.5px; font-weight: 700; margin: 2px 2px 8px; }
.sr-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.sr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sr-head strong { font-size: 11.5px; }
.sr-head .chip { font-size: 9px; padding: 1px 7px; }
.sr-card .ps-arab { font-size: 13px; line-height: 1.8; margin: 2px 0 4px; }
.sr-text { font-size: 10.5px; color: var(--ink-2); margin: 0 0 6px; }
.sr-text b { color: #1E7A3E; font-weight: 700; }
.sr-meta { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; font-size: 9.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 6px; }
.sr-meta span:nth-child(odd) { font-weight: 700; color: var(--ink); }
.sr-link { text-align: center; font-size: 10px; font-weight: 700; color: #1E7A3E; margin-top: 6px; }
.sn-legend { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 8.5px; color: var(--ink-2); margin-top: 10px; }
.sn-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 3px; }
.l-nabi { background: #1E7A3E; } .l-sahabat { background: #D48A1F; } .l-tabiin { background: #90A4AE; } .l-imam { background: #7A4B00; }


/* ---------- Product demo ---------- */
#fitur { position: relative; z-index: 1; }
.feature-hero { display: grid; gap: 28px; align-items: center; margin-bottom: clamp(56px, 7vw, 96px);
  grid-template-areas: "phone" "tabs" "copy"; }
.feature-phone { grid-area: phone; display: flex; justify-content: center; align-items: flex-start; height: 650px; padding: 0 32px; overflow: hidden;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V74C86 78 70 89 50 91 32 93 15 96 0 100Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--wave); mask-image: var(--wave); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.feature-phone .phone-sm { flex: none; width: 346px; height: 703px; }
.feature-copy { grid-area: copy; }
.feature-copy h2 { margin-bottom: .45em; }
.feature-copy .lead-2 { margin: 0; max-width: 520px; }
.feature-copy.swap h2, .feature-copy.swap .lead-2 { animation: copyIn .3s ease both; }
.fpanel { transition: opacity .3s ease, transform .3s ease, visibility 0s .3s; transform: translateY(6px); }
.fpanel.on { transform: none; transition: opacity .3s ease, transform .3s ease; }
@keyframes copyIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tiles { grid-area: tabs; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 60px; padding: 14px 22px; border-radius: var(--r-md); background: #fff; border: 1.5px solid var(--line); font: 700 1rem/1.2 var(--font); color: var(--ink-2); text-align: left; box-shadow: var(--shadow-1); cursor: pointer; white-space: nowrap;
  transition: transform var(--dur), box-shadow var(--dur), background var(--dur), color var(--dur), border-color var(--dur); }
.tile svg { width: 24px; height: 24px; flex: none; color: var(--brand-700); }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--forest-600); color: var(--forest-800); background: var(--mint-50); }
.tile:hover svg { transform: scale(1.08); }
.tile svg { transition: transform var(--dur), color var(--dur); }
.tile.on { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: inset 4px 0 0 var(--amber), 0 10px 24px rgba(67,160,71,.32); }
.tile.on:hover { transform: none; }
.tile.on svg { color: var(--amber); }
.tile:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (min-width: 900px) {
  .feature-hero { grid-template-columns: 47fr 47fr; column-gap: 5%; row-gap: 28px; grid-template-areas: "phone copy" "phone tabs"; align-items: center; }
  .feature-copy { align-self: end; }
  .tiles { align-self: start; grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 62px; }
}

@media (max-width: 899px) { .feature-phone { height: 380px; padding: 0 16px; } .feature-phone .phone-sm { width: 310px; height: 630px; } }
.feature-grid { display: grid; gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.f-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-md); background: var(--brand); color: #fff; margin-bottom: 18px; }
.f-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--ink-2); font-size: 1rem; margin: 0; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- Kitab ---------- */
.books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
.book-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.book-item picture { display: contents; }
.book { width: 100%; max-width: 128px; height: auto; aspect-ratio: 166 / 234; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: 0 14px 28px rgba(23,37,32,.22), 0 2px 4px rgba(0,0,0,.2); transition: transform .2s ease, box-shadow .2s ease; }
.book-item:hover .book { transform: translateY(-4px); box-shadow: 0 20px 36px rgba(23,37,32,.28), 0 2px 4px rgba(0,0,0,.2); }
.book-label { display: flex; flex-direction: column; margin-top: 18px; line-height: 1.3; }
.book-label small { color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.book-label strong { font-size: 1.1rem; font-weight: 800; color: var(--ink); }
@media (min-width: 640px) { .books { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 960px) { .books { grid-template-columns: repeat(9, 1fr); gap: 20px 14px; } .book { max-width: 120px; } }

/* ---------- Ulasan ---------- */
.review-grid { display: grid; gap: 20px; }
.review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; }
.review .stars { color: var(--amber-600); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 14px; }
.stars-off { color: rgba(0,0,0,.12); }
.review p { flex: 1; font-size: 1.08rem; line-height: 1.6; margin-bottom: 18px; color: var(--ink); }
.review mark { background: linear-gradient(transparent 42%, rgba(245,194,66,.55) 42%, rgba(245,194,66,.55) 92%, transparent 92%); color: inherit; padding: 0 2px; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.review footer { display: flex; align-items: center; gap: 12px; font-size: .98rem; color: var(--ink); font-weight: 700; }
.review footer .avatar { width: 40px; height: 40px; font-size: .82rem; }
.review-meta { display: flex; flex-direction: column; line-height: 1.25; }
.review-meta small { font-weight: 500; color: var(--ink-3); font-size: .82rem; }
.review-more { text-align: center; margin-top: 32px; }
.review-more .btn[disabled] { opacity: .5; cursor: default; transform: none; box-shadow: none; }
@media (min-width: 900px) { .review-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (max-width: 899px) {
  .review-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 16px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
  .review-grid::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 min(86vw, 360px); scroll-snap-align: center; min-height: 0; }
}

/* ---------- Kartu fitur mengambang di hero ---------- */
.hero-float { position: absolute; height: auto; filter: drop-shadow(0 14px 26px rgba(0,0,0,.32)); animation: floaty 6s ease-in-out infinite; will-change: transform; }
.hf1 { left: 63.6%; top: 20.4%; width: 27.8%; animation-delay: 0s; }
.hf2 { left: 63.6%; top: 38.2%; width: 27.8%; animation-delay: -2.1s; }
.hf3 { left: 63.7%; top: 56.1%; width: 28.3%; animation-delay: -4.2s; animation-duration: 7s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 899px) { .hf1 { top: 11%; } .hf2 { top: 26%; } .hf3 { top: 41%; } }

/* ---------- Trust strip ---------- */
.trust { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(44px, 5vw, 64px) 0; }
.trust-inner { display: grid; gap: 28px; align-items: center; }
.trust-copy h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); margin-bottom: .45em; }
.trust-copy p:last-child { margin: 0; color: var(--ink-2); font-size: 1.05rem; max-width: 560px; }
.trust-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.trust-points li { display: flex; gap: 12px; align-items: flex-start; }
.t-ico { flex: none; width: 42px; height: 42px; border-radius: var(--r-md); background: var(--brand-50); border: 1px solid #CDE8CF; color: var(--brand-800); display: grid; place-items: center; }
.t-ico svg { width: 22px; height: 22px; }
.trust-points strong { display: block; font-weight: 800; font-size: 1rem; line-height: 1.3; }
.trust-points small { display: block; color: var(--ink-2); font-size: .92rem; margin-top: 2px; }
@media (min-width: 900px) { .trust-inner { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
@media (min-width: 560px) and (max-width: 899px) { .trust-points { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Download ---------- */
.dl-grid { display: grid; gap: 16px; }
.dl-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 30px 18px 24px; color: var(--ink); box-shadow: var(--shadow-1);
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.dl-card:hover, .dl-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--forest-600); text-decoration: none; }
.dl-icon { width: 64px; height: 64px; border-radius: var(--radius); background: var(--brand-50); color: var(--brand-800); display: grid; place-items: center; margin-bottom: 6px; }
.dl-icon svg { width: 36px; height: 36px; }
.dl-text { display: flex; flex-direction: column; line-height: 1.25; }
.dl-text strong { font-size: 1.18rem; font-weight: 800; }
.dl-text small { font-size: .92rem; color: var(--ink-2); font-weight: 500; margin-top: 3px; }
.dl-go { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--forest-700); font-size: .98rem; }
.dl-featured { border-color: var(--brand); background: linear-gradient(180deg, #fff, var(--mint-50)); }
.dl-featured .dl-icon { background: var(--brand); color: #fff; }
.dl-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--brand-700); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; }
.dl-qr { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 28px auto 0; max-width: 560px; padding: 14px 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .98rem; }
.dl-qr img { width: 72px; height: 72px; flex: none; }
.dl-qr strong { color: var(--ink); }
@media (min-width: 560px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .dl-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; } }

/* ---------- Story ---------- */
.band { background: linear-gradient(90deg, #EDEBE3 0%, var(--cream-2) 40%, var(--cream) 100%); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.band-inner { width: min(100%, 1400px); margin-inline: auto; display: grid; gap: 28px; align-items: center; padding: 0 var(--gutter); }
.band-visual { position: relative; display: flex; justify-content: center; }
.scene { position: relative; width: 100%; max-width: 470px; aspect-ratio: 1 / 1.25; }
.scene-arch { position: absolute; left: 11%; top: 0; width: 78%; height: 100%; opacity: .9;
  background: linear-gradient(180deg, #2E7D57 0%, #1E6446 50%, #14503A 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M50 0C58 12 74 18 88 34c9 10 12 20 12 32V140H0V66C0 54 3 44 12 34 26 18 42 12 50 0Z' fill='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M50 0C58 12 74 18 88 34c9 10 12 20 12 32V140H0V66C0 54 3 44 12 34 26 18 42 12 50 0Z' fill='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.scene-books { position: absolute; right: 3%; top: 21%; width: 31%; aspect-ratio: 166 / 234; }
.bk { position: absolute; left: 0; width: 100%; height: auto; border-radius: 3px 6px 6px 3px; box-shadow: 0 16px 30px rgba(8,42,32,.38), 0 2px 4px rgba(0,0,0,.25); transform: rotate(-5deg); }
.bk1 { top: 0; } .bk2 { top: 31%; } .bk3 { top: 62%; }
.scene-phone { position: absolute; left: 10%; bottom: 0; width: 54%; padding: 9px; border-radius: 12%/6%; background: linear-gradient(160deg, #3a3a3a, #0d0d0d); box-shadow: 0 30px 60px rgba(8,42,32,.35), inset 0 0 0 2px #4a4a4a; z-index: 2; }
.scene-phone img { width: 100%; height: auto; display: block; border-radius: 10%/5%; }
.scene-notch { position: absolute; left: 50%; top: 4.2%; width: 28%; height: 2.6%; transform: translateX(-50%); background: #0d0d0d; border-radius: 999px; z-index: 3; }
.scene-pill { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 12px 28px rgba(23,37,32,.16); font-weight: 800; font-size: 1rem; line-height: 1.15; color: var(--ink); animation: floaty 6s ease-in-out infinite; }
.sp1 { left: -5%; top: 44%; } .sp2 { left: -5%; top: 64%; animation-delay: -2.5s; animation-duration: 7s; }
.sp-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand-800); display: grid; place-items: center; }
.sp-ico.is-amber { background: var(--amber-50); color: #B07A00; }
.sp-ico svg { width: 22px; height: 22px; }
.band-copy { padding: 8px 0; }
.band-copy h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 2.7rem); letter-spacing: -.03em; margin-bottom: .5em; }
.band-copy p { color: var(--ink-2); font-size: 1.08rem; max-width: 520px; margin: 0; }
.band-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-self: center; }
.band-points li { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.85); border: 1px solid rgba(23,37,32,.06); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-1); backdrop-filter: blur(6px); transition: transform var(--dur), box-shadow var(--dur); }
.band-points li:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.pt-ico { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand); color: #fff; display: grid; place-items: center; }
.pt-ico svg { width: 22px; height: 22px; }
.band-points strong { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.band-points small { display: block; color: var(--ink-2); font-size: .93rem; margin-top: 2px; }
@media (min-width: 720px) { .band-inner { grid-template-columns: 1fr 1fr; } .band-visual { grid-row: 1 / span 2; } }
@media (min-width: 1100px) { .band-inner { grid-template-columns: 1.15fr 1.1fr 0.95fr; gap: 44px; padding-inline: clamp(20px, 3vw, 48px); } .band-visual { grid-row: auto; } .scene { max-width: 500px; } }
@media (max-width: 719px) { .band-inner { padding-top: 36px; padding-bottom: 56px; } .scene { max-width: 340px; } .scene-pill { font-size: .9rem; } }

/* ---------- PRO ---------- */
.pro-step { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.pro-step h3 { margin: 0; font-size: 1.35rem; }
.step-badge { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1rem; }
.tiers { display: grid; gap: 18px; margin-bottom: 56px; }
.tier { position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-1); }
.tier h4 { font-size: 1.3rem; margin: 0 0 4px; }
.tier-price { font-size: 1.6rem; font-weight: 800; color: var(--forest-800); margin: 0 0 18px; letter-spacing: -.02em; }
.tier-price small { display: block; font-size: .88rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 1.02rem; color: var(--ink-2); }
.tier li { position: relative; padding-left: 28px; }
.tier li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--forest-600); font-weight: 800; }
.tier li b { color: var(--ink); font-weight: 700; }
.tier-pro { border-color: var(--amber); background: linear-gradient(180deg, #FFFBEE, #fff); box-shadow: 0 16px 40px rgba(245,194,66,.18); }
.tier-pro li::before { color: var(--amber-600); }
@media (min-width: 720px) { .tiers { grid-template-columns: 1fr 1.1fr; gap: 24px; } }

.packages { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 840px) { .packages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; } }
.platform-pick { margin: 0 0 18px; padding: 16px; border-radius: var(--r-md); background: var(--cream); border: 1px solid var(--line); animation: copyIn .3s ease both; }
.pick-label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 10px; }
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pick { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 700 .9rem/1.15 var(--font); text-align: left; cursor: pointer; transition: all var(--dur); }
.pick svg { width: 20px; height: 20px; flex: none; color: var(--brand-700); }
.pick small { display: block; font-weight: 500; color: var(--ink-3); font-size: .78rem; }
.pick:hover { border-color: var(--brand); }
.pick.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.pick.on small { color: rgba(255,255,255,.75); }
.pick.on svg { color: var(--amber); }
.plan-cta.is-disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.platform-select { display: none; }
.pf { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font: 700 1rem var(--font); cursor: pointer; transition: all .2s; }
.pf svg { width: 22px; height: 22px; color: var(--forest-700); }
.pf:hover { border-color: var(--forest-600); color: var(--forest-800); }
.pf.on { background: var(--forest-800); border-color: var(--forest-800); color: #fff; box-shadow: 0 10px 24px rgba(18,74,55,.28); }
.pf.on svg { color: var(--amber); }
@media (min-width: 900px) { .platform-select { justify-content: center; flex-wrap: wrap; } }

.plan-sets { position: relative; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px 26px 24px; box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s, border-color .2s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--mint-100); }
.plan-name { display: block; font-weight: 800; font-size: 1.3rem; line-height: 1.2; }
.plan-for { display: block; font-size: .98rem; font-weight: 600; color: var(--ink-2); margin: 6px 0 16px; }
.plan-price { display: block; font-size: 2rem; font-weight: 800; color: var(--forest-800); letter-spacing: -.02em; line-height: 1.05; }
.plan-price small { font-size: .95rem; font-weight: 600; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; white-space: nowrap; }
.plan-month { display: block; font-size: .92rem; color: var(--ink-2); margin: 6px 0 18px; }
.plan-list { list-style: none; margin: 0 0 22px; padding: 18px 0 0; border-top: 1px dashed var(--line); font-size: .98rem; color: var(--ink-2); flex: 1; display: grid; gap: 8px; }
.plan-list li { position: relative; padding-left: 24px; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--forest-700); font-weight: 800; }
.plan-cta { min-height: 50px; }
.plan-tag { position: absolute; z-index: 2; top: -13px; left: 24px; border-radius: 999px; white-space: nowrap; background: var(--amber); color: var(--forest-950); font-size: .74rem; font-weight: 800; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; box-shadow: var(--shadow-1); }
.tag-gift { background: var(--forest-700); color: #fff; }
.plan-featured { border-color: var(--amber); background: linear-gradient(180deg, #FFFBEE, #fff); box-shadow: 0 16px 40px rgba(245,194,66,.2); }
.plan-featured .plan-month { color: #7A5300; font-weight: 700; }
.plan-gift { border-style: dashed; border-color: var(--mint-100); background: linear-gradient(180deg, #fff, var(--mint-50)); }
.gift-link { text-align: center; margin: 28px 0 0; color: var(--ink-2); font-size: 1rem; }

/* Checkout modal */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,42,32,.55); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--radius-lg); padding: 32px 28px 26px; box-shadow: 0 40px 90px rgba(8,42,32,.45); animation: modalIn .3s ease both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink-2); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--mint-100); color: var(--ink); }
.modal-card h3 { font-size: 1.5rem; margin-bottom: 18px; }
.ck-plan { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 18px; }
.ck-plan strong { display: block; font-size: 1.05rem; }
.ck-plan small { display: block; color: var(--ink-3); font-size: .88rem; }
.ck-price { color: var(--forest-800); font-size: 1.15rem !important; white-space: nowrap; }
.ck-total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 16px; font-size: 1.05rem; }
.ck-total small { color: var(--ink-3); font-weight: 500; }
.ck-total strong { font-size: 1.7rem; color: var(--forest-800); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field .opt { color: var(--ink-3); font-weight: 500; }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); font: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--forest-600); box-shadow: 0 0 0 4px var(--mint-50); }
.input.invalid { border-color: var(--dhaif); }
.field-msg { font-size: .88rem; margin: 6px 0 0; min-height: 1.2em; }
.field-msg.ok { color: var(--forest-700); } .field-msg.err { color: var(--dhaif); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.qty-btn { width: 46px; height: 46px; border: 0; background: var(--mint-50); color: var(--forest-800); font-size: 1.4rem; cursor: pointer; }
.qty-btn:hover { background: var(--mint-100); }
.qty-input { width: 70px; height: 46px; border: 0; text-align: center; font: 700 1.05rem var(--font); -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; }
.summary-note { font-size: .9rem; color: var(--ink-2); margin: 14px 0 0; text-align: center; }
.form-msg { font-size: .95rem; margin: 10px 0 0; text-align: center; }
.form-msg.err { color: var(--dhaif); } .form-msg.ok { color: var(--forest-700); }
body.modal-open { overflow: hidden; }

/* ---------- FAQ ---------- */
.faq-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.faq-head h2 { margin: 0; }
.faq { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid #ECEAE2; border-radius: var(--radius); padding: 2px 24px; transition: border-color var(--dur), box-shadow var(--dur); }
.faq details[open] { border-color: var(--mint-100); box-shadow: var(--shadow-1); }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--forest-600); outline-offset: 4px; border-radius: 6px; }
.faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background-color: var(--mint-50); transition: transform var(--dur), background-color var(--dur);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 9v14M9 16h14' stroke='%23175E45' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-size: 100% 100%; background-repeat: no-repeat; }
.faq details[open] summary::after { background-color: var(--forest-800);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 16h14' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.faq p { color: var(--ink-2); margin: 0 0 20px; font-size: 1.02rem; animation: copyIn .28s ease both; }
.faq-head { max-width: 880px; margin-inline: auto; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; color: #fff; padding: clamp(72px, 7vw, 100px) 0; min-height: 380px; display: flex; align-items: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(67,160,71,.42), transparent 34%),
    radial-gradient(circle at 88% 80%, rgba(245,194,66,.20), transparent 30%),
    radial-gradient(circle at 70% 10%, rgba(255,255,255,.06), transparent 28%),
    linear-gradient(140deg, #0A3124 0%, #0E3B2C 55%, #124A37 100%); }
.final-cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.5px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.final-cta::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(67,160,71,.45), transparent 62%); filter: blur(10px); pointer-events: none; }
.final-inner { position: relative; z-index: 1; width: min(100% - var(--gutter) * 2, var(--container)); display: grid; gap: 24px; align-items: center; text-align: center; }
.final-copy h2 { color: #fff; font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.15rem); line-height: 1.25; margin-bottom: .6em; max-width: 720px; margin-inline: auto; }
.final-copy h2 .line { display: block; }
.final-copy h2 .line + .line { margin-top: .7em; }
.final-copy h2 em { font-style: normal; color: var(--amber); }
.final-copy p { color: rgba(255,255,255,.9); max-width: 560px; margin-inline: auto; font-size: 1.12rem; line-height: 1.65; }
.final-copy .cta-row { margin-top: 34px; }
.script-cta { margin: 0; font-size: 2rem; white-space: nowrap; }
/* tumpukan kitab samar di pojok kanan bawah */
.final-books { position: absolute; right: -28px; bottom: -34px; width: 230px; height: 260px; opacity: .55; pointer-events: none; transform: rotate(-10deg);
  -webkit-mask-image: linear-gradient(200deg, #000 35%, transparent 85%); mask-image: linear-gradient(200deg, #000 35%, transparent 85%); }
.final-books img { position: absolute; width: 150px; height: auto; border-radius: 3px 6px 6px 3px; box-shadow: 0 14px 28px rgba(0,0,0,.45); }
.final-books img:nth-child(1) { left: 0; top: 60px; }
.final-books img:nth-child(2) { left: 40px; top: 30px; }
.final-books img:nth-child(3) { left: 80px; top: 0; }
@media (max-width: 899px) {
  .final-cta { padding: 56px 0 96px; }
  .final-inner { text-align: left; gap: 8px; }
  .script-cta { text-align: left; font-size: 1.9rem; white-space: normal; margin-bottom: 22px; }
  .script-cta::after { content: ""; display: block; width: 44%; max-width: 170px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--amber); transform: rotate(-3deg); transform-origin: left; }
  .final-copy h2 { font-size: clamp(1.7rem, 7.6vw, 2.2rem); line-height: 1.15; margin-inline: 0; margin-bottom: .9em; }
  .final-copy h2 .line + .line { margin-top: .75em; }
  .final-copy p { margin-inline: 0; max-width: 26ch; font-size: 1.05rem; color: rgba(255,255,255,.82); }
  .final-copy .cta-row { justify-content: flex-start; }
  .final-books { right: -40px; bottom: -30px; opacity: .5; }
}
@media (max-width: 719px) { .final-copy .cta-row { display: none; } .final-cta { padding-bottom: 150px; } }
@media (min-width: 900px) { .final-inner { grid-template-columns: 0.8fr 2.4fr 0.8fr; } .final-inner::after { content: ""; } .script-cta { text-align: left; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 64px 0 100px; font-size: .98rem; line-height: 1.7; color: var(--ink-2); }
.footer-grid { display: grid; gap: 32px; }
.footer-grid h4 { font-size: .84rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 14px; font-weight: 800; }
.footer-grid a { display: block; padding: 8px 0; color: var(--ink-2); font-size: 1rem; }
.footer-grid a:hover { color: var(--forest-800); }
.footer-grid .brand { display: inline-flex; margin-bottom: 14px; padding: 0; }
.footer-brand p { margin: 0; max-width: 300px; line-height: 1.6; }
.footer-brand strong { color: var(--forest-800); }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; padding: 0; background: var(--mint-50); color: var(--forest-800); transition: background .15s, color .15s, transform .15s; }
.social a:hover { background: var(--forest-700); color: #fff; transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; }
.copyright { margin: 40px auto 0; font-size: .9rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 22px; }
@media (min-width: 480px) and (max-width: 719px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 32px; } .site-footer { padding-bottom: 56px; } }
@media (min-width: 1024px) { .footer-grid { gap: 40px; } }

/* ---------- WhatsApp float & sticky CTA ---------- */
.wa-float { position: fixed; right: 18px; bottom: 92px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .25s; }
.sticky-cta .btn { min-height: 50px; }
.sticky-cta .btn-outline-dark { padding-inline: 20px; }
.sticky-cta.show { transform: translateY(0); }
@media (min-width: 720px) { .sticky-cta { display: none; } .wa-float { bottom: 28px; right: 28px; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .feature-copy.swap h2, .feature-copy.swap .lead-2, .platform-pick, .modal-card, .faq p, .fpanel { opacity: 1; transform: none; }
  .fpanel:not(.on) { opacity: 0; }
}

/* ---------- Tablet (768–899) ---------- */
@media (min-width: 640px) and (max-width: 899px) {
  .hero-copy { max-width: 620px; margin-inline: auto; }
  .hero-visual { max-width: 520px; }
  .feature-hero { max-width: 640px; margin-inline: auto; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { padding-inline: var(--gutter); }
  .cta-row .btn { flex: 0 1 auto; min-width: 220px; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; max-width: 420px; }
}
@media (min-width: 640px) and (max-width: 839px) {
  .packages { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; }
  .packages .plan:last-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .hero .lead { font-size: 1.05rem; }
  .stats { gap: 18px; }
  .stat strong { font-size: 1.2rem; }
  .stat small { font-size: .8rem; }
  .nav a { padding: 10px 10px; font-size: .92rem; }
  .plan-price { font-size: 1.7rem; }
}
@media (max-width: 479px) {
  .tile { padding: 12px 16px; font-size: .95rem; }
  .plan { padding: 24px 20px 20px; }
  .plan-price { font-size: 1.7rem; }
  .modal-card { padding: 26px 20px 22px; }
  .ck-plan { flex-direction: column; align-items: flex-start; gap: 6px; }
  .shelf-pill { right: 8px; bottom: -14px; }
  .band { overflow-x: clip; }
}

.shake { animation: shake .35s ease; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ---------- Halaman hasil pesanan (php/redeem.php) ---------- */
.result-page { background: var(--cream); }
.result-page .site-header { position: static; }
.result-main { padding: clamp(40px, 6vw, 72px) 0; }
.result-card { max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 48px); text-align: center; box-shadow: var(--shadow-1); }
.result-card h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); line-height: 1.15; margin-bottom: .4em; }
.result-card .lead-2 { max-width: 520px; margin: 0 auto 8px; }
.result-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 18px; background: var(--mint-50); color: var(--forest-700); }
.result-ico svg { width: 34px; height: 34px; }
.result-card.is-err .result-ico { background: #FBEBEA; color: var(--dhaif); }
.result-errors { list-style: none; margin: 16px auto 0; padding: 14px 18px; max-width: 480px; text-align: left; border-radius: var(--r-md); background: #FBEBEA; color: #8F2B25; font-weight: 600; display: grid; gap: 6px; }
.result-summary { margin: 26px auto 0; max-width: 460px; text-align: left; border-top: 1px solid var(--line); }
.result-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.result-summary dt { color: var(--ink-2); }
.result-summary dd { margin: 0; font-weight: 700; text-align: right; }
.result-summary .is-total dd { font-size: 1.25rem; color: var(--forest-800); }
.result-note { margin: 16px auto 0; max-width: 480px; font-size: .95rem; color: var(--ink-2); }
.result-card .cta-row { justify-content: center; margin-top: 28px; }
.result-help { margin: 20px 0 0; font-size: .92rem; color: var(--ink-2); }
.result-footer { padding: 28px 0 40px; border-top: 0; background: transparent; }
.result-footer .copyright { border-top: 0; padding-top: 0; margin-top: 0; text-align: center; }
