/* Momen - gaya situs (anti-slop): ivory hangat, espresso, zamrud, amber */
:root {
  --ivory: #faf7f0;
  --paper: #ffffff;
  --espresso: #2b2118;
  --muted: #6f6257;
  --emerald: #0e7a5f;
  --emerald-dark: #0a5c48;
  --amber: #e8a020;
  --line: #e8e0d2;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ivory); color: var(--espresso);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: Georgia, "Palatino Linotype", serif; line-height: 1.25; }
a { color: var(--emerald); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-in { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.logo { font-family: Georgia, serif; font-size: 1.5rem; font-weight: bold; color: var(--espresso); text-decoration: none; }
nav a { margin-left: 16px; text-decoration: none; color: var(--espresso); }
.site-footer { margin-top: 64px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

.btn {
  display: inline-block; background: var(--amber); color: var(--espresso);
  padding: 12px 28px; border-radius: var(--radius); text-decoration: none;
  font-weight: 700; border: none; cursor: pointer; font-size: 1rem;
}
.btn:hover { filter: brightness(.95); }
.btn.small { padding: 8px 18px; font-size: .9rem; }
.btn.ghost { background: transparent; border: 2px solid var(--emerald); color: var(--emerald); }
.btn.block { display: block; text-align: center; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.hero { text-align: center; padding: 56px 0 32px; }
.hero h1 { font-size: 2.4rem; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 24px; }
.price-tag { display: inline-block; background: var(--emerald); color: #fff;
  padding: 6px 18px; border-radius: 999px; font-weight: 700; margin-bottom: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .num { display: inline-block; width: 32px; height: 32px; line-height: 32px; text-align: center;
  background: var(--emerald); color: #fff; border-radius: 50%; font-weight: 700; margin-bottom: 8px; }
.step h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0 48px; }
.tpl-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tpl-swatch { height: 150px; }
.tpl-thumb { width: 100%; height: auto; display: block; background: #f4f1ea; }
.tpl-swatch.sage { background: linear-gradient(135deg, #9caf88 0%, #e9e4d8 100%); }
.tpl-swatch.terracotta { background: linear-gradient(135deg, #c96f4a 0%, #f3e2c7 100%); }
.tpl-swatch.navy { background: linear-gradient(135deg, #1f2d50 0%, #c9a227 130%); }
.tpl-swatch.dewanakl { background: linear-gradient(135deg, #fdfbf7 0%, #e8dcc8 60%, #b49a6a 130%); }
.tpl-card .body { padding: 16px; }
.tpl-card h3 { margin: 0 0 4px; }
.tpl-card p { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.tpl-card .row { display: flex; gap: 8px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 20px 0; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 4px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--emerald); outline-offset: 1px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.error { background: #fdecea; color: #8f1d14; border: 1px solid #f5c6c0; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.hint { color: var(--muted); font-size: .85rem; }

table.data { width: 100%; border-collapse: collapse; margin: 12px 0; }
table.data th, table.data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge.draft { background: #eee; color: var(--muted); }
.badge.pending_payment, .badge.pending { background: #fff3d6; color: #8a5a00; }
.badge.active, .badge.paid { background: #dcf5e9; color: var(--emerald-dark); }
.badge.expired, .badge.failed { background: #fdecea; color: #8f1d14; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.link-btn { background: none; border: none; color: var(--emerald); cursor: pointer; padding: 0; font-size: .95rem; text-decoration: underline; }

.checkout-box { text-align: center; max-width: 480px; margin: 0 auto; }
.checkout-box img.qr { width: 260px; height: 260px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 8px; }
.amount { font-size: 2rem; font-weight: 800; margin: 8px 0; }
.countdown { font-size: 1.1rem; color: #8a5a00; font-weight: 700; }
.success { background: #dcf5e9; border: 1px solid #9adbb8; padding: 20px; border-radius: var(--radius); }

.faq { margin: 32px 0; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tpl-card .body { padding: 10px; }
  .tpl-card h3 { font-size: .95rem; }
  .tpl-card p { font-size: .8rem; }
  .tpl-card .row .btn.small { padding: 6px 10px; font-size: .8rem; }
  .form-2col { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  nav a { margin-left: 10px; }
}
