.hero-demo {
  min-width: 0;
  margin: 0;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(130, 219, 231, .48);
  border-radius: 22px;
  background: #102537;
  box-shadow: 0 24px 60px rgba(0, 7, 17, .38), 0 0 28px rgba(48, 194, 219, .11);
}

.hero-demo-frame {
  overflow: hidden;
  background: #092133;
}

.hero-demo-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-demo figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px 16px;
  color: #effaff;
}

.hero-demo figcaption strong,
.hero-demo figcaption small {
  display: block;
}

.hero-demo figcaption strong { font-size: 15px; line-height: 1.35; }
.hero-demo figcaption small { margin-top: 3px; color: #bad0da; font-size: 12px; line-height: 1.45; }
.hero-demo figcaption a { flex: none; color: #91f4e6; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hero-demo figcaption a:hover { color: #fff; }

.corehq-path {
  margin: 22px 0 0;
  padding: 17px 21px;
  border: 1px solid #bfdde5;
  border-radius: 14px;
  background: #edf8fb;
  color: #365064;
  line-height: 1.6;
}

.corehq-path strong { color: #12354a; }

@media (min-width: 761px) and (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    gap: 24px;
    padding: 54px 0 76px;
  }
  .hero h1 { font-size: clamp(30px, 3.8vw, 38px); }
  .hero-copy { font-size: 15px; }
  .hero-demo { width: 100%; max-width: none; margin: 0; }
  .hero-demo figcaption { display: block; }
  .hero-demo figcaption a { display: inline-block; margin-top: 8px; }
  .hero .actions { gap: 10px; }
  .hero .button { padding: 12px 15px; font-size: 12px; }
}

@media (max-width: 680px) {
  .hero-demo { border-radius: 16px; }
  .hero-demo figcaption { display: block; }
  .hero-demo figcaption a { display: inline-block; margin-top: 10px; }
  .corehq-path { padding: 15px 17px; }
}
.hero .hero-demo-note { max-width: 640px; margin: 0 0 16px; color: #bdece7; font-size: 15px; line-height: 1.55; }
.hero .hero-demo-actions { margin: 0 0 28px; }
