/* The two desktop apps are presented as layered, live HTML previews. */
.app-story {
  overflow: clip;
  background: #f4f6ff;
  scroll-margin-top: 70px;
}
.app-chapter {
  padding: clamp(70px, 9vw, 130px) 0 clamp(56px, 7vw, 100px);
  position: relative;
  isolation: isolate;
  text-align: center;
  scroll-margin-top: 70px;
}
.app-chapter-learn {
  background:
    radial-gradient(ellipse at 46% 60%, #bac9fcab, transparent 52%),
    radial-gradient(ellipse at 8% 36%, #dce7ff, transparent 54%),
    linear-gradient(180deg, #f8f9ff, #edf0ff 62%, #f7f8ff);
}
.app-chapter-educator {
  background:
    radial-gradient(ellipse at 65% 60%, #c3c5f8b5, transparent 55%),
    radial-gradient(ellipse at 12% 39%, #dee7fc, transparent 55%),
    linear-gradient(180deg, #f7f8ff, #eceffe 61%, #f4f7ff);
}
.app-chapter-heading > span {
  color: #3049a7;
  font-size: 0.77rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.app-chapter-heading h2 {
  margin: 15px auto 14px;
  max-width: 1050px;
  font-size: clamp(2.3rem, 5.25vw, 5.3rem);
  font-weight: 690;
  letter-spacing: -0.06em;
  line-height: 1;
  text-wrap: balance;
}
.app-chapter-heading p {
  max-width: 57ch;
  margin: 0 auto;
  font-size: clamp(1rem, 1.55vw, 1.19rem);
  line-height: 1.52;
  text-wrap: pretty;
}
.app-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  margin: clamp(34px, 5.3vw, 75px) auto clamp(38px, 5.1vw, 74px);
  text-align: left;
  isolation: isolate;
}
.app-window {
  container-type: inline-size;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #fbfcff;
  border-radius: clamp(12px, 1.5vw, 20px);
  background: linear-gradient(143deg, #fffffffa, #f3f5fff5 68%, #ecefffef);
  color: #18233f;
  box-shadow:
    0 28px 60px -34px #465ab585,
    0 2px 6px #5266bd18;
}
@media (prefers-reduced-motion: no-preference) {
  .app-stage-moving .app-window {
    will-change: translate;
  }
}
.app-window-left {
  transform: perspective(920px) rotateY(12deg) rotate(-3deg);
  transform-origin: right center;
}
.app-window-right {
  transform: perspective(920px) rotateY(-12deg) rotate(3deg);
  transform-origin: left center;
}
.app-window-main {
  z-index: 1;
  margin-inline: -28px;
  box-shadow:
    0 35px 80px -35px #384c9eaa,
    0 3px 12px #5266bd20;
}
.app-window-bar {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2cqw, 12px);
  min-height: clamp(39px, 9cqw, 54px);
  padding-inline: clamp(9px, 4cqw, 20px);
  border-bottom: 1px solid #dfe4f4;
  font-size: clamp(9px, 3cqw, 13px);
}
.app-window-bar img {
  width: clamp(21px, 6.7cqw, 30px);
  height: auto;
}
.app-window-bar > span {
  margin-left: 4px;
  padding: 0.32em 0.68em;
  border-radius: 5px;
  background: #e9edff;
  color: #2542b0;
  font-weight: 650;
  font-size: 0.84em;
}
.app-window-bar > small {
  margin-left: auto;
  color: #687599;
  font-size: 9px;
}
.app-window-body {
  padding: clamp(10px, 4cqw, 21px);
  min-width: 0;
}
.app-window h3 {
  margin: 6px 0 11px;
  font-size: clamp(14px, 5cqw, 23px);
  font-weight: 720;
  letter-spacing: -0.047em;
  line-height: 1.1;
}
.app-window-body > small {
  color: #576589;
  font-size: clamp(8px, 2.5cqw, 10px);
}
.app-window p {
  margin: 10px 0;
  color: #455574;
  font-size: clamp(9px, 2.8cqw, 12px);
  line-height: 1.5;
}
.app-video {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px 14px 27px;
  min-height: clamp(94px, 33cqw, 182px);
  overflow: hidden;
  border-radius: 7px;
  background:
    radial-gradient(ellipse at 100% 100%, #4358b7 0%, transparent 42%),
    linear-gradient(145deg, #111931, #121e42 63%, #182954);
  color: #f1f4ff;
}
.app-video::before,
.app-video::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 112%;
  height: 78%;
  left: 43%;
  bottom: -47%;
  border-radius: 48%;
  transform: rotate(-27deg);
  background: linear-gradient(#7da2ff, #293c86 55%);
  box-shadow: 0 -7px 40px #6687f082;
  opacity: 0.55;
}
.app-video::after {
  left: 50%;
  bottom: -39%;
  opacity: 0.4;
}
.app-video b {
  font-size: clamp(15px, 5.6cqw, 29px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.app-video > span {
  position: absolute;
  inset: auto 12px 7px;
  padding-top: 4px;
  border-top: 1px solid #e6edff6b;
  font-size: 8px;
}
.app-preview-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px clamp(7px, 3.4cqw, 19px);
  margin-block: 5px 8px;
  border-bottom: 1px solid #dfe4f4;
  color: #4b5a80;
  font-size: clamp(8px, 2.75cqw, 12px);
}
.app-preview-tabs > * {
  padding-block: 6px;
}
.app-preview-tabs b {
  border-bottom: 2px solid #5170f0;
  color: #2446c8;
}
.learn-window-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 2.2fr) minmax(0, 0.9fr);
  min-height: 290px;
}
.app-window-rail {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: clamp(8px, 3.1cqw, 16px) clamp(5px, 2cqw, 12px);
  background: #edf1fd80;
  color: #455577;
  border-right: 1px solid #dfe4f4;
  font-size: clamp(8px, 2.6cqw, 11px);
}
.app-window-rail > strong {
  display: flex;
  gap: 3px;
  align-items: center;
}
.app-window-rail > small {
  color: #5c6e96;
}
.app-window-rail > b,
.app-chapter-list li > b {
  background: #e7ebff;
  border-radius: 4px;
  color: #2a47b7;
  padding: 5px;
}
.app-window-ai {
  border: 0;
  border-left: 1px solid #dfe4f4;
}
.app-window-ai p,
.app-ai-message {
  background: #e9ecff;
  border-radius: 6px;
  padding: 8px;
}
.app-course-progress {
  height: 3px;
  background: #dce4f8;
  margin-bottom: 5px;
}
.app-course-progress span {
  display: block;
  width: 33%;
  height: 100%;
  background: #425de6;
}
.app-editor {
  background: #f6f8ff;
  border: 1px solid #e0e6f6;
  border-radius: 7px;
  overflow: hidden;
}
.app-editor > div,
.app-output {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 7px 8px;
  font-size: clamp(8px, 2cqw, 11px);
}
.app-editor > div {
  border-bottom: 1px solid #e0e6f6;
}
.app-editor > div span,
.app-studio-header > span {
  color: #fff;
  background: #3550df;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.app-editor pre {
  margin: 0;
  padding: 8px;
  overflow: auto;
  font:
    clamp(7px, 1.63cqw, 10px)/1.85 Consolas,
    monospace;
}
.app-editor i {
  color: #7081a4;
  font-style: normal;
}
.app-editor em {
  color: #404db8;
  font-style: normal;
  font-weight: 700;
}
.app-output {
  margin-top: 8px;
  color: #347357;
  background: #eaf8ee;
  border-radius: 6px;
}
.app-output b {
  color: #236548;
}
.app-plan {
  margin: 0;
  display: grid;
  gap: 11px;
  padding: 0;
  list-style: none;
  color: #43567f;
  font-size: clamp(9px, 3cqw, 12px);
}
.app-plan li::before {
  content: "✓";
  color: #365bd5;
  margin-right: 6px;
}
.blueprint-view .app-window-body {
  min-height: 226px;
}
.educator-window-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.75fr);
}
.app-chapter-list {
  list-style: none;
  padding: 0;
  margin: 7px 0 12px;
  font-size: clamp(8px, 3.1cqw, 11px);
}
.app-chapter-list li {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid #dfe4f4;
  padding: 7px 0;
}
.app-chapter-list li > span {
  padding-left: 5px;
  color: #4a5a77;
}
.app-mini-agent {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 8px;
  color: #4b5a7e;
  font-size: clamp(8px, 2.4cqw, 11px);
  line-height: 1.25;
}
.app-mini-agent img {
  flex: 0 0 auto;
  object-fit: contain;
}
.app-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.app-studio-header small {
  color: #576589;
  font-size: 9px;
}
.app-studio-header > span {
  font-size: clamp(8px, 2cqw, 11px);
}
.app-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: 9px;
}
.app-scene-list {
  display: grid;
  gap: 5px;
  align-content: start;
  font-size: clamp(8px, 2.35cqw, 11px);
}
.app-scene-list span {
  padding: 5px 3px;
  display: flex;
  gap: 6px;
  align-items: center;
  background: #edf0fc;
  border-radius: 4px;
}
.app-scene-list i {
  font-style: normal;
  color: #4363c7;
}
.studio-video {
  min-height: clamp(100px, 31cqw, 180px);
}
.app-timeline {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr 1fr;
  gap: 2px;
  margin-top: 9px;
  padding: 4px;
  border-radius: 5px;
  background: #e3e8f8;
  color: #f4f3ff;
  font-size: clamp(7px, 1.9cqw, 10px);
}
.app-timeline span {
  padding: 4px 3px;
  border-radius: 3px;
  background: #675cbd;
}
.app-launch-draft {
  padding: 8px;
  border-radius: 8px;
  background: #fff9;
  border: 1px solid #dfe4f4;
}
.app-launch-draft > div:first-child {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: clamp(8px, 3cqw, 11px);
}
.app-launch-draft small {
  color: #54678f;
}
.launch-video {
  min-height: clamp(92px, 32cqw, 128px);
}
.app-roles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px clamp(28px, 5vw, 82px);
  text-align: left;
}
.app-roles > a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #23366d;
  text-decoration: none;
}
.app-roles > a:hover strong {
  color: #2547c7;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.app-roles img {
  object-fit: contain;
  filter: drop-shadow(0 6px 8px #445abb34);
}
.app-roles :is(strong, small) {
  display: block;
}
.app-roles strong {
  font-size: clamp(1rem, 1.65vw, 1.27rem);
  letter-spacing: -0.035em;
}
.app-roles small {
  color: #4b5b80;
  font-size: 0.83rem;
  line-height: 1.35;
}
.app-chapter-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 32px;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 700;
  text-underline-offset: 4px;
}
@media (min-width: 931px) {
  .app-window-right :is(.app-window-bar, .app-window-body) {
    padding-left: clamp(30px, 11cqw, 42px);
  }
}
@media (max-width: 930px) {
  .app-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 13px;
  }
  .app-window-main {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
  }
  .app-window-left,
  .app-window-right {
    transform: none;
    align-self: stretch;
  }
}
@media (max-width: 540px) {
  .app-stage {
    gap: 9px;
  }
  .app-window-rail {
    display: none;
  }
  .learn-window-grid {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 0.95fr);
    min-height: 215px;
  }
  .app-window-ai {
    display: flex;
  }
  .educator-window-grid {
    grid-template-columns: 1fr;
  }
  .app-window-bar {
    padding-inline: 7px;
    gap: 4px;
  }
  .app-window-bar > img {
    width: 19px;
  }
  .app-window-body {
    padding: 8px;
  }
  .app-video {
    padding-inline: 8px;
  }
  .app-window h3 {
    font-size: 13px;
  }
  .app-studio-header h3,
  .learn-workspace h3 {
    font-size: 16px;
  }
  .blueprint-view .app-window-body {
    min-height: 0;
  }
  .app-roles {
    display: grid;
    justify-content: start;
    gap: 12px;
  }
  .app-roles > a {
    min-height: 44px;
  }
}
