/* ═══════════════════════════════════════════════════
   BOUNTY & WEAVE — bw-lp.css
   Landing page components + button alias fix.
   Dimuat setelah style.css di semua halaman.
   ═══════════════════════════════════════════════════ */

/* ── FIX: alias tombol yang dipakai di Bounty Living ──
   Markup memakai .bl / .bg / .bd / .ba tetapi style.css
   hanya mendefinisikan .btn-light / .btn-ghost / .btn-dark
   / .btn-amber, sehingga tombolnya tampil polos.        */

.btn.bl { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.btn.bl:hover { background: var(--ivory-deep); border-color: var(--ivory-deep); }

.btn.bg { background: transparent; color: var(--ivory); border-color: rgba(247,243,236,.5); }
.btn.bg:hover { border-color: var(--ivory); background: rgba(247,243,236,.08); }

.btn.bd { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.btn.bd:hover { background: var(--forest-mid); border-color: var(--forest-mid); }

.btn.ba { background: var(--amber); color: var(--ivory); border-color: var(--amber); }
.btn.ba:hover { background: var(--amber-dark); border-color: var(--amber-dark); }

/* Tautan "Inquire →" di kartu produk — sebelumnya nyaris tak terlihat */
.type-inquire {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .68rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber);
  padding-bottom: 3px; border-bottom: 1px solid currentColor;
  transition: gap var(--t), color var(--t);
}
.type-inquire:hover { gap: 11px; color: var(--amber-dark); }

/* ── GRID BOUNTY LIVING ────────────────────────────
   Pakai class, bukan inline style. Aturan
   [style*="grid-template-columns"] di style.css hanya
   mencocokkan teks atribut style, jadi hasilnya sulit
   ditebak. Dengan class, layout jadi deterministik.  */

.bl-grid { display: grid; gap: 24px; align-items: stretch; }
.bl-grid-2 { grid-template-columns: repeat(2, 1fr); }
.bl-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bl-grid-tight { gap: 16px; }

/* Kartu wajib mengisi penuh tinggi barisnya, supaya
   panjang teks yang berbeda tidak bikin tinggi lompat */
.bl-grid > * { min-width: 0; }
.bl-grid-2 > .universe-card { height: 100%; }

.bl-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.bl-split > * { min-width: 0; }

@media (max-width: 1024px) {
  .bl-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .bl-split  { gap: 44px; }
}
@media (max-width: 860px) {
  .bl-grid-2 { grid-template-columns: 1fr; }
  .bl-split  { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 620px) {
  .bl-grid-3 { grid-template-columns: 1fr; }
  .bl-grid-tight { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Batalkan aturan homepage yang bocor ke sini.
   style.css baris 527: .universe-card:last-child dibuat
   melebar 2 kolom dan mendatar di 768–1100px. Itu untuk
   grid 3 kartu di homepage, bukan grid 4 kartu di sini,
   dan selektornya tidak dibatasi ke .universe-grid. */
@media (max-width: 1100px) {
  .bl-grid-2 > .universe-card:last-child {
    grid-column: auto;
    flex-direction: column;
  }
  .bl-grid-2 > .universe-card:last-child .uc-img {
    flex: 0 0 auto;
    aspect-ratio: 4/3;
  }
  .bl-grid-2 > .universe-card:last-child .uc-body {
    flex: 1 1 auto;
  }
}

/* ── STRIP KREDENSIAL (A+) ───────────────────────
   height & opacity wajib !important — style.css punya
   aturan global img{height:auto!important} di <=768px
   yang kalau tidak dilawan bikin logo tampil sebesar
   ukuran aslinya.                                    */

.cred-strip {
  background: var(--ivory-deep);
  padding: 28px 0;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}
.cred-lab {
  text-align: center; font-size: .58rem; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 19px;
}

.cred-tick { overflow: hidden; position: relative; }

/* Tepi memudar supaya logo tidak terpotong kasar */
.cred-tick::before,
.cred-tick::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 56px; z-index: 2; pointer-events: none;
}
.cred-tick::before { left: 0;  background: linear-gradient(90deg,  var(--ivory-deep), transparent); }
.cred-tick::after  { right: 0; background: linear-gradient(270deg, var(--ivory-deep), transparent); }

.cred-row {
  display: flex; align-items: center; width: max-content;
  gap: 54px; animation: cred-slide 40s linear infinite;
}
.cred-row a,
.cred-row span { flex-shrink: 0; display: block; line-height: 0; }

.cred-row img {
  height: 42px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  opacity: .68;
  filter: grayscale(1) contrast(1.15);
  transition: opacity .35s var(--ease), filter .35s var(--ease);
}
.cred-row a:hover img,
.cred-row a:focus-visible img { opacity: 1; filter: grayscale(0) contrast(1); }

@keyframes cred-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.cred-tick:hover .cred-row,
.cred-tick:focus-within .cred-row { animation-play-state: paused; }

@media (max-width: 520px) {
  .cred-strip { padding: 22px 0; }
  .cred-lab { margin-bottom: 15px; }
  .cred-row { gap: 40px; animation-duration: 32s; }
  .cred-row img { height: 34px !important; }
  .cred-tick::before, .cred-tick::after { width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .cred-row { animation: none; width: auto; flex-wrap: nowrap; }
  .cred-tick { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cred-tick::before, .cred-tick::after { display: none; }
}

/* ── ANGKA KUNCI ──────────────────────────────────── */

.fact-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--sand);
  border: 1px solid var(--sand); border-radius: 6px; overflow: hidden;
}
.fact-cell { background: var(--ivory); padding: 26px 18px; text-align: center; }
.fact-n {
  display: block; font-family: var(--font-display); font-size: 2rem;
  font-weight: 300; color: var(--amber); line-height: 1; margin-bottom: 7px;
}
.fact-l {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 400; line-height: 1.5;
}

/* ── CARA KERJA ───────────────────────────────────── */

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: flow; }
.flow-step { position: relative; padding-top: 26px; counter-increment: flow; }
.flow-step::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--amber);
}
.flow-step::after {
  content: ''; position: absolute; top: 8px; left: 34px; right: -20px;
  height: 1px; background: var(--sand);
}
.flow-step:last-child::after { display: none; }
.flow-step h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.flow-step p  { font-size: .84rem; color: var(--text-muted); font-weight: 300; line-height: 1.75; }

