/* FMVA Sprint — Neo-Brutalism */
:root {
  --bg: #FFF6E9;
  --ink: #1a1a1a;
  --yellow: #FFC900;
  --pink: #FF90E8;
  --green: #8AC926;
  --blue: #5BC0EB;
  --purple: #C4A1FF;
  --orange: #FF6B35;
  --red: #FF5D5D;
  --card: #FFFFFF;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(#1a1a1a22 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  color: var(--ink);
  line-height: 1.65;
  padding-bottom: 90px;
}
/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.logo {
  font-weight: 900; font-size: 1.25rem; letter-spacing: -0.5px;
  background: var(--ink); color: var(--yellow);
  padding: 4px 12px; border-radius: 10px; border: 3px solid var(--ink);
  cursor: pointer; user-select: none;
}
.streak {
  margin-left: auto;
  background: var(--card); border: 3px solid var(--ink); border-radius: 999px;
  padding: 4px 14px; font-weight: 800; box-shadow: var(--shadow-sm);
  font-size: .9rem; white-space: nowrap;
}
/* ---------- layout ---------- */
.wrap { max-width: 920px; margin: 0 auto; padding: 20px 16px; }
.page { display: none; }
.page.active { display: block; animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
/* ---------- hero ---------- */
.hero {
  background: var(--pink);
  border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px; margin: 18px 0 24px; position: relative; overflow: hidden;
}
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 900; letter-spacing: -1.5px; line-height: 1.05; }
.hero h1 .hl { background: var(--yellow); padding: 0 10px; border: 3px solid var(--ink); border-radius: 10px; display: inline-block; transform: rotate(-1.5deg); }
.hero p { font-weight: 600; margin-top: 12px; max-width: 60ch; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badge {
  background: var(--card); border: 3px solid var(--ink); border-radius: 999px;
  padding: 3px 12px; font-size: .8rem; font-weight: 800; box-shadow: var(--shadow-sm);
}
/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; position: relative;
}
.card h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: 6px; }
.card p { font-size: .93rem; }
.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 900; letter-spacing: .5px;
  border: 2.5px solid var(--ink); border-radius: 8px; padding: 2px 9px; margin-bottom: 10px;
  text-transform: uppercase;
}
.tag.t-fondasi { background: var(--green); }
.tag.t-hari { background: var(--blue); }
.tag.t-case { background: var(--purple); }
.tag.t-tool { background: var(--orange); color: #fff; }
.tag.t-soon { background: #ddd; }
/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 900; font-size: 1rem;
  background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 12px;
  padding: 10px 20px; box-shadow: var(--shadow-sm);
  cursor: pointer; text-decoration: none; transition: transform .08s;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.blue { background: var(--blue); }
.btn.pink { background: var(--pink); }
.btn.green { background: var(--green); }
.btn.ghost { background: var(--card); }
.btn.small { font-size: .85rem; padding: 7px 14px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
/* ---------- lesson ---------- */
.lesson-head {
  background: var(--blue); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px;
}
.lesson-head h2 { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 900; letter-spacing: -.5px; }
.lesson-head .sub { font-weight: 700; opacity: .85; margin-top: 4px; }
.sec {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
}
.sec h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 10px; }
.sec h3 .n {
  display: inline-block; background: var(--ink); color: #fff; border-radius: 8px;
  padding: 0 10px; margin-right: 8px; font-size: 1rem;
}
.sec p, .sec li { font-size: .96rem; }
.sec ul, .sec ol { padding-left: 22px; margin: 8px 0; }
.sec li { margin-bottom: 6px; }
.formula {
  background: var(--ink); color: var(--yellow);
  border-radius: 10px; padding: 12px 16px; margin: 12px 0;
  font-family: Consolas, "Courier New", monospace; font-weight: 700; font-size: 1rem;
  overflow-x: auto; white-space: nowrap;
}
.example {
  border: 3px dashed var(--ink); border-radius: 12px; padding: 14px 16px; margin: 12px 0;
  background: #FFFBEF;
}
.example .lbl { font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.example.warung .lbl { color: #b3541e; }
.example.korporat .lbl { color: #1d4ed8; }
.example.jebakan { background: #FFF1F1; }
.example.jebakan .lbl { color: var(--red); }
table.brutal { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .9rem; }
.tblwrap { overflow-x: auto; margin: 12px 0; border: 2.5px solid var(--ink); border-radius: 10px; background: #fff; }
.tblwrap table.brutal { margin: 0; border: 0; min-width: 540px; }
.audio-row audio { flex: 1; min-width: 0; }
table.brutal th, table.brutal td { border: 2.5px solid var(--ink); padding: 8px 10px; text-align: left; }
table.brutal th { background: var(--yellow); font-weight: 900; }
table.brutal tr:nth-child(even) td { background: #FFF9EC; }
/* ---------- quiz ---------- */
.quiz-q {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
}
.quiz-q .qq { font-weight: 900; font-size: 1.02rem; margin-bottom: 12px; }
.opt {
  display: block; width: 100%; text-align: left;
  background: #fff; border: 3px solid var(--ink); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 8px; font-weight: 600; font-size: .95rem;
  cursor: pointer; box-shadow: var(--shadow-sm);
}
.opt:hover { background: #FFF3D6; }
.opt.correct { background: var(--green); }
.opt.wrong { background: var(--red); color: #fff; }
.opt:disabled { cursor: default; opacity: .95; }
.qfb { font-weight: 800; margin-top: 10px; padding: 10px 14px; border-radius: 10px; border: 3px solid var(--ink); display: none; }
.qfb.show { display: block; }
.qfb.ok { background: #D9F2C7; }
.qfb.no { background: #FFD9D9; }
.hintbox { margin-top: 10px; }
.hint {
  background: #FFF3D6; border: 3px dashed var(--ink); border-radius: 10px;
  padding: 10px 14px; margin-top: 8px; font-size: .92rem; display: none;
}
.hint.show { display: block; }
/* ---------- glossary / funcs ---------- */
.searchbar {
  width: 100%; border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-sm);
  padding: 12px 16px; font-size: 1rem; font-weight: 600; margin-bottom: 16px; background: #fff;
}
.gitem, .fitem {
  background: var(--card); border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: var(--shadow-sm); padding: 14px 16px; margin-bottom: 10px;
}
.gitem .term { font-weight: 900; font-size: 1.02rem; }
.gitem .term .en { color: #555; font-weight: 700; font-size: .88rem; }
.gitem .def { font-size: .93rem; margin-top: 4px; }
.fitem .fn { font-family: Consolas, monospace; font-weight: 900; background: var(--ink); color: var(--green); padding: 2px 10px; border-radius: 8px; display: inline-block; margin-bottom: 6px; }
/* ---------- bottom nav ---------- */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--card); border-top: 3px solid var(--ink);
  display: flex; justify-content: space-around; padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.bottomnav button {
  background: none; border: none; font-weight: 900; font-size: .72rem;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; color: var(--ink); padding: 4px 8px; border-radius: 10px;
}
.bottomnav button .ico { font-size: 1.35rem; }
.bottomnav button.on { background: var(--yellow); border: 2.5px solid var(--ink); }
/* ---------- misc ---------- */
.kicker { font-weight: 900; text-transform: uppercase; letter-spacing: 1px; font-size: .78rem; margin: 22px 0 10px; }
.kicker span { background: var(--ink); color: #fff; padding: 3px 12px; border-radius: 8px; }
.done-toggle { margin-top: 12px; }
.progressbar { height: 22px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.progressbar > div { height: 100%; background: var(--green); width: 0%; transition: width .4s; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 8px 0; border-bottom: 2px dashed #0003; font-weight: 600; }
.checklist li:last-child { border-bottom: none; }
footer.note { text-align: center; font-size: .8rem; font-weight: 600; opacity: .7; margin-top: 30px; }
img.brutal-img { width: 100%; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.audio-row { display: flex; align-items: center; gap: 10px; background: var(--purple); border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 10px 14px; margin: 12px 0; font-weight: 800; }
/* ---------- v1.8: status badges, callout, latihan buta ---------- */
.callout { border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 14px 16px; margin: 12px 0; background: #FFF3D6; font-size: .95rem; }
.callout.warn { background: #FFD9D9; }
.callout.scope { background: var(--yellow); margin: 18px 0; font-weight: 600; }
.statusrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.sbadge { background: var(--card); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-size: .85rem; font-weight: 800; box-shadow: var(--shadow-sm); }
.sbadge.ok { background: var(--green); }
.sbadge.done { background: var(--ink); color: #fff; }
.sheetcheck { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: .95rem; cursor: pointer; }
.sheetcheck input { width: 20px; height: 20px; margin-top: 2px; accent-color: #1a1a1a; flex-shrink: 0; }
details.ans { margin-top: 10px; border: 3px dashed var(--ink); border-radius: 10px; padding: 10px 14px; background: #FFFBEF; }
details.ans summary { font-weight: 900; cursor: pointer; }

/* ---------- simulator transaksi ---------- */
.simcard { border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 12px 14px; margin: 14px 0; background: #fff; }
.simcard h4 { margin: 0 0 4px; }
.simcard p { margin: 6px 0; }
.predrow { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.predrow .dim { font-weight: 900; min-width: 92px; }
.predbtn { border: 2.5px solid var(--ink); background: #fff; padding: 6px 12px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow-sm); font-family: inherit; font-size: .85rem; }
.predbtn.on { background: var(--yellow); }
.predbtn:disabled { cursor: default; opacity: .7; box-shadow: none; }
.simcard .btn:disabled { opacity: .45; }
.simhint { font-size: .85rem; font-weight: 700; background: var(--yellow); border: 2px solid var(--ink); padding: 6px 10px; margin: 8px 0 0; }
.delta.dup { color: #0B7A2E; font-weight: 900; }
.delta.ddown { color: var(--red); font-weight: 900; }
.simrev-in { border-top: 2.5px dashed var(--ink); margin-top: 10px; padding-top: 10px; }
