/* Homepage activity moments: concrete on-screen interactions, not another subject taxonomy. */

.activities-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 16%, rgb(115 92 229 / 10%) 0 7.5rem, transparent 7.6rem),
    radial-gradient(circle at 92% 88%, rgb(38 178 166 / 11%) 0 9rem, transparent 9.1rem),
    linear-gradient(180deg, #f8f7ff 0%, #f2f8ff 52%, #f8fbf9 100%);
}

.activities-section .section-heading-row {
  position: relative;
  z-index: 1;
  margin-block-end: clamp(1.75rem, 4vw, 2.75rem);
}

.activity-experience {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  direction: ltr;
  gap: clamp(1.4rem, 3.5vw, 3.5rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border-radius: 2.1rem;
  background:
    radial-gradient(circle at 4% 10%, rgb(48 177 166 / 14%) 0 7rem, transparent 7.1rem),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 56%, #f4f1ff 100%);
  box-shadow: 0 1.2rem 3rem rgb(42 58 91 / 10%);
}

.activity-experience-visual,
.activity-experience-story {
  min-width: 0;
  direction: rtl;
}

.activity-experience-visual {
  margin: 0;
  cursor: default;
  user-select: none;
}

.activity-demo-board {
  position: relative;
  min-height: clamp(20rem, 34vw, 26rem);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: clamp(0.9rem, 2vw, 1.25rem);
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 88% 12%, rgb(255 255 255 / 13%) 0 5rem, transparent 5.1rem),
    radial-gradient(circle at 12% 92%, rgb(62 197 181 / 18%) 0 6rem, transparent 6.1rem),
    linear-gradient(145deg, #17355c 0%, #234f7d 56%, #315c8c 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%);
  color: #ffffff;
  pointer-events: none;
}

.activity-demo-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.activity-demo-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #d9f7f2;
  font-size: 0.9rem;
  font-weight: 900;
}

.activity-demo-label::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #55d0bf;
  box-shadow: 0 0 0 0.28rem rgb(85 208 191 / 16%);
}

.activity-demo-type {
  color: #cbd9ea;
  font-size: 0.76rem;
  font-weight: 750;
}

.activity-demo-instruction {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 13%);
  text-align: center;
}

.activity-demo-instruction strong,
.activity-demo-instruction span {
  display: block;
}

.activity-demo-instruction strong {
  color: #ffffff;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 900;
}

.activity-demo-instruction span {
  margin-block-start: 0.18rem;
  color: #dce7f4;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

.activity-demo-match {
  display: grid;
  grid-template-columns: minmax(5rem, 1fr) minmax(4rem, 0.6fr) minmax(5rem, 1fr);
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1rem);
  padding-inline: clamp(0rem, 2vw, 1rem);
}

