/* Munja AI – School Gap Test booking page (school.html), Oct 2026 redesign.
   One signature moment: the hero "class register" fills desk by desk and turns into the report. */

.spg { --c-ok: #2E8B57; --c-mid: #F2B230; --c-no: #D9503F; --sec: clamp(44px, 6vw, 76px); }
.spg h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; color: var(--night); margin: 0 0 clamp(18px, 3vw, 30px); max-width: 24em; text-wrap: balance; }
.spg h3 { font-family: var(--font-display); }
.spg main > section:not(.ai-hero) { padding-block: var(--sec); }
.spg .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header with both logos ---------- */
.spg-brand { gap: 10px; min-width: 0; }
.spg-brand .spg-by { width: 1px; height: 30px; background: var(--line); flex: none; }
.spg-brand img.spg-ex { width: auto; height: 40px; border-radius: 8px; background: #fff; flex: none; }
@media (max-width: 420px) {
  .spg-brand { gap: 8px; }
  .spg-brand > img:first-child { width: 36px; height: 40px; }
  .spg-brand > span { font-size: 1.3rem; }
  .spg-brand img.spg-ex { height: 32px; }
}

/* ---------- hero ---------- */
.spg-hero .wrap { padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 80px); }
.spg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.spg-copy { min-width: 0; }
.spg-tag { display: inline-block; font-weight: 600; font-size: .95rem; color: #BFF0EA; background: rgba(46, 142, 138, .22); border: 1px solid rgba(95, 224, 212, .35); border-radius: 99px; padding: 4px 14px; }
.spg-hero h1 { font-family: var(--font-display); color: #fff; font-size: clamp(2.05rem, 4.2vw, 3.05rem); line-height: 1.06; letter-spacing: -.01em; margin: 18px 0 10px; text-wrap: balance; }
.spg-hi { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: #FFC46B; margin: 0 0 16px; line-height: 1.4; }
.spg-hero .lede { color: var(--on-dark-soft); max-width: 34em; margin: 0; }
.spg-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.spg-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px clamp(16px, 4vw, 40px); margin: 30px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
.spg-facts div { min-width: 0; }
.spg-facts dt { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; color: #fff; line-height: 1.1; }
.spg-facts dd { margin: 0; color: var(--on-dark-soft); font-size: .92rem; }

/* the class register */
.spg-reg { position: relative; background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .16); border-radius: 24px; padding: clamp(16px, 2.6vw, 24px); box-shadow: 0 30px 60px rgba(8, 5, 30, .35); backdrop-filter: blur(6px); min-width: 0; }
.reg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.reg-head b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: #fff; line-height: 1.1; }
.reg-head span { color: var(--on-dark-soft); font-size: .9rem; }
.reg-sample { flex: none; background: var(--saffron); color: var(--night) !important; font-weight: 700; font-size: .78rem !important; border-radius: 99px; padding: 2px 10px; }
.reg-board { margin: 14px auto 10px; width: 46%; text-align: center; font-size: .72rem; color: rgba(255, 255, 255, .55); border-bottom: 3px solid rgba(255, 255, 255, .25); padding-bottom: 2px; letter-spacing: .04em; }
.reg-desks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 8px; }
.reg-desks span { aspect-ratio: 2 / 1; border-radius: 6px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); transition: background-color .35s ease, border-color .35s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.reg-desks span.on { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .4); }
.reg-desks span.c { background: var(--c-ok); border-color: var(--c-ok); transform: scale(1.06); }
.reg-desks span.m { background: var(--c-mid); border-color: var(--c-mid); transform: scale(1.06); }
.reg-desks span.n { background: var(--c-no); border-color: var(--c-no); transform: scale(1.06); }
.reg-status { margin: 12px 0 4px; font-weight: 600; color: #fff; font-size: .98rem; min-height: 1.5em; }
.reg-skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.reg-skills li { display: grid; grid-template-columns: minmax(0, 1fr) 3.2em; grid-template-areas: "t p" "b b"; gap: 3px 8px; font-size: .9rem; color: var(--on-dark-soft); opacity: .35; transition: opacity .4s ease; }
.reg-skills li span { grid-area: t; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reg-skills li em { grid-area: p; font-style: normal; text-align: right; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.reg-skills li i { grid-area: b; display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.reg-skills li b { display: block; height: 100%; width: 0; transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.reg-skills li b.c { background: var(--c-ok); } .reg-skills li b.m { background: var(--c-mid); }
.reg-skills li.hot span { color: #FFD2CB; }
.spg-reg.show-skills .reg-skills li { opacity: 1; }
.spg-reg.show-skills .reg-skills li b.c { width: calc(var(--c) * 1%); }
.spg-reg.show-skills .reg-skills li b.m { width: calc(var(--m) * 1%); transition-delay: .5s; }
.reg-root { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: rgba(217, 80, 63, .18); border: 1px solid rgba(255, 150, 135, .35); color: #FFE2DC; font-size: .92rem; line-height: 1.3; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.reg-root svg { width: 22px; height: 22px; flex: none; color: #FF9C8C; }
.spg-reg.show-root .reg-root { opacity: 1; transform: none; }

/* ---------- why ---------- */
.spg-why { background: #fff; }
.spg-why-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
.spg-why-cols > div { border-top: 3px solid var(--violet); padding-top: 16px; }
.spg-why-cols > div:nth-child(2) { border-color: var(--saffron); }
.spg-why-cols > div:nth-child(3) { border-color: var(--teal); }
.spg-why h3 { font-size: 1.2rem; margin: 0 0 6px; color: var(--night); }
.spg-why p { margin: 0; color: var(--ink-soft); }

/* ---------- how it works ---------- */
.spg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); counter-reset: st; position: relative; }
.spg-steps::before { content: ""; position: absolute; top: 17px; left: 17px; right: calc(33.3% - 17px); border-top: 2px dashed #C6B9F2; z-index: 0; }
.spg-steps li { counter-increment: st; position: relative; min-width: 0; }
.spg-steps li::before { content: counter(st); position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--violet); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; box-shadow: 0 0 0 6px var(--paper); margin-bottom: 16px; }
.spg-steps h3 { font-size: 1.2rem; margin: 16px 0 4px; color: var(--night); }
.spg-steps p { margin: 0; color: var(--ink-soft); }
.st-mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-height: 132px; display: grid; gap: 8px; align-content: start; box-shadow: 0 6px 18px rgba(62, 43, 166, .07); font-size: .88rem; }
.st-mock p { margin: 0; }
.st-m1 p:not(.ok) { display: grid; gap: 2px; }
.st-m1 b { font-size: .74rem; color: var(--ink-soft); font-weight: 600; }
.st-m1 span { border: 1.5px solid var(--line); border-radius: 8px; padding: 3px 8px; color: var(--ink); }
.st-m1 .ok { justify-self: start; background: #DDF5E8; color: #14532D; font-weight: 700; border-radius: 99px; padding: 2px 10px; }
.st-m2 .q { font-weight: 700; color: var(--night); }
.st-m2 .o { border: 1.5px solid var(--line); border-radius: 8px; padding: 3px 10px; }
.st-m2 .o:first-of-type { border-color: var(--violet); background: #EFEAFD; }
.st-m3 p { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); align-items: center; gap: 8px; }
.st-m3 b { font-size: .82rem; }
.st-m3 i { display: block; height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--c-ok) var(--w), var(--paper-deep) var(--w)); }
.st-m3 i.lo { background: linear-gradient(90deg, var(--c-mid) var(--w), var(--paper-deep) var(--w)); }

/* ---------- the report ---------- */
.spg-report { background: var(--night); color: var(--on-dark-soft); position: relative; overflow: hidden; }
.spg-report::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 90% 10%, rgba(91, 67, 214, .45), transparent 70%); pointer-events: none; }
.spg-report .wrap { position: relative; }
.spg-report h2 { color: #fff; }
.spg-report .lede { color: var(--on-dark-soft); margin: -10px 0 22px; }
.spg-report-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.rp-points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 6px; counter-reset: rp; }
.rp-points li { counter-increment: rp; position: relative; padding: 10px 12px 10px 52px; border-radius: 14px; cursor: pointer; transition: background-color .3s ease; }
.rp-points li::before { content: counter(rp); position: absolute; left: 12px; top: 11px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; border: 2px solid rgba(255, 255, 255, .35); color: #fff; transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
.rp-points b { display: block; color: #fff; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.rp-points li.on { background: rgba(255, 255, 255, .08); }
.rp-points li.on::before { background: var(--saffron); border-color: var(--saffron); color: var(--night); }

.spg-sheet { margin: 0; background: #fff; color: var(--ink); border-radius: 10px; padding: clamp(14px, 2.4vw, 24px); box-shadow: 0 40px 80px rgba(5, 3, 22, .5); transform: rotate(1.2deg); font-size: .86rem; display: grid; gap: 10px; min-width: 0; }
.sh-head { display: flex; align-items: center; gap: 10px; border-bottom: 3px solid var(--violet); padding-bottom: 10px; }
.sh-head b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--night); line-height: 1.1; }
.sh-head small { color: var(--ink-soft); }
.sh-head .sh-ex { margin-left: auto; height: 26px; width: auto; }
.sh-block { position: relative; border: 2px solid transparent; border-radius: 10px; padding: 8px 8px 8px 36px; transition: border-color .35s ease, background-color .35s ease, opacity .35s ease; opacity: .55; }
.sh-n { position: absolute; left: 6px; top: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-deep); color: var(--violet-deep); font-weight: 700; font-size: .78rem; transition: background-color .35s ease, color .35s ease; }
.sh-block.on { border-color: var(--saffron); background: #FFF8EE; opacity: 1; }
.sh-block.on .sh-n { background: var(--saffron); color: var(--night); }
.spg-sheet:not(.live) .sh-block { opacity: 1; }
.spg-sheet table { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .8rem; }
.sh-heat th { font-weight: 600; text-align: left; color: var(--ink-soft); }
.sh-heat thead th { text-align: center; }
.sh-heat td { text-align: center; border-radius: 5px; padding: 4px 2px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sh-heat td.g { background: #DDF5E8; color: #14532D; } .sh-heat td.a { background: #FFF1DC; color: #7A4A00; } .sh-heat td.r { background: #FDE4E1; color: #8E2318; }
.sh-sk { margin: 0 0 6px; display: grid; gap: 3px; }
.sh-sk i { display: flex; height: 9px; border-radius: 99px; overflow: hidden; background: #F3D3CE; }
.sh-sk b { display: block; height: 100%; background: var(--c-ok); } .sh-sk b.m { background: var(--c-mid); }
.sh-root { margin: 0; color: #8E2318; font-weight: 600; }
.sh-list td { padding: 3px 4px; border-bottom: 1px solid var(--line); } .sh-list td.x { color: #8E2318; font-weight: 600; text-align: right; }

/* ---------- lab ---------- */
.spg-lab { background: var(--paper); }
.spg-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 32px; }
.spg-feats li { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.spg-feats svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spg-feats b { display: block; color: var(--night); font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.spg-feats span { color: var(--ink-soft); font-size: .96rem; }

/* ---------- price ---------- */
.spg-price { background: #fff; }
.spg-price .sch-price > div { padding: clamp(20px, 3vw, 30px); border-radius: 22px; position: relative; display: flex; flex-direction: column; }
.spg-price .sch-price > div.hl { border-color: var(--saffron); box-shadow: 0 18px 40px rgba(238, 138, 27, .14); }
.spg-price .sch-price .amt { font-size: 2.6rem; }
.spg-price .sch-price ul { flex: 1; margin-bottom: 18px; }
.spg-price .sch-price li { margin-bottom: 4px; }
.spg-price .sch-price .btn { align-self: flex-start; }
.spg-ribbon { position: absolute; top: -13px; left: 22px; background: var(--saffron); color: var(--night); font-weight: 700; font-size: .82rem; border-radius: 99px; padding: 3px 12px; }

/* ---------- booking ---------- */
.spg-book { background: var(--night); color: var(--on-dark-soft); }
.spg-book-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.spg-next h2 { color: #fff; }
.spg-next .lede { color: var(--on-dark-soft); margin: -10px 0 24px; }
.spg-after { list-style: none; margin: 0 0 24px; padding: 0 0 0 22px; border-left: 2px solid rgba(255, 255, 255, .18); display: grid; gap: 18px; }
.spg-after li { position: relative; }
.spg-after li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px var(--night); }
.spg-after b { display: block; color: #fff; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; }
.spg-muted { color: var(--on-dark-soft); } .spg-muted a { color: #FFC46B; }
.spg-form { max-width: none; margin: 0; position: relative; color: var(--ink); }
.spg-form label { color: var(--ink); }
.spg-prog { height: 6px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; }
.spg-prog i { display: block; height: 100%; width: 50%; background: linear-gradient(90deg, var(--violet), var(--saffron)); border-radius: 99px; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.spg-stepno { margin: 10px 0 0; font-weight: 700; color: var(--violet-deep); }
.spg-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.spg-step.enter { animation: spg-in .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes spg-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.spg-step.enter-back { animation: spg-in-back .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes spg-in-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.spg-form-btns { display: flex; gap: 10px; margin-top: 6px; }
.spg-form-btns [hidden] { display: none; }
.spg-form-btns .btn-ghost { flex: none; }
.spg-form .field input, .spg-form .field select { transition: border-color .15s ease, box-shadow .15s ease; }
.spg-form .field input:focus, .spg-form .field select:focus { box-shadow: 0 0 0 4px rgba(91, 67, 214, .14); }
.spg-done { max-width: none; margin: 0; color: var(--ink); animation: spg-pop .5s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes spg-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.spg-tick { width: 56px; height: 56px; display: block; margin-bottom: 8px; }
.spg-tick circle { fill: #DDF5E8; }
.spg-tick path { fill: none; stroke: #1D6B42; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: spg-draw .5s .25s ease forwards; }
@keyframes spg-draw { to { stroke-dashoffset: 0; } }
.spg-done .sch-login-box b { animation: spg-pop .5s ease both; }
.spg-done .sch-login-box div:nth-child(2) b { animation-delay: .12s; } .spg-done .sch-login-box div:nth-child(3) b { animation-delay: .24s; }

/* ---------- FAQ and closing band ---------- */
.spg-faq { background: var(--paper); }
.spg-end { background: linear-gradient(120deg, var(--violet-deep), var(--violet)); text-align: center; }
.spg main > .spg-end { padding-block: clamp(40px, 6vw, 64px); }
.spg-end h2 { color: #fff; margin: 0 auto 20px; }

/* EduSoulX logo in the dark footer: white pill so the original white background looks deliberate */
.spg-exf { align-self: flex-start; background: #fff; border-radius: 12px; padding: 6px 10px; line-height: 0; }
.spg-exf img { height: 38px; width: auto; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .spg-hero-grid, .spg-report-grid, .spg-book-grid { grid-template-columns: minmax(0, 1fr); }
  .spg-reg { max-width: 560px; }
  .spg-sheet { transform: none; max-width: 600px; }
  .spg-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .spg-why-cols, .spg-steps { grid-template-columns: minmax(0, 1fr); }
  .spg-steps { gap: 30px; }
  .spg-steps::before { display: none; }
  .spg-price .sch-price { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 560px) {
  .spg-feats { grid-template-columns: minmax(0, 1fr); }
  .spg-cta .btn { flex: 1 1 100%; }
  .spg-facts { gap: 10px 20px; }
  .spg-facts dt { font-size: 1.3rem; }
  .reg-desks { gap: 5px 6px; }
  .reg-skills li { font-size: .84rem; }
  .sh-list td:nth-child(2) { display: none; }
  .spg-form-btns { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .spg *, .spg *::before, .spg *::after { animation: none !important; transition: none !important; }
  .spg-tick path { stroke-dashoffset: 0; }
}
.spg-done h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); margin: 0 0 6px; }
.spg-booked .mbar { display: none !important; }
@media (max-width: 700px) { body.spg-booked { padding-bottom: 0; } }
.spg #how, .spg #report, .spg #book { scroll-margin-top: 68px; }
/* phone and tablet: form straight after the heading, "what happens next" below it */
@media (max-width: 960px) {
  .spg-book-grid { gap: 0; }
  .spg-next { display: contents; }
  .spg-next h2 { order: 0; } .spg-next .lede { order: 1; margin-bottom: 18px; }
  .spg-book-grid > div:last-child { order: 2; }
  .spg-after { order: 3; margin-top: 30px; } .spg-next .spg-muted { order: 4; }
}