/* ── PILAR (ikon di dalam kotak) ──────────────────── */

.pillar-ico {
  width: 34px; height: 34px; margin-bottom: 14px;
  color: var(--amber); stroke: currentColor; fill: none; stroke-width: 1.2;
}

/* ── TESTIMONI ────────────────────────────────────── */

.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tst-grid > * { min-width: 0; }
.tst {
  background: var(--ivory); border: 1px solid var(--sand);
  border-radius: 6px; padding: 28px; display: flex; flex-direction: column;
}
.tst-stars { color: var(--amber); font-size: .8rem; letter-spacing: .16em; margin-bottom: 14px; }
.tst-body {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 400;
  line-height: 1.65; color: var(--text); margin-bottom: 20px; flex: 1;
}
.tst-who { border-top: 1px solid var(--sand); padding-top: 14px; }
.tst-name { display: block; font-size: .84rem; font-weight: 500; color: var(--text); }
.tst-role {
  display: block; font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 3px;
}

/* ── FAQ ──────────────────────────────────────────── */

.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--sand); }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; text-align: left; padding: 20px 0;
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 400;
  color: var(--text); line-height: 1.4;
}
.faq-q svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 6px; color: var(--amber); transition: transform var(--t); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-item.open .faq-a { max-height: 520px; }
.faq-a p {
  font-size: .89rem; color: var(--text-muted); font-weight: 300;
  line-height: 1.85; padding-bottom: 22px;
}
.faq-a a { color: var(--amber); border-bottom: 1px solid currentColor; }

/* ── LEAD FORM ────────────────────────────────────── */

