/* ==========================================================================
   ZakatApp — Landing page
   Konsep: buku ledger/kas masjid (garis penggaris, kartu kupon, tinta
   stempel "TERVERIFIKASI") yang didigitalkan jadi verifikasi scan
   real-time. Palet warna disamakan persis dengan aplikasinya sendiri
   (lihat :root di upz.css) — indigo/cyan sebagai warna utama, hijau/
   kuning/merah untuk status, supaya landing page & aplikasi terasa
   satu produk yang sama.
   ========================================================================== */

:root {
  /* --- Palet: disamakan dengan upz.css (aplikasi) --- */
  --paper: #f1f5f9;          /* = --bg-base aplikasi */
  --paper-line: #e2e8f0;     /* = --border aplikasi */
  --paper-raised: #f8fafc;   /* = --bg-card2 aplikasi */
  --card: #ffffff;           /* = --bg-card aplikasi */
  --ink: #0f172a;            /* = --text-primary aplikasi */
  --ink-soft: #64748b;       /* = --text-secondary aplikasi */
  --cover: #0f172a;          /* bagian gelap — = --bg-base tema gelap aplikasi */
  --cover-line: #334155;     /* = --border tema gelap aplikasi */
  --cover-text: #f1f5f9;
  --cover-text-soft: #94a3b8;
  --stamp: #4f46e5;          /* tinta stempel — = --primary aplikasi (indigo) */
  --stamp-dark: #3730a3;     /* = --primary-dark aplikasi */
  --verified: #10b981;       /* = --success aplikasi */
  --verified-soft: #d1fae5;
  --brass: #06b6d4;          /* aksen kedua — = --secondary aplikasi (cyan) */
  --warning: #f59e0b;        /* = --warning aplikasi */
  --warning-soft: #fef3c7;
  --danger: #ef4444;         /* = --danger aplikasi */
  --danger-soft: #fee2e2;
  --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%); /* = --bg-header aplikasi, dipakai login & tombol utama */

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--stamp); color: var(--paper); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* Garis kertas ledger sebagai tekstur latar global */
.ruled {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 37px,
    var(--paper-line) 37px,
    var(--paper-line) 38px
  );
}

/* --------------------------- Fokus & aksesibilitas --------------------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--stamp);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------- Nav ---------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(241, 245, 249, 0.88);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--paper-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand img { width: 30px; height: 30px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(79, 70, 229, 0.6); }

/* --------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  padding: 64px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stamp-dark);
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow::before { content: "●"; font-size: 0.6rem; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  color: var(--stamp);
}

.hero p.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(79, 70, 229, 0.6); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.hero-meta strong { color: var(--ink); display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }

/* --------------------------------- Bagikan --------------------------------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-share { position: relative; display: inline-block; }
.nav-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.nav-share-btn svg { width: 15px; height: 15px; flex: none; }
.nav-share-btn:hover,
.nav-share-btn:focus-visible { background: var(--ink); color: var(--paper); transform: translateY(-1px); }

.share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  box-shadow: 0 20px 44px -28px rgba(15, 23, 42, 0.5);
  padding: 6px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.share-menu[hidden] { display: none; }
.share-menu a,
.share-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.share-menu a:hover,
.share-menu button:hover { background: var(--paper-raised); }
.share-menu svg { width: 17px; height: 17px; flex: none; color: var(--verified); }

/* --------------------- Signature element: kupon -> stempel --------------------- */
.stub-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coupon {
  position: relative;
  width: min(340px, 88%);
  background: var(--card);
  border-radius: 10px;
  padding: 26px 24px 30px;
  box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.45), 0 2px 0 var(--paper-line);
  transform: rotate(-3deg);
  font-family: var(--font-mono);
}

.coupon::before,
.coupon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  background: var(--paper);
  border-radius: 50%;
  transform: translateY(-50%);
}
.coupon::before { left: -13px; }
.coupon::after { right: -13px; }

.coupon-perf {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 74%;
  width: 0;
  border-left: 2px dashed #cbd5e1;
}

.coupon-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 6px; }
.coupon-row b { color: var(--ink); font-weight: 600; }
.coupon-kode { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); margin: 10px 0 14px; letter-spacing: 0.01em; }
.coupon-barcode {
  height: 46px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 7px, transparent 7px 11px, var(--ink) 11px 12px, transparent 12px 17px);
  margin-bottom: 16px;
  opacity: 0.85;
}

