:root {
  --lse-font: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lse-widget,
.lse-widget * { box-sizing: border-box; }
.lse-widget { width: 100%; font-family: var(--lse-font); }
.lse-widget--full { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.lse-inner { width: 100%; margin: 0 auto; }

.lse-exact { width: 100%; }
.lse-exact img { display: block; width: 100%; height: auto; object-position: center; }

.lse-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 760px;
  color: #fff;
  background: linear-gradient(118deg, #8d79ff 0%, #8068f2 48%, #6650e8 100%);
  border-radius: 36px;
}

/* Calmer hero-like shape for the learning steps block */
.lse-panel--hero-soft {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 760' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M40 0H1560C1582.09 0 1600 17.91 1600 40V680C1600 708 1575 727 1546 727H1120C1012 727 959 748 860 753C753 759 650 738 566 724C480 710 407 704 309 711C208 719 101 740 42 712C14 699 0 676 0 648V40C0 17.91 17.91 0 40 0Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 760' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M40 0H1560C1582.09 0 1600 17.91 1600 40V680C1600 708 1575 727 1546 727H1120C1012 727 959 748 860 753C753 759 650 738 566 724C480 710 407 704 309 711C208 719 101 740 42 712C14 699 0 676 0 648V40C0 17.91 17.91 0 40 0Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
  border-radius: 0;
}

.lse-panel--standard {
  -webkit-mask-image: none;
  mask-image: none;
}

.lse-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .18;
  background:
    radial-gradient(circle at 32% 20%, rgba(255,255,255,.22), transparent 34%),
    radial-gradient(circle at 72% 42%, rgba(255,255,255,.14), transparent 27%),
    radial-gradient(circle, rgba(255,255,255,.4) 0 1px, transparent 1.5px);
  background-size: auto, auto, 17px 17px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 75%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 75%);
}

.lse-header { position: relative; z-index: 5; max-width: 760px; }
.lse-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 9px 18px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}
.lse-badge__icon { display: inline-flex; font-size: 24px; }
.lse-heading {
  margin: 0;
  max-width: 840px;
  color: #fff;
  font-size: clamp(42px, 4.5vw, 70px);
  line-height: 1.04;
  font-weight: 850;
  letter-spacing: -.045em;
}
.lse-subtitle {
  max-width: 570px;
  margin-top: 20px;
  color: rgba(255,255,255,.92);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 450;
}

