/* Warna = AppColors aplikasi AyatVids (lib/theme/app_theme.dart): zamrud gelap + emas + krem. */
:root {
  --bg: #07150F;
  --surface: #0E241A;
  --card: #143224;
  --border: #1F4A36;
  --primary: #12855B;
  --primary-light: #34B27F;
  --gold: #D4AF37;
  --gold-soft: rgba(212, 175, 55, .14);
  --cream: #F5EFDC;
  --muted: #9DB8AA;
  --dim: #6F8C7E;
  --splash: #0E3B2A;
  --canvas: #0B3D2C; /* VideoProject.defaultColor (latar bawaan + Gradasi) */
  --radius: 16px;
  --wrap: 1120px;
  --arabic: 'Scheherazade New', 'Traditional Arabic', serif;
  /* Bintang delapan tipis (ornamen latar), emas transparan. */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-opacity='.09' stroke-width='1'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
*, *::before, *::after { min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; width: 100%; max-width: 100%; }
body {
  margin: 0; width: 100%; max-width: 100%; overflow-x: hidden;
  background: var(--bg); color: var(--cream);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; color: var(--cream); }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--muted); }
b { color: var(--cream); font-weight: 600; }
[hidden] { display: none !important; }

.wrap { width: min(100%, var(--wrap)); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.grad {
  background: linear-gradient(90deg, #F3D77A, var(--gold) 45%, var(--primary-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}

/* ---------- tombol (pola app: emas = ajakan utama, garis emas = aksi kedua) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--gold); color: var(--bg); box-shadow: 0 8px 24px rgba(212, 175, 55, .28); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(212, 175, 55, .42); }
.btn-ghost { border-color: rgba(212, 175, 55, .55); background: rgba(212, 175, 55, .04); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(212, 175, 55, .1); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 17px 30px; font-size: 1.08rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.cta-row.center { justify-content: center; }

/* ---------- navigasi ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 21, 15, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, .12);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; white-space: nowrap; flex: 0 0 auto; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: .95rem; color: var(--muted); }
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: var(--cream); }
.nav-cta { flex: 0 0 auto; }
.nav-toggle, .mobile-menu { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 80px; overflow: hidden; background: var(--pattern), var(--bg); }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(18, 133, 91, .35), transparent 60%); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; left: -20%; bottom: -30%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(212, 175, 55, .12), transparent 60%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lead { font-size: 1.12rem; max-width: 560px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; color: var(--muted); }
.hero-points li::before { content: '✓'; color: var(--primary-light); font-weight: 800; margin-right: 8px; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-phone { width: 320px; transform: rotate(-2deg); }

/* ---------- mockup HP ---------- */
.phone {
  margin: 0; flex-shrink: 0; padding: 10px; border-radius: 36px;
  background: linear-gradient(160deg, #1F4A36, #0A1A12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(212, 175, 55, .22);
}
.phone-sm { width: 330px; }
.shot { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: var(--surface); }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Placeholder: tampil selama file assets/shots/... belum ada (main.js). */
.shot.is-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px;
  background: var(--pattern), linear-gradient(180deg, var(--splash), var(--bg));
  outline: 2px dashed rgba(212, 175, 55, .3); outline-offset: -10px;
}
.shot.is-placeholder::before { content: '🖼️'; font-size: 2rem; opacity: .8; }
.shot .ph-label { font-weight: 700; font-size: .95rem; color: var(--cream); }
.shot .ph-hint { font-size: .75rem; color: var(--dim); }
.shot .ph-file { font-size: .7rem; color: var(--gold); font-family: ui-monospace, Consolas, monospace; word-break: break-all; }

/* ---------- kanvas ayat (meniru VerseCanvas app: 360x640, ukuran huruf dalam cqw = px/3.6) ---------- */
.verse-canvas {
  position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; container-type: inline-size;
  background: linear-gradient(180deg, var(--canvas), #041a12);
}
.vslide {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 10cqw 7cqw 8cqw;
  opacity: 0; transition: opacity .7s ease;
}
.vslide.is-active { opacity: 1; }
.v-heading {
  margin: 0; text-align: center; font-weight: 800; color: #fff; line-height: 1.3;
  font-size: 18px; font-size: 5.3cqw; text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
}
.v-block { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 3.3cqw; }
.v-block p { margin: 0; }
.v-ar { font-family: var(--arabic); color: #fff; line-height: 1.75; font-size: 28px; font-size: 8.3cqw; }
.v-lat { color: var(--gold); font-style: italic; line-height: 1.45; font-size: 12px; font-size: 3.6cqw; }
.v-tr { color: var(--cream); line-height: 1.5; font-size: 13px; font-size: 3.9cqw; }
.v-ref { color: var(--gold); font-weight: 700; font-size: 11px; font-size: 3.3cqw; }
.v-progress { position: absolute; left: 7cqw; right: 7cqw; bottom: 4cqw; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.v-progress span { display: block; height: 100%; width: 0; background: var(--gold); }
.v-progress span.run { animation: vprog var(--slide-ms, 4500ms) linear forwards; }
@keyframes vprog { to { width: 100%; } }

/* ---------- pita cara mencari ---------- */
.band { border-block: 1px solid var(--border); background: var(--surface); padding: 28px 0; }
.band-title { text-align: center; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--dim); margin-bottom: 18px; }
.source-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.source { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.source b { display: block; font-size: .98rem; }
.source small { color: var(--muted); font-size: .82rem; }
.ic {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; font-weight: 800;
  background: linear-gradient(135deg, rgba(18, 133, 91, .45), rgba(212, 175, 55, .2)); color: var(--cream);
  border: 1px solid rgba(212, 175, 55, .2);
}

/* ---------- section ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--pattern), var(--surface); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); }

.feature-row { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; margin-bottom: 80px; }
.feature-row.reverse { grid-template-columns: auto 1fr; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy { max-width: 560px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem; font-weight: 800; background: rgba(52, 178, 127, .16); color: var(--primary-light);
}

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); overflow-wrap: anywhere; }
.card .ic { margin-bottom: 14px; }
.card p { margin: 0; font-size: .95rem; }
.pillar { border-top: 2px solid var(--gold); }

/* ---------- suara ---------- */
.mode { text-align: center; }
.mode-tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800;
  background: rgba(52, 178, 127, .14); color: var(--primary-light);
}
.mode.is-featured { border-color: rgba(212, 175, 55, .55); background: linear-gradient(160deg, var(--gold-soft), transparent 70%), var(--card); }
.mode.is-featured .mode-tag { background: var(--gold-soft); color: var(--gold); }
.qari { margin: 32px auto 0; max-width: 820px; text-align: center; }
.qari h4 { margin-bottom: 12px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.chips li { font-size: .88rem; padding: 6px 14px; border-radius: 999px; background: rgba(212, 175, 55, .06); border: 1px solid rgba(212, 175, 55, .3); color: var(--cream); }
.note { max-width: 720px; margin: 24px auto 0; text-align: center; font-size: .82rem; color: var(--dim); }

/* ---------- langkah ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.steps p { margin: 0; font-size: .93rem; }
.num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px;
  background: var(--primary); color: #fff; font-weight: 800;
}

/* ---------- harga ---------- */
.price-card {
  max-width: 520px; margin: 0 auto; padding: 32px; text-align: center; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--gold-soft), transparent 60%), var(--card); border: 1px solid rgba(212, 175, 55, .5);
}
.price-badge {
  display: inline-block; margin: 0 0 20px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800;
  letter-spacing: .04em; background: var(--gold-soft); color: var(--gold);
}
.price-card .checks { text-align: left; margin-bottom: 26px; }
.price-foot { margin: 16px 0 0; font-size: .85rem; color: var(--dim); }
.price-foot a { color: var(--cream); text-decoration: underline; }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--border); padding: 4px 0; }
summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.02rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p, details ul, details ol { padding-bottom: 14px; margin: 0; color: var(--muted); }
details ul, details ol { padding-left: 22px; }

/* ---------- CTA akhir & footer ---------- */
.cta-final {
  padding: 96px 0; text-align: center;
  background: radial-gradient(ellipse at center, rgba(18, 133, 91, .3), transparent 65%), var(--pattern), var(--bg);
}
.cta-final img { margin: 0 auto 20px; border-radius: 18px; }
.cta-final .version-line { margin: 20px 0 0; font-size: .85rem; color: var(--dim); }
.footer { border-top: 1px solid var(--border); padding: 28px 0 96px; font-size: .9rem; color: var(--dim); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer nav { display: flex; gap: 20px; }
.footer a:hover { color: var(--cream); }
.attrib a { text-decoration: underline; }

/* Tombol beli melayang (HP), muncul setelah hero terlewati. */
.sticky-buy {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: none;
  transform: translateY(140%); transition: transform .25s ease;
}
.sticky-buy.show { transform: translateY(0); }

/* ---------- responsif ---------- */
@media (max-width: 1100px) {
  .nav-inner { gap: 14px; }
  .nav-links { gap: 14px; font-size: .88rem; }
  .hero-grid { gap: 32px; }
  .feature-row, .feature-row.reverse { gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .hero-points { justify-content: center; }
  .source-list, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .nav-inner { height: 60px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle {
    display: flex; width: 42px; height: 42px; padding: 0; flex: 0 0 42px; border: 1px solid var(--border); border-radius: 12px;
    background: rgba(255, 255, 255, .05); color: var(--cream); align-items: center; justify-content: center; flex-direction: column; gap: 4px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .mobile-menu {
    position: fixed; left: 12px; right: 12px; top: 68px; z-index: 49; display: flex; flex-direction: column; gap: 4px; padding: 10px;
    background: rgba(14, 36, 26, .97); border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .mobile-menu a:not(.btn) { padding: 12px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; }
  .mobile-menu a:not(.btn):hover, .mobile-menu a:not(.btn):active { background: rgba(255, 255, 255, .06); color: var(--cream); }
  .mobile-menu .btn { margin-top: 6px; width: 100%; }

  .hero { padding: 42px 0 58px; }
  .hero-phone { width: min(280px, 72vw); }
  .section { padding: 58px 0; }
  .section-head { margin-bottom: 34px; }
  .feature-row, .feature-row.reverse { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-bottom: 56px; }
  .feature-row.reverse .feature-copy { order: 0; }
  .feature-row > .phone { justify-self: center; }
  .phone-sm { width: min(310px, 86vw); }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .sticky-buy { display: flex; }
  .cta-row .btn { flex: 1 1 100%; width: 100%; }
  .price-card { padding: 24px 18px; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 14px; }
  .nav-inner { gap: 8px; }
  .brand { font-size: 1rem; gap: 7px; }
  .brand img { width: 28px; height: 28px; }
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  h1 { font-size: clamp(1.9rem, 10vw, 2.7rem); }
  h2 { font-size: clamp(1.45rem, 8vw, 2.1rem); }
  .lead { font-size: 1rem; }
  .hero-points { gap: 7px 14px; font-size: .86rem; }
  .hero-phone { width: min(260px, 74vw); }
  .source-list, .steps, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .source { padding: 12px; }
  .card, .steps li { padding: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .wrap { padding-inline: 12px; }
  .btn { white-space: normal; min-height: 48px; }
  summary { padding-right: 32px; font-size: .96rem; }
}
@media (min-width: 801px) {
  .mobile-menu { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky-buy, summary::after, .vslide { transition: none; }
}
