/* asngampang.id — tema "Hijau Daun & Kuning Mentari"
   Hijau = lulus, tenang, ngampang. Kuning = cerah, semangat (juga warna "ragu-ragu" di CAT BKN).
   Huruf: Plus Jakarta Sans — dirancang Tokotype (Indonesia) untuk identitas kota Jakarta. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url(/assets/fonts/jakarta.woff2) format("woff2-variations");
  font-weight: 200 800; font-display: swap;
}

:root {
  /* merek */
  --brand: #0f7a4a;        /* hijau daun */
  --brand-dark: #0a5534;
  --brand-ink: #083826;    /* hijau tua, untuk teks judul */
  --sun: #ffc531;          /* kuning mentari */
  --sun-dark: #e5a800;
  --sun-soft: #fff4d1;
  --mint: #e4f5ec;         /* hijau muda latar */
  /* netral */
  --bg: #f5f7f3;
  --sheet: #ffffff;
  --ink: #17221c;
  --ink-2: #4b5a52;
  --ink-3: #829089;
  --line: #e1e6e1;
  --soft: #eef1ed;
  /* status jawaban */
  --benar: #16a34a;
  --salah: #e5484d;
  --salah-soft: #fdebec;
  --ragu: #ffc531;
  --kosong: #d5dbd6;

  --f: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(8, 56, 38, .06), 0 10px 30px -12px rgba(8, 56, 38, .18);
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--f); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun-dark); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.15; letter-spacing: -0.02em; color: var(--brand-ink); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* ---------- tombol ---------- */
.btn {
  --bg: var(--brand); --fg: #fff; --bd: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd); border-radius: var(--r-pill);
  font: 700 16px/1 var(--f); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--bg) 80%, transparent);
  transition: transform .15s var(--ease), box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 18px -8px color-mix(in srgb, var(--bg) 80%, transparent); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sun { --bg: var(--sun); --fg: var(--brand-ink); }