.lse-cards-wrap { position: relative; z-index: 5; }
.lse-cards {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.lse-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 315px;
  padding: 30px 28px 26px;
  overflow: hidden;
  color: #171522;
  background: #fff;
  border: 1px solid rgba(38,27,87,.05);
  border-radius: 28px;
  box-shadow: 0 16px 38px -20px rgba(26,15,90,.35);
  transform: rotate(var(--lse-card-rotation, 0deg));
  transform-origin: center;
  transition: transform .28s ease, box-shadow .28s ease;
}
.lse-card:hover { transform: translateY(-6px) rotate(var(--lse-card-rotation, 0deg)); box-shadow: 0 26px 50px -22px rgba(26,15,90,.42); }
.lse-card__number {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 38px;
  padding: 0 15px;
  border-radius: 13px;
  background: #684cf2;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(104,76,242,.24);
}
.lse-card__copy {
  position: relative;
  z-index: 3;
  width: 52%;
  min-width: 0;
  padding-top: 46px;
}
.lse-card__title {
  margin: 0 0 14px;
  color: #171522;
  font-size: clamp(22px, 1.75vw, 30px);
  line-height: 1.15;
  font-weight: 830;
  letter-spacing: -.025em;
}
.lse-card__desc {
  color: #666474;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 450;
}
.lse-card__media {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 15px;
  width: 185px;
  height: calc(100% - 52px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}
.lse-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }
.lse-card__fallback { display: inline-flex; align-items: center; justify-content: center; width: 140px; height: 140px; border-radius: 50%; color: #684cf2; background: #f0ecff; font-size: 58px; }

.lse-path {
  position: absolute;
  z-index: 1;
  top: 35px;
  left: 0;
  width: 100%;
  height: 240px;
  overflow: visible;
  color: #5d3bde;
  pointer-events: none;
}
.lse-path path { stroke: #5d3bde; }
.lse-path--animated path { animation: lse-path-dash 9s linear infinite; }
@keyframes lse-path-dash { to { stroke-dashoffset: -150; } }

.lse-note {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  max-width: 680px;
  margin: 42px auto 0;
  padding: 14px 30px 14px 16px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -26px rgba(25,15,100,.38);
}
.lse-note__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #684cf2;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 8px 18px rgba(104,76,242,.25);
}
.lse-note__text { color: #292636; font-size: 16px; line-height: 1.45; }
.lse-note__accent { margin-left: 4px; color: #684cf2; font-weight: 800; }

.lse-decor { position: absolute; z-index: 2; user-select: none; pointer-events: none; }
.lse-decor--star { top: 42px; left: 30%; color: #ffd31a; font-size: 52px; transform: rotate(12deg); }
.lse-decor--plus { top: 65px; right: 13%; color: #fff; font-size: 58px; font-weight: 300; transform: rotate(8deg); }
.lse-decor--dot-grid { top: 120px; right: 8%; width: 94px; height: 70px; background-image: radial-gradient(circle, rgba(255,255,255,.88) 0 3px, transparent 3.5px); background-size: 17px 17px; }
.lse-decor--bottom-star { right: 9%; bottom: 72px; color: #ffd31a; font-size: 34px; }

@media (max-width: 1180px) {
  .lse-panel { min-height: 0; }
  .lse-cards { gap: 18px; }
  .lse-card { grid-template-columns: 1fr; min-height: 365px; }
  .lse-card__copy { width: 100%; padding-right: 25%; }
  .lse-card__media { width: 150px; height: 180px; }
}

@media (max-width: 900px) {
  .lse-panel--mobile-simple {
    -webkit-mask-image: none;
    mask-image: none;
    border-radius: 28px;
  }
  .lse-widget--full { width: 100%; margin: 0; }
  .lse-panel { border-radius: 28px; }
  .lse-cards { grid-template-columns: 1fr; }
  .lse-card, .lse-card:nth-child(2), .lse-card:nth-child(3) { min-height: 300px; margin-top: 0 !important; transform: none; }
  .lse-card:hover { transform: translateY(-4px); }
  .lse-card__copy { width: 58%; padding-right: 0; }
  .lse-card__media { width: 210px; height: calc(100% - 45px); }
  .lse-path { display: none; }
  .lse-note { border-radius: 26px; }
  .lse-decor--star { left: auto; right: 25%; }
}

@media (max-width: 640px) {
  .lse-panel { padding: 34px 20px 30px !important; border-radius: 24px; }
  .lse-badge { font-size: 13px; padding: 8px 13px; }
  .lse-heading { font-size: clamp(34px, 10vw, 48px); }
  .lse-subtitle { font-size: 16px; }
  .lse-card { min-height: 390px; padding: 25px 22px; }
  .lse-card__copy { width: 100%; padding-top: 44px; padding-bottom: 180px; }
  .lse-card__title { font-size: 24px; }
  .lse-card__desc { font-size: 15px; }
  .lse-card__media { right: 14px; bottom: 10px; width: 190px; height: 185px; }
  .lse-note { align-items: flex-start; width: 100%; padding: 14px 18px 16px 14px; border-radius: 24px; }
  .lse-note__icon { width: 48px; height: 48px; }
  .lse-note__text { font-size: 14px; }
  .lse-decor--dot-grid, .lse-decor--plus { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lse-path--animated path { animation: none; }
  .lse-card { transition: none; }
}
