/* =========================================================
   Home, book, unit and lesson-plan pages
   ========================================================= */

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--green-light); border-bottom: 1px solid #d3ecdc; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 460px; height: 460px; right: -140px; top: -170px; background: var(--yellow-light); }
.hero::after { width: 200px; height: 200px; left: -70px; bottom: -90px; background: var(--orange-light); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; padding-top: 48px; padding-bottom: 52px; }
.hero .badge { background: var(--white); }
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4rem); text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 8px; }
.hero__title::after {
  content: ""; display: block; width: 120px; height: 8px; margin-top: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--green) 0 50%, var(--yellow) 50% 75%, var(--orange) 75%);
}
.hero__tagline { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 900; color: var(--orange-dark); margin-bottom: 4px; line-height: 1.25; }
.hero__by { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 14px; }
.hero__by strong { color: var(--green-dark); }
.hero__sub { font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 800; color: var(--green-dark); margin-bottom: 6px; }
.hero__support { font-size: 1.08rem; color: var(--text-muted); max-width: 560px; }

.steps { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 10px; font-weight: 700; background: var(--white); border-radius: 999px; padding: 8px 16px 8px 8px; box-shadow: var(--shadow-sm); }
.steps__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--text); font-weight: 800; }
.steps li:nth-child(2) .steps__n { background: var(--orange); color: #fff; }
.steps li:nth-child(3) .steps__n { background: var(--green); color: #fff; }

/* portrait with hover animation + floating game tiles around it */
.hero__art { position: relative; min-height: 420px; display: grid; place-items: center; }
.portrait { position: relative; margin: 0; width: min(330px, 70vw); aspect-ratio: 1; display: grid; place-items: center; animation: float 6s ease-in-out infinite; cursor: default; }
.portrait__ring {
  position: absolute; inset: -12px; border-radius: 50%;
  background: conic-gradient(var(--green), var(--yellow), var(--orange), var(--green));
  animation: spin 10s linear infinite; box-shadow: 0 18px 40px rgba(19, 115, 63, .25);
}
.portrait__ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--white); }
.portrait__img {
  position: relative; z-index: 1; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: cover; border-radius: 50%;
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.portrait__name {
  position: absolute; z-index: 2; bottom: -6px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  background: var(--orange); color: #fff; font-weight: 900; padding: 6px 16px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 0 var(--orange-dark); transition: transform .35s var(--ease);
}
.portrait:hover .portrait__img { transform: scale(1.06) rotate(-2deg); }
.portrait:hover .portrait__ring { animation-duration: 2.5s; }
.portrait:hover .portrait__name { transform: translateX(-50%) rotate(2deg) scale(1.08); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.hero-tile {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
  font-size: 1.5rem; background: var(--white); border-radius: 16px; padding: 8px 14px;
  box-shadow: var(--shadow); border-left: 5px solid var(--green); animation: float 5s ease-in-out infinite;
  transition: transform .3s var(--ease);
}
.hero-tile span { font-size: .92rem; font-weight: 800; white-space: nowrap; }
.hero-tile:hover { transform: scale(1.08); }
.hero-tile--a { top: 4%; left: 0; }
.hero-tile--b { top: 12%; right: -2%; border-left-color: var(--yellow); animation-delay: -1.2s; }
.hero-tile--c { bottom: 16%; left: -4%; border-left-color: var(--orange); animation-delay: -2.4s; }
.hero-tile--d { bottom: 4%; right: 2%; animation-delay: -3.6s; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 36px; }
  .hero__art { min-height: 360px; order: -1; }
  .portrait { width: 240px; }
  .hero-tile { font-size: 1.1rem; padding: 6px 10px; }
  .hero-tile span { font-size: .78rem; }
}

/* ---------- levels (home) ---------- */
.levels { display: grid; gap: 28px; }
.level { border-radius: var(--radius-lg); padding: 22px; background: var(--green-light); border: 2px solid #c9ead6; }
.level--orange { background: var(--orange-light); border-color: #ffd9b3; }
.level--yellow { background: var(--yellow-light); border-color: #ffe79a; }
.level__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.level__num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.5rem; font-weight: 900; color: #fff; background: var(--green); box-shadow: 0 4px 0 var(--green-dark); flex: none; }
.level--orange .level__num { background: var(--orange); box-shadow: 0 4px 0 var(--orange-dark); }
.level--yellow .level__num { background: var(--yellow); color: var(--text); box-shadow: 0 4px 0 var(--yellow-dark); }
.level__title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }

.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.book-card {
  display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.book-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--green); }
.book-card.accent-orange::before { background: var(--orange); }
.book-card.accent-yellow::before { background: var(--yellow); }
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.book-card__cover { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--off-white); box-shadow: 0 10px 24px rgba(31, 42, 34, .18); transition: transform .3s var(--ease); }
.book-card:hover .book-card__cover { transform: rotate(-1.5deg) scale(1.02); }
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.book-card__title { font-size: 1.55rem; font-weight: 900; margin: 0 0 6px; }
.book-card__desc { color: var(--text-muted); font-size: .98rem; }
.book-card.is-soon .book-card__cover img { filter: grayscale(.5); opacity: .8; }
.soon-ribbon { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; background: rgba(31, 42, 34, .8); color: #fff; font-weight: 800; font-size: .85rem; padding: 4px; }
@media (max-width: 560px) {
  .book-card { grid-template-columns: 110px 1fr; gap: 14px; padding: 14px; }
  .book-card__title { font-size: 1.25rem; }
  .book-card .btn { padding: 10px 14px; font-size: .95rem; }
}

/* ---------- features ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.features li { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--off-white); border: 1px solid var(--line); border-radius: var(--radius); }
.features__icon { font-size: 1.6rem; }
.features li span:last-child { color: var(--text-muted); font-size: .95rem; }
.features li:nth-child(1) { border-left: 5px solid var(--green); }
.features li:nth-child(2) { border-left: 5px solid var(--yellow); }
.features li:nth-child(3) { border-left: 5px solid var(--orange); }
.features li:nth-child(4) { border-left: 5px solid var(--green); }

/* ---------- book page hero ---------- */
.book-hero { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; margin-top: 18px; padding: 26px; border-radius: var(--radius-lg); background: var(--green-light); position: relative; overflow: hidden; }
.book-hero.accent-orange { background: var(--orange-light); }
.book-hero.accent-yellow { background: var(--yellow-light); }
.book-hero::after { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.book-hero > * { position: relative; z-index: 1; }
.book-hero__cover { border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 14px 30px rgba(31, 42, 34, .2); background: var(--white); }
.book-hero__text h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 6px; }
.book-hero__stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.book-hero__stats span { background: var(--white); border-radius: 999px; padding: 6px 14px; font-weight: 600; box-shadow: var(--shadow-sm); }
.book-hero__stats strong { color: var(--green-dark); }
@media (max-width: 680px) { .book-hero { grid-template-columns: 1fr; text-align: center; padding: 20px; } .book-hero__cover { max-width: 180px; margin: 0 auto; } .book-hero__stats { justify-content: center; } }

/* ---------- unit cards: picture + 4 buttons ---------- */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.unit-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.unit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.unit-card__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--green-light); overflow: hidden; }
.unit-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.unit-card:hover .unit-card__img { transform: scale(1.06); }
.unit-card__thumb .img-placeholder { background: linear-gradient(135deg, var(--green-light), var(--yellow-light)); }
.unit-card__num { position: absolute; left: 12px; top: 12px; background: var(--yellow); color: var(--text); font-weight: 900; font-size: .95rem; padding: 4px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.unit-card__body { padding: 14px 16px 8px; border-top: 4px solid var(--green); flex: 1; }
.unit-card:nth-child(3n+2) .unit-card__body { border-top-color: var(--orange); }
.unit-card:nth-child(3n+3) .unit-card__body { border-top-color: var(--yellow); }
.unit-card__body h3 { margin-bottom: 4px; font-size: 1.22rem; }
.unit-card__meta { margin: 0; color: var(--text-muted); font-size: .92rem; font-weight: 700; }
.unit-card__grammar { margin: 4px 0 0; font-size: .86rem; line-height: 1.35; }
.unit-card__grammar span { font-weight: 800; color: var(--green-dark); }
.unit-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 14px 16px; }
.ubtn {
  display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 46px; padding: 8px 8px; border-radius: 12px; font-weight: 800; font-size: .9rem; line-height: 1.15;
  text-decoration: none; color: #fff; transition: transform .15s var(--ease), box-shadow .15s var(--ease), filter .15s;
}
.ubtn span { font-size: 1.1rem; }
.ubtn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.ubtn--orange { background: var(--orange); box-shadow: 0 4px 0 var(--orange-dark); }
.ubtn--green { background: var(--green); box-shadow: 0 4px 0 var(--green-dark); }
.ubtn--yellow { background: var(--yellow); color: var(--text); box-shadow: 0 4px 0 var(--yellow-dark); }
.ubtn--teal { background: #1C8C8C; box-shadow: 0 4px 0 #136666; }
.ubtn--off { background: var(--off-white); color: var(--text-muted); border: 2px dashed var(--line); box-shadow: none; cursor: default; flex-direction: column; gap: 0; }
.ubtn--off:hover { transform: none; filter: none; }
.ubtn--off small { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- unit page ---------- */
.unit-hero { display: flex; align-items: center; gap: 20px; margin-top: 18px; padding: 18px 22px; border-radius: var(--radius-lg); background: var(--green-light); position: relative; overflow: hidden; }
.unit-hero::after { content: ""; position: absolute; right: -50px; bottom: -80px; width: 200px; height: 200px; border-radius: 50%; background: var(--yellow-light); }
.unit-hero > * { position: relative; z-index: 1; }
.unit-hero__pic { width: 170px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; flex: none; box-shadow: var(--shadow); }
.unit-hero__img { width: 100%; height: 100%; object-fit: cover; }
.unit-hero h1 { margin: 6px 0 0; }
@media (max-width: 560px) { .unit-hero { flex-direction: column; align-items: flex-start; } .unit-hero__pic { width: 100%; } }

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 6px; }
.tab { text-align: center; text-decoration: none; font-weight: 800; font-size: 1.05rem; padding: 12px 10px; border-radius: var(--radius); border: 3px solid var(--line); color: var(--text); background: var(--white); transition: border-color .15s, background-color .15s; }
.tab:hover { border-color: var(--orange); }
.tab.is-active { color: #fff; }
.tab--orange.is-active { background: var(--orange); border-color: var(--orange); box-shadow: 0 4px 0 var(--orange-dark); }
.tab--green.is-active { background: var(--green); border-color: var(--green); box-shadow: 0 4px 0 var(--green-dark); }
.tab--yellow.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--text); box-shadow: 0 4px 0 var(--yellow-dark); }
.tab--teal.is-active { background: #1C8C8C; border-color: #1C8C8C; box-shadow: 0 4px 0 #136666; }
@media (max-width: 700px) { .tabs { grid-template-columns: 1fr 1fr; } .tab { font-size: .95rem; } }

.section__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section__row .section__title { margin-bottom: 18px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.game-card {
  display: flex; flex-direction: column; padding: 22px; background: var(--white); text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border-top: 8px solid var(--green);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
a.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
a.game-card:hover .btn { background: var(--orange-dark); }
.game-card.accent-yellow { border-top-color: var(--yellow); }
.game-card.accent-orange { border-top-color: var(--orange); }
.game-card__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; font-size: 2rem; background: var(--green-light); margin-bottom: 12px; }
.accent-yellow .game-card__icon { background: var(--yellow-light); }
.accent-orange .game-card__icon { background: var(--orange-light); }
.game-card__num { margin: 0; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.game-card__title { font-size: 1.3rem; margin: 2px 0 6px; }
.game-card__desc { color: var(--text-muted); flex: 1; }
.game-card.is-disabled { opacity: .55; }
.game-card__na { margin: 0; font-weight: 700; color: var(--orange-dark); }
.hint-line { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius); background: var(--off-white); border: 1px solid var(--line); }

.lesson-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.lesson-card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; text-decoration: none; color: var(--text);
  background: var(--white); border: 1px solid var(--line); border-left: 8px solid var(--green); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.lesson-card:nth-child(2) { border-left-color: var(--orange); }
.lesson-card:nth-child(3) { border-left-color: var(--yellow); }
.lesson-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lesson-card__num { font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-dark); }
.lesson-card h3 { font-size: 1.3rem; margin: 0; }
.lesson-card p { margin: 0; color: var(--text-muted); }
.lesson-card__ex { font-style: italic; color: var(--green-dark) !important; }
.lesson-card .btn { align-self: flex-start; margin-top: 8px; }

.word-list { background: var(--off-white); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; }
.word-list summary { cursor: pointer; font-weight: 800; padding: 12px 0; color: var(--green-dark); }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; padding-bottom: 18px; }
.topic-card { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: var(--radius); padding: 16px 18px; }
.topic-card:nth-child(2) { border-left-color: var(--orange); }
.topic-card h3 { color: var(--green-dark); }
.topic-card p { margin-bottom: 8px; }
.topic-card ul { margin: 0; padding-left: 20px; color: var(--text-muted); font-style: italic; }

