@font-face {
  font-family: Manrope;
  src: url("fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font: 400 1rem/1.5 Manrope, system-ui, sans-serif;
  color: #142044;
  background: #f3f6fc;
  --blue: #224ed8;
  --ink: #142044;
  --muted: #4e5d7a;
  --line: #dce4f4;
  --pale: #eef3ff;
}
* {box-sizing: border-box}
[hidden] {display: none !important}
body {margin: 0}
button {font: inherit}
a {color: var(--blue)}
:focus-visible {outline: 3px solid var(--blue); outline-offset: 4px}
.preview {max-width: 980px; margin: auto; padding: 0 24px 40px}
.preview-header {display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0 24px}
.preview-header h1 {font-size: 1.1rem; margin: 0; font-weight: 800}
.preview-header h1 span {display: block; color: var(--muted); font-size: .86rem; font-weight: 600}
.preview-header a {font-size: .85rem; font-weight: 750; text-underline-offset: 4px}
.screens {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px}
.device {display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 26px; min-height: 660px; scroll-margin-top: 16px}
.top {display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 24px; min-height: 74px; border-bottom: 1px solid #eef1f7}
.top strong {font-weight: 800; letter-spacing: -.025em; font-size: 1.2rem}
.top strong span {color: var(--blue); margin-left: 3px}
.level {background: var(--pale); color: var(--blue); border-radius: 8px; padding: 4px 9px; font-size: .77rem; font-weight: 800}
.content {padding: 26px 24px 22px}
.eyebrow {font-size: .78rem; font-weight: 800; color: var(--blue); margin: 0 0 8px}
h2 {font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.16; margin: 0}
.illustration {position: relative; isolation: isolate; display: grid; place-items: center; height: 215px; overflow: hidden; background: #edf3ff; border-radius: 18px; margin-top: 22px}
.sun {position: absolute; z-index: -1; width: 145px; height: 145px; border-radius: 50%; background: #fbd975; inset: 50% auto auto 50%; transform: translate(-43%,-50%)}
.speech {position: absolute; font-size: clamp(1.5rem, 5vw, 2.7rem); font-weight: 800; line-height: 1.08; padding: 14px 22px; letter-spacing: -.05em}
.hello {transform: translate(-28%,-35%) rotate(-9deg); color: white; background: var(--blue); border-radius: 28px 28px 28px 8px}
.hi {transform: translate(75%,58%) rotate(10deg); background: white; color: var(--blue); border-radius: 22px 22px 7px 22px}
.lesson-info {display: flex; align-items: center; gap: 12px; margin-top: 21px}
.lesson-info p,.audio-status {margin: 2px 0 0; color: var(--muted); font-size: .84rem}
.task {display: flex; flex: 1; flex-direction: column}
.actions {margin-top: auto; padding: 16px 24px 22px; border-top: 1px solid #eef1f7}
.primary {display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; padding: 9px 14px; border: 0; border-radius: 13px; background: var(--blue); color: white; text-decoration: none; text-align: center; font-weight: 800; cursor: pointer}
.primary:disabled {background: #edf0f7; color: #52617c; cursor: default}
.back {display: grid; place-items: center; min-width: 44px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 1.35rem}
.progress {flex: 1; height: 7px; background: #e7edfc; border-radius: 999px}
.progress span {display: block; width: 50%; height: 100%; background: var(--blue); border-radius: inherit}
.step {font-size: .85rem; color: var(--muted); font-weight: 800; white-space: nowrap}
.instruction {margin: 10px 0 18px; color: var(--muted)}
.player {display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--pale)}
.player strong {font-size: .93rem}
.play {min-width: 48px; min-height: 48px; border: 0; border-radius: 12px; background: var(--blue); color: white; cursor: pointer}
.wave {display: flex; gap: 3px; align-items: center; margin-left: auto; color: var(--blue)}
.wave i {width: 3px; height: 10px; background: currentColor; border-radius: 3px; opacity: .6}
.wave i:nth-child(2n) {height: 16px}
.wave i:nth-child(4) {height: 24px}
fieldset {display: grid; gap: 8px; border: 0; padding: 0; margin: 22px 0 0; min-inline-size: 0}
legend {font-size: .83rem; font-weight: 800; margin-bottom: 7px; padding: 0}
label {display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700}
label:has(input:checked) {background: var(--pale); border-color: var(--blue); color: var(--blue)}
input {accent-color: var(--blue); margin: 0; flex: none}
.feedback {margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; background: #e8f7ef; color: #176342; font-size: .9rem; font-weight: 750}
.feedback[data-correct="false"] {background: #fff0e8; color: #8c3424}
.stacked {display: grid; gap: 4px}
.secondary {display: grid; place-items: center; min-height: 44px; font-size: .9rem; font-weight: 800; text-decoration: none}
.module {border-bottom: 1px solid var(--line)}
.module summary {display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 8px 3px; cursor: pointer; list-style: none}
.module summary::-webkit-details-marker {display: none}
.module summary::after {content: ""; flex: 0 0 8px; height: 8px; border-bottom: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg); margin-inline-end: 5px}
.module[open] > summary {color: var(--blue)}
.module[open] > summary::after {transform: rotate(225deg)}
.module summary small {display: block; margin-top: 2px; color: var(--muted); font-size: .8rem}
.module-lessons {padding-inline-start: 28px; margin: 0}
.module-lessons li {padding: 7px 0; font-size: .9rem}
.materials {display: block; align-content: center; min-height: 44px; margin-inline: 3px; font-size: .86rem; font-weight: 750; text-underline-offset: 3px}
.route {position: relative; display: grid; gap: 8px; list-style: none; margin: 21px 0 0; padding: 0}
.route::before {content: ""; position: absolute; width: 2px; inset: 25px auto 26px 28px; background: var(--line)}
.route li {position: relative; min-height: 60px; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 13px; padding: 10px 11px; border-radius: 13px}
.route .current {background: var(--pale)}
.node {display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; background: #f0f3f9; color: var(--muted)}
.current .node {background: var(--blue); color: #fff}
.route p,.result-banner p,.result-summary p {margin: 4px 0 0; color: var(--muted); font-size: .88rem}
.result-banner {display: flex; align-items: center; gap: 15px; padding: 15px; margin-top: 21px; border-radius: 15px; background: var(--pale)}
.result-icon {display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 50%; background: var(--blue); color: white; font-size: 1.4rem; font-weight: 800}
.result-banner[data-correct=false] .result-icon {background: #fbd975; color: var(--ink)}
.result-summary {margin-top: 23px}
.result-words {display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0}
.result-words span {padding: 5px 10px; border-radius: 9px; background: var(--pale); color: var(--blue); font-weight: 800}
@media (max-width: 700px) {
  .screens {grid-template-columns: 1fr; max-width: 450px; margin-inline: auto}
  .preview {padding-inline: 12px}
  .top,.content,.actions {padding-inline: 16px}
  .device {min-height: 0}
  .illustration {height: 175px}
}