.stamp-mark {
  position: absolute;
  top: 8%;
  right: 4%;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--stamp);
  color: var(--stamp);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transform: rotate(14deg) scale(0);
  opacity: 0;
  filter: url(#inkRough);
  mix-blend-mode: multiply;
}
.stamp-mark span { display: block; }
.stamp-mark .check { font-size: 1.7rem; line-height: 1; margin-top: 2px; }

.stub-stage.is-stamped .stamp-mark {
  animation: stampDown 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) 0.5s forwards;
}
.stub-stage.is-stamped .coupon { animation: couponSettle 0.5s ease-out 0.15s both; }

@keyframes stampDown {
  0% { transform: rotate(14deg) scale(2.4); opacity: 0; }
  60% { opacity: 0.9; }
  100% { transform: rotate(14deg) scale(1); opacity: 0.92; }
}
@keyframes couponSettle {
  0% { transform: rotate(-3deg) translateY(14px); }
  100% { transform: rotate(-3deg) translateY(0); }
}

.floating-note {
  position: absolute;
  bottom: 6%;
  left: 4%;
  background: var(--cover);
  color: var(--cover-text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(10px);
}
.stub-stage.is-stamped .floating-note {
  animation: noteIn 0.5s ease-out 1s forwards;
}
.floating-note b { color: #c7d2fe; }
@keyframes noteIn { to { opacity: 1; transform: translateY(0); } }

/* ------------------------------- Section shell ------------------------------- */
section { position: relative; padding: 88px 0; }

.section-head { max-width: 640px; margin: 0 0 52px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  line-height: 1.15;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; max-width: 56ch; }

/* Perforasi pemisah section — motif kupon yang disobek */
.perf-divider {
  height: 26px;
  background-image: radial-gradient(circle, var(--paper) 4px, transparent 4.5px);
  background-size: 22px 22px;
  background-position: center;
  background-color: var(--paper-line);
  opacity: 0.7;
}

/* ------------------------------- Capaian (sejak 2018) ------------------------------- */
.capaian-headline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 40px 0 14px;
  padding: 30px 0;
  border-top: 4px double var(--ink);
  border-bottom: 4px double var(--ink);
}
.capaian-total { text-align: center; }
.capaian-total strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  color: var(--stamp);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.capaian-total span { color: var(--ink-soft); font-size: 0.95rem; }
.capaian-total + .capaian-total { border-left: 1px dashed var(--paper-line); }

.capaian-formula {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 44px;
}

.capaian-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.capaian-card {
  padding: 32px 26px;
  border-left: 1px dashed var(--paper-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.capaian-card:first-child { border-left: none; }
.capaian-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  color: var(--stamp);
  letter-spacing: -0.01em;
}
.capaian-card span { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.45; }

/* ------------------------------- Masalah ------------------------------- */
.masalah { background: var(--paper-raised); }

.masalah-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.ledger-mess {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 20px 44px -28px rgba(15, 23, 42, 0.4);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  transform: rotate(1.2deg);
}
.ledger-mess-title { font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 14px; }
.ledger-mess-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--paper-line); gap: 10px; }
.ledger-mess-row:last-child { border-bottom: none; }
.ledger-mess-row .flag { color: var(--danger); font-weight: 700; }
.strike { text-decoration: line-through; text-decoration-color: var(--danger); opacity: 0.65; }

.masalah-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.masalah-list li { display: flex; gap: 14px; }
.masalah-list .glyph {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
}
.masalah-list p { margin: 0; color: var(--ink-soft); }
.masalah-list strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* ------------------------------- Cara kerja ------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.step {
  counter-increment: step;
  background: var(--paper);
  padding: 30px 24px 26px;
  position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--verified);
  display: block;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.step h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ------------------------------- Alur verifikasi (flow) ------------------------------- */
.flow-start {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.flow-node {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-align: center;
  box-shadow: 0 16px 34px -26px rgba(15, 23, 42, 0.4);
}
.flow-node-icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.flow-node h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; }
.flow-node p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.flow-node-scan { border-color: var(--verified); background: var(--verified-soft); }

.flow-down {
  width: 2px;
  height: 30px;
  margin: 4px auto;
  background-image: repeating-linear-gradient(to bottom, var(--ink-soft) 0 5px, transparent 5px 10px);
}

.flow-connector {
  max-width: 1100px;
  margin: 0 auto;
  height: 60px;
}
.flow-connector svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.6;
  stroke-dasharray: 3 4;
  stroke-linecap: round;
}

