:root {
  color: #242160;
  background: #fff9ef;
  font-family: "Trebuchet MS", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #26206b;
  --ink-soft: #565476;
  --purple: #6548d9;
  --purple-dark: #4e35b6;
  --purple-light: #f2efff;
  --cream: #fff9ee;
  --sky: #dff4ff;
  --white: #ffffff;
  --line: #eadcc5;
  --shadow: 0 20px 54px rgba(73, 70, 150, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-width {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--white);
  background: var(--purple-dark);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 16px 0;
}

.site-header__inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 66px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 30px rgba(54, 76, 130, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  position: relative;
  z-index: 2;
  width: 132px;
  height: 54px;
  display: grid;
  place-items: center;
}

.brand img {
  width: 124px;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(48, 37, 93, 0.18));
}

.header-panel {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.primary-nav,
.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.primary-nav {
  min-width: 0;
  gap: 4px;
}

.primary-nav__link {
  padding: 10px 13px;
  border-radius: 12px;
  color: #36345a;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  color: var(--purple-dark);
  background: rgba(242, 239, 255, 0.72);
}

.primary-nav__link.is-active {
  color: var(--purple);
  background: var(--purple-light);
}

@media (min-width: 1041px) {
  .primary-nav {
    transform: translateX(24px);
  }
}

.header-actions {
  flex: 0 0 auto;
  gap: 12px;
}

.language-switcher {
  gap: 0;
  padding: 3px 5px;
  border: 1px solid rgba(101, 72, 217, 0.12);
  border-radius: 14px;
  background: rgba(242, 239, 255, 0.78);
}

.language-button {
  min-width: 38px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: #5e5a79;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-button.is-active {
  color: var(--white);
  background: var(--purple);
}

.account-button,
.primary-cta,
.journey-card__cta {
  border: 0;
  border-radius: 17px;
  color: var(--white);
  background: var(--purple);
  box-shadow: 0 7px 0 rgba(75, 45, 156, 0.42), 0 12px 24px rgba(81, 50, 163, 0.18);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.account-button {
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

.account-button:hover,
.account-button:focus-visible,
.primary-cta:hover,
.primary-cta:focus-visible,
.journey-card__cta:hover,
.journey-card__cta:focus-visible {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 9px 0 rgba(67, 38, 144, 0.5), 0 16px 30px rgba(81, 50, 163, 0.26);
}

.account-button:active,
.primary-cta:active,
.journey-card__cta:active {
  transform: translateY(5px);
  box-shadow: 0 3px 0 rgba(67, 38, 144, 0.5), 0 8px 16px rgba(81, 50, 163, 0.2);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 570px;
  height: min(680px, 76vh);
  max-height: 680px;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #3db2ef;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("./assets/home/subee-home-hero-world-ultrawide-20260804.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.hero__castle-cluster {
  position: absolute;
  top: 347px;
  left: 28px;
  z-index: 1;
  display: block;
  width: min(49.5vw, 720px);
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.hero__character-ground {
  position: absolute;
  left: 50%;
  bottom: -112px;
  z-index: 1;
  display: block;
  width: min(76vw, 1000px);
  max-width: none;
  height: auto;
  transform: translateX(-14%);
  pointer-events: none;
  user-select: none;
}

.hero__characters {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: -8px;
  z-index: 1;
  display: block;
  width: min(49.6vw, 656px);
  max-width: none;
  height: auto;
  transform: translateX(-6%);
  pointer-events: none;
  user-select: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(240, 249, 255, 0.82) 0%,
    rgba(240, 249, 255, 0.62) 26%,
    rgba(240, 249, 255, 0.22) 44%,
    rgba(240, 249, 255, 0.05) 56%,
    rgba(240, 249, 255, 0) 64%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-top: 104px;
  padding-bottom: 30px;
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: 76px auto 12px -72px;
  z-index: -1;
  width: min(640px, 55vw);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 38% 50%,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.3) 52%,
    rgba(255, 255, 255, 0.1) 70%,
    rgba(255, 255, 255, 0) 84%
  );
  filter: blur(14px);
}

.hero__content > * {
  max-width: min(42%, 520px);
}

.hero__eyebrow,
.section-heading__eyebrow,
.journey-card__kicker {
  margin: 0 0 12px;
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.journey-card h3,
.account-dialog h2 {
  margin-top: 0;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.035em;
}

.hero h1 {
  margin-bottom: 18px;
  max-width: 520px;
  color: var(--ink);
  font-size: clamp(48px, 4vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-shadow: none;
}

.hero__copy {
  margin: 0 0 28px;
  max-width: 440px;
  color: #343260;
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 600;
  line-height: 1.6;
  text-shadow: none;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 30px;
  font-size: 18px;
}

.journeys {
  position: relative;
  padding: 36px 0 88px;
  background: var(--cream);
}

.explore-page {
  padding-top: 132px;
}

.section-heading {
  margin: 0 auto 20px;
  max-width: 720px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.1;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.journey-cards {
  display: grid;
  gap: 24px;
}

.journey-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--purple-light);
  box-shadow: var(--shadow);
}

.journey-feature__visual {
  min-height: 480px;
  overflow: hidden;
  background: #68c7f0;
}

.journey-feature__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.journey-feature__content {
  align-self: center;
  padding: 48px clamp(28px, 4vw, 64px);
  background: var(--purple-light);
}

.journey-feature__content h3 {
  margin-bottom: 14px;
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1.08;
}

.journey-feature__content .journey-card__description {
  max-width: 34ch;
  margin-bottom: 28px;
  font-size: 17px;
}

.journey-card {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(390px, 1fr);
  height: 430px;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--purple-light);
  box-shadow: var(--shadow);
}

.journey-card__visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #68c7f0;
}

.journey-card__visual > .journey-card__background {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) brightness(1.04);
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-card__theme-layer {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.journey-card__theme-layer img {
  position: absolute;
  left: var(--theme-left, 50%);
  top: var(--theme-top, 50%);
  width: var(--theme-width, 18%);
  height: auto;
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: saturate(1.08) brightness(1.04);
  transform-origin: center bottom;
}

.journey-card:hover .journey-card__background,
.journey-card:hover .journey-card__theme-layer {
  transform: scale(1.025);
}

.journey-card__badge {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 24px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--purple-dark);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(43, 45, 100, 0.18);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.journey-card__content {
  align-self: center;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px clamp(26px, 2.6vw, 36px);
  background: var(--purple-light);
}

.journey-card h3 {
  margin-bottom: 10px;
  font-size: clamp(30px, 2.7vw, 40px);
  line-height: 1.12;
}

.journey-card__description {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.journey-facts {
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.journey-facts div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px 13px;
  border: 1px solid rgba(101, 72, 217, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
}

.journey-facts dt {
  color: #8677b4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.journey-facts dd {
  margin: 0;
  color: #3c3963;
  font-size: 13px;
  font-weight: 800;
}

.journey-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  align-self: flex-start;
}

.learning-method {
  padding: 86px 0 94px;
  background: var(--sky);
}

.section-heading--compact {
  max-width: 780px;
}

.learning-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.learning-step {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(101, 72, 217, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(73, 70, 150, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.learning-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(73, 70, 150, 0.14);
}

.learning-step__number {
  display: block;
  margin-bottom: 26px;
  color: var(--purple);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.learning-step h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Microsoft YaHei", sans-serif;
  font-size: 23px;
  line-height: 1.2;
}

.learning-step p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.parent-section {
  padding: 86px 0;
  color: var(--white);
  background: #4f39a2;
}

.parent-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.parent-section .section-heading__eyebrow {
  color: #d9d1ff;
}

.parent-section h1,
.parent-section h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.12;
}

.parent-section__inner > p {
  margin: 0;
  color: #eeeaff;
  font-size: 18px;
  line-height: 1.7;
}

.parent-features {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.parent-features li {
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: #f4f1ff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.site-footer {
  padding: 38px 0;
  color: #5d5a78;
  background: #f7f0e5;
}

.site-footer__inner {
  display: block;
}

.site-footer img {
  width: 118px;
  height: auto;
}

.site-footer__marks {
  display: grid;
  grid-template-columns: minmax(90px, 0.75fr) minmax(450px, 2.4fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: 28px;
  width: 100%;
}

.site-footer__product {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.site-footer img.site-footer__vlingo {
  width: 104px;
  height: 28px;
  object-fit: contain;
  opacity: 0.82;
}

.site-footer img.site-footer__mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.site-footer__technology {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 4px;
  min-width: 0;
  text-align: right;
}

.site-footer__technology-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.site-footer__technology-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: end;
  gap: 2px;
  width: auto;
  min-width: 0;
}

.site-footer__technology-card {
  display: grid;
  justify-items: end;
  min-width: 0;
  min-height: 42px;
}

.site-footer__brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: #5d5a78;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.site-footer__brand-card--company {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  text-align: center;
}

.site-footer__copyright-brand {
  width: 100%;
  margin-bottom: 18px;
  color: var(--ink);
}

.site-footer__company-name {
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
}

.site-footer img.site-footer__veduca,
.site-footer img.site-footer__semnexa {
  width: 150px;
  height: 42px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
}

.site-footer__tagline {
  color: var(--ink);
  font-weight: 900;
}

.site-footer__copyright-panel {
  justify-self: end;
  width: min(100%, 360px);
  padding-left: 20px;
  border-left: 1px solid rgba(93, 90, 120, 0.2);
  color: var(--ink);
  text-align: right;
}

.site-footer__copyright {
  display: block;
  width: 100%;
  color: #77728f;
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(93, 90, 120, 0.2);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

/* The homepage uses a richer brand hierarchy; other public pages keep the
   existing compact footer. */
.site-footer--home {
  padding: 0;
  border-top: 0;
  color: #85888f;
  background: #f1f2f4;
}

.site-footer--home .site-footer__inner {
  width: min(1320px, calc(100% - 64px));
}

.home-footer__brands {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 0;
  padding: 8px 0 6px;
}

.home-footer__product {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-right: 18px;
}

.home-footer__mascot {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.home-footer__product-copy {
  min-width: 0;
}

.site-footer--home img.home-footer__wordmark {
  width: min(100%, 130px);
  height: auto;
}

.home-footer__partners {
  display: grid;
  justify-items: end;
  align-content: center;
  min-width: 0;
  padding: 4px 0;
}

.home-footer__partner-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer--home img.home-footer__partner-logo {
  height: 30px;
  object-fit: contain;
}

.site-footer--home img.home-footer__partner-logo--vlingo {
  width: 112px;
}

.site-footer--home img.home-footer__partner-logo--veduca {
  width: 122px;
}

.home-footer__partner-divider {
  color: #a3a6ac;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

.site-footer--home img.home-footer__powered-logo {
  width: min(100%, 140px);
  height: 32px;
  margin-top: 5px;
  object-fit: contain;
}

.home-footer__brand-column {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 80px;
  padding: 4px 12px;
  border-left: 0;
  text-align: center;
}

.home-footer__eyebrow {
  color: #85888f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.3;
}

.site-footer--home img.home-footer__powered-logo,
.site-footer--home img.home-footer__veduca {
  width: min(100%, 140px);
  height: 32px;
  margin-top: 5px;
  object-fit: contain;
}

.home-footer__copyright {
  margin: 0;
  padding: 7px 0 8px;
  border-top: 0;
  color: #7f838b;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.3;
  text-align: right;
}

.home-footer__legal {
  padding: 5px 0 8px;
  color: #777b84;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}

.home-footer__legal-title {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 5px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  color: #666a73;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.home-footer__legal-title::after {
  content: "+";
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.home-footer__legal-title[aria-expanded="true"] {
  margin: 0 0 5px auto;
}

.home-footer__legal-title[aria-expanded="true"]::after {
  content: "−";
}

.home-footer__legal-title:hover,
.home-footer__legal-title:focus-visible {
  color: #4f5260;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-footer__legal-copy {
  display: block;
  width: 100%;
  text-align: left;
}

.home-footer__legal-copy[hidden] {
  display: none;
}

.home-footer__legal-copy p {
  margin: 0;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

.home-footer__rule {
  height: 1px;
  background: rgba(105, 109, 119, 0.2);
}

.account-dialog {
  width: min(520px, calc(100% - 36px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(24, 19, 72, 0.35);
}

.account-dialog::backdrop {
  background: rgba(28, 22, 74, 0.56);
  backdrop-filter: blur(6px);
}

.account-dialog form {
  position: relative;
  padding: 46px;
}

.account-dialog__close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #554d75;
  background: #f1edf8;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.account-dialog h2 {
  margin-bottom: 14px;
  font-size: 36px;
  line-height: 1.15;
}

.account-dialog p:not(.section-heading__eyebrow) {
  margin: 0 0 26px;
  color: var(--ink-soft);
  line-height: 1.65;
}

:focus-visible {
  outline: 4px solid #ffcf43;
  outline-offset: 4px;
}

@media (max-width: 1160px) {
  .site-header__inner {
    width: min(100% - 32px, 1100px);
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .brand {
    width: 114px;
  }

  .brand img {
    width: 108px;
  }

  .primary-nav {
    gap: 0;
  }

  .primary-nav__link {
    padding-inline: 9px;
    font-size: 13px;
  }

  .language-button {
    min-width: 34px;
    padding-inline: 7px;
  }

  .account-button {
    padding-inline: 14px;
    font-size: 13px;
  }
}

@media (max-width: 1040px) {
  .page-width,
  .site-header__inner {
    width: min(100% - 32px, 920px);
  }

  .site-header__inner {
    grid-template-columns: 118px 1fr auto;
  }

  .brand,
  .brand img {
    width: 112px;
  }

  .menu-toggle {
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 19px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 999px;
    color: var(--purple-dark);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 22px rgba(37, 79, 134, 0.13);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
  }

  .header-panel {
    position: absolute;
    top: 88px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(54, 76, 130, 0.18);
    backdrop-filter: blur(16px);
  }

  .header-panel.is-open {
    display: grid;
    gap: 18px;
  }

  .primary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;
  }

  .primary-nav__link {
    font-size: 15px;
  }

  .header-actions {
    justify-content: space-between;
  }

  .account-button {
    font-size: 15px;
  }

  .language-switcher {
    display: flex;
  }

  .hero {
    min-height: 620px;
    height: min(660px, 76vh);
  }

  .hero__image {
    background-position: center bottom;
  }

  .hero__characters {
    left: auto;
    right: -132px;
    width: min(66vw, 680px);
    transform: none;
  }

  .hero__castle-cluster {
    top: 390px;
    left: 24px;
    width: min(78vw, 780px);
  }

  .hero__character-ground {
    right: -190px;
    left: auto;
    width: min(78vw, 800px);
    transform: none;
  }

  .hero__content {
    align-self: start;
    padding-top: 190px;
  }

  .hero__content > * {
    max-width: min(48%, 400px);
  }

  .hero h1 {
    max-width: min(48%, 400px);
  }

  .journey-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .journey-feature {
    grid-template-columns: 1fr;
  }

  .journey-feature__visual {
    min-height: 380px;
  }

  .journey-feature__content {
    padding: 38px 30px 44px;
  }

  .journey-card__visual {
    min-height: 380px;
  }

  .learning-steps {
    gap: 12px;
  }

  .learning-step {
    min-height: 250px;
    padding: 24px;
  }

  .parent-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .parent-section__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

}

@media (max-width: 640px) {
  .site-header {
    padding-top: 8px;
  }

  .site-header__inner {
    min-height: 72px;
    padding: 5px 8px;
    border-radius: 19px;
  }

  .brand,
  .brand img {
    width: 104px;
  }

  .brand {
    height: 56px;
  }

  .header-panel {
    top: 80px;
  }

  .primary-nav {
    grid-template-columns: 1fr;
  }

  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .language-switcher {
    align-self: flex-start;
  }

  .account-button {
    width: 100%;
  }

  .hero {
    min-height: 900px;
    height: auto;
    max-height: none;
    align-items: end;
    background: #42b9f1;
  }

  .hero::after {
    display: none;
  }

  .hero__image {
    height: 470px;
    bottom: auto;
    background-position: 63% bottom;
    background-size: auto 470px;
  }

  .hero__characters {
    top: 128px;
    left: 0;
    right: auto;
    bottom: auto;
    width: 100%;
    transform: none;
  }

  .hero__castle-cluster {
    display: none;
  }

  .hero__character-ground {
    top: calc(128px + 40vw);
    right: auto;
    bottom: auto;
    left: 50%;
    width: 115vw;
    transform: translateX(-50%);
  }

  .hero__content {
    width: 100%;
    padding: 485px 20px 48px;
    text-align: center;
  }

  .hero__content::before {
    display: none;
  }

  .hero__content > * {
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(38px, 12vw, 54px);
    text-shadow: none;
  }

  .hero__copy {
    color: #3b3965;
    font-size: 16px;
    text-shadow: none;
  }

  .primary-cta {
    width: 100%;
    min-height: 56px;
    padding-inline: 20px;
    font-size: 16px;
  }

  .journeys {
    padding: 50px 0 68px;
  }

  .explore-page {
    padding-top: 104px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .journey-card {
    border-radius: 24px;
  }

  .journey-feature {
    border-radius: 24px;
  }

  .journey-feature__visual {
    min-height: 260px;
  }

  .journey-feature__content {
    padding: 30px 24px 38px;
  }

  .journey-feature__content h3 {
    font-size: 38px;
  }

  .journey-feature__content .journey-card__cta {
    width: 100%;
  }

  .journey-card__visual {
    min-height: 260px;
  }

  .journey-card__content {
    padding: 30px 24px 38px;
  }

  .journey-card h3 {
    font-size: 34px;
  }

  .journey-facts div {
    flex: 1 1 135px;
  }

  .journey-card__cta {
    width: 100%;
    text-align: center;
  }

  .learning-method {
    padding: 68px 0 74px;
  }

  .learning-steps {
    grid-template-columns: 1fr;
  }

  .learning-step {
    min-height: 0;
  }

  .parent-features {
    grid-template-columns: 1fr;
  }

  .parent-section {
    padding: 66px 0;
  }

  .parent-section h1,
  .parent-section h2 {
    font-size: 38px;
  }

  .site-footer__inner {
    display: block;
  }

  .site-footer__marks {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    justify-items: center;
  }

  .site-footer__technology {
    width: 100%;
    gap: 4px;
    justify-items: end;
    text-align: right;
  }

  .site-footer__technology-grid {
    gap: 2px;
  }

  .site-footer img.site-footer__veduca,
  .site-footer img.site-footer__semnexa {
    width: min(100%, 120px);
    height: 34px;
  }

  .site-footer__copyright-panel {
    justify-self: center;
    width: min(100%, 320px);
    padding: 18px 0 0;
    border-top: 1px solid rgba(93, 90, 120, 0.2);
    border-left: 0;
    text-align: center;
  }

  .site-footer__copyright {
    margin-top: 18px;
    padding-top: 12px;
    white-space: normal;
  }

  .account-dialog form {
    padding: 42px 26px 32px;
  }

  .account-dialog h2 {
    font-size: 30px;
  }
}

@media (min-width: 641px) and (max-width: 1040px) and (max-height: 600px) {
  .hero {
    min-height: 520px;
    height: 520px;
  }

  .hero__content {
    padding-top: 108px;
  }

  .hero .hero__content > * {
    max-width: min(46%, 360px);
  }

  .hero h1 {
    max-width: min(46%, 360px);
    font-size: clamp(36px, 4.7vw, 44px);
  }

  .hero__copy {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
  }

  .hero__characters {
    right: -76px;
    width: min(59vw, 540px);
  }
}

@media (max-width: 1040px) {
  .site-footer--home .site-footer__inner {
    width: min(100% - 40px, 980px);
  }

  .home-footer__brands {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    padding: 8px 0 4px;
  }

  .home-footer__product {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 6px;
    padding-right: 12px;
  }

  .home-footer__mascot {
    width: 46px;
    height: 46px;
  }

  .site-footer--home img.home-footer__wordmark {
    width: min(100%, 110px);
  }

  .site-footer--home img.home-footer__powered-logo {
    width: min(100%, 120px);
    height: 34px;
  }

  .home-footer__brand-column {
    min-height: 74px;
    padding-inline: 6px;
  }

  .site-footer--home img.home-footer__powered-logo,
  .site-footer--home img.home-footer__veduca {
    width: min(100%, 120px);
    height: 34px;
  }
}

@media (max-width: 760px) {
  .home-footer__brands {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 6px 0 4px;
  }

  .home-footer__product {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
    padding: 0 8px 0 0;
  }

  .home-footer__brand-column {
    border-top: 0;
  }

  .home-footer__technology {
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .site-footer--home {
    border-top-width: 0;
  }

  .site-footer--home .site-footer__inner {
    width: min(100% - 24px, 520px);
  }

  .home-footer__brands {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 4px 0 3px;
  }

  .home-footer__product {
    grid-column: auto;
    grid-template-columns: 28px minmax(0, 1fr);
    justify-items: stretch;
    gap: 4px;
    width: auto;
    padding: 0 5px 0 0;
    text-align: left;
  }

  .home-footer__mascot {
    width: 28px;
    height: 28px;
  }

  .site-footer--home img.home-footer__wordmark {
    width: min(100%, 70px);
    margin-inline: 0;
  }

  .home-footer__partners {
    padding: 2px 0;
  }

  .home-footer__partner-row {
    gap: 5px;
  }

  .site-footer--home img.home-footer__partner-logo {
    height: 18px;
  }

  .site-footer--home img.home-footer__partner-logo--vlingo {
    width: 52px;
  }

  .site-footer--home img.home-footer__partner-logo--veduca {
    width: 58px;
  }

  .home-footer__partner-divider {
    font-size: 11px;
  }

  .site-footer--home img.home-footer__powered-logo {
    width: min(100%, 70px);
    height: 20px;
  }

  .home-footer__brand-column {
    min-height: 0;
    padding: 4px;
    border-top: 0;
    border-left: 0;
  }

  .site-footer--home img.home-footer__powered-logo,
  .site-footer--home img.home-footer__veduca {
    width: min(100%, 70px);
    height: 20px;
    margin-top: 4px;
  }

  .home-footer__company {
    border-left: 0;
  }

  .home-footer__eyebrow {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .home-footer__copyright {
    padding: 6px 0 7px;
    font-size: 8px;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  .home-footer__legal {
    padding: 6px 0 7px;
  }

  .home-footer__legal-title {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .home-footer__legal-copy p {
    font-size: 9px;
    line-height: 1.55;
  }
}

.site-footer--home .home-footer__brands img {
  filter: grayscale(1) saturate(0);
  opacity: 0.58;
  transition: filter 220ms ease, opacity 220ms ease;
}

.site-footer--home .home-footer__eyebrow,
.site-footer--home .home-footer__legal,
.site-footer--home .home-footer__legal-title,
.site-footer--home .home-footer__copyright {
  transition: color 220ms ease;
}

.site-footer--home:hover .home-footer__brands img,
.site-footer--home:focus-within .home-footer__brands img {
  filter: none;
  opacity: 1;
}

.site-footer--home:hover .home-footer__eyebrow,
.site-footer--home:focus-within .home-footer__eyebrow {
  color: #595ca4;
}

.site-footer--home:hover .home-footer__copyright,
.site-footer--home:focus-within .home-footer__copyright {
  color: #777582;
}

.site-footer--home:hover .home-footer__legal,
.site-footer--home:focus-within .home-footer__legal,
.site-footer--home:hover .home-footer__legal-title,
.site-footer--home:focus-within .home-footer__legal-title {
  color: #666876;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
