/* ============================================================
   Presentation Generator — tema Zamrud
   Modern, minimalis, satu warna aksen tegas (hijau zamrud) di atas putih.
   Font: DM Sans. Tanpa gradien, glow, bayangan dekoratif, atau ikon emoji.
   ============================================================ */

:root {
  --ink: #0a1f17;
  --ink-soft: #4b5d55;
  --paper: #ffffff;
  --paper-2: #f4f6f5;
  --accent: #00875a;
  --accent-deep: #006b47;
  --line: #e3e8e5;
  --radius: 999px;
  --font-head: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* alias untuk halaman admin, affiliate, dan thankyou */
  --cream: var(--paper);
  --cream-deep: var(--paper-2);
  --amber: var(--accent);
  --amber-deep: var(--accent-deep);
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0 0 16px; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: clamp(28px, 4.2vw, 44px); }
p { margin: 0 0 16px; color: var(--ink-soft); }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }
.sec { padding: 72px 0; }

.eyebrow { display: block; font-size: 14px; font-weight: 500; color: var(--accent); margin-bottom: 14px; }
.eyebrow--center { text-align: center; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-deep); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--lg { padding: 16px 34px; font-size: 17px; }
.btn--small { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 20px; font-size: 14px; background: transparent; color: var(--ink); border-color: var(--line); }
.btn--small:hover { background: var(--paper-2); color: var(--ink); }
.btn:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Topbar ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.brand { white-space: nowrap; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand__accent { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(36px, 6.4vw, 66px); margin: 0 auto 20px; max-width: 14em; }
.hero__sub { font-size: clamp(16px, 2vw, 19px); max-width: 34em; margin: 0 auto 28px; }
.hero__note { font-size: 14px; margin-top: 14px; }

.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 14px; font-weight: 500; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Slide besar di hero. Kalau ada public/assets/img/hero.webp, gambar itu dipakai menggantikan mock ini. */
.shot { position: relative; max-width: 860px; margin: 56px auto 0; padding: 0 5%; }
.shot::before, .shot::after { content: ""; position: absolute; border-radius: 22px; z-index: 0; }
.shot::before { background: #d5ddd9; left: 11%; right: 11%; top: -22px; bottom: 30px; }
.shot::after  { background: var(--ink); left: 7%; right: 7%; top: -11px; bottom: 15px; }
.shot__slide {
  position: relative; z-index: 1;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  text-align: left;
  padding: clamp(18px, 5vw, 48px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.shot__slide b { font-size: clamp(22px, 5vw, 52px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.shot__slide span { font-size: clamp(12px, 1.8vw, 18px); margin-top: 8px; opacity: .9; }
.shot__img { position: relative; z-index: 1; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); display: block; }
/* Kalau memakai gambar asli: tanpa lapisan latar di belakangnya (lapisan itu hanya untuk slide hijau polos) */
.shot--photo { padding: 0; }
.shot--photo::before, .shot--photo::after { display: none; }

/* ---------- Masalah ---------- */
.pain__row { display: grid; gap: 6px; padding: 26px 0; border-top: 1px solid var(--line); }
.pain__row:last-child { border-bottom: 1px solid var(--line); }
.pain__row h3 { font-size: 22px; margin: 0; }
.pain__row p { margin: 0; }
.pain { margin-top: 32px; }

/* ---------- Cara kerja ---------- */
.works { background: var(--paper-2); }
.steps { display: grid; gap: 36px; margin-top: 40px; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step__num { font-size: 44px; font-weight: 700; color: var(--accent); letter-spacing: -.03em; line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 21px; }
.step p { margin: 0; }

/* ---------- Fitur ---------- */
.feats { display: grid; gap: 28px; }
.feat { padding: 24px 0; border-top: 1px solid var(--line); }
.feat:first-child { border-top: none; padding-top: 0; }
.feat h3 { font-size: 20px; margin-bottom: 8px; }
.feat p { margin: 0; }

/* ---------- Tema ---------- */
.themes { background: var(--ink); color: #fff; }
.themes h2 { color: #fff; }
.themes p { color: #b9c7c0; }
.themes .eyebrow { color: #4fd3a1; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.chips li { border: 1.5px solid #34493f; border-radius: 999px; padding: 9px 18px; font-size: 15px; font-weight: 500; color: #fff; }

/* ---------- Testimoni (tampil hanya kalau $testimonials di index.php terisi) ---------- */
.quotes { display: grid; gap: 32px; margin-top: 36px; }
.quote p { font-size: 20px; line-height: 1.45; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.quote span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Harga ---------- */
.pricing { background: var(--accent); }
.pricing h2 { color: #fff; }
.pricing .eyebrow { color: #d9f5e8; }
.price-card { background: #fff; border-radius: 24px; padding: 40px 28px; max-width: 420px; margin: 32px auto 0; text-align: center; }
.price-card__name { font-weight: 500; color: var(--ink-soft); margin-bottom: 4px; }
.price-card__amount { font-size: 56px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 22px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 12px; color: var(--ink); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.check-list--center { text-align: left; max-width: 260px; margin: 0 auto 26px; }
.checkout-form { display: grid; gap: 10px; margin-top: 8px; }
.checkout-form input {
  padding: 14px 20px; min-height: 52px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 16px; font-family: var(--font-body); color: var(--ink); background: #fff;
}
.checkout-form input:focus { border-color: var(--accent); outline: none; }
.checkout-form .btn--lg { width: 100%; }
.price-card__note { font-size: 13px; margin: 16px 0 0; }
.price-card__terms { color: var(--ink); font-size: 15px; line-height: 1.5; margin: -8px 0 22px; }
.price-card__terms b { font-weight: 700; }
.price-card__fine { font-size: 12px; line-height: 1.55; text-align: left; margin: 14px 0 0; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: 6px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; min-height: 48px; padding: 12px 0; align-items: center; font-size: 18px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; }

/* ---------- Footer ---------- */
.footer { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); text-align: center; font-size: 14px; color: var(--ink-soft); }
.footer p { margin: 0 0 8px; }
.footer__legal { font-size: 12px; max-width: 560px; margin: 0 auto !important; }

/* ---------- Halaman terima kasih ---------- */
.thankyou-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--paper-2); font-family: var(--font-body); padding: 20px; }
.thankyou-card { background: #fff; border-radius: 24px; padding: 44px 30px; max-width: 460px; text-align: center; }
.thankyou-card h1 { font-size: 30px; }
.thankyou-note { font-size: 14px; margin-top: 16px; }

/* ---------- Harga coret / promo ---------- */
.hero__promo { font-size: 16px; color: var(--ink-soft); margin: 0 0 16px; }
.hero__promo s { text-decoration-thickness: 2px; }
.hero__promo b { color: var(--ink); font-size: 18px; }
.badge-save { display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 700; vertical-align: middle; margin-left: 4px; }
.price-card__old { font-size: 17px; color: var(--ink-soft); margin: 0 0 2px; }
.price-card__old s { text-decoration-thickness: 2px; }
.price-card__old + .price-card__amount { margin-top: 0; }

/* ---------- Galeri portofolio ---------- */
.lead { font-size: 18px; max-width: 34em; }
.gallery, .shots { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 32px; }
.gallery__item, .shots__item { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shots__item img { display: block; width: 100%; height: auto; }
.slot { display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 16 / 9; border: 2px dashed #b9c7c0; border-radius: 16px; padding: 16px; font-size: 13px; color: var(--ink-soft); }
.slot--app { aspect-ratio: 16 / 10; }
.slot code { background: var(--paper-2); padding: 2px 6px; border-radius: 6px; font-size: 12px; word-break: break-all; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; } .shots { gap: 18px; } }

/* ---------- Ponsel kecil ---------- */
@media (max-width: 560px) {
  .hero .btn--lg { display: block; width: 100%; max-width: 380px; margin: 0 auto; }
  .price-card { padding: 32px 20px; }
  .price-card__amount { font-size: 48px; }
}

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 860px) {
  .sec { padding: 104px 0; }
  .hero { padding: 96px 0 40px; }
  .pain__row { grid-template-columns: 1fr 1fr; gap: 40px; align-items: baseline; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .feats-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .feats-wrap > .feats-title { position: sticky; top: 96px; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
}

/* Layar lebar (laptop / PC) */
@media (min-width: 1200px) {
  .shot { max-width: 980px; }
  .hero { padding-top: 112px; }
  .sec { padding: 120px 0; }
  .step h3 { font-size: 24px; }
  .feat h3 { font-size: 22px; }
}