.flow-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.flow-branch {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.flow-branch-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.flow-branch h4 { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; margin: 0 0 6px; }
.flow-branch p { margin: 0; color: var(--ink-soft); font-size: 0.86rem; }

.flow-branch-ok .flow-branch-mark { background: var(--verified-soft); color: var(--verified); }
.flow-branch-ok { border-color: #a7f3d0; }
.flow-branch-fake .flow-branch-mark { background: var(--danger-soft); color: var(--danger); }
.flow-branch-fake { border-color: #fecaca; }
.flow-branch-dup .flow-branch-mark { background: var(--warning-soft); color: var(--warning); }
.flow-branch-dup { border-color: #fde68a; }

/* ------------------------------- Tampilan aplikasi (phone) ------------------------------- */
.tampilan-app { background: var(--paper-raised); }
.tampilan-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.tampilan-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.tampilan-points li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.tampilan-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--verified);
  font-weight: 700;
}

.phone { display: flex; flex-direction: column; align-items: center; }
.phone-frame {
  width: min(280px, 100%);
  background: #0f172a;
  border-radius: 34px;
  padding: 12px;
  box-shadow: 0 40px 70px -30px rgba(15, 23, 42, 0.6);
}
.phone-notch {
  width: 70px;
  height: 16px;
  background: #0f172a;
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.phone-screen {
  background: #0b1120;
  border-radius: 24px;
  margin-top: -16px;
  overflow: hidden;
  font-family: var(--font-body);
  color: #f1f5f9;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 14px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}
.app-topbar-actions { opacity: 0.7; font-size: 0.72rem; letter-spacing: 4px; }

.app-camera {
  position: relative;
  aspect-ratio: 3 / 4;
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0b1120 75%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-frame {
  position: relative;
  width: 74%;
  aspect-ratio: 1.4 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-card-illust {
  width: 92%;
  background: #ffffff;
  border-radius: 6px;
  padding: 10px 12px;
  transform: rotate(-2deg);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
}
.scan-card-barcode {
  height: 22px;
  background: repeating-linear-gradient(90deg, #0f172a 0 2px, transparent 2px 4px, #0f172a 4px 5px, transparent 5px 8px);
}
.scan-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid #4f46e5;
}
.scan-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.scan-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.scan-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 6px 0; }
.scan-line {
  position: absolute;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  box-shadow: 0 0 8px 1px rgba(16, 185, 129, 0.7);
  animation: scanSweep 2.2s ease-in-out infinite;
}
@keyframes scanSweep {
  0%, 100% { top: 6%; }
  50% { top: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-line { animation: none; top: 50%; }
}

.app-camera-status {
  position: absolute;
  bottom: 8%;
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0;
}

.app-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 20px;
  background: #0b1120;
}
.app-result-photo {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f46e5, #818cf8);
}
.app-result-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-result-info strong { font-size: 0.76rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-result-info span { font-size: 0.72rem; color: #10b981; }

.phone-caption { margin: 16px 0 0; font-size: 0.76rem; color: var(--ink-soft); text-align: center; }

/* ---- Toggle kamera/RFID & simulasi interaktif di mockup phone ---- */
.phone-mode-toggle {
  display: flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 14px;
}
.phone-mode-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.phone-mode-btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 4px 10px -4px rgba(15, 23, 42, 0.25); }

.app-camera { cursor: pointer; }
/* .scan-frame/.nfc-frame punya display:flex sendiri, jadi perlu dikalahkan
   scr eksplisit di sini supaya atribut [hidden] (dipakai buat toggle mode
   kamera/RFID) benar2 menyembunyikannya, bukan cuma diabaikan krn kalah
   spesifisitas sama browser default stylesheet. */
.scan-frame[hidden], .nfc-frame[hidden] { display: none; }

.nfc-frame {
  position: relative;
  width: 74%;
  aspect-ratio: 1.4 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nfc-card-illust {
  position: relative;
  z-index: 2;
  width: 58%;
  aspect-ratio: 1.55 / 1;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nfc-card-chip {
  width: 30%;
  aspect-ratio: 1.3 / 1;
  border-radius: 4px;
  background: linear-gradient(135deg, #EDBD1D, #f5d873);
}
.nfc-wave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(16, 185, 129, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0.8;
  animation: nfcPulse 1.8s ease-out infinite;
}
.nfc-wave-2 { animation-delay: 0.5s; }
.nfc-wave-3 { animation-delay: 1s; }
@keyframes nfcPulse {
  to { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nfc-wave { animation: none; opacity: 0.35; }
}

.phone-demo-btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}
.app-result.is-flash { animation: appResultFlash 0.6s ease; }
@keyframes appResultFlash {
  0% { background: rgba(16, 185, 129, 0.35); }
  100% { background: #0b1120; }
}
@media (prefers-reduced-motion: reduce) {
  .app-result.is-flash { animation: none; }
}

/* ------------------------------- Fitur ------------------------------- */
.fitur-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.fitur-card {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fitur-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(15, 23, 42, 0.45); }
.fitur-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--verified-soft);
  color: var(--verified);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.fitur-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 0 0 8px; }
.fitur-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ------------------------------- Untuk siapa ------------------------------- */
.audiens { background: var(--cover); color: var(--cover-text); }
.audiens .section-head p { color: var(--cover-text-soft); }
.audiens .eyebrow { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); color: #c7d2fe; }

.audiens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.audiens-card {
  border: 1px solid var(--cover-line);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: rgba(255,255,255,0.03);
}
.audiens-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
.audiens-card p { margin: 0; color: var(--cover-text-soft); font-size: 0.88rem; }

/* ------------------------------- Tanya-jawab (FAQ) ------------------------------- */
.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 4px 24px;
}
.faq-item + .faq-item { margin-top: 0; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--stamp);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--stamp); outline-offset: 4px; }
.faq-item p { margin: 0 0 20px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; max-width: 62ch; }

/* ------------------------------- Galeri kegiatan ------------------------------- */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.galeri-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  background: var(--paper-raised);
  box-shadow: 0 16px 34px -26px rgba(15, 23, 42, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.galeri-item:hover,
.galeri-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -24px rgba(15, 23, 42, 0.5);
}
.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.galeri-item:hover img { transform: scale(1.05); }
.galeri-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.82));
  color: #f1f5f9;
  font-size: 0.82rem;
  text-align: left;
  line-height: 1.35;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { max-width: min(640px, 90vw); margin: 0; text-align: center; }
.lightbox-figure img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.lightbox-figure figcaption {
  color: #cbd5e1;
  font-size: 0.86rem;
  margin-top: 14px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox-close:hover,
.lightbox-close:focus-visible { background: rgba(255, 255, 255, 0.15); }

/* ------------------------------- Asal usul ------------------------------- */
.asal-photo {
  width: 100%;
  max-width: 340px;
  margin: 0 0 26px;
  border-radius: 12px;
  overflow: hidden;
  border: 6px solid var(--card);
  box-shadow: 0 20px 44px -24px rgba(15, 23, 42, 0.45);
  transform: rotate(-2deg);
}
.asal-photo img { width: 100%; height: auto; }

.asal-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.asal-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 20px;
}
.asal-quote em { color: var(--stamp); font-style: italic; }
.asal-byline { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }
.asal-byline strong { color: var(--ink); }

.asal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card {
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 22px;
}
.stat-card strong { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; margin-bottom: 4px; }
.stat-card span { color: var(--ink-soft); font-size: 0.88rem; }

/* ------------------------------- Pembayaran zakat ------------------------------- */
.bayar { background: var(--paper-raised); }
.bayar-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}
.bayar-card {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 20px 44px -30px rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bayar-card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.bayar-bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.bayar-bank-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
}
.bayar-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bayar-copy:hover,
.bayar-copy:focus-visible { background: var(--ink); color: var(--paper); }
.bayar-copy.is-copied { background: var(--verified); border-color: var(--verified); color: #fff; }

.bayar-rekening {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: 0.03em;
  color: var(--stamp);
  margin-bottom: 10px;
}
.bayar-an { font-size: 0.86rem; color: var(--ink-soft); }

.bayar-card-qris { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bayar-qris-frame {
  width: 100%;
  max-width: 220px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 14px;
}
.bayar-qris-frame img { width: 100%; aspect-ratio: 210 / 295; object-fit: contain; display: block; }

/* ------------------------------- CTA penutup ------------------------------- */
.cta-penutup {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-raised) 100%);
  text-align: center;
}
.cta-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 40px;
  background: var(--cover);
  color: var(--cover-text);
  border-radius: 22px;
  box-shadow: 0 40px 70px -32px rgba(15, 23, 42, 0.55);
}
.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 14px;
}
.cta-box p { color: var(--cover-text-soft); margin: 0 0 30px; font-size: 1.02rem; }
.cta-box .hero-actions { justify-content: center; margin-bottom: 0; }
.cta-box .btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--cover-text); }
.cta-box .btn-ghost:hover { background: var(--cover-text); color: var(--cover); }

