/* LatihCPNS — Design system Arah 3: Bento Pastel / Y2K Pop (1 Des 2026).
   Landing + dashboard = bento pastel. Runner CAT (ruang ujian) = tenang & kontras tinggi. */
:root {
  --bg: #FFF7ED; --ink: #1E1B2E; --mut: #5B5670;
  --violet: #7C3AED; --violet2: #6D28D9; --pink: #EC4899; --lime: #84CC16; --yellow: #FACC15;
  --mint: #C8F7DC; --sky: #CDEBFF; --lilac: #DCCBFF; --peach: #FFE3C2; --rose: #FFD6E8;
  --card: #FFFFFF; --line: rgba(30, 27, 46, .08); --line-strong: rgba(30, 27, 46, .18);
  --bg-alt: #F6EFE4;
  --ok: #15803D; --oksoft: #DCFCE7; --bad: #B91C1C; --badsoft: #FEE2E2;
  --warnsoft: #FFF1F2; --r: 24px; --r-sm: 14px;
  --sh: 0 8px 30px rgba(30, 27, 46, .08);
  --hard: 0 6px 0 rgba(30, 27, 46, .9);
  --f-head: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --f-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* alias lama (dipakai markup inline di views.js) */
  --navy: #1E1B2E; --navy2: #2d2946; --gold: #7C3AED; --goldsoft: #EDE4FF; --goldtint: #F7F2FF;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(30px, 6vw, 52px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; color: var(--ink); }
a { color: var(--violet); text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

/* ===== BANNER ===== */
.topbanner { background: linear-gradient(90deg, var(--violet), var(--pink)); color: #fff; }
.topbanner-in { max-width: 1100px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.topbanner-txt { font-weight: 700; font-size: 14px; line-height: 1.4; color: #fff; }
.topbanner-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 16px; border-radius: 999px; background: #fff; color: var(--violet); font-size: 13px; font-weight: 700; white-space: nowrap; }
.topbanner-cta:hover { color: var(--violet2); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: none; background: var(--violet); color: #fff; font-family: var(--f-body); font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: var(--hard); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(30, 27, 46, .9); color: #fff; }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 2px 0 rgba(30, 27, 46, .9); }
.btn.gold { background: var(--violet); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 6px 0 rgba(30, 27, 46, .9); border: 2px solid var(--ink); }
.btn.ghost:hover { color: var(--ink); background: #fff; }
.btn.light { background: var(--bg-alt); color: var(--ink); box-shadow: 0 4px 0 rgba(30, 27, 46, .25); }
.btn.white { background: #fff; color: var(--violet); box-shadow: 0 6px 0 rgba(30, 27, 46, .35); }
.btn.white:hover { color: var(--violet2); }
.btn.sm { min-height: 44px; padding: 8px 18px; font-size: 14px; box-shadow: 0 4px 0 rgba(30, 27, 46, .9); }
.btn.sm:active { transform: translate(2px, 2px); box-shadow: 0 1px 0 rgba(30, 27, 46, .9); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== PILLS ===== */
.pill { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh); line-height: 1.2; }
.pill.navy { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; padding: 4px 10px; font-size: 12px; }
.pill.ok { background: var(--mint); color: #166534; border-color: transparent; }
.pill.bad { background: var(--badsoft); color: var(--bad); border-color: transparent; }
.pill.new { background: var(--yellow); color: var(--ink); border-color: transparent; }
.sticker { display: inline-block; background: var(--pink); color: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13px; transform: rotate(-2deg); margin-left: 8px; box-shadow: 0 4px 0 rgba(30, 27, 46, .9); }

/* ===== BRAND ===== */
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--f-head); font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand i { width: 38px; height: 38px; flex: none; background: var(--violet); color: #fff; display: grid; place-items: center; font-style: normal; clip-path: polygon(50% 0%, 100% 12%, 100% 75%, 50% 100%, 0% 75%, 0% 12%); }
.brand i::before { content: "✓"; color: var(--yellow); font-size: 20px; line-height: 1; font-weight: 900; }

/* ===== NAV LANDING ===== */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 247, 237, .88); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: nowrap; }
.lnav { display: flex; gap: 4px; flex: 1; margin-left: 12px; overflow-x: auto; scrollbar-width: none; }
.lnav::-webkit-scrollbar { display: none; }
.lnav a { white-space: nowrap; color: var(--ink); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; min-height: 40px; display: flex; align-items: center; }
.lnav a:hover, .lnav a.on { background: #fff; color: var(--ink); }
.lbtn { flex: none; }

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; padding: 44px 0 36px; }
.hero .wrap { position: relative; z-index: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.b1 { width: 300px; height: 300px; background: var(--rose); top: -80px; left: -90px; }
.b2 { width: 260px; height: 260px; background: var(--lilac); top: 10%; right: -110px; }
.b3 { width: 220px; height: 220px; background: var(--mint); bottom: -60px; left: 30%; }
.hero h1 { margin: 18px 0 14px; max-width: 700px; }
.hero h1 em { font-style: normal; background: var(--yellow); border-radius: 8px; padding: 0 8px; display: inline-block; transform: rotate(-1deg); }
.hero p.lead { font-size: 17px; max-width: 640px; color: var(--mut); }
.hero .cta { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 14px; max-width: 460px; }
.note { font-size: 13px; color: var(--mut); }
.trustrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.trustrow .pill { font-size: 13px; }
.hero-visual { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--sh); padding: 22px; margin-top: 24px; max-width: 520px; }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px 160px at 85% 0%, rgba(124, 58, 237, .12), transparent 70%); pointer-events: none; }
.hv-head { display: inline-block; background: var(--violet); color: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13px; }
.hv-timer { font-family: var(--f-head); font-weight: 800; font-size: 52px; margin: 14px 0 6px; letter-spacing: -.02em; line-height: 1.1; }
.hv-bar { height: 12px; background: #F1EDE6; border-radius: 999px; overflow: hidden; }
.hv-bar::after { content: ""; display: block; width: 12%; height: 100%; background: linear-gradient(90deg, var(--violet), var(--pink)); border-radius: 999px; }
.hv-foot { margin-top: 10px; font-weight: 700; color: var(--mut); font-size: 14px; }

/* ===== MARQUEE ===== */
.marquee { background: linear-gradient(90deg, var(--violet), var(--pink), #F59E0B); color: #fff; overflow: hidden; padding: 12px 0; white-space: nowrap; }
.marquee-in { display: inline-block; animation: mq 60s linear infinite; font-family: var(--f-head); font-weight: 800; font-size: 16px; letter-spacing: .02em; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== SECTIONS / BENTO ===== */
.sec { padding: 44px 0; }
.sec.tight { padding: 36px 0 12px; }
.sec .sub { color: var(--mut); max-width: 640px; margin-bottom: 22px; }
.bento { display: grid; grid-template-columns: 1fr; gap: 14px; }
.grid { display: grid; gap: 14px; }
.grid > *, .bento > *, .card { min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; overflow: hidden; }
.card h3 { margin-bottom: 6px; font-size: 20px; }
.card p { color: var(--mut); font-size: 15px; }
.card p:last-child { margin-bottom: 0; }
.tint-mint { background: var(--mint); } .tint-sky { background: var(--sky); } .tint-lilac { background: var(--lilac); } .tint-peach { background: var(--peach); } .tint-rose { background: var(--rose); }
.num { font-family: var(--f-head); font-weight: 800; font-size: 40px; letter-spacing: -.02em; line-height: 1; margin-bottom: 8px; }
.num small { font-size: 16px; color: var(--mut); font-weight: 700; }
.c-violet { color: var(--violet); } .c-pink { color: var(--pink); } .c-lime { color: #4D7C0F; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; background: var(--lilac); font-family: var(--f-head); font-weight: 800; }
.ico svg { width: 24px; height: 24px; stroke: var(--ink); }
.bento.b3col .card:nth-child(5n+2) .ico { background: var(--rose); }
.bento.b3col .card:nth-child(5n+3) .ico { background: var(--mint); }
.bento.b3col .card:nth-child(5n+4) .ico { background: var(--sky); }
.bento.b3col .card:nth-child(5n+5) .ico { background: var(--peach); }
.steps { counter-reset: s; }
.step { counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--f-head); font-weight: 800; font-size: 34px; color: var(--violet); line-height: 1.1; margin-bottom: 6px; }
.tblwrap { overflow-x: auto; }
.cmpcard { padding: 14px; }
.cmp { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.cmp th, .cmp td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp th { background: var(--violet); color: #fff; font-family: var(--f-head); }
.cmp th:first-child { border-radius: 14px 0 0 0; } .cmp th:last-child { border-radius: 0 14px 0 0; }
.cmp tr:nth-child(even) td { background: #FBF6EF; }
.cmp td.y { font-weight: 700; color: var(--violet); }
.cmp td.n { color: var(--mut); }

/* ===== HARGA ===== */
.price { max-width: 460px; margin: 0 auto; text-align: left; background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; border: none; border-radius: 28px; padding: 30px 24px; box-shadow: 0 12px 40px rgba(124, 58, 237, .35); }
.price .sticker-price { position: absolute; top: 18px; right: -34px; background: var(--yellow); color: var(--ink); font-weight: 800; padding: 6px 40px; transform: rotate(6deg); font-size: 13px; box-shadow: 0 4px 0 rgba(30, 27, 46, .9); }
.price .pill.new { align-self: flex-start; }
.price s { opacity: .8; font-size: 18px; color: #fff; }
.price .big { font-family: var(--f-head); font-weight: 800; font-size: 54px; line-height: 1.05; margin: 4px 0 8px; color: #fff; }
.price p, .price li, .price .note { color: rgba(255, 255, 255, .94); }
.price ul { list-style: none; padding: 0; margin: 16px 0 20px; }
.price li { padding: 6px 0 6px 28px; position: relative; font-size: 15px; }
.price li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }
.price .btn.gold, .price .btn:not(.white) { background: #fff; color: var(--violet); box-shadow: 0 6px 0 rgba(30, 27, 46, .35); }
.price .btn.block { margin-top: 4px; }
.price .note { margin-top: 12px; }

/* ===== FAQ ===== */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); margin-bottom: 10px; padding: 16px 18px; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--f-head); font-size: 24px; color: var(--violet); line-height: 1; flex: none; }
details.faq[open] summary::after { content: "\2013"; }
details.faq p { margin: 10px 0 0; color: var(--mut); font-size: 15px; }

/* ===== FOOTER ===== */
.footwrap { padding: 20px 0 40px; }
footer.foot { background: var(--ink); color: #fff; border-radius: 28px; padding: 28px 24px; font-size: 14px; }
footer.foot p { color: rgba(255, 255, 255, .78); margin: 8px 0 0; font-size: 14px; }
footer.foot p:first-child { color: #fff; font-size: 16px; margin: 0; }
footer.foot a { color: var(--yellow); font-weight: 700; }

/* ===== GATE / FORM ===== */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.gate .card { width: 100%; max-width: 420px; padding: 30px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, input#code { width: 100%; min-height: 48px; padding: 10px 16px; border: 2px solid var(--line-strong); border-radius: 999px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.field input:focus, input#code:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
input#code { border-radius: 999px !important; border: 2px solid var(--line-strong) !important; }
.warn { background: #FEF3C7; border: 1px solid rgba(180, 83, 9, .3); border-radius: 16px; padding: 12px 14px; font-size: 14px; color: #78350F; }
.err { color: var(--bad); font-size: 13px; margin: 6px 0; font-weight: 600; }

/* ===== APP SHELL ===== */
.apptop { position: sticky; top: 0; z-index: 50; background: rgba(255, 247, 237, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.apptop .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; color: var(--mut); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.tab:hover { background: #fff; color: var(--ink); }
.tab.on { background: var(--violet); color: #fff; }
.tab .ti { display: inline-flex; align-items: center; justify-content: center; position: relative; }
.tab .ti svg { width: 20px; height: 20px; stroke: currentColor; }
.userchip { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
main.view { padding: 28px 0 80px; }
main.view h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 8px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sp { flex: 1; }
.lockbadge { display: inline-flex; align-items: center; gap: 4px; }
.subcard { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; }
.bar { position: relative; height: 12px; border-radius: 999px; background: #F1EDE6; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--pink)); border-radius: 999px; }
.bar.ok > i { background: linear-gradient(90deg, var(--lime), #22C55E); }
.bar.bad > i { background: linear-gradient(90deg, var(--pink), #F59E0B); }
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi .card { padding: 18px 20px; }
.kpi b { font-family: var(--f-head); font-size: 32px; font-weight: 800; display: block; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: break-word; }
.kpi span { font-size: 13px; font-weight: 600; color: var(--mut); }
.kpi b.sm { font-size: clamp(18px, 4.8vw, 24px); }
.kpi b.xs { font-size: clamp(15px, 4.2vw, 19px); }
.tabsub { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 13px; color: var(--ink); min-height: 40px; display: inline-flex; align-items: center; }
a.chip { text-decoration: none; }
.chip:hover { background: var(--lilac); color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== DASHBOARD BERANDA ===== */
.hello { margin-bottom: 18px; }
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dash-head h3 { margin-bottom: 4px; }
.dash-ring { flex: none; width: 120px; height: 120px; border-radius: 50%; position: relative; display: grid; place-items: center; background: conic-gradient(var(--violet), var(--pink) calc(var(--p, 0) * 1%), #F1EDE6 calc(var(--p, 0) * 1%) 100%); }
.dash-ring::before { content: ""; position: absolute; inset: 13px; background: #fff; border-radius: 50%; }
.dash-ring b { position: relative; z-index: 1; font-family: var(--f-head); font-size: 26px; color: var(--ink); }
.subrow { display: grid; grid-template-columns: 40px 1fr 44px auto; align-items: center; gap: 8px; margin: 14px 0; }
.subrow > b { font-family: var(--f-head); }
.subrow .bar { overflow: visible; }
.pg-mark { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--ink); border-radius: 2px; }
.pct { text-align: right; font-weight: 700; font-size: 14px; }
.pg-tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; background: #F1EDE6; color: var(--mut); }
.pg-ok { background: var(--mint); color: #166534; }
.pg-bad { background: #FECACA; color: #991B1B; }
.streakcard .num { margin-top: 8px; }
.dots { display: flex; gap: 6px; margin-top: 10px; }
.dots i { width: 26px; height: 10px; border-radius: 999px; background: rgba(30, 27, 46, .12); }
.dots i.on { background: var(--lime); }
.warn-card { background: var(--warnsoft); border-color: #FECACA; }
.warn-card .subcard { padding: 8px 0; }
.sesi { border: 2px solid var(--violet); }
.redeem-card { background: var(--lilac); }
.redeem-card h3, .redeem-card p { color: var(--ink); }
.redeem-card .row { gap: 10px; }
.redeem-card input#code { flex: 1; min-width: 150px; }
.cta-lock { background: var(--lilac); border: none; border-radius: var(--r-sm); padding: 18px; margin-top: 10px; }
.cta-lock h3 { font-size: 17px; }
.cta-lock p { color: var(--ink); }

/* ===== TABLE ===== */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { color: var(--mut); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #FBF6EF; }
.tblwrap .tbl { min-width: 0; }

/* ===== MODAL / TOAST ===== */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(30, 27, 46, .5); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal .card { max-width: 480px; width: 100%; max-height: 90vh; overflow: auto; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 16px; z-index: 999; max-width: 92vw; font-size: 14px; font-weight: 600; line-height: 1.5; box-shadow: var(--sh); }
.toast[hidden] { display: none; }

/* ===== TIPS / MATERI / LATIHAN ===== */
.tipnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.tipgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
.tipcard { scroll-margin-top: 84px; }
.tipcard h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.tipico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--lilac); font-size: 16px; }
.tiplist { margin: 12px 0 0; padding-left: 20px; }
.tiplist li { margin-bottom: 10px; line-height: 1.6; }
.tipcard.warnbox { background: #FEF3C7; border-color: rgba(180, 83, 9, .3); }
.kasus { margin-top: 16px; border: 2px dashed var(--line-strong); border-radius: var(--r-sm); padding: 16px; background: #FBF6EF; }
.kasus p { margin: 6px 0 12px; }
.kopsi { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; margin-bottom: 6px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.kb { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: #F1EDE6; }
.kopsi.b5 { border-color: var(--ok); background: var(--oksoft); } .kopsi.b5 .kb { background: var(--ok); color: #fff; }
.kopsi.b1 { border-color: var(--bad); background: var(--badsoft); } .kopsi.b1 .kb { background: var(--bad); color: #fff; }
.kopsi.b4 .kb { background: #BBF7D0; color: #14532D; } .kopsi.b2 .kb { background: #FDE68A; color: #78350F; }
.tipnote { margin-top: 20px; padding: 14px 16px; border-left: 4px solid var(--violet); background: var(--lilac); border-radius: 12px; font-size: 14px; }
.brief { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; background: #FBF6EF; margin: 12px 0; }
.brief h3 { font-size: 16px; margin: 8px 0 6px; }
.brief ul { margin: 8px 0 12px; padding-left: 20px; }
.brief li { margin-bottom: 6px; font-size: 14px; }
.simgrid { grid-template-columns: repeat(3, 1fr); }
.setbtn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; min-width: 88px; padding: 8px 16px; border-radius: 18px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 4px 0 rgba(30, 27, 46, .9); }
.setbtn small { font-weight: 500; font-size: 11px; color: var(--mut); }
.setbtn:hover { background: var(--lilac); }
.setbtn:active { transform: translate(2px, 2px); box-shadow: 0 1px 0 rgba(30, 27, 46, .9); }
.setbtn.lock { border-color: var(--line-strong); box-shadow: none; color: var(--mut); background: #F1EDE6; flex-direction: row; gap: 6px; }
.sets { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 14px; }
.marathon { margin: 16px 0; }
.progcard { margin-top: 16px; }
.latsec .brief summary { cursor: pointer; }
.subc .note a, .subc > a { font-size: 13px; }

/* ===== SKELETON / SPIN ===== */
.skel { padding: 32px 16px; max-width: 900px; margin: 0 auto; }
.skel i { display: block; height: 64px; border-radius: var(--r); background: linear-gradient(90deg, #F1EDE6 25%, #E7E0D4 37%, #F1EDE6 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; margin-bottom: 16px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: spn .6s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spn { to { transform: rotate(360deg); } }

/* ===== DEMO BAR ===== */
.demobar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; background: var(--yellow); border-bottom: 1px solid rgba(30, 27, 46, .15); height: 48px; }
.demobar[hidden] { display: none; }
.demobar-in { max-width: 1100px; margin: 0 auto; padding: 0 20px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demotxt { font-size: 13px; font-weight: 700; color: var(--ink); }
.demoexit { background: #fff; color: var(--ink); box-shadow: 0 3px 0 rgba(30, 27, 46, .9); }
body.demo { padding-top: 48px; }
body.demo .topbar, body.demo .apptop { top: 48px; }
body.demo .cathead { top: 48px; }
body.demo .panel { top: 116px; }
.demogrid .card { display: flex; flex-direction: column; }
.demogrid .btn { margin-top: auto; }

/* =========================================================
   RUNNER CAT — TENANG & KONTRAS TINGGI (tanpa bento/pastel/glow)
   ========================================================= */
.cat { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.cat .card, .qcard, .panel.card { border-radius: 16px; box-shadow: none; border: 1px solid #C9C4D6; }
.cathead { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 2px solid var(--ink); }
.cathead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.timer { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; background: #fff; color: var(--ink); border: 2px solid var(--ink); padding: 6px 14px; border-radius: 10px; letter-spacing: .05em; }
.timer.low { background: var(--badsoft); color: var(--bad); border-color: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .7; } }
.qcard { padding: 28px; background: #fff; }
.qno { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qtext { font-size: 17px; line-height: 1.65; margin-bottom: 20px; color: var(--ink); }
.qimg { margin: 12px 0 20px; overflow-x: auto; padding: 12px; background: #F6F5F9; border: 1px solid #C9C4D6; border-radius: 12px; text-align: center; }
.qimg svg { max-width: 100%; height: auto; }
.opt { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: #fff; border: 2px solid #C9C4D6; border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; min-height: 54px; color: var(--ink); transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--ink); background: #F6F5F9; }
.opt .l { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #F6F5F9; border: 2px solid #C9C4D6; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--ink); }
.opt.sel { border-color: var(--violet); background: #F3EDFF; box-shadow: 0 0 0 1px var(--violet); }
.opt.sel .l { background: var(--violet); color: #fff; border-color: var(--violet); }
.opt.right { border-color: var(--ok); background: var(--oksoft); }
.opt.right .l { background: var(--ok); color: #fff; border-color: var(--ok); }
.opt.wrong { border-color: var(--bad); background: var(--badsoft); }
.opt.wrong .l { background: var(--bad); color: #fff; border-color: var(--bad); }
.opt svg { max-width: 100%; height: auto; max-height: 90px; }
.opt svg[viewBox="0 0 64 64"] { width: 52px; height: 52px; }
.opt .w { margin-left: auto; font-weight: 700; font-size: 13px; white-space: nowrap; }
.navgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 8px; }
.nb { min-height: 44px; border-radius: 10px; border: 2px solid #C9C4D6; background: #fff; font-weight: 700; font-size: 13px; color: var(--ink); padding: 0; }
.nb:hover { border-color: var(--ink); }
.nb.ans { background: var(--violet); color: #fff; border-color: var(--violet); }
.nb.flag { background: var(--yellow); color: var(--ink); border-color: #A16207; }
.nb.cur { outline: 3px solid var(--ink); outline-offset: 2px; }
.grp { font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--mut); text-transform: uppercase; margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
.grp:after { content: ""; flex: 1; height: 1px; background: #C9C4D6; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--mut); margin-top: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; border: 1px solid #C9C4D6; }
.qnav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.panelbtn { display: none; }
.panel { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.exp { margin-top: 20px; padding: 16px 20px; border-radius: 14px; background: #F6F5F9; border: 1px solid #C9C4D6; border-left: 5px solid var(--ink); }
.exp.ok { background: var(--oksoft); border-left-color: var(--ok); }
.exp.bad { background: var(--badsoft); border-left-color: var(--bad); }
.qbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 2px solid var(--ink); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.qbar-in { display: flex; gap: 12px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.qbar .btn { min-height: 48px; }
.qprev { flex: 0 0 52px; padding: 0; font-size: 18px; }
.qmid { flex: 1 1 0; white-space: nowrap; font-size: 14px; font-weight: 700; text-align: center; padding: 0 4px; }
.qnext { flex: 2 1 0; font-size: 15px; font-weight: 700; white-space: nowrap; }
body.catmode .cat { padding-bottom: 32px; }

/* ===== HASIL ===== */
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sc { padding: 24px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.sc .n { font-family: var(--f-head); font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.sc.lulus { border-top: 6px solid var(--ok); }
.sc.gagal { border-top: 6px solid var(--bad); }
.verdict { padding: 18px 24px; border-radius: var(--r); font-weight: 700; font-size: 18px; margin: 20px 0; text-align: center; }
.verdict.ok { background: var(--oksoft); color: var(--ok); }
.verdict.bad { background: var(--badsoft); color: var(--bad); }

/* ===== RESPONSIVE ===== */
@media (min-width: 720px) {
  .hero { padding: 64px 0 44px; }
  .hero .cta { flex-direction: row; max-width: none; }
  .bento.stats { grid-template-columns: repeat(4, 1fr); }
  .bento.b3col { grid-template-columns: repeat(3, 1fr); }
  .bento.steps { grid-template-columns: repeat(4, 1fr); }
  .bento:not(.b3col):not(.steps):not(.stats) { grid-template-columns: 1fr 1fr; }
  .span2 { grid-column: span 2; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .sec { padding: 56px 0; }
}
@media (max-width: 900px) {
  .cat { grid-template-columns: 1fr; }
  .panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 75vh; overflow: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 24px; box-shadow: 0 -10px 30px rgba(0, 0, 0, .2); border-top: 2px solid var(--ink); display: none; }
  .panel.open { display: block; }
  .panelbtn { display: inline-flex; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .kpi { grid-template-columns: repeat(2, 1fr); }
  .scores { grid-template-columns: 1fr; }
  .tipgrid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .topbanner-in { flex-direction: column; gap: 8px; padding: 10px 16px; }
  .topbanner-txt { font-size: 13px; }
  .topbanner-cta { width: 100%; min-height: 44px; }
  .g2, .g3, .g4, .simgrid { grid-template-columns: 1fr; }
  .hero .cta .btn { width: 100%; }
  .hero-visual { max-width: none; }
  .hv-timer { font-size: 46px; }
  .price .big { font-size: 48px; }
  .userchip { display: none; }
  .hidem { display: none; }
  .qcard { padding: 18px; }
  .timer { font-size: 19px; padding: 4px 10px; }
  .toast { bottom: auto; top: 16px; }
  .qbar-in { padding: 0 16px; }
  .qprev { flex: 0 0 48px; }
  .setbtn { flex: 1 1 calc(50% - 6px); }
  .demotxt { font-size: 12px; }
  .demobar .btn.sm { padding: 4px 10px; font-size: 12px; min-height: 36px; }
  .tipcard h3 { font-size: 16px; }
  .dash-ring { width: 96px; height: 96px; }
  .dash-ring::before { inset: 11px; }
  .dash-ring b { font-size: 22px; }
  .subrow { grid-template-columns: 38px 1fr 40px; row-gap: 4px; }
  .subrow .pg-tag { grid-column: 2 / 4; justify-self: start; }
  /* nav landing: grid 3 kolom, tidak kepotong */
  .topbar .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; min-height: 0; }
  .topbar .brand { order: 1; }
  .topbar .lbtn { order: 2; margin-left: auto; }
  .lnav { order: 3; flex: 0 0 100%; margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; overflow: visible; }
  .lnav a { font-size: 13px; padding: 6px 4px; justify-content: center; min-height: 44px; background: #fff; border: 1px solid var(--line); }
  /* TAB BAR: pill mengambang */
  .apptop { position: static; background: transparent; border: none; backdrop-filter: none; }
  .apptop .wrap { height: 56px; }
  .apptop .tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100vw - 20px); max-width: 480px; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 40px rgba(30, 27, 46, .22); padding: 6px; gap: 2px; overflow: visible; justify-content: space-between; }
  .apptop .tab { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 6px 0; font-size: 10.5px; font-weight: 600; min-height: 48px; border-radius: 999px; text-align: center; }
  .apptop .tab.on { background: var(--violet); color: #fff; font-weight: 700; }
  main.view { padding-bottom: 120px; }
  .qbar { z-index: 65; }
  body.demo .apptop { top: auto; }
}
@media (max-width: 380px) {
  .lnav a { font-size: 12px; }
  .apptop .tab { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .marquee-in { animation: none; } .btn { transition: none; } }
@media print { .topbanner, .topbar, .apptop, .cathead, .qbar, .demobar { display: none !important; } body { background: #fff; } }
