/* Munja AI – Learning Gap Finder: home banner, short gap report and full Learning Gap Report (v1, 15 Oct 2026) */

/* ---------- home banner ---------- */
.hero-gap .ai-copy h1 { font-size: clamp(2.35rem, 5.6vw, 4rem); line-height: 1.04; }
.hero-gap .lede { max-width: 34ch; }
.gf-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: -4px 0 0; padding: 0; }
.gf-points li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 600; font-size: .92rem; }
.gf-points li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, #5FE0D4); box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.gf-points li:nth-child(1) { --c: #FF8A7A; } .gf-points li:nth-child(2) { --c: #FFC46B; } .gf-points li:nth-child(3) { --c: #5FE0D4; }
.hero-gap .qs .btn { font-size: 1.05rem; }

.gf-wrap { display: flex; justify-content: center; min-width: 0; }
.gf-scene { position: relative; width: 460px; height: 470px; flex: none; }
.gf-glow { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(95, 224, 212, .22), rgba(91, 67, 214, .18) 45%, transparent 70%); animation: gf-breathe 7s ease-in-out infinite; }
.gf-card { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); width: 330px; background: #fff; border-radius: 22px; padding: 16px 16px 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); color: var(--ink); overflow: hidden; animation: gf-card 14s ease-out infinite; }
.gf-head { display: flex; align-items: center; gap: 9px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.gf-head img { width: 30px; height: 32px; }
.gf-head div { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.gf-head b { font-family: var(--font-display); font-size: 1.05rem; }
.gf-head small { font-size: .74rem; color: var(--ink-soft); font-weight: 600; }
.gf-sample { margin-left: auto; align-self: flex-start; font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper); padding: 3px 7px 2px; border-radius: 99px; }
.gf-rows { list-style: none; margin: 0; padding: 10px 0 2px; display: flex; flex-direction: column; gap: 9px; position: relative; }
.gf-rows li { display: grid; grid-template-columns: 104px minmax(0, 1fr) 74px; gap: 9px; align-items: center; font-size: .82rem; font-weight: 600; position: relative; }
.gf-bar { height: 9px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; display: block; position: relative; }
.gf-bar em { display: block; height: 100%; border-radius: 99px; width: var(--w); background: var(--c); }
.gf-tg { justify-self: end; font-size: .66rem; font-weight: 700; padding: 3px 8px 2px; border-radius: 99px; white-space: nowrap; }
.tg-ok { background: #DDF5E8; color: #11643A; } .tg-mid { background: var(--saffron-wash); color: #7A4303; } .tg-gap { background: #FDE4E1; color: #8E2318; }
.gf-swap { position: relative; justify-self: end; width: 74px; height: 20px; }
.gf-swap .gf-tg { position: absolute; right: 0; top: 0; }
.gf-beam { position: absolute; left: -16px; right: -16px; top: 0; height: 34px; background: linear-gradient(180deg, transparent, rgba(95, 224, 212, .28) 45%, rgba(91, 67, 214, .22) 55%, transparent); border-bottom: 2px solid #2EC4B6; opacity: 0; pointer-events: none; animation: gf-beam 14s linear infinite; }
.gf-found { position: absolute; right: 14px; top: 34px; z-index: 3; background: #C6392B; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1; padding: 9px 14px 7px; border-radius: 99px; box-shadow: 0 10px 24px rgba(198, 57, 43, .45); transform: rotate(4deg); animation: gf-pop 14s ease-out infinite; }
.gf-chip { position: absolute; z-index: 3; display: inline-flex; flex-direction: column; gap: 1px; padding: 9px 13px 8px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(5px); color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.2; white-space: nowrap; }
.gf-chip small { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFC46B; }
.gf-chip.k1 { left: -6px; top: 6px; animation: gf-chip1 14s ease-out infinite; }
.gf-chip.k2 { left: -18px; bottom: 98px; animation: gf-chip2 14s ease-out infinite; }
.gf-bot { position: absolute; right: -8px; bottom: 6px; z-index: 4; width: 236px; display: flex; gap: 9px; align-items: flex-end; animation: gf-bot 14s ease-out infinite; }
.gf-bot img { width: 42px; height: 46px; flex: none; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.gf-bubble { background: var(--saffron); color: var(--night); border-radius: 16px 16px 16px 4px; padding: 9px 12px 8px; font-size: .84rem; font-weight: 600; line-height: 1.3; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.gf-bubble small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.gf-r5 .gf-tg.after { animation: gf-after 14s ease-out infinite; }
.gf-r5 .gf-bar .after { position: absolute; left: 0; top: 0; width: 0; background: #1F9D5C; animation: gf-grow 14s ease-out infinite; }
.gf-day7 { position: absolute; left: 58px; top: 50%; margin-top: -8px; background: #DDF5E8; padding: 2px 6px 1px; border-radius: 99px; font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #11643A; animation: gf-after 14s ease-out infinite; }

.gf-r1 { animation: gf-row1 14s linear infinite; } .gf-r1 .gf-bar em { animation: gf-bar1 14s ease-out infinite; } .gf-r1 .gf-tg { animation: gf-tag1 14s ease-out infinite; }
.gf-r2 { animation: gf-row2 14s linear infinite; } .gf-r2 .gf-bar em { animation: gf-bar2 14s ease-out infinite; } .gf-r2 .gf-tg { animation: gf-tag2 14s ease-out infinite; }
.gf-r3 { animation: gf-row3 14s linear infinite; } .gf-r3 .gf-bar em { animation: gf-bar3 14s ease-out infinite; } .gf-r3 .gf-tg { animation: gf-tag3 14s ease-out infinite; }
.gf-r4 { animation: gf-row4 14s linear infinite; } .gf-r4 .gf-bar em { animation: gf-bar4 14s ease-out infinite; } .gf-r4 .gf-tg { animation: gf-tag4 14s ease-out infinite; }
.gf-r5 { animation: gf-row5 14s linear infinite; } .gf-r5 .gf-bar em { animation: gf-bar5 14s ease-out infinite; } .gf-r5 .gf-tg { animation: gf-tag5 14s ease-out infinite; }
.gf-r5 .gf-tg.before { animation: gf-tag5b 14s ease-out infinite; }

@keyframes gf-row1 { 0%, 9% { opacity: .35; } 11%, 93% { opacity: 1; } 97%, 100% { opacity: .35; } }
@keyframes gf-bar1 { 0%, 10% { width: 0; } 14%, 93% { width: var(--w); } 97%, 100% { width: 0; } }
@keyframes gf-tag1 { 0%, 11% { opacity: 0; transform: scale(.6); } 13%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes gf-row2 { 0%, 14% { opacity: .35; } 16%, 93% { opacity: 1; } 97%, 100% { opacity: .35; } }
@keyframes gf-bar2 { 0%, 15% { width: 0; } 19%, 93% { width: var(--w); } 97%, 100% { width: 0; } }
@keyframes gf-tag2 { 0%, 16% { opacity: 0; transform: scale(.6); } 18%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes gf-row3 { 0%, 19% { opacity: .35; } 21%, 93% { opacity: 1; } 97%, 100% { opacity: .35; } }
@keyframes gf-bar3 { 0%, 20% { width: 0; } 24%, 93% { width: var(--w); } 97%, 100% { width: 0; } }
@keyframes gf-tag3 { 0%, 21% { opacity: 0; transform: scale(.6); } 23%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes gf-row4 { 0%, 24% { opacity: .35; } 26%, 93% { opacity: 1; } 97%, 100% { opacity: .35; } }
@keyframes gf-bar4 { 0%, 25% { width: 0; } 29%, 93% { width: var(--w); } 97%, 100% { width: 0; } }
@keyframes gf-tag4 { 0%, 26% { opacity: 0; transform: scale(.6); } 28%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes gf-row5 { 0%, 29% { opacity: .35; } 31%, 93% { opacity: 1; } 97%, 100% { opacity: .35; } }
@keyframes gf-bar5 { 0%, 30% { width: 0; } 34%, 93% { width: var(--w); } 97%, 100% { width: 0; } }
@keyframes gf-tag5 { 0%, 31% { opacity: 0; transform: scale(.6); } 33%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes gf-tag5b { 0%, 31% { opacity: 0; transform: scale(.6); } 33%, 71% { opacity: 1; transform: none; } 74%, 100% { opacity: 0; } }
@keyframes gf-card { 0% { opacity: 0; transform: translate(-50%, 18px); } 4%, 94% { opacity: 1; transform: translate(-50%, 0); } 99%, 100% { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes gf-beam { 0%, 7% { opacity: 0; top: 46px; } 9% { opacity: 1; top: 46px; } 33% { opacity: 1; top: 196px; } 36%, 100% { opacity: 0; top: 196px; } }
@keyframes gf-pop { 0%, 37% { opacity: 0; transform: rotate(4deg) scale(.3); } 40% { opacity: 1; transform: rotate(4deg) scale(1.15); } 42%, 93% { opacity: 1; transform: rotate(4deg) scale(1); } 97%, 100% { opacity: 0; } }
@keyframes gf-chip1 { 0%, 45% { opacity: 0; transform: translateX(-16px); } 49%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes gf-chip2 { 0%, 50% { opacity: 0; transform: translateX(-16px); } 54%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes gf-bot { 0%, 58% { opacity: 0; transform: translateY(24px); } 62%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes gf-after { 0%, 72% { opacity: 0; transform: scale(.6); } 75%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes gf-grow { 0%, 72% { width: 0; } 80%, 93% { width: 90%; } 97%, 100% { width: 0; } }
@keyframes gf-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.08); } }

@media (max-width: 900px) { .gf-wrap { margin-top: 6px; } }
@media (max-width: 520px) {
  .gf-wrap { height: 350px; }
  .gf-scene { transform: scale(.74); transform-origin: top center; }
  .gf-points li { font-size: .86rem; }
}
@media (max-width: 380px) { .gf-wrap { height: 318px; } .gf-scene { transform: scale(.67); } }
@media (prefers-reduced-motion: reduce) {
  .gf-scene *, .gf-scene { animation: none !important; }
  .gf-beam, .gf-r5 .after, .gf-day7 { display: none; }
}

/* ---------- short gap report (before parent details) ---------- */
.gs-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(14px, 3vw, 24px); align-items: center; }
.ring.gs-ring { width: 96px; height: 96px; }
.ring.gs-ring .val b { font-size: 1.6rem; }
.ring.gs-ring .val b + b { font-size: 1rem; }
.gap-short h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
.gap-short .pc-note .level { font-size: .78rem; padding: 3px 10px 2px; vertical-align: 1px; }
.gap-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gap-tile { border-radius: 16px; padding: 12px 14px 11px; display: flex; flex-direction: column; gap: 1px; border: 1.5px solid; min-width: 0; }
.gap-tile b { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.gap-tile span { font-weight: 700; font-size: .98rem; }
.gap-tile small { font-size: .8rem; opacity: .8; }
.t-gap { background: #FDE4E1; border-color: #F5B5AD; color: #8E2318; }
.t-mid { background: var(--saffron-wash); border-color: #F6CB92; color: #7A4303; }
.t-ok { background: #DDF5E8; border-color: #A8E0C2; color: #11643A; }
.gap-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: gt; }
.gap-top li { counter-increment: gt; display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.gap-n { display: flex; align-items: baseline; gap: 8px; font-weight: 700; min-width: 0; }
.gap-n::before { content: counter(gt); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--night); color: #fff; font-size: .8rem; display: grid; place-items: center; align-self: center; }
.gap-n em, .gf-top em { font-style: normal; font-weight: 600; font-size: .85rem; color: var(--ink-soft); }
.gap-unlock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; background: linear-gradient(160deg, #F1ECFF, #FFFFFF 70%); border: 1.5px solid #CFC2F7; border-radius: 18px; padding: clamp(14px, 2.6vw, 22px); }
.gu-t { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--violet-deep); margin-bottom: 8px; }
.gu-t svg { width: 20px; height: 20px; flex: none; }
.gu-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gu-list li { display: flex; flex-direction: column; padding: 9px 12px 8px 38px; border-radius: 12px; background: #fff; border: 1px dashed #CFC2F7; position: relative; }
.gu-list li::before { content: ""; position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; border-radius: 4px; background: repeating-linear-gradient(135deg, #CFC2F7 0 3px, #EFEAFD 3px 6px); }
.gu-list li b { font-size: .98rem; }
.gu-list li span { font-size: .85rem; color: var(--ink-soft); }
.gu-form { display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: 16px; padding: clamp(14px, 2.4vw, 20px); box-shadow: var(--shadow); }
.gu-form h3 { font-size: 1.3rem; }

/* ---------- full report: gaps first ---------- */
.gap-fixes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gap-fixes li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; background: var(--paper); border-radius: 14px; padding: 14px; }
.gf-no { width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; }
.gf-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gf-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.gf-top b { font-family: var(--font-display); font-size: 1.12rem; }
.gf-top .tag { margin-left: auto; }
.gf-body p { color: var(--ink-soft); font-size: .96rem; }
.gap-fixes .ask { margin-top: 2px; 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; align-self: flex-start; max-width: 100%; }
.gap-fixes .ask span { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFC46B; }

@media (max-width: 760px) {
  .gap-unlock { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .gs-head { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .gap-band { gap: 6px; }
  .gap-tile { padding: 10px 10px 9px; }
  .gap-tile b { font-size: 1.6rem; }
  .gap-tile span { font-size: .86rem; }
  .gap-tile small { display: none; }
  .gap-top li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .gap-fixes li { grid-template-columns: minmax(0, 1fr); }
  .gf-top .tag { margin-left: 0; }
}
@media print {
  .gap-unlock, .gf-wrap { display: none !important; }
  .gap-fixes li, .gap-tile { break-inside: avoid; }
}