/* =========================================================
   Suomi — landing page styles
   Source of truth: Figma "suomi (Copy)" → frame "Landing Page" (1440px)
   ========================================================= */

:root {
  /* Figma color variables */
  --c-dark-blue: #314295;
  --c-black: #212429;
  --c-dark-grey: #44464F;
  --c-grey: #999DAB;
  --c-light-grey: #E9EAEC;
  --c-superlight: #F7F7F8;
  --c-white: #FFFFFF;
  --c-light-orange: #FFE9D4;
  --c-light-pink: #FFC7C8;
  --c-dark-pink: #F47F7D;
  --c-dark-purple: #9C95F1;
  --c-light-purple: #ECE7FE;
  --c-light-blue: #E0F6FB;
  --c-sky: #BCE3FF;
  --c-ink: #1f1a14;

  /* Type */
  --font-hand: 'Handgeschrieben', 'Pangolin', 'Comic Sans MS', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-script: 'Caveat', cursive;

  /* Layout */
  --frame: 1440px;
  --gutter: 72px;
  --section-gap: 230px;
  --hero-s: 1; /* hero illustration scale, refined by JS */
}

/* Fallback hero scales when JS is unavailable */
@media (max-width: 1439px) { :root { --hero-s: .82; } }
@media (max-width: 1100px) { :root { --hero-s: .68; } }
@media (max-width: 760px)  { :root { --hero-s: .58; } }

@font-face {
  font-family: 'Handgeschrieben';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Handgeschrieben.woff2') format('woff2'),
       url('../assets/fonts/Handgeschrieben.ttf') format('truetype');
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.3;
  color: var(--c-black);
  background: #fff;
  overflow-x: clip; /* not `hidden`: that would make body a scroll container and break position: sticky */
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.frame { max-width: var(--frame); margin: 0 auto; position: relative; }
.container { padding-inline: var(--gutter); }

/* Typography helpers */
.hand { font-family: var(--font-hand); font-weight: 400; }
.h2 {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.12;
  margin: 0;
  color: var(--c-black);
}
.h2--center { text-align: center; }
.lead {
  font-size: 20px;
  line-height: 1.4;
  color: var(--c-dark-grey);
}
.section { margin-top: var(--section-gap); }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 9999px;
  border: 2px solid var(--c-black);
  background: #fff;
  box-shadow: 2px 2px 0 var(--c-black);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  color: var(--c-ink);
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--c-black); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn--sky { background: var(--c-sky); }
.btn--pink { background: var(--c-light-pink); }
.btn--purple { background: var(--c-dark-purple); color: #fff; }
.btn--wide { width: 350px; max-width: 100%; }
.btn--soft { border-width: 1px; box-shadow: none; background: var(--c-light-orange); }
.btn--soft:hover { transform: none; box-shadow: none; background: #ffdfc0; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
}
.link-arrow img { width: 23px; height: auto; }

/* ===== Hero ===== */
.hero {
  position: relative;
  margin: 16px;
  min-height: 825px;
  background: var(--c-superlight);
  border-radius: 24px;
  overflow: hidden;
}
.hero__logo {
  position: absolute;
  left: 32px;
  top: 21px;
  width: 139px;
  height: 139px;
  z-index: 4;
}
.hero__logo img { width: 100%; height: 100%; object-fit: cover; }

.hero__nav {
  position: absolute;
  left: 50%;
  top: 36px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 20px;
  padding: 16px 40px;
  background: #fff;
  border: 1px solid var(--c-light-grey);
  border-radius: 999px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  color: var(--c-ink);
  white-space: nowrap;
}
.hero__nav a { transition: color .15s; }
.hero__nav a:hover { color: var(--c-dark-blue); }

.hero__cta { position: absolute; right: 32px; top: 36px; z-index: 4; }

.hero__burger {
  display: none;
  position: absolute;
  right: 20px;
  top: 28px;
  z-index: 6;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--c-light-grey);
  align-items: center;
  justify-content: center;
}
.hero__burger span, .hero__burger span::before, .hero__burger span::after {
  display: block; width: 20px; height: 2px; background: var(--c-black); border-radius: 2px; position: relative; transition: transform .2s, opacity .2s;
}
.hero__burger span::before, .hero__burger span::after { content: ""; position: absolute; left: 0; }
.hero__burger span::before { top: -6px; }
.hero__burger span::after { top: 6px; }
.hero.nav-open .hero__burger span { background: transparent; }
.hero.nav-open .hero__burger span::before { transform: translateY(6px) rotate(45deg); }
.hero.nav-open .hero__burger span::after { transform: translateY(-6px) rotate(-45deg); }

