/* Little Words — site styles. One bright daytime look (by choice: it matches the lessons). */
:root {
  --ink: #1E2A4A; --ink-2: #4A5878; --muted: #6B7894;
  --paper: #EEF7FF; --card: #FFFFFF; --line: #D5E6F6;
  --sky: #5EC4FF; --sky-deep: #1C8FE0; --sun: #FFC93C; --sun-deep: #E9A800; --coral: #FF5A4E; --grass: #4FAF33; --grass-deep: #3B8F24;
  --edge: 0 6px 0 rgba(30,42,74,.14);
  --r: 28px;
  --display: 'Fredoka', 'Varela Round', system-ui, sans-serif;
  --body: 'Varela Round', 'Fredoka', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--sky-deep); }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.en { direction: ltr; unicode-bidi: isolate; font-family: var(--display); }

/* demo strip */
.demo { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 6px 16px; letter-spacing: .2px; }

/* top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(238,247,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 21px; }
.logo-mark { width: 40px; height: 40px; }
.bar nav { display: flex; gap: 6px; margin-inline-start: auto; align-items: center; }
.bar nav a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 12px; font-size: 15px; }
.bar nav a:hover { background: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 18px; padding: 13px 22px; font-family: var(--display); font-weight: 600; font-size: 17px; text-decoration: none; transition: transform .12s; }
.btn:active { transform: translateY(3px); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 var(--sun-deep); }
.btn-sun:active { box-shadow: 0 2px 0 var(--sun-deep); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 5px 0 #0D1530; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--line); }
.bar .btn { padding: 9px 16px; font-size: 15px; }
.bar nav a.btn-ink { color: #fff; }
.bar nav a.btn-ink:hover { background: var(--ink); }
@media (max-width: 640px) { .bar nav a:not(.btn) { display: none; } }

/* hero */
.hero { padding-block: 48px 72px; background: linear-gradient(180deg, #CDEEFF 0%, var(--paper) 100%); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 700; }
.hero h1 .hl { color: var(--coral); }
.hero p.lead { font-size: 19px; color: var(--ink-2); margin: 18px 0 26px; max-width: 34ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; }
.facts b { display: block; font-family: var(--display); font-size: 26px; color: var(--ink); line-height: 1.1; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* laptop around the live stage */
.laptop { position: relative; }
.laptop-screen { background: #22293B; border-radius: 22px 22px 8px 8px; padding: 14px 14px 18px; box-shadow: 0 30px 60px -20px rgba(30,42,74,.45); }
.laptop-base { height: 18px; margin-inline: -6%; background: linear-gradient(#C9D2E0, #9AA6BA); border-radius: 0 0 22px 22px; position: relative; }
.laptop-base::after { content: ''; position: absolute; top: 0; left: 50%; width: 16%; height: 7px; transform: translateX(-50%); background: #8592A8; border-radius: 0 0 10px 10px; }
.sound-btn { position: absolute; inset-inline-end: 26px; top: 26px; z-index: 3; display: flex; gap: 6px; align-items: center; background: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-family: var(--display); font-weight: 600; box-shadow: var(--edge); }
.sound-btn svg { width: 20px; height: 20px; }

.screen { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 100%; overflow: hidden; border-radius: 8px; background: #5EC4FF; }
.screen > .lw-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

/* sections */
section.s { padding-block: 72px; }
.s-head { max-width: 640px; margin-bottom: 36px; }
.s-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.s-head p { color: var(--ink-2); font-size: 17px; margin: 10px 0 0; }
.eyebrow { font-family: var(--display); font-weight: 600; color: var(--coral); font-size: 15px; letter-spacing: .4px; margin-bottom: 8px; }

.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.part { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--edge); display: flex; flex-direction: column; }
.part img { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: #DDEFFF; display: block; }
.part .pt { padding: 18px 22px 22px; display: grid; gap: 6px; }
.part h3 { font-size: 23px; display: flex; gap: 10px; align-items: baseline; }
.part h3 small { font-size: 14px; color: var(--muted); font-weight: 500; font-family: var(--body); }
.part p { margin: 0; color: var(--ink-2); }
@media (max-width: 880px) { .parts { grid-template-columns: 1fr; } }

/* course map */
.levels { display: grid; gap: 34px; }
.level h3 { font-size: 22px; margin-bottom: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.level h3 .tag { font-size: 13px; font-family: var(--body); font-weight: 400; color: var(--muted); background: #fff; border-radius: 999px; padding: 3px 12px; }
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.theme { position: relative; display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 22px; padding: 12px 14px; text-decoration: none; color: var(--ink); box-shadow: 0 4px 0 var(--line); border: 0; text-align: start; }
.theme img { width: 52px; height: 52px; flex: none; }
.theme .tn { display: grid; line-height: 1.25; }
.theme .tn b { font-family: var(--display); font-weight: 600; font-size: 17px; }
.theme .tn span { font-size: 13px; color: var(--muted); }
.theme .badge { position: absolute; top: -9px; inset-inline-end: 12px; font-size: 12px; font-family: var(--display); font-weight: 600; border-radius: 999px; padding: 1px 10px; }
.theme.open { box-shadow: 0 0 0 3px var(--grass), 0 6px 0 var(--grass-deep); }
.theme.open .badge { background: var(--grass); color: #fff; }
.theme.soon { opacity: .78; }
.theme.soon .badge { background: #fff; color: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.theme.open:hover { transform: translateY(-2px); }
@media (max-width: 960px) { .themes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .themes { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 22px; justify-content: center; }
.plan { background: var(--card); border-radius: var(--r); padding: 28px; box-shadow: var(--edge); display: flex; flex-direction: column; gap: 16px; position: relative; }
.plan.best { box-shadow: 0 0 0 4px var(--sun), 0 10px 0 var(--sun-deep); }
.plan .ribbon { position: absolute; top: -14px; inset-inline-start: 24px; background: var(--coral); color: #fff; font-family: var(--display); font-weight: 600; font-size: 14px; padding: 3px 14px; border-radius: 999px; }
.plan h3 { font-size: 24px; }
.price { font-family: var(--display); font-size: 52px; font-weight: 700; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.price small { font-size: 17px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='white' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100%; }
.price-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { background: var(--card); border-radius: 20px; padding: 16px 22px; box-shadow: 0 4px 0 var(--line); }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 18px; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }
footer.site { padding-block: 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* lesson page */
.lesson-head { padding-block: 28px 18px; }
.crumb { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.lesson-title { display: flex; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.lesson-title img { width: 64px; height: 64px; }
.lesson-title h1 { font-size: clamp(30px, 4vw, 44px); }
.lesson-title .en { font-size: 22px; color: var(--muted); font-weight: 500; }
.tabs-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.tabs { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 20px; box-shadow: 0 4px 0 var(--line); }
.tabs a { text-decoration: none; color: var(--ink-2); font-family: var(--display); font-weight: 600; padding: 9px 18px; border-radius: 14px; font-size: 16px; }
.tabs a.on { background: var(--ink); color: #fff; }
.styler { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.styler button { border: 0; background: #fff; border-radius: 12px; padding: 6px 12px; box-shadow: 0 3px 0 var(--line); font-family: var(--display); font-weight: 600; font-size: 14px; }
.styler button.on { background: var(--sun); box-shadow: 0 3px 0 var(--sun-deep); color: var(--ink); }
.lesson-body { padding-block: 10px 64px; display: grid; gap: 28px; }
.player { background: #22293B; border-radius: 24px; padding: 12px; box-shadow: 0 24px 50px -24px rgba(30,42,74,.5); }
.player video { width: 100%; max-width: 100%; aspect-ratio: 16/9; display: block; border-radius: 14px; background: #000; }
.side-by { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
@media (max-width: 880px) { .side-by { grid-template-columns: 1fr; } }
.panel { background: var(--card); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--edge); }
.panel h3 { font-size: 21px; margin-bottom: 12px; }
.panel ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.words { width: 100%; border-collapse: collapse; font-size: 15px; }
.words td { padding: 7px 4px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.words td:first-child { width: 44px; } .words img { width: 34px; height: 34px; display: block; }
.words .w { font-family: var(--display); font-weight: 600; font-size: 18px; direction: ltr; text-align: end; }
.words .say { border: 0; background: var(--paper); border-radius: 10px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--sky-deep); }
.words .say svg { width: 18px; height: 18px; }

.game-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.game-pick button { border: 0; background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--edge); display: flex; align-items: center; gap: 16px; text-align: start; }
.game-pick button:hover { transform: translateY(-2px); }
.game-pick img { width: 72px; height: 72px; }
.game-pick b { font-family: var(--display); font-size: 22px; display: block; }
.game-pick span { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .game-pick { grid-template-columns: 1fr; } }

.sheets-view { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.sheet-frame { background: #fff; border-radius: 10px; box-shadow: 0 16px 40px -18px rgba(30,42,74,.4); overflow: hidden; aspect-ratio: 794/1123; position: relative; max-width: 100%; }
.sheet-frame .ws-page { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

/* games */
.gm { border-radius: 24px; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; background: linear-gradient(#7DD3FF, #C9EEFF 60%, #8ED65E 60%, #5CB93A); direction: ltr; font-family: var(--display); }
.gm-kitchen { background: linear-gradient(#CFF3E6, #CFF3E6 80%, #FF9C93 80%, #FF9C93 83%, #D99A5B 83%); }
.gm-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.gm-x { border: 0; background: #fff; width: 44px; height: 44px; border-radius: 14px; font-size: 18px; box-shadow: 0 4px 0 rgba(30,42,74,.15); }
.gm-title { white-space: nowrap; font-weight: 700; font-size: 24px; color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke; }
.gm-stars { margin-inline-start: auto; display: flex; gap: 2px; font-size: 24px; flex-wrap: wrap; justify-content: end; }
.gm-stars i { font-style: normal; color: rgba(255,255,255,.7); text-shadow: 0 2px 0 rgba(30,42,74,.2); }
.gm-stars i.on { color: var(--sun); animation: pop .4s; }
.gm-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 10px 16px 30px; }
.gm-btn { border: 0; background: var(--sun); box-shadow: 0 6px 0 var(--sun-deep); border-radius: 26px; padding: 18px 54px; font-weight: 700; font-size: 32px; color: var(--ink); }
.gm-ask { border: 0; background: #fff; border-radius: 999px; padding: 12px 24px 12px 16px; display: flex; gap: 12px; align-items: center; font-size: clamp(20px, 3vw, 30px); font-weight: 600; box-shadow: 0 5px 0 rgba(30,42,74,.15); }
.gm-ask svg { width: 32px; height: 32px; color: var(--sky-deep); }
.gm-cards { display: flex; gap: clamp(10px, 2.5vw, 28px); justify-content: center; flex-wrap: wrap; }
.gm-card { border: 0; background: #fff; border-radius: 32px; width: clamp(96px, 24vw, 220px); aspect-ratio: 1; display: grid; place-items: center; box-shadow: 0 8px 0 rgba(30,42,74,.16); transition: transform .2s, opacity .3s; }
.gm-card img { width: 76%; height: 76%; object-fit: contain; pointer-events: none; }
.gm-card:hover { transform: translateY(-4px); }
.gm-card.right { box-shadow: 0 0 0 8px var(--grass), 0 10px 0 8px rgba(30,42,74,.15); animation: hop .5s; }
.gm-card.fade { opacity: .3; }
.gm-card.wrong, .sp-tile.wrong { animation: shake .4s; }
.gm-end { text-align: center; display: grid; gap: 18px; justify-items: center; }
.gm-end h3 { font-size: 56px; color: var(--sun); -webkit-text-stroke: 10px var(--ink); paint-order: stroke; }
.gm-party { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 560px; }
.gm-party img { width: 64px; height: 64px; animation: hop 1s infinite alternate; }
.gm-party img:nth-child(2n) { animation-delay: .25s; }
.sp-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.sp-pic { border: 0; background: #fff; border-radius: 32px; width: 170px; height: 170px; display: grid; place-items: center; box-shadow: 0 8px 0 rgba(30,42,74,.16); }
.sp-pic img { width: 76%; }
.sp-hint { background: rgba(255,255,255,.85); border-radius: 14px; padding: 6px 12px; font-size: 15px; display: flex; gap: 6px; align-items: center; }
.sp-slots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sp-slots span { width: clamp(44px, 9vw, 72px); height: clamp(56px, 11vw, 88px); border-radius: 18px; background: rgba(255,255,255,.75); border: 3px dashed rgba(30,42,74,.25); display: grid; place-items: center; font-size: clamp(32px, 6vw, 54px); font-weight: 700; }
.sp-slots.hint span:not(.on)::before { content: attr(data-c); color: rgba(30,42,74,.18); }
.sp-slots span.on { background: #fff; border: 3px solid var(--ink); animation: pop .3s; }
.sp-slots span.on:first-child { color: var(--coral); }
.sp-slots.done span { border-color: var(--grass); box-shadow: 0 0 0 4px var(--grass); }
.sp-tiles { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sp-tile { border: 0; background: var(--sun); box-shadow: 0 6px 0 var(--sun-deep); width: clamp(52px, 10vw, 80px); aspect-ratio: 1; border-radius: 20px; font-size: clamp(30px, 5vw, 46px); font-weight: 700; color: var(--ink); }
.sp-tile:disabled { visibility: hidden; }
@media (max-width: 520px) { .gm-stars { font-size: 16px; } .gm-title { font-size: 20px; } }
@keyframes shake { 20%, 60% { transform: translateX(-10px) rotate(-3deg); } 40%, 80% { transform: translateX(10px) rotate(3deg); } }
@keyframes hop { 50% { transform: translateY(-14px) scale(1.06); } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } }

/* checkout */
.checkout { padding-block: 40px 80px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .checkout { grid-template-columns: 1fr; } }
.co-sum h1 { font-size: 34px; margin-bottom: 14px; }
.co-switch { display: grid; gap: 10px; }
.co-opt { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 20px; padding: 14px 18px; box-shadow: 0 4px 0 var(--line); cursor: pointer; }
.co-opt input { accent-color: var(--coral); width: 20px; height: 20px; }
.co-opt b { font-family: var(--display); font-size: 18px; }
.co-opt .p { margin-inline-start: auto; font-family: var(--display); font-weight: 700; font-size: 22px; }
.co-opt:has(input:checked) { box-shadow: 0 0 0 3px var(--sun), 0 5px 0 var(--sun-deep); }
form.co-form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; }
.field label { font-size: 14px; color: var(--ink-2); }
.field input, .field select { font: inherit; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--sky-deep); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.test-pay { background: #FFF6D6; border: 2px dashed var(--sun-deep); border-radius: 18px; padding: 12px 16px; font-size: 14px; color: var(--ink-2); }
.err { color: var(--coral); font-size: 14px; min-height: 1em; }
.done-box { text-align: center; display: grid; gap: 14px; justify-items: center; padding-block: 30px; }
.done-box img { width: 120px; }
.done-box h2 { font-size: 34px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* children, stars, locks */
.stars { display: inline-flex; gap: 1px; font-size: 15px; line-height: 1; }
.stars i { font-style: normal; color: #D5DCE8; }
.stars i.on { color: var(--sun-deep); }
.kid-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 8px 14px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; box-shadow: 0 4px 0 var(--line); }
.lock-box { text-align: center; display: grid; gap: 14px; justify-items: center; padding-block: 36px; margin-block: 24px 60px; }
.lock-box img { width: 96px; }
.lock-box .words-peek { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; filter: grayscale(.6) blur(1.5px); opacity: .7; }
.lock-box .words-peek img { width: 54px; }
.lock-box .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.kids-page { padding-block: 36px 80px; display: grid; gap: 18px; }
.kids-page .lead2 { margin: 0; color: var(--ink-2); max-width: 60ch; }
.kid-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.kid.cur { box-shadow: 0 0 0 3px var(--sun), 0 6px 0 var(--sun-deep); }
.kid-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kid-h h2 { font-size: 26px; margin: 0; }
.kid-n { color: var(--ink-2); margin-block: 4px 8px; }
.kid-ls { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.kid-ls li { display: flex; justify-content: space-between; gap: 8px; }
.kid-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.kid-acts .btn { padding: 9px 14px; font-size: 14px; }
.legal { padding-block: 36px 80px; max-width: 760px; }
.legal h2 { font-size: 20px; margin: 22px 0 4px; }
.legal p { margin: 0; color: var(--ink-2); }
.legal-nav { margin-top: 30px !important; }
.draft-flag { background: #FFF6D6; border: 2px dashed var(--sun-deep); border-radius: 18px; padding: 12px 16px; margin-bottom: 16px; }
footer.site a { color: inherit; }
.en-page .en-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 820px) { .en-page .en-hero { grid-template-columns: 1fr; } }
.en-steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: start; }
.en-lessons { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.en-lessons video { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 16/9; }
.en-words { color: var(--ink-2); margin: 10px 0; }
