/* =========================================================
   Bekas Dapuran — app.css
   Design tokens per blueprint-bekasdapuran-meta-ads.md
   ========================================================= */

/* Font di-hosting sendiri (bukan Google Fonts CDN) — menghilangkan
   2 request eksternal (fonts.googleapis.com + fonts.gstatic.com).
   1 file variable font mencakup weight 400–700, subset Latin. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-var-latin.woff2') format('woff2-variations'),
       url('../assets/fonts/inter-var-latin.woff2') format('woff2');
}

:root {
  --bg: #FAF9F6;
  --text: #202124;
  --brand-red: #C9362B;
  /* Hijau WA didalamkan dari #25D366 → #10883F: teks putih di atasnya
     naik dari rasio kontras ~2:1 (gagal WCAG AA) jadi ~4.55:1 (lolos AA
     teks normal). Tetap kebaca sebagai "hijau WhatsApp". */
  --wa-green: #10883F;
  --wa-green-dark: #0C6C32;
  --soft-gray: #F1F2F3;
  /* #73777A → #686C6F: sedikit digelapkan supaya tetap lolos kontras AA (4.5:1)
     saat dipakai di atas background --soft-gray, tidak cuma di atas putih. */
  --stainless: #686C6F;
  --border: #E5E3DE;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
  --shadow: 0 4px 18px rgba(32, 33, 36, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { font-weight: 700; margin: 0 0 12px; line-height: 1.25; letter-spacing: -0.01em; }

h2.section-title {
  font-size: 26px;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

p.section-sub {
  text-align: center;
  color: var(--stainless);
  margin: 0 auto 32px;
  max-width: 560px;
}

section { padding: 56px 0; }
section.alt { background: var(--soft-gray); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-wa {
  background: var(--wa-green);
  color: #fff;
}
.btn-wa:hover { background: var(--wa-green-dark); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--stainless); }

.btn-red {
  background: var(--brand-red);
  color: #fff;
}

.btn-block { width: 100%; }

/* ---------- Placeholder image blocks (swap with real photos later) ---------- */

.ph-img {
  background: repeating-linear-gradient(
    135deg, #E9E7E1, #E9E7E1 10px, #EFEDE8 10px, #EFEDE8 20px
  );
  border: 1px dashed #C9C6BD;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9A968C;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
  padding: 8px;
  min-height: 140px;
}

/* Foto asli (menggantikan .ph-img placeholder begitu foto sudah ada) */
.real-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: none;
  padding: 0;
  background: none;
  display: block;
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}
.navbar .logo {
  font-weight: 700;
  font-size: 18px;
}
.navbar .logo span { color: var(--brand-red); }

/* ---------- Hero ---------- */

.hero { padding-top: 36px; }
.hero .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-text { text-align: center; }
.hero-text h1 {
  font-size: 30px;
  letter-spacing: -0.01em;
}
.hero-text p.sub {
  color: var(--stainless);
  font-size: 16px;
  margin-bottom: 22px;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-points {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13px;
  color: var(--stainless);
  text-align: left;
}
.trust-points li::before { content: "✓ "; color: var(--wa-green-dark); font-weight: 700; }

.hero-image .ph-img { min-height: 220px; }

/* ---------- Trust bar ---------- */

.trust-bar {
  background: var(--soft-gray);
  padding: 16px 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  font-size: 13px;
  color: var(--stainless);
  font-weight: 500;
  text-align: center;
}

/* ---------- Persona chips ("Usaha Kamu yang Mana?") ---------- */

.persona-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.persona-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.persona-chip:hover { border-color: var(--brand-red); }
.persona-chip:active { transform: scale(0.97); }
.persona-chip .emoji { font-size: 17px; }

.persona-note {
  text-align: center;
  font-size: 13px;
  color: var(--stainless);
  margin-top: 22px;
}
.persona-note strong { color: var(--text); }

/* ---------- Testimoni ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-stars { color: #F5A623; font-size: 14px; letter-spacing: 2px; }
.testimonial-quote {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--soft-gray);
  color: var(--stainless);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 13px; }
.testimonial-meta { font-size: 13px; color: var(--stainless); }

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.rating-badge .stars { color: #F5A623; letter-spacing: 1px; }

/* ---------- Grids ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* Kategori cards */
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
  align-self: start;
}
.category-card .ph-img { min-height: 90px; margin-bottom: 12px; }
.category-card h3 { font-size: 15px; margin-bottom: 0; }

.kategori-cta { text-align: center; margin-top: 28px; }

/* Product cards */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-card .ph-img { min-height: 160px; border-radius: 0; border-left: none; border-right: none; border-top: none; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-size: 16px; margin-bottom: 0; }
.product-tag { font-size: 12px; color: var(--wa-green-dark); font-weight: 600; }
.product-size { font-size: 13px; color: var(--stainless); }
.product-body .btn { margin-top: 10px; }

/* Kenapa Bekas Dapuran */
.reason-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.reason-card h3 { font-size: 15px; }
.reason-card p { margin: 0; font-size: 14px; color: var(--stainless); }

/* Barang bekas aman */
.step-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.step-item { text-align: center; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto 10px;
}
.step-item p { margin: 0; font-size: 14px; color: var(--stainless); }

.disclaimer {
  margin-top: 24px;
  font-size: 13px;
  color: var(--stainless);
  text-align: center;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}

/* Custom section */
.custom-box {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}
.custom-box h2 { color: #fff; }
.custom-box p { color: #C9C6BD; }
.custom-highlight {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 12px 0 18px;
}

/* Pengiriman */
.shipping-badge {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-red);
  margin-bottom: 10px;
}
.shipping-factors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}
.shipping-factors span {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--stainless);
}