.hero__content {
  position: absolute;
  left: 50%;
  top: 168px;
  transform: translateX(-50%);
  width: 876px;
  max-width: calc(100% - 32px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__title {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 76px;
  line-height: 1;
  color: var(--c-black);
}
.hero__title span { display: block; }
.hero__title span + span { margin-top: 16px; color: var(--c-dark-blue); }
.hero__sub {
  margin-top: 28px;
  max-width: 512px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--c-dark-grey);
}
.hero__actions { display: flex; gap: 24px; margin-top: 40px; position: relative; }
.hero__arrow {
  position: absolute;
  left: calc(100% + 50px);
  top: 12px;
  width: 32px;
  height: 68px;
  transform: scaleX(-1) rotate(-131.93deg);
  transform-origin: center;
  pointer-events: none;
}
.hero__free {
  position: absolute;
  left: calc(50% + 399px);
  top: 495px;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-script);
  font-size: 36px;
  line-height: 1;
  color: var(--c-dark-blue);
  white-space: nowrap;
}

/* Illustration stage: 1408×825 px, scaled as a whole */
.hero__art {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1408px;
  height: 825px;
  transform: translateX(-50%) scale(var(--hero-s));
  transform-origin: bottom center;
  z-index: 1;
  pointer-events: none;
}
.hero__art img { position: absolute; width: 100%; height: 100%; object-fit: fill; }
.hero__art > * { position: absolute; }
.art-cloud-a1 { left: 69px;  top: 610px; width: 1018px; height: 546px; }
.art-cloud-b  { left: -434px; top: 216px; width: 603px; height: 578px; transform: rotate(30.25deg); }
.art-cloud-c  { left: -247px; top: 575px; width: 1044px; height: 441px; }
.art-cat      { left: 23px;  top: 433px; width: 432px; height: 467px; }
.art-cloud-a2 { left: 455px; top: 567px; width: 1018px; height: 546px; }
.art-cloud-a3 { left: 913px; top: 305px; width: 1248px; height: 669px; }
.art-paper    { left: 1245px; top: 487px; width: 197px; height: 202px; }
.art-cloud-d  { left: -253px; top: 394px; width: 644px; height: 624px; }
.art-letter   { left: 929px; top: 664px; width: 191px; height: 215px; transform: rotate(-0.89deg); }
.art-book     { left: 446px; top: 633px; width: 266px; height: 234px; transform: rotate(26.74deg); }
.art-cloud-e  { left: 247px; top: 689px; width: 309px; height: 251px; }
.art-heart    { left: 166px; top: 454px; width: 44px;  height: 45px; }

