@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap");

:root {
  --bg: #eef5ff;
  --ink: #05365e;
  --muted: #5c6b8a;
  --teal: #1aa38b;
  --orange: #f08b21;
  --blue: #3f87e8;
  --amber: #f0a33c;
  --card: #ffffff;
  --line: #e3ecf7;
  --stat-h3: #086d60;
  --link: #3991d8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lexend Deca", sans-serif;
  color: var(--ink);
  background: #ebf3fa;
  font-smooth: always;
  scroll-behavior: smooth;
}

section {
  padding: 0 10%;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

a {
  text-decoration: none;
}

.sources a {
  color: var(--link);
  font-size: 0.9rem;
}
.sources {
  display: flex;
  gap: 1rem;
}

.memorizing-container .sources {
  padding-top: 1.5rem;
}

h1,
h2,
h3 {
  font-family: "Lexend Deca", sans-serif;
  margin: 0 0 16px;
  font-weight: 500;
}

.memorizing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  z-index: 666;
}

.memorizing-grid > :nth-child(4) {
  grid-column: 1 / -1;
}

.memorizing-grid p {
  font-weight: 300;
  margin: 0;
}

.memorizing-grid div:last-child {
  column-span: all;
  width: 100%;
  text-align: center;
  font-size: 2rem;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--muted);
}

.memorizing-grid div:nth-child(1) {
  content: "";
  display: flex;
  width: 21rem;
  height: 31rem;
  background-image: url("../img/05.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.memorizing-grid > div:nth-child(2) > p:nth-of-type(2) {
  padding-top: 1rem;
}

.memorizing {
  margin: 0 14rem;
  padding: 4rem;
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
}

.levels {
  padding: 4rem 10%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.levels-content {
  max-width: 680px;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  z-index: 8888;
}

.memorizing-grid::before {
  content: "";
  position: absolute;
  width: 827px;
  height: 825px;
  left: -170px;
  top: -164px;
  background: radial-gradient(50% 50% at 50% 50%, #fce5cc 0%, rgba(252, 229, 204, 0) 100%);
  z-index: -7;
}

.level-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 24px rgba(16, 32, 67, 0.08);
  align-items: center;
  display: flex;
  justify-content: center;
}

.level-card::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  bottom: -12px;
  left: var(--bubble-tail-left, 28px);
  transform: rotate(45deg);
}

.level-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  text-align: center;
}

.level-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

h2 {
  font-size: 2.5rem;
}

p {
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 300;
}

strong {
  font-weight: 500;
}

.site-header {
  position: relative;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 4px solid white;
}

.header-left,
.header-right {
  flex: 0 0 220px;
  display: flex;
  align-items: center;
}

.header-left {
  gap: 0.75rem;
}

.header-right {
  justify-content: flex-end;
}