/* ---------------------------------- Footer ---------------------------------- */
footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--paper-line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer-inner a { text-decoration: none; border-bottom: 1px solid var(--paper-line); }

/* ---------------------------------- Chat widget ---------------------------------- */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 60; }

.chat-fab {
  display: flex;
  align-items: center;
  gap: 9px;
  border: none;
  border-radius: 999px;
  padding: 14px 20px 14px 16px;
  background: var(--brand-gradient);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 16px 32px -14px rgba(79, 70, 229, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(79, 70, 229, 0.6); }
.chat-fab:focus-visible { outline: 2px solid var(--stamp-dark); outline-offset: 3px; }
.chat-fab-icon-close { display: none; }
.chat-fab[aria-expanded="true"] .chat-fab-icon-chat { display: none; }
.chat-fab[aria-expanded="true"] .chat-fab-icon-close { display: block; }
.chat-fab[aria-expanded="true"] .chat-fab-label { display: none; }

.chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(360px, calc(100vw - 40px));
  max-height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }

.chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 16px 18px;
  background: var(--brand-gradient);
  color: #fff;
  flex-shrink: 0;
}
.chat-panel-title { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid; place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.chat-panel-title strong { display: block; font-family: var(--font-display); font-size: 0.98rem; line-height: 1.2; }
.chat-panel-title span { display: block; font-size: 0.74rem; opacity: 0.85; margin-top: 2px; }
.chat-close {
  border: none; background: rgba(255,255,255,0.15); color: #fff;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
  font-size: 0.85rem;
}
.chat-close:hover { background: rgba(255,255,255,0.28); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper-raised);
}
.chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.5; }
.chat-msg-bot { align-self: flex-start; background: var(--card); border: 1px solid var(--paper-line); border-bottom-left-radius: 4px; color: var(--ink); }
.chat-msg-user { align-self: flex-end; background: var(--stamp); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg-cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 2px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  box-shadow: 0 10px 20px -10px rgba(37, 211, 102, 0.6);
}
.chat-msg-cta:hover { filter: brightness(1.05); }
.chat-msg-cta.is-secondary { background: transparent; color: var(--stamp); border: 1px solid var(--paper-line); box-shadow: none; }

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  background: var(--paper-raised);
  flex-shrink: 0;
}
.chat-quick:empty { display: none; }
.chat-chip {
  border: 1px solid var(--paper-line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chat-chip:hover { background: var(--paper); border-color: var(--stamp); }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--paper-line);
  background: var(--card);
  flex-shrink: 0;
}
.chat-input-row input {
  flex: 1;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--paper-raised);
}
.chat-input-row input:focus { outline: none; border-color: var(--stamp); }
.chat-input-row button {
  width: 40px; height: 40px; flex-shrink: 0;
  border: none; border-radius: 50%;
  background: var(--stamp);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
}
.chat-input-row button:hover { background: var(--stamp-dark); }

