/* ==========================================================================
   Invishar — landing page produk (/p/{slug})
   Lanjutan style.css + course.css; semua warna dan ukuran memakai token
   :root yang sama. Breakpoint mobile 760px, mengikuti halaman lain.
   ========================================================================== */

/* ---------------------------------------------------------- Memuat */
.produk-muat { padding-block: 60px 90px; }
.muat-garis {
  height: 22px;
  width: 58%;
  border-radius: 8px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, rgba(26,25,23,.06) 25%, rgba(26,25,23,.11) 50%, rgba(26,25,23,.06) 75%);
  background-size: 200% 100%;
  animation: muat-kilau 1.2s ease-in-out infinite;
}
.muat-garis.lebar { height: 48px; width: 72%; }
.muat-garis.pendek { width: 34%; }
@keyframes muat-kilau { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.produk-hilang { padding-block: 70px 100px; max-width: 640px; }
.produk-hilang h1 {
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 10px 0 14px;
}

/* ------------------------------------------------------------ Hero */
.produk-hero { padding-bottom: clamp(26px, 4vw, 40px); }
.produk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
  padding-top: 18px;
}
.produk-hero-copy { min-width: 0; padding-top: 8px; }
.produk-hero-copy .kicker { margin-bottom: 14px; }
.produk-hero-copy h1 {
  font-weight: 700;
  font-size: clamp(34px, 5.8vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
}
.produk-tagline {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--green-700);
  margin: 0 0 14px;
  max-width: 36ch;
}
.produk-hero-copy .lead { max-width: 52ch; margin-bottom: 18px; }

/* Kartu harga & tombol beli */
.beli-kartu {
  position: sticky;
  top: 88px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(35, 68, 28, 0.08);
}
.beli-label {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0 0 6px;
}
.beli-harga {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--green-900);
  margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
}
.beli-sub { font-size: 13.5px; color: var(--ink-62); margin: 0 0 18px; line-height: 1.5; }
.beli-janji {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
}
.beli-janji li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-70);
}
.beli-janji li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.4' fill='none' stroke='%232f5c26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------------------------------------------------------- Gambar */
.produk-gambar { padding-bottom: clamp(30px, 4vw, 44px); }
.produk-gambar img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ------------------------------------------------------- Isi halaman */
.produk-bagian { padding-top: clamp(34px, 5vw, 56px); }
.produk-bagian h2 {
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 18px;
}
.produk-isi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}
.produk-teks p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-72);
  margin: 0 0 16px;
  max-width: 62ch;
}
.produk-teks p:first-child {
  font-size: 17.5px;
  color: var(--ink-80);
}

/* ---------------------------------------------------------- Penawaran */
.penawaran-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 4vw, 40px);
}
.penawaran-grid .kicker { margin-bottom: 12px; }
.penawaran-grid .form { background: var(--white); }
.opsional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-50); }
.perangkap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.is-failed .form-note { color: #a23a2a; font-weight: 500; }

/* ------------------------------------------------------- Bilah beli */
.bilah-beli {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: none;
  background: rgba(247, 250, 245, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
}
.bilah-beli-isi { display: flex; align-items: center; gap: 12px; max-width: var(--wrap); margin: 0 auto; }
.bilah-beli-harga {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--green-900);
  margin-right: auto;
  font-variant-numeric: tabular-nums;
}

.footer-copy a { color: rgba(238, 244, 234, 0.75); text-decoration: underline; text-underline-offset: 3px; }
.footer-copy a:hover { color: #eef4ea; }

/* ---------------------------------------------------------- Responsif */
@media (max-width: 760px) {
  .produk-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .beli-kartu { position: static; }
  .bilah-beli:not([hidden]) { display: block; }
  body.ada-bilah-beli .footer { padding-bottom: 72px; }
}