/* ===== Stats ===== */
.stats {
  position: relative;
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__num { font-family: var(--font-hand); font-size: 64px; line-height: 1; color: var(--c-black); white-space: nowrap; }
.stat__num small { font-size: 32px; }
.stat__label { font-size: 18px; line-height: 1.3; color: var(--c-dark-grey); }
.stats__divider { width: 1px; height: 61px; background: var(--c-light-grey); }
.stats__deco { position: absolute; pointer-events: none; }
.stats__deco--letter { right: -13px; top: -95px; width: 77px; transform: rotate(-17.71deg); }
.stats__deco--pen { right: 54px; top: -23px; width: 83px; transform: rotate(12.49deg); }

/* ===== How we teach ===== */
.teach { --stick: clamp(64px, 10vh, 120px); margin-top: 260px; display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.teach__text { width: 581px; max-width: 100%; padding-top: 35px; position: sticky; top: var(--stick); }
.teach__text .h2 { margin-bottom: 36px; }
.teach__text p + p { margin-top: 16px; }
.teach__text .hand { font-size: 20px; line-height: 1.2; }
.accent-purple { color: var(--c-dark-purple); }
.accent-pink { color: var(--c-dark-pink); }

.deck { position: relative; width: 604px; max-width: 100%; flex-shrink: 0; }
/* Sticky stacking: each card pins a little lower than the previous one, so the
   next card scrolls up and covers all but the header of the one before it. */
.deck__item { position: sticky; width: 100%; }
.deck__item + .deck__item { margin-top: 24px; }
.deck__item:nth-child(1) { top: var(--stick); z-index: 1; }
.deck__item:nth-child(2) { top: calc(var(--stick) + 132px); z-index: 2; }
.deck__item:nth-child(3) { top: calc(var(--stick) + 225px); z-index: 3; }
.deck__item.is-front { z-index: 4; }
/* Extra scroll room so the finished stack stays pinned for a moment before it leaves */
.deck::after { content: ""; display: block; height: 300px; }
.deck__card {
  position: relative;
  margin: 35px 0 0 23px;
  width: 581px;
  max-width: calc(100% - 23px);
  padding: 48px 32px 32px;
  background: #fff;
  border: 2px solid var(--c-black);
  border-radius: 24px;
  box-shadow: 4px 4px 0 var(--c-black);
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease;
}
.deck__item:not(.is-front) .deck__card:hover { transform: translateY(-4px); }
.deck__title { font-family: var(--font-hand); font-size: 32px; line-height: 1.2; max-width: 403px; margin: 0 auto; color: var(--c-black); }
.deck__body { margin: 28px auto 0; max-width: 491px; font-size: 18px; line-height: 1.3; color: var(--c-dark-grey); }
.deck__badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 64px;
  line-height: 1;
  color: var(--c-black);
  transform: rotate(-11.53deg);
  padding-bottom: 6px;
  z-index: 1;
  pointer-events: none;
}
.deck__badge--cat { transform: rotate(-6deg); padding: 0 0 4px; }
.deck__badge--cat img { width: 72%; height: auto; }

/* ===== Formats ===== */
.formats .h2 .cap { font-size: 80px; }
.formats .lead { max-width: 653px; }
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 468px;
  padding: 48px 32px 32px;
  background: #fff;
  border: 3px solid var(--c-black);
  border-radius: 24px;
  box-shadow: 6px 6px 0 #000;
}
.card--accent { border-color: var(--c-dark-pink); box-shadow: 6px 6px 0 var(--c-dark-pink); }
.card__badge {
  position: absolute;
  left: 24px;
  top: -16px;
  padding: 6px 16px;
  border-radius: 34px;
  background: var(--c-dark-pink);
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}
.card__title { font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--c-black); margin: 0; }
.card__list { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }
.card__list li { position: relative; padding-left: 16px; font-size: 18px; line-height: 1.3; color: var(--c-dark-grey); }
.card__list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--c-black); }
.card__list .hand { font-size: 18px; }
.card__text { margin-top: 20px; font-size: 18px; line-height: 1.3; color: var(--c-dark-grey); }
.card .btn { align-self: flex-start; }