.activity-demo-example,
.activity-demo-answer {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.activity-demo-example small,
.activity-demo-answer small,
.activity-demo-choice small {
  display: block;
  color: #dce7f4;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.activity-demo-example > span,
.activity-demo-answer > span {
  width: clamp(4.8rem, 10vw, 6.5rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 1.35rem;
  background: #ffffff;
  color: #173f6b;
  box-shadow:
    0 0.75rem 1.5rem rgb(8 28 52 / 23%),
    inset 0 0 0 0.16rem rgb(84 198 183 / 17%);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 950;
  line-height: 1;
}

.activity-demo-answer > span {
  color: #167d73;
  box-shadow:
    0 0 0 0.18rem #67d6c6,
    0 0.75rem 1.5rem rgb(8 28 52 / 23%);
}

.activity-demo-answer > i {
  position: absolute;
  inset-block-end: -0.2rem;
  inset-inline-start: 0.2rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #55cfbd;
  color: #103d55;
  box-shadow: 0 0.35rem 0.8rem rgb(8 28 52 / 24%);
  font-size: 1.1rem;
}

.activity-demo-choice {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 0.35rem;
  color: #ffe17b;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.activity-demo-arrow {
  font-weight: 900;
  line-height: 1;
}

.activity-demo-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid rgb(255 255 255 / 18%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

.activity-demo-feedback i {
  color: #6ee0c8;
  font-size: 1.4rem;
}

.activity-experience-visual figcaption {
  max-width: 36rem;
  margin: 0.8rem auto 0;
  color: #65758a;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.55;
  text-align: center;
}

.activity-experience-visual figcaption strong {
  color: #294e79;
}

.activity-demo-caption {
  display: block;
}

.activity-demo-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem;
  margin-block-start: 0.65rem;
  padding-block-start: 0.6rem;
  border-block-start: 1px solid rgb(45 85 125 / 13%);
  color: #768396;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.55;
  text-align: start;
}

.activity-demo-note > span:first-child {
  color: #d05469;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.1;
}

.activity-experience-story {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.activity-story-kicker {
  margin: 0 0 0.35rem;
  color: #6556d8;
  font-size: 0.92rem;
  font-weight: 950;
}

.activity-story-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-story-steps li {
  display: grid;
  grid-template-columns: 3.35rem minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
  padding-block: clamp(1rem, 2.5vw, 1.45rem);
  border-block-end: 1px solid rgb(40 78 118 / 14%);
}

.activity-story-steps li:last-child {
  border-block-end: 0;
}

.activity-story-steps li > span {
  width: 3.05rem;
  height: 3.05rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(145deg, #6556d8, #3c8fd0);
  box-shadow: 0 0.28rem 0 #c9d7e9;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 950;
}

.activity-story-steps strong {
  display: block;
  color: #172744;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.25;
}

.activity-story-steps p {
  margin: 0.38rem 0 0;
  color: #5b6c82;
  font-size: 0.92rem;
  font-weight: 670;
  line-height: 1.65;
}

.activity-action-spectrum {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(13rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-block-start: clamp(1.3rem, 3vw, 2rem);
  padding: clamp(1.15rem, 2.5vw, 1.8rem) clamp(1.2rem, 3vw, 2rem);
  border-block: 1px solid rgb(45 85 125 / 14%);
  background: rgb(255 255 255 / 54%);
}

.activity-action-heading h3 {
  margin: 0;
  color: #172744;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.15;
}

.activity-action-heading p {
  margin: 0.55rem 0 0;
  color: #617187;
  font-weight: 670;
  line-height: 1.6;
}

.activity-action-spectrum ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-action-spectrum li {
  position: relative;
  min-width: 0;
  padding: 0.65rem 1.15rem 0.65rem 1rem;
  border-inline-start: 1px solid rgb(45 85 125 / 14%);
}

.activity-action-spectrum li::before {
  content: "";
  position: absolute;
  inset-block-start: 1.05rem;
  inset-inline-start: -0.28rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #2cb3a5;
  box-shadow: 0 0 0 0.2rem #f4f8ff;
}

.activity-action-spectrum li:nth-child(2)::before,
.activity-action-spectrum li:nth-child(4)::before {
  background: #6b59d9;
}

.activity-action-spectrum strong,
.activity-action-spectrum span {
  display: block;
}

.activity-action-spectrum strong {
  color: #23496e;
  font-size: 0.96rem;
  font-weight: 950;
}

.activity-action-spectrum span {
  margin-block-start: 0.22rem;
  color: #617187;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.5;
}

.activities-section .activity-section-cta {
  position: relative;
  z-index: 1;
  margin-block-start: clamp(1.5rem, 3.5vw, 2.25rem);
  text-align: center;
}

.activities-section .activity-section-cta .btn {
  margin-inline: auto;
}

@media (max-width: 70rem) {
  .activity-experience {
    grid-template-columns: minmax(0, 1fr);
  }

  .activity-experience-visual,
  .activity-experience-story {
    grid-column: 1;
  }

  .activity-experience-story {
    width: min(100%, 42rem);
    margin-inline: auto;
  }

  .activity-action-spectrum {
    grid-template-columns: minmax(0, 1fr);
  }

  .activity-action-heading {
    max-width: 45rem;
    text-align: center;
    margin-inline: auto;
  }
}

/* School-prep path: three equal, non-interactive visual milestones. */
.school-section .ui-learning-path .path-card,
.school-section .ui-learning-path .path-card:nth-child(3),
.school-section .ui-learning-path .path-card:nth-child(5) {
  border: 1px solid rgb(48 92 142 / 13%);
  background:
    linear-gradient(135deg, rgb(32 72 116 / 11%) 0%, rgb(23 47 82 / 5%) 72%, rgb(29 65 107 / 9%) 100%),
    #f8fbff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 75%);
  color: #294e79;
}

.school-section .ui-learning-path .path-card i,
.school-section .ui-learning-path .path-card span {
  color: #294e79;
}

@media (max-width: 40rem) {
  .activities-section .section-heading-row {
    text-align: center;
  }

  .activity-experience {
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 1.5rem;
  }

  .activity-demo-board {
    min-height: 21rem;
    padding: 1rem;
    border-radius: 1.25rem;
  }

  .activity-demo-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .activity-demo-instruction {
    padding: 0.65rem 0.75rem;
  }

  .activity-demo-match {
    grid-template-columns: minmax(4.4rem, 1fr) minmax(2.5rem, 0.45fr) minmax(4.4rem, 1fr);
    gap: 0.25rem;
    padding-inline: 0;
  }

  .activity-demo-example > span,
  .activity-demo-answer > span {
    width: clamp(4.4rem, 21vw, 5.25rem);
    border-radius: 1.1rem;
    font-size: clamp(2.5rem, 12vw, 3.2rem);
  }

  .activity-demo-choice {
    font-size: 1.45rem;
  }

  .activity-demo-feedback {
    gap: 0.4rem;
    font-size: 0.76rem;
  }

  .activity-story-kicker {
    text-align: center;
  }

  .activity-story-steps li {
    grid-template-columns: 2.85rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .activity-story-steps li > span {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.85rem;
  }

  .activity-action-spectrum {
    padding-inline: 0.2rem;
    background: transparent;
  }

  .activity-action-spectrum ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .activity-action-spectrum li {
    padding-block: 0.75rem;
    border-inline-start: 0;
    border-block-start: 1px solid rgb(45 85 125 / 14%);
    text-align: center;
  }

  .activity-action-spectrum li::before {
    inset-block-start: -0.27rem;
    inset-inline-start: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .activity-experience {
    scroll-behavior: auto;
  }
}

/* Homepage learning-world polish: no singled-out yellow cards or repeated adjacent accents. */
.learning-worlds-section .world-math {
  --world-accent: #1d8196;
  --world-border: #76c4d2;
  --world-surface: #e8f7fa;
}

/* Homepage hero artwork: replaces the temporary image instructions. */
.hero-image-placeholder.hero-image-art {
  min-height: 31rem;
  overflow: hidden;
  padding: clamp(0.65rem, 2vw, 1.1rem);
  border: 0;
  background:
    radial-gradient(circle at 15% 12%, rgb(202 241 235 / 58%) 0 5.5rem, transparent 5.6rem),
    radial-gradient(circle at 88% 86%, rgb(220 213 255 / 62%) 0 6.5rem, transparent 6.6rem),
    linear-gradient(145deg, #fbfaff 0%, #f4fbff 52%, #f3fbf8 100%);
  box-shadow: none;
}

.hero-image-art img {
  width: auto;
  max-width: 100%;
  height: min(31rem, 70vh);
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1rem 1.25rem rgb(23 47 82 / 18%));
}

/* Device section artwork: real activity displayed inside the Zivaro tablet. */
.tablet-visual.tablet-product-art {
  min-height: 0;
  padding: clamp(0.4rem, 1.5vw, 0.9rem);
}

.tablet-product-art img {
  width: min(100%, 46rem);
  height: auto;
  display: block;
  filter: drop-shadow(0 1.1rem 1.6rem rgb(23 47 82 / 20%));
}

@media (max-width: 40rem) {
  .hero-image-placeholder.hero-image-art {
    min-height: 24rem;
    padding: 0.45rem;
    border-radius: 1.7rem;
  }

  .hero-image-art img {
    height: min(29rem, 68vh);
  }

  .tablet-visual.tablet-product-art {
    min-height: 0;
    padding: 0;
  }
}

.learning-worlds-section .play-formats-static .format-chip-grid span:nth-child(4n) {
  border-color: #ddd7f4;
  background: #f3f0ff;
}

/* Strong standalone CTA below the white play-format panel. */
.learning-worlds-section .hub-cta-row {
  margin-block-start: clamp(1.6rem, 4vw, 2.35rem);
}

.learning-worlds-section .hub-cta-row .learning-worlds-cta {
  min-height: 3.65rem;
  gap: 0.55rem;
  padding: 0.82rem 1.35rem;
  border: 2px solid #34aa9d;
  background: linear-gradient(135deg, #245183 0%, #172f52 72%, #1d416b 100%);
  box-shadow:
    0 0.3rem 0 #5d4bc1,
    0 0.85rem 1.8rem rgb(23 47 82 / 24%);
  color: #ffffff;
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  font-weight: 950;
  text-shadow: 0 1px 0 rgb(0 0 0 / 18%);
}

.learning-worlds-section .hub-cta-row .learning-worlds-cta i {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 1.35rem;
  filter: drop-shadow(0 0.14rem 0.18rem rgb(0 0 0 / 20%));
}

.learning-worlds-section .hub-cta-row .learning-worlds-cta:hover,
.learning-worlds-section .hub-cta-row .learning-worlds-cta:focus-visible {
  border-color: #f4cd55;
  background: linear-gradient(135deg, #2d6098 0%, #1b3a64 72%, #24527f 100%);
  box-shadow:
    0 0.3rem 0 #705ce0,
    0 1rem 2.1rem rgb(23 47 82 / 30%);
  color: #ffffff;
  transform: translateY(-0.12rem);
}

@media (max-width: 40rem) {
  .learning-worlds-section .hub-cta-row .learning-worlds-cta {
    width: min(100%, 21rem);
    min-height: 3.45rem;
    justify-content: center;
    padding-inline: 1rem;
    text-align: center;
  }
}
