*{
  box-sizing:border-box;
}
body{
  margin:0;
  font-family:Arial,sans-serif;
  background:
    linear-gradient(180deg,rgba(47,111,237,.1) 0,rgba(47,111,237,0) 250px),
    #f4f6f8;
  color:#1f2937;
}
.landingBody{
  min-height:100vh;
  background:
    linear-gradient(180deg,#edf4f8 0,#f7faf8 52%,#f4efe7 100%);
}
.landingPage{
  width:min(1060px,100%);
  min-height:100vh;
  margin:0 auto;
  padding:24px;
  display:flex;
  align-items:stretch;
}
.landingHero{
  width:100%;
  min-height:calc(100vh - 48px);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,360px);
  gap:34px;
  align-items:center;
  padding:36px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:10px;
  background:rgba(255,255,255,.72);
  box-shadow:0 24px 70px rgba(31,41,55,.14);
  backdrop-filter:blur(18px);
}
.landingEyebrow{
  display:inline-flex;
  margin-bottom:10px;
  color:#1d4ed8;
  font-size:13px;
  font-weight:bold;
  text-transform:uppercase;
}
.landingText h1{
  margin:0 0 28px;
  max-width:680px;
  font-size:48px;
  line-height:1.06;
  color:#172033;
  letter-spacing:0;
}
.landingText p{
  margin:0;
  max-width:700px;
  color:#334155;
  font-size:18px;
  line-height:1.62;
}
.landingActions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}
.landingBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:12px 18px;
  border-radius:8px;
  border:1px solid #275f73;
  background:#ffffff;
  color:#275f73;
  text-decoration:none;
  font-weight:bold;
  box-shadow:0 8px 20px rgba(39,95,115,.1);
}
.landingBtn.primary{
  border-color:#275f73;
  background:#275f73;
  color:#fff;
}
.landingStageList{
  display:grid;
  gap:12px;
  max-width:680px;
}
.landingStage{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:16px;
  align-items:center;
  padding:12px;
  border:1px solid rgba(203,213,225,.72);
  border-radius:9px;
  background:rgba(255,255,255,.66);
}
.landingStage .landingBtn{
  width:100%;
}
.landingStage p{
  margin:0;
  color:#344052;
  font-size:16px;
  line-height:1.45;
}
.landingSteps{
  display:grid;
  gap:8px;
  margin-top:24px;
  max-width:760px;
}
.landingSteps p{
  margin:0;
  padding:0;
  color:#475569;
  font-size:15px;
  line-height:1.5;
}
.landingSteps b{
  color:#111827;
}
.landingVisual{
  margin:0;
  align-self:center;
}
.mobileLandingVisual{
  display:none;
}
.landingVisual img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4 / 3;
  object-fit:cover;
  border:8px solid rgba(255,255,255,.72);
  border-radius:14px;
  box-shadow:0 18px 48px rgba(31,41,55,.18);
}
.landingVisual figcaption{
  margin-top:12px;
  color:#52606d;
  font-size:13px;
  line-height:1.4;
  text-align:center;
}
.page{
  max-width:1120px;
  margin:0 auto;
  padding:24px 24px 54px;
}
.topbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,340px);
  align-items:center;
  gap:24px;
  margin-bottom:22px;
}
.heroText{
  min-width:0;
}
h1{
  margin:0 0 8px;
  font-size:30px;
  line-height:1.2;
}
.intro{
  margin:0;
  max-width:760px;
  color:#4b5563;
  line-height:1.55;
}
.hiddenTextLink{
  color:inherit;
  text-decoration:none;
  cursor:pointer;
}
.hiddenTextLink:hover,
.hiddenTextLink:focus{
  color:inherit;
  text-decoration:none;
  outline:none;
}
.heroActions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.startLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 14px;
  border-radius:7px;
  background:#2f6fed;
  color:#fff;
  text-decoration:none;
  font-weight:bold;
  white-space:nowrap;
}
.secondaryLink{
  background:#fff;
  color:#2f6fed;
  border:1px solid #2f6fed;
}
.heroVisual{
  justify-self:end;
  width:100%;
  max-width:340px;
  margin:0;
}
.heroVisual img{
  display:block;
  width:100%;
  aspect-ratio:4 / 3;
  height:auto;
  border:1px solid #d9e5f6;
  border-radius:8px;
  box-shadow:0 12px 30px rgba(15,23,42,.12);
}
.heroVisual figcaption{
  margin-top:8px;
  color:#64748b;
  font-size:13px;
  line-height:1.4;
  text-align:center;
}
.appPanel{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(260px,.92fr);
  gap:14px;
  margin:20px 0 26px;
}
.continueCard{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:156px;
  padding:20px;
  border:1px solid #cfe0fb;
  border-radius:8px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.08);
}
.panelEyebrow{
  display:inline-flex;
  margin-bottom:8px;
  color:#2f6fed;
  font-size:12px;
  font-weight:bold;
  text-transform:uppercase;
}
.continueCard h2{
  margin:0 0 8px;
  font-size:25px;
  line-height:1.2;
}
.continueCard p{
  margin:0;
  max-width:520px;
  color:#4b5563;
  line-height:1.5;
}
.panelBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:44px;
  padding:10px 15px;
  border-radius:8px;
  border:1px solid #2f6fed;
  background:#2f6fed;
  color:#fff;
  text-decoration:none;
  font-weight:bold;
  white-space:nowrap;
}
.quickStats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.quickStat{
  min-height:74px;
  padding:12px;
  border:1px solid #d9e5f6;
  border-radius:8px;
  background:#fff;
}
.quickStat small{
  display:block;
  margin-bottom:5px;
  color:#64748b;
  font-size:12px;
  font-weight:bold;
}
.quickStat strong{
  color:#12315f;
  font-size:20px;
  line-height:1.2;
}
.quickNav{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  grid-column:1 / -1;
}
.quickCard{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:86px;
  padding:14px;
  border:1px solid #d9e5f6;
  border-radius:8px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.quickCard:hover,
.quickCard:focus{
  transform:translateY(-2px);
  border-color:#2f6fed;
  box-shadow:0 10px 24px rgba(15,23,42,.1);
  outline:none;
}
.quickCard span{
  color:#111827;
  font-size:17px;
  font-weight:bold;
}
.quickCard small{
  margin-top:5px;
  color:#64748b;
  line-height:1.35;
}
.compactTopbar{
  align-items:stretch;
}
.studyStatus{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  align-self:stretch;
}
.studyStatus div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:58px;
  padding:12px 14px;
  border:1px solid #d9e5f6;
  border-radius:8px;
  background:#fff;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
}
.studyStatus small{
  color:#64748b;
  font-weight:bold;
}
.studyStatus strong{
  color:#12315f;
  font-size:19px;
}
.appBody{
  min-height:100vh;
  background:#eef2f4;
  color:#172033;
}
.appHeader{
  position:sticky;
  top:0;
  z-index:20;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  width:min(1040px,100%);
  min-height:64px;
  margin:0 auto;
  padding:10px 18px;
  background:#275f73;
  color:#fff;
  box-shadow:0 12px 30px rgba(39,95,115,.24);
}
.stageTwoBody .appHeader{
  background:#061013;
  box-shadow:0 12px 30px rgba(6,16,19,.24);
}
.appHeaderStage{
  grid-column:2;
  grid-row:1;
  justify-self:center;
  color:#fff;
  font-size:24px;
  font-weight:bold;
  line-height:1.2;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.appHeaderControls{
  grid-column:1 / -1;
  grid-row:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
}
.appHeaderLeft{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
}
.appBackBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:50%;
  background:rgba(255,255,255,.14);
  color:#fff;
  text-decoration:none;
  font-size:0;
  font-weight:bold;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 8px 18px rgba(0,0,0,.16);
}
.appBackBtn::before{
  content:"↩";
  font-size:28px;
  line-height:1;
  transform:translateX(-1px);
}
.appBackBtn:hover,
.appBackBtn:focus{
  background:rgba(255,255,255,.22);
  outline:none;
}
.appLevelMenu{
  position:relative;
}
.appLevelMenu summary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.26);
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:17px;
  font-weight:bold;
  cursor:pointer;
  list-style:none;
}
.appLevelMenu summary::-webkit-details-marker{
  display:none;
}
.appLevelPanel{
  position:absolute;
  top:50px;
  left:0;
  z-index:40;
  display:grid;
  gap:8px;
  min-width:170px;
  padding:12px;
  border:1px solid rgba(203,213,225,.8);
  border-radius:10px;
  background:rgba(255,255,255,.96);
  box-shadow:0 18px 44px rgba(15,23,42,.22);
}
.appLevelPanel strong{
  color:#172033;
  font-size:15px;
}
.appLevelPanel a{
  display:flex;
  align-items:center;
  min-height:36px;
  padding:8px 10px;
  border-radius:8px;
  background:#e8f2f5;
  color:#275f73;
  text-decoration:none;
  font-weight:bold;
}
.appHeaderStats{
  display:flex;
  align-items:center;
  gap:8px;
}
.appHeaderStats span{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#fff;
  font-size:20px;
  font-weight:bold;
  white-space:nowrap;
}
.appHeaderStats b{
  margin-left:5px;
  color:#fff;
  font-size:20px;
  font-weight:normal;
}
.appMain{
  width:min(1040px,100%);
  margin:0 auto;
  padding:22px 16px 70px;
}
.appIntro{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:20px;
  border:1px solid rgba(203,213,225,.72);
  border-radius:12px;
  background:rgba(255,255,255,.82);
  box-shadow:0 14px 36px rgba(31,41,55,.08);
}
.appKicker{
  display:inline-flex;
  margin-bottom:8px;
  color:#275f73;
  font-size:12px;
  font-weight:bold;
  text-transform:uppercase;
}
.appIntro h1{
  margin:0 0 8px;
  font-size:30px;
  line-height:1.15;
  color:#172033;
}
.appIntro p{
  margin:0;
  max-width:720px;
  color:#475569;
  line-height:1.55;
}
.appIntroActions{
  display:flex;
  flex-direction:column;
  gap:9px;
  flex:0 0 auto;
}
.appSecondaryBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:42px;
  padding:10px 14px;
  border:1px solid #275f73;
  border-radius:9px;
  background:#fff;
  color:#275f73;
  text-decoration:none;
  font-weight:bold;
  white-space:nowrap;
}
.appPrimaryBtn{
  border-color:#275f73;
  background:#275f73;
  color:#fff;
}
.appSection{
  margin-top:22px;
}
.appSectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}
.appSectionHead h2{
  margin:0;
  color:#172033;
  font-size:22px;
}
.appSectionHead p{
  margin:0;
  color:#64748b;
  font-size:14px;
  text-align:right;
}
.appModuleGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.appModuleCard{
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:14px;
  align-items:center;
  min-height:112px;
  padding:16px;
  border:1px solid rgba(203,213,225,.86);
  border-radius:12px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(31,41,55,.06);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.appModuleCard:hover,
.appModuleCard:focus{
  transform:translateY(-2px);
  border-color:#275f73;
  box-shadow:0 16px 34px rgba(31,41,55,.12);
  outline:none;
}
.appModuleNo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:54px;
  border-radius:12px;
  background:#e8f2f5;
  color:#275f73;
  font-size:19px;
  font-weight:bold;
}
.appModuleCard strong{
  display:block;
  margin-bottom:5px;
  color:#172033;
  font-size:18px;
  line-height:1.25;
}
.appModuleCard small{
  display:block;
  color:#52606d;
  font-size:14px;
  line-height:1.42;
}
.quizModule .appModuleNo{
  background:#fff2dd;
  color:#9a5b11;
}
.appLockedCard{
  background:#f8fafc;
}
.appLockedCard .appModuleNo{
  background:#edf0f2;
  color:#6b7280;
  font-size:18px;
}
.lockIcon{
  position:relative;
  display:inline-block;
  width:22px;
  height:18px;
  border-radius:4px;
  background:#6b7280;
}
.lockIcon::before{
  content:"";
  position:absolute;
  left:4px;
  top:-12px;
  width:14px;
  height:14px;
  border:3px solid #6b7280;
  border-bottom:0;
  border-radius:12px 12px 0 0;
}
.lockIcon::after{
  content:"";
  position:absolute;
  left:9px;
  top:6px;
  width:4px;
  height:7px;
  border-radius:2px;
  background:#edf0f2;
}
.section{
  margin-top:22px;
}
.sectionHead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
h2{
  margin:0;
  font-size:21px;
}
.sectionNote{
  margin:0;
  color:#64748b;
  font-size:14px;
}
.storyGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.storyCard{
  display:grid;
  grid-template-columns:76px 1fr;
  gap:14px;
  min-height:150px;
  padding:14px;
  background:#fff;
  border:1px solid #d9e5f6;
  border-radius:8px;
  text-decoration:none;
  color:inherit;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.storyCard:hover,
.storyCard:focus{
  transform:translateY(-2px);
  border-color:#2f6fed;
  box-shadow:0 10px 24px rgba(15,23,42,.1);
  outline:none;
}
.storyCard.lockedCard{
  border-color:#e5e7eb;
  background:#fbfbfc;
}
.storyCard.lockedCard .levelBox{
  background:#f3f4f6;
  border-color:#e5e7eb;
}
.storyCard.lockedCard .levelNo{
  color:#6b7280;
}
.storyCard.lockedCard .status{
  background:#f8fafc;
  color:#475569;
  border-color:#cbd5e1;
}
.levelBox{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:100%;
  border-radius:7px;
  background:#eef5ff;
  border:1px solid #cfe0fb;
}
.levelLabel{
  color:#64748b;
  font-size:12px;
  font-weight:bold;
  text-transform:uppercase;
}
.levelNo{
  margin-top:2px;
  color:#2f6fed;
  font-size:32px;
  font-weight:bold;
  line-height:1;
}
.storyBody{
  min-width:0;
}
.storyTitle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.storyName{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.storyTitle strong{
  font-size:17px;
}
.storyEnglish{
  color:#64748b;
  font-size:12px;
  line-height:1.25;
}
.status{
  flex:0 0 auto;
  padding:4px 7px;
  border-radius:999px;
  background:#f0fdf4;
  color:#166534;
  border:1px solid #bbf7d0;
  font-size:12px;
  font-weight:bold;
}
.status.early{
  background:#fff7ed;
  color:#9a3412;
  border-color:#fed7aa;
}
.tenses{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:9px;
}
.tense{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:4px 7px;
  border-radius:6px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#334155;
  font-size:12px;
  line-height:1.25;
}
.meaning{
  margin:0;
  color:#111827;
  font-size:14px;
  line-height:1.45;
}
.hint{
  display:flex;
  gap:8px;
  align-items:flex-start;
  margin:18px 0 0;
  padding:12px 14px;
  background:#fff7d6;
  border-left:5px solid #e0a800;
  border-radius:8px;
  line-height:1.5;
}
.hint b{
  white-space:nowrap;
}
.appBottomActions{
  display:flex;
  justify-content:flex-end;
  margin-top:18px;
}
.appBottomActions .appSecondaryBtn{
  min-width:210px;
}

@media (max-width: 820px){
  .landingPage{
    padding:14px;
  }
  .landingHero{
    min-height:calc(100vh - 28px);
    grid-template-columns:1fr;
    gap:22px;
    padding:24px;
  }
  .landingText h1{
    font-size:36px;
    margin-bottom:14px;
  }
  .landingText p{
    font-size:16px;
  }
  .desktopLandingVisual{
    display:none;
  }
  .mobileLandingVisual{
    display:block;
    max-width:390px;
    margin:0 auto 20px;
  }
  .page{
    padding:16px 16px 44px;
  }
  .topbar{
    grid-template-columns:1fr;
    gap:14px;
  }
  .heroVisual{
    justify-self:center;
    max-width:360px;
    margin-top:2px;
  }
  .startLink{
    flex:1 1 190px;
  }
  .appPanel{
    grid-template-columns:1fr;
  }
  .continueCard{
    align-items:flex-start;
    flex-direction:column;
  }
  .panelBtn{
    width:100%;
  }
  .storyGrid{
    grid-template-columns:1fr;
  }
  .appHeader{
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-rows:auto;
    gap:10px;
    min-height:58px;
    padding:7px 10px;
  }
  .appHeaderStage{
    grid-column:2;
    grid-row:1;
    justify-self:center;
    font-size:20px;
  }
  .appHeaderControls{
    grid-column:1 / -1;
    grid-row:1;
    gap:8px;
  }
  .appHeaderStats{
    justify-content:flex-end;
    gap:10px;
  }
  .appHeaderStats span{
    flex:0 0 auto;
    min-height:auto;
    padding:0;
    font-size:16px;
  }
  .appHeaderStats b{
    font-size:16px;
  }
  .appIntro{
    align-items:flex-start;
    flex-direction:column;
  }
  .appIntroActions{
    width:100%;
  }
  .appSecondaryBtn{
    width:100%;
  }
  .appBottomActions{
    justify-content:stretch;
  }
  .appBottomActions .appSecondaryBtn{
    min-width:0;
  }
  .appModuleGrid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 480px){
  .landingPage{
    padding:10px;
  }
  .landingHero{
    min-height:calc(100vh - 20px);
    padding:15px;
    border-radius:9px;
  }
  .landingText h1{
    font-size:31px;
    line-height:1.12;
  }
  .mobileLandingVisual{
    margin-bottom:16px;
  }
  .landingActions,
  .landingStageList{
    display:grid;
    grid-template-columns:1fr;
  }
  .landingStage{
    grid-template-columns:1fr;
    gap:9px;
    padding:10px;
  }
  .landingStage p{
    padding-top:0;
  }
  .landingBtn{
    width:100%;
  }
  .appHeader{
    min-height:58px;
    padding:7px 10px;
    gap:8px;
  }
  .appHeaderStage{
    font-size:18px;
  }
  .appBackBtn{
    width:42px;
    height:42px;
  }
  .appHeaderStats{
    gap:8px;
  }
  .appHeaderStats span{
    font-size:14px;
  }
  .appHeaderStats b{
    font-size:14px;
  }
  .appMain{
    padding:14px 10px 54px;
  }
  .appIntro{
    padding:15px;
    border-radius:10px;
  }
  .appIntro h1{
    font-size:24px;
  }
  .appSectionHead{
    display:block;
  }
  .appSectionHead p{
    margin-top:4px;
    text-align:left;
  }
  .appModuleCard{
    grid-template-columns:48px minmax(0,1fr);
    gap:12px;
    min-height:104px;
    padding:13px;
    border-radius:10px;
  }
  .appModuleNo{
    width:48px;
    height:48px;
    border-radius:10px;
  }
  .appModuleCard strong{
    font-size:16px;
  }
  .page{
    padding:10px 10px 38px;
  }
  h1{
    font-size:24px;
  }
  .heroVisual{
    max-width:100%;
  }
  .heroVisual img{
    max-height:260px;
  }
  .heroVisual figcaption{
    text-align:left;
  }
  .sectionHead{
    display:block;
  }
  .quickStats,
  .quickNav{
    grid-template-columns:1fr;
  }
  .continueCard{
    min-height:0;
    padding:16px;
  }
  .continueCard h2{
    font-size:22px;
  }
  .sectionNote{
    margin-top:4px;
  }
  .storyCard{
    grid-template-columns:58px 1fr;
    gap:10px;
    padding:10px;
  }
  .levelNo{
    font-size:26px;
  }
  .storyTitle{
    display:block;
  }
  .status{
    display:inline-flex;
    margin-top:6px;
  }
}