@media (max-width: 480px) {
  .chat-widget { right: 14px; bottom: 14px; }
  .chat-fab-label { display: none; }
  .chat-fab { padding: 14px; }
  .chat-panel { width: calc(100vw - 28px); right: -6px; }
}

/* ---------------------------------- Reveal ---------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------- Responsif ---------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .stub-stage { order: -1; max-width: 320px; margin: 0 auto; }
  .masalah-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fitur-grid { grid-template-columns: repeat(2, 1fr); }
  .audiens-grid { grid-template-columns: repeat(2, 1fr); }
  .asal-grid { grid-template-columns: 1fr; gap: 36px; }
  .galeri-grid { grid-template-columns: repeat(2, 1fr); }
  .tampilan-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone { order: -1; }
  .bayar-grid { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 700px) {
  .capaian-headline { grid-template-columns: 1fr; gap: 22px; }
  .capaian-total + .capaian-total { border-left: none; border-top: 1px dashed var(--paper-line); padding-top: 18px; }
  .capaian-grid { grid-template-columns: 1fr; }
  .capaian-card { border-left: none; border-top: 1px dashed var(--paper-line); }
  .capaian-card:first-child { border-top: none; }
  .flow-connector { display: none; }
  .flow-branches { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 40px 0 24px; }
  section { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; }
  .fitur-grid { grid-template-columns: 1fr; }
  .audiens-grid { grid-template-columns: 1fr; }
  .galeri-grid { grid-template-columns: 1fr; }
  .asal-photo { max-width: 260px; }
  .hero-actions .btn, .cta-box .btn { width: 100%; justify-content: center; }
  .hero-actions, .cta-box .hero-actions { flex-direction: column; }
  .hero-meta { gap: 20px; }
  .cta-box { padding: 40px 22px; border-radius: 18px; }
  .nav-cta span.long { display: none; }
  .nav-share-btn { padding: 9px 12px; }
  .nav-share-btn span.long { display: none; }
}
