.glass-page.download-page .site-header {
  background: transparent;
  border-bottom: 0;
}

.download-stage {
  --download-ink: #101a42;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse at 90% 32%, #e2e4fc, transparent 66%),
    linear-gradient(157deg, #f6f7ff, #eef1fc 68%, #f4f7ff);
}

.download-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 11%;
  right: -24%;
  width: 72%;
  height: 35%;
  transform: rotate(-16deg);
  border-top: 1px solid #fff;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, #bec8f549, transparent 68%);
  box-shadow: 0 -4px 20px #ffffffb0;
  mask-image: linear-gradient(90deg, transparent, #000 36% 86%, transparent);
  pointer-events: none;
}

.download-layout {
  width: min(1280px, 100% - clamp(36px, 10vw, 150px));
  margin-inline: auto;
  padding-block: clamp(118px, 10vw, 156px) clamp(48px, 8vw, 112px);
}

.download-intro {
  margin-bottom: clamp(30px, 3.8vw, 54px);
}

.download-intro h1 {
  color: var(--download-ink);
  font-size: clamp(2.65rem, 4.65vw, 5.3rem);
  font-weight: 700;
  line-height: 1.04;
}

.download-intro p {
  margin-top: 14px;
  color: #44557e;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.75vw, 26px);
}

.download-card {
  --card-glow: #b8cbf9;
  --tile-light: #d8e5ff;
  --tile-dark: #758fd7;
  --tile-transform: matrix(1, -0.19, -0.27, 1, 0, 0);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34%;
  align-items: center;
  min-height: clamp(270px, 22.5vw, 355px);
  padding: clamp(22px, 3.15vw, 48px);
  border: 1px solid #fff9;
  border-radius: clamp(20px, 2vw, 30px);
  background:
    radial-gradient(ellipse at 86% 61%, var(--card-glow), transparent 61%),
    linear-gradient(143deg, #fffc, #f0f3ff91);
  box-shadow:
    0 1px 1px #3c55821c,
    0 16px 42px #455b9e13;
}

.download-card-educator {
  --card-glow: #d8cbf8;
  --tile-light: #eee3ff;
  --tile-dark: #a092da;
  --tile-transform: matrix(1, 0.19, -0.27, 1, 0, 0);
}

.download-card-content {
  position: relative;
  z-index: 1;
}

.download-card h2 {
  color: var(--download-ink);
  font-size: clamp(1.6rem, 2.55vw, 2.7rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.052em;
}

.download-card p {
  margin-top: 9px;
  color: #495a81;
  font-size: clamp(0.9rem, 1vw, 1.02rem);
  line-height: 1.45;
}

.download-page a.download-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: clamp(19px, 2.1vw, 30px);
  padding: 9px 15px;
  border: 1px solid #344c8f;
  border-radius: 10px;
  background: linear-gradient(155deg, #344e98, #1d2e65);
  box-shadow:
    inset 0 1px 1px #ffffff35,
    0 5px 12px #263b762b;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 600;
  transition:
    box-shadow 200ms ease,
    transform 200ms ease;
}

.download-action .icon {
  width: 16px;
  height: 16px;
}

.download-page .download-action:hover {
  box-shadow:
    inset 0 1px 1px #ffffff35,
    0 8px 20px #263b7640;
  transform: translateY(-2px);
}

.download-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  justify-self: end;
  pointer-events: none;
}

.download-art::before,
.download-art-face {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  transform: var(--tile-transform);
  border-radius: 20%;
}

.download-art::before {
  content: "";
  inset: 19% 0 auto auto;
  border: 1px solid #fff8;
  background: linear-gradient(
    148deg,
    #ffffff69,
    var(--tile-light) 65%,
    #ffffff10
  );
  box-shadow: 7px 18px 26px #384e9522;
}

.download-art-face {
  inset: 7% 12% auto auto;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid #ffffffe0;
  border-bottom-color: var(--tile-dark);
  background:
    radial-gradient(ellipse at 72% 19%, #ffffffc9, transparent 60%),
    linear-gradient(145deg, var(--tile-light), var(--tile-dark));
  box-shadow:
    inset 1px 1px 9px #fffc,
    1px 2px 0 var(--tile-light),
    -10px 16px 28px #3c50972b;
}

.download-art-face .icon {
  width: 36%;
  height: 36%;
  stroke-width: 1.45;
  filter: drop-shadow(0 2px 3px #304e8294);
}

.download-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 24px;
  margin-top: clamp(20px, 3vw, 42px);
  border-top: 1px solid #52679924;
  padding-top: 9px;
}

.download-accessories {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(16px, 2.4vw, 34px);
}

.download-page .download-accessories a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #34466d;
  font-size: 0.9rem;
  font-weight: 500;
}

.download-accessories .icon {
  width: 16px;
  height: 16px;
}

.download-accessories a:hover,
.download-notes a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-notes {
  justify-self: end;
  max-width: 33ch;
}

.download-notes summary {
  min-height: 44px;
  align-content: center;
  cursor: pointer;
  color: #34466d;
  font-size: 0.9rem;
}

.download-notes p {
  font-size: 0.85rem;
  margin-top: 5px;
}

@media (max-width: 800px) {
  .download-options {
    grid-template-columns: 1fr;
  }

  .download-card {
    min-height: clamp(200px, 39vw, 274px);
  }

  .download-art {
    max-width: 190px;
  }
}

@media (max-width: 630px) {
  .download-support {
    grid-template-columns: 1fr;
  }

  .download-notes {
    justify-self: start;
  }

  .download-notes summary {
    width: fit-content;
    padding-right: 6px;
  }
}

@media (max-width: 400px) {
  .download-card {
    grid-template-columns: minmax(0, 1fr) 28%;
    padding-inline: 18px;
  }

  .download-card p {
    max-width: 21ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-page .download-action {
    transition: none;
  }

  .download-page .download-action:hover {
    transform: none;
  }
}
