/* Languest landing page. Same tokens and fonts as the game (css/style.css). */
:root {
  --bg: #0e0c1d; --bg2: #17142c; --card: #1c1836; --line: rgba(255, 255, 255, .12);
  --tx: #f4f2ff; --mut: #b0abd0; --acc: #8b6cff; --acc2: #ff7ac6; --gold: #ffcb47; --good: #2ed69a;
  --fh: 'Fredoka', 'Nunito', system-ui, sans-serif; --fb: 'Nunito', system-ui, sans-serif;
  --grad: linear-gradient(90deg, var(--acc), var(--acc2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--tx); font-family: var(--fb); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--fh); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 em, h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 900; color: var(--gold); margin: 0 0 10px; }
.sub { color: var(--mut); font-size: 1.08rem; max-width: 720px; margin: 0 0 32px; }
.small, .fine { color: var(--mut); font-size: .9rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 14px; font-weight: 900; text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px var(--acc2); }
.btn.primary:hover { box-shadow: 0 16px 36px -10px var(--acc2); }
.btn.ghost { border-color: var(--line); background: rgba(255, 255, 255, .05); }
.btn.ghost:hover { border-color: var(--acc); }
.btn.big { padding: 16px 28px; font-size: 1.08rem; border-radius: 16px; }
.btn.sm { padding: 9px 16px; font-size: .92rem; }

