/* ===========================================================
   Robin Fans — stylesheet
   Tema: marketplace terang, aksen hijau tua, tanpa emoji.
   =========================================================== */

:root {
  /* permukaan */
  --page:      #F1F3F6;
  --surface:   #FFFFFF;
  --surface-2: #F7F9FB;
  --line:      #E2E7EE;
  --line-2:    #EDF1F5;

  /* teks */
  --ink:       #101823;
  --ink-2:     #384252;
  --muted:     #6B7788;
  --muted-2:   #96A0AF;

  /* brand */
  --brand:     #0B6B57;
  --brand-600: #085847;
  --brand-300: #4FB79C;
  --brand-50:  #E9F3F0;

  /* pendukung */
  --sale:      #C22F26;
  --sale-bg:   #FDECEA;
  --star:      #E0A116;
  --info-bg:   #EEF4FD;
  --info-line: #C9DDF7;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;

  --shadow-1: 0 1px 2px rgba(16, 24, 35, 0.05);
  --shadow-2: 0 4px 16px rgba(16, 24, 35, 0.08);
  --shadow-3: 0 12px 32px rgba(16, 24, 35, 0.12);

  --wrap: 1200px;
  --header-h: 68px;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

p { margin: 0 0 0.9rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nums { font-variant-numeric: tabular-nums; }

/* ---------- ikon ---------- */

.ico {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-sm { width: 15px; height: 15px; }
.ico-lg { width: 22px; height: 22px; }
.ico-fill { fill: currentColor; stroke: none; }

/* ---------- header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hdr-main {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}
.search .ico {
  position: absolute;
  left: 12px;
  color: var(--muted-2);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
}

.hdr-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.hdr-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.hdr-link:hover { background: var(--surface-2); color: var(--brand); }

.hdr-cats {
  border-top: 1px solid var(--line-2);
  background: var(--surface);
}
.hdr-cats ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.hdr-cats ul::-webkit-scrollbar { display: none; }
.hdr-cats a {
  display: block;
  padding: 11px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.hdr-cats a:hover { color: var(--brand); border-bottom-color: var(--brand-300); }

.burger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink-2);
  place-items: center;
  cursor: pointer;
}

/* ---------- tombol ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-block { width: 100%; }
.btn-lg { height: 48px; font-size: 15.5px; padding: 0 26px; }
.btn-sm { height: 34px; font-size: 13px; padding: 0 12px; gap: 6px; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-2); }

.btn-outline { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-50); color: var(--brand-600); }

.btn-quiet { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); border-color: var(--muted-2); }

/* ---------- kartu umum ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.card-pad { padding: 20px; }

.section { padding: 40px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 { font-size: 21px; margin: 0; }
.section-head p { color: var(--muted); font-size: 14px; margin: 3px 0 0; }

/* ---------- hero ---------- */

.hero { padding: 28px 0 8px; }

.hero-box {
  background: linear-gradient(115deg, #0B6B57 0%, #0A5B4A 52%, #08483C 100%);
  border-radius: var(--r-lg);
  padding: 40px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero-box::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(79, 183, 156, 0.14);
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; max-width: 520px; }
.hero-box h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  margin-bottom: 12px;
}
.hero-box p { color: rgba(255, 255, 255, 0.78); font-size: 15.5px; margin-bottom: 22px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9FDCC9;
  margin-bottom: 14px;
}

.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-box .btn-primary { background: #fff; color: var(--brand); }
.hero-box .btn-primary:hover { background: #E9F3F0; color: var(--brand-600); }
.hero-box .btn-quiet {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.hero-box .btn-quiet:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  flex-wrap: wrap;
}
.hero-stat-n {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-stat-l { font-size: 12.5px; color: rgba(255, 255, 255, 0.66); }

.hero-art { position: relative; z-index: 1; }
.hero-art-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero-art-grid figure {
  margin: 0;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 1;
}
.hero-art-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- strip jaminan ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 16px;
}
.trust-item {
  background: var(--surface);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.trust-item .ico { color: var(--brand); margin-top: 2px; }
.trust-item strong { display: block; font-size: 13.5px; font-weight: 600; }
.trust-item span { font-size: 12.5px; color: var(--muted); }

/* ---------- filter kategori ---------- */

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--brand-300); color: var(--brand); }
.chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- grid produk ---------- */

.grid-produk {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.produk {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.produk:hover {
  color: var(--ink);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.produk-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-2);
  overflow: hidden;
}
.produk-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.produk:hover .produk-img img { transform: scale(1.05); }

.badge-diskon {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--sale);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  letter-spacing: 0.01em;
}

.badge-kat {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

.produk-body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }

.produk-nama {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.produk-harga {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.produk-coret {
  font-size: 12.5px;
  color: var(--muted-2);
  text-decoration: line-through;
  margin-left: 7px;
  font-weight: 400;
}

.produk-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.produk-meta .ico { color: var(--star); }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); flex: none; }

.produk-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.produk-foot .ico { color: var(--brand); }

.kosong {
  grid-column: 1 / -1;
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}

/* ---------- grid materi ---------- */

.grid-materi {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.materi-kartu {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  color: var(--ink);
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.materi-kartu:hover {
  color: var(--ink);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.materi-img {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
}
.materi-img img { width: 100%; height: 100%; object-fit: cover; }
.materi-teks { min-width: 0; }
.materi-no {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 3px;
}
.materi-teks h3 { font-size: 15px; margin: 0 0 4px; }
.materi-teks p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- daftar materi dalam paket ---------- */

.daftar-materi { display: grid; gap: 8px; margin-top: 12px; }

.baris-materi {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.baris-materi > div { flex: 1; min-width: 0; }
.baris-materi strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.baris-materi span:not(.materi-badge) { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.baris-materi .ok { color: var(--brand); margin-top: 3px; flex: none; }
.baris-materi.opsional { opacity: 0.82; }

.baris-materi.tautan {
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.baris-materi.tautan:hover {
  border-color: var(--brand);
  background: var(--brand-50);
  color: var(--ink);
  transform: translateX(2px);
}
.baris-materi.tautan .ico { color: var(--brand); margin-top: 3px; flex: none; }

.materi-badge {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.materi-badge.bonus { background: var(--ink-2); }

/* ---------- pemilih materi di checkout ---------- */

.penghitung {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--brand);
  background: var(--brand-50);
  border-radius: var(--r);
  font-size: 13.5px;
  margin-bottom: 14px;
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 5;
}
.penghitung .ico { color: var(--brand); flex: none; }
.penghitung strong { font-variant-numeric: tabular-nums; }
.penghitung-sisa { margin-left: auto; font-size: 12.5px; color: var(--brand); font-weight: 600; }
.penghitung.penuh { border-color: var(--brand); }
.penghitung.penuh .penghitung-sisa { color: var(--brand); }

.pilih-materi { display: grid; gap: 8px; margin-bottom: 18px; }

.opsi-materi { display: block; cursor: pointer; }
.opsi-materi input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.opsi-kotak {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}
.opsi-materi:hover .opsi-kotak { border-color: var(--brand-300); }
.opsi-materi input:focus-visible + .opsi-kotak {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.opsi-materi input:checked + .opsi-kotak {
  border-color: var(--brand);
  background: var(--brand-50);
}

.opsi-no {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
}
.opsi-materi input:checked + .opsi-kotak .opsi-no {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.opsi-teks { flex: 1; min-width: 0; }
.opsi-teks strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.opsi-teks span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.opsi-cek { flex: none; color: var(--line); margin-top: 3px; }
.opsi-materi input:checked + .opsi-kotak .opsi-cek { color: var(--brand); }

.opsi-materi.padam .opsi-kotak { opacity: 0.5; }
.opsi-materi.padam { cursor: not-allowed; }

/* ---------- halaman detail produk ---------- */

.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }
.crumb .ico { color: var(--muted-2); }

.pdp { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }

.galeri-utama {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}
.galeri-utama img { width: 100%; height: 100%; object-fit: cover; }

.galeri-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.galeri-thumbs button {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s;
}
.galeri-thumbs button:hover { border-color: var(--brand-300); }
.galeri-thumbs button[aria-current="true"] { border-color: var(--brand); }
.galeri-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-judul { font-size: 22px; line-height: 1.35; margin-bottom: 10px; }

.pdp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pdp-meta .ico { color: var(--star); }
.pdp-meta strong { color: var(--ink); font-weight: 600; }

.harga-blok {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.harga-utama {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
.harga-baris { display: flex; align-items: center; gap: 9px; margin-top: 5px; }
.harga-coret { font-size: 14px; color: var(--muted-2); text-decoration: line-through; }
.pil-diskon {
  background: var(--sale-bg);
  color: var(--sale);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-sm);
}

.daftar-isi { list-style: none; margin: 0 0 18px; padding: 0; }
.daftar-isi li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-2);
  padding: 5px 0;
}
.daftar-isi .ico { color: var(--brand); margin-top: 3px; }

.jaminan {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  display: grid;
  gap: 10px;
}
.jaminan div { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.jaminan .ico { color: var(--brand); margin-top: 1px; }

.tabel-spek { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabel-spek th, .tabel-spek td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
.tabel-spek th { color: var(--muted); font-weight: 400; width: 42%; }
.tabel-spek td { color: var(--ink-2); font-weight: 500; }
.tabel-spek tr:last-child th, .tabel-spek tr:last-child td { border-bottom: 0; }

.prosa p { font-size: 14.5px; color: var(--ink-2); line-height: 1.72; }
.prosa p:last-child { margin-bottom: 0; }

/* ---------- langkah order ---------- */

.grid-langkah { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.langkah { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.langkah-ico {
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  background: var(--brand-50);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.langkah h3 { font-size: 15px; margin-bottom: 4px; }
.langkah p { font-size: 13px; color: var(--muted); margin: 0; }
.langkah-n {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ---------- faq ---------- */

.faq-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq-item + .faq-item { border-top: 1px solid var(--line-2); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  padding: 16px 48px 16px 18px;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--brand); }
.faq-q .ico {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  transition: transform 0.25s, color 0.15s;
}
.faq-item.open .faq-q { color: var(--brand); }
.faq-item.open .faq-q .ico { transform: translateY(-50%) rotate(180deg); color: var(--brand); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-a p { font-size: 14px; color: var(--muted); padding: 0 48px 16px 18px; margin: 0; line-height: 1.7; }

/* ---------- syarat ---------- */

.syarat { list-style: none; margin: 0; padding: 0; }
.syarat li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-2);
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
}
.syarat li:last-child { border-bottom: 0; }
.syarat .ico { color: var(--brand); margin-top: 3px; }

/* ---------- footer ---------- */

.ftr { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 0; }
.ftr-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
.ftr h4 { font-size: 13px; font-family: var(--font-body); font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 8px; }
.ftr a, .ftr span.tautan { font-size: 13.5px; color: var(--muted); }
.ftr a:hover { color: var(--brand); }
.ftr-desc { font-size: 13px; color: var(--muted); margin: 12px 0 0; max-width: 280px; }
.ftr-bayar { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.pil-bayar {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-2);
  letter-spacing: 0.02em;
}
.ftr-bawah {
  border-top: 1px solid var(--line-2);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- halaman transaksi ---------- */

.page { padding: 24px 0 40px; min-height: 62vh; }
.panel { max-width: 520px; margin: 0 auto; }
.panel-lebar { max-width: 760px; }

.panel-head { padding: 20px 20px 0; }
.panel-head h1 { font-size: 19px; margin-bottom: 4px; }
.panel-head p { font-size: 13.5px; color: var(--muted); margin: 0; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.kotak-email {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 14px;
}
.kotak-email .ico { color: var(--muted); flex: none; }
.kotak-email strong { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kotak-email a { font-size: 13px; flex: none; }

.kode-otp {
  text-align: center;
  font-family: var(--font-head);
  font-size: 30px !important;
  font-weight: 700;
  letter-spacing: 12px;
  text-indent: 12px;
  height: 62px !important;
}

.field-hint { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.hp { position: absolute; left: -9999px; }

.ringkas {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.baris { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; padding: 5px 0; }
.baris > span:first-child { color: var(--muted); flex: none; }
.baris strong { font-weight: 500; text-align: right; }
.baris-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.baris-total strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.mini-produk { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.mini-produk img {
  width: 56px;
  height: 56px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  object-fit: cover;
  flex: none;
}
.mini-produk div { min-width: 0; }
.mini-produk strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; }
.mini-produk span { font-size: 12.5px; color: var(--muted); }

.qr-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  width: fit-content;
  margin: 0 auto 14px;
}
.qr-box img { width: 232px; height: 232px; }

.qr-merk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  color: var(--ink-2);
  font-size: 13.5px;
  margin-bottom: 16px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: denyut 1.6s ease-in-out infinite; flex: none; }
@keyframes denyut { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.notice {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.notice .ico { margin-top: 2px; flex: none; }
.notice-ok { background: var(--brand-50); border-color: #BFE0D6; }
.notice-ok .ico { color: var(--brand); }
.notice-err { background: var(--sale-bg); border-color: #F5C9C4; color: #8E241D; }
.notice-err .ico { color: var(--sale); }
.notice-info { background: var(--info-bg); border-color: var(--info-line); }
.notice-info .ico { color: #2A5FA8; }

.status-besar { text-align: center; padding: 6px 0 18px; }
.status-ikon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: var(--brand-50);
  color: var(--brand);
}
.status-ikon-netral { background: var(--surface-2); color: var(--muted); }

.langkah-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  font-size: 11.5px;
}
.lb-item { flex: 1; text-align: center; color: var(--muted-2); }
.lb-bulat {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  margin: 0 auto 5px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 600;
}
.lb-item.aktif { color: var(--brand); font-weight: 600; }
.lb-item.aktif .lb-bulat { border-color: var(--brand); background: var(--brand); color: #fff; }
.lb-item.selesai { color: var(--brand); }
.lb-item.selesai .lb-bulat { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }

.isi-file { list-style: none; margin: 0 0 18px; padding: 0; }
.isi-file li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
}
.isi-file li:last-child { border-bottom: 0; }
.isi-file .ico { color: var(--muted-2); flex: none; }

/* ---------- admin ---------- */

.tabel { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabel th, .tabel td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.tabel th { color: var(--muted); font-weight: 500; background: var(--surface-2); }
.tabel tr:last-child td { border-bottom: 0; }

.pil {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-2);
}
.pil-completed { color: var(--brand); border-color: #BFE0D6; background: var(--brand-50); }
.pil-pending { color: #8A6A11; border-color: #EFDCA8; background: #FCF5E3; }
.pil-expired, .pil-canceled { color: var(--sale); border-color: #F5C9C4; background: var(--sale-bg); }

.kartu-stat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.kartu-stat .card-pad { padding: 16px 18px; }
.stat-l { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.stat-n { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsif ---------- */

@media (min-width: 640px) {
  .grid-produk  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-materi  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust        { grid-template-columns: repeat(4, 1fr); }
  .kartu-stat   { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  .grid-produk   { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .grid-materi   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-langkah  { grid-template-columns: repeat(4, 1fr); }
  .hero-box      { grid-template-columns: 1.15fr 0.85fr; padding: 46px 48px; }
  .pdp           { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; }
  .ftr-grid      { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .pdp-sticky    { position: sticky; top: calc(var(--header-h) + 16px); }
  .pdp-judul     { font-size: 24px; }
}

@media (max-width: 899px) {
  .hero-art { display: none; }
}

@media (max-width: 719px) {
  .hdr-main {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }
  .search { order: 3; flex: 1 0 100%; max-width: none; }
  .hdr-actions { order: 2; }
  .trust-item { padding: 13px 14px; gap: 10px; }
  .trust-item strong { font-size: 13px; }
  .trust-item span { font-size: 12px; line-height: 1.45; }
  .hdr-actions .hdr-link span { display: none; }
  .hdr-link { padding: 0 9px; }
  .brand-tag { display: none; }
  .hero-box { padding: 26px 22px; border-radius: var(--r); }
  .hero-stats { gap: 20px; margin-top: 22px; padding-top: 18px; }
  .hero-stat-n { font-size: 19px; }
  .qr-box img { width: 200px; height: 200px; }
  .section { padding: 28px 0; }
  .produk-nama { font-size: 13px; }
  .produk-harga { font-size: 15.5px; }
  .galeri-thumbs button { width: 58px; height: 58px; }
}
