:root {
  --bg: #F2F9EF;
  --surface: #FFFFFF;
  --surface-2: #F6FBF3;
  --ink: #12301F;
  --ink-2: #4B6655;
  --ink-3: #89A091;
  --line: #DDEDDC;
  --line-2: #C2DDC4;
  --brand: #0E9F4F;         /* hijau segar */
  --brand-dark: #0A7A3C;
  --brand-ink: #FFFFFF;
  --brand-soft: #E2F6E7;
  --accent: #FFC629;        /* kuning matahari */
  --accent-ink: #4A3300;
  --orange: #FF7A1A;
  --promo: #E8600A;
  --promo-soft: #FFF1CC;
  --slate: #0B3B28;         /* hijau hutan gelap */
  --ok: #12A150; --ok-soft: #E2F6E7;
  --bad: #E5383B; --bad-soft: #FFE6E4;
  --warn: #B27300; --warn-soft: #FFF4D1;
  --radius: 14px;
  --shadow: 0 2px 4px rgba(18,48,31,.05), 0 10px 28px rgba(18,48,31,.07);
  --font-display: "Fredoka", "Plus Jakarta Sans", system-ui, sans-serif;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
h1 { font-size: 30px; } h2 { font-size: 21px; } h3 { font-size: 17px; }
.muted { color: var(--ink-2); } .small { font-size: 13px; } .tiny { font-size: 12px; color: var(--ink-3); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; }

/* demo bar */
.demobar { background: var(--slate); color: #D6EBDD; font-size: 12.5px; }
.demobar .in { max-width: 1200px; margin: 0 auto; padding: 6px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.demobar b { color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; }
.demobar a { color: #D6EBDD; text-decoration: none; padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.demobar a:hover { background: rgba(255,255,255,.12); color: #fff; }
.demobar a.on { background: var(--accent); color: var(--accent-ink); }
.demobar .sp { flex: 1; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1200px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.logo { width: 42px; height: 42px; border-radius: 14px; background: var(--brand); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); display: grid; place-items: center; flex: none; }
.logo svg { width: 24px; height: 24px; }
.top .t1 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--brand-dark); }
.top .t2 { font-size: 12.5px; color: var(--ink-2); }
.top .sp { flex: 1; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px 60px; }
.narrow { max-width: 860px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.card .hd { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card .bd { padding: 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3,1fr); } .g4 { grid-template-columns: repeat(4,1fr); }
.side { grid-template-columns: minmax(0,1fr) 360px; align-items: start; }
@media (max-width: 900px) { .g2,.g3,.g4,.side { grid-template-columns: 1fr; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

/* form */
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
input, select, textarea {
  font: inherit; color: inherit; width: 100%; padding: 10px 12px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: #fff; outline: none;
}
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
input[type=color] { padding: 2px; height: 38px; }

.btn {
  font: inherit; font-weight: 600; border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: transform .12s, filter .12s, box-shadow .12s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; justify-content: center;
}
.btn:hover { border-color: var(--ink-3); }
.btn.pri { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 4px 0 var(--brand-dark); }
.btn.pri:active, .btn.accent:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--brand-dark); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 0 #D9A200; }
.btn.pri:hover { filter: brightness(1.07); }
.btn.dark { background: var(--slate); border-color: var(--slate); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.lg { padding: 14px 22px; font-size: 16px; }
.btn.xl { padding: 18px 30px; font-size: 19px; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pill.promo { background: var(--promo-soft); border-color: #FFD966; color: var(--promo); }
.pill.ok { background: var(--ok-soft); border-color: #A8E2BD; color: var(--brand-dark); }
.pill.bad { background: var(--bad-soft); border-color: #F1C2BC; color: var(--bad); }
.pill.warn { background: var(--warn-soft); border-color: #EFD995; color: var(--warn); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

.alert { padding: 12px 16px; border-radius: 16px; font-size: 14px; border: 1px solid; }
.alert.bad { background: var(--bad-soft); border-color: #F1C2BC; color: #7E231B; }
.alert.ok { background: var(--ok-soft); border-color: #BFE0CB; color: #1E5A37; }
.alert.warn { background: var(--warn-soft); border-color: #EFD995; color: #6E4B03; }
.alert.info { background: var(--promo-soft); border-color: #FFDD7A; color: #6B3B00; }

/* stepper qty */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 38px; border: 0; background: var(--surface-2); font-size: 18px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--brand-soft); }
.qty span { min-width: 40px; text-align: center; font-weight: 700; font-family: var(--font-display); font-size: 18px; }

/* category row */
.catrow { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.catrow:last-child { border-bottom: 0; }
.catrow .bar { width: 6px; align-self: stretch; border-radius: 4px; }
.catrow .info { flex: 1; min-width: 0; }
.catrow .nm { font-weight: 700; }
.price .old { text-decoration: line-through; color: var(--ink-3); font-size: 13px; margin-right: 6px; }
.price .now { font-weight: 700; }

/* session picker */
.sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 10px; }
.ses { border: 2px solid var(--line-2); border-radius: 18px; padding: 12px; cursor: pointer; background: #fff; text-align: left; font: inherit; color: inherit; }
.ses:hover { border-color: var(--ink-3); }
.ses.on { border-color: var(--brand); background: var(--brand-soft); }
.ses:disabled { opacity: .45; cursor: not-allowed; }
.ses .tm { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.ses .cap { height: 5px; background: var(--line); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.ses .cap i { display: block; height: 100%; background: var(--ok); }

/* summary */
.sum-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.sum-line.disc { color: var(--promo); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.sum-total .v { font-size: 28px; font-weight: 600; font-family: var(--font-display); color: var(--brand-dark); }

/* steps */
.steps { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.steps .s { flex: 1; min-width: 110px; font-size: 12.5px; color: var(--ink-3); padding-top: 8px; border-top: 5px solid var(--line); border-radius: 3px; font-weight: 700; }
.steps .s.on { color: var(--brand); border-color: var(--brand); }
.steps .s.done { color: var(--brand-dark); border-color: #8FD6A8; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t td.r, table.t th.r { text-align: right; }
table.t tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--slate); color: #fff; padding: 10px 16px; border-radius: 10px; opacity: 0; transition: .25s; z-index: 50; font-size: 14px; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.qrbox { background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--line); display: inline-block; }
.qrbox img { display: block; width: 180px; height: 180px; }

.hidden { display: none !important; }
.center { text-align: center; }
.kpi .v { font-size: 30px; font-weight: 600; font-family: var(--font-display); color: var(--brand-dark); }
.kpi .l { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.kpi .s { font-size: 12px; color: var(--ink-3); }

.demo-help { background: #FFFBEA; border: 1.5px dashed #FFD966; border-radius: 16px; padding: 12px 14px; font-size: 13px; }
.demo-help .codes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.demo-help button { font: inherit; font-size: 12.5px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.demo-help button:hover { border-color: var(--brand); color: var(--brand); }
.card.bd { padding: 18px 20px; }

.price .now { color: var(--brand-dark); }
.qty button { color: var(--brand-dark); font-weight: 700; }
.qty button:hover { background: var(--accent); }