/* Logo */
.logo { display: inline-flex; text-decoration: none; }
.logo img { display: block; height: 34px; width: auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(14, 12, 29, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; color: var(--mut); font-weight: 800; font-size: .95rem; }
.links a:hover { color: var(--tx); }

/* Hero */
.hero { position: relative; padding: 72px 0 56px; background: radial-gradient(ellipse at 75% 10%, #3a2a78 0, transparent 55%), radial-gradient(ellipse at 10% 90%, rgba(255, 122, 198, .16) 0, transparent 50%); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); letter-spacing: -.015em; }
.lead { font-size: 1.15rem; color: #d6d1f3; margin: 0 0 28px; }
.lead b { color: var(--tx); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--mut); font-weight: 800; font-size: .92rem; }
.hero-art { position: relative; min-height: 380px; }
.frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 6px rgba(255, 255, 255, .03); background: var(--bg2); }
.frame.browser { position: relative; padding-top: 26px; transform: rotate(-2deg); }
.frame.browser i { position: absolute; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.frame.browser i:nth-child(1) { left: 12px; } .frame.browser i:nth-child(2) { left: 27px; background: #febc2e; } .frame.browser i:nth-child(3) { left: 42px; background: #28c840; }
.frame.phone { position: absolute; width: 30%; right: -2%; bottom: -12%; border-radius: 26px; border: 6px solid #2a2547; transform: rotate(4deg); }
.float { position: absolute; font-size: 2.6rem; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); animation: bob 5s ease-in-out infinite; }
.f1 { left: -4%; top: -6%; } .f2 { left: 38%; top: -12%; animation-delay: -1.6s; } .f3 { left: -2%; bottom: -8%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-align: center; }
.stats b { display: block; font-family: var(--fh); font-size: 2.2rem; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--mut); font-weight: 800; font-size: .9rem; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 20px 22px; }
.step .num { position: absolute; top: 28px; left: 28px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); font-family: var(--fh); font-size: 1.2rem; font-weight: 600; box-shadow: 0 8px 20px -6px var(--acc2); }
.step p { color: var(--mut); margin: 0; }
.chips { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-weight: 800; font-size: .92rem; }

/* Courses */
.courses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.course { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.course.method { border-color: rgba(255, 203, 71, .35); box-shadow: 0 0 0 1px rgba(255, 203, 71, .08), 0 30px 60px -40px var(--gold); }
.mfeat { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.mfeat li { display: flex; gap: 14px; align-items: flex-start; }
.mfeat li > span { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); font-size: 1.3rem; }
.mfeat b { display: block; }
.mfeat p { margin: 2px 0 0; color: var(--mut); font-size: .94rem; }
.c-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.c-head h3 { margin: 0; font-size: 1.6rem; }
.c-head small { color: var(--gold); font-weight: 800; }
.badge { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-family: var(--fh); font-size: 1.5rem; color: var(--gold); }
.course p { color: #d6d1f3; }
.mlist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.mlist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-weight: 700; font-size: .95rem; }
.mlist i { font-style: normal; color: var(--mut); font-size: .85rem; font-weight: 800; }

/* Kids */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { color: var(--mut); }
.ticks b { color: var(--tx); }
.sticker-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 26px; border-radius: 26px; background: linear-gradient(160deg, #3b2a1d, #22170f); border: 1px solid rgba(255, 210, 150, .2); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .25); }
.book { aspect-ratio: 3 / 4; overflow-wrap: anywhere; border-radius: 10px 16px 16px 10px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; font-family: var(--fh); font-weight: 600; font-size: .95rem; line-height: 1.2; box-shadow: inset 6px 0 0 rgba(0, 0, 0, .18), 0 10px 20px -10px rgba(0, 0, 0, .7); transition: transform .2s; }
.book:hover { transform: translateY(-6px) rotate(-2deg); }
.book span { font-size: 2.2rem; margin-bottom: auto; }
.b1 { background: #e5609a; } .b2 { background: #ff4f5e; } .b3 { background: #7a5cff; } .b4 { background: #0fa3b1; } .b5 { background: #f28c28; } .b6 { background: #c8963e; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.feat span { font-size: 1.9rem; }
.feat h3 { margin: 10px 0 6px; font-size: 1.2rem; }
.feat p { color: var(--mut); margin: 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.plan.best { border: 2px solid var(--acc); box-shadow: 0 30px 60px -30px var(--acc); }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--gold); color: #1b1733; padding: 4px 12px; border-radius: 999px; font-weight: 900; font-size: .8rem; }
.plan h3 { font-size: 1.25rem; }
.price { font-family: var(--fh); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.per { color: var(--mut); font-weight: 800; margin: 4px 0 18px; }
.per:has(+ .month:not(:empty)) { margin-bottom: 4px; }
.month { color: var(--gold); font-weight: 800; margin: 0 0 18px; }
.month:empty { display: none; }
.plan ul { padding-left: 18px; margin: 0 0 22px; color: #d6d1f3; display: grid; gap: 6px; flex: 1; }
.fine { text-align: center; margin: 24px auto 0; max-width: 760px; }

/* Schools */
.school { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.school .sub { margin-bottom: 0; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 900; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--fh); font-size: 1.4rem; line-height: 1; color: var(--acc2); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--mut); }
details a { color: #cdbfff; }

/* Final CTA & footer */
.final { padding: 96px 0; text-align: center; background: radial-gradient(ellipse at 50% 0, #3a2a78 0, transparent 65%); border-top: 1px solid var(--line); }
.final p { color: var(--mut); font-size: 1.1rem; margin: 0 0 28px; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; margin-left: auto; }
.foot nav a { color: var(--mut); text-decoration: none; font-weight: 800; }
.foot nav a:hover { color: var(--tx); }
.foot small { color: var(--mut); }

/* Grid columns may shrink below their content’s natural width (long words, the book shelf). */
.hero-in > *, .courses > *, .split > *, .steps > *, .plans > *, .features > * { min-width: 0; }

/* Responsive */
@media (max-width: 960px) {
  .links { display: none; }
  .nav-in .btn { margin-left: auto; }
  .hero { padding-top: 44px; }
  .hero-in, .courses, .split { grid-template-columns: 1fr; }
  .hero-art { margin: 10px 4% 40px; min-height: 0; }
  .steps, .plans, .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}
@media (min-width: 600px) and (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .cta-row .btn { flex: 1 1 100%; }
  .float { font-size: 2rem; }
  .foot nav { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .float { animation: none; } .btn, .book { transition: none; } }
