:root {
  --ink: #243c36;
  --muted: #697770;
  --paper: #f6f7f2;
  --white: #fff;
  --line: #dee4da;
  --green: #274e40;
  --mint: #e2ecdb;
  --lime: #d9ee82;
  --orange: #c96e45;
  --radius: 22px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.wrap {
  width: min(1200px, calc(100% - 80px));
  margin: auto;
}
.header {
  min-height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -1px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 38px;
  height: 38px;
  line-height: 34px;
  text-align: center;
  background: var(--green);
  border-radius: 50%;
  color: var(--lime);
  font-size: 26px;
}
.beta {
  font-size: 9px;
  letter-spacing: 1px;
  background: var(--mint);
  padding: 4px 7px;
  border-radius: 4px;
  margin-left: 4px;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.header nav a {
  text-decoration: none;
}
.header nav form {
  margin: 0;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 14px 21px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition:
    transform 0.15s,
    background 0.15s;
}
.button:hover {
  background: #34614f;
  transform: translateY(-1px);
}
.button span {
  font-size: 20px;
  line-height: 1;
}
.button.secondary {
  background: transparent;
  color: var(--green);
  border-color: #abbfaf;
}
.button.secondary:hover {
  background: var(--mint);
}
.button.small {
  padding: 10px 17px;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 0;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 45px;
  align-items: center;
  padding: 65px 0 55px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
h1,
h2,
h3 {
  line-height: 1.13;
  font-weight: 550;
  letter-spacing: -1.4px;
  margin: 0 0 22px;
}
h1 {
  font-size: clamp(34px, 4.4vw, 58px);
}
h2 {
  font-size: 32px;
}
h3 {
  font-size: 22px;
  letter-spacing: -0.5px;
}
h1 em,
h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: #58704e;
}
p {
  margin: 0 0 20px;
}
.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.85;
  margin: 25px 0 30px;
}
.actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.hero-foot {
  display: flex;
  gap: 25px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 45px;
}
.hero-art {
  min-height: 530px;
  border-radius: 130px 130px 28px 28px;
  background: #e2e8dc;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(1deg);
}
.art-note {
  position: absolute;
  top: 36px;
  font-family: Georgia, serif;
  font-style: italic;
  color: #6e8269;
  font-size: 18px;
}
.exercise-preview {
  width: 300px;
  background: #fffdf8;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 18px 40px #26483314;
  transform: rotate(-5deg);
  margin-top: 15px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 25px;
}
.card-top h3 {
  margin: 0;
}
.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 9px;
  background: var(--mint);
  border-radius: 5px;
  color: var(--green);
}
.sun {
  float: right;
  font-size: 60px;
  color: #be784e;
  line-height: 1;
}
.exercise-preview h2 {
  font-size: 42px;
  letter-spacing: -2px;
}
.exercise-preview p {
  font-size: 12px;
  color: var(--muted);
}
.preview-answer {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: var(--lime);
  padding: 11px 12px;
  margin: 10px 0;
  font-size: 12px;
}
.preview-answer b {
  margin-left: auto;
}
.preview-answer.ghost {
  background: #eeeee6;
  color: #69756c;
}
.progress {
  height: 5px;
  background: #e8ede4;
  overflow: hidden;
  border-radius: 4px;
  margin: 25px 0;
}
.progress i {
  display: block;
  height: 100%;
  background: #829b62;
  transition: width 0.3s;
}
.floating-note {
  position: absolute;
  bottom: 25px;
  right: -10px;
  background: #faf9e9;
  padding: 16px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 22px #2648330b;
  transform: rotate(1deg);
}
.floating-note > span {
  font-size: 30px;
}
.floating-note b {
  font-size: 12px;
}
.floating-note small {
  font-size: 10px;
  color: var(--muted);
}
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.two-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-grid {
  border-top: 1px solid var(--line);
  padding: 35px 0 25px;
  gap: 50px;
}
.feature-grid p {
  font-size: 14px;
  color: var(--muted);
}
.step {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 20px;
}
.feature-grid h3 {
  font-size: 21px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  padding: 25px 0;
  margin-top: 70px;
}
.page-heading {
  margin: 50px 0 34px;
}
.page-heading h1 {
  font-size: 42px;
}
.page-heading .eyebrow {
  margin-bottom: 15px;
}
.page-heading p:not(.eyebrow) {
  color: var(--muted);
  max-width: 690px;
}
.heading-row {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}
.heading-row p {
  margin-bottom: 0;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.tinted {
  background: #e8efdf;
}
.notice {
  background: #ecf0e3;
  border: 1px solid #d7e0c9;
  border-radius: 12px;
  font-size: 14px;
  padding: 18px 22px;
  color: #476045;
}
.notice.compact {
  padding: 12px 20px;
  margin-bottom: 24px;
}
.notice.error,
.error-message,
.errorlist {
  color: #a6362a;
}
.notice.error {
  background: #fff0ea;
  border-color: #ebc7bc;
}
.messages {
  margin-top: 20px;
}
.field {
  margin-bottom: 22px;
}
label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
}
input:not([type="checkbox"], [type="radio"]),
select,
textarea {
  border: 1px solid #cfd8ce;
  background: #fafbf8;
  padding: 12px 14px;
  border-radius: 8px;
  width: 100%;
  color: var(--ink);
  min-height: 46px;
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--green);
}
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.6;
  margin: 20px 0;
}
.help,
.helptext {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 9px;
}
.help ul {
  padding-left: 18px;
}
.errorlist {
  font-size: 13px;
  padding-left: 20px;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  gap: 65px;
}
.side-note {
  padding: 30px 15px;
}
.side-note h2 {
  font-size: 42px;
}
.side-note p {
  color: var(--muted);
  font-size: 14px;
  max-width: 290px;
}
.big-icon {
  font-size: 65px;
  color: var(--orange);
  display: block;
  margin-bottom: 20px;
}
.narrow {
  max-width: 700px;
  margin: 55px auto;
}
.narrow h1 {
  font-size: 43px;
}
.narrow.prose h2 {
  font-size: 26px;
  margin-top: 35px;
}
.prose p {
  color: var(--muted);
}
.accent {
  color: var(--orange);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.next-lesson {
  background: #e6eddc;
  position: relative;
}
.next-lesson h2 {
  font-size: 39px;
}
.next-lesson > p {
  max-width: 440px;
}
.next-lesson .pill {
  background: #d3dfc5;
}
.stat-inline {
  display: flex;
  gap: 17px;
  align-items: center;
  margin: 18px 0 30px;
}
.stat-inline strong {
  font-size: 43px;
  font-weight: 500;
  line-height: 1;
}
.stat-inline span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.panel h2 small {
  font-size: 17px;
  letter-spacing: 0;
  font-weight: 400;
}
.divider {
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.text-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--green);
}
.section-gap {
  margin-top: 26px;
}
.plan-list {
  list-style: decimal-leading-zero;
  padding-left: 30px;
  font-size: 14px;
}
.plan-list li {
  padding: 8px 0 8px 6px;
}
.plan-list small {
  display: block;
  color: var(--muted);
}
.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-size: 14px;
  gap: 20px;
}
.schedule-row:last-of-type {
  margin-bottom: 25px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  color: var(--muted);
}
td,
th {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border: 0;
}
.metric strong {
  display: block;
  font-size: 38px;
  letter-spacing: -1px;
  font-weight: 500;
}
.metric span {
  font-size: 13px;
  color: var(--muted);
}
.block {
  display: block;
}
.lesson-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 35px 0 25px;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 600;
}
.lesson-shell {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(250px, 1fr);
  gap: 25px;
  align-items: start;
}
.lesson-main {
  padding: 38px;
  min-height: 490px;
}
.lesson-main .eyebrow {
  margin: 0;
  font-size: 10px;
}
.lesson-main h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.4;
  white-space: pre-line;
}
.lesson-aside p {
  font-size: 13px;
  color: var(--muted);
}
.lesson-aside h3 {
  font-size: 24px;
}
.choice-list {
  display: grid;
  gap: 12px;
  margin: 25px 0;
}
.choice {
  display: flex;
  gap: 15px;
  text-align: left;
  border: 1px solid #d5ddce;
  background: #fafbf6;
  border-radius: 12px;
  padding: 16px;
  align-items: center;
  color: var(--ink);
}
.choice:hover {
  background: var(--mint);
  border-color: #95aa8a;
}
.choice .letter {
  font-size: 12px;
  border: 1px solid #c7d3be;
  border-radius: 6px;
  padding: 2px 7px;
}
.question-meta {
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0;
}
.feedback {
  background: #edf1e5;
  border-radius: 12px;
  padding: 20px;
  margin: 22px 0;
  white-space: pre-line;
  font-size: 14px;
}
.feedback.wrong {
  background: #fbf0e8;
}
.prose-output {
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 20px;
}
.result-score {
  font-size: 55px;
  line-height: 1.2;
  margin: 20px 0;
}
.result-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.result-item h3 {
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.5;
  margin-bottom: 10px;
  white-space: pre-line;
}
.result-item p {
  font-size: 13px;
  margin: 7px 0;
  white-space: pre-line;
}
.lesson-main textarea {
  margin-bottom: 15px;
}
.lesson-main audio {
  width: 100%;
  margin: 15px 0;
}
details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
details {
  margin: 20px 0;
}
.audio-form {
  margin: 20px 0;
}
.audio-form input {
  font-size: 12px;
}
.hidden,
[hidden] {
  display: none !important;
}
.error-message:empty {
  display: none;
}
.junior .lesson-main {
  background: #fffdf3;
  border: 2px solid #d5e6a3;
}
.junior .choice {
  min-height: 68px;
  font-size: 19px;
}
.junior .progress {
  height: 9px;
}
.junior .lesson-main h2 {
  font-size: 30px;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 70px;
  }
  .hero-art {
    min-height: 570px;
  }
  .hero h1 {
    font-size: 63px;
  }
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 44px);
  }
  .hero {
    gap: 24px;
  }
  .hero-art {
    min-height: 480px;
  }
  .exercise-preview {
    width: 265px;
  }
  .floating-note {
    right: 0;
    font-size: 12px;
  }
  .hero-foot {
    flex-direction: column;
    gap: 3px;
    margin-top: 28px;
  }
  .form-layout {
    gap: 30px;
  }
  .hero h1 {
    font-size: 45px;
  }
  .lesson-shell {
    grid-template-columns: 1fr;
  }
  .lesson-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .lesson-aside .section-gap {
    margin: 0;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header {
    min-height: 85px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px 0;
  }
  .brand {
    font-size: 20px;
  }
  .header nav {
    gap: 14px;
    font-size: 12px;
  }
  .header nav .button {
    padding: 7px 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 35px;
    gap: 30px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .hero-art {
    min-height: 450px;
    margin: 0 12px;
  }
  .hero-foot {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px 18px;
  }
  .lead {
    font-size: 15px;
  }
  .three-grid,
  .two-grid,
  .dashboard-grid,
  .form-layout,
  .lesson-aside {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    gap: 22px;
  }
  .feature-grid article {
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
  }
  .side-note {
    display: none;
  }
  .page-heading {
    margin-top: 30px;
  }
  .page-heading h1,
  .narrow h1 {
    font-size: 34px;
  }
  .heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .panel {
    padding: 23px;
    border-radius: 17px;
  }
  .next-lesson h2 {
    font-size: 33px;
  }
  .footer {
    flex-direction: column;
    gap: 8px;
    margin-top: 45px;
  }
  .lesson-top {
    flex-wrap: wrap;
    font-size: 12px;
  }
  .lesson-main {
    padding: 23px;
  }
  .lesson-main h2 {
    font-size: 23px;
  }
  .lesson-main .card-top {
    flex-wrap: wrap;
  }
  .narrow {
    margin: 30px auto;
  }
  .metric strong {
    font-size: 33px;
  }
  .metric {
    padding: 20px;
  }
  .three-grid:has(.metric) {
    gap: 12px;
  }
  .result-score {
    font-size: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