.lang-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.lang-select {
  appearance: none;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 1.75rem 0.45rem 0.9rem;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #7a8aa3 50%),
    linear-gradient(135deg, #7a8aa3 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 10px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.lang-select:focus {
  outline: 2px solid rgba(63, 135, 232, 0.25);
  outline-offset: 2px;
}

.logo {
  background-image: url("../img/ls_logo.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 100%;
  height: 2.5rem;
}

.logo span {
  color: #123b63;
}

.logo-mark {
  width: 12px;
  height: 12px;
  border: 2px solid #ff4a4a;
  border-radius: 3px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 10rem;
}

.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: flex-start;
}

.hero-03 {
  position: relative;
}

.hero-03 {
  z-index: 1;
}

.hero-01::before {
  content: "";
  position: absolute;
  width: 827px;
  height: 825px;
  left: -334px;
  top: -246px;
  background: radial-gradient(50% 50% at 50% 50%, #fce5cc 0%, rgba(252, 229, 204, 0) 100%);
  z-index: 0;
}

.levels::after {
  content: "";
  position: absolute;
  width: 827px;
  height: 825px;
  right: 0;
  top: -359px;
  background: radial-gradient(50% 50% at 50% 50%, #b2d2ec 0%, rgba(119, 177, 225, 0) 100%);
  z-index: -37827;
}

.hero-01,
.hero-02,
.hero-03,
.stats {
  position: relative;
  overflow: hidden; /* clip the blobs so they don’t create scroll */
  isolation: isolate; /* makes z-index:-1 behave predictably */
}

.hero-01,
.hero-02,
.hero-03,
.stats {
  position: relative;
  isolation: isolate;
  overflow-x: clip; /* or hidden if clip unsupported */
  overflow-y: visible;
}

@supports not (overflow: clip) {
  .hero-01,
  .hero-02,
  .hero-03,
  .stats {
    overflow-x: hidden;
    overflow-y: visible;
  }
}

/* 
.hero-01::after {
  content: "";
  position: absolute;
  width: 51rem;
  height: 51rem;
  left: 23rem;
  top: 0;
  background: radial-gradient(50% 50% at 50% 50%, #b2d2ec 0%, rgba(119, 177, 225, 0) 100%);
  z-index: 0;
} */

.hero-02::before {
  content: "";
  position: absolute;
  width: 827px;
  height: 825px;
  left: -15rem;
  top: -9rem;
  background: radial-gradient(50% 50% at 50% 50%, #fccfd5 0%, rgba(252, 181, 191, 0) 100%);
  z-index: -9999999;
}
.hero-03::after {
  content: "";
  position: absolute;
  width: 839px;
  height: 837px;
  left: 45rem;
  top: 0;

  background: radial-gradient(50% 50% at 50% 50%, #ade6de 0%, rgba(105, 216, 201, 0) 100%);

  z-index: 0;
}

.stats {
  position: relative;
}

.stats::before {
  content: "";
  position: absolute;
  width: 827px;
  height: 825px;
  left: -18rem;
  top: 24rem;
  background: radial-gradient(50% 50% at 50% 50%, #fce5cc 0%, rgba(252, 229, 204, 0) 100%);
  z-index: -1;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1 1 30%;
  z-index: 2;
  align-self: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 2.5rem, 3.2rem);
}

.cta {
  border: none;
  border-radius: 1rem;
  padding: 1rem 2.5rem;
  font-family: "Lexend Deca", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 15rem;
  text-align: center;
}

.cta span {
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
  text-align: center;
}

.cta-teal {
  background: var(--teal);
}
.cta-orange {
  background: var(--orange);
}
.cta-blue {
  background: var(--blue);
}
.cta-amber {
  background: var(--amber);
  color: #1f2a44;
}

.hero-illu {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex: 1 1 30%;
  z-index: 999;
}

.hero-illu-01 {
  background-image: url("../img/01.svg");
  width: min(420px, 100%);
  height: 34rem;
}

.hero-illu-02 {
  background-image: url("../img/02.svg");
  width: min(420px, 100%);
  height: 36rem;
}

.hero-illu-03 {
  background-image: url("../img/03.svg");
  width: min(420px, 100%);
  height: 31rem;
  position: relative;
  top: 5rem;
  right: 8rem;
  z-index: 9999;
}
.hero-illu-01 {
  position: relative;
  z-index: 2;
}
.hero-illu-03 {
  position: relative;
  z-index: 3;
}

.hero-illu-01::after {
  content: none;
}

.hero-blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.hero-blob-01 {
  width: 51rem;
  height: 51rem;
  right: -21rem;
  top: 7rem;
  background: radial-gradient(50% 50% at 50% 50%, #b2d2ec 0%, rgba(119, 177, 225, 0) 100%);
}

.stat-illu {
  background-image: url("../img/06.svg");
  height: 21rem;
}

.mock-card {
  background: #ffffff;
  box-shadow: 0px 0px 20px rgba(2, 48, 85, 0.2);
  border-radius: 1.25rem;
  border: 0.5rem solid white;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  margin: 0 auto;
}

.hero-illu svg {
  width: min(280px, 90%);
  z-index: 2;
}

.mock-card-01 {
  height: 35rem;
  width: 63rem;
  background-image: url("../img/app.gif");
}

.mock-card-02 {
  height: 35rem;
  width: 58rem;
  background-image: url("../img/02.gif");
}

.mock-card-03 {
  height: 35rem;
  width: 58rem;
  background-image: url("../img/01.gif");
}

.feature {
  padding: 80px 8vw;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.feature-peach {
  background: linear-gradient(135deg, #ffe7d7, #fbe9f1 60%, #f0f6ff);
}

.feature-blue {
  background: linear-gradient(135deg, #e6f0ff 20%, #f5fbff 80%);
}

.feature-illu {
  flex: 0 1 260px;
  display: flex;
  justify-content: center;
}

.feature-illu svg {
  width: min(260px, 90%);
}

.feature-content {
  flex: 1 1 420px;
  max-width: 520px;
}

.feature .mock-card {
  flex: 1 1 100%;
  margin-top: 30px;
}

.mock-card.wide .card-body {
  display: flex;
  gap: 18px;
}

.mock-card.wide .pane {
  background: #f8fbff;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  min-height: 140px;
}

.mock-card.wide h5 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #2f486e;
}

.mock-card.tall .card-body {
  display: flex;
  flex-direction: column;
}

.card-body.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field label {
  font-size: 0.75rem;
  color: #6780a7;
}

.select {
  background: #f7fbff;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 6px;
  font-size: 0.85rem;
}

.textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  min-height: 120px;
  font-size: 0.85rem;
  color: #7f8fb0;
  background: #f7fbff;
}

.stats {
  text-align: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 4rem;
  margin: 4rem 0;
}

.stat {
  text-align: left;
}

.stat h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-size: 1.25rem;
  color: var(--stat-h3);
  text-transform: uppercase;
}

.stat h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-style: italic;
}

.stat p {
  font-size: 1.313rem;
  line-height: 1.3;
  font-weight: 300;
}

.stats-cta {
  display: flex;
  justify-content: center;
}

.site-footer {
  padding: 6rem 10% 2rem;
  text-align: center;
  color: #6b7c95;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .hero,
  .feature {
    flex-direction: column;
  }

  .hero-content,
  .hero-illu,
  .mock-card,
  .feature-content,
  .feature-illu,
  .feature .mock-card {
    flex: 1 1 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .hero {
    padding-bottom: 40px;
  }

  .feature {
    padding: 60px 7vw;
  }
}

@media (max-width: 1024px) {
  .mock-card-01,
  .mock-card-02,
  .mock-card-03 {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background-size: contain;
    background-position: center;
  }
  .memorizing {
    margin: 5% 5% 0 5%;
    padding: 2rem;

    flex-direction: row;
    gap: 1rem;
  }
  .hero-illu {
    width: 100%;
    height: 260px;
    flex: 0 0 auto;
    background-size: contain;
    background-position: center;
  }
  .sources {
    gap: 1rem;
    width: 100%;
    padding: 1rem 9%;
    margin: 0;
    display: flex;
    justify-content: center;
  }
  .hero-illu-03 {
    position: relative;
    top: 2.4rem;
    right: auto;
  }

  .stat-grid {
    gap: 2rem;
  }

  .stat-grid .sources {
    padding: 0;
    justify-content: left;
  }

  section {
    padding: 0 5%;
  }
  .hero {
    padding: 4rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 1.5rem;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .lang-select {
    width: 100%;
  }

  .header-right {
    display: none;
  }

  .memorizing div:nth-child(1) {
    width: 17rem;
    height: 25rem;
  }

  .hero {
    padding: 1.5rem;
  }

  header {
    z-index: 999;
    position: sticky;
  }

  .header-left {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .header-left,
  .header-right {
    flex: 0 0 2rem;
    display: flex;
    align-items: center;
  }

  .header-right {
    display: none;
  }

  .logo {
    order: 1;
  }

  .header-right {
    order: 3;
  }

  .lang-label {
    display: none;
  }

  main {
    padding: 3rem 0;
    gap: 4rem;
  }

  section {
    padding: 0 10%;
  }

  .hero,
  .feature {
    gap: 2rem;
  }

  .memorizing {
    margin: 5% 5% 0 5%;
    padding: 1.5rem;

    flex-direction: column;
    gap: 1rem;
  }

  .memorizing span {
    grid-template-columns: 1fr;
  }

  .memorizing p {
    width: 100%;
  }

  .memorizing-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    overflow: hidden;
  }
  .sources {
    margin: 0 auto;
  }
  .hero-illu {
    width: 100%;
    height: 220px;
    flex: 0 0 auto;
    background-size: contain;
    background-position: center;
  }

  .hero-illu-03 {
    position: static;
    top: auto;
    right: auto;
  }

  .mock-card-01 {
    height: 44rem !important;
    width: 63rem;
    background-image: url("../img/app-mobile.png");
  }

  .mock-card-02 {
    height: 34rem !important;
    width: 58rem;
    background-image: url("../img/02-mobile.gif");
  }

  .mock-card-03 {
    height: 34rem !important;
    width: 58rem;
    background-image: url("../img/01-mobile.gif");
  }

  .card-body {
    flex-direction: column;
  }

  .feature-illu {
    order: -1;
  }

  .mock-card {
    flex: 0 0 auto;
    width: 100%;
  }

  .mock-card-01,
  .mock-card-02,
  .mock-card-03 {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background-size: contain;
    background-position: center;
    margin: 0;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .memorizing-grid {
    grid-template-columns: 1fr;
  }

  .memorizing-grid > :nth-child(4) {
    grid-column: auto;
  }
}