.lead-section { background: var(--forest); padding: 92px 0; scroll-margin-top: var(--nav-h); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.lead-sub {
  color: rgba(247,243,236,.66); font-size: .94rem; font-weight: 300;
  line-height: 1.85; margin: 16px 0 28px; max-width: 440px;
}
.lead-points { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.lead-points li { display: flex; gap: 12px; align-items: flex-start; }
.lead-points svg { width: 19px; height: 19px; color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.lead-points strong {
  display: block; font-size: .88rem; font-weight: 500; color: var(--ivory); margin-bottom: 2px;
}
.lead-points span { font-size: .8rem; color: rgba(247,243,236,.55); font-weight: 300; }

.lead-or { border-top: 1px solid rgba(212,197,169,.2); padding-top: 24px; }
.lead-or > span {
  display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(247,243,236,.45); margin-bottom: 12px;
}

.lead-card {
  background: var(--ivory); border-radius: 8px; padding: 34px;
  box-shadow: var(--shadow-deep);
}

/* Progress */
.lead-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.lead-progress-bar { flex: 1; height: 3px; background: var(--ivory-deep); border-radius: 2px; overflow: hidden; }
.lead-progress-bar span {
  display: block; height: 100%; width: 16%; background: var(--amber);
  border-radius: 2px; transition: width .45s var(--ease);
}
.lead-progress-txt {
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
}

/* Honeypot */
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Langkah */
.lf-step {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .45s var(--ease), opacity .35s ease, margin .45s var(--ease);
  margin-bottom: 0;
}
.lf-step.is-active { max-height: 340px; opacity: 1; margin-bottom: 20px; overflow: visible; }

.lf-step label {
  display: block; font-size: .68rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.lf-opt { text-transform: none; letter-spacing: 0; font-size: .68rem; color: var(--sand); font-weight: 400; }

.lf-step input,
.lf-step select,
.lf-step textarea {
  width: 100%; background: var(--white); border: 1px solid var(--sand);
  border-radius: var(--r); padding: 13px 15px; font-size: .93rem;
  color: var(--text); transition: border-color var(--t), box-shadow var(--t);
}
.lf-step textarea { resize: vertical; min-height: 84px; }
.lf-step input:focus,
.lf-step select:focus,
.lf-step textarea:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(196,149,90,.14);
}
.lf-step.has-err input,
.lf-step.has-err select { border-color: #B4453C; }

.lf-hint { font-size: .74rem; color: var(--text-muted); font-weight: 300; margin-top: 6px; }
.lf-err  { font-size: .76rem; color: #B4453C; margin-top: 6px; min-height: 0; }
.lf-step.has-err .lf-err { min-height: 18px; }

.lf-submit { position: relative; margin-top: 6px; padding: 16px; }
.lf-spin { display: none; }
.lead-form.is-sending .lf-btn-text { opacity: .45; }
.lead-form.is-sending .lf-spin {
  display: block; position: absolute; top: 50%; left: 50%;
  width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px;
  border: 2px solid rgba(247,243,236,.35); border-top-color: var(--ivory);
  border-radius: 50%; animation: lf-spin .7s linear infinite;
}
@keyframes lf-spin { to { transform: rotate(360deg); } }

.lf-note {
  font-size: .74rem; color: var(--text-muted); font-weight: 300;
  text-align: center; margin-top: 14px; line-height: 1.6;
}
.lf-formerr { font-size: .82rem; color: #B4453C; margin-top: 12px; text-align: center; }
.lf-formerr a { color: var(--amber); border-bottom: 1px solid currentColor; }

/* Layar sukses */
.lead-done { text-align: center; padding: 16px 0; }
.lead-done-mark {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(196,149,90,.13); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
}
.lead-done-mark svg { width: 27px; height: 27px; }
.lead-done h3 { font-size: 1.5rem; margin-bottom: 10px; }
.lead-done p { font-size: .89rem; color: var(--text-muted); font-weight: 300; line-height: 1.8; margin-bottom: 22px; }
.lead-done-sub { font-size: .74rem; margin: 14px 0 0 !important; }

/* ── CTA melekat di mobile ────────────────────────── */

.sticky-cta { display: none; }

/* ── RESPONSIVE ───────────────────────────────────── */

@media (max-width: 980px) {
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .flow-step:nth-child(2)::after { display: none; }
  .tst-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .lead-section { padding: 64px 0; }
  .lead-grid { grid-template-columns: 1fr; gap: 36px; }
  .lead-card { padding: 26px 22px; }
  .fact-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step::after { display: none; }
  .tst-grid { grid-template-columns: 1fr; }
  .lead-card { padding: 24px 18px; }
  .lf-step input, .lf-step select, .lf-step textarea { font-size: 16px; } /* cegah zoom iOS */

  /* Bar CTA melekat di bawah — hanya mobile */
  .sticky-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--forest); border-top: 1px solid rgba(212,197,169,.22);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 9px;
    transform: translateY(105%); transition: transform .4s var(--ease);
  }
  .sticky-cta.show { transform: none; }
  .sticky-cta a {
    flex: 1; text-align: center; padding: 13px 8px; border-radius: var(--r);
    font-size: .69rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  }
  .sticky-cta .sc-form { background: var(--amber); color: var(--ivory); }
  .sticky-cta .sc-wa   { background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; }
  .sticky-cta .sc-wa svg { width: 16px; height: 16px; }

  /* Naikkan tombol mengambang supaya tidak tertutup bar */
  body.has-sticky-cta .wa-float { bottom: 84px; }
}

/* ── AKSESIBILITAS ────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .lf-step, .lead-progress-bar span, .faq-a, .sticky-cta { transition: none; }
  .lead-form.is-sending .lf-spin { animation-duration: 2s; }
}

.faq-q:focus-visible,
.lf-step input:focus-visible,
.lf-step select:focus-visible,
.lf-step textarea:focus-visible,
.sticky-cta a:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 2px;
}