.formats__extra { position: relative; margin-top: 40px; min-height: 224px; }
.formats__note {
  position: absolute;
  left: 492px;
  top: 145px;
  transform: translateX(-50%);
  font-family: var(--font-script);
  font-size: 36px;
  line-height: 1;
  color: var(--c-black);
  white-space: nowrap;
}
.formats__arrow {
  position: absolute;
  left: 556px;
  top: 78px;
  width: 32px;
  height: 68px;
  transform: rotate(-131.93deg);
}
.card--dashed {
  position: absolute;
  right: 0;
  top: 0;
  width: 607px;
  max-width: 100%;
  min-height: 224px;
  padding: 36px 32px 32px;
  border: 2px dashed var(--c-grey);
  border-radius: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.card--dashed .card__title { font-size: 24px; color: var(--c-grey); }
.card--dashed .card__text { color: var(--c-grey); max-width: 459px; }
.card--dashed .link-arrow { color: var(--c-dark-grey); }

/* ===== Curved grey / blue bands ===== */
.band {
  position: relative;
  background: var(--c-superlight);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.band > .container { max-width: var(--frame); margin-inline: auto; }
.band::before, .band::after {
  content: "";
  position: absolute;
  left: 50%;
  width: max(1558px, 112vw);
  height: 387px;
  border-radius: 50%;
  background: inherit;
  transform: translateX(-50%);
  z-index: 0;
}
.band::before { top: -136px; }
.band::after { bottom: -134px; }
.band > * { position: relative; z-index: 1; }
.band--grey { margin-top: calc(var(--section-gap) + 84px); padding-bottom: 48px; }
.band--grey + .section { margin-top: calc(var(--section-gap) + 104px); }

/* ===== Levels ===== */
.levels .lead { max-width: 787px; }
.levels__list {
  width: 1076px;
  max-width: 100%;
  margin: 53px auto 0;
  border: 1px solid var(--c-light-grey);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}
.level { padding: 36px; border-bottom: 1px solid var(--c-light-grey); }
.level:last-child { border-bottom: 0; }
.level__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.level__name { font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--c-dark-purple); }
.level__meta { font-size: 16px; line-height: 1.2; color: var(--c-grey); text-align: right; }
.level__desc { font-size: 18px; line-height: 1.3; color: var(--c-dark-grey); }

/* ===== How it works (steps) ===== */
.steps { position: relative; }
.steps__list { display: flex; flex-direction: column; gap: 38px; margin-top: 59px; width: 1076px; max-width: 100%; }
.step { position: relative; display: flex; gap: 36px; align-items: flex-start; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 33.5px;
  top: 35px;
  bottom: -38px;
  width: 3px;
  background: repeating-linear-gradient(to bottom, var(--c-dark-grey) 0 18px, transparent 18px 36px);
}
.step__num {
  position: relative;
  z-index: 1;
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c-black);
  box-shadow: 2px 2px 0 var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 32px;
  line-height: 1;
}
.step__body { padding: 20px 0; display: flex; flex-direction: column; gap: 16px; max-width: 970px; }
.step__title { font-family: var(--font-hand); font-size: 32px; line-height: 1.2; color: var(--c-black); }
.step__title a { color: var(--c-dark-blue); text-decoration: underline; text-underline-offset: 4px; }
.step__text { font-size: 20px; line-height: 1.4; color: var(--c-dark-grey); }
.step__stats { display: flex; gap: 50px; margin-top: 20px; }
.step__stats .stat__num { font-size: 48px; }
.steps__cat { position: absolute; right: calc(var(--gutter) - 157px); top: 514px; width: 252px; transform: scaleX(-1); pointer-events: none; }

