.home-page {
  overflow: clip;
}

.home-page h1,
.home-page h2,
.home-page h3 {
  color: #182333;
}

.home-page h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.15;
}

.home-page p {
  line-height: 1.65;
}

.home-section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.home-hero {
  background: #f3f7ff;
  border-bottom: 1px solid #dfe8f8;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(2rem, 4.6vw, 4.5rem);
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.home-hero h1 {
  max-width: 10ch;
  font-size: clamp(2.9rem, 5.3vw, 4.85rem);
  line-height: 1.035;
  letter-spacing: -0.057em;
  font-weight: 760;
}

.home-hero-copy > p:not(.home-small-note) {
  max-width: 29rem;
  margin-block: 1.65rem 1.8rem;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  color: #394963;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.home-secondary-action,
.home-inline-link {
  color: #123e9f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.home-secondary-action span,
.home-inline-link span {
  display: inline-block;
  margin-left: 0.3em;
  text-decoration: none;
}

.home-page .home-small-note {
  margin: 0.85rem 0 0;
  color: #52627b;
  font-size: 0.88rem;
}

.home-hero-art,
.home-reading img,
.home-continuity-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 14px 38px rgba(36, 68, 118, 0.12);
}

.home-hero-art {
  border: 5px solid #fff;
}

.home-section-intro {
  margin-bottom: 2.25rem;
}

.home-section-intro h2 {
  max-width: none;
}

.home-section-intro p {
  max-width: 62rem;
  margin: 0.9rem 0 0;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 2rem;
}

.home-feature {
  display: flex;
  gap: 0.9rem;
  min-width: 0;
  padding-block: 1.45rem;
  border-top: 1px solid #ccd8ed;
}

.home-feature-image {
  display: block;
  flex: 0 0 4.25rem;
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
  border: 1px solid #d4dfed;
  border-radius: 0.75rem;
  background: #f3f7ff;
}

.home-feature h3 {
  font-size: 1.06rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.home-feature p {
  margin: 0;
  font-size: 0.94rem;
}

.home-path {
  background: #f7f6f2;
  border-block: 1px solid #eae7df;
}

.home-path-layout,
.home-practice,
.home-reading-layout,
.home-continuity-layout,
.home-premium {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7.5rem);
}

.home-path-copy > p,
.home-practice > div > p,
.home-reading-layout > div > p,
.home-continuity-layout > div > p,
.home-premium > div > p,
.home-resources > div > p {
  margin-block: 1.15rem 1.5rem;
  max-width: 36rem;
}

.home-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.home-steps li {
  padding-block: 0.9rem;
  border-top: 1px solid #d8dde6;
}

.home-steps strong,
.home-steps span {
  display: block;
  line-height: 1.5;
}

.home-steps strong {
  font-size: 1rem;
}

.home-steps span {
  margin-top: 0.25rem;
  color: #526073;
  font-size: 0.92rem;
}

.home-app-figure {
  margin: 0;
  justify-self: center;
  width: min(100%, 390px);
}

.home-app-crop {
  overflow: hidden;
  border: 1px solid #cdd9e9;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 16px 42px rgba(32, 58, 104, 0.13);
}

.home-course-figure .home-app-crop {
  max-height: 470px;
}

.home-app-crop img {
  display: block;
  width: 100%;
  height: auto;
}

.home-app-figure figcaption {
  margin-top: 0.7rem;
  color: #59657a;
  text-align: center;
  font-size: 0.83rem;
}

.home-levels-wrap {
  margin-top: clamp(4rem, 7vw, 6rem);
  padding-top: 2.5rem;
  border-top: 1px solid #d6dce6;
}

.home-levels-wrap h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.home-levels-wrap > p {
  margin: 0.65rem 0 1.8rem;
}

.home-levels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-levels li {
  padding: 0.75rem 1rem 0.6rem;
  border-left: 3px solid #c1d4f4;
}

.home-levels li:first-child {
  border-color: #0b5cff;
}

.home-levels strong,
.home-levels span {
  display: block;
}

.home-levels strong {
  color: #1549b7;
  font-size: 1.04rem;
}

.home-levels span {
  margin-top: 0.55rem;
  color: #4f5d6f;
  font-size: 0.86rem;
  line-height: 1.45;
}

.home-practice {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.home-practice > div {
  grid-column: 2;
  grid-row: 1;
}

.home-quiz-figure {
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 360px);
}

.home-practice-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
}

.home-practice-list li {
  padding: 0.9rem 0;
  border-top: 1px solid #d8e1ef;
  color: #526073;
}

.home-practice-list strong {
  color: #182333;
}

.home-reading {
  background: #fff2e8;
  border-block: 1px solid #f2e1d2;
}

.home-reading-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.home-reading-layout .home-reading-library {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-block: 1.35rem;
  padding-left: 1rem;
  border-left: 4px solid #0b5cff;
  color: #394963;
}

.home-reading-library strong {
  color: #1646a6;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.home-reading-action {
  margin-top: 0.45rem;
}

.home-resources {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.home-resource-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 1.5rem;
}

.home-resource-links a {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #cdd8e9;
  color: #1549b7;
  font-weight: 650;
  line-height: 1.4;
}

.home-resource-links a:hover,
.home-inline-link:hover {
  color: #0b5cff;
}

.home-continuity {
  background: #edf4ff;
}

.home-platform-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.home-store-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home-app-store-link,
.home-play-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 0.35rem;
}

