/* ============================================================
   STUDY AI — landing page
   ============================================================ */
body.landing { background: #120e36; color: #fff; }
.dark h2, .dark .hero h1 { text-shadow: 0 2px 14px rgba(12, 6, 56, .55); }
.dark p, .dark .step span { text-shadow: 0 1px 8px rgba(12, 6, 56, .45); }
#sky { position: fixed; inset: 0; z-index: -2; }
#sky > div { position: absolute; inset: 0; transition: opacity .9s ease; }
.sky-space { background: radial-gradient(ellipse at 20% 10%, #3d2a9e 0%, transparent 55%), radial-gradient(ellipse at 85% 90%, #0f5fb8 0%, transparent 50%), linear-gradient(180deg, #17123f 0%, #231a66 50%, #0f1a52 100%); }
.sky-day { background: radial-gradient(circle at 12% 8%, #dfe6ff 0, transparent 45%), radial-gradient(circle at 90% 85%, #ffe9d6 0, transparent 48%), linear-gradient(180deg, #f6f8ff, #eef2ff); opacity: 0; }
body.day .sky-day { opacity: 1; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; transition: opacity .8s; }
body.day #gl { opacity: 0; }
body.no3d #gl { display: none; }

.sec { position: relative; padding: clamp(64px, 11vw, 120px) 0; }
.dark { color: #fff; } .day { color: var(--ink); }
.dark p { color: #d7d2ff; } .day p { color: var(--ink2); }
.narrow { max-width: 820px; }
.eyebrow { display: inline-block; font: 800 .85rem var(--head); letter-spacing: 1.6px; text-transform: uppercase; color: #ffcf33; margin-bottom: 8px; } .day .eyebrow { color: var(--purple); }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 42px; } .sec-head p { font-size: 1.1rem; }
.rv { opacity: 0; transform: translateY(34px); } .no-js .rv, body.rv-off .rv { opacity: 1; transform: none; }

/* ---------- header ---------- */
header.top { position: fixed; top: 0; left: 0; right: 0; z-index: 4000; display: flex; align-items: center; gap: 10px; padding: 10px max(16px, 3vw); padding-top: max(10px, env(safe-area-inset-top)); background: rgba(20, 14, 62, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .12); transition: background .4s; }
body.day header.top { background: rgba(255, 255, 255, .8); border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; font: 800 1.45rem var(--head); text-decoration: none !important; } body.day .logo { color: var(--ink); } .logo b { color: #ffcf33; } body.day .logo b { color: var(--purple); }
.logo-m { width: 40px; height: 40px; display: block; } .logo-m svg { width: 100%; height: 100%; }
.nav { display: flex; gap: 4px; margin-left: 18px; } .nav a { color: inherit; padding: 8px 14px; border-radius: 999px; font: 800 .95rem var(--head); text-decoration: none !important; color: #e8e4ff; } .nav a:hover { background: rgba(255, 255, 255, .14); } body.day .nav a { color: var(--ink2); } body.day .nav a:hover { background: var(--soft); }
header.top .lang-btn, header.top .icon-btn { box-shadow: none; background: rgba(255, 255, 255, .16); color: #fff; } body.day header.top .lang-btn, body.day header.top .icon-btn { background: var(--soft); color: var(--ink); }
header.top .btn:not(.btn-primary) { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; } body.day header.top .btn:not(.btn-primary) { background: var(--soft); color: var(--ink); }
.sheet { position: fixed; inset: 0; z-index: 4800; background: linear-gradient(160deg, #2a1d7a, #17123f); display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 30px; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); } .sheet.open { transform: none; } .sheet > a:not(.btn) { color: #fff; font: 800 1.7rem var(--head); text-decoration: none; padding: 6px 0; } .sheet .x { position: absolute; right: 16px; top: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 1.2rem; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: 96px; padding-bottom: 80px; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.hero h1 { color: #fff; margin: 14px 0 16px; text-shadow: 0 4px 24px rgba(0, 0, 0, .25); } .hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffcf33, #ff8a3d, #ff5fa2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 560px; }
.hero .pill { background: rgba(255, 255, 255, .16); color: #fff; font-size: .9rem; padding: 7px 14px; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 30px; } .hero-stats div { display: flex; flex-direction: column; } .hero-stats b { font: 800 2.1rem var(--head); color: #ffcf33; line-height: 1; } .hero-stats span { font-size: .85rem; color: #cfc9ff; font-weight: 700; }
.hero-art { position: relative; height: min(520px, 62vw); min-height: 340px; }
.hero-mascot { position: absolute; left: 50%; top: 50%; width: 48%; transform: translate(-50%, -50%); animation: floaty 4s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .4)); z-index: 2; } .hero-mascot svg { width: 100%; display: block; }
.bub { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); cursor: pointer; animation: floaty 5s ease-in-out infinite; transition: transform .25s; background: #fff; }
.bub img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; } .bub:hover { transform: scale(1.18) rotate(-5deg); z-index: 5; }
.b1 { left: 2%; top: 6%; animation-delay: -1s; } .b2 { right: 4%; top: 2%; animation-delay: -2s; width: 19%; } .b3 { left: 0; bottom: 14%; animation-delay: -3s; width: 20%; } .b4 { right: 0; top: 40%; animation-delay: -.5s; width: 21%; } .b5 { left: 24%; bottom: -2%; animation-delay: -2.5s; width: 18%; } .b6 { right: 18%; bottom: 0; animation-delay: -1.5s; width: 19%; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font: 800 .82rem var(--head); letter-spacing: 1px; color: #cfc9ff; text-transform: uppercase; } .scroll-hint i { width: 22px; height: 36px; border: 3px solid #cfc9ff; border-radius: 14px; position: relative; } .scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 5px; height: 8px; margin-left: -2.5px; border-radius: 3px; background: #ffcf33; animation: scrollDot 1.6s infinite; } @keyframes scrollDot { 0% { opacity: 1; transform: translateY(0) } 100% { opacity: 0; transform: translateY(14px) } }

/* ---------- about ---------- */
.about h2, .journey h2 { color: #fff; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fcard { background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .22); border-radius: 28px; padding: 26px 22px; backdrop-filter: blur(8px); transition: transform .25s, background .25s; } .fcard:hover { transform: translateY(-8px) rotate(-.6deg); background: rgba(255, 255, 255, .16); }
.fcard h3 { color: #fff; } .fcard p { margin: 0; }
.fimg { width: 150px; height: 150px; margin: -64px auto 12px; border-radius: 50%; border: 6px solid #fff; background: var(--c, #fff); overflow: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); } .fimg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.about .cards3 { margin-top: 90px; } .fcard { text-align: center; }
.day .fcard { background: #fff; border-color: var(--line); box-shadow: var(--shadow); } .day .fcard h3 { color: var(--ink); } .day .fcard:hover { background: #fff; }
.fcard.small i { font-style: normal; font-size: 2.6rem; display: block; margin-bottom: 6px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 60px; position: relative; }
.step { background: rgba(255, 255, 255, .08); border-radius: 22px; padding: 18px; position: relative; border: 2px dashed rgba(255, 255, 255, .3); } .step i { font: 800 1.4rem var(--head); font-style: normal; width: 44px; height: 44px; border-radius: 50%; background: var(--g-sun); color: #4a2a00; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; box-shadow: 0 4px 0 #d9822a; } .step b { display: block; font: 800 1.15rem var(--head); margin-bottom: 4px; } .step span { color: #d7d2ff; font-size: .95rem; }

/* ---------- level journey ---------- */
.journey { height: 780vh; position: relative; padding: 0; }
.jstick { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: 70px; }
.jwrap { width: 100%; }
.jhead { text-align: center; margin-bottom: 14px; } .jhead h2 { font-size: clamp(1.4rem, 3.6vw, 2.2rem); margin: 0; }
.lvtabs { justify-content: center; gap: 10px; padding-bottom: 14px; }
.lvtab { flex: none; display: flex; align-items: center; gap: 8px; border: 2px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; border-radius: 999px; padding: 6px 18px 6px 8px; cursor: pointer; font: 800 .95rem var(--head); transition: all .2s; backdrop-filter: blur(6px); } .lvtab .lb { width: 36px; height: 36px; display: block; } .lvtab:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); } .lvtab.on { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 207, 51, .55); }
.jpanel { display: grid; grid-template-columns: 310px 1fr; gap: 22px; align-items: stretch; background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .25); border-radius: 30px; padding: 20px 22px; backdrop-filter: blur(12px); transition: opacity .25s, transform .25s; } .jpanel.sw { opacity: 0; transform: translateY(14px) scale(.98); }
.jl { display: flex; flex-direction: column; gap: 8px; } .jl .lbig { width: 88px; height: 88px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); animation: floaty 4s ease-in-out infinite; } .jl h3 { font-size: 1.7rem; margin: 0; color: #fff; } .jl .age { color: #ffcf33; font: 800 .95rem var(--head); } .jl p { margin: 0; font-size: .95rem; line-height: 1.5; } .jl ul { margin: 0; padding-left: 20px; color: #e8e4ff; font-weight: 700; font-size: .9rem; } .jl .btn { margin-top: auto; align-self: flex-start; }
.jsubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; align-content: start; }
.jsub { border-radius: 18px; padding: 11px 14px; color: #fff; position: relative; overflow: hidden; animation: bounceIn .5s both; } .jsub::after { content: ""; position: absolute; right: -20px; bottom: -20px; width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.jsub .ic { font-size: 1.5rem; line-height: 1.2; display: block; } .jsub b { display: block; font: 800 1.02rem var(--head); } .jsub span { display: block; font-size: .8rem; line-height: 1.35; opacity: .95; font-weight: 700; } .jsub small { display: inline-block; margin-top: 5px; background: rgba(0, 0, 0, .18); padding: 1px 9px; border-radius: 999px; font-weight: 800; font-size: .72rem; }
@media (min-width: 1024px) and (max-height: 820px) { .jhead h2 { font-size: 1.5rem; } .jhead .eyebrow { display: none; } .lvtabs { padding-bottom: 8px; } .lvtab { padding: 3px 14px 3px 5px; } .lvtab .lb { width: 30px; height: 30px; } .jl .lbig { width: 64px; height: 64px; } .jl h3 { font-size: 1.4rem; } .jl p { font-size: .88rem; } .jpanel { padding: 14px 18px; } .jsub span { font-size: .76rem; } }
@media (min-width: 1024px) and (max-height: 680px) { .jl ul { display: none; } .jl p { display: none; } .jsub span { display: none; } }
.jprog { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .15); margin-top: 14px; overflow: hidden; } .jprog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffcf33, #ff5fa2); }

/* ---------- try / duel ---------- */
.try { padding-top: 90px; }
.duel-box { max-width: 820px; margin: 0 auto; background: rgba(255, 255, 255, .7); border: 2px solid #fff; border-radius: 32px; padding: 26px 20px; box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); }
.duel-pick { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; } .duel-pick button { display: flex; align-items: center; gap: 8px; border: 3px solid transparent; background: #fff; border-radius: 999px; padding: 6px 16px 6px 6px; cursor: pointer; font: 800 .95rem var(--head); color: var(--ink); box-shadow: var(--shadow); } .duel-pick button.on { border-color: var(--purple); background: #f0ecff; } .duel-pick .lb { width: 34px; height: 34px; }
.duel-start { text-align: center; padding: 10px 0; } .duel-start .vs { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 16px; } .duel-start .vs > div { width: 110px; } .duel-start .vs svg { width: 100%; } .duel-start .vs .you { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow); background: #fff; } .duel-start .vs .you img { width: 100%; height: 100%; object-fit: cover; }
.duel-start .vs em { font: 800 1.6rem var(--head); font-style: normal; color: #fff; background: var(--g-pink); width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 #c93d78; }
.duel-end { text-align: center; } .duel-end h3 { font-size: 2rem; } .duel-end .mas { width: 130px; margin: 0 auto; } .duel-end .score { font: 800 1.2rem var(--head); display: flex; gap: 24px; justify-content: center; margin: 8px 0 14px; }

/* ---------- parents ---------- */
.pgrid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.plist { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 14px; } .plist li { display: flex; gap: 14px; align-items: flex-start; } .plist i { font-style: normal; font-size: 1.5rem; width: 50px; height: 50px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; flex: none; } .plist b { display: block; font: 800 1.1rem var(--head); } .plist span { color: var(--ink2); font-size: .95rem; }
.pmock { background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .5s; } .pmock:hover { transform: none; }
.pm-bar { background: #f0f2fc; padding: 11px 14px; display: flex; align-items: center; gap: 6px; font: 800 .82rem var(--font); color: var(--mut); } .pm-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6b6b; } .pm-bar i:nth-child(2) { background: #ffcf33; } .pm-bar i:nth-child(3) { background: #1fbf83; } .pm-bar span { margin-left: 8px; }
.pm-body { padding: 20px; } .pm-kid { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; } .pm-kid .av { width: 50px; height: 50px; } .pm-kid small { display: block; color: var(--mut); font-weight: 700; } .pm-kid .pill { margin-left: auto; }
.pm-row { display: grid; grid-template-columns: 82px 1fr 44px; gap: 10px; align-items: center; margin-bottom: 11px; font-weight: 800; font-size: .92rem; } .pm-row b { text-align: right; }
.pm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 14px; } .pm-stats div { background: var(--soft); border-radius: 16px; padding: 12px; text-align: center; } .pm-stats b { display: block; font: 800 1.6rem var(--head); color: var(--purple); } .pm-stats span { font-size: .75rem; font-weight: 800; color: var(--mut); }
.pm-weak { background: #fff4d9; color: #8a5a00; border-radius: 14px; padding: 11px 14px; font-weight: 800; font-size: .9rem; }

/* ---------- friends marquee ---------- */
.friends { padding-bottom: 80px; overflow: hidden; }
.marq { display: flex; gap: 22px; width: max-content; animation: marq 55s linear infinite; padding: 10px 0 24px; } .marq:hover { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.mcard { flex: none; width: 190px; text-align: center; cursor: pointer; } .mcard .ph { width: 190px; height: 190px; border-radius: 36px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow); background: #fff; transition: transform .25s; } .mcard:hover .ph { transform: scale(1.08) rotate(-4deg); } .mcard img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; } .mcard b { display: block; margin-top: 10px; font: 800 1rem var(--head); color: var(--ink2); }

/* ---------- faq ---------- */
.acc details { background: #fff; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 12px; border: 1px solid var(--line); overflow: hidden; } .acc summary { cursor: pointer; padding: 18px 20px; font: 800 1.1rem var(--head); list-style: none; display: flex; justify-content: space-between; gap: 12px; } .acc summary::-webkit-details-marker { display: none; } .acc summary::after { content: "＋"; color: var(--purple); font-size: 1.3rem; } .acc details[open] summary::after { content: "－"; } .acc details p { padding: 0 20px 18px; margin: 0; }

/* ---------- cta + footer ---------- */
.cta { padding-bottom: 120px; } .cta h2 { color: #fff; } .cta-mascot { width: 180px; margin: 0 auto 8px; animation: floaty 3.5s ease-in-out infinite; } .cta-mascot svg { width: 100%; }
.foot { padding: 34px 0 100px; background: #0d0a2a; position: relative; } .foot a { color: #cfc9ff; } .foot-note { margin-top: 12px; color: #8f89c9; }

/* ---------- device adjustments ---------- */
@media (max-width: 1023px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; } .hero .lead { margin-left: auto; margin-right: auto; } .hero .row, .hero-stats { justify-content: center; } .hero-art { order: -1; height: 320px; min-height: 0; margin-top: 8px; } .hero { padding-top: 84px; }
  .cards3 { grid-template-columns: 1fr; gap: 90px; } .about .cards3 { margin-top: 80px; } .fcard.small { margin-bottom: -60px; } .safety .cards3 { gap: 18px; }
  .steps { grid-template-columns: 1fr 1fr; } .pgrid { grid-template-columns: 1fr; } .pmock { transform: none; max-width: 520px; margin: 0 auto; }
  .journey { height: auto; padding: 70px 0; } .jstick { position: relative; height: auto; padding-top: 0; }
  .jpanel { grid-template-columns: 1fr; } .jl .lbig { width: 90px; height: 90px; } .jprog { display: none; }
}
@media (max-width: 640px) {
  .hero-art { height: 270px; } .bub { border-width: 3px; } .hero-stats { gap: 16px; } .hero-stats b { font-size: 1.7rem; }
  .steps { grid-template-columns: 1fr; } .lvtabs { justify-content: flex-start; } .lvtab { padding-right: 14px; } .lvtab span { display: none; } .lvtab.on span { display: inline; }
  .jpanel { padding: 18px 14px; border-radius: 26px; } .jsubs { grid-template-columns: 1fr 1fr; } .jsub { padding: 12px; } .jsub span { font-size: .78rem; } .jsub .ic { font-size: 1.5rem; }
  .mcard { width: 150px; } .mcard .ph { width: 150px; height: 150px; } header.top { gap: 6px; padding-left: 12px; padding-right: 12px; } header.top .btn-primary { padding: 8px 11px; font-size: .76rem; min-height: 38px; } header.top .lang-btn { height: 38px; padding: 0 10px; font-size: .8rem; } header.top .icon-btn { width: 40px; height: 40px; } .logo-t { font-size: 1.15rem; } .logo-m { width: 32px; height: 32px; }
  #sa-mute { width: 52px; height: 52px; font-size: 1.4rem; }
}
@media (hover: none) { .fcard:hover, .bub:hover, .mcard:hover .ph { transform: none; } }