/* ===== Pricing ===== */
.pricing .cards3 { margin-top: 62px; }
.price-card { min-height: 352px; }
.price-card__tags { display: flex; align-items: center; gap: 16px; font-weight: 500; font-size: 18px; line-height: 1.2; color: var(--c-dark-purple); }
.price-card__tags .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-dark-purple); }
.price-card__row { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.price-card__price { font-weight: 700; font-size: 48px; line-height: 1.2; white-space: nowrap; color: var(--c-black); }
.price-card__slash { width: 40px; height: 2px; background: var(--c-light-grey); border-radius: 2px; transform: rotate(102.53deg); margin: 0 -16px; }
.price-card__note { margin-top: 20px; font-family: var(--font-hand); font-size: 18px; line-height: 1.3; color: var(--c-grey); white-space: pre-line; }
.pricing__footnote { margin: 35px 0 0 17px; max-width: 509px; font-size: 16px; line-height: 1.2; color: var(--c-grey); }

.trial { position: relative; margin-top: 45px; min-height: 444px; }
.trial__note {
  position: absolute;
  left: 290px;
  top: 263px;
  width: 545px;
  transform: translateX(-50%);
  font-family: var(--font-script);
  font-size: 36px;
  line-height: 1.15;
  text-align: center;
  color: var(--c-black);
}
.trial__arrow { position: absolute; left: 547px; top: 199px; width: 32px; height: 68px; transform: rotate(-131.93deg); }
.trial__card {
  position: absolute;
  right: 5px;
  top: 98px;
  width: 650px;
  max-width: 100%;
  padding: 48px 48px 32px;
  background: var(--c-light-purple);
  border: 2px solid var(--c-black);
  border-radius: 24px;
  box-shadow: 2px 2px 0 var(--c-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.trial__title { font-family: var(--font-hand); font-size: 36px; line-height: 1.1; color: var(--c-black); }
.trial__text { margin-top: 16px; max-width: 554px; font-size: 18px; line-height: 1.3; color: var(--c-dark-grey); }
.trial__cat { position: absolute; right: 35px; top: 0; width: 175px; z-index: 2; pointer-events: none; }
.trial__warn {
  position: absolute;
  left: calc(50% + 320px);
  top: 424px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--c-dark-pink);
  white-space: nowrap;
}
.trial__warn img { width: 20px; height: 20px; }

/* ===== Teachers ===== */
.teachers .h2 { padding-top: 45px; position: relative; display: inline-block; }
.teachers__heart { position: absolute; right: -40px; top: 0; width: 47px; }
.carousel-wrap { margin-top: 60px; }
.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin-right: calc(-1 * var(--gutter));
  padding-right: var(--gutter);
  scrollbar-width: none;
  align-items: flex-start;
  overflow-y: hidden;
  padding-bottom: 4px;
}
.carousel::-webkit-scrollbar { display: none; }
.teacher {
  flex: 0 0 416px;
  scroll-snap-align: start;
  padding: 24px 32px;
  background: var(--c-superlight);
  border: 1px solid var(--c-light-grey);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.teacher__head { display: flex; align-items: center; gap: 10px; }
.avatar {
  position: relative;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--av-bg, #c1d7f8);
}
.avatar img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w, 86px);
  height: var(--h, 86px);
  max-width: none;
  object-fit: cover;
  transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px)));
  transition: opacity .3s ease;
}
.avatar__alt { opacity: 0; }
.teacher:hover .avatar__alt { opacity: 1; }
.teacher:hover .avatar__photo { opacity: 0; }
.teacher:hover .avatar:not(:has(.avatar__alt)) .avatar__photo { opacity: 1; }
.teacher__name { font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--c-black); }
.teacher__tags { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 16px; line-height: 1.2; color: var(--c-dark-blue); margin-top: 4px; }
.teacher__bio {
  font-size: 18px;
  line-height: 1.3;
  color: var(--c-dark-grey);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.teacher.is-open .teacher__bio { display: block; -webkit-line-clamp: unset; }
.teacher__more { color: var(--c-dark-blue); align-self: flex-start; }
.teacher.is-open .teacher__more img { transform: rotate(90deg); }
.teacher__more img { transition: transform .2s; }
.carousel__nav { display: flex; justify-content: flex-end; gap: 24px; margin-top: 36px; }
.carousel__btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--c-superlight);
  border: 1.5px solid var(--c-dark-grey);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-dark-grey);
  transition: border-color .15s, color .15s, background-color .15s;
}
.carousel__btn:hover { background: #fff; }
.carousel__btn[disabled] { border-color: var(--c-grey); color: var(--c-grey); cursor: default; background: var(--c-superlight); }
.carousel__btn svg { width: 24px; height: 12px; }
.carousel__btn--prev svg { transform: scaleX(-1); }

/* ===== Reviews ===== */
#reviews.band--grey { margin-top: 306px; }
.reviews__grid { display: flex; gap: 24px; align-items: center; margin-top: 60px; }
.reviews__col { flex: 1 1 0; display: flex; flex-direction: column; gap: 24px; }
.review {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--c-light-grey);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.review__name { font-weight: 500; font-size: 18px; line-height: 1.2; color: var(--c-black); }
.review__date { margin-top: 4px; font-size: 16px; line-height: 1.2; color: var(--c-grey); }
.review__text { font-size: 18px; line-height: 1.3; color: var(--c-dark-grey); }

/* ===== Sima CTA ===== */
.sima {
  position: relative;
  width: 956px;
  max-width: 100%;
  margin: 335px auto 0;
  min-height: 284px;
  padding: 50px 46px 32px 327px;
  background: var(--c-light-blue);
  border: 2px solid var(--c-dark-grey);
  border-radius: 36px;
  box-shadow: 4px 4px 0 var(--c-black);
}
.sima__photo {
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 358px;
  height: 370px;
  border-radius: 36px;
  overflow: hidden;
}
.sima__photo img { width: 103%; height: 100%; object-fit: cover; margin-left: -3%; }
.sima__title { font-family: var(--font-hand); font-size: 32px; line-height: 1.2; color: var(--c-black); }
.sima__title span { color: var(--c-dark-blue); }
.sima__text { margin-top: 12px; max-width: 583px; font-size: 20px; line-height: 1.4; color: var(--c-black); }
.sima .btn { margin-top: 24px; }

/* ===== FAQ ===== */
.faq { position: relative; overflow: hidden; margin-top: 238px; padding-bottom: 20px; }
.faq__list { width: 761px; max-width: 100%; margin: 72px auto 0; display: flex; flex-direction: column; gap: 24px; }
.faq__item {
  background: var(--c-superlight);
  border: 1px solid var(--c-light-grey);
  border-radius: 32px; /* >= half the closed height, so it still reads as a pill */
  transition: border-color .25s ease, background-color .25s ease;
}
.faq__item.is-open { border-color: #dfe0e5; }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px 20px 36px;
  text-align: left;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  color: #000;
}
.faq__q img { width: 20px; height: 20px; flex: 0 0 20px; transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
.faq__item.is-open .faq__q img { transform: rotate(45deg); }
.faq__a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.4, 0, .2, 1); }
.faq__item.is-open .faq__a-wrap { grid-template-rows: 1fr; }
.faq__a { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .25s ease; }
.faq__item.is-open .faq__a { opacity: 1; transition: opacity .35s ease .1s; }
.faq__a-inner { padding: 0 36px 24px; font-size: 18px; line-height: 1.4; color: var(--c-dark-grey); }
.faq__cat { position: absolute; pointer-events: none; will-change: translate; }
.faq__cat--left { left: -173px; top: 92px; width: 432px; }
.faq__cat--right { right: -101px; top: 358px; width: 299px; }