/* ---------- lesson plans (locked) ---------- */
.lock { max-width: 520px; margin: 40px auto; padding: 36px 30px; text-align: center; border-top: 8px solid var(--orange); }
.lock__icon { font-size: 3.4rem; }
.lock__form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.lock__input { font: inherit; font-size: 1.15rem; padding: 12px 16px; border-radius: 999px; border: 3px solid var(--line); min-width: 220px; }
.lock__input:focus { outline: none; border-color: var(--green); }
.lock__error { color: var(--orange-dark); font-weight: 800; margin: 14px 0 0; }
.lp-hero { display: flex; gap: 24px; align-items: center; margin-top: 18px; padding: 24px 26px; border-radius: var(--radius-lg); background: var(--green-light); position: relative; }
.lp-hero__icon { font-size: 3.4rem; flex: none; display: grid; place-items: center; width: 100px; height: 100px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.lp-hero h1 { margin-bottom: 2px; }
.lp-hero .lead { margin: 0; }
.lp-lock { margin-left: auto; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 22px; }
.plan-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); }
.plan-card__cover { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.plan-card__img { width: 100%; height: 100%; object-fit: cover; }
a.plan-card:hover .plan-card__cover { transform: translateY(-5px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.plan-card__label { position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: center; background: var(--orange); color: #fff; font-weight: 900; padding: 8px; border-radius: 12px; box-shadow: 0 4px 0 var(--orange-dark); }
.plan-card__label--soon { background: rgba(31, 42, 34, .78); box-shadow: none; font-size: .85rem; }
.plan-card.is-soon .plan-card__img { filter: grayscale(.6); opacity: .75; }
.plan-card__title { font-weight: 900; font-size: 1.1rem; margin-top: 8px; }
.plan-card__sub { color: var(--text-muted); font-size: .9rem; font-weight: 600; }
/* unit buttons: icon above the label, labels never split */
.unit-card__actions { gap: 10px; }
.ubtn { flex-direction: column; gap: 2px; min-height: 64px; padding: 8px 6px; font-size: .88rem; word-break: keep-all; }
.ubtn span { font-size: 1.35rem; line-height: 1; }

/* =========================================================
   v6 — level pages, unit tiles, lesson pop-up, worksheets, premium
   ========================================================= */
.level__head { flex-wrap: wrap; }
.level__all { margin-left: auto; }
.level-hero { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 22px 26px; border-radius: var(--radius-lg);
  background: var(--green-light); border: 2px solid #c9ead6; }
.level-hero.level--orange { background: var(--orange-light); border-color: #ffd9b3; }
.level-hero.level--yellow { background: var(--yellow-light); border-color: #ffe79a; }
.level-hero h1 { margin: 0; text-transform: uppercase; }
.level-hero .lead { margin: 4px 0 0; }
.lbook { margin-top: 30px; }
.lbook__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.lbook__head h2 { margin: 2px 0; }
.lbook__head p { margin: 0; }
.lbook__head .badge { margin-bottom: 0; }
.lbook__cover { width: 66px; height: 88px; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); flex: none; }

.utile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.utile { font: inherit; text-align: left; cursor: pointer; padding: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.utile:hover, .utile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.utile__pic { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--green-light); overflow: hidden; }
.utile__img, .utile__pic .img-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.utile__ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3.4rem;
  background: repeating-linear-gradient(45deg, var(--yellow-light) 0 14px, #fff9e3 14px 28px); }
.utile__num { position: absolute; left: 10px; top: 10px; display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px;
  border-radius: 12px; background: var(--yellow); font-weight: 900; font-size: 1.25rem; box-shadow: 0 3px 0 var(--yellow-dark); }
.utile__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.utile__k { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.utile__body strong { font-size: 1.12rem; line-height: 1.25; }
.utile__meta { font-size: .9rem; font-weight: 700; color: var(--green-dark); margin-top: 4px; }

.unit-card.is-clickable { cursor: pointer; }
.unit-card__actions--one { padding: 0 16px 16px; display: block; }

/* lesson pop-up */
body.has-modal { overflow: hidden; }
.umodal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(31, 42, 34, .55); animation: fadein .2s ease both; }
@keyframes fadein { from { opacity: 0; } }
.umodal__card { position: relative; width: min(760px, 100%); max-height: 100%; overflow: auto; background: var(--white);
  border-radius: var(--radius-lg); border-top: 8px solid var(--green); box-shadow: var(--shadow-lg); padding: 22px 24px 24px; animation: rise .25s var(--ease) both; }
.umodal__close { position: absolute; right: 14px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line);
  background: var(--white); font: inherit; font-size: 1.1rem; font-weight: 900; cursor: pointer; }
.umodal__close:hover { border-color: var(--orange); color: var(--orange-dark); }
.umodal__head { display: flex; align-items: center; gap: 16px; margin: 0 40px 16px 0; }
.umodal__head h2 { margin: 4px 0 2px; }
.umodal__head p { margin: 0; }
.umodal__head .badge { margin-bottom: 0; }
.umodal__img { width: 120px; height: 80px; object-fit: cover; border-radius: 12px; flex: none; }
.umodal__emoji { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 16px; font-size: 2.6rem; background: var(--yellow-light); flex: none; }
.umodal__list { display: grid; gap: 10px; }
.ulesson { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  border: 2px solid var(--line); background: var(--off-white); animation: rise .3s var(--ease) backwards; animation-delay: calc(var(--i) * 40ms);
  transition: transform .15s var(--ease), border-color .15s, background-color .15s; }
.ulesson:hover, .ulesson:focus-visible { transform: translateX(4px); border-color: var(--green); background: var(--green-light); }
.ulesson__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 1.5rem; background: var(--white); flex: none; box-shadow: var(--shadow-sm); }
.ulesson--orange .ulesson__icon { background: var(--orange-light); }
.ulesson--green .ulesson__icon { background: var(--green-light); }
.ulesson--yellow .ulesson__icon { background: var(--yellow-light); }
.ulesson__text { flex: 1 1 auto; line-height: 1.3; }
.ulesson__text strong { font-size: 1.05rem; }
.ulesson__text span { color: var(--text-muted); font-weight: 700; font-size: .95rem; }
.ulesson__go { font-size: 1.4rem; font-weight: 900; color: var(--orange); }
.umodal__note { margin: 14px 0 0; font-size: .92rem; color: var(--text-muted); }
@media (max-width: 560px) { .umodal__head { flex-direction: column; align-items: flex-start; } .umodal__card { padding: 18px; } }

/* worksheets page */
.ws-hero { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 22px 26px; border-radius: var(--radius-lg); background: var(--yellow-light); border: 2px solid #ffe79a; }
.ws-hero__icon { font-size: 3rem; }
.ws-hero h1 { margin: 0; }
.ws-hero .lead { margin: 4px 0 0; }
.ws-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 6px; }
.ws-level { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: var(--green-light); border: 2px solid transparent; font-size: 1.15rem; }
.ws-level.level--orange { background: var(--orange-light); }
.ws-level.level--yellow { background: var(--yellow-light); }
.ws-level .level__num { width: 42px; height: 42px; font-size: 1.2rem; }
.ws-level:hover, .ws-level.is-active { border-color: var(--green); }
.ws-table { display: grid; gap: 8px; }
.ws-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.ws-row__unit { flex: 1 1 240px; }
.ws-row__links { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-link { font-size: .9rem; font-weight: 800; text-decoration: none; padding: 6px 12px; border-radius: 999px; color: var(--text); background: var(--off-white); border: 2px solid var(--line); }
.ws-link:hover { border-color: var(--green); background: var(--green-light); }
.ws-link.is-off { opacity: .45; }
@media (max-width: 680px) { .ws-levels { grid-template-columns: 1fr; } }

/* premium page */
.premium-hero { margin-top: 16px; padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--yellow-light), var(--orange-light)); border: 2px solid #ffe0a3; }
.premium-hero h1 { margin: 6px 0; }
.premium-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.premium-card { padding: 22px; border-radius: var(--radius-lg); background: var(--orange-light); }
.premium-card--free { background: var(--green-light); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.premium-soon { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border: 2px dashed var(--orange); border-radius: var(--radius-lg); }
.premium-soon > span { font-size: 2.6rem; }
.premium-soon h2 { margin: 0 0 4px; }
.premium-soon p { margin: 0; }
.premium-soon > div { flex: 1 1 300px; }
@media (max-width: 760px) { .premium-grid { grid-template-columns: 1fr; } }
