/* ==========================================================
   TEMA — ubah variabel di bawah ini untuk mengganti tampilan
   seluruh situs, termasuk halaman pembayaran.
   ========================================================== */
:root {
  --brand: #4f46e5;          /* warna utama (tombol, link) */
  --brand-dark: #3730a3;
  --brand-soft: #eef2ff;     /* latar lembut untuk kartu terpilih */
  --accent: #0d9488;         /* warna sukses / sorotan */
  --danger: #dc2626;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1e2235;
  --muted: #667085;
  --line: #e4e7ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 34, 53, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, canvas { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- header / footer ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -.02em; }
.brand span { color: var(--brand); }
.nav { display: flex; gap: 18px; align-items: center; font-size: .95rem; }
.site-footer { margin-top: 56px; padding: 28px 0; color: var(--muted); font-size: .88rem; text-align: center; }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; transition: .15s;
  background: var(--brand); color: #fff; text-decoration: none;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg); }
.btn.block { width: 100%; }
.btn.lg { padding: 15px 28px; font-size: 1.05rem; }

/* ---------- landing ---------- */
.hero { padding: 56px 0 24px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.03em; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 24px; }
.badge { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .8rem;
  padding: 5px 12px; border-radius: 99px; margin-bottom: 16px; }
.preview { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); }
.preview svg { display: block; width: 100%; height: auto; filter: blur(2.5px); }
.preview .lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: rgba(255, 255, 255, .55); font-weight: 700; }
.preview .lock .ico { font-size: 2.4rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 36px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.features .card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.features .card p { margin: 0; color: var(--muted); font-size: .95rem; }
.pricebox { max-width: 460px; margin: 8px auto 0; text-align: center; }
.pricebox .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0; }
.pricebox ul { list-style: none; padding: 0; margin: 14px 0 22px; text-align: left; }
.pricebox li { padding: 5px 0 5px 26px; position: relative; }
.pricebox li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin-top: 32px; align-items: start; }
.steps { display: flex; gap: 8px; margin-bottom: 20px; font-size: .85rem; color: var(--muted); }
.steps .s { flex: 1; padding-bottom: 8px; border-bottom: 3px solid var(--line); font-weight: 600; }
.steps .s.on { color: var(--brand); border-color: var(--brand); }
.steps .s.done { color: var(--accent); border-color: var(--accent); }
.checkout h2 { margin: 0 0 16px; font-size: 1.3rem; }
label.f { display: block; margin-bottom: 16px; font-weight: 600; font-size: .92rem; }
label.f input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; }
label.f input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.group-title { margin: 18px 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.method { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin-bottom: 8px; border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; background: #fff; transition: .12s; }
.method:hover { border-color: var(--brand); }
.method input { accent-color: var(--brand); width: 18px; height: 18px; }
.method.sel { border-color: var(--brand); background: var(--brand-soft); }
.method .t { font-weight: 700; }
.method .d { font-size: .85rem; color: var(--muted); }
.summary h3 { margin: 0 0 12px; font-size: 1rem; }
.summary .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.summary .row.total { border: 0; font-weight: 800; font-size: 1.1rem; padding-top: 14px; }
.secure { margin-top: 14px; font-size: .8rem; color: var(--muted); }
.actions { display: flex; gap: 10px; margin-top: 8px; }
.err { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; }
.hidden { display: none !important; }

.paybox { text-align: center; }
.paybox .amount { font-size: 2rem; font-weight: 800; margin: 4px 0; }
.countdown { display: inline-block; background: #fff7ed; color: #c2410c; font-weight: 700; padding: 4px 12px; border-radius: 99px; font-size: .9rem; }
.vabox { margin: 18px 0; padding: 16px; border: 1.5px dashed var(--brand); border-radius: 12px; background: var(--brand-soft); }
.vabox .lbl { font-size: .82rem; color: var(--muted); }
.vabox .num { font-size: 1.7rem; font-weight: 800; letter-spacing: .06em; word-break: break-all; font-variant-numeric: tabular-nums; }
.qr { margin: 16px auto; width: 260px; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.how { text-align: left; margin-top: 18px; font-size: .92rem; color: var(--muted); }
.how ol { padding-left: 20px; margin: 6px 0 0; }
.status { margin: 18px 0 6px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 600; }
.spinner { width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.okmark { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 2.2rem;
  display: flex; align-items: center; justify-content: center; margin: 8px auto 14px; }
.sandbox { margin-top: 14px; font-size: .82rem; background: #fefce8; border: 1px solid #fde68a; padding: 10px 12px; border-radius: 10px; text-align: left; }

/* ---------- halaman premium / simulasi ---------- */
.sim { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin-top: 28px; align-items: start; }
.sim h1 { margin: 24px 0 0; font-size: 1.6rem; letter-spacing: -.02em; }
.ctrl label { display: block; font-weight: 600; font-size: .9rem; margin-top: 14px; }
.ctrl label output { float: right; color: var(--brand); font-variant-numeric: tabular-nums; }
.ctrl input[type=range] { width: 100%; accent-color: var(--brand); }
.ctrl select { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--line); font: inherit; margin-top: 6px; }
.readout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.readout div { background: var(--bg); border-radius: 10px; padding: 10px; text-align: center; }
.readout b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.readout span { font-size: .78rem; color: var(--muted); }
#cv { width: 100%; height: auto; background: #fff; border-radius: 12px; border: 1px solid var(--line); display: block; }

@media (max-width: 860px) {
  .hero, .checkout, .sim { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .checkout aside { order: -1; }
  .readout { grid-template-columns: repeat(2, 1fr); }
}
