/* Laman web Madrasah Online (baitalsalihin.com). Warna & huruf sama dengan apps supaya pengguna iklan rasa sambungan. */
:root {
  --night: #0b3d37;      /* hijau mushaf gelap: latar hero */
  --green: #0d4b44;      /* hijau jenama */
  --gold: #c9a96a;       /* emas bingkai mushaf */
  --gold-ink: #1d1405;
  --mint: #e8f2ef;       /* latar bahagian lembut */
  --ink: #102221;
  --muted: #4b5f5c;
  --line: #d6e3df;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-display: "Amiri", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.1875rem/1.6 var(--f-body); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: .18em; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
h2 { font-family: var(--f-display); font-size: clamp(1.9rem, 4.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: #fff; padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: .5rem; }
.muted { color: var(--muted); }

/* butang */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.4rem; padding: 0 1.6rem; border-radius: 999px; font-weight: 700; font-size: 1.08rem; text-decoration: none; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #d7b97c; }
.btn-line-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-line-light:hover { border-color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #0a3d37; }

/* kepala */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 61, 55, .96); backdrop-filter: blur(6px); color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 2.6rem; height: 2.6rem; object-fit: contain; background: #f7f4ec; border-radius: 10px; padding: 2px; }
.top-nav { display: flex; gap: 1.4rem; font-size: 1rem; }
.top-nav a { color: #e6f0ee; text-decoration: none; font-weight: 700; padding: .4rem 0; }
.top-nav a:hover { color: var(--gold); }
@media (max-width: 640px) { .top-nav a:not(.js-app) { display: none; } }

/* hero: perkataan pertama wahyu sebagai elemen utama */
.hero { position: relative; overflow: hidden; background: var(--night) url("/site/pattern.svg"); color: #fff; padding: 2.5rem 0 0; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: end; }
.hero-copy { padding-bottom: 4rem; }
.iqra { font-family: var(--f-display); font-size: clamp(5.5rem, 16vw, 10rem); line-height: 1.45; color: var(--gold); direction: rtl; text-align: left; margin: 0; }
.hero h1 { font-family: var(--f-display); font-size: clamp(2.3rem, 5.4vw, 3.6rem); font-weight: 700; max-width: 15ch; }
.lead { font-size: 1.25rem; color: #d9e8e4; max-width: 34ch; margin-top: 1.1rem; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.1rem; font-size: 1rem; color: #b9d2cc; max-width: 40ch; }
.phone { margin: 0; justify-self: center; width: min(320px, 78vw); border: 10px solid #062824; border-bottom: 0; border-radius: 44px 44px 0 0; overflow: hidden; background: #fff; box-shadow: 0 -10px 60px rgba(201, 169, 106, .18); max-height: 560px; }
.phone img { width: 100%; }
@media (max-width: 860px) {
  .hero { padding-top: 1.5rem; }
  .hero-in { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { padding-bottom: 0; }
  .iqra { text-align: right; margin: -.6rem 0 -1.2rem; }
  .cta .btn { flex: 1 1 100%; }
  .phone { max-height: 420px; }
}

/* kenapa */
.why { padding: 5rem 0 4rem; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2.2rem; }
.why-grid h3 { font-family: var(--f-display); font-size: 1.5rem; color: var(--green); margin-bottom: .4rem; }
.why-grid p { color: var(--muted); max-width: 30ch; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* jelajah 3D */
.tour { background: var(--night) url("/site/pattern.svg"); color: #fff; padding: 4.5rem 0; }
.tour-kicker { color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; margin-bottom: .4rem; }
.tour-lead { color: #d9e8e4; max-width: 52ch; margin-top: .8rem; }
.tour-grid { display: grid; grid-template-columns: 1.55fr .9fr; gap: 1.6rem; margin-top: 2rem; align-items: stretch; }
.tour-stage { position: relative; min-height: 520px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(201, 169, 106, .35);
  background: radial-gradient(110% 85% at 50% 18%, #17594f 0%, #0d433b 55%, #082f2a 100%); }
.tour-stage.off { display: none; }
.tour-load { position: absolute; inset: 0; display: grid; place-items: center; color: #b9d2cc; }
.tour-info { display: flex; flex-direction: column; gap: 1.2rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; padding: 1.6rem; }
.tour-info h3 { font-family: var(--f-display); font-size: 1.8rem; margin: .35rem 0 .5rem; }
.tour-info p { color: #d9e8e4; }
.tour-tag { display: inline-block; color: var(--gold-ink); background: var(--gold); border-radius: 99px; padding: .15rem .7rem; font-size: .85rem; font-weight: 700; }
.tour-more { display: inline-block; margin-top: .7rem; color: var(--gold); font-weight: 700; }
.tour-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.tour-list button { font: inherit; font-size: .95rem; font-weight: 700; color: #fff; background: transparent; border: 2px solid rgba(255, 255, 255, .3); border-radius: 99px; padding: .45rem .95rem; cursor: pointer; }
.tour-list button:hover { border-color: var(--gold); }
.tour-list button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.tour-info .btn { align-self: flex-start; }
@media (max-width: 860px) {
  .tour-grid { grid-template-columns: 1fr; }
  .tour-stage { min-height: 0; height: 56vh; max-height: 460px; }
}
/* dunia 3D (komponen dikongsi dengan panel admin) */
.m3d-root, .m3d-root canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.m3d-ov { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.m3d-card { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: flex-start; padding: .45rem .75rem .5rem;
  min-width: 7.5rem; max-width: 12rem; text-align: left; border-radius: 12px; cursor: pointer; font: inherit; color: var(--ink);
  background: rgba(255, 252, 245, .92); border: 1px solid rgba(201, 169, 106, .6); box-shadow: 0 8px 22px rgba(0, 0, 0, .25); will-change: transform; }
.m3d-card::after { content: ""; position: absolute; left: var(--sx, 50%); top: 100%; width: 1.5px; height: var(--stem, 10px); background: rgba(255, 255, 255, .55); pointer-events: none; }
.m3d-card.on, .m3d-card:hover, .m3d-card:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold), 0 8px 22px rgba(0, 0, 0, .3); outline: none; }
.m3d-cl { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.m3d-cv { font-size: 1.05rem; line-height: 1.25; }
.m3d-card[data-zone="ringkasan"] .m3d-cv { font-family: var(--f-display); font-size: 1.35rem; }
.m3d-cs { font-size: .75rem; color: var(--muted); }
.m3d-hint { position: absolute; right: .8rem; top: .7rem; font-size: .78rem; color: #d9e8e4; background: rgba(0, 0, 0, .25); padding: .25rem .65rem; border-radius: 99px; }
.m3d-live { display: none; }
@media (max-width: 559px) {
  .m3d-card { min-width: 0; padding: .3rem .55rem .35rem; }
  .m3d-cs { display: none; }
  .m3d-card:not([data-zone="ringkasan"]):not(.on) { display: none; }
  .m3d-hint { left: .6rem; right: auto; top: .6rem; font-size: .7rem; }
}

/* fungsi */
.features { background: var(--mint); padding: 4.5rem 0; }
.feat { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
.feat li { display: flex; gap: 1rem; align-items: flex-start; }
.feat svg { flex: none; width: 2.6rem; height: 2.6rem; padding: .55rem; border-radius: 50%; background: #fff; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat svg .fill { fill: var(--green); }
.feat h3 { margin-bottom: .25rem; }
.feat p { color: var(--muted); }
@media (max-width: 760px) { .feat { grid-template-columns: 1fr; gap: 1.6rem; } }

/* langkah: memang satu turutan, jadi bernombor */
.steps { padding: 4.5rem 0; }
.step-list { list-style: none; counter-reset: s; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-list li { counter-increment: s; display: flex; flex-direction: column; gap: .35rem; border-top: 3px solid var(--gold); padding-top: 1rem; }
.step-list li::before { content: counter(s); font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--green); }
.step-list b { font-size: 1.2rem; }
.step-list span { color: var(--muted); }
@media (max-width: 760px) { .step-list { grid-template-columns: 1fr; } }

/* harga */
.price { background: var(--mint); padding: 4.5rem 0; }
.price-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.price-in > div:first-child p { color: var(--muted); margin-top: 1rem; max-width: 36ch; }
.plans { display: flex; flex-direction: column; background: #fff; border-radius: 20px; padding: .4rem 1.4rem; }
.plan { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.plan:last-child { border-bottom: 0; }
.plan b { font-size: 1.15rem; }
.plan .amt { font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.plan .per { display: block; font-size: .95rem; color: var(--muted); }
.plans .free { padding: 1rem 0 1.1rem; color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) { .price-in { grid-template-columns: 1fr; gap: 1.6rem; } }

/* muat turun */
.get { padding: 4.5rem 0; }
.stores { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.store { display: inline-flex; align-items: center; gap: .8rem; min-width: 14rem; padding: .7rem 1.4rem .7rem 1.1rem; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; }
.store svg { width: 2rem; height: 2rem; fill: #fff; stroke: none; }
.store#store-play svg { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-size: .85rem; opacity: .8; }
.store b { font-size: 1.25rem; }
.store[aria-disabled="true"] { background: #e3ebe9; color: var(--muted); cursor: default; }
.store[aria-disabled="true"] svg { fill: var(--muted); }
.store#store-play[aria-disabled="true"] svg { fill: none; stroke: var(--muted); }
.get-note { margin-top: 1.4rem; color: var(--muted); max-width: 52ch; }

/* sumbang */
.give { background: var(--night) url("/site/pattern.svg"); color: #fff; padding: 4rem 0; }
.give-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.give p { color: #d9e8e4; max-width: 48ch; margin-top: .8rem; }
.give .btn-green { background: var(--gold); color: var(--gold-ink); }

/* soalan lazim */
.faq { padding: 4.5rem 0 5rem; }
.faq h2 { margin-bottom: 1.6rem; }
.faq details { border-bottom: 1px solid var(--line); max-width: 46rem; }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 700; font-size: 1.15rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .9rem; font-size: 1.6rem; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 1.2rem; color: var(--muted); max-width: 60ch; }

/* kaki */
.foot { background: #062824; color: #c8d9d5; padding: 3rem 0 3.5rem; font-size: 1rem; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot a { color: #fff; }
.foot-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: .6rem; }
.foot-brand img { width: 2.2rem; height: 2.2rem; object-fit: contain; background: #f7f4ec; border-radius: 8px; padding: 2px; }
.foot-h { color: #fff; font-weight: 700; margin-bottom: .4rem; }
.foot p + p { margin-top: .3rem; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }
