
:root {
  --img-cloud-bg: none;        
  --img-footer: url("https://pub-80f93f5ac63a4eeabbce9d7f2b8d4e7f.r2.dev/sites/c20d0202-3525-476d-8409-3728f33430f3/1784329364887-footer%20cloudy%20background%202026%20final.webp"); 
  --school-color: #163a5f;
  --text: #2b2b2b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.h2 {
  font-family: "League Spartan", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--school-color);
}

/* ---------- Page / background ---------- */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Pastel fallback gradient; cloud image layers on top when set */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%),
    var(--img-footer) center bottom / auto 100% no-repeat,
    var(--img-cloud-bg) center top / cover no-repeat,
    linear-gradient(180deg, white 0%, white 45%, white 100%);
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  width: 100%;
  max-width: 75rem;
  margin: 0 auto;
  padding: 3.5rem 4rem 2rem 0;
}

.hero__header {
  text-align: center;
  margin-bottom: 3rem;
}

.hero__logo {
  display: block;
  width: 7.5rem;
  height: auto;
  opacity: 10%;
  margin: 0 auto 1.3rem;
}

.hero__title {
  font-family: "League Spartan", sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--school-color);
}

.hero__content {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4.5rem;
}

/* Phone */
.phone {
  flex: 0 0 auto;
  width: 40rem;
}

.phone__img {
  display: block;
  width: 100%;
  height: auto;
}

/* Steps */
.steps {
  list-style: none;
  flex: 0 1 28.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-left: -12.5rem;
  align-self: center;           /* vertically center beside the phone */
  transform: translateY(-15%);    /* nudge up/down — tweak this % */
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
}

.step__num {
  flex: 0 0 auto;
  font-family: "League Spartan", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--school-color);
  line-height: 1.2;
  min-width: 1.5rem;
}

.step__text {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  color: var(--text);
  padding-top: 0.125rem;
}

.step__link,
.step__link:visited {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--text) 25%, transparent);
}

.redirect__link,
.redirect__link:visited {
  color: #4745c7;
}

/* ---------- Downloads ---------- */
.downloads {
  margin-top: -3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.downloads__row {
  display: flex;
  align-items: stretch;
  gap: 1.75rem;
}

.qr {
  width: 10rem;
  border-radius: 0.5rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}

.badges {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 12.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 0.5rem;
}

.badge--apple,
.badge--google {
  width: 12.5rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.badge__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Footer illustration ---------- */
.footer {
  width: 100%;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.footer__img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   Breakpoints
   ========================================================= */

/* ---------- Small desktop / large tablet ---------- */
@media (max-width: 1700px) {
  /* Crop footer to focus on the children playing */
  .footer__img {
    height: 25rem;
    object-fit: cover;
    object-position: 20% bottom;
  }
}

@media (max-width: 1400px) {
  /* Crop footer to focus on the children playing */
  .footer__img {
    height: 22rem;
    object-fit: cover;
    object-position: 35% bottom;
  }
}

@media (max-width: 1100px) {
  /* Stack phone above steps */
  .hero__content {
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
  }

  .phone {
    width: 550px;
  }

  .steps {
    flex-basis: auto;
    width: 100%;
    max-width: 26rem;
    margin-left: 0;
    margin-top: -4rem;
  }

  .step__num {
    font-size: 26px;
  }

  .step__text {
    font-size: 1.375rem;
  }

  /* Crop footer to focus on the children playing */
  .footer__img {
    height: 18rem;
    object-fit: cover;
    object-position: 38% bottom;
  }

}

/* ---------- iPad / tablet ---------- */
@media (max-width: 900px) {
  .hero {
    padding: 3.5rem 2.5rem 1.75rem;
  }

  .hero__content {
    gap: 3rem;
  }

  .phone {
    width: 550px;
  }

  .steps {
    flex-basis: 24rem;
    gap: -50rem;
    margin-top: -4rem;
  }

  .step__num {
    font-size: 26px;
  }

  .step__text {
    font-size: 1.375rem;
  }

  /* Crop footer to focus on the children playing */
  .footer__img {
    height: 18rem;
    object-fit: cover;
    object-position: 40% bottom;
  }
}

/* ---------- Phone / mobile ---------- */
@media (max-width: 600px) {
  .hero {
    padding: 3.5rem 1.4rem 1.5rem;
  }

  .hero__header {
    margin-bottom: 2rem;
  }

  /* Stack phone above steps */
  .hero__content {
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
  }

  .phone {
    width: 550px;
  }

  .steps {
    flex-basis: auto;
    width: 100%;
    max-width: 26rem;
    gap: -50rem;
    margin-left: 0;
    margin-top: -4rem;
  }

  .step {
    gap: 1rem;
  }

  .step__num {
    font-size: 1.5rem;
  }

  .step__text {
    font-size: 1.2rem;
  }

  .downloads {
    margin-top: 2.5rem;
  }

  .qr {
    width: 7.5rem;
  }

  .badge,
  .badge--apple,
  .badge--google {
    width: 9.5rem;
  }

  /* Crop footer to focus on the children playing */
  .footer__img {
    height: 12rem;
    object-fit: cover;
    object-position: 38% bottom;
  }
}
