:root {
  --paper: #f5f1e8;
  --paper-deep: #ebe4d7;
  --ink: #1b2824;
  --muted: #6f7770;
  --green: #194e43;
  --green-2: #2b6a5c;
  --mint: #dbe9df;
  --coral: #d78655;
  --coral-soft: #f0d4c3;
  --white: #fffdf8;
  --line: rgba(27, 40, 36, 0.13);
  --shadow: 0 24px 70px rgba(31, 54, 45, 0.12);
  --radius: 24px;
  --sans: "DM Sans", sans-serif;
  --serif: "Literata", Georgia, serif;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.offline-banner {
  display: none;
  position: fixed;
  z-index: 100;
  left: 50%; top: 14px;
  transform: translateX(-50%);
  align-items: center;
  gap: 9px;
  width: min(620px, calc(100% - 24px));
  padding: 11px 16px;
  border-radius: 13px;
  color: #eaf6f0;
  background: #183d35;
  box-shadow: 0 10px 30px #12352c40;
  font-size: 13px;
}
.offline-banner.visible { display: flex; }
.status-dot { width: 8px; height: 8px; border-radius: 99px; background: #80d9aa; box-shadow: 0 0 0 4px #80d9aa26; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0; left: 0; right: 0;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(22px, 5vw, 74px);
  border-bottom: 1px solid transparent;
  transition: .25s ease;
}
.site-header.scrolled, .site-header.solid {
  height: 66px;
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}
.site-header.reader-header { display: none; }
.site-header.diagnostic-header { display: none; }
.brand { justify-self: start; display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { position: relative; width: 25px; height: 23px; display: inline-flex; gap: 2px; }
.brand-mark i { width: 12px; height: 20px; display: block; background: var(--green); border-radius: 2px 7px 7px 2px; transform: skewY(7deg); }
.brand-mark i:last-child { border-radius: 7px 2px 2px 7px; transform: skewY(-7deg); }
.desktop-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; }
.desktop-nav a { color: #394741; transition: color .2s; }
.desktop-nav a:hover { color: var(--coral); }
.nav-login { padding: 0; border: 0; background: none; cursor: pointer; }
.header-cta { justify-self: end; border: 0; border-radius: 99px; padding: 11px 19px; color: white; background: var(--green); font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s; }
.header-cta:hover { background: var(--green-2); transform: translateY(-1px); }
.mobile-menu { display: none; }

.page { min-height: 100dvh; animation: pageIn .35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } }

/* Landing */
.home-page { overflow: hidden; }
.hero {
  min-height: 775px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  padding: 126px clamp(24px, 7vw, 112px) 70px;
  position: relative;
}
.hero:before { content: ""; position: absolute; width: 650px; height: 650px; right: -160px; top: 20px; border-radius: 50%; background: #dfe9dd; filter: blur(1px); }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--green-2); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 28px; height: 1px; background: var(--coral); }
.hero h1 { margin: 20px 0 22px; font-family: var(--serif); font-size: clamp(48px, 6vw, 83px); line-height: .98; font-weight: 500; letter-spacing: -.055em; }
.hero h1 em { color: var(--green-2); font-style: italic; font-weight: 400; }
.hero-copy > p { max-width: 565px; margin: 0 0 31px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: #5d6862; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.primary-btn, .secondary-btn { border: 0; cursor: pointer; border-radius: 99px; padding: 15px 23px; font-weight: 600; font-size: 14px; transition: .2s ease; }
.primary-btn { color: white; background: var(--green); box-shadow: 0 8px 24px #194e432c; }
.primary-btn:hover { transform: translateY(-2px); background: var(--green-2); box-shadow: 0 12px 28px #194e4338; }
.secondary-btn { border: 1px solid var(--line); background: transparent; }
.secondary-btn:hover { background: var(--white); }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.hero-note span { color: var(--green); font-weight: 700; }
.quick-steps { display: flex; align-items: center; gap: 10px; margin: -7px 0 24px; }
.quick-steps > div { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.25; }
.quick-steps b, .flow-strip b { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; }
.quick-steps .active { color: var(--green); font-weight: 700; }
.quick-steps .active b, .flow-strip .active b { border-color: var(--coral); color: white; background: var(--coral); }
.quick-steps > i { width: 20px; height: 1px; background: var(--line); }

.hero-visual { height: 540px; position: relative; z-index: 1; display: grid; place-items: center; }
.orbit { position: absolute; width: 480px; height: 480px; border: 1px solid #688e7c44; border-radius: 50%; }
.orbit:before, .orbit:after { content: ""; position: absolute; border-radius: 50%; background: var(--coral); }
.orbit:before { width: 10px; height: 10px; top: 42px; right: 68px; }
.orbit:after { width: 7px; height: 7px; bottom: 61px; left: 54px; background: var(--green); }
.hero-book {
  width: 285px; height: 405px;
  padding: 31px;
  position: relative;
  border-radius: 5px 18px 18px 5px;
  color: #f8f2e6;
  background: linear-gradient(145deg, #245b4f, #123e36);
  box-shadow: -10px 12px 0 #d4c8b4, -18px 24px 55px #234b3d45;
  transform: rotate(4deg);
}
.hero-book:before { content: ""; position: absolute; inset: 9px; border: 1px solid #e5c38b66; border-radius: 2px 12px 12px 2px; }
.hero-book .small { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #d8c7aa; }
.module-ribbon { position: absolute; z-index: 2; top: -14px; left: 28px; padding: 8px 12px; border-radius: 99px; color: #1c463d; background: #f3d1b9; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 8px 18px #173a3026; }
.hero-book h2 { margin: 84px 0 13px; font-family: var(--serif); font-weight: 500; font-size: 37px; line-height: 1.05; }
.hero-book p { font-family: var(--serif); font-style: italic; color: #d8c7aa; }
.book-sun { position: absolute; width: 76px; height: 76px; left: 30px; bottom: 37px; border-radius: 50%; border: 1px solid #d8b071; }
.book-sun:after { content: ""; position: absolute; width: 160px; height: 1px; top: 38px; left: -12px; background: #d8b071; box-shadow: 0 -12px 0 #d8b07166, 0 12px 0 #d8b07166; }
.book-skills { position: absolute; z-index: 2; left: 30px; right: 24px; bottom: 21px; display: flex; gap: 5px; }
.book-skills span { padding: 4px 7px; border: 1px solid #d8c7aa66; border-radius: 99px; color: #e5dac8; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 15px; background: #fffdf8eb; backdrop-filter: blur(12px); box-shadow: 0 16px 40px #17392f24; font-size: 12px; }
.float-card strong { display: block; margin-bottom: 2px; font-size: 17px; }
.float-card.coverage { right: 0; top: 96px; }
.float-card.words { left: 5px; bottom: 74px; }
.ring { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--coral) 95%, #e2ded3 0); position: relative; font-size: 9px; font-weight: 700; }
.ring:before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--white); }
.ring span { position: relative; }
.float-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--mint); color: var(--green); font-size: 17px; }

.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 clamp(24px, 7vw, 112px); }
.proof-item { padding: 22px 26px; border-right: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.proof-item:last-child { border: 0; }
.proof-item strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 21px; font-weight: 500; }

.section { padding: 105px clamp(24px, 7vw, 112px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 49px; }
.section-head h2 { max-width: 690px; margin: 11px 0 0; font-family: var(--serif); font-size: clamp(36px, 4.5vw, 60px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
.section-head p { max-width: 390px; color: var(--muted); line-height: 1.65; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { min-height: 285px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #f8f4ec; position: relative; overflow: hidden; }
.step-card:nth-child(2) { background: var(--green); color: white; }
.step-card:nth-child(2) p { color: #c8dad5; }
.step-number { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; opacity: .65; font-size: 12px; }
.step-card h3 { margin: 55px 0 12px; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.step-arrow { position: absolute; right: 23px; top: 24px; font-size: 24px; color: var(--coral); transform: rotate(25deg); }

.reader-demo-section { background: #153e36; color: white; }
.reader-demo-section .section-head p { color: #b7cbc5; }
.reader-demo { display: grid; grid-template-columns: 260px 1fr; min-height: 505px; border-radius: 26px; background: #f8f3e9; color: var(--ink); box-shadow: 0 35px 80px #09261f55; overflow: hidden; }
.demo-sidebar { padding: 30px; border-right: 1px solid var(--line); background: #eee8dc; }
.demo-sidebar small { color: var(--muted); }
.mini-progress { margin: 16px 0 35px; height: 4px; border-radius: 3px; background: #d3cdbf; overflow: hidden; }
.mini-progress i { width: 43%; height: 100%; display: block; background: var(--coral); }
.demo-sidebar h4 { margin: 0 0 24px; font-family: var(--serif); font-size: 20px; }
.chapter-mini { padding: 10px 0; color: #7b807b; font-size: 12px; }
.chapter-mini.active { color: var(--green); font-weight: 700; }
.demo-page { padding: 64px clamp(30px, 7vw, 100px); font-family: var(--serif); font-size: 19px; line-height: 1.9; }
.demo-page .chapter-label { color: var(--coral); font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.demo-lesson-goal { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: -20px 0 35px; padding: 13px 15px; border-radius: 11px; background: var(--mint); font-family: var(--sans); font-size: 10px; }
.demo-lesson-goal b { color: var(--green); text-transform: uppercase; letter-spacing: .1em; }
.demo-lesson-goal span { color: var(--muted); }
.demo-page h3 { margin: 13px 0 28px; font-size: 35px; font-weight: 500; }
.demo-word { position: relative; display: inline-block; padding: 0 2px; border-bottom: 2px solid var(--coral); background: #eed7c7; border-radius: 3px; cursor: pointer; }
.demo-tooltip { position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%); width: 220px; padding: 15px; border-radius: 13px; color: var(--ink); background: white; font-family: var(--sans); font-size: 12px; line-height: 1.5; box-shadow: 0 12px 32px #17342d26; }
.demo-tooltip:after { content: ""; position: absolute; width: 10px; height: 10px; bottom: -5px; left: calc(50% - 5px); background: white; transform: rotate(45deg); }
.demo-tooltip b { display: block; font-family: var(--serif); font-size: 17px; }

.quote-section { text-align: center; padding: 115px 24px; }
.quote-section blockquote { max-width: 900px; margin: 0 auto 30px; font-family: var(--serif); font-size: clamp(32px, 4vw, 53px); line-height: 1.23; letter-spacing: -.035em; }
.quote-section cite { color: var(--muted); font-style: normal; font-size: 13px; }
.final-cta { margin: 0 clamp(15px, 4vw, 56px) 56px; padding: 80px 30px; border-radius: 32px; color: white; background: var(--green); text-align: center; position: relative; overflow: hidden; }
.final-cta:before, .final-cta:after { content: ""; position: absolute; border: 1px solid #80a99d44; border-radius: 50%; }
.final-cta:before { width: 350px; height: 350px; top: -190px; left: -80px; }
.final-cta:after { width: 440px; height: 440px; bottom: -320px; right: -60px; }
.final-cta h2 { position: relative; margin: 0 auto 17px; max-width: 680px; font-family: var(--serif); font-size: clamp(37px, 5vw, 62px); line-height: 1.08; font-weight: 500; }
.final-cta p { position: relative; color: #bed1cb; }
.final-cta .primary-btn { position: relative; margin-top: 18px; background: var(--coral); }

/* First-run diagnostic */
.diagnostic-page { padding: 25px 28px 45px; background: linear-gradient(145deg, #edf2ea 0, var(--paper) 58%); }
.diagnostic-shell { width: min(1120px, 100%); margin: 0 auto; }
.diagnostic-result { width: min(820px, 100%); margin: 0 auto; }
.diagnostic-top { min-height: 40px; display: flex; align-items: center; gap: 20px; margin-bottom: 13px; color: var(--muted); font-size: 11px; }
.diagnostic-top > span { margin-left: auto; }
.diagnostic-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 16px; }
.diagnostic-brand .brand-mark { width: 22px; height: 21px; }
.diagnostic-brand .brand-mark i { width: 10px; height: 18px; }
.diagnostic-back { margin-left: 0; color: var(--green); font-weight: 700; }
.diagnostic-progress { height: 4px; overflow: hidden; border-radius: 99px; background: #d9d8ce; }
.diagnostic-progress i { display: block; height: 100%; border-radius: inherit; background: var(--coral); transition: width .25s ease; }
.diagnostic-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; padding: 30px 0 22px; }
.diagnostic-heading h1, .diagnostic-result h1 { margin: 10px 0 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); line-height: 1.08; font-weight: 500; letter-spacing: -.045em; }
.diagnostic-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.diagnostic-result > p { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.65; }
.diagnostic-workspace { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(340px, .87fr); gap: 18px; align-items: stretch; }
.diagnostic-passage { min-height: 425px; display: flex; flex-direction: column; padding: 28px 32px; border: 1px solid var(--line); border-radius: 23px; background: #fffdf8; box-shadow: 0 18px 50px #273f3420; }
.passage-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-family: var(--sans); font-size: 8px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.passage-meta span:first-child { color: var(--coral); }
.passage-text { margin: auto 0; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 25px); line-height: 1.82; }
.passage-hint { display: flex; align-items: center; gap: 9px; margin-top: 23px; color: var(--muted); font-family: var(--sans); font-size: 10px; }
.passage-hint span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--mint); font-family: var(--serif); }
.diagnostic-passage .reader-word { padding: 2px 1px; }
.diagnostic-question { min-height: 425px; display: flex; flex-direction: column; padding: 29px; border: 1px solid var(--line); border-radius: 23px; background: #f8f4ec; }
.diagnostic-question > small { color: var(--coral); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.diagnostic-question h2 { margin: 11px 0 8px; font-family: var(--serif); font-size: 25px; line-height: 1.25; font-weight: 500; }
.diagnostic-question > p { margin: 0 0 22px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.diagnostic-options { display: grid; gap: 9px; }
.diagnostic-options button { width: 100%; padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; background: #fffdf8; text-align: left; cursor: pointer; transition: .18s; }
.diagnostic-options button:hover { border-color: var(--green); transform: translateY(-1px); }
.diagnostic-options button.correct { border-color: var(--green); background: var(--mint); color: var(--green); font-weight: 700; }
.diagnostic-options button.wrong { border-color: #bd6859; background: #f5ded7; }
.diagnostic-too-hard { display: flex; width: 100%; margin-top: 12px; padding: 11px 14px; border: 1px dashed #c9c3b8; border-radius: 12px; background: transparent; color: var(--muted); align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; text-align: left; }
.diagnostic-too-hard:hover { border-color: var(--orange); color: var(--ink); }
.diagnostic-too-hard span { font-size: 12px; font-weight: 700; }
.diagnostic-too-hard small { color: var(--orange); white-space: nowrap; }
.diagnostic-too-hard.selected { border-style: solid; border-color: var(--orange); background: #f8ece2; color: var(--ink); }
.diagnostic-feedback { display: flex; gap: 8px; margin-top: 16px; padding: 13px 15px; border-radius: 12px; background: var(--mint); font-size: 12px; }
.diagnostic-feedback b { color: var(--green); }
.diagnostic-feedback span { color: var(--muted); }
.diagnostic-feedback-neutral { background: #f8ece2; }
.diagnostic-feedback-neutral b { color: var(--orange); }
.diagnostic-comfort { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.diagnostic-comfort > small { color: var(--orange); font-weight: 800; letter-spacing: .11em; }
.diagnostic-comfort > p { margin: 7px 0 11px; color: var(--muted); font-size: 12px; }
.diagnostic-comfort > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.diagnostic-comfort button { display: flex; min-height: 74px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; color: var(--ink); flex-direction: column; gap: 4px; text-align: left; cursor: pointer; }
.diagnostic-comfort button:hover { border-color: var(--green); }
.diagnostic-comfort button.selected { border-color: var(--green); background: var(--mint); }
.diagnostic-comfort button b { font-size: 13px; }
.diagnostic-comfort button span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.diagnostic-next { width: 100%; margin-top: 10px; }
.diagnostic-result { padding-top: 35px; text-align: center; }
.result-level { width: 88px; height: 88px; display: grid; place-items: center; margin: 22px auto 6px; border-radius: 26px; color: white; background: var(--green); font-family: var(--serif); font-size: 29px; }
.result-evidence { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0 25px; border: 1px solid var(--line); border-radius: 18px; background: #faf7f0; }
.result-evidence div { padding: 19px 12px; border-right: 1px solid var(--line); }
.result-evidence div:last-child { border: 0; }
.result-evidence strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.result-evidence span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.diagnostic-recommendation { display: flex; align-items: center; gap: 18px; max-width: 590px; margin: 0 auto 25px; padding: 19px 22px; border-radius: 18px; color: white; background: var(--green); text-align: left; }
.diagnostic-recommendation .mini-cover { flex: 0 0 auto; }
.diagnostic-recommendation small { color: #bcd0c9; font-size: 8px; letter-spacing: .11em; }
.diagnostic-recommendation h2 { margin: 5px 0 3px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.diagnostic-recommendation p { margin: 0; color: #c7d8d2; font-size: 11px; }
.diagnostic-actions { display: flex; justify-content: center; gap: 9px; }
.diagnostic-restart { margin-top: 18px; border: 0; background: none; color: var(--muted); font-size: 11px; cursor: pointer; }
.advanced-result { width: min(980px, 100%); }
.advanced-result .result-level { margin-top: 20px; }
.advanced-result > p { max-width: 720px; }
.advanced-free-note { display: flex; align-items: center; gap: 14px; max-width: 650px; margin: 26px auto 20px; padding: 17px 20px; border-radius: 16px; color: var(--green); background: var(--mint); text-align: left; }
.advanced-free-note > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: white; background: var(--green); font-weight: 700; }
.advanced-free-note strong { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.advanced-free-note p { margin: 3px 0 0; color: #566b63; font-size: 11px; line-height: 1.45; }
.advanced-books { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 24px; }
.advanced-book-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 13px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 15px; background: #fffdf8; text-align: left; cursor: pointer; transition: transform .18s, border-color .18s; }
.advanced-book-card:hover { transform: translateY(-2px); border-color: var(--green); }
.advanced-book-card small { color: var(--coral); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.advanced-book-card h2 { margin: 3px 0 1px; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.advanced-book-card p { margin: 0; color: var(--muted); font-size: 10px; }
.advanced-book-arrow { color: var(--green); font-size: 18px; }

/* Catalog */
.library-page { padding: 130px clamp(22px, 6vw, 92px) 100px; }
.flow-strip { display: flex; align-items: center; justify-content: center; gap: 12px; margin: -28px auto 45px; color: var(--muted); font-size: 11px; }
.flow-strip > div { display: flex; align-items: center; gap: 8px; }
.flow-strip > i { width: clamp(30px, 5vw, 75px); height: 1px; background: var(--line); }
.flow-strip .active { color: var(--green); font-weight: 700; }
.library-intro { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 40px; margin-bottom: 46px; }
.library-intro h1 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(45px, 6vw, 76px); line-height: 1; font-weight: 500; letter-spacing: -.05em; }
.library-subcopy { max-width: 650px; margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.level-card { justify-self: end; width: min(100%, 410px); padding: 21px; border-radius: 18px; border: 1px solid var(--line); background: #faf7f0; display: flex; align-items: center; gap: 15px; }
.level-badge { width: 51px; height: 51px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; background: var(--mint); color: var(--green); font-family: var(--serif); font-size: 19px; font-weight: 600; }
.level-card p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.level-card button { margin-left: auto; border: 0; background: none; color: var(--green); font-size: 12px; font-weight: 700; cursor: pointer; }
.filters { display: flex; align-items: center; gap: 8px; margin-bottom: 31px; overflow: auto; scrollbar-width: none; }
.filter-btn { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 99px; padding: 9px 15px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.filter-btn.active { color: white; background: var(--green); border-color: var(--green); }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.book-card { cursor: pointer; }
.book-card-cover { height: 345px; border-radius: 4px 15px 15px 4px; padding: 27px; color: white; position: relative; overflow: hidden; box-shadow: -6px 8px 0 #d8d1c5, 0 17px 34px #2f3e3617; transition: transform .25s, box-shadow .25s; }
.book-card:hover .book-card-cover { transform: translateY(-6px) rotate(.5deg); box-shadow: -6px 12px 0 #d8d1c5, 0 25px 42px #2f3e3624; }
.book-card-cover:after { content: ""; position: absolute; inset: 9px; border: 1px solid #ffffff4b; border-radius: 2px 9px 9px 2px; pointer-events: none; }
.book-card-cover .genre { font-size: 9px; text-transform: uppercase; letter-spacing: .18em; opacity: .78; }
.course-cover-label { position: absolute; top: 21px; right: 20px; padding: 6px 9px; border: 1px solid #ffffff55; border-radius: 99px; font-size: 7px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.book-card-cover h2 { position: relative; z-index: 1; margin: 95px 0 10px; max-width: 90%; font-family: var(--serif); font-size: 31px; line-height: 1.02; font-weight: 500; }
.book-card-cover .author { font-family: var(--serif); font-style: italic; opacity: .82; font-size: 13px; }
.cover-art { position: absolute; border: 1px solid currentColor; opacity: .6; }
.cover-art.circle { width: 95px; height: 95px; right: -15px; bottom: 30px; border-radius: 50%; box-shadow: -28px 0 0 -1px transparent; }
.cover-art.lines { width: 150px; height: 80px; right: -30px; bottom: -10px; transform: rotate(-12deg); }
.cover-art.diamond { width: 80px; height: 80px; right: 26px; bottom: 24px; transform: rotate(45deg); }
.book-card-info { padding: 18px 5px 0; }
.module-meta-line { margin-bottom: 5px; color: var(--coral); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.book-card-info h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.book-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.difficulty { padding: 5px 9px; border-radius: 99px; background: var(--mint); color: var(--green); font-weight: 700; }
.coverage { color: var(--green); font-weight: 700; }

/* Reader */
.reader-page { min-height: 100dvh; background: var(--reader-bg, #f6f1e7); color: var(--reader-ink, #26312c); }
.book-loader { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; }
.book-loader strong { margin-top: 14px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.book-loader p { margin: 0; color: var(--muted); font-size: 12px; }
.loader-mark { width: 45px; height: 40px; display: flex; gap: 3px; animation: loaderPulse 1.2s ease-in-out infinite; }
.loader-mark i { flex: 1; border-radius: 3px 12px 12px 3px; background: var(--green); transform: skewY(7deg); }
.loader-mark i:last-child { border-radius: 12px 3px 3px 12px; transform: skewY(-7deg); }
@keyframes loaderPulse { 50% { opacity: .45; transform: translateY(-3px); } }
.reader-shell { min-height: 100dvh; display: grid; grid-template-columns: 255px minmax(0, 1fr); }
.reader-sidebar { position: fixed; width: 255px; height: 100dvh; padding: 28px 24px; border-right: 1px solid rgba(37,49,44,.12); background: var(--reader-side, #eee7da); overflow-y: auto; z-index: 10; transition: transform .25s; }
.reader-back { border: 0; padding: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.reader-book-title { margin: 39px 0 5px; font-family: var(--serif); font-size: 21px; }
.reader-author { color: var(--muted); font-family: var(--serif); font-size: 12px; font-style: italic; }
.reader-course-label { margin-top: 34px; color: var(--coral); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.reader-course-label + .reader-book-title { margin-top: 9px; }
.reader-overall { margin: 24px 0 34px; }
.reader-overall-label { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.reader-overall-track { height: 3px; margin-top: 9px; background: #cfc8bb; }
.reader-overall-track i { display: block; width: var(--book-progress, 18%); height: 100%; background: var(--coral); }
.chapter-list-label { margin-bottom: 10px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.chapter-link { width: 100%; display: flex; gap: 9px; padding: 10px 0; border: 0; background: none; text-align: left; color: var(--muted); font-size: 11px; line-height: 1.35; cursor: pointer; }
.chapter-link span { min-width: 15px; }
.chapter-link.active { color: var(--green); font-weight: 700; }
.offline-pill { display: flex; align-items: center; gap: 7px; margin-top: 25px; padding: 10px 11px; border-radius: 10px; background: #dce8df; color: var(--green); font-size: 10px; font-weight: 700; }
.reader-main { grid-column: 2; min-width: 0; }
.reader-topbar { position: sticky; z-index: 8; top: 0; height: 65px; display: flex; align-items: center; justify-content: space-between; padding: 0 27px; background: color-mix(in srgb, var(--reader-bg, #f6f1e7) 89%, transparent); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(37,49,44,.08); }
.reader-topbar-center { color: var(--muted); font-size: 11px; }
.reader-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(37,49,44,.12); border-radius: 11px; background: transparent; cursor: pointer; font-size: 14px; }
.icon-btn.active { color: white; background: var(--coral); border-color: var(--coral); }
.sidebar-toggle { display: none; }
.reading-progress { position: fixed; z-index: 20; left: 255px; right: 0; top: 64px; height: 2px; background: transparent; }
.reading-progress i { display: block; width: var(--read-progress, 0%); height: 100%; background: var(--coral); transition: width .15s; }
.reader-article { max-width: var(--reader-width, 720px); margin: 0 auto; padding: 74px 30px 140px; font-family: var(--serif); font-size: var(--reader-font, 19px); line-height: var(--reader-leading, 1.95); }
.lesson-brief { margin: -31px 0 58px; padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--reader-ink) 12%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--reader-side) 72%, transparent); font-family: var(--sans); line-height: 1.45; }
.lesson-brief > div:first-child > span { color: var(--coral); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.lesson-brief h2 { margin: 6px 0 5px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.reader-article .lesson-brief p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.lesson-plan { display: flex; align-items: center; gap: 7px; margin-top: 15px; color: var(--green-2); font-size: 9px; font-weight: 700; }
.lesson-plan i { width: 30px; height: 1px; background: var(--coral); }
.reader-kicker { color: var(--coral); font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.reader-article h1 { margin: 14px 0 44px; font-size: 42px; line-height: 1.13; font-weight: 500; letter-spacing: -.035em; }
.reader-article p { margin: 0 0 1.55em; }
.reader-word { border-radius: 3px; cursor: pointer; transition: background .15s; }
.reader-word:hover { background: #e8d6c7; }
.reader-word.learning { background: #efd9c8; border-bottom: 1px solid var(--coral); }
.reader-word.known { color: inherit; }
.sentence { border-radius: 5px; transition: background .2s, box-shadow .2s; }
.sentence.translating { background: color-mix(in srgb, var(--coral) 14%, transparent); }
.sentence-translate-btn { display: inline-flex; margin: 0 7px 0 4px; padding: 3px 7px; border: 0; border-radius: 99px; color: var(--green); background: var(--mint); font-family: var(--sans); font-size: 8px; font-weight: 700; vertical-align: middle; cursor: pointer; opacity: .62; transition: opacity .18s, transform .18s; }
.sentence-translate-btn:hover, .sentence-translate-btn:focus-visible { opacity: 1; transform: translateY(-1px); outline: none; }
.chapter-end { margin-top: 70px; padding-top: 35px; border-top: 1px solid rgba(37,49,44,.13); text-align: center; }
.chapter-end h3 { margin: 11px 0 3px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.chapter-end p { color: var(--muted); font-family: var(--sans); font-size: 12px; }
.lesson-done-mark { width: 39px; height: 39px; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; color: var(--green); background: var(--mint); font-family: var(--sans); font-size: 15px; font-weight: 700; }
.chapter-end button { margin-top: 10px; }
.reader-settings { position: fixed; z-index: 25; top: 58px; right: 22px; width: 290px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: var(--shadow); color: var(--ink); animation: pop .18s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(-5px) scale(.98); } }
.settings-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; font-size: 13px; font-weight: 700; }
.setting-row { margin: 17px 0; }
.setting-label { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: 10px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.segmented button { padding: 8px 5px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 11px; cursor: pointer; }
.segmented button.active { background: var(--green); color: white; border-color: var(--green); }
.theme-options { display: flex; gap: 7px; }
.theme-dot { width: 36px; height: 36px; border: 2px solid transparent; border-radius: 50%; cursor: pointer; }
.theme-dot.active { border-color: var(--coral); box-shadow: inset 0 0 0 3px white; }
.theme-dot.paper { background: #f6f1e7; }.theme-dot.light { background: white; border-color: #ddd; }.theme-dot.dark { background: #1c2421; }
.word-sheet { position: fixed; z-index: 40; right: 28px; bottom: 28px; width: min(380px, calc(100% - 30px)); padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: #fffdf8; color: var(--ink); box-shadow: 0 20px 70px #17342d33; animation: sheetIn .22s ease both; }
.sentence-sheet { position: fixed; z-index: 39; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(720px, calc(100% - 40px)); padding: 24px 28px; border: 1px solid var(--line); border-radius: 21px; background: #fffdf8; color: var(--ink); box-shadow: 0 22px 75px #17342d3d; animation: sentenceSheetIn .22s ease both; }
@keyframes sentenceSheetIn { from { opacity: 0; transform: translate(-50%, 14px); } }
.sentence-sheet-label { color: var(--coral); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.sentence-original { margin: 10px 35px 14px 0; color: var(--muted); font-family: var(--serif); font-size: 14px; line-height: 1.55; }
.sentence-divider { width: 38px; height: 2px; margin-bottom: 13px; background: var(--coral); }
.sentence-translation { margin: 0 35px 7px 0; font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.sentence-source { color: var(--muted); font-size: 9px; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(14px); } }
.sheet-close { position: absolute; top: 15px; right: 15px; width: 29px; height: 29px; border: 0; border-radius: 50%; background: #f0ece4; cursor: pointer; }
.word-head { display: flex; align-items: baseline; gap: 9px; }
.word-head h3 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.word-head button { border: 0; background: none; color: var(--green); cursor: pointer; }
.transcription { margin: 4px 0 18px; color: var(--muted); font-family: var(--serif); font-size: 12px; }
.lemma { color: var(--muted); font-size: 11px; }
.translation { margin: 5px 0; color: var(--green); font-family: var(--serif); font-size: 20px; font-weight: 600; }
.translation-source { margin: -1px 0 13px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.definition { margin: 7px 0 21px; color: #626b66; font-size: 12px; line-height: 1.5; }
.word-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.word-actions button { padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; font-size: 12px; font-weight: 700; }
.word-actions button:last-child { color: white; background: var(--coral); border-color: var(--coral); }
.diagnostic-word-actions { grid-template-columns: 1fr; }
.explain-pop { position: fixed; z-index: 35; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(590px, calc(100% - 30px)); padding: 20px 22px; border-radius: 18px; background: #fffdf8; color: var(--ink); box-shadow: var(--shadow); }
.explain-pop .ai-label { color: var(--coral); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; }
.explain-pop h4 { margin: 8px 0; font-family: var(--serif); font-size: 17px; }
.explain-pop p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

/* Journey */
.journey-page { padding: 126px clamp(22px, 6vw, 92px) 100px; }
.journey-hero { display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.journey-hero h1 { margin: 13px 0 10px; font-family: var(--serif); font-size: clamp(44px, 6vw, 76px); line-height: 1; font-weight: 500; letter-spacing: -.05em; }
.journey-hero p { color: var(--muted); }
.goal-ring { width: 134px; height: 134px; display: grid; place-items: center; position: relative; border-radius: 50%; background: conic-gradient(var(--coral) 18%, #ded9cf 0); }
.goal-ring:after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--paper); }
.goal-ring span { position: relative; z-index: 1; text-align: center; font-family: var(--serif); font-size: 25px; }
.goal-ring small { display: block; font-family: var(--sans); font-size: 9px; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 25px 0 55px; border: 1px solid var(--line); border-radius: 18px; background: #faf7f0; }
.metric { padding: 22px 24px; border-right: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric small { display: block; color: var(--muted); font-size: 10px; }
.metric strong { display: block; margin-top: 7px; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.metric:first-child strong { font-size: clamp(16px, 2vw, 23px); line-height: 1.2; }
.journey-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #faf7f0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.panel h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.journey-path { position: relative; padding-left: 20px; }
.journey-path:before { content: ""; position: absolute; left: 8px; top: 22px; bottom: 22px; width: 1px; background: #c7c3b9; }
.path-book { position: relative; display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; }
.path-book:before { content: ""; position: absolute; left: -17px; width: 11px; height: 11px; border: 3px solid #faf7f0; border-radius: 50%; background: var(--coral); }
.mini-cover { width: 44px; height: 58px; border-radius: 2px 6px 6px 2px; box-shadow: -3px 3px #ddd5c8; }
.path-book h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.path-book p { margin: 0; color: var(--muted); font-size: 10px; }
.path-cover { color: var(--green); font-size: 11px; font-weight: 700; }
.vocab-chart { display: flex; align-items: end; height: 160px; gap: 8px; padding: 18px 5px 0; }
.vocab-bar { flex: 1; min-height: 10px; border-radius: 5px 5px 1px 1px; background: var(--mint); position: relative; }
.vocab-bar.hot { background: var(--coral); }
.chart-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.insight { margin-top: 20px; padding: 15px; border-radius: 13px; background: var(--mint); color: var(--green); font-size: 11px; line-height: 1.5; }
.empty-vocab { display: grid; justify-items: center; padding: 34px 15px 25px; text-align: center; }
.empty-vocab > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: var(--mint); color: var(--green); font-family: var(--serif); font-size: 20px; }
.empty-vocab h3 { margin: 14px 0 5px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.empty-vocab p { max-width: 280px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.paywall-teaser { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; margin-top: 4px; padding: 35px; border-radius: 22px; color: white; background: var(--green); }
.paywall-teaser h2 { margin: 0 0 7px; font-family: var(--serif); font-size: 29px; font-weight: 500; }
.paywall-teaser p { margin: 0; color: #bed2cc; font-size: 12px; }
.paywall-teaser .primary-btn { background: var(--coral); white-space: nowrap; }

/* Modals */
.modal-layer:empty { display: none; }
.modal-layer { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: #132c2680; backdrop-filter: blur(9px); }
.modal { width: min(850px, 100%); max-height: min(760px, calc(100dvh - 30px)); overflow: auto; border-radius: 24px; background: var(--paper); box-shadow: 0 30px 90px #102c246b; animation: modalIn .25s ease both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.book-modal { display: grid; grid-template-columns: 300px 1fr; }
.modal-cover-wrap { padding: 36px; background: #e8e1d4; display: grid; place-items: center; }
.modal-cover { width: 210px; height: 315px; padding: 24px; border-radius: 3px 12px 12px 3px; color: white; box-shadow: -7px 9px #cfc5b5, 0 20px 40px #27463b2b; }
.modal-cover h2 { margin: 85px 0 10px; font-family: var(--serif); font-size: 27px; line-height: 1.05; font-weight: 500; }
.modal-cover p { font-family: var(--serif); font-style: italic; font-size: 12px; opacity: .8; }
.modal-content { padding: 36px; position: relative; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #e8e3da; cursor: pointer; }
.modal-content .eyebrow { font-size: 9px; }
.modal-content h1 { margin: 17px 0 7px; font-family: var(--serif); font-size: 37px; font-weight: 500; letter-spacing: -.035em; }
.modal-byline { color: var(--muted); font-family: var(--serif); font-style: italic; }
.modal-description { margin: 26px 0; color: #626b66; font-size: 13px; line-height: 1.65; }
.module-outcome { display: grid; gap: 4px; margin: -8px 0 21px; padding: 13px 15px; border-radius: 12px; background: var(--mint); }
.module-outcome b { color: var(--green); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.module-outcome span { color: #51645d; font-size: 11px; line-height: 1.45; }
.modal-meta { display: grid; grid-template-columns: repeat(3, 1fr); padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal-meta span { color: var(--muted); font-size: 9px; }
.modal-meta strong { display: block; margin-top: 5px; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.modal-actions { display: flex; gap: 9px; margin-top: 25px; }
.login-modal { max-width: 430px; padding: 38px; position: relative; }
.login-modal h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 34px; font-weight: 500; }
.login-modal > p { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.field { margin: 12px 0; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.field input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: white; outline: none; }
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px #194e4317; }
.login-modal .primary-btn { width: 100%; margin-top: 10px; }
.completion-modal { max-width: 540px; padding: 42px; text-align: center; }
.completion-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 19px; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 25px; }
.completion-modal h2 { margin: 0 0 9px; font-family: var(--serif); font-size: 35px; font-weight: 500; }
.completion-modal > p { color: var(--muted); }
.checkpoint-modal { text-align: left; }
.checkpoint-modal > p { margin-bottom: 22px; }
.quiz-options { display: grid; gap: 9px; }
.quiz-options button { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: left; font-size: 12px; line-height: 1.45; cursor: pointer; }
.quiz-options button:hover { border-color: var(--green); }
.quiz-options button.correct { border-color: var(--green); background: var(--mint); color: var(--green); }
.quiz-options button.wrong { border-color: #c36b59; background: #f5ded7; }
.checkpoint-skip { margin-top: 15px; width: 100%; }
.quiz-feedback { display: grid; gap: 3px; margin-top: 16px; padding: 13px 15px; border-radius: 12px; background: var(--mint); }
.quiz-feedback b { color: var(--green); }
.quiz-feedback span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.quiz-continue { width: 100%; margin-top: 10px; }
.complete-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 25px 0; border-radius: 15px; background: #ede7dc; }
.complete-stats div { padding: 15px 5px; border-right: 1px solid var(--line); }
.complete-stats div:last-child { border: 0; }
.complete-stats strong { display: block; font-family: var(--serif); font-size: 18px; }
.complete-stats span { color: var(--muted); font-size: 9px; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 30px; transform: translate(-50%, 20px); padding: 11px 17px; border-radius: 99px; color: white; background: #173f36; font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 10px 30px #17342d38; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-nav { display: none; }

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr 420px; padding-left: 35px; padding-right: 35px; gap: 25px; }
  .hero h1 { font-size: 58px; }
  .proof-strip { margin: 0 35px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 220px; }
  .journey-layout { grid-template-columns: 1fr; }
  .paywall-teaser { grid-column: auto; }
}

@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  .site-header { height: 62px; grid-template-columns: 1fr auto; padding: 0 18px; }
  .site-header.scrolled, .site-header.solid { height: 58px; }
  .desktop-nav, .header-cta { display: none; }
  .brand { font-size: 17px; }
  .mobile-menu { display: none; }
  .mobile-nav { position: fixed; z-index: 45; bottom: 0; left: 0; right: 0; height: 65px; display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #f7f3ebef; backdrop-filter: blur(16px); }
  .mobile-nav.hidden { display: none; }
  .mobile-nav a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; color: var(--muted); font-size: 9px; }
  .mobile-nav a span { font-size: 17px; line-height: 1; }
  .mobile-nav a.active { color: var(--green); font-weight: 700; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding: 108px 21px 55px; }
  .hero h1 { margin-top: 15px; font-size: clamp(48px, 14vw, 64px); }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .hero-actions button { width: 100%; }
  .hero-note { justify-content: center; }
  .quick-steps { justify-content: center; gap: 6px; }
  .quick-steps > i { width: 10px; }
  .hero-visual { height: 430px; }
  .orbit { width: 350px; height: 350px; }
  .hero-book { width: 220px; height: 320px; padding: 24px; }
  .hero-book h2 { margin-top: 62px; font-size: 30px; }
  .module-ribbon { left: 18px; }
  .book-skills { left: 23px; }
  .float-card.coverage { right: 1px; top: 50px; }
  .float-card.words { left: 0; bottom: 43px; }
  .proof-strip { margin: 0 20px; grid-template-columns: 1fr 1fr; }
  .proof-item { border-bottom: 1px solid var(--line); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(3), .proof-item:nth-child(4) { border-bottom: 0; }
  .section { padding: 80px 20px; }
  .section-head { display: block; margin-bottom: 34px; }
  .section-head p { margin-top: 18px; }
  .section-head h2 { font-size: 41px; }
  .reader-demo { grid-template-columns: 1fr; min-height: 500px; }
  .demo-sidebar { display: none; }
  .demo-page { padding: 43px 25px; font-size: 17px; }
  .demo-lesson-goal { align-items: flex-start; flex-direction: column; margin-top: -13px; gap: 3px; }
  .demo-tooltip { left: -22px; transform: none; }
  .demo-tooltip:after { left: 42px; }
  .quote-section { padding: 80px 22px; }
  .final-cta { margin: 0 10px 20px; padding: 62px 20px; border-radius: 25px; }

  .diagnostic-page { padding: 13px 14px 35px; }
  .diagnostic-top { min-height: 35px; gap: 12px; font-size: 9px; }
  .diagnostic-brand { font-size: 14px; }
  .diagnostic-heading { display: block; padding: 27px 3px 18px; }
  .diagnostic-heading h1, .diagnostic-result h1 { font-size: 34px; }
  .diagnostic-heading > p { margin-top: 12px; font-size: 12px; }
  .diagnostic-workspace { grid-template-columns: 1fr; }
  .diagnostic-passage { min-height: 0; padding: 22px 20px; border-radius: 18px; }
  .passage-text { margin: 22px 0 17px; font-size: 19px; line-height: 1.75; }
  .passage-hint { margin-top: 0; }
  .passage-meta span:last-child { display: none; }
  .diagnostic-question { min-height: 0; padding: 23px 20px; border-radius: 18px; }
  .diagnostic-question h2 { font-size: 22px; }
  .diagnostic-options button { padding: 14px; font-size: 13px; }
  .diagnostic-too-hard { align-items: flex-start; flex-direction: column; gap: 3px; }
  .diagnostic-comfort > div { grid-template-columns: 1fr; }
  .diagnostic-comfort button { min-height: 0; }
  .result-evidence { grid-template-columns: 1fr; }
  .result-evidence div { border-right: 0; border-bottom: 1px solid var(--line); }
  .diagnostic-recommendation { padding: 17px; }
  .diagnostic-actions { flex-direction: column; }
  .diagnostic-actions button { width: 100%; }
  .advanced-books { grid-template-columns: 1fr; }
  .advanced-free-note { align-items: flex-start; padding: 15px; }

  .library-page, .journey-page { padding: 100px 19px 90px; }
  .flow-strip { justify-content: flex-start; margin: -18px 0 34px; gap: 7px; overflow: hidden; }
  .flow-strip > div { min-width: max-content; }
  .flow-strip > i { min-width: 13px; }
  .flow-strip span { font-size: 9px; }
  .library-intro { grid-template-columns: 1fr; gap: 23px; }
  .level-card { justify-self: stretch; }
  .book-grid { gap: 27px 13px; }
  .book-card-cover { height: 250px; padding: 18px; }
  .book-card-cover h2 { margin-top: 63px; font-size: 22px; }
  .book-card-info h3 { font-size: 16px; }
  .book-card-meta .words-meta { display: none; }

  .reader-page { margin-bottom: -65px; }
  .reader-shell { grid-template-columns: 1fr; }
  .reader-sidebar { transform: translateX(-105%); box-shadow: 15px 0 50px #17342d30; }
  .reader-sidebar.open { transform: translateX(0); }
  .reader-main { grid-column: 1; }
  .reader-topbar { height: 57px; padding: 0 12px; }
  .reader-topbar-center { max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-toggle { display: grid; }
  .reading-progress { left: 0; top: 56px; }
  .reader-article { padding: 55px 21px 120px; font-size: var(--reader-font, 18px); line-height: var(--reader-leading, 1.85); }
  .lesson-brief { margin: -27px 0 43px; padding: 17px; }
  .reader-article h1 { font-size: 34px; margin-bottom: 34px; }
  .sentence-translate-btn { margin-left: 2px; padding: 4px 8px; font-size: 9px; opacity: .82; }
  .reader-settings { top: 48px; right: 10px; width: calc(100% - 20px); }
  .word-sheet { left: 0; right: 0; bottom: 0; width: 100%; max-width: none; border-radius: 22px 22px 0 0; padding: 25px 21px calc(25px + env(safe-area-inset-bottom)); }
  .sentence-sheet { left: 0; right: 0; bottom: 0; transform: none; width: 100%; max-width: none; padding: 24px 21px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .sentence-translation { font-size: 19px; }
  @keyframes sentenceSheetIn { from { opacity: 0; transform: translateY(14px); } }

  .journey-hero { grid-template-columns: 1fr; }
  .goal-ring { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .paywall-teaser { grid-template-columns: 1fr; padding: 28px; }
  .paywall-teaser button { width: 100%; }

  .book-modal { grid-template-columns: 1fr; }
  .modal-cover-wrap { padding: 24px; }
  .modal-cover { width: 150px; height: 220px; padding: 18px; }
  .modal-cover h2 { margin-top: 50px; font-size: 21px; }
  .modal-content { padding: 28px 22px 25px; }
  .modal-content h1 { font-size: 30px; }
  .modal-actions { flex-direction: column; }
  .modal-actions button { width: 100%; }
  .login-modal, .completion-modal { padding: 32px 21px; }
}

@media (max-width: 390px) {
  .book-card-cover { height: 220px; }
  .book-card-cover h2 { margin-top: 50px; font-size: 19px; }
  .float-card { padding: 11px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