/* Social proof */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proof-grid .ph-img { min-height: 100px; }

/* Video kiriman & produk (embed YouTube, lazy: iframe baru dimuat saat diklik) */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.video-card { display: flex; flex-direction: column; gap: 8px; }
.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-sm);
  border: none;
  padding: 0;
  background-color: var(--soft-gray);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
}
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35));
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform .15s ease;
}
.video-play svg { margin-left: 2px; }
.video-thumb:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
iframe.video-thumb { border: 0; cursor: default; background: #000; }
.video-caption {
  font-size: 13px;
  color: var(--stainless);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cara belanja */
.cara-belanja-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 4px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}
.faq-icon { transition: transform .2s ease; font-size: 18px; color: var(--stainless); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  font-size: 14px;
  color: var(--stainless);
}
.faq-item.open .faq-answer { max-height: 240px; }
.faq-answer p { padding: 0 4px 16px; margin: 0; }

/* Big CTA */
.big-cta {
  text-align: center;
  background: var(--brand-red);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 22px;
}
.big-cta h2 { color: #fff; }
.big-cta p { color: #FDEEEC; margin-bottom: 22px; }
.big-cta .btn-wa { background: #fff; color: var(--wa-green-dark); }

/* Footer */
footer {
  background: var(--text);
  color: #C9C6BD;
  padding: 40px 0;
  font-size: 13px;
}
footer .container { display: flex; flex-direction: column; gap: 16px; }
footer .foot-logo { color: #fff; font-weight: 700; font-size: 16px; }
footer a:hover { color: #fff; }
footer .foot-links { display: flex; flex-wrap: wrap; gap: 14px; }
footer .foot-copy { color: #8B887F; }
footer .foot-address { color: #8B887F; font-size: 13px; max-width: 420px; }

/* ---------- Tablet / Desktop ---------- */

@media (min-width: 768px) {
  section { padding: 72px 0; }
  h2.section-title { font-size: 32px; }
  .hero-text h1 { font-size: 42px; letter-spacing: -0.02em; }
  .hero-text p.sub { font-size: 18px; max-width: 640px; margin-left: auto; margin-right: auto; }
  .hero-ctas { flex-direction: row; justify-content: center; }
  .hero .container { flex-direction: row-reverse; align-items: center; }
  .hero-text { text-align: left; flex: 1; }
  .hero-image { flex: 1; }
  .trust-points { grid-template-columns: repeat(4, auto); justify-content: center; }
  .grid-2 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .step-row { grid-template-columns: repeat(3, 1fr); }
  .cara-belanja-grid { grid-template-columns: repeat(4, 1fr); }
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
  /* Modifier khusus: galeri 4 foto presisi 2x2 di desktop (dipakai homepage saja) */
  .proof-grid.gallery-4 { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
  .video-grid { grid-template-columns: repeat(4, 1fr); max-width: 900px; margin: 0 auto; }
}

@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   PREMIUM POLISH — murni CSS/JS ringan, tanpa library eksternal,
   tanpa request tambahan. Semua hormat prefers-reduced-motion.
   ========================================================= */

/* Shadow lebih lembut & berlapis (kesan lebih "premium") */
:root {
  --shadow-lg: 0 16px 40px rgba(32, 33, 36, 0.10), 0 2px 8px rgba(32, 33, 36, 0.04);
}

/* Navbar: bayangan tipis begitu halaman di-scroll (kedalaman visual) */
.navbar { transition: box-shadow .25s ease; }
.navbar.is-scrolled { box-shadow: 0 2px 14px rgba(32, 33, 36, 0.07); }

/* Card: angkat halus + bayangan lebih dalam saat hover (desktop only,
   supaya tidak ganggu tap di mobile) */
@media (hover: hover) and (pointer: fine) {
  .product-card, .reason-card, .category-card {
    transition: transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s cubic-bezier(.16,1,.3,1);
  }
  .product-card:hover, .reason-card:hover, .category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  .persona-chip { transition: transform .2s ease, box-shadow .2s ease; }
  .persona-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
}

/* Foto di dalam card: sedikit membesar saat card di-hover */
img.real-photo { transition: transform .4s cubic-bezier(.16,1,.3,1); }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover img.real-photo,
  .category-card:hover img.real-photo {
    transform: scale(1.045);
  }
}

/* CTA utama: glow lembut yang "napas" pelan-pelan, menarik perhatian
   tanpa norak. Durasi lambat (3.2s) biar tidak mengganggu. */
@keyframes ctaBreathe {
  0%, 100% { box-shadow: 0 6px 20px rgba(16, 136, 63, 0.22); }
  50% { box-shadow: 0 8px 30px rgba(16, 136, 63, 0.40); }
}
.big-cta .btn-wa { animation: ctaBreathe 3.2s ease-in-out infinite; }

/* Panah kecil di atas tombol CTA — bounce halus, penunjuk visual
   ke satu-satunya tombol di halaman ini. */
@keyframes ctaArrowBounce {
  0%, 100% { transform: translateY(0); opacity: .75; }
  50% { transform: translateY(7px); opacity: 1; }
}
.cta-arrow {
  display: flex;
  justify-content: center;
  color: #fff;
  margin-bottom: 6px;
  animation: ctaArrowBounce 1.6s ease-in-out infinite;
}

/* Scroll reveal: elemen fade-up begitu masuk viewport */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--reveal-i, 0) * 70ms); }

/* Hormati orang yang minta minim animasi */
@media (prefers-reduced-motion: reduce) {
  .navbar, .product-card, .reason-card, .category-card, .persona-chip,
  img.real-photo, .reveal { transition: none !important; }
  .big-cta .btn-wa { animation: none !important; }
  .cta-arrow { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
