/* Munja AI: Free Progress Check + syllabus-locked USP (added Oct 2026).
   Uses the colour tokens from site.css. */

/* ---------- Home: progress check band ---------- */
.pc-band { background: linear-gradient(135deg, var(--saffron-wash) 0%, #FFFFFF 55%, var(--teal-wash) 100%); border-block: 1px solid var(--line); }
.pc-band .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.pc-band h2 em { font-style: normal; color: var(--saffron); }
.pc-steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.pc-steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 600; }
.pc-steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-family: var(--font-display); }
.pc-steps li:last-child::before { background: var(--saffron); color: var(--night); }
.pc-free { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: #7A4303; background: #FFE2B8; border-radius: 999px; padding: 4px 12px 3px; align-self: flex-start; }

/* ---------- Home: locked vs open comparison ---------- */
.lock-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 1rem; }
.compare th, .compare td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-display); font-size: 1.05rem; background: var(--paper-deep); }
.compare thead th.us { background: var(--violet); color: #fff; }
.compare td.us { background: #FBF9FF; font-weight: 600; color: var(--ink); }
.compare td.them { color: var(--ink-soft); }
.compare th[scope=row] { font-weight: 600; color: var(--ink); width: 28%; }
.lock-chat { background: var(--night); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.lock-chat p { border-radius: 14px; padding: 10px 14px; max-width: 88%; font-size: .98rem; line-height: 1.45; }
.lock-chat .me { align-self: flex-end; background: #3B3375; color: #fff; }
.lock-chat .ai { align-self: flex-start; background: #fff; color: var(--ink); }
.lock-chat .ai b { color: var(--violet-deep); }
.lock-chat small { color: var(--on-dark-soft); text-align: center; font-size: .82rem; }
.lock-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--saffron-wash); display: grid; place-items: center; }
.lock-icon svg { width: 26px; height: 26px; }

/* Hero: locked scene uses the chat bubbles */
.scene-lock .bubble.ai { border-left: 4px solid var(--saffron); }

/* ---------- Progress check page ---------- */
.pc-hero { background: var(--night); color: var(--on-dark); position: relative; overflow: hidden; }
.pc-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 80% at 90% 10%, rgba(91, 67, 214, .55), transparent 70%), radial-gradient(40% 60% at 5% 100%, rgba(46, 142, 138, .40), transparent 70%); }
.pc-hero .wrap { position: relative; padding-block: clamp(32px, 5vw, 60px) clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.pc-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); }
.pc-hero h1 em { font-style: normal; color: #FFC46B; }
.pc-hero .lede { color: var(--on-dark-soft); }
.pc-hero .ai-badge { margin-bottom: 4px; }
.pc-trail { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; list-style: none; }
.pc-trail li { font-size: .92rem; padding: 6px 12px 5px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: var(--on-dark-soft); }
.pc-trail li.on { background: #FFC46B; border-color: #FFC46B; color: var(--night); font-weight: 700; }
.pc-trail li.done { color: #BFEDE8; border-color: rgba(95, 224, 212, .5); }

.pc-app { max-width: 820px; margin-inline: auto; }
.pc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.4vw, 36px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 20px; }
.pc-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.pc-note { font-size: .95rem; color: var(--ink-soft); }
.pc-err { color: #A3261C; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.field select:disabled { opacity: .6; }

.subj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.subj { position: relative; }
.subj input { position: absolute; opacity: 0; pointer-events: none; }
.subj label { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--paper); font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.2; min-height: 72px; }
.subj label small { font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.subj input:checked + label { border-color: var(--violet); background: #EFEAFF; box-shadow: inset 0 0 0 1px var(--violet); }
.subj input:focus-visible + label { outline: 3px solid var(--saffron); outline-offset: 2px; }
.subj-empty { color: var(--ink-soft); font-size: .98rem; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; }

/* Quiz */
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .95rem; color: var(--ink-soft); }
.q-top b { color: var(--ink); }
.q-bar { height: 8px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; }
.q-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--teal)); border-radius: 99px; transition: width .3s ease; }
.q-chap { font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); }
.q-text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.55rem); line-height: 1.3; color: var(--ink); }
.q-choices { display: flex; flex-direction: column; gap: 10px; }
.q-choice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.q-choice:hover { border-color: #B9A9F2; }
.q-choice .k { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); font-family: var(--font-display); font-weight: 700; color: var(--violet-deep); }
.q-choice[aria-pressed=true] { border-color: var(--violet); background: #EFEAFF; }
.q-choice[aria-pressed=true] .k { background: var(--violet); color: #fff; border-color: var(--violet); }
.q-choice.dk { background: transparent; border-style: dashed; color: var(--ink-soft); font-size: .98rem; }
.q-choice.dk .k { font-size: .9rem; }
.q-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.q-nav .btn { min-width: 140px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* Gate */
.gate-score { display: flex; gap: 14px; align-items: center; background: var(--teal-wash); border-radius: 14px; padding: 14px 16px; }
.gate-score svg { width: 40px; height: 40px; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--violet); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Report */
.rep-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 28px); align-items: center; }
.ring { width: 132px; height: 132px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--font-display); line-height: 1; }
.ring .val b { font-size: 2.1rem; color: var(--ink); display: block; }
.ring .val span { font-size: .9rem; color: var(--ink-soft); }
.rep-meta { font-size: .95rem; color: var(--ink-soft); }
.level { display: inline-block; font-weight: 700; padding: 5px 12px 4px; border-radius: 999px; font-size: .9rem; align-self: flex-start; }
.lv-4 { background: #DDF5E8; color: #11643A; }
.lv-3 { background: var(--teal-wash); color: var(--teal-deep); }
.lv-2 { background: var(--saffron-wash); color: #7A4303; }
.lv-1 { background: #FDE4E1; color: #8E2318; }
.rep-sec { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.rep-sec h3 { font-size: 1.2rem; }
.chap-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.chap-list li { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 12px; align-items: center; font-size: .98rem; }
.chap-bar { height: 10px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; }
.chap-bar i { display: block; height: 100%; border-radius: 99px; }
.tag { font-size: .8rem; font-weight: 700; padding: 3px 9px 2px; border-radius: 999px; white-space: nowrap; }
.tag-ok { background: #DDF5E8; color: #11643A; }
.tag-mid { background: var(--saffron-wash); color: #7A4303; }
.tag-low { background: #FDE4E1; color: #8E2318; }
.plan-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan-steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.plan-steps li b { font-family: var(--font-display); font-size: 1.05rem; display: block; margin-bottom: 2px; }
.plan-steps li span { color: var(--ink-soft); font-size: .96rem; }
.review details { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.review summary { cursor: pointer; padding: 12px 14px; font-weight: 600; }
.rv-list { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0 14px 14px; }
.rv-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: .96rem; }
.rv-list .rq { font-weight: 600; }
.rv-ok { color: #11643A; font-weight: 600; }
.rv-no { color: #8E2318; font-weight: 600; }
.rv-ex { color: var(--ink-soft); }
.rep-cta { background: var(--night); color: #fff; border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.rep-cta h3 { color: #fff; }
.rep-cta p { color: var(--on-dark-soft); }
.rep-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rep-actions .btn { flex: 1 1 200px; }

@media (max-width: 1040px) {
  .lock-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .pc-band .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .rep-head { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .chap-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .chap-list .chap-bar { grid-column: 1 / -1; grid-row: 2; }
  .compare { font-size: .93rem; }
  .compare th, .compare td { padding: 10px; }
  .q-nav .btn { flex: 1 1 100%; }
}
@media print {
  .site-header, .site-footer, .wa-float, .pc-hero, .rep-actions, .rep-cta .btn-row, .no-print { display: none !important; }
  body { background: #fff; }
  .pc-card { box-shadow: none; border: 0; padding: 0; }
  .review details { border: 0; }
  .review details > * { display: block; }
  .section { padding-block: 0; }
}

/* ---------- Home banner v3: "Only studies. Nothing else." ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero3 .ai-copy { gap: 22px; }
.hero3 .ai-copy h1 { font-size: clamp(2.7rem, 6.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.015em; }
.hero3 .lede { font-size: 1.25rem; max-width: 30ch; }
.hero-mini { color: var(--on-dark-soft); font-size: .95rem; }
.hero-mini b { color: #fff; }

.guard-wrap { display: flex; justify-content: center; min-width: 0; }
.guard { position: relative; width: 460px; height: 480px; flex: none; }
.g-shield { position: absolute; left: 50%; top: 50%; width: 282px; height: 470px; transform: translate(-50%, -50%); border-radius: 50px; border: 2px dashed rgba(95, 224, 212, .55); box-shadow: 0 0 46px rgba(95, 224, 212, .18) inset, 0 0 70px rgba(91, 67, 214, .35); animation: g-shield 14s linear infinite; }
.g-lock { position: absolute; left: 50%; top: -17px; transform: translateX(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; background: var(--saffron); color: var(--night); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(238, 138, 27, .22), 0 8px 20px rgba(0, 0, 0, .35); }
.g-lock svg { width: 24px; height: 24px; }

.g-phone { position: absolute; left: 50%; top: 50%; width: 220px; height: 420px; transform: translate(-50%, -50%); background: #0E0B28; border-radius: 34px; padding: 9px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .09); z-index: 1; }
.g-inner { height: 100%; background: var(--paper); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; }
.g-top { display: flex; align-items: center; gap: 7px; padding: 12px 11px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.g-top img { width: 24px; height: 26px; }
.g-top b { font-family: var(--font-display); color: var(--ink); font-size: 1.02rem; }
.g-tag { margin-left: auto; font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-deep); background: var(--teal-wash); padding: 3px 7px 2px; border-radius: 99px; white-space: nowrap; }
.g-screen { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 9px; font-size: .8rem; line-height: 1.38; color: var(--ink); }
.g-q { align-self: flex-end; background: var(--violet); color: #fff; padding: 7px 11px; border-radius: 14px 14px 4px 14px; max-width: 88%; }
.g-a { background: #fff; border: 1px solid var(--line); padding: 8px 10px; border-radius: 14px 14px 14px 4px; }
.g-a b { color: var(--violet-deep); }
.g-quiz { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; font-weight: 600; }
.g-quiz small { font-weight: 700; font-size: .6rem; letter-spacing: .09em; color: var(--teal-deep); }
.g-ok { align-self: flex-start; background: #DDF5E8; color: #11643A; font-weight: 700; padding: 3px 9px; border-radius: 99px; font-size: .74rem; }
.g-input { margin: 0 9px 9px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 8px 12px; font-size: .7rem; color: var(--ink-soft); }

.gchip { position: absolute; left: 50%; top: 50%; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 7px 11px; border-radius: 99px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1; color: #fff; white-space: nowrap; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .32); backdrop-filter: blur(4px); opacity: 0; }
.gchip svg { width: 18px; height: 18px; flex: none; }
.gchip s { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); text-decoration: none; font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFB4AA; opacity: 0; }
.gchip.bad { animation: g-push 14s ease-in-out infinite; }
.gchip.bad s { animation: g-no 14s linear infinite; }
.c1 { --sx: -285px; --sy: -205px; --ex: -200px; --ey: -150px; --bx: -222px; animation-delay: .3s !important; }
.c2 { --sx: 285px; --sy: -110px; --ex: 196px; --ey: -70px; --bx: 218px; animation-delay: 1.5s !important; }
.c3 { --sx: -285px; --sy: 110px; --ex: -200px; --ey: 50px; --bx: -222px; animation-delay: 2.7s !important; }
.c4 { --sx: 285px; --sy: 215px; --ex: 196px; --ey: 150px; --bx: 218px; animation-delay: 3.6s !important; }
.c1 s { animation-delay: .3s; } .c2 s { animation-delay: 1.5s; } .c3 s { animation-delay: 2.7s; } .c4 s { animation-delay: 3.6s; }
.gchip.good { background: var(--saffron); border-color: var(--saffron); color: var(--night); animation: g-in 14s ease-in-out infinite; }

.g-q { animation: g-show-q 14s ease-out infinite; }
.g-a { animation: g-show-a 14s ease-out infinite; }
.g-quiz { animation: g-show-quiz 14s ease-out infinite; }
.g-ok { animation: g-show-ok 14s ease-out infinite; }

.g-card { position: absolute; right: -26px; bottom: -4px; z-index: 4; width: 214px; background: #fff; border-radius: 18px; padding: 13px 14px 12px; box-shadow: 0 24px 50px rgba(0, 0, 0, .42); display: flex; flex-direction: column; gap: 9px; animation: g-card 14s ease-out infinite; }
.g-card-top { display: flex; justify-content: space-between; align-items: baseline; }
.g-card-top b { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }
.g-card-top span { font-size: .72rem; color: var(--ink-soft); font-weight: 600; }
.g-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: .76rem; font-weight: 600; color: var(--ink); }
.g-row i { height: 8px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; display: block; }
.g-row em { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), #3FC28A); width: 0; animation: g-bar 14s ease-out infinite; }
.g-row:nth-child(3) em { animation-delay: .25s; } .g-row:nth-child(4) em { animation-delay: .5s; }
.g-row small { font-size: .62rem; font-weight: 700; padding: 2px 7px 1px; border-radius: 99px; background: #DDF5E8; color: #11643A; }

@keyframes g-push {
  0% { opacity: 0; transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(.9); }
  3% { opacity: 1; }
  13% { transform: translate(calc(-50% + var(--ex)), calc(-50% + var(--ey))) scale(1); background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .32); }
  14.6% { transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--ey))) scale(.96); background: rgba(198, 57, 43, .85); border-color: #FF8A7A; }
  16.4% { transform: translate(calc(-50% + var(--ex)), calc(-50% + var(--ey))) scale(1); }
  18% { transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--ey))) scale(1); }
  23% { opacity: 1; transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--ey))) scale(1); background: rgba(198, 57, 43, .85); border-color: #FF8A7A; }
  28% { opacity: 0; transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--ey) + 26px)) scale(.7); background: rgba(198, 57, 43, .85); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(.9); }
}
@keyframes g-no { 0%, 14% { opacity: 0; } 15.5%, 23% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes g-in {
  0%, 38% { opacity: 0; transform: translate(calc(-50% - 270px), calc(-50% - 60px)) scale(.9); }
  40% { opacity: 1; }
  44% { opacity: 1; transform: translate(-50%, calc(-50% - 120px)) scale(1); }
  46.5%, 100% { opacity: 0; transform: translate(-50%, calc(-50% - 120px)) scale(.4); }
}
@keyframes g-show-q { 0%, 45% { opacity: 0; transform: translateY(10px); } 47.5%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes g-show-a { 0%, 51% { opacity: 0; transform: translateY(10px); } 54%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes g-show-quiz { 0%, 59% { opacity: 0; transform: translateY(10px); } 62%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes g-show-ok { 0%, 65% { opacity: 0; transform: scale(.5); } 67%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes g-card { 0%, 70% { opacity: 0; transform: translateY(26px) scale(.96); } 74%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(14px); } }
@keyframes g-bar { 0%, 74% { width: 0; } 84%, 95% { width: var(--w); } 99%, 100% { width: 0; } }
@keyframes g-shield {
  0%, 13%, 18%, 21.7%, 26.7%, 30.3%, 35.3%, 36.7%, 41.7%, 100% { border-color: rgba(95, 224, 212, .55); box-shadow: 0 0 46px rgba(95, 224, 212, .18) inset, 0 0 70px rgba(91, 67, 214, .35); }
  15%, 23.7%, 32.3%, 38.7% { border-color: rgba(255, 196, 107, .95); box-shadow: 0 0 60px rgba(255, 196, 107, .35) inset, 0 0 80px rgba(238, 138, 27, .45); }
}

@media (max-width: 900px) {
  .hero3 .ai-copy { align-items: flex-start; }
  .guard-wrap { margin-top: 8px; }
}
@media (max-width: 520px) {
  .guard-wrap { height: 352px; }
  .guard { transform: scale(.72); transform-origin: top center; }
}
@media (max-width: 380px) {
  .guard-wrap { height: 318px; }
  .guard { transform: scale(.65); }
}
@media (prefers-reduced-motion: reduce) {
  .guard *, .g-shield { animation: none !important; }
  .gchip.bad { opacity: 1; transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--ey))); background: rgba(198, 57, 43, .85); border-color: #FF8A7A; }
  .gchip.bad s { opacity: 1; }
  .gchip.good { display: none; }
  .g-row em { width: var(--w); }
}

/* ---------- Progress check v2: multi-subject setup, exam screen, finish animation ---------- */
.subj-set { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.subj-tools { margin-top: -30px; }
.subj-set legend { font-weight: 600; font-size: .98rem; padding: 0; margin-bottom: 6px; }
.subj-tools { display: flex; justify-content: flex-end; }
.link-btn { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 700; font-size: .95rem; color: var(--violet-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.subj label { padding-right: 44px; position: relative; }
.subj-name { display: block; }
.subj-tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); background: #fff; }
.subj input:checked + label .subj-tick { background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--violet); }
.setup-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }

/* exam mode: hide the page intro so the test fills the screen */
body.exam-on .pc-hero, body.exam-on .pc-about, body.exam-on .wa-float { display: none; }
body.exam-on .pc-stage { padding-block: 18px 40px; }
body.exam-on .pc-app { max-width: 1120px; }

.ex { display: flex; flex-direction: column; gap: 14px; }
.ex-bar { position: sticky; top: calc(70px + env(safe-area-inset-top, 0px)); z-index: 20; display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--night); border-radius: 16px; padding: 7px; box-shadow: 0 10px 26px rgba(29, 24, 66, .25); }
.ex-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.ex-tabs::-webkit-scrollbar { display: none; }
.ex-tab { flex: none; display: flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: .98rem; color: var(--on-dark-soft); background: transparent; border: 0; border-radius: 11px; padding: 8px 12px; cursor: pointer; }
.ex-tab b { font-size: .76rem; background: rgba(255, 255, 255, .13); border-radius: 99px; padding: 2px 8px 1px; color: #fff; font-variant-numeric: tabular-nums; }
.ex-tab:hover { color: #fff; }
.ex-tab.on { background: #fff; color: var(--ink); }
.ex-tab.on b { background: var(--paper-deep); color: var(--violet-deep); }
.ex-tab.full b { background: #3FC28A; color: #06341F; }
.ex-timer { flex: none; display: flex; gap: 6px; align-items: center; color: #FFC46B; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; padding: 0 10px; font-variant-numeric: tabular-nums; }
.ex-timer svg { width: 20px; height: 20px; }

.ex-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.ex-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 34px); min-width: 0; overflow: hidden; }
.exq { display: flex; flex-direction: column; gap: 18px; }
.exq.in-r { animation: exq-r .32s ease; }
.exq.in-l { animation: exq-l .32s ease; }
@keyframes exq-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes exq-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.exq-top { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.exq-num { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; background: var(--violet); color: #fff; border-radius: 10px; padding: 4px 10px 2px; }
.exq-of { color: var(--ink-soft); font-weight: 600; }
.exq-chap { margin-left: auto; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); background: var(--teal-wash); border-radius: 99px; padding: 5px 11px 4px; }
.exq .q-text { font-size: clamp(1.35rem, 2.8vw, 1.8rem); outline: none; }
.q-choice[aria-checked=true] { border-color: var(--violet); background: #EFEAFF; box-shadow: 0 0 0 1px var(--violet) inset; }
.q-choice[aria-checked=true] .k { background: var(--violet); color: #fff; border-color: var(--violet); }
.q-choice { transition: border-color .12s ease, background-color .12s ease, transform .12s ease; }
.q-choice:active { transform: scale(.99); }
.exq-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.exq-nav #q-next { margin-left: auto; min-width: 170px; }
.ex-mark svg { width: 18px; height: 18px; }
.ex-mark.on { border-color: var(--saffron); background: var(--saffron-wash); color: #7A4303; }
.exq-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 14px; }
.exq-foot .q-bar { flex: 1 1 140px; max-width: 260px; }
.exq-keys { margin-left: auto; font-size: .8rem; }

.ex-side { position: sticky; top: calc(140px + env(safe-area-inset-top, 0px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ex-who { display: flex; gap: 10px; align-items: center; }
.ex-ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron-wash); color: #7A4303; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; flex: none; }
.ex-who b { display: block; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.1; }
.ex-who small { color: var(--ink-soft); font-size: .85rem; }
.ex-pal { display: flex; flex-direction: column; gap: 12px; max-height: 44vh; overflow: auto; padding: 3px; }
.pal-group p { font-weight: 700; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.pal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pal-b { aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); font: inherit; font-weight: 700; font-size: .92rem; color: var(--ink); cursor: pointer; position: relative; padding: 0; }
.pal-b:hover { border-color: #B9A9F2; }
.pal-b.is-a { background: #1F9D5C; border-color: #1F9D5C; color: #fff; }
.pal-b.is-m { background: var(--saffron-wash); border-color: var(--saffron); color: #7A4303; }
.pal-b.is-a.is-m { background: #1F9D5C; color: #fff; }
.pal-b.is-m::after { content: ""; position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--saffron); border: 2px solid #fff; }
.pal-b.is-cur { outline: 3px solid var(--violet); outline-offset: 2px; }
.ex-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .8rem; color: var(--ink-soft); }
.ex-legend li { display: flex; gap: 6px; align-items: center; }
.ex-legend i { width: 12px; height: 12px; border-radius: 4px; display: block; }
.lg-a { background: #1F9D5C; }
.lg-m { background: var(--saffron-wash); border: 1.5px solid var(--saffron); }
.lg-n { background: var(--paper); border: 1.5px solid var(--line); }

.ex-modal { position: fixed; inset: 0; z-index: 80; background: rgba(29, 24, 66, .55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; }
.ex-modal[hidden] { display: none; }
.ex-dialog { background: #fff; border-radius: 20px; max-width: 460px; width: 100%; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); animation: pop .22s ease; }
.ex-dialog h2 { font-size: 1.6rem; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.ex-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ex-sum div { background: var(--paper); border-radius: 12px; padding: 10px 6px; text-align: center; }
.ex-sum b { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; display: block; }
.ex-sum span { font-size: .8rem; color: var(--ink-soft); }
.ex-sum .warn b { color: #C6392B; }
.ex-sum-list { list-style: none; display: flex; flex-direction: column; }
.ex-sum-list li { display: flex; justify-content: space-between; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.ex-dialog .btn-row .btn { flex: 1 1 160px; }

/* checking animation */
.an-card { align-items: center; text-align: center; padding-block: 44px; }
.an-orb { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.an-orb img { width: 70px; height: auto; position: relative; animation: bob 1.6s ease-in-out infinite; }
.an-ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--violet); border-right-color: var(--violet); animation: spin 1.1s linear infinite; }
.an-ring.r2 { inset: 16px; border-color: transparent; border-top-color: var(--saffron); border-left-color: var(--saffron); animation-duration: 1.6s; animation-direction: reverse; }
.an-dot { position: absolute; inset: -8px; animation: spin 2.4s linear infinite; }
.an-dot::before { content: ""; position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--teal); }
.an-dot.d2 { animation-delay: -.8s; } .an-dot.d2::before { background: var(--saffron); }
.an-dot.d3 { animation-delay: -1.6s; } .an-dot.d3::before { background: #AA96FF; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.an-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; text-align: left; width: min(330px, 100%); }
.an-steps li { display: flex; gap: 10px; align-items: center; color: var(--ink-soft); opacity: .45; transition: opacity .3s ease; }
.an-steps li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); flex: none; box-sizing: border-box; }
.an-steps li.now { opacity: 1; color: var(--ink); font-weight: 600; }
.an-steps li.now::before { border-color: var(--violet); border-top-color: transparent; animation: spin .8s linear infinite; }
.an-steps li.done { opacity: 1; color: var(--ink); }
.an-steps li.done::before { background: #1F9D5C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; border-color: #1F9D5C; }

/* test complete tick */
.done-head { display: flex; gap: 16px; align-items: center; }
.done-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.ck { width: 64px; height: 64px; flex: none; border-radius: 50%; background: #DDF5E8; display: grid; place-items: center; }
.ck svg { width: 52px; height: 52px; }
.ck-c { stroke: #1F9D5C; stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; animation: draw .6s ease forwards; }
.ck-p { stroke: #1F9D5C; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* report reveal */
.ring svg circle.arc { transition: stroke-dashoffset 1.4s cubic-bezier(.2, .7, .2, 1) .15s; }
.ring .val b { display: inline; font-variant-numeric: tabular-nums; }
.ring .val b + b { font-size: 1.25rem; color: var(--ink-soft); }
.ring .val span { display: block; margin-top: 4px; }
.chap-bar i { width: 0; transition: width 1s ease .45s; }
.rep.go > * { animation: rise .5s ease both; }
.rep.go > *:nth-child(2) { animation-delay: .12s; } .rep.go > *:nth-child(3) { animation-delay: .24s; } .rep.go > *:nth-child(4) { animation-delay: .36s; } .rep.go > *:nth-child(n+5) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sc { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--paper); min-width: 0; }
.sc-ring { position: relative; width: 64px; height: 64px; flex: none; }
.sc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-ring svg circle.arc { transition: stroke-dashoffset 1.2s cubic-bezier(.2, .7, .2, 1) .4s; }
.sc-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: .98rem; font-variant-numeric: tabular-nums; }
.sc > div:last-child { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.sc > div:last-child b { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15; }
.sc .level { font-size: .74rem; padding: 3px 9px 2px; }
.subj-sec { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.subj-sec + .subj-sec { margin-top: 8px; }
.subj-sec summary { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 700; }
.subj-sec summary small { font-weight: 600; color: var(--ink-soft); }
.subj-sec .chap-list { padding: 0 14px 14px; }
.plan-steps b em { font-style: normal; font-family: var(--font-body); font-size: .72rem; font-weight: 700; color: var(--teal-deep); background: var(--teal-wash); border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.rv-h { font-weight: 700; padding: 10px 14px 6px; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

@media (max-width: 900px) {
  .ex-grid { grid-template-columns: minmax(0, 1fr); }
  .ex-side { position: static; }
  .ex-pal { max-height: none; }
  .pal-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .exq-keys { display: none; }
}
@media (max-width: 620px) {
  .ex-bar { top: calc(64px + env(safe-area-inset-top, 0px)); }
  .ex-timer { font-size: 1rem; padding: 0 6px; }
  .pal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .exq-nav .btn { flex: 1 1 calc(50% - 5px); min-width: 0; padding-inline: 10px; font-size: 1rem; white-space: nowrap; }
  .exq-nav #q-next { flex: 1 1 100%; margin-left: 0; order: -1; }
  .exq-chap { margin-left: 0; }
  .done-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .exq, .ex-dialog, .rep.go > *, .an-orb img, .an-ring, .an-dot { animation: none !important; }
  .ck-c, .ck-p { animation: none; stroke-dashoffset: 0; }
  .ring svg circle.arc, .sc-ring svg circle.arc, .chap-bar i { transition: none; }
}
@media print { .confetti, .ex-modal { display: none !important; } }

/* ---------- Progress card v3: learning profile, thinking skills, 7-day plan ---------- */
.prof { background: linear-gradient(160deg, #F1ECFF 0%, #FFFFFF 60%); border: 1.5px solid #CFC2F7; border-radius: 18px; padding: clamp(16px, 3vw, 24px); display: flex; flex-direction: column; gap: 14px; }
.prof-head { display: flex; gap: 14px; align-items: flex-start; }
.prof-badge { width: 54px; height: 54px; flex: none; border-radius: 16px; background: var(--violet); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(91, 67, 214, .3); }
.prof-badge svg { width: 28px; height: 28px; }
.prof-head h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2px 0 4px; color: var(--violet-deep); }
.prof-head p:last-child { color: var(--ink); font-weight: 600; }
.prof-means { color: var(--ink); }
.prof-obs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.prof-obs li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: .94rem; min-width: 0; }
.prof-obs b { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); }
.prof-home { background: var(--saffron-wash); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.prof-home b { font-family: var(--font-display); color: #7A4303; }
.prof-home ul { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: .96rem; color: #4A2F06; }
.prof-note { font-size: .82rem; color: var(--ink-soft); }
.skill-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.skill-list li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.skill-list li div { display: flex; flex-direction: column; min-width: 0; }
.skill-list li b { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.skill-list small { color: var(--ink-soft); font-size: .82rem; }
.skill-list .chap-bar { height: 12px; }
.sk-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.week { list-style: none; display: flex; flex-direction: column; gap: 0; position: relative; }
.week li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.week li:last-child { border-bottom: 0; }
.wk-day { align-self: start; font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--violet-deep); background: var(--paper-deep); border-radius: 10px; padding: 6px 8px 4px; text-align: center; }
.week li:last-child .wk-day { background: var(--saffron); color: var(--night); }
.week b { font-family: var(--font-display); font-size: 1.08rem; display: block; }
.week p { color: var(--ink-soft); font-size: .96rem; }
.week .ask { margin-top: 8px; background: var(--night); color: #fff; border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-size: .92rem; display: inline-flex; flex-direction: column; gap: 2px; max-width: 100%; }
.week .ask span { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFC46B; }
.why-munja { background: var(--teal-wash); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.why-munja b { font-family: var(--font-display); color: var(--teal-deep); font-size: 1.05rem; }
.why-munja ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: .96rem; }
.why-munja li { padding-left: 22px; position: relative; }
.why-munja li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
@media (max-width: 620px) {
  .prof-obs { grid-template-columns: minmax(0, 1fr); }
  .skill-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .skill-list .chap-bar { grid-column: 1 / -1; grid-row: 2; }
  .week li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .wk-day { justify-self: start; }
}

/* hero device: EduSoulX tablet shape */
.g-phone { width: 236px; height: 360px; border-radius: 24px; padding: 13px; }
.g-inner { border-radius: 14px; }
.g-shield { width: 290px; height: 412px; border-radius: 40px; }
.g-lock { top: 12px; }