/* ===== Warning ===== */
.warning {
  position: relative;
  margin-top: 200px;
  width: 964px;
  max-width: 100%;
  min-height: 228px;
  padding: 46px 240px 46px 46px;
  background: #FFDADB;
  border: 2px solid var(--c-dark-pink);
  border-radius: 36px;
  overflow: hidden;
}
.warning__title { font-family: var(--font-hand); font-size: 32px; line-height: 1.2; color: var(--c-black); }
.warning__text { margin-top: 12px; max-width: 750px; font-size: 20px; line-height: 1.4; color: var(--c-black); }
.warning__text a { text-decoration: underline; text-underline-offset: 3px; }
.warning__cat { position: absolute; left: 773px; top: 33px; width: 262px; pointer-events: none; }

/* ===== Footer ===== */
.footer { position: relative; margin-top: 74px; padding-top: 256px; }
.footer__logo {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 256px;
  height: 256px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.footer__logo img { width: 146px; height: 160px; }
.footer__band {
  position: relative;
  margin-inline: calc(50% - 50vw);
  background: var(--c-dark-blue);
  color: #fff;
  text-align: center;
  padding: 27px 24px 79px;
}
.footer__band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -137px;
  width: max(1558px, 112vw);
  height: 387px;
  border-radius: 50%;
  background: var(--c-dark-blue);
  transform: translateX(-50%);
  z-index: 0;
}
.footer__band > * { position: relative; z-index: 1; }
.footer__band > .container { max-width: var(--frame); margin-inline: auto; }
.footer__tagline { max-width: 392px; margin: 0 auto; font-size: 20px; line-height: 1.4; }
.footer__heading { font-weight: 700; font-size: 24px; line-height: 1.2; }
.footer__projects { margin-top: 50px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.footer__links { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; font-size: 20px; line-height: 1.4; }
.footer__links .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-dark-purple); }
.footer__links a { text-decoration: underline; text-underline-offset: 3px; }
.footer__divider { margin: 50px calc(-1 * var(--gutter)) 0; height: 1px; background: #5267CC; }
.footer__contact { margin-top: 59px; }
.footer__social { margin-top: 25px; display: flex; justify-content: center; gap: 16px; }
.footer__social a { width: 28px; height: 28px; opacity: .95; transition: opacity .15s, transform .15s; }
.footer__social a:hover { opacity: 1; transform: translateY(-2px); }


/* =========================================================
   Motion (entrance reveals, hero intro, floating stickers)
   Hidden states only apply with JS present and no reduced-motion preference.
   ========================================================= */
@keyframes fadeUp { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    translate: 0 28px;
    transition: opacity .8s cubic-bezier(.2, .65, .3, 1), translate .8s cubic-bezier(.2, .65, .3, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js [data-reveal].is-visible { opacity: 1; translate: 0 0; }

  /* Hero intro */
  .js .hero__logo, .js .hero__nav, .js .hero__cta, .js .hero__burger { animation: fadeIn .7s ease both; }
  .js .hero__title { animation: fadeUp .9s cubic-bezier(.2, .65, .3, 1) .1s both; }
  .js .hero__sub { animation: fadeUp .9s cubic-bezier(.2, .65, .3, 1) .28s both; }
  .js .hero__actions { animation: fadeUp .9s cubic-bezier(.2, .65, .3, 1) .42s both; }
  .js .hero__arrow { animation: fadeIn .6s ease .95s both; }
  .js .hero__free { animation: fadeIn .6s ease 1.05s both; }
  .js .hero__art > * { animation: pop .9s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(120ms + var(--i, 0) * 65ms); }
  .hero__art > :nth-child(1) { --i: 0; }
  .hero__art > :nth-child(2) { --i: 1; }
  .hero__art > :nth-child(3) { --i: 2; }
  .hero__art > :nth-child(4) { --i: 6; }
  .hero__art > :nth-child(5) { --i: 3; }
  .hero__art > :nth-child(6) { --i: 4; }
  .hero__art > :nth-child(7) { --i: 9; }
  .hero__art > :nth-child(8) { --i: 5; }
  .hero__art > :nth-child(9) { --i: 8; }
  .hero__art > :nth-child(10) { --i: 7; }
  .hero__art > :nth-child(11) { --i: 5; }
  .hero__art > :nth-child(12) { --i: 10; }
  /* gentle floating on the foreground stickers (translate composes with their rotation) */
  .js .art-cat    { animation: pop .9s cubic-bezier(.2, .8, .3, 1) calc(120ms + 6 * 65ms) both, float 6s ease-in-out 1.3s infinite; }
  .js .art-book   { animation: pop .9s cubic-bezier(.2, .8, .3, 1) calc(120ms + 7 * 65ms) both, float 5.2s ease-in-out 1.6s infinite; }
  .js .art-letter { animation: pop .9s cubic-bezier(.2, .8, .3, 1) calc(120ms + 8 * 65ms) both, float 7s ease-in-out 1.1s infinite; }
  .js .art-paper  { animation: pop .9s cubic-bezier(.2, .8, .3, 1) calc(120ms + 9 * 65ms) both, float 6.4s ease-in-out 2s infinite; }
  .js .art-heart  { animation: pop .9s cubic-bezier(.2, .8, .3, 1) calc(120ms + 10 * 65ms) both, float 4s ease-in-out 1.8s infinite; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1439px) {
  :root { --gutter: 48px; }
  .steps__cat { right: -80px; width: 200px; }
}

@media (max-width: 1200px) {
  :root { --section-gap: 160px; }
  .hero__nav { display: none; }
  .hero__burger { display: flex; }
  .hero__cta { right: 84px; top: 28px; padding: 12px 20px; font-size: 16px; }
  .hero__logo { width: 96px; height: 96px; left: 20px; top: 16px; }
  .hero.nav-open .hero__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    left: 20px;
    right: 20px;
    top: 90px;
    transform: none;
    padding: 12px 8px;
    border-radius: 24px;
    white-space: normal;
    box-shadow: 4px 4px 0 var(--c-black);
    border-color: var(--c-black);
  }
  .hero.nav-open .hero__nav a { padding: 10px 16px; border-radius: 12px; }
  .hero.nav-open .hero__nav a:hover { background: var(--c-superlight); }
  .hero__content { top: 150px; }
  .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__deco { display: none; }
  .teach { flex-direction: column; }
  .teach__text { width: auto; padding-top: 0; position: static; }
  .deck { width: 604px; }
  .steps__cat { display: none; }
  .formats__extra { min-height: 0; display: flex; flex-direction: column; gap: 16px; }
  .formats__note { position: static; transform: none; text-align: center; }
  .formats__arrow { display: none; }
  .card--dashed { position: static; width: 100%; }
  .trial { min-height: 0; display: flex; flex-direction: column; gap: 24px; align-items: center; }
  .trial__note { position: static; transform: none; width: auto; max-width: 545px; }
  .trial__arrow { display: none; }
  .trial__card { position: relative; right: auto; top: auto; margin-top: 0; }
  .trial__cat { position: relative; right: auto; top: auto; z-index: 2; width: 150px; align-self: flex-end; margin: 8px 24px -34px 0; }
  .trial__warn { position: static; transform: none; white-space: normal; }
  .faq__cat { display: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; --section-gap: 120px; }
  #reviews.band--grey { margin-top: 200px; }
  .faq { margin-top: 140px; }
  .warning { margin-top: 100px; }
  .h2 { font-size: 48px; }
  .formats .h2 .cap { font-size: 60px; }
  .lead { font-size: 18px; }
  .hero { min-height: 700px; margin: 8px; }
  .hero__title { font-size: clamp(44px, 10vw, 64px); }
  .hero__sub { font-size: 17px; }
  .hero__actions { flex-direction: column; align-items: center; gap: 16px; }
  .hero__arrow, .hero__free { display: none; }
  .stats { gap: 24px 32px; }
  .stats__divider { display: none; }
  .stat__num { font-size: 48px; }
  .deck { height: auto; width: 100%; }
  .deck__item, .deck__item:nth-child(1), .deck__item:nth-child(2), .deck__item:nth-child(3) { position: relative; top: auto; z-index: auto; }
  .deck::after { display: none; }
  .deck__item + .deck__item { margin-top: 24px; }
  .deck__card { margin: 35px 0 0 0; width: 100%; max-width: 100%; cursor: default; }
  .deck__item:not(.is-front) .deck__card:hover { transform: none; }
  .deck__badge { width: 80px; height: 80px; font-size: 48px; top: 6px; left: -6px; }
  .cards3 { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card .btn { align-self: stretch; width: 100%; }
  .level { padding: 24px; }
  .level__meta { text-align: left; }
  .step { gap: 20px; }
  .step:not(:last-child)::before { left: 25.5px; }
  .step__num { flex-basis: 54px; width: 54px; height: 54px; font-size: 26px; }
  .step__title { font-size: 26px; }
  .step__text { font-size: 18px; }
  .step__body { padding: 12px 0; }
  .price-card__price { font-size: 40px; }
  .teachers .h2 { display: block; padding-top: 0; }
  .teachers__heart { display: none; }
  .teacher { flex-basis: min(416px, 85vw); }
  .reviews__grid { flex-direction: column; align-items: stretch; }
  .sima { padding: 300px 24px 32px; margin-top: 200px; }
  .sima__photo { left: 50%; top: -85px; bottom: auto; transform: translateX(-50%); width: min(358px, 80%); height: 370px; }
  .sima .btn { width: 100%; }
  .faq__q { padding: 16px 20px 16px 24px; font-size: 16px; }
  .faq__a-inner { padding: 0 24px 20px; font-size: 16px; }
  .warning { padding: 32px 24px 200px; }
  .warning__cat { left: auto; right: 0; top: auto; bottom: -20px; width: 220px; }
  .footer__divider { margin-inline: -24px; }
  .footer__links { gap: 12px; font-size: 18px; }
}

@media (max-width: 480px) {
  .hero { min-height: 640px; }
  .hero__cta { display: none; }
  .hero__content { top: 120px; }
  .sima__photo { height: 320px; }
  .sima { padding-top: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
