/* Local section treatment for the school homepage. Shared tokens come from school-theme.css. */
body.home-premium .steps,
body.home-premium .testimonials,
body.home-premium .pricing-preview {
  padding-block: clamp(64px, 8vw, 96px);
  background: var(--school-paper, #faf9f6);
  color: var(--school-text, #172033);
}

body.home-premium .steps {
  padding-block: clamp(64px, 8vw, 96px) !important;
  background: var(--school-paper, #faf9f6) !important;
  background-image: none !important;
  color: var(--school-text, #172033) !important;
}

body.home-premium .steps::before {
  content: none !important;
}

body.home-premium .steps .container,
body.home-premium .testimonials .container,
body.home-premium .pricing-preview .container {
  max-width: 1184px;
}

body.home-premium .steps .section-title,
body.home-premium .testimonials .section-title,
body.home-premium .pricing-preview .section-title {
  max-width: 760px;
  margin-inline: auto;
  color: var(--school-ink, #10243f);
  font-size: clamp(32px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
  text-align: center;
}

body.home-premium .steps .section-title span {
  color: var(--school-ink, #10243f);
  background: none;
  -webkit-text-fill-color: currentColor;
}

body.home-premium .steps-grid {
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 24px !important;
  row-gap: 24px;
  margin-top: 36px;
  margin-left: 0;
  border-top: 0;
}

body.home-premium .step-card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto 1fr;
  align-items: start;
  min-height: 240px;
  padding: 28px !important;
  border: 1px solid var(--school-line, rgba(16, 36, 63, .12));
  border-radius: 36px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(16, 36, 63, .035) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  gap: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.home-premium .step-card:hover {
  border-color: rgba(16, 36, 63, .2);
  box-shadow: 0 6px 18px rgba(16, 36, 63, .055) !important;
}

body.home-premium .step-card:not(:last-child)::after {
  content: none !important;
}

body.home-premium .step-number {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e9eef8 !important;
  color: var(--school-blue, #2457c5) !important;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

body.home-premium .step-number::before {
  content: none !important;
}

body.home-premium .step-card h3 {
  margin: 0;
  min-height: 2.6em;
  color: var(--school-ink, #10243f);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

body.home-premium .step-card p {
  max-width: 34ch;
  margin: 0;
  color: var(--school-muted, #596579);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.home-premium .steps .section-actions {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  justify-content: center !important;
  margin: 32px auto 0 !important;
  padding-inline: 0 !important;
  text-align: center !important;
  justify-self: center !important;
}

body.home-premium .steps .section-actions .btn-primary {
  position: static !important;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 280px);
  min-height: 52px;
  margin-inline: auto !important;
  padding-inline: 24px !important;
  width: auto !important;
  max-width: 100%;
  align-self: center;
  border: 1px solid var(--school-blue, #2457c5) !important;
  border-radius: 999px !important;
  background: var(--school-blue, #2457c5) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.home-premium .testimonials {
  padding-block: clamp(64px, 8vw, 96px) !important;
  background-color: #fff !important;
  background-image: none !important;
  border-block: 1px solid var(--school-line, rgba(16, 36, 63, .12)) !important;
}

body.home-premium .testimonials .section-title {
  text-align: left;
  margin-left: 0;
}

body.home-premium .testimonials .section-lead {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--school-muted, #596579);
  font-size: 17px;
  line-height: 1.6;
  text-align: left !important;
}

body.home-premium .testimonials-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(100%, 1160px);
  gap: 24px;
  margin: 32px 0 0;
}

body.home-premium .testimonial-card {
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 24px !important;
  border: 1px solid var(--school-line, rgba(16, 36, 63, .12)) !important;
  border-top-width: 1px !important;
  border-bottom-width: 1px !important;
  border-radius: 36px !important;
  background: var(--school-paper, #faf9f6) !important;
  box-shadow: 0 2px 8px rgba(16, 36, 63, .035) !important;
  align-content: start;
}

body.home-premium .testimonials .testimonials-grid .testimonial-card {
  border: 1px solid var(--school-line, rgba(16, 36, 63, .12)) !important;
  border-top: 1px solid var(--school-line, rgba(16, 36, 63, .12)) !important;
  background: #f4f1e9 !important;
}

body.home-premium .testimonial-photo-slot {
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 28px !important;
  background-color: #f2eee5 !important;
  background-image: none !important;
  color: var(--school-muted, #596579);
}

body.home-premium .testimonial-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home-premium .testimonial-piece {
  display: block !important;
  position: absolute;
  z-index: 2;
  top: 36px;
  right: 32px;
  width: 52px;
  height: auto;
  filter: none;
  transform: none;
  pointer-events: none;
}

body.home-premium .testimonials .testimonial-card--artem .testimonial-piece,
body.home-premium .testimonials .testimonial-card--alisa .testimonial-piece {
  top: clamp(30px, 2.5vw, 36px);
  right: clamp(28px, 2.2vw, 32px);
  width: clamp(40px, 4vw, 52px);
  filter: none;
  transform: none;
}

body.home-premium .testimonial-text {
  margin: 0;
  color: var(--school-text, #172033);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
}

body.home-premium .testimonial-author {
  gap: 4px;
  color: var(--school-ink, #10243f);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

body.home-premium .testimonial-author span {
  color: var(--school-muted, #596579);
  font-size: 14px;
  font-weight: 400;
}

body.home-premium .testimonials-mobile-nav {
  gap: 12px;
  margin-top: 20px;
}

body.home-premium .pricing-preview {
  padding-block: clamp(64px, 8vw, 96px) !important;
  background-color: #f4f1e9 !important;
  background-image: none !important;
}

body.home-premium .pricing-preview .section-title + .section-lead {
  max-width: 620px;
  margin: 12px auto 0;
  color: var(--school-muted, #596579);
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}

body.home-premium .pricing-preview .container > h3.section-title {
  display: table;
  max-width: max-content;
  margin: 16px auto 0;
  padding: 8px 16px;
  border-radius: var(--school-radius-button, 999px);
  background: #e9eef8;
  color: var(--school-ink, #10243f);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
}

body.home-premium .pricing-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

body.home-premium .pricing-preview-card {
  min-width: 0;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--school-line, rgba(16, 36, 63, .12));
  border-radius: 36px !important;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 36, 63, .035) !important;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.home-premium .pricing-preview-card:nth-child(2) {
  border-color: rgba(36, 87, 197, .26);
  background: #f8faff;
  box-shadow: 0 4px 14px rgba(94, 65, 18, .07) !important;
  transform: none;
}

body.home-premium .pricing-preview-card:nth-child(2)::after {
  content: none !important;
}

body.home-premium .pricing-preview-card.scroll-active {
  transform: none;
}

body.home-premium .pricing-preview-label {
  color: var(--school-muted, #596579);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

body.home-premium .pricing-preview-price {
  color: var(--school-ink, #10243f);
  font-size: clamp(25px, 2.3vw, 31px);
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

body.home-premium .pricing-preview-meta {
  color: var(--school-muted, #596579);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

body.home-premium .pricing-preview-card > a {
  margin-top: auto;
  min-height: 52px;
  justify-content: center;
  border-radius: var(--school-radius-button, 999px);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

body.home-premium .pricing-preview-card > a.btn-primary {
  background: var(--school-blue, #2457c5);
  color: #fff;
  border-color: var(--school-blue, #2457c5);
  box-shadow: none;
}

body.home-premium .pricing-preview-card > a.btn-secondary {
  background: #fff;
  color: var(--school-ink, #10243f);
  border: 1px solid var(--school-line, rgba(16, 36, 63, .12));
}

body.home-premium .pricing-preview .section-actions {
  margin-top: 32px;
}

/* Parent reading carousel — real school content, no decorative grid or loud color blocks. */
body.home-premium .parent-guides {
  padding-block: clamp(64px, 8vw, 96px);
  background: #fff;
  background-image: none !important;
  color: var(--school-text, #172033);
}

body.home-premium .parent-guides__top {
  align-items: end;
  margin-bottom: 24px;
}

body.home-premium .parent-guides__heading h2 {
  max-width: 760px;
  color: var(--school-ink, #10243f);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
}

body.home-premium .parent-guides__heading p {
  color: var(--school-muted, #596579);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

body.home-premium .parent-guides__controls {
  gap: 8px;
}

body.home-premium .parent-guides__counter {
  color: var(--school-muted, #596579);
  font-size: 14px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

body.home-premium .parent-guides__counter strong {
  color: var(--school-ink, #10243f);
  font-size: 14px;
  font-weight: 600;
}

body.home-premium .parent-guide-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--school-line, rgba(16,36,63,.12));
  border-radius: var(--school-radius-button, 999px) !important;
  background: #fff;
  color: var(--school-ink, #10243f);
  transition: background-color 160ms ease, border-color 160ms ease;
}

body.home-premium .parent-guide-arrow:hover,
body.home-premium .parent-guide-arrow:focus-visible {
  border-color: rgba(36,87,197,.32);
  background: #e9eef8;
}

body.home-premium .parent-guides__viewport {
  border: 1px solid var(--school-line, rgba(16,36,63,.12));
  border-radius: 40px !important;
  background: #faf9f6;
  box-shadow: 0 3px 12px rgba(16,36,63,.04);
}

body.home-premium .parent-guides__viewport:focus-visible {
  outline-color: var(--school-blue, #2457c5);
}

body.home-premium .parent-guide-slide {
  grid-template-columns: 72px minmax(0, 1fr) minmax(240px, .42fr);
  min-height: 340px;
}

body.home-premium .parent-guide-slide__index {
  padding: 36px 20px;
  border-right-color: var(--school-line, rgba(16,36,63,.12));
  color: var(--school-muted, #596579);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

body.home-premium .parent-guide-slide__copy {
  padding: 40px clamp(24px, 4vw, 56px);
}

body.home-premium .parent-guide-slide__copy > span {
  color: var(--school-muted, #596579);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

body.home-premium .parent-guide-slide h3 {
  margin: 12px 0;
  color: var(--school-ink, #10243f);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
}

body.home-premium .parent-guide-slide p {
  margin-bottom: 20px;
  color: var(--school-muted, #596579);
  font-size: 16px;
  line-height: 1.6;
}

body.home-premium .parent-guide-slide a {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--school-radius-button, 999px);
  background: var(--school-blue, #2457c5);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 160ms ease;
}

body.home-premium .parent-guide-slide a:hover {
  background: #1d469f;
}

body.home-premium .parent-guide-slide a svg {
  width: 18px;
}

body.home-premium .parent-guide-slide__chess {
  margin: 20px;
  border-radius: 32px;
  background: #f1eee8;
  color: var(--school-ink, #10243f);
}

body.home-premium .parent-guide-slide__chess::before {
  display: none;
}

body.home-premium .parent-guide-slide__chess span {
  color: var(--school-ink, #10243f);
  font-size: clamp(96px, 12vw, 168px);
  text-shadow: none;
}

body.home-premium .parent-guide-slide__chess small {
  right: 20px;
  bottom: 18px;
  color: var(--school-muted, #596579);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

body.home-premium .parent-guide-slide__chess--green,
body.home-premium .parent-guide-slide__chess--amber,
body.home-premium .parent-guide-slide__chess--navy {
  background: #f1eee8;
  color: var(--school-ink, #10243f);
}

body.home-premium .parent-guides__dots {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 8px;
  margin-top: 20px;
}

body.home-premium .parent-guides__dots button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--school-line, rgba(16,36,63,.12));
  border-radius: 50% !important;
  background: #fff;
  transition: background-color 160ms ease, border-color 160ms ease;
}

body.home-premium .parent-guides__dots button.is-active {
  border-color: var(--school-blue, #2457c5);
  background: var(--school-blue, #2457c5);
}

@media (max-width: 900px) {
  body.home-premium .steps-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  body.home-premium .pricing-preview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.home-premium .step-card,
  body.home-premium .pricing-preview-card {
    min-height: 0;
    padding: 24px;
  }

  body.home-premium .steps-grid {
    margin-top: 28px;
  }

  body.home-premium .pricing-preview-grid {
    max-width: 620px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  body.home-premium .steps,
  body.home-premium .testimonials,
  body.home-premium .pricing-preview {
    padding-block: 56px;
  }

  body.home-premium .steps .section-title,
  body.home-premium .testimonials .section-title,
  body.home-premium .pricing-preview .section-title {
    font-size: 32px;
    text-align: left;
  }

  body.home-premium .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
    margin: 24px 0 0;
  }

  body.home-premium .testimonial-card {
    gap: 16px;
    padding: 20px !important;
    border-radius: 32px !important;
  }

  body.home-premium .testimonial-photo-slot {
    border-radius: 24px !important;
  }

  body.home-premium .testimonial-piece {
    top: 30px;
    right: 28px;
    width: 40px;
  }

  body.home-premium .pricing-preview .container > h3.section-title {
    margin-left: 0;
    text-align: left;
  }

  body.home-premium .pricing-preview .section-title + .section-lead {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 760px) {
  body.home-premium .parent-guides {
    padding-block: 56px;
  }

  body.home-premium .parent-guides__top {
    margin-bottom: 20px;
  }

  body.home-premium .parent-guide-slide {
    grid-template-columns: 1fr;
  }

  body.home-premium .parent-guide-slide__index {
    padding: 20px 24px 0;
    border-right: 0;
  }

  body.home-premium .parent-guide-slide__copy {
    padding: 20px 24px 24px;
  }

  body.home-premium .parent-guide-slide__chess {
    grid-column: 1;
    min-height: 160px;
    margin: 0 24px 24px;
    border-radius: 28px;
  }

  body.home-premium .parent-guide-slide h3 {
    font-size: 30px;
  }

  body.home-premium .parent-guides__dots {
    justify-content: center;
  }
}



/* Homepage layout and accents */
body.home-premium {
  --homepage-blue: #2459c7;
}

body.home-premium .header .nav {
  position: relative;
  justify-content: flex-end !important;
}

body.home-premium .header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

body.home-premium .header .nav-links {
  gap: 12px !important;
  margin: 0;
}

body.home-premium .header .nav-links a {
  padding-inline: 6px !important;
  font-size: 13px !important;
}

@media (max-width: 1399px) {
  body.home-premium.school-site .header .nav-links {
    display: none !important;
  }

  body.home-premium.school-site .header .hamburger {
    display: flex !important;
  }

  body.home-premium .header .nav-mobile.active {
    display: block !important;
  }
}

body.home-premium .hero .hero-badge--large {
  display: block;
  font-size: clamp(16px, 2.1vw, 24px) !important;
  font-weight: 850;
  color: #10243f;
}

body.home-premium .hero-badge--large .badge-icon {
  display: none;
}

body.home-premium .hero-card-label {
  color: var(--homepage-blue) !important;
  font-size: clamp(13px, 1.5vw, 19px) !important;
  font-weight: 850;
}

body.home-premium :is(.hero-image.hero-stage .hero-piece, .outcome-story__piece, .teacher-photo-piece, .testimonials .testimonial-piece) {
  filter: grayscale(1) sepia(1) hue-rotate(176deg) saturate(3) brightness(.82) !important;
}

body.home-premium :is(.step-number, .teacher-point > span, .child-journey__number, .proof-label, .parent-guides__heading p, .parent-guide-slide__index, .parent-guides__counter strong) {
  color: var(--homepage-blue) !important;
}

body.home-premium .child-journey__tab.is-active .child-journey__number {
  color: #fff !important;
  background: var(--homepage-blue);
}

body.home-premium :is(.parent-guides__dots button.is-active, .child-journey__columns li)::before {
  background-color: var(--homepage-blue);
}

body.home-premium .homepage-learning-pair {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

body.home-premium .homepage-learning-pair > .advantages {
  background: #edf3ff;
  border-radius: 24px;
  padding: clamp(20px, 3vw, 38px) 0;
}

body.home-premium .homepage-learning-pair .advantages-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

body.home-premium .homepage-learning-pair .advantage-card {
  padding: clamp(12px, 2vw, 20px);
}

@media (min-width: 1000px) {
  body.home-premium .homepage-learning-pair {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding-block: 48px;
  }

  body.home-premium .homepage-learning-pair .outcome-story__canvas {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.home-premium .homepage-learning-pair :is(.outcome-story__center, .outcome-story__item) {
    grid-column: 1 !important;
  }
}

body.home-premium .trial-band #inlineTrialForm {
  display: grid;
  gap: 12px;
  width: min(100%, 540px);
  margin: 0;
  padding: clamp(16px, 3vw, 28px);
  border-radius: 20px;
  background: #fff;
  color: #10243f;
}

body.home-premium #inlineTrialForm .form-privacy,
body.home-premium #inlineTrialForm .form-status {
  color: #344762 !important;
  margin: 0;
}

body.home-premium #inlineTrialForm .form-status[data-state="error"] {
  color: #a62d33 !important;
}

body.home-premium #inlineTrialForm .form-status:empty {
  display: none;
}

body.home-premium .result-section .result-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr)) !important;
}

body.home-premium .result-section .result-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  align-content: start;
  text-align: center;
}

body.home-premium .result-card img {
  width: min(100%, 120px);
  height: auto;
  border-radius: 12px;
}

body.home-premium .learning-timeline {
  padding-block: clamp(44px, 7vw, 90px);
  background: #f2f6ff;
}

body.home-premium .learning-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.home-premium .learning-timeline-grid article {
  padding: clamp(14px, 2.5vw, 24px);
  border: 1px solid #d8e2f5;
  border-radius: 20px;
  background: #fff;
}

body.home-premium .learning-timeline-grid article > span {
  color: var(--homepage-blue);
  font-size: 28px;
  font-weight: 850;
}

body.home-premium .testimonial-card {
  display: flex;
  flex-direction: column;
  background: #e9f0fb;
  border: 1px solid #d5e2f7;
}

body.home-premium .testimonial-text,
body.home-premium .testimonial-author {
  padding: 16px;
  border-radius: 14px;
}

body.home-premium .testimonial-text {
  background: #fff;
  flex: 1;
}

body.home-premium .testimonial-author {
  background: #dbe8fb;
}

@media (max-width: 760px) {
  body.home-premium .homepage-learning-pair {
    width: 100%;
  }

  body.home-premium .homepage-learning-pair .advantages {
    margin-inline: 16px;
  }

  body.home-premium .learning-timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen {
  body.home-premium :is(.step-card, .teacher-point, .testimonial-card, .result-card, .learning-timeline-grid article) {
    transition: transform .3s ease, border-color .3s ease;
  }

  body.home-premium :is(.step-card, .teacher-point, .testimonial-card, .result-card, .learning-timeline-grid article):hover {
    transform: translateY(-4px);
    border-color: #a9c3ed;
  }

  body.home-premium .hero-badge--large,
  body.home-premium .hero-title {
    animation: homepage-intro .55s ease-out both;
  }

  body.home-premium .hero-title {
    animation-delay: .09s;
  }

  @keyframes homepage-intro {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

body.home-premium .result-section .result-grid {
  grid-template-rows: auto;
}

body.home-premium .result-section .result-card {
  grid-column: auto;
  grid-row: auto;
  grid-template: auto auto / minmax(0, 1fr);
  min-height: 0;
  gap: 12px;
  padding: 18px !important;
  border-radius: 20px !important;
  background: #eef4ff !important;
}

body.home-premium .result-section .result-card h3 {
  grid-area: auto;
  max-width: none;
  margin: 0;
  font-size: 1.05rem !important;
}

body.home-premium .testimonials .testimonials-grid .testimonial-card {
  background: #e9f0fb !important;
  border-color: #d5e2f7 !important;
}

body.home-premium .parent-guides__dots button.is-active {
  background: var(--homepage-blue) !important;
}

@media (min-width: 1000px) {
  body.home-premium .homepage-learning-pair .outcome-story__canvas {
    width: 100%;
  }

  body.home-premium .homepage-learning-pair .outcome-story__item {
    min-height: 0;
    padding-block: 13px;
  }
}

body.home-premium .header .header-cta {
  width: auto !important;
  min-width: 0 !important;
}

body.home-premium .homepage-learning-pair > .advantages > .container {
  width: 100% !important;
  padding-inline: clamp(14px, 2.5vw, 26px);
}

body.home-premium .homepage-learning-pair .advantage-card {
  display: block;
  grid-column: auto !important;
  grid-row: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

body.home-premium .homepage-learning-pair .advantage-icon {
  color: var(--homepage-blue) !important;
}

body.home-premium .learning-timeline .section-lead {
  margin-bottom: 24px;
}

@media (max-width: 760px) {
  body.home-premium .homepage-learning-pair .advantages-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

body.home-premium.school-site .header .header-cta.btn-primary {
  width: auto !important;
  min-width: 0 !important;
}

body.home-premium .homepage-learning-pair .advantage-card:last-child {
  display: block !important;
  grid-template-columns: none;
}

body.home-premium .homepage-learning-pair .advantage-card h3,
body.home-premium .learning-timeline-grid h3,
body.home-premium .result-section .result-card h3 {
  overflow-wrap: anywhere;
}

body.home-premium .result-section .result-card:is(:first-child, :not(:first-child)) {
  grid-column: auto;
  grid-row: auto;
  grid-template: auto auto / minmax(0, 1fr);
}

body.home-premium .result-section .result-card:is(:first-child, :not(:first-child)) h3 {
  grid-area: auto;
  min-width: 0;
}

body.home-premium #inlineTrialForm button.btn-primary {
  background: var(--homepage-blue) !important;
  color: #fff !important;
  border-color: var(--homepage-blue) !important;
}

body.home-premium #inlineTrialForm button.btn-primary:focus-visible {
  outline: 2px solid var(--homepage-blue) !important;
  outline-offset: 3px;
}

@media (max-width: 360px) {
  body.home-premium .learning-timeline-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1400px) {
  body.home-premium.school-site .header .nav {
    gap: 12px !important;
  }

  body.home-premium.school-site .header .nav-links {
    gap: 8px !important;
  }
}

@media screen {
  body.home-premium [data-premium-reveal].is-pending {
    opacity: 0;
    translate: 0 20px;
  }

  body.home-premium [data-premium-reveal].is-revealed {
    animation: homepage-scroll-in .62s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms) both;
  }

  body.home-premium :is(.steps-grid, .testimonials-grid, .result-grid, .learning-timeline-grid) > :nth-child(2) {
    --reveal-delay: 80ms;
  }

  body.home-premium :is(.steps-grid, .result-grid, .learning-timeline-grid) > :nth-child(3) {
    --reveal-delay: 160ms;
  }

  body.home-premium .hero-stage.is-revealed .hero-piece {
    animation: homepage-piece-drift 4.2s ease-in-out var(--piece-delay, 0ms) 3;
  }

  body.home-premium .hero-stage .hero-piece--rook {
    --piece-delay: 350ms;
  }

  body.home-premium .hero-stage .hero-piece--pawn {
    --piece-delay: 700ms;
  }

  body.home-premium .child-journey__panel.is-active:not([hidden]) {
    animation: homepage-scroll-in .36s ease-out both;
  }

  @keyframes homepage-scroll-in {
    from { opacity: 0; translate: 0 20px; }
    to { opacity: 1; translate: 0 0; }
  }

  @keyframes homepage-piece-drift {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -9px; }
  }
}

body.home-premium .steps .step-card {
  grid-template-columns: 48px minmax(0, 1fr) !important;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
}

body.home-premium .step-illustration {
  grid-column: 1 / -1;
  grid-row: 1;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 2;
  background-color: #eaf0fa;
}

body.home-premium .step-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home-premium .steps .step-number {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
}

body.home-premium .steps .step-card h3 {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  align-self: center;
}

body.home-premium .steps .step-card p {
  grid-column: 1 / -1;
  grid-row: 3;
}

@media (max-width: 760px) {
  body.home-premium .steps .step-card {
    grid-template-columns: 32px minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto;
  }

  body.home-premium .steps .step-illustration {
    border-radius: 14px;
    margin-bottom: 8px;
  }
}

@media (hover: hover) {
  body.home-premium .step-illustration img {
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  }

  body.home-premium .step-card:hover .step-illustration img {
    transform: scale(1.045);
  }
}

body.home-premium .hero-image.hero-stage--mascot .hero-piece--knight {
  width: min(27%, 190px);
}

@media (min-width: 761px) {
  body.home-premium .hero-stage--mascot .hero-child-slot {
    bottom: 120px;
  }
}