.home-app-store-link img,
.home-play-link img {
  display: block;
  width: auto;
  height: 40px;
}

.home-login-action {
  white-space: nowrap;
}

.home-continuity-image {
  border: 5px solid #fff;
}

.home-premium {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  border-bottom: 1px solid #dbe1e9;
}

.home-premium-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 2rem;
  border-radius: 1.15rem;
  background: #f0f4ff;
}

.home-premium-side strong {
  font-size: 1.2rem;
}

.home-premium-side span {
  color: #4f5d72;
  line-height: 1.5;
}

.home-premium-side .button {
  margin-top: 0.65rem;
}

.home-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.home-faq-list details {
  border-bottom: 1px solid #d4deeb;
}

.home-faq-list details:first-child {
  border-top: 1px solid #d4deeb;
}

.home-faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
  padding-block: 0.75rem;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.home-faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq-list summary span:last-child {
  color: #0b5cff;
  font-size: 1.45rem;
  font-weight: 400;
}

.home-faq-list details[open] summary span:last-child {
  transform: rotate(45deg);
}

.home-faq-list p {
  margin: 0 2rem 1.15rem 0;
}

.home-final-cta {
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
  background: var(--blue);
}

.home-final-cta h2,
.home-final-cta p,
.home-final-cta a:not(.button) {
  color: #fff;
}

.home-final-cta h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.home-final-cta p {
  margin-block: 1rem 1.5rem;
  color: #e4ecff;
}

.home-final-cta .button {
  background: #fff;
  color: #123a8f;
  box-shadow: 0 3px 0 #bfcef3;
}

.home-final-cta .button:hover {
  background: #eaf1ff;
  color: #123a8f;
}

.home-final-cta .button:focus-visible,
.home-final-cta a:not(.button):focus-visible {
  outline-color: #fff;
}

.home-final-cta a:not(.button) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 900px) {
  .home-hero-inner,
  .home-path-layout,
  .home-practice,
  .home-reading-layout,
  .home-continuity-layout,
  .home-premium,
  .home-resources,
  .home-faq {
    grid-template-columns: 1fr;
  }

  .home-hero h1 {
    max-width: 15ch;
  }

  .home-hero-art {
    max-width: 700px;
  }

  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-course-figure {
    width: min(100%, 420px);
  }

  .home-practice {
    gap: 2.5rem;
  }

  .home-practice > div,
  .home-quiz-figure {
    grid-column: 1;
    grid-row: auto;
  }

  .home-levels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 0;
  }

  .home-premium-side {
    width: min(100%, 420px);
  }
}

@media (max-width: 600px) {
  .home-platform-links {
    flex-direction: column;
    align-items: center;
  }

  .home-section {
    padding-block: 4rem;
  }

  .home-hero-inner {
    gap: 2rem;
    padding-block: 3.5rem 3rem;
  }

  .home-hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.5rem);
  }

  .home-hero-copy > p:not(.home-small-note) {
    margin-block: 1.2rem 1.5rem;
  }

  .home-actions .button {
    width: 100%;
  }

  .home-feature-grid,
  .home-resource-links {
    grid-template-columns: 1fr;
  }

  .home-feature {
    padding-block: 1.05rem;
  }

  .home-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-levels li {
    padding-inline: 0.75rem;
  }

  .home-reading img,
  .home-continuity-image {
    border-radius: 0.9rem;
  }

  .home-faq-list summary {
    min-height: 4rem;
  }
}

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