.btn-ghost { --bg: transparent; --fg: var(--brand); --bd: var(--brand); box-shadow: none; }
.btn-soft { --bg: var(--mint); --fg: var(--brand-dark); box-shadow: none; }
.btn-white { --bg: #fff; --fg: var(--brand-ink); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ---------- bilah atas ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--brand); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-mark { width: 36px; height: 36px; flex: none; display: block; }
.logo-word { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a.plain { white-space: nowrap; color: #fff; opacity: .85; text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: var(--r-pill); font-size: 15px; }
.top nav a.plain:hover, .top nav a.plain.active { opacity: 1; background: rgba(255, 255, 255, .12); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); color: var(--brand-ink); font-weight: 800; text-decoration: none; margin-left: 6px; }

/* ---------- hero beranda ---------- */
.hero { background: var(--brand); color: #fff; padding: 40px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr minmax(0, 540px); gap: 56px; align-items: end; }
.hero-copy { padding-bottom: 72px; }
.hero h1 { color: #fff; font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 mark { background: none; color: var(--sun); }
.hero .lead { margin-top: 20px; font-size: 18.5px; max-width: 32em; color: rgba(255, 255, 255, .86); }
.hero .cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.hero .cat { border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; }

/* ---------- kartu soal ala CAT (hero & ujian) ---------- */
.cat { color: var(--ink); text-align: left; background: var(--sheet); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.cat-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.cat-bar b { font-weight: 800; color: var(--brand-ink); }
.timer {
  font: 800 17px/1 var(--f); font-variant-numeric: tabular-nums;
  padding: 9px 14px; border-radius: var(--r-pill); background: var(--sun-soft); color: var(--brand-ink);
}
.timer.low { background: var(--salah); color: #fff; }
.cat-body { padding: 16px 22px 10px; }
.q-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-3); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.q-text { font-size: 17px; line-height: 1.7; white-space: pre-line; text-align: left; }
.opts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.opt {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
  width: 100%; text-align: left; padding: 14px 18px; min-height: 56px;
  background: var(--soft); border: 2px solid transparent; border-radius: var(--r-md);
  cursor: pointer; line-height: 1.5; font-size: 16px;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.opt:hover { border-color: var(--line); background: #e8ece7; }
.opt:active { transform: scale(.995); }
.opt .k { font-weight: 800; color: var(--ink-2); }
.opt .s { font-size: 13px; font-weight: 700; opacity: .8; }
.opt[aria-pressed="true"] { background: var(--mint); border-color: var(--brand); }
.opt[aria-pressed="true"] .k { color: var(--brand); }
.opt.right { background: var(--benar); color: #fff; font-weight: 700; border-color: var(--benar); }
.opt.wrong { background: var(--salah); color: #fff; font-weight: 700; border-color: var(--salah); }
.opt.right .k, .opt.wrong .k { color: #fff; }
.opt.partial { background: var(--sun-soft); border-color: var(--sun); font-weight: 700; }

.grid110 { display: grid; grid-template-columns: repeat(22, 1fr); gap: 3px; padding: 16px 22px 20px; }
.grid110 i { aspect-ratio: 1; border-radius: 3px; background: var(--soft); transition: background .25s; }
.grid110 i.on { background: var(--benar); }
.grid110 i.ragu { background: var(--sun); }
.grid110 i.now { box-shadow: inset 0 0 0 2px var(--brand-ink); }
.grid-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.grid-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--soft); border: 1px solid var(--line); }
.grid-legend .l-on::before { background: var(--benar); border-color: var(--benar); }
.grid-legend .l-jawab::before { background: var(--brand); border-color: var(--brand); }
.grid-legend .l-mid::before { background: #8fd3a8; border-color: #8fd3a8; }
.grid-legend .l-ragu::before { background: var(--sun); border-color: var(--sun); }
.grid-legend .l-salah::before { background: var(--salah); border-color: var(--salah); }
.hero .grid-legend { padding: 0 22px 22px; }
.demo-feedback { margin: 14px 0 4px; padding: 14px 16px; border-radius: var(--r-md); background: var(--mint); font-size: 15px; color: var(--brand-ink); }
.demo-feedback.no { background: var(--salah-soft); color: #7a1d20; }

/* tabel & gambar di dalam soal */
.media:empty { display: none; }
.media { margin-top: 14px; overflow-x: auto; }
.media table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.media th, .media td { border: 1.5px solid var(--ink-2); padding: 8px 16px; text-align: center; min-width: 52px; }
.media th { background: var(--soft); font-weight: 700; }
.media .figrow { display: flex; flex-wrap: wrap; gap: 10px; }
.media .figrow figure { margin: 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.media svg { width: 96px; height: 96px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; }
.media .grid3 { display: grid; grid-template-columns: repeat(3, 96px); gap: 0; border: 2px solid var(--ink); width: max-content; }
.media .grid3 svg { border: 1px solid var(--ink-3); border-radius: 0; }
.opt .fig { display: flex; align-items: center; gap: 10px; }
.opt .fig svg { width: 76px; height: 76px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; }
.opt.right .fig svg, .opt.wrong .fig svg { border-color: #fff; }

/* ---------- bagian umum ---------- */
.sec { padding: 84px 0; }
.sec-head { max-width: 660px; margin-bottom: 36px; }
.sec-head p { margin-top: 12px; color: var(--ink-2); font-size: 17.5px; }
.band { background: var(--sheet); }

/* hal yang tidak perlu dilakukan */
.why-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-list li { padding: 22px; border-radius: var(--r-md); background: var(--bg); border-left: 4px solid var(--brand); }
.why-list h3 { font-weight: 800; font-size: 18px; color: var(--ink); margin: 0; }
.why-list p { margin-top: 6px; color: var(--ink-2, var(--ink)); font-size: 15.5px; }
.btn-end { --bg: #fff; --fg: var(--salah); --bd: var(--salah); box-shadow: none; }
.btn-end:hover { --bg: #fdeceb; box-shadow: none; }

/* ---------- banner paket (dipakai kecil & besar) ---------- */
.banner {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px;
  padding: 22px 24px; border-radius: var(--r-md); overflow: hidden; color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 18px, transparent 18px 36px),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.banner.free { background: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 18px, transparent 18px 36px), linear-gradient(135deg, var(--sun) 0%, #ffb000 100%); color: var(--brand-ink); }
.banner.soon { background: repeating-linear-gradient(135deg, rgba(255,255,255,.3) 0 18px, transparent 18px 36px), linear-gradient(135deg, #c9d1cb, #b2bcb5); color: #4b5a52; }
.banner .ill { width: 74px; height: 74px; }
.banner .t1 { font-weight: 800; font-size: 19px; line-height: 1; letter-spacing: -0.01em; }
.banner .t2 { font-weight: 800; font-size: 25px; line-height: 1.05; color: var(--sun); letter-spacing: -0.02em; margin-top: 4px; }
.banner.free .t2, .banner.soon .t2 { color: inherit; }
.banner .t3 { display: inline-block; margin-top: 8px; padding: 4px 10px; background: var(--brand-ink); color: #fff; font-weight: 800; font-size: 15px; border-radius: 6px; }
.banner.free .t3 { background: var(--brand); }
.banner.soon .t3 { background: #6d7a72; }
.banner-lg { padding: 34px 40px; gap: 28px; border-radius: var(--r-lg); min-height: 240px; }
.banner-lg .ill { width: 150px; height: 150px; }
.banner-lg .t1 { font-size: clamp(30px, 4vw, 46px); }
.banner-lg .t2 { font-size: clamp(32px, 4.4vw, 50px); }
.banner-lg .t3 { font-size: clamp(20px, 2.4vw, 28px); padding: 4px 14px; }

/* kartu paket */
.pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pkg { display: flex; flex-direction: column; background: var(--sheet); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .2s var(--ease); }
a.pkg:hover { transform: translateY(-3px); }
.pkg .body { padding: 14px 8px 8px; display: flex; flex-direction: column; flex: 1; }
.pkg h3 { font-size: 19px; }
.pkg .blurb { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--mint); color: var(--brand-dark); font-size: 13.5px; font-weight: 700; }
.chip svg { width: 15px; height: 15px; }
.chip.sun { background: var(--sun-soft); color: #7a5700; }
.pkg .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.pkg .price { font-weight: 800; font-size: 22px; color: var(--brand-ink); letter-spacing: -0.02em; }
.pkg.soon { box-shadow: none; background: transparent; border: 2px dashed var(--line); }
.owned-tag { position: absolute; right: 12px; top: 12px; padding: 4px 10px; border-radius: var(--r-pill); background: #fff; color: var(--brand); font-size: 12.5px; font-weight: 800; }

/* penggaris passing grade (beranda) */
.rulers { display: grid; gap: 40px; padding-top: 18px; max-width: 780px; }
.ruler-row { display: grid; grid-template-columns: 70px 1fr 90px; gap: 16px; align-items: center; }
.ruler-row .lbl { font-weight: 800; font-size: 18px; color: var(--brand-ink); }
.ruler-row .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 14.5px; }
.ruler { position: relative; height: 18px; background: var(--soft); border-radius: var(--r-pill); }
.ruler .fill { position: absolute; inset: 0 auto 0 0; border-radius: var(--r-pill); background: var(--benar); width: 0; transition: width 1.1s var(--ease); }
.ruler .fill.under { background: var(--salah); }
.ruler .pg { position: absolute; top: -7px; bottom: -7px; width: 3px; border-radius: 2px; background: var(--brand-ink); }
.ruler .pg span { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); font-size: 12.5px; font-weight: 800; white-space: nowrap; color: var(--brand-ink); }

/* FAQ */
.faq { max-width: 780px; display: grid; gap: 10px; }
.faq details { background: var(--sheet); border-radius: var(--r-md); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 20px; color: var(--brand-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--ink-2); max-width: 64ch; }

footer.foot { padding: 36px 0 56px; color: var(--ink-3); font-size: 14px; }
footer.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* ---------- form ---------- */
.auth { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 32px 0 64px; }
.auth-card { width: min(100% - 32px, 440px); background: var(--sheet); border-radius: var(--r-lg); padding: 34px 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 32px; }
.auth-card .sub { margin: 10px 0 24px; color: var(--ink-2); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 14.5px; color: var(--brand-ink); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.input { width: 100%; min-height: 52px; padding: 0 16px; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 17px; }
.input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px rgba(15, 122, 74, .14); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 76px; }
.pw-wrap button { position: absolute; right: 8px; top: 8px; height: 36px; padding: 0 10px; border: 0; background: none; color: var(--brand); font-weight: 700; cursor: pointer; }
.form-error { color: var(--salah); font-size: 14.5px; min-height: 1.4em; margin: 4px 0 10px; font-weight: 600; }
.auth-alt { margin-top: 16px; color: var(--ink-2); font-size: 15px; text-align: center; }

/* ---------- halaman dalam ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--brand); font-weight: 800; font-size: 18px; text-decoration: none; }
.back::before { content: ""; width: 9px; height: 9px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); margin-right: 2px; }
.page-head { padding: 22px 0 40px; display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 40px; align-items: center; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.page-head .chips { margin-top: 18px; }
.page-head .chip { padding: 10px 16px; font-size: 14.5px; border-radius: var(--r-sm); }
.page-head .actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.panel { background: var(--sheet); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.panel h2 { font-size: 24px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.dash-head { padding: 34px 0 8px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(30px, 4vw, 44px); }

.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15.5px; }
.table th, .table td { text-align: left; padding: 15px 18px; }
.table thead th { background: var(--sun-soft); font-size: 13.5px; font-weight: 800; color: var(--brand-ink); }
.table thead th:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.table thead th:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.table tbody tr:nth-child(even) td { background: #f8faf7; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td b.ok { color: var(--benar); }
.table td b.no { color: var(--salah); }
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 800; }
.badge.ok { background: var(--mint); color: var(--benar); }
.badge.no { background: var(--salah-soft); color: var(--salah); }
.empty { padding: 30px; text-align: center; color: var(--ink-2); }

/* kartu skor */
.score-card { position: relative; overflow: hidden; text-align: center; padding: 34px 24px 28px; border-radius: var(--r-md); background: var(--mint); color: var(--brand-ink); }
.score-card::before, .score-card::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.score-card::before { width: 180px; height: 180px; right: -60px; top: -70px; }
.score-card::after { width: 140px; height: 140px; left: -50px; bottom: -60px; }
.score-card.fail { background: var(--salah-soft); }
.score-card > * { position: relative; }
.score-card .t { font-weight: 800; }
.score-card .sub { font-size: 14.5px; color: var(--ink-2); }
.score-card .big { font-size: 76px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; margin: 18px 0 12px; color: var(--benar); font-variant-numeric: tabular-nums; }
.score-card.fail .big { color: var(--salah); }
.verdict { display: inline-block; margin-top: 14px; padding: 10px 26px; border-radius: var(--r-pill); background: var(--benar); color: #fff; font-weight: 800; letter-spacing: .02em; }
.score-card.fail .verdict { background: var(--salah); }
.score-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.score-actions .btn { padding: 0 12px; }

/* ---------- ujian & pembahasan ---------- */
.exam-body { background: var(--bg); }
.exam-top { padding: 22px 0 6px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.exam-top h1 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.exam { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding: 14px 0 120px; align-items: start; }
.qcard { background: var(--sheet); border-radius: var(--r-lg); padding: 28px 30px; box-shadow: var(--shadow); }
.qcard .q-head { flex-wrap: wrap; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.qcard .q-head b { font-size: 16px; color: var(--brand-ink); }
.qcard .q-text { font-size: 17.5px; }
.side { display: grid; gap: 18px; position: sticky; top: 90px; }
.side .box { background: var(--sheet); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.side h3 { font-size: 16px; margin-bottom: 14px; }
.sec-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; background: var(--soft); border-radius: var(--r-pill); }
.sec-tabs button { border: 0; background: none; border-radius: var(--r-pill); padding: 9px 0; font-weight: 800; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.sec-tabs button.active { background: var(--brand); color: #fff; }
.numgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; max-height: 46vh; overflow: auto; padding: 2px; }
.numgrid button {
  position: relative; aspect-ratio: 1.05; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--soft); color: var(--ink-2); font: 800 16px/1 var(--f); padding: 0;
  transition: transform .1s;
}
.numgrid button:hover { transform: translateY(-1px); }
.numgrid button sup { position: absolute; top: 5px; right: 6px; font-size: 10.5px; font-weight: 800; }
.numgrid button.on { background: var(--brand); color: #fff; }
.numgrid button.ragu { background: var(--sun); color: var(--brand-ink); }
.numgrid button.benar { background: var(--benar); color: #fff; }
.numgrid button.salah { background: var(--salah); color: #fff; }
.numgrid button.tkp-mid { background: #8fd3a8; color: var(--brand-ink); }
.numgrid button.tkp-low { background: var(--sun); color: var(--brand-ink); }
.numgrid button.now { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand-ink); }
.side .grid-legend { margin-top: 14px; }
.exam-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: #fff; box-shadow: 0 -8px 24px -16px rgba(8, 56, 38, .3); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.exam-actions .wrap { display: flex; gap: 10px; align-items: center; }
.exam-actions .spacer { flex: 1; }
.save-state { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.save-state.err { color: var(--salah); }
.btn-ragu { --bg: var(--sun); --fg: var(--brand-ink); }
.btn-ragu[aria-pressed="false"] { --bg: #fff; --bd: var(--sun); box-shadow: none; }
.nav-toggle { display: none; }
.lbl-m { display: none; }
.explain { margin-top: 22px; }
.explain .who { margin-top: 10px; font-size: 15.5px; }
.tabs-mini { display: inline-flex; margin-top: 16px; padding: 5px; border-radius: var(--r-md); background: var(--soft); }
.tabs-mini span { padding: 10px 22px; border-radius: 12px; background: #fff; font-weight: 800; color: var(--brand); font-size: 14.5px; box-shadow: var(--shadow); }
.explain .text { margin-top: 18px; line-height: 1.75; }
.review-nav { display: flex; justify-content: space-between; margin-top: 30px; }

dialog { border: 0; border-radius: var(--r-lg); padding: 28px; width: min(100% - 32px, 440px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .4); }
dialog::backdrop { background: rgba(8, 56, 38, .5); }
dialog h2 { font-size: 26px; }
dialog p { margin-top: 10px; color: var(--ink-2); }
dialog .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--brand-ink); color: #fff; padding: 13px 20px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; z-index: 50; transition: .25s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.exam-body .toast { bottom: 92px; }

/* ---------- responsif ---------- */
@media (max-width: 980px) {
  .hero .wrap, .page-head, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-2 > aside { order: -1; }
  .hero-copy { padding-bottom: 0; }
  .why-list { grid-template-columns: 1fr 1fr; }
  .exam { grid-template-columns: 1fr; }
  .side { position: static; }
  .exam-mode .side {
    position: fixed; inset: auto 0 0 0; z-index: 30; gap: 0;
    transform: translateY(105%); transition: transform .3s var(--ease);
  }
  .exam-mode .side.open { transform: translateY(0); }
  .exam-mode .side .box { border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -20px 50px -10px rgba(0,0,0,.3); }
  .nav-toggle { display: inline-flex; }
  .numgrid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .media svg { width: 70px; height: 70px; }
  .media .grid3 { grid-template-columns: repeat(3, 70px); }
  .top .wrap { height: 64px; }
  .top nav a.plain.hide-sm { display: none; }
  .logo-word { font-size: 17px; }
  .logo { gap: 8px; }
  .logo-mark { width: 32px; height: 32px; }
  .top nav a.plain { padding: 8px 8px; }
  .top nav .btn-sm { padding: 0 14px; }
  .why-list { grid-template-columns: 1fr; }
  .grid110 { gap: 2px; padding: 14px 16px 16px; }
  .cat-body { padding: 14px 16px 8px; }
  .cat-bar { padding: 16px 16px 0; }
  .qcard { padding: 22px 18px; }
  .ruler-row { grid-template-columns: 52px 1fr; }
  .ruler-row .val { grid-column: 2; text-align: left; margin-top: -8px; }
  .banner-lg { padding: 24px; min-height: 0; }
  .banner-lg .ill { width: 90px; height: 90px; }
  .exam-actions .btn { padding: 0 14px; }
  .save-state { display: none; }
  .table th, .table td { padding: 12px 10px; }
  .score-card .big { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (max-width: 380px) {
  .hide-xs { display: none; }
}
@media (max-width: 340px) {
  .logo-word { display: none; }
}
@media (max-width: 560px) {
  .exam-actions .wrap { display: grid; grid-template-columns: 48px repeat(3, minmax(0, 1fr)); gap: 8px; }
  .exam-actions #next .lbl { display: none; }
  .exam-actions #next .lbl-m { display: inline; }
  .exam-actions .spacer, .exam-actions .save-state { display: none; }
  .exam-actions .btn { padding: 0 8px; min-height: 46px; font-size: 15px; }
  .exam-actions #prev .lbl { display: none; }
  .exam-actions #prev span[aria-hidden], .exam-actions #next span[aria-hidden] { font-size: 22px; line-height: 1; }
}
@media (max-width: 400px) {
  .hide-xs { display: none; }
}
