:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --ink: #13201a;
  --muted: #5b6b63;
  --line: #e6e1d4;
  --green: #0f3d2e;
  --green-2: #165a43;
  --gold: #c9a227;
  --gold-soft: #f5ecd0;
  --danger-soft: #fdf1ee;
  --danger: #9b3b26;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15,61,46,.06), 0 8px 24px rgba(15,61,46,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1512;
    --surface: #14201b;
    --ink: #eef3ef;
    --muted: #9fb0a7;
    --line: #24332c;
    --green: #1f7a5a;
    --green-2: #26946d;
    --gold: #e0bd4a;
    --gold-soft: #2a2614;
    --danger-soft: #2a1814;
    --danger: #f0a08c;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Nav */
nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: -.02em; font-size: 18px; }
.brand span { color: var(--gold); }
.nav-cta { font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--green); color: #fff; }

/* Hero */
.hero { padding: 56px 0 40px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--green-2); background: var(--gold-soft); padding: 6px 12px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px rgba(34,160,107,.18); }
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; letter-spacing: -.03em; margin: 18px 0 16px; font-weight: 800; }
h1 em { font-style: normal; color: var(--green-2); }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; padding: 14px 22px; border-radius: 12px; border: 0; cursor: pointer; text-decoration: none; transition: transform .1s ease, background .2s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--green-2); }

.countdown { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.countdown .label { font-size: 14px; color: var(--muted); margin-right: 4px; }
.cd-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; min-width: 64px; text-align: center; }
.cd-box b { display: block; font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cd-box small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 28px; letter-spacing: -.02em; color: var(--green-2); }
.stat span { font-size: 14px; color: var(--muted); }

section { padding: 48px 0; }
h2 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 28px; }

/* Steps */
.steps { display: grid; gap: 12px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 68px; box-shadow: var(--shadow); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 10px; background: var(--gold-soft); color: var(--green-2); font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin: 0 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Share card */
.share { background: var(--green); color: #fff; border-radius: 20px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.share h2 { color: #fff; }
.share p { margin: 0; color: rgba(255,255,255,.82); }
.share .btn-primary { background: var(--gold); color: #1d1606; }
.share .btn-primary:hover { background: #d9b33a; }
.share .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.linkbox { display: flex; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 6px 6px 6px 14px; align-items: center; }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.linkbox button { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 8px; border: 0; background: #fff; color: var(--green); cursor: pointer; flex-shrink: 0; }

/* Prize + timeline */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.card li { margin: 4px 0; }

.warn { background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); border-radius: var(--radius); padding: 18px 20px; }
.warn h3 { margin: 0 0 6px; color: var(--danger); font-size: 17px; }
.warn ul { margin: 0; padding-left: 20px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--green-2); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--muted); }

/* Lead form */
.lead-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
form { display: grid; gap: 14px; margin-top: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select { font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
input:focus, select:focus { outline: 2px solid var(--green-2); outline-offset: 1px; border-color: transparent; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 13px; }
.consent input { width: auto; margin-top: 3px; }
.form-msg { font-size: 14px; font-weight: 600; min-height: 1.4em; margin: 0; }
.form-msg.ok { color: var(--green-2); }
.form-msg.err { color: var(--danger); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
footer p { margin: 0 0 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 20; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .hero { padding: 36px 0 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .grid-2, .row { grid-template-columns: 1fr; }
  .share, .lead-card { padding: 22px; }
  .btn { width: 100%; }
  .nav-cta { display: none; }
  .countdown .label { flex-basis: 100%; }
}

/* ===== Menu ===== */
.menu { border-bottom: 1px solid var(--line); background: var(--bg); }
.menu .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.menu .wrap::-webkit-scrollbar { display: none; }
.menu a { flex-shrink: 0; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; }
.menu a:hover { color: var(--ink); background: var(--surface); }
.menu a[aria-current="page"] { color: var(--green-2); background: var(--gold-soft); }

/* ===== Halaman artikel ===== */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head { padding: 16px 0 8px; }
.page-head h1 { font-size: clamp(28px, 5vw, 42px); margin: 8px 0 12px; }
.meta { font-size: 13px; color: var(--muted); }
.prose { max-width: 720px; }
.prose h2 { margin-top: 40px; }
.prose h3 { font-size: 18px; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--green-2); font-weight: 600; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.toc b { font-size: 14px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.toc a { text-decoration: none; font-weight: 500; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 16px 0; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg); }
tr:last-child td { border-bottom: 0; }
td b { white-space: nowrap; }

.note { background: var(--gold-soft); border-radius: 12px; padding: 14px 18px; margin: 20px 0; font-size: 15px; }
.note p { margin: 0; }
.sources { font-size: 13px; color: var(--muted); }
.sources a { color: var(--muted); font-weight: 500; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.related a { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.related a:hover { border-color: var(--green-2); }
.related b { display: block; margin-bottom: 4px; }
.related span { font-size: 14px; color: var(--muted); }

/* ===== Kalkulator ===== */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc .full { grid-column: 1 / -1; }
.calc-out { background: var(--green); color: #fff; border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.calc-out .big { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.calc-out dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 14px 0 0; font-size: 14px; }
.calc-out dt { color: rgba(255,255,255,.8); }
.calc-out dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.hint { font-size: 12px; font-weight: 400; color: var(--muted); }

@media (max-width: 640px) {
  .calc { grid-template-columns: 1fr; }
}

.prose .steps { padding-left: 0; }
.prose .steps h3 { margin: 0 0 4px; }

/* ===== Kartu promosi ===== */
.promo { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); transition: border-color .2s ease; }
.promo:hover { border-color: var(--green-2); }
.promo-art { width: 140px; height: 140px; }
.promo h2 { margin: 12px 0 8px; }
.promo p { margin: 0 0 16px; color: var(--muted); }
@media (max-width: 640px) {
  .promo { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .promo-art { width: 96px; height: 96px; }
}
